diff --git a/CHANGELOG b/CHANGELOG index 5241b8650..d8e7a4845 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-12-21 Version: 1.36.988 +- Fix array params. + 2021-12-21 Version: 1.36.987 - Supported Designate Workers. - Supported Get WorkFlow. diff --git a/VERSION b/VERSION index 24995ff47..87f1b5941 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.987 \ No newline at end of file +1.36.988 \ No newline at end of file diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index 234a7afaa..aafb5c7a7 100644 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -21,113 +21,269 @@ set(config_public_header include/alibabacloud/config/ConfigExport.h ) set(config_public_header_model - include/alibabacloud/config/model/ActiveConfigRulesRequest.h - include/alibabacloud/config/model/ActiveConfigRulesResult.h - include/alibabacloud/config/model/DeleteConfigRulesRequest.h - include/alibabacloud/config/model/DeleteConfigRulesResult.h - include/alibabacloud/config/model/DescribeComplianceRequest.h - include/alibabacloud/config/model/DescribeComplianceResult.h - include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h - include/alibabacloud/config/model/DescribeComplianceSummaryResult.h - include/alibabacloud/config/model/DescribeConfigRuleRequest.h - include/alibabacloud/config/model/DescribeConfigRuleResult.h - include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h - include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h - include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h - include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h - include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h - include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h - include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h - include/alibabacloud/config/model/DescribeEvaluationResultsResult.h - include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h - include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h - include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h - include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h - include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h - include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h + include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h + include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h + include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h + include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackResult.h + include/alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h + include/alibabacloud/config/model/AttachConfigRuleToCompliancePackResult.h + include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h + include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h + include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h + include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h + include/alibabacloud/config/model/CreateAggregatorRequest.h + include/alibabacloud/config/model/CreateAggregatorResult.h + include/alibabacloud/config/model/CreateCompliancePackRequest.h + include/alibabacloud/config/model/CreateCompliancePackResult.h + include/alibabacloud/config/model/CreateConfigRuleRequest.h + include/alibabacloud/config/model/CreateConfigRuleResult.h + include/alibabacloud/config/model/DeactiveAggregateConfigRulesRequest.h + include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.h + include/alibabacloud/config/model/DeactiveConfigRulesRequest.h + include/alibabacloud/config/model/DeactiveConfigRulesResult.h + include/alibabacloud/config/model/DeleteAggregateCompliancePacksRequest.h + include/alibabacloud/config/model/DeleteAggregateCompliancePacksResult.h + include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h + include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h + include/alibabacloud/config/model/DeleteAggregatorsRequest.h + include/alibabacloud/config/model/DeleteAggregatorsResult.h + include/alibabacloud/config/model/DeleteCompliancePacksRequest.h + include/alibabacloud/config/model/DeleteCompliancePacksResult.h + include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h + include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h + include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h + include/alibabacloud/config/model/DetachConfigRuleToCompliancePackResult.h + include/alibabacloud/config/model/GenerateAggregateCompliancePackReportRequest.h + include/alibabacloud/config/model/GenerateAggregateCompliancePackReportResult.h + include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.h + include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h + include/alibabacloud/config/model/GenerateCompliancePackReportRequest.h + include/alibabacloud/config/model/GenerateCompliancePackReportResult.h + include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h + include/alibabacloud/config/model/GenerateConfigRulesReportResult.h + include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h + include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h + include/alibabacloud/config/model/GetAggregateCompliancePackRequest.h + include/alibabacloud/config/model/GetAggregateCompliancePackResult.h + include/alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h + include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h + include/alibabacloud/config/model/GetAggregateConfigRuleRequest.h + include/alibabacloud/config/model/GetAggregateConfigRuleResult.h + include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h + include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackResult.h + include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h + include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h + include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h + include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h + include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h + include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h + include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h + include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h + include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h + include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h + include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h + include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineResult.h + include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h + include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionResult.h + include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h + include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeResult.h + include/alibabacloud/config/model/GetAggregatorRequest.h + include/alibabacloud/config/model/GetAggregatorResult.h + include/alibabacloud/config/model/GetCompliancePackRequest.h + include/alibabacloud/config/model/GetCompliancePackResult.h + include/alibabacloud/config/model/GetCompliancePackReportRequest.h + include/alibabacloud/config/model/GetCompliancePackReportResult.h + include/alibabacloud/config/model/GetConfigRuleRequest.h + include/alibabacloud/config/model/GetConfigRuleResult.h + include/alibabacloud/config/model/GetConfigRuleComplianceByPackRequest.h + include/alibabacloud/config/model/GetConfigRuleComplianceByPackResult.h + include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h + include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelResult.h + include/alibabacloud/config/model/GetConfigRulesReportRequest.h + include/alibabacloud/config/model/GetConfigRulesReportResult.h + include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionRequest.h + include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionResult.h + include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h + include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h + include/alibabacloud/config/model/GetResourceComplianceByConfigRuleRequest.h + include/alibabacloud/config/model/GetResourceComplianceByConfigRuleResult.h + include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h + include/alibabacloud/config/model/GetResourceComplianceByPackResult.h include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h - include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h - include/alibabacloud/config/model/GetSupportedResourceTypesResult.h - include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h - include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h - include/alibabacloud/config/model/ListConfigRulesRequest.h - include/alibabacloud/config/model/ListConfigRulesResult.h - include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h - include/alibabacloud/config/model/ListDiscoveredResourcesResult.h - include/alibabacloud/config/model/ListRemediationTemplatesRequest.h - include/alibabacloud/config/model/ListRemediationTemplatesResult.h - include/alibabacloud/config/model/PutConfigRuleRequest.h - include/alibabacloud/config/model/PutConfigRuleResult.h - include/alibabacloud/config/model/PutConfigurationRecorderRequest.h - include/alibabacloud/config/model/PutConfigurationRecorderResult.h - include/alibabacloud/config/model/PutDeliveryChannelRequest.h - include/alibabacloud/config/model/PutDeliveryChannelResult.h - include/alibabacloud/config/model/PutEvaluationsRequest.h - include/alibabacloud/config/model/PutEvaluationsResult.h - include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h - include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h - include/alibabacloud/config/model/StartConfigurationRecorderRequest.h - include/alibabacloud/config/model/StartConfigurationRecorderResult.h - include/alibabacloud/config/model/StopConfigRulesRequest.h - include/alibabacloud/config/model/StopConfigRulesResult.h ) + include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h + include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsResult.h + include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.h + include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h + include/alibabacloud/config/model/ListAggregateCompliancePacksRequest.h + include/alibabacloud/config/model/ListAggregateCompliancePacksResult.h + include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h + include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h + include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h + include/alibabacloud/config/model/ListAggregateConfigRulesResult.h + include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h + include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.h + include/alibabacloud/config/model/ListAggregatorsRequest.h + include/alibabacloud/config/model/ListAggregatorsResult.h + include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.h + include/alibabacloud/config/model/ListCompliancePackTemplatesResult.h + include/alibabacloud/config/model/ListCompliancePacksRequest.h + include/alibabacloud/config/model/ListCompliancePacksResult.h + include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h + include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h + include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h + include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h + include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h + include/alibabacloud/config/model/RevertAggregateEvaluationResultsResult.h + include/alibabacloud/config/model/RevertEvaluationResultsRequest.h + include/alibabacloud/config/model/RevertEvaluationResultsResult.h + include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.h + include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationResult.h + include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h + include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h + include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h + include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h + include/alibabacloud/config/model/UpdateAggregatorRequest.h + include/alibabacloud/config/model/UpdateAggregatorResult.h + include/alibabacloud/config/model/UpdateCompliancePackRequest.h + include/alibabacloud/config/model/UpdateCompliancePackResult.h + include/alibabacloud/config/model/UpdateConfigRuleRequest.h + include/alibabacloud/config/model/UpdateConfigRuleResult.h ) set(config_src src/ConfigClient.cc - src/model/ActiveConfigRulesRequest.cc - src/model/ActiveConfigRulesResult.cc - src/model/DeleteConfigRulesRequest.cc - src/model/DeleteConfigRulesResult.cc - src/model/DescribeComplianceRequest.cc - src/model/DescribeComplianceResult.cc - src/model/DescribeComplianceSummaryRequest.cc - src/model/DescribeComplianceSummaryResult.cc - src/model/DescribeConfigRuleRequest.cc - src/model/DescribeConfigRuleResult.cc - src/model/DescribeConfigurationRecorderRequest.cc - src/model/DescribeConfigurationRecorderResult.cc - src/model/DescribeDeliveryChannelsRequest.cc - src/model/DescribeDeliveryChannelsResult.cc - src/model/DescribeDiscoveredResourceRequest.cc - src/model/DescribeDiscoveredResourceResult.cc - src/model/DescribeEvaluationResultsRequest.cc - src/model/DescribeEvaluationResultsResult.cc - src/model/GetAggregateDiscoveredResourceRequest.cc - src/model/GetAggregateDiscoveredResourceResult.cc - src/model/GetDiscoveredResourceCountsRequest.cc - src/model/GetDiscoveredResourceCountsResult.cc - src/model/GetDiscoveredResourceSummaryRequest.cc - src/model/GetDiscoveredResourceSummaryResult.cc + src/model/ActiveAggregateConfigRulesRequest.cc + src/model/ActiveAggregateConfigRulesResult.cc + src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc + src/model/AttachAggregateConfigRuleToCompliancePackResult.cc + src/model/AttachConfigRuleToCompliancePackRequest.cc + src/model/AttachConfigRuleToCompliancePackResult.cc + src/model/CreateAggregateCompliancePackRequest.cc + src/model/CreateAggregateCompliancePackResult.cc + src/model/CreateAggregateConfigRuleRequest.cc + src/model/CreateAggregateConfigRuleResult.cc + src/model/CreateAggregatorRequest.cc + src/model/CreateAggregatorResult.cc + src/model/CreateCompliancePackRequest.cc + src/model/CreateCompliancePackResult.cc + src/model/CreateConfigRuleRequest.cc + src/model/CreateConfigRuleResult.cc + src/model/DeactiveAggregateConfigRulesRequest.cc + src/model/DeactiveAggregateConfigRulesResult.cc + src/model/DeactiveConfigRulesRequest.cc + src/model/DeactiveConfigRulesResult.cc + src/model/DeleteAggregateCompliancePacksRequest.cc + src/model/DeleteAggregateCompliancePacksResult.cc + src/model/DeleteAggregateConfigRulesRequest.cc + src/model/DeleteAggregateConfigRulesResult.cc + src/model/DeleteAggregatorsRequest.cc + src/model/DeleteAggregatorsResult.cc + src/model/DeleteCompliancePacksRequest.cc + src/model/DeleteCompliancePacksResult.cc + src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc + src/model/DetachAggregateConfigRuleToCompliancePackResult.cc + src/model/DetachConfigRuleToCompliancePackRequest.cc + src/model/DetachConfigRuleToCompliancePackResult.cc + src/model/GenerateAggregateCompliancePackReportRequest.cc + src/model/GenerateAggregateCompliancePackReportResult.cc + src/model/GenerateAggregateConfigRulesReportRequest.cc + src/model/GenerateAggregateConfigRulesReportResult.cc + src/model/GenerateCompliancePackReportRequest.cc + src/model/GenerateCompliancePackReportResult.cc + src/model/GenerateConfigRulesReportRequest.cc + src/model/GenerateConfigRulesReportResult.cc + src/model/GetAggregateAccountComplianceByPackRequest.cc + src/model/GetAggregateAccountComplianceByPackResult.cc + src/model/GetAggregateCompliancePackRequest.cc + src/model/GetAggregateCompliancePackResult.cc + src/model/GetAggregateCompliancePackReportRequest.cc + src/model/GetAggregateCompliancePackReportResult.cc + src/model/GetAggregateConfigRuleRequest.cc + src/model/GetAggregateConfigRuleResult.cc + src/model/GetAggregateConfigRuleComplianceByPackRequest.cc + src/model/GetAggregateConfigRuleComplianceByPackResult.cc + src/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.cc + src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc + src/model/GetAggregateConfigRulesReportRequest.cc + src/model/GetAggregateConfigRulesReportResult.cc + src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc + src/model/GetAggregateResourceComplianceByConfigRuleResult.cc + src/model/GetAggregateResourceComplianceByPackRequest.cc + src/model/GetAggregateResourceComplianceByPackResult.cc + src/model/GetAggregateResourceComplianceTimelineRequest.cc + src/model/GetAggregateResourceComplianceTimelineResult.cc + src/model/GetAggregateResourceConfigurationTimelineRequest.cc + src/model/GetAggregateResourceConfigurationTimelineResult.cc + src/model/GetAggregateResourceCountsGroupByRegionRequest.cc + src/model/GetAggregateResourceCountsGroupByRegionResult.cc + src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.cc + src/model/GetAggregateResourceCountsGroupByResourceTypeResult.cc + src/model/GetAggregatorRequest.cc + src/model/GetAggregatorResult.cc + src/model/GetCompliancePackRequest.cc + src/model/GetCompliancePackResult.cc + src/model/GetCompliancePackReportRequest.cc + src/model/GetCompliancePackReportResult.cc + src/model/GetConfigRuleRequest.cc + src/model/GetConfigRuleResult.cc + src/model/GetConfigRuleComplianceByPackRequest.cc + src/model/GetConfigRuleComplianceByPackResult.cc + src/model/GetConfigRuleSummaryByRiskLevelRequest.cc + src/model/GetConfigRuleSummaryByRiskLevelResult.cc + src/model/GetConfigRulesReportRequest.cc + src/model/GetConfigRulesReportResult.cc + src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc + src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc + src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc + src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc + src/model/GetResourceComplianceByConfigRuleRequest.cc + src/model/GetResourceComplianceByConfigRuleResult.cc + src/model/GetResourceComplianceByPackRequest.cc + src/model/GetResourceComplianceByPackResult.cc src/model/GetResourceComplianceTimelineRequest.cc src/model/GetResourceComplianceTimelineResult.cc src/model/GetResourceConfigurationTimelineRequest.cc src/model/GetResourceConfigurationTimelineResult.cc - src/model/GetSupportedResourceTypesRequest.cc - src/model/GetSupportedResourceTypesResult.cc - src/model/ListAggregateDiscoveredResourcesRequest.cc - src/model/ListAggregateDiscoveredResourcesResult.cc - src/model/ListConfigRulesRequest.cc - src/model/ListConfigRulesResult.cc - src/model/ListDiscoveredResourcesRequest.cc - src/model/ListDiscoveredResourcesResult.cc - src/model/ListRemediationTemplatesRequest.cc - src/model/ListRemediationTemplatesResult.cc - src/model/PutConfigRuleRequest.cc - src/model/PutConfigRuleResult.cc - src/model/PutConfigurationRecorderRequest.cc - src/model/PutConfigurationRecorderResult.cc - src/model/PutDeliveryChannelRequest.cc - src/model/PutDeliveryChannelResult.cc - src/model/PutEvaluationsRequest.cc - src/model/PutEvaluationsResult.cc - src/model/StartConfigRuleEvaluationRequest.cc - src/model/StartConfigRuleEvaluationResult.cc - src/model/StartConfigurationRecorderRequest.cc - src/model/StartConfigurationRecorderResult.cc - src/model/StopConfigRulesRequest.cc - src/model/StopConfigRulesResult.cc ) + src/model/IgnoreAggregateEvaluationResultsRequest.cc + src/model/IgnoreAggregateEvaluationResultsResult.cc + src/model/IgnoreEvaluationResultsRequest.cc + src/model/IgnoreEvaluationResultsResult.cc + src/model/ListAggregateCompliancePacksRequest.cc + src/model/ListAggregateCompliancePacksResult.cc + src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc + src/model/ListAggregateConfigRuleEvaluationResultsResult.cc + src/model/ListAggregateConfigRulesRequest.cc + src/model/ListAggregateConfigRulesResult.cc + src/model/ListAggregateResourceEvaluationResultsRequest.cc + src/model/ListAggregateResourceEvaluationResultsResult.cc + src/model/ListAggregatorsRequest.cc + src/model/ListAggregatorsResult.cc + src/model/ListCompliancePackTemplatesRequest.cc + src/model/ListCompliancePackTemplatesResult.cc + src/model/ListCompliancePacksRequest.cc + src/model/ListCompliancePacksResult.cc + src/model/ListConfigRuleEvaluationResultsRequest.cc + src/model/ListConfigRuleEvaluationResultsResult.cc + src/model/ListResourceEvaluationResultsRequest.cc + src/model/ListResourceEvaluationResultsResult.cc + src/model/RevertAggregateEvaluationResultsRequest.cc + src/model/RevertAggregateEvaluationResultsResult.cc + src/model/RevertEvaluationResultsRequest.cc + src/model/RevertEvaluationResultsResult.cc + src/model/StartAggregateConfigRuleEvaluationRequest.cc + src/model/StartAggregateConfigRuleEvaluationResult.cc + src/model/UpdateAggregateCompliancePackRequest.cc + src/model/UpdateAggregateCompliancePackResult.cc + src/model/UpdateAggregateConfigRuleRequest.cc + src/model/UpdateAggregateConfigRuleResult.cc + src/model/UpdateAggregatorRequest.cc + src/model/UpdateAggregatorResult.cc + src/model/UpdateCompliancePackRequest.cc + src/model/UpdateCompliancePackResult.cc + src/model/UpdateConfigRuleRequest.cc + src/model/UpdateConfigRuleResult.cc ) add_library(config ${LIB_TYPE} ${config_public_header} diff --git a/config/include/alibabacloud/config/ConfigClient.h b/config/include/alibabacloud/config/ConfigClient.h index 598c259bd..7eec60b0e 100644 --- a/config/include/alibabacloud/config/ConfigClient.h +++ b/config/include/alibabacloud/config/ConfigClient.h @@ -22,58 +22,136 @@ #include #include #include "ConfigExport.h" -#include "model/ActiveConfigRulesRequest.h" -#include "model/ActiveConfigRulesResult.h" -#include "model/DeleteConfigRulesRequest.h" -#include "model/DeleteConfigRulesResult.h" -#include "model/DescribeComplianceRequest.h" -#include "model/DescribeComplianceResult.h" -#include "model/DescribeComplianceSummaryRequest.h" -#include "model/DescribeComplianceSummaryResult.h" -#include "model/DescribeConfigRuleRequest.h" -#include "model/DescribeConfigRuleResult.h" -#include "model/DescribeConfigurationRecorderRequest.h" -#include "model/DescribeConfigurationRecorderResult.h" -#include "model/DescribeDeliveryChannelsRequest.h" -#include "model/DescribeDeliveryChannelsResult.h" -#include "model/DescribeDiscoveredResourceRequest.h" -#include "model/DescribeDiscoveredResourceResult.h" -#include "model/DescribeEvaluationResultsRequest.h" -#include "model/DescribeEvaluationResultsResult.h" -#include "model/GetAggregateDiscoveredResourceRequest.h" -#include "model/GetAggregateDiscoveredResourceResult.h" -#include "model/GetDiscoveredResourceCountsRequest.h" -#include "model/GetDiscoveredResourceCountsResult.h" -#include "model/GetDiscoveredResourceSummaryRequest.h" -#include "model/GetDiscoveredResourceSummaryResult.h" +#include "model/ActiveAggregateConfigRulesRequest.h" +#include "model/ActiveAggregateConfigRulesResult.h" +#include "model/AttachAggregateConfigRuleToCompliancePackRequest.h" +#include "model/AttachAggregateConfigRuleToCompliancePackResult.h" +#include "model/AttachConfigRuleToCompliancePackRequest.h" +#include "model/AttachConfigRuleToCompliancePackResult.h" +#include "model/CreateAggregateCompliancePackRequest.h" +#include "model/CreateAggregateCompliancePackResult.h" +#include "model/CreateAggregateConfigRuleRequest.h" +#include "model/CreateAggregateConfigRuleResult.h" +#include "model/CreateAggregatorRequest.h" +#include "model/CreateAggregatorResult.h" +#include "model/CreateCompliancePackRequest.h" +#include "model/CreateCompliancePackResult.h" +#include "model/CreateConfigRuleRequest.h" +#include "model/CreateConfigRuleResult.h" +#include "model/DeactiveAggregateConfigRulesRequest.h" +#include "model/DeactiveAggregateConfigRulesResult.h" +#include "model/DeactiveConfigRulesRequest.h" +#include "model/DeactiveConfigRulesResult.h" +#include "model/DeleteAggregateCompliancePacksRequest.h" +#include "model/DeleteAggregateCompliancePacksResult.h" +#include "model/DeleteAggregateConfigRulesRequest.h" +#include "model/DeleteAggregateConfigRulesResult.h" +#include "model/DeleteAggregatorsRequest.h" +#include "model/DeleteAggregatorsResult.h" +#include "model/DeleteCompliancePacksRequest.h" +#include "model/DeleteCompliancePacksResult.h" +#include "model/DetachAggregateConfigRuleToCompliancePackRequest.h" +#include "model/DetachAggregateConfigRuleToCompliancePackResult.h" +#include "model/DetachConfigRuleToCompliancePackRequest.h" +#include "model/DetachConfigRuleToCompliancePackResult.h" +#include "model/GenerateAggregateCompliancePackReportRequest.h" +#include "model/GenerateAggregateCompliancePackReportResult.h" +#include "model/GenerateAggregateConfigRulesReportRequest.h" +#include "model/GenerateAggregateConfigRulesReportResult.h" +#include "model/GenerateCompliancePackReportRequest.h" +#include "model/GenerateCompliancePackReportResult.h" +#include "model/GenerateConfigRulesReportRequest.h" +#include "model/GenerateConfigRulesReportResult.h" +#include "model/GetAggregateAccountComplianceByPackRequest.h" +#include "model/GetAggregateAccountComplianceByPackResult.h" +#include "model/GetAggregateCompliancePackRequest.h" +#include "model/GetAggregateCompliancePackResult.h" +#include "model/GetAggregateCompliancePackReportRequest.h" +#include "model/GetAggregateCompliancePackReportResult.h" +#include "model/GetAggregateConfigRuleRequest.h" +#include "model/GetAggregateConfigRuleResult.h" +#include "model/GetAggregateConfigRuleComplianceByPackRequest.h" +#include "model/GetAggregateConfigRuleComplianceByPackResult.h" +#include "model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h" +#include "model/GetAggregateConfigRuleSummaryByRiskLevelResult.h" +#include "model/GetAggregateConfigRulesReportRequest.h" +#include "model/GetAggregateConfigRulesReportResult.h" +#include "model/GetAggregateResourceComplianceByConfigRuleRequest.h" +#include "model/GetAggregateResourceComplianceByConfigRuleResult.h" +#include "model/GetAggregateResourceComplianceByPackRequest.h" +#include "model/GetAggregateResourceComplianceByPackResult.h" +#include "model/GetAggregateResourceComplianceTimelineRequest.h" +#include "model/GetAggregateResourceComplianceTimelineResult.h" +#include "model/GetAggregateResourceConfigurationTimelineRequest.h" +#include "model/GetAggregateResourceConfigurationTimelineResult.h" +#include "model/GetAggregateResourceCountsGroupByRegionRequest.h" +#include "model/GetAggregateResourceCountsGroupByRegionResult.h" +#include "model/GetAggregateResourceCountsGroupByResourceTypeRequest.h" +#include "model/GetAggregateResourceCountsGroupByResourceTypeResult.h" +#include "model/GetAggregatorRequest.h" +#include "model/GetAggregatorResult.h" +#include "model/GetCompliancePackRequest.h" +#include "model/GetCompliancePackResult.h" +#include "model/GetCompliancePackReportRequest.h" +#include "model/GetCompliancePackReportResult.h" +#include "model/GetConfigRuleRequest.h" +#include "model/GetConfigRuleResult.h" +#include "model/GetConfigRuleComplianceByPackRequest.h" +#include "model/GetConfigRuleComplianceByPackResult.h" +#include "model/GetConfigRuleSummaryByRiskLevelRequest.h" +#include "model/GetConfigRuleSummaryByRiskLevelResult.h" +#include "model/GetConfigRulesReportRequest.h" +#include "model/GetConfigRulesReportResult.h" +#include "model/GetDiscoveredResourceCountsGroupByRegionRequest.h" +#include "model/GetDiscoveredResourceCountsGroupByRegionResult.h" +#include "model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h" +#include "model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h" +#include "model/GetResourceComplianceByConfigRuleRequest.h" +#include "model/GetResourceComplianceByConfigRuleResult.h" +#include "model/GetResourceComplianceByPackRequest.h" +#include "model/GetResourceComplianceByPackResult.h" #include "model/GetResourceComplianceTimelineRequest.h" #include "model/GetResourceComplianceTimelineResult.h" #include "model/GetResourceConfigurationTimelineRequest.h" #include "model/GetResourceConfigurationTimelineResult.h" -#include "model/GetSupportedResourceTypesRequest.h" -#include "model/GetSupportedResourceTypesResult.h" -#include "model/ListAggregateDiscoveredResourcesRequest.h" -#include "model/ListAggregateDiscoveredResourcesResult.h" -#include "model/ListConfigRulesRequest.h" -#include "model/ListConfigRulesResult.h" -#include "model/ListDiscoveredResourcesRequest.h" -#include "model/ListDiscoveredResourcesResult.h" -#include "model/ListRemediationTemplatesRequest.h" -#include "model/ListRemediationTemplatesResult.h" -#include "model/PutConfigRuleRequest.h" -#include "model/PutConfigRuleResult.h" -#include "model/PutConfigurationRecorderRequest.h" -#include "model/PutConfigurationRecorderResult.h" -#include "model/PutDeliveryChannelRequest.h" -#include "model/PutDeliveryChannelResult.h" -#include "model/PutEvaluationsRequest.h" -#include "model/PutEvaluationsResult.h" -#include "model/StartConfigRuleEvaluationRequest.h" -#include "model/StartConfigRuleEvaluationResult.h" -#include "model/StartConfigurationRecorderRequest.h" -#include "model/StartConfigurationRecorderResult.h" -#include "model/StopConfigRulesRequest.h" -#include "model/StopConfigRulesResult.h" +#include "model/IgnoreAggregateEvaluationResultsRequest.h" +#include "model/IgnoreAggregateEvaluationResultsResult.h" +#include "model/IgnoreEvaluationResultsRequest.h" +#include "model/IgnoreEvaluationResultsResult.h" +#include "model/ListAggregateCompliancePacksRequest.h" +#include "model/ListAggregateCompliancePacksResult.h" +#include "model/ListAggregateConfigRuleEvaluationResultsRequest.h" +#include "model/ListAggregateConfigRuleEvaluationResultsResult.h" +#include "model/ListAggregateConfigRulesRequest.h" +#include "model/ListAggregateConfigRulesResult.h" +#include "model/ListAggregateResourceEvaluationResultsRequest.h" +#include "model/ListAggregateResourceEvaluationResultsResult.h" +#include "model/ListAggregatorsRequest.h" +#include "model/ListAggregatorsResult.h" +#include "model/ListCompliancePackTemplatesRequest.h" +#include "model/ListCompliancePackTemplatesResult.h" +#include "model/ListCompliancePacksRequest.h" +#include "model/ListCompliancePacksResult.h" +#include "model/ListConfigRuleEvaluationResultsRequest.h" +#include "model/ListConfigRuleEvaluationResultsResult.h" +#include "model/ListResourceEvaluationResultsRequest.h" +#include "model/ListResourceEvaluationResultsResult.h" +#include "model/RevertAggregateEvaluationResultsRequest.h" +#include "model/RevertAggregateEvaluationResultsResult.h" +#include "model/RevertEvaluationResultsRequest.h" +#include "model/RevertEvaluationResultsResult.h" +#include "model/StartAggregateConfigRuleEvaluationRequest.h" +#include "model/StartAggregateConfigRuleEvaluationResult.h" +#include "model/UpdateAggregateCompliancePackRequest.h" +#include "model/UpdateAggregateCompliancePackResult.h" +#include "model/UpdateAggregateConfigRuleRequest.h" +#include "model/UpdateAggregateConfigRuleResult.h" +#include "model/UpdateAggregatorRequest.h" +#include "model/UpdateAggregatorResult.h" +#include "model/UpdateCompliancePackRequest.h" +#include "model/UpdateCompliancePackResult.h" +#include "model/UpdateConfigRuleRequest.h" +#include "model/UpdateConfigRuleResult.h" namespace AlibabaCloud @@ -83,167 +161,401 @@ namespace AlibabaCloud class ALIBABACLOUD_CONFIG_EXPORT ConfigClient : public RpcServiceClient { public: - typedef Outcome ActiveConfigRulesOutcome; - typedef std::future ActiveConfigRulesOutcomeCallable; - typedef std::function&)> ActiveConfigRulesAsyncHandler; - typedef Outcome DeleteConfigRulesOutcome; - typedef std::future DeleteConfigRulesOutcomeCallable; - typedef std::function&)> DeleteConfigRulesAsyncHandler; - typedef Outcome DescribeComplianceOutcome; - typedef std::future DescribeComplianceOutcomeCallable; - typedef std::function&)> DescribeComplianceAsyncHandler; - typedef Outcome DescribeComplianceSummaryOutcome; - typedef std::future DescribeComplianceSummaryOutcomeCallable; - typedef std::function&)> DescribeComplianceSummaryAsyncHandler; - typedef Outcome DescribeConfigRuleOutcome; - typedef std::future DescribeConfigRuleOutcomeCallable; - typedef std::function&)> DescribeConfigRuleAsyncHandler; - typedef Outcome DescribeConfigurationRecorderOutcome; - typedef std::future DescribeConfigurationRecorderOutcomeCallable; - typedef std::function&)> DescribeConfigurationRecorderAsyncHandler; - typedef Outcome DescribeDeliveryChannelsOutcome; - typedef std::future DescribeDeliveryChannelsOutcomeCallable; - typedef std::function&)> DescribeDeliveryChannelsAsyncHandler; - typedef Outcome DescribeDiscoveredResourceOutcome; - typedef std::future DescribeDiscoveredResourceOutcomeCallable; - typedef std::function&)> DescribeDiscoveredResourceAsyncHandler; - typedef Outcome DescribeEvaluationResultsOutcome; - typedef std::future DescribeEvaluationResultsOutcomeCallable; - typedef std::function&)> DescribeEvaluationResultsAsyncHandler; - typedef Outcome GetAggregateDiscoveredResourceOutcome; - typedef std::future GetAggregateDiscoveredResourceOutcomeCallable; - typedef std::function&)> GetAggregateDiscoveredResourceAsyncHandler; - typedef Outcome GetDiscoveredResourceCountsOutcome; - typedef std::future GetDiscoveredResourceCountsOutcomeCallable; - typedef std::function&)> GetDiscoveredResourceCountsAsyncHandler; - typedef Outcome GetDiscoveredResourceSummaryOutcome; - typedef std::future GetDiscoveredResourceSummaryOutcomeCallable; - typedef std::function&)> GetDiscoveredResourceSummaryAsyncHandler; + typedef Outcome ActiveAggregateConfigRulesOutcome; + typedef std::future ActiveAggregateConfigRulesOutcomeCallable; + typedef std::function&)> ActiveAggregateConfigRulesAsyncHandler; + typedef Outcome AttachAggregateConfigRuleToCompliancePackOutcome; + typedef std::future AttachAggregateConfigRuleToCompliancePackOutcomeCallable; + typedef std::function&)> AttachAggregateConfigRuleToCompliancePackAsyncHandler; + typedef Outcome AttachConfigRuleToCompliancePackOutcome; + typedef std::future AttachConfigRuleToCompliancePackOutcomeCallable; + typedef std::function&)> AttachConfigRuleToCompliancePackAsyncHandler; + typedef Outcome CreateAggregateCompliancePackOutcome; + typedef std::future CreateAggregateCompliancePackOutcomeCallable; + typedef std::function&)> CreateAggregateCompliancePackAsyncHandler; + typedef Outcome CreateAggregateConfigRuleOutcome; + typedef std::future CreateAggregateConfigRuleOutcomeCallable; + typedef std::function&)> CreateAggregateConfigRuleAsyncHandler; + typedef Outcome CreateAggregatorOutcome; + typedef std::future CreateAggregatorOutcomeCallable; + typedef std::function&)> CreateAggregatorAsyncHandler; + typedef Outcome CreateCompliancePackOutcome; + typedef std::future CreateCompliancePackOutcomeCallable; + typedef std::function&)> CreateCompliancePackAsyncHandler; + typedef Outcome CreateConfigRuleOutcome; + typedef std::future CreateConfigRuleOutcomeCallable; + typedef std::function&)> CreateConfigRuleAsyncHandler; + typedef Outcome DeactiveAggregateConfigRulesOutcome; + typedef std::future DeactiveAggregateConfigRulesOutcomeCallable; + typedef std::function&)> DeactiveAggregateConfigRulesAsyncHandler; + typedef Outcome DeactiveConfigRulesOutcome; + typedef std::future DeactiveConfigRulesOutcomeCallable; + typedef std::function&)> DeactiveConfigRulesAsyncHandler; + typedef Outcome DeleteAggregateCompliancePacksOutcome; + typedef std::future DeleteAggregateCompliancePacksOutcomeCallable; + typedef std::function&)> DeleteAggregateCompliancePacksAsyncHandler; + typedef Outcome DeleteAggregateConfigRulesOutcome; + typedef std::future DeleteAggregateConfigRulesOutcomeCallable; + typedef std::function&)> DeleteAggregateConfigRulesAsyncHandler; + typedef Outcome DeleteAggregatorsOutcome; + typedef std::future DeleteAggregatorsOutcomeCallable; + typedef std::function&)> DeleteAggregatorsAsyncHandler; + typedef Outcome DeleteCompliancePacksOutcome; + typedef std::future DeleteCompliancePacksOutcomeCallable; + typedef std::function&)> DeleteCompliancePacksAsyncHandler; + typedef Outcome DetachAggregateConfigRuleToCompliancePackOutcome; + typedef std::future DetachAggregateConfigRuleToCompliancePackOutcomeCallable; + typedef std::function&)> DetachAggregateConfigRuleToCompliancePackAsyncHandler; + typedef Outcome DetachConfigRuleToCompliancePackOutcome; + typedef std::future DetachConfigRuleToCompliancePackOutcomeCallable; + typedef std::function&)> DetachConfigRuleToCompliancePackAsyncHandler; + typedef Outcome GenerateAggregateCompliancePackReportOutcome; + typedef std::future GenerateAggregateCompliancePackReportOutcomeCallable; + typedef std::function&)> GenerateAggregateCompliancePackReportAsyncHandler; + typedef Outcome GenerateAggregateConfigRulesReportOutcome; + typedef std::future GenerateAggregateConfigRulesReportOutcomeCallable; + typedef std::function&)> GenerateAggregateConfigRulesReportAsyncHandler; + typedef Outcome GenerateCompliancePackReportOutcome; + typedef std::future GenerateCompliancePackReportOutcomeCallable; + typedef std::function&)> GenerateCompliancePackReportAsyncHandler; + typedef Outcome GenerateConfigRulesReportOutcome; + typedef std::future GenerateConfigRulesReportOutcomeCallable; + typedef std::function&)> GenerateConfigRulesReportAsyncHandler; + typedef Outcome GetAggregateAccountComplianceByPackOutcome; + typedef std::future GetAggregateAccountComplianceByPackOutcomeCallable; + typedef std::function&)> GetAggregateAccountComplianceByPackAsyncHandler; + typedef Outcome GetAggregateCompliancePackOutcome; + typedef std::future GetAggregateCompliancePackOutcomeCallable; + typedef std::function&)> GetAggregateCompliancePackAsyncHandler; + typedef Outcome GetAggregateCompliancePackReportOutcome; + typedef std::future GetAggregateCompliancePackReportOutcomeCallable; + typedef std::function&)> GetAggregateCompliancePackReportAsyncHandler; + typedef Outcome GetAggregateConfigRuleOutcome; + typedef std::future GetAggregateConfigRuleOutcomeCallable; + typedef std::function&)> GetAggregateConfigRuleAsyncHandler; + typedef Outcome GetAggregateConfigRuleComplianceByPackOutcome; + typedef std::future GetAggregateConfigRuleComplianceByPackOutcomeCallable; + typedef std::function&)> GetAggregateConfigRuleComplianceByPackAsyncHandler; + typedef Outcome GetAggregateConfigRuleSummaryByRiskLevelOutcome; + typedef std::future GetAggregateConfigRuleSummaryByRiskLevelOutcomeCallable; + typedef std::function&)> GetAggregateConfigRuleSummaryByRiskLevelAsyncHandler; + typedef Outcome GetAggregateConfigRulesReportOutcome; + typedef std::future GetAggregateConfigRulesReportOutcomeCallable; + typedef std::function&)> GetAggregateConfigRulesReportAsyncHandler; + typedef Outcome GetAggregateResourceComplianceByConfigRuleOutcome; + typedef std::future GetAggregateResourceComplianceByConfigRuleOutcomeCallable; + typedef std::function&)> GetAggregateResourceComplianceByConfigRuleAsyncHandler; + typedef Outcome GetAggregateResourceComplianceByPackOutcome; + typedef std::future GetAggregateResourceComplianceByPackOutcomeCallable; + typedef std::function&)> GetAggregateResourceComplianceByPackAsyncHandler; + typedef Outcome GetAggregateResourceComplianceTimelineOutcome; + typedef std::future GetAggregateResourceComplianceTimelineOutcomeCallable; + typedef std::function&)> GetAggregateResourceComplianceTimelineAsyncHandler; + typedef Outcome GetAggregateResourceConfigurationTimelineOutcome; + typedef std::future GetAggregateResourceConfigurationTimelineOutcomeCallable; + typedef std::function&)> GetAggregateResourceConfigurationTimelineAsyncHandler; + typedef Outcome GetAggregateResourceCountsGroupByRegionOutcome; + typedef std::future GetAggregateResourceCountsGroupByRegionOutcomeCallable; + typedef std::function&)> GetAggregateResourceCountsGroupByRegionAsyncHandler; + typedef Outcome GetAggregateResourceCountsGroupByResourceTypeOutcome; + typedef std::future GetAggregateResourceCountsGroupByResourceTypeOutcomeCallable; + typedef std::function&)> GetAggregateResourceCountsGroupByResourceTypeAsyncHandler; + typedef Outcome GetAggregatorOutcome; + typedef std::future GetAggregatorOutcomeCallable; + typedef std::function&)> GetAggregatorAsyncHandler; + typedef Outcome GetCompliancePackOutcome; + typedef std::future GetCompliancePackOutcomeCallable; + typedef std::function&)> GetCompliancePackAsyncHandler; + typedef Outcome GetCompliancePackReportOutcome; + typedef std::future GetCompliancePackReportOutcomeCallable; + typedef std::function&)> GetCompliancePackReportAsyncHandler; + typedef Outcome GetConfigRuleOutcome; + typedef std::future GetConfigRuleOutcomeCallable; + typedef std::function&)> GetConfigRuleAsyncHandler; + typedef Outcome GetConfigRuleComplianceByPackOutcome; + typedef std::future GetConfigRuleComplianceByPackOutcomeCallable; + typedef std::function&)> GetConfigRuleComplianceByPackAsyncHandler; + typedef Outcome GetConfigRuleSummaryByRiskLevelOutcome; + typedef std::future GetConfigRuleSummaryByRiskLevelOutcomeCallable; + typedef std::function&)> GetConfigRuleSummaryByRiskLevelAsyncHandler; + typedef Outcome GetConfigRulesReportOutcome; + typedef std::future GetConfigRulesReportOutcomeCallable; + typedef std::function&)> GetConfigRulesReportAsyncHandler; + typedef Outcome GetDiscoveredResourceCountsGroupByRegionOutcome; + typedef std::future GetDiscoveredResourceCountsGroupByRegionOutcomeCallable; + typedef std::function&)> GetDiscoveredResourceCountsGroupByRegionAsyncHandler; + typedef Outcome GetDiscoveredResourceCountsGroupByResourceTypeOutcome; + typedef std::future GetDiscoveredResourceCountsGroupByResourceTypeOutcomeCallable; + typedef std::function&)> GetDiscoveredResourceCountsGroupByResourceTypeAsyncHandler; + typedef Outcome GetResourceComplianceByConfigRuleOutcome; + typedef std::future GetResourceComplianceByConfigRuleOutcomeCallable; + typedef std::function&)> GetResourceComplianceByConfigRuleAsyncHandler; + typedef Outcome GetResourceComplianceByPackOutcome; + typedef std::future GetResourceComplianceByPackOutcomeCallable; + typedef std::function&)> GetResourceComplianceByPackAsyncHandler; typedef Outcome GetResourceComplianceTimelineOutcome; typedef std::future GetResourceComplianceTimelineOutcomeCallable; typedef std::function&)> GetResourceComplianceTimelineAsyncHandler; typedef Outcome GetResourceConfigurationTimelineOutcome; typedef std::future GetResourceConfigurationTimelineOutcomeCallable; typedef std::function&)> GetResourceConfigurationTimelineAsyncHandler; - typedef Outcome GetSupportedResourceTypesOutcome; - typedef std::future GetSupportedResourceTypesOutcomeCallable; - typedef std::function&)> GetSupportedResourceTypesAsyncHandler; - typedef Outcome ListAggregateDiscoveredResourcesOutcome; - typedef std::future ListAggregateDiscoveredResourcesOutcomeCallable; - typedef std::function&)> ListAggregateDiscoveredResourcesAsyncHandler; - typedef Outcome ListConfigRulesOutcome; - typedef std::future ListConfigRulesOutcomeCallable; - typedef std::function&)> ListConfigRulesAsyncHandler; - typedef Outcome ListDiscoveredResourcesOutcome; - typedef std::future ListDiscoveredResourcesOutcomeCallable; - typedef std::function&)> ListDiscoveredResourcesAsyncHandler; - typedef Outcome ListRemediationTemplatesOutcome; - typedef std::future ListRemediationTemplatesOutcomeCallable; - typedef std::function&)> ListRemediationTemplatesAsyncHandler; - typedef Outcome PutConfigRuleOutcome; - typedef std::future PutConfigRuleOutcomeCallable; - typedef std::function&)> PutConfigRuleAsyncHandler; - typedef Outcome PutConfigurationRecorderOutcome; - typedef std::future PutConfigurationRecorderOutcomeCallable; - typedef std::function&)> PutConfigurationRecorderAsyncHandler; - typedef Outcome PutDeliveryChannelOutcome; - typedef std::future PutDeliveryChannelOutcomeCallable; - typedef std::function&)> PutDeliveryChannelAsyncHandler; - typedef Outcome PutEvaluationsOutcome; - typedef std::future PutEvaluationsOutcomeCallable; - typedef std::function&)> PutEvaluationsAsyncHandler; - typedef Outcome StartConfigRuleEvaluationOutcome; - typedef std::future StartConfigRuleEvaluationOutcomeCallable; - typedef std::function&)> StartConfigRuleEvaluationAsyncHandler; - typedef Outcome StartConfigurationRecorderOutcome; - typedef std::future StartConfigurationRecorderOutcomeCallable; - typedef std::function&)> StartConfigurationRecorderAsyncHandler; - typedef Outcome StopConfigRulesOutcome; - typedef std::future StopConfigRulesOutcomeCallable; - typedef std::function&)> StopConfigRulesAsyncHandler; + typedef Outcome IgnoreAggregateEvaluationResultsOutcome; + typedef std::future IgnoreAggregateEvaluationResultsOutcomeCallable; + typedef std::function&)> IgnoreAggregateEvaluationResultsAsyncHandler; + typedef Outcome IgnoreEvaluationResultsOutcome; + typedef std::future IgnoreEvaluationResultsOutcomeCallable; + typedef std::function&)> IgnoreEvaluationResultsAsyncHandler; + typedef Outcome ListAggregateCompliancePacksOutcome; + typedef std::future ListAggregateCompliancePacksOutcomeCallable; + typedef std::function&)> ListAggregateCompliancePacksAsyncHandler; + typedef Outcome ListAggregateConfigRuleEvaluationResultsOutcome; + typedef std::future ListAggregateConfigRuleEvaluationResultsOutcomeCallable; + typedef std::function&)> ListAggregateConfigRuleEvaluationResultsAsyncHandler; + typedef Outcome ListAggregateConfigRulesOutcome; + typedef std::future ListAggregateConfigRulesOutcomeCallable; + typedef std::function&)> ListAggregateConfigRulesAsyncHandler; + typedef Outcome ListAggregateResourceEvaluationResultsOutcome; + typedef std::future ListAggregateResourceEvaluationResultsOutcomeCallable; + typedef std::function&)> ListAggregateResourceEvaluationResultsAsyncHandler; + typedef Outcome ListAggregatorsOutcome; + typedef std::future ListAggregatorsOutcomeCallable; + typedef std::function&)> ListAggregatorsAsyncHandler; + typedef Outcome ListCompliancePackTemplatesOutcome; + typedef std::future ListCompliancePackTemplatesOutcomeCallable; + typedef std::function&)> ListCompliancePackTemplatesAsyncHandler; + typedef Outcome ListCompliancePacksOutcome; + typedef std::future ListCompliancePacksOutcomeCallable; + typedef std::function&)> ListCompliancePacksAsyncHandler; + typedef Outcome ListConfigRuleEvaluationResultsOutcome; + typedef std::future ListConfigRuleEvaluationResultsOutcomeCallable; + typedef std::function&)> ListConfigRuleEvaluationResultsAsyncHandler; + typedef Outcome ListResourceEvaluationResultsOutcome; + typedef std::future ListResourceEvaluationResultsOutcomeCallable; + typedef std::function&)> ListResourceEvaluationResultsAsyncHandler; + typedef Outcome RevertAggregateEvaluationResultsOutcome; + typedef std::future RevertAggregateEvaluationResultsOutcomeCallable; + typedef std::function&)> RevertAggregateEvaluationResultsAsyncHandler; + typedef Outcome RevertEvaluationResultsOutcome; + typedef std::future RevertEvaluationResultsOutcomeCallable; + typedef std::function&)> RevertEvaluationResultsAsyncHandler; + typedef Outcome StartAggregateConfigRuleEvaluationOutcome; + typedef std::future StartAggregateConfigRuleEvaluationOutcomeCallable; + typedef std::function&)> StartAggregateConfigRuleEvaluationAsyncHandler; + typedef Outcome UpdateAggregateCompliancePackOutcome; + typedef std::future UpdateAggregateCompliancePackOutcomeCallable; + typedef std::function&)> UpdateAggregateCompliancePackAsyncHandler; + typedef Outcome UpdateAggregateConfigRuleOutcome; + typedef std::future UpdateAggregateConfigRuleOutcomeCallable; + typedef std::function&)> UpdateAggregateConfigRuleAsyncHandler; + typedef Outcome UpdateAggregatorOutcome; + typedef std::future UpdateAggregatorOutcomeCallable; + typedef std::function&)> UpdateAggregatorAsyncHandler; + typedef Outcome UpdateCompliancePackOutcome; + typedef std::future UpdateCompliancePackOutcomeCallable; + typedef std::function&)> UpdateCompliancePackAsyncHandler; + typedef Outcome UpdateConfigRuleOutcome; + typedef std::future UpdateConfigRuleOutcomeCallable; + typedef std::function&)> UpdateConfigRuleAsyncHandler; ConfigClient(const Credentials &credentials, const ClientConfiguration &configuration); ConfigClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); ConfigClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~ConfigClient(); - ActiveConfigRulesOutcome activeConfigRules(const Model::ActiveConfigRulesRequest &request)const; - void activeConfigRulesAsync(const Model::ActiveConfigRulesRequest& request, const ActiveConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActiveConfigRulesOutcomeCallable activeConfigRulesCallable(const Model::ActiveConfigRulesRequest& request) const; - DeleteConfigRulesOutcome deleteConfigRules(const Model::DeleteConfigRulesRequest &request)const; - void deleteConfigRulesAsync(const Model::DeleteConfigRulesRequest& request, const DeleteConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteConfigRulesOutcomeCallable deleteConfigRulesCallable(const Model::DeleteConfigRulesRequest& request) const; - DescribeComplianceOutcome describeCompliance(const Model::DescribeComplianceRequest &request)const; - void describeComplianceAsync(const Model::DescribeComplianceRequest& request, const DescribeComplianceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeComplianceOutcomeCallable describeComplianceCallable(const Model::DescribeComplianceRequest& request) const; - DescribeComplianceSummaryOutcome describeComplianceSummary(const Model::DescribeComplianceSummaryRequest &request)const; - void describeComplianceSummaryAsync(const Model::DescribeComplianceSummaryRequest& request, const DescribeComplianceSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeComplianceSummaryOutcomeCallable describeComplianceSummaryCallable(const Model::DescribeComplianceSummaryRequest& request) const; - DescribeConfigRuleOutcome describeConfigRule(const Model::DescribeConfigRuleRequest &request)const; - void describeConfigRuleAsync(const Model::DescribeConfigRuleRequest& request, const DescribeConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeConfigRuleOutcomeCallable describeConfigRuleCallable(const Model::DescribeConfigRuleRequest& request) const; - DescribeConfigurationRecorderOutcome describeConfigurationRecorder(const Model::DescribeConfigurationRecorderRequest &request)const; - void describeConfigurationRecorderAsync(const Model::DescribeConfigurationRecorderRequest& request, const DescribeConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeConfigurationRecorderOutcomeCallable describeConfigurationRecorderCallable(const Model::DescribeConfigurationRecorderRequest& request) const; - DescribeDeliveryChannelsOutcome describeDeliveryChannels(const Model::DescribeDeliveryChannelsRequest &request)const; - void describeDeliveryChannelsAsync(const Model::DescribeDeliveryChannelsRequest& request, const DescribeDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDeliveryChannelsOutcomeCallable describeDeliveryChannelsCallable(const Model::DescribeDeliveryChannelsRequest& request) const; - DescribeDiscoveredResourceOutcome describeDiscoveredResource(const Model::DescribeDiscoveredResourceRequest &request)const; - void describeDiscoveredResourceAsync(const Model::DescribeDiscoveredResourceRequest& request, const DescribeDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDiscoveredResourceOutcomeCallable describeDiscoveredResourceCallable(const Model::DescribeDiscoveredResourceRequest& request) const; - DescribeEvaluationResultsOutcome describeEvaluationResults(const Model::DescribeEvaluationResultsRequest &request)const; - void describeEvaluationResultsAsync(const Model::DescribeEvaluationResultsRequest& request, const DescribeEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeEvaluationResultsOutcomeCallable describeEvaluationResultsCallable(const Model::DescribeEvaluationResultsRequest& request) const; - GetAggregateDiscoveredResourceOutcome getAggregateDiscoveredResource(const Model::GetAggregateDiscoveredResourceRequest &request)const; - void getAggregateDiscoveredResourceAsync(const Model::GetAggregateDiscoveredResourceRequest& request, const GetAggregateDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateDiscoveredResourceOutcomeCallable getAggregateDiscoveredResourceCallable(const Model::GetAggregateDiscoveredResourceRequest& request) const; - GetDiscoveredResourceCountsOutcome getDiscoveredResourceCounts(const Model::GetDiscoveredResourceCountsRequest &request)const; - void getDiscoveredResourceCountsAsync(const Model::GetDiscoveredResourceCountsRequest& request, const GetDiscoveredResourceCountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetDiscoveredResourceCountsOutcomeCallable getDiscoveredResourceCountsCallable(const Model::GetDiscoveredResourceCountsRequest& request) const; - GetDiscoveredResourceSummaryOutcome getDiscoveredResourceSummary(const Model::GetDiscoveredResourceSummaryRequest &request)const; - void getDiscoveredResourceSummaryAsync(const Model::GetDiscoveredResourceSummaryRequest& request, const GetDiscoveredResourceSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetDiscoveredResourceSummaryOutcomeCallable getDiscoveredResourceSummaryCallable(const Model::GetDiscoveredResourceSummaryRequest& request) const; + ActiveAggregateConfigRulesOutcome activeAggregateConfigRules(const Model::ActiveAggregateConfigRulesRequest &request)const; + void activeAggregateConfigRulesAsync(const Model::ActiveAggregateConfigRulesRequest& request, const ActiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActiveAggregateConfigRulesOutcomeCallable activeAggregateConfigRulesCallable(const Model::ActiveAggregateConfigRulesRequest& request) const; + AttachAggregateConfigRuleToCompliancePackOutcome attachAggregateConfigRuleToCompliancePack(const Model::AttachAggregateConfigRuleToCompliancePackRequest &request)const; + void attachAggregateConfigRuleToCompliancePackAsync(const Model::AttachAggregateConfigRuleToCompliancePackRequest& request, const AttachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachAggregateConfigRuleToCompliancePackOutcomeCallable attachAggregateConfigRuleToCompliancePackCallable(const Model::AttachAggregateConfigRuleToCompliancePackRequest& request) const; + AttachConfigRuleToCompliancePackOutcome attachConfigRuleToCompliancePack(const Model::AttachConfigRuleToCompliancePackRequest &request)const; + void attachConfigRuleToCompliancePackAsync(const Model::AttachConfigRuleToCompliancePackRequest& request, const AttachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachConfigRuleToCompliancePackOutcomeCallable attachConfigRuleToCompliancePackCallable(const Model::AttachConfigRuleToCompliancePackRequest& request) const; + CreateAggregateCompliancePackOutcome createAggregateCompliancePack(const Model::CreateAggregateCompliancePackRequest &request)const; + void createAggregateCompliancePackAsync(const Model::CreateAggregateCompliancePackRequest& request, const CreateAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAggregateCompliancePackOutcomeCallable createAggregateCompliancePackCallable(const Model::CreateAggregateCompliancePackRequest& request) const; + CreateAggregateConfigRuleOutcome createAggregateConfigRule(const Model::CreateAggregateConfigRuleRequest &request)const; + void createAggregateConfigRuleAsync(const Model::CreateAggregateConfigRuleRequest& request, const CreateAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAggregateConfigRuleOutcomeCallable createAggregateConfigRuleCallable(const Model::CreateAggregateConfigRuleRequest& request) const; + CreateAggregatorOutcome createAggregator(const Model::CreateAggregatorRequest &request)const; + void createAggregatorAsync(const Model::CreateAggregatorRequest& request, const CreateAggregatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAggregatorOutcomeCallable createAggregatorCallable(const Model::CreateAggregatorRequest& request) const; + CreateCompliancePackOutcome createCompliancePack(const Model::CreateCompliancePackRequest &request)const; + void createCompliancePackAsync(const Model::CreateCompliancePackRequest& request, const CreateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCompliancePackOutcomeCallable createCompliancePackCallable(const Model::CreateCompliancePackRequest& request) const; + CreateConfigRuleOutcome createConfigRule(const Model::CreateConfigRuleRequest &request)const; + void createConfigRuleAsync(const Model::CreateConfigRuleRequest& request, const CreateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateConfigRuleOutcomeCallable createConfigRuleCallable(const Model::CreateConfigRuleRequest& request) const; + DeactiveAggregateConfigRulesOutcome deactiveAggregateConfigRules(const Model::DeactiveAggregateConfigRulesRequest &request)const; + void deactiveAggregateConfigRulesAsync(const Model::DeactiveAggregateConfigRulesRequest& request, const DeactiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeactiveAggregateConfigRulesOutcomeCallable deactiveAggregateConfigRulesCallable(const Model::DeactiveAggregateConfigRulesRequest& request) const; + DeactiveConfigRulesOutcome deactiveConfigRules(const Model::DeactiveConfigRulesRequest &request)const; + void deactiveConfigRulesAsync(const Model::DeactiveConfigRulesRequest& request, const DeactiveConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeactiveConfigRulesOutcomeCallable deactiveConfigRulesCallable(const Model::DeactiveConfigRulesRequest& request) const; + DeleteAggregateCompliancePacksOutcome deleteAggregateCompliancePacks(const Model::DeleteAggregateCompliancePacksRequest &request)const; + void deleteAggregateCompliancePacksAsync(const Model::DeleteAggregateCompliancePacksRequest& request, const DeleteAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAggregateCompliancePacksOutcomeCallable deleteAggregateCompliancePacksCallable(const Model::DeleteAggregateCompliancePacksRequest& request) const; + DeleteAggregateConfigRulesOutcome deleteAggregateConfigRules(const Model::DeleteAggregateConfigRulesRequest &request)const; + void deleteAggregateConfigRulesAsync(const Model::DeleteAggregateConfigRulesRequest& request, const DeleteAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAggregateConfigRulesOutcomeCallable deleteAggregateConfigRulesCallable(const Model::DeleteAggregateConfigRulesRequest& request) const; + DeleteAggregatorsOutcome deleteAggregators(const Model::DeleteAggregatorsRequest &request)const; + void deleteAggregatorsAsync(const Model::DeleteAggregatorsRequest& request, const DeleteAggregatorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAggregatorsOutcomeCallable deleteAggregatorsCallable(const Model::DeleteAggregatorsRequest& request) const; + DeleteCompliancePacksOutcome deleteCompliancePacks(const Model::DeleteCompliancePacksRequest &request)const; + void deleteCompliancePacksAsync(const Model::DeleteCompliancePacksRequest& request, const DeleteCompliancePacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCompliancePacksOutcomeCallable deleteCompliancePacksCallable(const Model::DeleteCompliancePacksRequest& request) const; + DetachAggregateConfigRuleToCompliancePackOutcome detachAggregateConfigRuleToCompliancePack(const Model::DetachAggregateConfigRuleToCompliancePackRequest &request)const; + void detachAggregateConfigRuleToCompliancePackAsync(const Model::DetachAggregateConfigRuleToCompliancePackRequest& request, const DetachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachAggregateConfigRuleToCompliancePackOutcomeCallable detachAggregateConfigRuleToCompliancePackCallable(const Model::DetachAggregateConfigRuleToCompliancePackRequest& request) const; + DetachConfigRuleToCompliancePackOutcome detachConfigRuleToCompliancePack(const Model::DetachConfigRuleToCompliancePackRequest &request)const; + void detachConfigRuleToCompliancePackAsync(const Model::DetachConfigRuleToCompliancePackRequest& request, const DetachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachConfigRuleToCompliancePackOutcomeCallable detachConfigRuleToCompliancePackCallable(const Model::DetachConfigRuleToCompliancePackRequest& request) const; + GenerateAggregateCompliancePackReportOutcome generateAggregateCompliancePackReport(const Model::GenerateAggregateCompliancePackReportRequest &request)const; + void generateAggregateCompliancePackReportAsync(const Model::GenerateAggregateCompliancePackReportRequest& request, const GenerateAggregateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateAggregateCompliancePackReportOutcomeCallable generateAggregateCompliancePackReportCallable(const Model::GenerateAggregateCompliancePackReportRequest& request) const; + GenerateAggregateConfigRulesReportOutcome generateAggregateConfigRulesReport(const Model::GenerateAggregateConfigRulesReportRequest &request)const; + void generateAggregateConfigRulesReportAsync(const Model::GenerateAggregateConfigRulesReportRequest& request, const GenerateAggregateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateAggregateConfigRulesReportOutcomeCallable generateAggregateConfigRulesReportCallable(const Model::GenerateAggregateConfigRulesReportRequest& request) const; + GenerateCompliancePackReportOutcome generateCompliancePackReport(const Model::GenerateCompliancePackReportRequest &request)const; + void generateCompliancePackReportAsync(const Model::GenerateCompliancePackReportRequest& request, const GenerateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateCompliancePackReportOutcomeCallable generateCompliancePackReportCallable(const Model::GenerateCompliancePackReportRequest& request) const; + GenerateConfigRulesReportOutcome generateConfigRulesReport(const Model::GenerateConfigRulesReportRequest &request)const; + void generateConfigRulesReportAsync(const Model::GenerateConfigRulesReportRequest& request, const GenerateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateConfigRulesReportOutcomeCallable generateConfigRulesReportCallable(const Model::GenerateConfigRulesReportRequest& request) const; + GetAggregateAccountComplianceByPackOutcome getAggregateAccountComplianceByPack(const Model::GetAggregateAccountComplianceByPackRequest &request)const; + void getAggregateAccountComplianceByPackAsync(const Model::GetAggregateAccountComplianceByPackRequest& request, const GetAggregateAccountComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateAccountComplianceByPackOutcomeCallable getAggregateAccountComplianceByPackCallable(const Model::GetAggregateAccountComplianceByPackRequest& request) const; + GetAggregateCompliancePackOutcome getAggregateCompliancePack(const Model::GetAggregateCompliancePackRequest &request)const; + void getAggregateCompliancePackAsync(const Model::GetAggregateCompliancePackRequest& request, const GetAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateCompliancePackOutcomeCallable getAggregateCompliancePackCallable(const Model::GetAggregateCompliancePackRequest& request) const; + GetAggregateCompliancePackReportOutcome getAggregateCompliancePackReport(const Model::GetAggregateCompliancePackReportRequest &request)const; + void getAggregateCompliancePackReportAsync(const Model::GetAggregateCompliancePackReportRequest& request, const GetAggregateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateCompliancePackReportOutcomeCallable getAggregateCompliancePackReportCallable(const Model::GetAggregateCompliancePackReportRequest& request) const; + GetAggregateConfigRuleOutcome getAggregateConfigRule(const Model::GetAggregateConfigRuleRequest &request)const; + void getAggregateConfigRuleAsync(const Model::GetAggregateConfigRuleRequest& request, const GetAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateConfigRuleOutcomeCallable getAggregateConfigRuleCallable(const Model::GetAggregateConfigRuleRequest& request) const; + GetAggregateConfigRuleComplianceByPackOutcome getAggregateConfigRuleComplianceByPack(const Model::GetAggregateConfigRuleComplianceByPackRequest &request)const; + void getAggregateConfigRuleComplianceByPackAsync(const Model::GetAggregateConfigRuleComplianceByPackRequest& request, const GetAggregateConfigRuleComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateConfigRuleComplianceByPackOutcomeCallable getAggregateConfigRuleComplianceByPackCallable(const Model::GetAggregateConfigRuleComplianceByPackRequest& request) const; + GetAggregateConfigRuleSummaryByRiskLevelOutcome getAggregateConfigRuleSummaryByRiskLevel(const Model::GetAggregateConfigRuleSummaryByRiskLevelRequest &request)const; + void getAggregateConfigRuleSummaryByRiskLevelAsync(const Model::GetAggregateConfigRuleSummaryByRiskLevelRequest& request, const GetAggregateConfigRuleSummaryByRiskLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateConfigRuleSummaryByRiskLevelOutcomeCallable getAggregateConfigRuleSummaryByRiskLevelCallable(const Model::GetAggregateConfigRuleSummaryByRiskLevelRequest& request) const; + GetAggregateConfigRulesReportOutcome getAggregateConfigRulesReport(const Model::GetAggregateConfigRulesReportRequest &request)const; + void getAggregateConfigRulesReportAsync(const Model::GetAggregateConfigRulesReportRequest& request, const GetAggregateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateConfigRulesReportOutcomeCallable getAggregateConfigRulesReportCallable(const Model::GetAggregateConfigRulesReportRequest& request) const; + GetAggregateResourceComplianceByConfigRuleOutcome getAggregateResourceComplianceByConfigRule(const Model::GetAggregateResourceComplianceByConfigRuleRequest &request)const; + void getAggregateResourceComplianceByConfigRuleAsync(const Model::GetAggregateResourceComplianceByConfigRuleRequest& request, const GetAggregateResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateResourceComplianceByConfigRuleOutcomeCallable getAggregateResourceComplianceByConfigRuleCallable(const Model::GetAggregateResourceComplianceByConfigRuleRequest& request) const; + GetAggregateResourceComplianceByPackOutcome getAggregateResourceComplianceByPack(const Model::GetAggregateResourceComplianceByPackRequest &request)const; + void getAggregateResourceComplianceByPackAsync(const Model::GetAggregateResourceComplianceByPackRequest& request, const GetAggregateResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateResourceComplianceByPackOutcomeCallable getAggregateResourceComplianceByPackCallable(const Model::GetAggregateResourceComplianceByPackRequest& request) const; + GetAggregateResourceComplianceTimelineOutcome getAggregateResourceComplianceTimeline(const Model::GetAggregateResourceComplianceTimelineRequest &request)const; + void getAggregateResourceComplianceTimelineAsync(const Model::GetAggregateResourceComplianceTimelineRequest& request, const GetAggregateResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateResourceComplianceTimelineOutcomeCallable getAggregateResourceComplianceTimelineCallable(const Model::GetAggregateResourceComplianceTimelineRequest& request) const; + GetAggregateResourceConfigurationTimelineOutcome getAggregateResourceConfigurationTimeline(const Model::GetAggregateResourceConfigurationTimelineRequest &request)const; + void getAggregateResourceConfigurationTimelineAsync(const Model::GetAggregateResourceConfigurationTimelineRequest& request, const GetAggregateResourceConfigurationTimelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateResourceConfigurationTimelineOutcomeCallable getAggregateResourceConfigurationTimelineCallable(const Model::GetAggregateResourceConfigurationTimelineRequest& request) const; + GetAggregateResourceCountsGroupByRegionOutcome getAggregateResourceCountsGroupByRegion(const Model::GetAggregateResourceCountsGroupByRegionRequest &request)const; + void getAggregateResourceCountsGroupByRegionAsync(const Model::GetAggregateResourceCountsGroupByRegionRequest& request, const GetAggregateResourceCountsGroupByRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateResourceCountsGroupByRegionOutcomeCallable getAggregateResourceCountsGroupByRegionCallable(const Model::GetAggregateResourceCountsGroupByRegionRequest& request) const; + GetAggregateResourceCountsGroupByResourceTypeOutcome getAggregateResourceCountsGroupByResourceType(const Model::GetAggregateResourceCountsGroupByResourceTypeRequest &request)const; + void getAggregateResourceCountsGroupByResourceTypeAsync(const Model::GetAggregateResourceCountsGroupByResourceTypeRequest& request, const GetAggregateResourceCountsGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateResourceCountsGroupByResourceTypeOutcomeCallable getAggregateResourceCountsGroupByResourceTypeCallable(const Model::GetAggregateResourceCountsGroupByResourceTypeRequest& request) const; + GetAggregatorOutcome getAggregator(const Model::GetAggregatorRequest &request)const; + void getAggregatorAsync(const Model::GetAggregatorRequest& request, const GetAggregatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregatorOutcomeCallable getAggregatorCallable(const Model::GetAggregatorRequest& request) const; + GetCompliancePackOutcome getCompliancePack(const Model::GetCompliancePackRequest &request)const; + void getCompliancePackAsync(const Model::GetCompliancePackRequest& request, const GetCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCompliancePackOutcomeCallable getCompliancePackCallable(const Model::GetCompliancePackRequest& request) const; + GetCompliancePackReportOutcome getCompliancePackReport(const Model::GetCompliancePackReportRequest &request)const; + void getCompliancePackReportAsync(const Model::GetCompliancePackReportRequest& request, const GetCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCompliancePackReportOutcomeCallable getCompliancePackReportCallable(const Model::GetCompliancePackReportRequest& request) const; + GetConfigRuleOutcome getConfigRule(const Model::GetConfigRuleRequest &request)const; + void getConfigRuleAsync(const Model::GetConfigRuleRequest& request, const GetConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConfigRuleOutcomeCallable getConfigRuleCallable(const Model::GetConfigRuleRequest& request) const; + GetConfigRuleComplianceByPackOutcome getConfigRuleComplianceByPack(const Model::GetConfigRuleComplianceByPackRequest &request)const; + void getConfigRuleComplianceByPackAsync(const Model::GetConfigRuleComplianceByPackRequest& request, const GetConfigRuleComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConfigRuleComplianceByPackOutcomeCallable getConfigRuleComplianceByPackCallable(const Model::GetConfigRuleComplianceByPackRequest& request) const; + GetConfigRuleSummaryByRiskLevelOutcome getConfigRuleSummaryByRiskLevel(const Model::GetConfigRuleSummaryByRiskLevelRequest &request)const; + void getConfigRuleSummaryByRiskLevelAsync(const Model::GetConfigRuleSummaryByRiskLevelRequest& request, const GetConfigRuleSummaryByRiskLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConfigRuleSummaryByRiskLevelOutcomeCallable getConfigRuleSummaryByRiskLevelCallable(const Model::GetConfigRuleSummaryByRiskLevelRequest& request) const; + GetConfigRulesReportOutcome getConfigRulesReport(const Model::GetConfigRulesReportRequest &request)const; + void getConfigRulesReportAsync(const Model::GetConfigRulesReportRequest& request, const GetConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConfigRulesReportOutcomeCallable getConfigRulesReportCallable(const Model::GetConfigRulesReportRequest& request) const; + GetDiscoveredResourceCountsGroupByRegionOutcome getDiscoveredResourceCountsGroupByRegion(const Model::GetDiscoveredResourceCountsGroupByRegionRequest &request)const; + void getDiscoveredResourceCountsGroupByRegionAsync(const Model::GetDiscoveredResourceCountsGroupByRegionRequest& request, const GetDiscoveredResourceCountsGroupByRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDiscoveredResourceCountsGroupByRegionOutcomeCallable getDiscoveredResourceCountsGroupByRegionCallable(const Model::GetDiscoveredResourceCountsGroupByRegionRequest& request) const; + GetDiscoveredResourceCountsGroupByResourceTypeOutcome getDiscoveredResourceCountsGroupByResourceType(const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest &request)const; + void getDiscoveredResourceCountsGroupByResourceTypeAsync(const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest& request, const GetDiscoveredResourceCountsGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDiscoveredResourceCountsGroupByResourceTypeOutcomeCallable getDiscoveredResourceCountsGroupByResourceTypeCallable(const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest& request) const; + GetResourceComplianceByConfigRuleOutcome getResourceComplianceByConfigRule(const Model::GetResourceComplianceByConfigRuleRequest &request)const; + void getResourceComplianceByConfigRuleAsync(const Model::GetResourceComplianceByConfigRuleRequest& request, const GetResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceComplianceByConfigRuleOutcomeCallable getResourceComplianceByConfigRuleCallable(const Model::GetResourceComplianceByConfigRuleRequest& request) const; + GetResourceComplianceByPackOutcome getResourceComplianceByPack(const Model::GetResourceComplianceByPackRequest &request)const; + void getResourceComplianceByPackAsync(const Model::GetResourceComplianceByPackRequest& request, const GetResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceComplianceByPackOutcomeCallable getResourceComplianceByPackCallable(const Model::GetResourceComplianceByPackRequest& request) const; GetResourceComplianceTimelineOutcome getResourceComplianceTimeline(const Model::GetResourceComplianceTimelineRequest &request)const; void getResourceComplianceTimelineAsync(const Model::GetResourceComplianceTimelineRequest& request, const GetResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetResourceComplianceTimelineOutcomeCallable getResourceComplianceTimelineCallable(const Model::GetResourceComplianceTimelineRequest& request) const; GetResourceConfigurationTimelineOutcome getResourceConfigurationTimeline(const Model::GetResourceConfigurationTimelineRequest &request)const; void getResourceConfigurationTimelineAsync(const Model::GetResourceConfigurationTimelineRequest& request, const GetResourceConfigurationTimelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetResourceConfigurationTimelineOutcomeCallable getResourceConfigurationTimelineCallable(const Model::GetResourceConfigurationTimelineRequest& request) const; - GetSupportedResourceTypesOutcome getSupportedResourceTypes(const Model::GetSupportedResourceTypesRequest &request)const; - void getSupportedResourceTypesAsync(const Model::GetSupportedResourceTypesRequest& request, const GetSupportedResourceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSupportedResourceTypesOutcomeCallable getSupportedResourceTypesCallable(const Model::GetSupportedResourceTypesRequest& request) const; - ListAggregateDiscoveredResourcesOutcome listAggregateDiscoveredResources(const Model::ListAggregateDiscoveredResourcesRequest &request)const; - void listAggregateDiscoveredResourcesAsync(const Model::ListAggregateDiscoveredResourcesRequest& request, const ListAggregateDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAggregateDiscoveredResourcesOutcomeCallable listAggregateDiscoveredResourcesCallable(const Model::ListAggregateDiscoveredResourcesRequest& request) const; - ListConfigRulesOutcome listConfigRules(const Model::ListConfigRulesRequest &request)const; - void listConfigRulesAsync(const Model::ListConfigRulesRequest& request, const ListConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListConfigRulesOutcomeCallable listConfigRulesCallable(const Model::ListConfigRulesRequest& request) const; - ListDiscoveredResourcesOutcome listDiscoveredResources(const Model::ListDiscoveredResourcesRequest &request)const; - void listDiscoveredResourcesAsync(const Model::ListDiscoveredResourcesRequest& request, const ListDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListDiscoveredResourcesOutcomeCallable listDiscoveredResourcesCallable(const Model::ListDiscoveredResourcesRequest& request) const; - ListRemediationTemplatesOutcome listRemediationTemplates(const Model::ListRemediationTemplatesRequest &request)const; - void listRemediationTemplatesAsync(const Model::ListRemediationTemplatesRequest& request, const ListRemediationTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRemediationTemplatesOutcomeCallable listRemediationTemplatesCallable(const Model::ListRemediationTemplatesRequest& request) const; - PutConfigRuleOutcome putConfigRule(const Model::PutConfigRuleRequest &request)const; - void putConfigRuleAsync(const Model::PutConfigRuleRequest& request, const PutConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutConfigRuleOutcomeCallable putConfigRuleCallable(const Model::PutConfigRuleRequest& request) const; - PutConfigurationRecorderOutcome putConfigurationRecorder(const Model::PutConfigurationRecorderRequest &request)const; - void putConfigurationRecorderAsync(const Model::PutConfigurationRecorderRequest& request, const PutConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutConfigurationRecorderOutcomeCallable putConfigurationRecorderCallable(const Model::PutConfigurationRecorderRequest& request) const; - PutDeliveryChannelOutcome putDeliveryChannel(const Model::PutDeliveryChannelRequest &request)const; - void putDeliveryChannelAsync(const Model::PutDeliveryChannelRequest& request, const PutDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutDeliveryChannelOutcomeCallable putDeliveryChannelCallable(const Model::PutDeliveryChannelRequest& request) const; - PutEvaluationsOutcome putEvaluations(const Model::PutEvaluationsRequest &request)const; - void putEvaluationsAsync(const Model::PutEvaluationsRequest& request, const PutEvaluationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutEvaluationsOutcomeCallable putEvaluationsCallable(const Model::PutEvaluationsRequest& request) const; - StartConfigRuleEvaluationOutcome startConfigRuleEvaluation(const Model::StartConfigRuleEvaluationRequest &request)const; - void startConfigRuleEvaluationAsync(const Model::StartConfigRuleEvaluationRequest& request, const StartConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartConfigRuleEvaluationOutcomeCallable startConfigRuleEvaluationCallable(const Model::StartConfigRuleEvaluationRequest& request) const; - StartConfigurationRecorderOutcome startConfigurationRecorder(const Model::StartConfigurationRecorderRequest &request)const; - void startConfigurationRecorderAsync(const Model::StartConfigurationRecorderRequest& request, const StartConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartConfigurationRecorderOutcomeCallable startConfigurationRecorderCallable(const Model::StartConfigurationRecorderRequest& request) const; - StopConfigRulesOutcome stopConfigRules(const Model::StopConfigRulesRequest &request)const; - void stopConfigRulesAsync(const Model::StopConfigRulesRequest& request, const StopConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopConfigRulesOutcomeCallable stopConfigRulesCallable(const Model::StopConfigRulesRequest& request) const; + IgnoreAggregateEvaluationResultsOutcome ignoreAggregateEvaluationResults(const Model::IgnoreAggregateEvaluationResultsRequest &request)const; + void ignoreAggregateEvaluationResultsAsync(const Model::IgnoreAggregateEvaluationResultsRequest& request, const IgnoreAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IgnoreAggregateEvaluationResultsOutcomeCallable ignoreAggregateEvaluationResultsCallable(const Model::IgnoreAggregateEvaluationResultsRequest& request) const; + IgnoreEvaluationResultsOutcome ignoreEvaluationResults(const Model::IgnoreEvaluationResultsRequest &request)const; + void ignoreEvaluationResultsAsync(const Model::IgnoreEvaluationResultsRequest& request, const IgnoreEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IgnoreEvaluationResultsOutcomeCallable ignoreEvaluationResultsCallable(const Model::IgnoreEvaluationResultsRequest& request) const; + ListAggregateCompliancePacksOutcome listAggregateCompliancePacks(const Model::ListAggregateCompliancePacksRequest &request)const; + void listAggregateCompliancePacksAsync(const Model::ListAggregateCompliancePacksRequest& request, const ListAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateCompliancePacksOutcomeCallable listAggregateCompliancePacksCallable(const Model::ListAggregateCompliancePacksRequest& request) const; + ListAggregateConfigRuleEvaluationResultsOutcome listAggregateConfigRuleEvaluationResults(const Model::ListAggregateConfigRuleEvaluationResultsRequest &request)const; + void listAggregateConfigRuleEvaluationResultsAsync(const Model::ListAggregateConfigRuleEvaluationResultsRequest& request, const ListAggregateConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateConfigRuleEvaluationResultsOutcomeCallable listAggregateConfigRuleEvaluationResultsCallable(const Model::ListAggregateConfigRuleEvaluationResultsRequest& request) const; + ListAggregateConfigRulesOutcome listAggregateConfigRules(const Model::ListAggregateConfigRulesRequest &request)const; + void listAggregateConfigRulesAsync(const Model::ListAggregateConfigRulesRequest& request, const ListAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateConfigRulesOutcomeCallable listAggregateConfigRulesCallable(const Model::ListAggregateConfigRulesRequest& request) const; + ListAggregateResourceEvaluationResultsOutcome listAggregateResourceEvaluationResults(const Model::ListAggregateResourceEvaluationResultsRequest &request)const; + void listAggregateResourceEvaluationResultsAsync(const Model::ListAggregateResourceEvaluationResultsRequest& request, const ListAggregateResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateResourceEvaluationResultsOutcomeCallable listAggregateResourceEvaluationResultsCallable(const Model::ListAggregateResourceEvaluationResultsRequest& request) const; + ListAggregatorsOutcome listAggregators(const Model::ListAggregatorsRequest &request)const; + void listAggregatorsAsync(const Model::ListAggregatorsRequest& request, const ListAggregatorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregatorsOutcomeCallable listAggregatorsCallable(const Model::ListAggregatorsRequest& request) const; + ListCompliancePackTemplatesOutcome listCompliancePackTemplates(const Model::ListCompliancePackTemplatesRequest &request)const; + void listCompliancePackTemplatesAsync(const Model::ListCompliancePackTemplatesRequest& request, const ListCompliancePackTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCompliancePackTemplatesOutcomeCallable listCompliancePackTemplatesCallable(const Model::ListCompliancePackTemplatesRequest& request) const; + ListCompliancePacksOutcome listCompliancePacks(const Model::ListCompliancePacksRequest &request)const; + void listCompliancePacksAsync(const Model::ListCompliancePacksRequest& request, const ListCompliancePacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCompliancePacksOutcomeCallable listCompliancePacksCallable(const Model::ListCompliancePacksRequest& request) const; + ListConfigRuleEvaluationResultsOutcome listConfigRuleEvaluationResults(const Model::ListConfigRuleEvaluationResultsRequest &request)const; + void listConfigRuleEvaluationResultsAsync(const Model::ListConfigRuleEvaluationResultsRequest& request, const ListConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConfigRuleEvaluationResultsOutcomeCallable listConfigRuleEvaluationResultsCallable(const Model::ListConfigRuleEvaluationResultsRequest& request) const; + ListResourceEvaluationResultsOutcome listResourceEvaluationResults(const Model::ListResourceEvaluationResultsRequest &request)const; + void listResourceEvaluationResultsAsync(const Model::ListResourceEvaluationResultsRequest& request, const ListResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourceEvaluationResultsOutcomeCallable listResourceEvaluationResultsCallable(const Model::ListResourceEvaluationResultsRequest& request) const; + RevertAggregateEvaluationResultsOutcome revertAggregateEvaluationResults(const Model::RevertAggregateEvaluationResultsRequest &request)const; + void revertAggregateEvaluationResultsAsync(const Model::RevertAggregateEvaluationResultsRequest& request, const RevertAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevertAggregateEvaluationResultsOutcomeCallable revertAggregateEvaluationResultsCallable(const Model::RevertAggregateEvaluationResultsRequest& request) const; + RevertEvaluationResultsOutcome revertEvaluationResults(const Model::RevertEvaluationResultsRequest &request)const; + void revertEvaluationResultsAsync(const Model::RevertEvaluationResultsRequest& request, const RevertEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevertEvaluationResultsOutcomeCallable revertEvaluationResultsCallable(const Model::RevertEvaluationResultsRequest& request) const; + StartAggregateConfigRuleEvaluationOutcome startAggregateConfigRuleEvaluation(const Model::StartAggregateConfigRuleEvaluationRequest &request)const; + void startAggregateConfigRuleEvaluationAsync(const Model::StartAggregateConfigRuleEvaluationRequest& request, const StartAggregateConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartAggregateConfigRuleEvaluationOutcomeCallable startAggregateConfigRuleEvaluationCallable(const Model::StartAggregateConfigRuleEvaluationRequest& request) const; + UpdateAggregateCompliancePackOutcome updateAggregateCompliancePack(const Model::UpdateAggregateCompliancePackRequest &request)const; + void updateAggregateCompliancePackAsync(const Model::UpdateAggregateCompliancePackRequest& request, const UpdateAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAggregateCompliancePackOutcomeCallable updateAggregateCompliancePackCallable(const Model::UpdateAggregateCompliancePackRequest& request) const; + UpdateAggregateConfigRuleOutcome updateAggregateConfigRule(const Model::UpdateAggregateConfigRuleRequest &request)const; + void updateAggregateConfigRuleAsync(const Model::UpdateAggregateConfigRuleRequest& request, const UpdateAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAggregateConfigRuleOutcomeCallable updateAggregateConfigRuleCallable(const Model::UpdateAggregateConfigRuleRequest& request) const; + UpdateAggregatorOutcome updateAggregator(const Model::UpdateAggregatorRequest &request)const; + void updateAggregatorAsync(const Model::UpdateAggregatorRequest& request, const UpdateAggregatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAggregatorOutcomeCallable updateAggregatorCallable(const Model::UpdateAggregatorRequest& request) const; + UpdateCompliancePackOutcome updateCompliancePack(const Model::UpdateCompliancePackRequest &request)const; + void updateCompliancePackAsync(const Model::UpdateCompliancePackRequest& request, const UpdateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCompliancePackOutcomeCallable updateCompliancePackCallable(const Model::UpdateCompliancePackRequest& request) const; + UpdateConfigRuleOutcome updateConfigRule(const Model::UpdateConfigRuleRequest &request)const; + void updateConfigRuleAsync(const Model::UpdateConfigRuleRequest& request, const UpdateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateConfigRuleOutcomeCallable updateConfigRuleCallable(const Model::UpdateConfigRuleRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h b/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h new file mode 100644 index 000000000..16fbdf33d --- /dev/null +++ b/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ActiveAggregateConfigRulesRequest : public RpcServiceRequest { +public: + ActiveAggregateConfigRulesRequest(); + ~ActiveAggregateConfigRulesRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string configRuleIds_; + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StopConfigRulesResult.h b/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h similarity index 73% rename from config/include/alibabacloud/config/model/StopConfigRulesResult.h rename to config/include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h index 6b92b2441..eaed51a8f 100644 --- a/config/include/alibabacloud/config/model/StopConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT ActiveAggregateConfigRulesResult : public ServiceResult { public: struct OperateRuleResult @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - StopConfigRulesResult(); - explicit StopConfigRulesResult(const std::string &payload); - ~StopConfigRulesResult(); + ActiveAggregateConfigRulesResult(); + explicit ActiveAggregateConfigRulesResult(const std::string &payload); + ~ActiveAggregateConfigRulesResult(); OperateRuleResult getOperateRuleResult()const; protected: @@ -58,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h b/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h new file mode 100644 index 000000000..4c55637d5 --- /dev/null +++ b/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT AttachAggregateConfigRuleToCompliancePackRequest : public RpcServiceRequest { +public: + AttachAggregateConfigRuleToCompliancePackRequest(); + ~AttachAggregateConfigRuleToCompliancePackRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string configRuleIds_; + std::string aggregatorId_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackResult.h b/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackResult.h new file mode 100644 index 000000000..354d10943 --- /dev/null +++ b/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT AttachAggregateConfigRuleToCompliancePackResult : public ServiceResult + { + public: + struct OperateRuleResult + { + struct OperateRuleItem + { + std::string configRuleId; + std::string errorCode; + bool success; + }; + std::vector operateRuleItemList; + }; + + + AttachAggregateConfigRuleToCompliancePackResult(); + explicit AttachAggregateConfigRuleToCompliancePackResult(const std::string &payload); + ~AttachAggregateConfigRuleToCompliancePackResult(); + OperateRuleResult getOperateRuleResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateRuleResult operateRuleResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h b/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h new file mode 100644 index 000000000..b5a5fbca5 --- /dev/null +++ b/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT AttachConfigRuleToCompliancePackRequest : public RpcServiceRequest { +public: + AttachConfigRuleToCompliancePackRequest(); + ~AttachConfigRuleToCompliancePackRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string configRuleIds_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackResult.h b/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackResult.h new file mode 100644 index 000000000..7e9aff86e --- /dev/null +++ b/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT AttachConfigRuleToCompliancePackResult : public ServiceResult + { + public: + struct OperateRuleResult + { + struct OperateRuleItem + { + std::string configRuleId; + std::string errorCode; + bool success; + }; + std::vector operateRuleItemList; + }; + + + AttachConfigRuleToCompliancePackResult(); + explicit AttachConfigRuleToCompliancePackResult(const std::string &payload); + ~AttachConfigRuleToCompliancePackResult(); + OperateRuleResult getOperateRuleResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateRuleResult operateRuleResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h b/config/include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h new file mode 100644 index 000000000..e2f4ad50a --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateCompliancePackRequest : public RpcServiceRequest { +public: + struct ConfigRules { + std::string managedRuleIdentifier; + struct ConfigRuleParametersItem { + std::string parameterValue; + std::string parameterName; + }; + ConfigRuleParametersItem configRuleParametersItem; + std::vector configRuleParameters; + std::string configRuleId; + std::string configRuleName; + std::string description; + int riskLevel; + }; + CreateAggregateCompliancePackRequest(); + ~CreateAggregateCompliancePackRequest(); + std::string getCompliancePackName() const; + void setCompliancePackName(const std::string &compliancePackName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getCompliancePackTemplateId() const; + void setCompliancePackTemplateId(const std::string &compliancePackTemplateId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::vector getConfigRules() const; + void setConfigRules(const std::vector &configRules); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + +private: + std::string compliancePackName_; + std::string clientToken_; + std::string compliancePackTemplateId_; + std::string description_; + std::string aggregatorId_; + std::vector configRules_; + int riskLevel_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h b/config/include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h new file mode 100644 index 000000000..84dea54c6 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateCompliancePackResult : public ServiceResult + { + public: + + + CreateAggregateCompliancePackResult(); + explicit CreateAggregateCompliancePackResult(const std::string &payload); + ~CreateAggregateCompliancePackResult(); + std::string getCompliancePackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string compliancePackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h b/config/include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h new file mode 100644 index 000000000..97e0992c3 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateConfigRuleRequest : public RpcServiceRequest { +public: + CreateAggregateConfigRuleRequest(); + ~CreateAggregateConfigRuleRequest(); + std::string getTagKeyScope() const; + void setTagKeyScope(const std::string &tagKeyScope); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getResourceTypesScope() const; + void setResourceTypesScope(const std::vector &resourceTypesScope); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getConfigRuleTriggerTypes() const; + void setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes); + std::string getSourceIdentifier() const; + void setSourceIdentifier(const std::string &sourceIdentifier); + std::string getTagValueScope() const; + void setTagValueScope(const std::string &tagValueScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + std::string getSourceOwner() const; + void setSourceOwner(const std::string &sourceOwner); + std::string getResourceGroupIdsScope() const; + void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); + std::string getInputParameters() const; + void setInputParameters(const std::string &inputParameters); + std::string getConfigRuleName() const; + void setConfigRuleName(const std::string &configRuleName); + std::string getMaximumExecutionFrequency() const; + void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); + std::string getExcludeResourceIdsScope() const; + void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); + +private: + std::string tagKeyScope_; + std::string clientToken_; + std::vector resourceTypesScope_; + std::string description_; + std::string aggregatorId_; + std::string configRuleTriggerTypes_; + std::string sourceIdentifier_; + std::string tagValueScope_; + std::string regionIdsScope_; + int riskLevel_; + std::string sourceOwner_; + std::string resourceGroupIdsScope_; + std::string inputParameters_; + std::string configRuleName_; + std::string maximumExecutionFrequency_; + std::string excludeResourceIdsScope_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetSupportedResourceTypesResult.h b/config/include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h similarity index 66% rename from config/include/alibabacloud/config/model/GetSupportedResourceTypesResult.h rename to config/include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h index 3d7a9be5d..8e38f7d27 100644 --- a/config/include/alibabacloud/config/model/GetSupportedResourceTypesResult.h +++ b/config/include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULERESULT_H_ #include #include @@ -29,23 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceTypesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateConfigRuleResult : public ServiceResult { public: - GetSupportedResourceTypesResult(); - explicit GetSupportedResourceTypesResult(const std::string &payload); - ~GetSupportedResourceTypesResult(); - std::vector getResourceTypes()const; + CreateAggregateConfigRuleResult(); + explicit CreateAggregateConfigRuleResult(const std::string &payload); + ~CreateAggregateConfigRuleResult(); + std::string getConfigRuleId()const; protected: void parse(const std::string &payload); private: - std::vector resourceTypes_; + std::string configRuleId_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateAggregatorRequest.h b/config/include/alibabacloud/config/model/CreateAggregatorRequest.h new file mode 100644 index 000000000..af07e784b --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregatorRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateAggregatorRequest : public RpcServiceRequest { +public: + struct AggregatorAccounts { + long accountId; + std::string accountName; + std::string accountType; + }; + CreateAggregatorRequest(); + ~CreateAggregatorRequest(); + std::string getAggregatorType() const; + void setAggregatorType(const std::string &aggregatorType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAggregatorName() const; + void setAggregatorName(const std::string &aggregatorName); + std::string getDescription() const; + void setDescription(const std::string &description); + std::vector getAggregatorAccounts() const; + void setAggregatorAccounts(const std::vector &aggregatorAccounts); + +private: + std::string aggregatorType_; + std::string clientToken_; + std::string aggregatorName_; + std::string description_; + std::vector aggregatorAccounts_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/PutDeliveryChannelResult.h b/config/include/alibabacloud/config/model/CreateAggregatorResult.h similarity index 66% rename from config/include/alibabacloud/config/model/PutDeliveryChannelResult.h rename to config/include/alibabacloud/config/model/CreateAggregatorResult.h index 5e85892ac..38b2fbb89 100644 --- a/config/include/alibabacloud/config/model/PutDeliveryChannelResult.h +++ b/config/include/alibabacloud/config/model/CreateAggregatorResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORRESULT_H_ #include #include @@ -29,23 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT CreateAggregatorResult : public ServiceResult { public: - PutDeliveryChannelResult(); - explicit PutDeliveryChannelResult(const std::string &payload); - ~PutDeliveryChannelResult(); - std::string getDeliveryChannelId()const; + CreateAggregatorResult(); + explicit CreateAggregatorResult(const std::string &payload); + ~CreateAggregatorResult(); + std::string getAggregatorId()const; protected: void parse(const std::string &payload); private: - std::string deliveryChannelId_; + std::string aggregatorId_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateCompliancePackRequest.h b/config/include/alibabacloud/config/model/CreateCompliancePackRequest.h new file mode 100644 index 000000000..dbcdaad64 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateCompliancePackRequest.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateCompliancePackRequest : public RpcServiceRequest { +public: + struct ConfigRules { + std::string managedRuleIdentifier; + struct ConfigRuleParametersItem { + std::string parameterValue; + std::string parameterName; + }; + ConfigRuleParametersItem configRuleParametersItem; + std::vector configRuleParameters; + std::string configRuleId; + std::string configRuleName; + std::string description; + int riskLevel; + }; + CreateCompliancePackRequest(); + ~CreateCompliancePackRequest(); + std::string getCompliancePackName() const; + void setCompliancePackName(const std::string &compliancePackName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getCompliancePackTemplateId() const; + void setCompliancePackTemplateId(const std::string &compliancePackTemplateId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::vector getConfigRules() const; + void setConfigRules(const std::vector &configRules); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + +private: + std::string compliancePackName_; + std::string clientToken_; + std::string compliancePackTemplateId_; + std::string description_; + std::vector configRules_; + int riskLevel_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateCompliancePackResult.h b/config/include/alibabacloud/config/model/CreateCompliancePackResult.h new file mode 100644 index 000000000..fe07e6c07 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateCompliancePackResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateCompliancePackResult : public ServiceResult + { + public: + + + CreateCompliancePackResult(); + explicit CreateCompliancePackResult(const std::string &payload); + ~CreateCompliancePackResult(); + std::string getCompliancePackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string compliancePackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateConfigRuleRequest.h b/config/include/alibabacloud/config/model/CreateConfigRuleRequest.h new file mode 100644 index 000000000..d14f0e1ed --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateConfigRuleRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateConfigRuleRequest : public RpcServiceRequest { +public: + CreateConfigRuleRequest(); + ~CreateConfigRuleRequest(); + std::string getTagKeyScope() const; + void setTagKeyScope(const std::string &tagKeyScope); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getResourceTypesScope() const; + void setResourceTypesScope(const std::vector &resourceTypesScope); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getConfigRuleTriggerTypes() const; + void setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes); + std::string getSourceIdentifier() const; + void setSourceIdentifier(const std::string &sourceIdentifier); + std::string getTagValueScope() const; + void setTagValueScope(const std::string &tagValueScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + std::string getSourceOwner() const; + void setSourceOwner(const std::string &sourceOwner); + std::string getResourceGroupIdsScope() const; + void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); + std::string getInputParameters() const; + void setInputParameters(const std::string &inputParameters); + std::string getConfigRuleName() const; + void setConfigRuleName(const std::string &configRuleName); + std::string getMaximumExecutionFrequency() const; + void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); + std::string getExcludeResourceIdsScope() const; + void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); + +private: + std::string tagKeyScope_; + std::string clientToken_; + std::vector resourceTypesScope_; + std::string description_; + std::string configRuleTriggerTypes_; + std::string sourceIdentifier_; + std::string tagValueScope_; + std::string regionIdsScope_; + int riskLevel_; + std::string sourceOwner_; + std::string resourceGroupIdsScope_; + std::string inputParameters_; + std::string configRuleName_; + std::string maximumExecutionFrequency_; + std::string excludeResourceIdsScope_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/PutConfigRuleResult.h b/config/include/alibabacloud/config/model/CreateConfigRuleResult.h similarity index 72% rename from config/include/alibabacloud/config/model/PutConfigRuleResult.h rename to config/include/alibabacloud/config/model/CreateConfigRuleResult.h index a8c3e58bc..c8d54d5cd 100644 --- a/config/include/alibabacloud/config/model/PutConfigRuleResult.h +++ b/config/include/alibabacloud/config/model/CreateConfigRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULERESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT PutConfigRuleResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT CreateConfigRuleResult : public ServiceResult { public: - PutConfigRuleResult(); - explicit PutConfigRuleResult(const std::string &payload); - ~PutConfigRuleResult(); + CreateConfigRuleResult(); + explicit CreateConfigRuleResult(const std::string &payload); + ~CreateConfigRuleResult(); std::string getConfigRuleId()const; protected: @@ -48,4 +48,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h b/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesRequest.h similarity index 60% rename from config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h rename to config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesRequest.h index dabd24151..a4fd67bbb 100644 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h +++ b/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceSummaryRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DeactiveAggregateConfigRulesRequest : public RpcServiceRequest { public: - GetDiscoveredResourceSummaryRequest(); - ~GetDiscoveredResourceSummaryRequest(); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - long getMemberId() const; - void setMemberId(long memberId); + DeactiveAggregateConfigRulesRequest(); + ~DeactiveAggregateConfigRulesRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); private: - bool multiAccount_; - long memberId_; + std::string configRuleIds_; + std::string aggregatorId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h b/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.h similarity index 58% rename from config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h rename to config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.h index 6c88bb2ce..b26d1fe96 100644 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h +++ b/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESRESULT_H_ #include #include @@ -29,29 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceSummaryResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DeactiveAggregateConfigRulesResult : public ServiceResult { public: - struct DiscoveredResourceSummary + struct OperateRuleResult { - int resourceTypeCount; - int regionCount; - int resourceCount; + struct OperateRuleItem + { + std::string configRuleId; + std::string errorCode; + bool success; + }; + std::vector operateRuleItemList; }; - GetDiscoveredResourceSummaryResult(); - explicit GetDiscoveredResourceSummaryResult(const std::string &payload); - ~GetDiscoveredResourceSummaryResult(); - DiscoveredResourceSummary getDiscoveredResourceSummary()const; + DeactiveAggregateConfigRulesResult(); + explicit DeactiveAggregateConfigRulesResult(const std::string &payload); + ~DeactiveAggregateConfigRulesResult(); + OperateRuleResult getOperateRuleResult()const; protected: void parse(const std::string &payload); private: - DiscoveredResourceSummary discoveredResourceSummary_; + OperateRuleResult operateRuleResult_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ActiveConfigRulesRequest.h b/config/include/alibabacloud/config/model/DeactiveConfigRulesRequest.h similarity index 73% rename from config/include/alibabacloud/config/model/ActiveConfigRulesRequest.h rename to config/include/alibabacloud/config/model/DeactiveConfigRulesRequest.h index c6c6291b6..d30e7e7c8 100644 --- a/config/include/alibabacloud/config/model/ActiveConfigRulesRequest.h +++ b/config/include/alibabacloud/config/model/DeactiveConfigRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ActiveConfigRulesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DeactiveConfigRulesRequest : public RpcServiceRequest { public: - ActiveConfigRulesRequest(); - ~ActiveConfigRulesRequest(); + DeactiveConfigRulesRequest(); + ~DeactiveConfigRulesRequest(); std::string getConfigRuleIds() const; void setConfigRuleIds(const std::string &configRuleIds); @@ -39,4 +39,4 @@ private: } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ActiveConfigRulesResult.h b/config/include/alibabacloud/config/model/DeactiveConfigRulesResult.h similarity index 75% rename from config/include/alibabacloud/config/model/ActiveConfigRulesResult.h rename to config/include/alibabacloud/config/model/DeactiveConfigRulesResult.h index 2cc5b2ce8..7975c3beb 100644 --- a/config/include/alibabacloud/config/model/ActiveConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/DeactiveConfigRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT ActiveConfigRulesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DeactiveConfigRulesResult : public ServiceResult { public: struct OperateRuleResult @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - ActiveConfigRulesResult(); - explicit ActiveConfigRulesResult(const std::string &payload); - ~ActiveConfigRulesResult(); + DeactiveConfigRulesResult(); + explicit DeactiveConfigRulesResult(const std::string &payload); + ~DeactiveConfigRulesResult(); OperateRuleResult getOperateRuleResult()const; protected: @@ -58,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksRequest.h b/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksRequest.h new file mode 100644 index 000000000..81a9b0eb8 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateCompliancePacksRequest : public RpcServiceRequest { +public: + DeleteAggregateCompliancePacksRequest(); + ~DeleteAggregateCompliancePacksRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackIds() const; + void setCompliancePackIds(const std::string &compliancePackIds); + bool getDeleteRule() const; + void setDeleteRule(bool deleteRule); + +private: + std::string clientToken_; + std::string aggregatorId_; + std::string compliancePackIds_; + bool deleteRule_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksResult.h b/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksResult.h new file mode 100644 index 000000000..9227d046f --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateCompliancePacksResult : public ServiceResult + { + public: + struct OperateCompliancePacksResult + { + struct OperateCompliancePacksItem + { + std::string compliancePackId; + std::string errorCode; + bool success; + }; + std::vector operateCompliancePacks; + }; + + + DeleteAggregateCompliancePacksResult(); + explicit DeleteAggregateCompliancePacksResult(const std::string &payload); + ~DeleteAggregateCompliancePacksResult(); + OperateCompliancePacksResult getOperateCompliancePacksResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateCompliancePacksResult operateCompliancePacksResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h b/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h new file mode 100644 index 000000000..6eba6c3fd --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateConfigRulesRequest : public RpcServiceRequest { +public: + DeleteAggregateConfigRulesRequest(); + ~DeleteAggregateConfigRulesRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string configRuleIds_; + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteConfigRulesResult.h b/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h similarity index 73% rename from config/include/alibabacloud/config/model/DeleteConfigRulesResult.h rename to config/include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h index eb4da536f..4c48e650a 100644 --- a/config/include/alibabacloud/config/model/DeleteConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigRulesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateConfigRulesResult : public ServiceResult { public: struct OperateRuleResult @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - DeleteConfigRulesResult(); - explicit DeleteConfigRulesResult(const std::string &payload); - ~DeleteConfigRulesResult(); + DeleteAggregateConfigRulesResult(); + explicit DeleteAggregateConfigRulesResult(const std::string &payload); + ~DeleteAggregateConfigRulesResult(); OperateRuleResult getOperateRuleResult()const; protected: @@ -58,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteAggregatorsRequest.h b/config/include/alibabacloud/config/model/DeleteAggregatorsRequest.h new file mode 100644 index 000000000..2974ff49d --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregatorsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregatorsRequest : public RpcServiceRequest { +public: + DeleteAggregatorsRequest(); + ~DeleteAggregatorsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAggregatorIds() const; + void setAggregatorIds(const std::string &aggregatorIds); + +private: + std::string clientToken_; + std::string aggregatorIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteAggregatorsResult.h b/config/include/alibabacloud/config/model/DeleteAggregatorsResult.h new file mode 100644 index 000000000..58a9393e0 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregatorsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregatorsResult : public ServiceResult + { + public: + struct OperateAggregatorsResult + { + struct OperateAggregatorList + { + std::string errorCode; + bool success; + std::string aggregatorId; + }; + std::vector operateAggregators; + }; + + + DeleteAggregatorsResult(); + explicit DeleteAggregatorsResult(const std::string &payload); + ~DeleteAggregatorsResult(); + OperateAggregatorsResult getOperateAggregatorsResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateAggregatorsResult operateAggregatorsResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.h b/config/include/alibabacloud/config/model/DeleteCompliancePacksRequest.h similarity index 55% rename from config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.h rename to config/include/alibabacloud/config/model/DeleteCompliancePacksRequest.h index 68dcc3fbe..dbb9c689c 100644 --- a/config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.h +++ b/config/include/alibabacloud/config/model/DeleteCompliancePacksRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSREQUEST_H_ #include #include @@ -26,20 +26,23 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListRemediationTemplatesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DeleteCompliancePacksRequest : public RpcServiceRequest { public: - ListRemediationTemplatesRequest(); - ~ListRemediationTemplatesRequest(); - std::string getManagedRuleIdentifier() const; - void setManagedRuleIdentifier(const std::string &managedRuleIdentifier); - std::string getRemediationType() const; - void setRemediationType(const std::string &remediationType); + DeleteCompliancePacksRequest(); + ~DeleteCompliancePacksRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getCompliancePackIds() const; + void setCompliancePackIds(const std::string &compliancePackIds); + bool getDeleteRule() const; + void setDeleteRule(bool deleteRule); private: - std::string managedRuleIdentifier_; - std::string remediationType_; + std::string clientToken_; + std::string compliancePackIds_; + bool deleteRule_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteCompliancePacksResult.h b/config/include/alibabacloud/config/model/DeleteCompliancePacksResult.h new file mode 100644 index 000000000..ce210c94a --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteCompliancePacksResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteCompliancePacksResult : public ServiceResult + { + public: + struct OperateCompliancePacksResult + { + struct OperateCompliancePacksItem + { + std::string compliancePackId; + std::string errorCode; + bool success; + }; + std::vector operateCompliancePacks; + }; + + + DeleteCompliancePacksResult(); + explicit DeleteCompliancePacksResult(const std::string &payload); + ~DeleteCompliancePacksResult(); + OperateCompliancePacksResult getOperateCompliancePacksResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateCompliancePacksResult operateCompliancePacksResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeComplianceSummaryResult.h b/config/include/alibabacloud/config/model/DescribeComplianceSummaryResult.h deleted file mode 100644 index d30414193..000000000 --- a/config/include/alibabacloud/config/model/DescribeComplianceSummaryResult.h +++ /dev/null @@ -1,70 +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_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryResult : public ServiceResult - { - public: - struct ComplianceSummary - { - struct ComplianceSummaryByResource - { - long totalCount; - int compliantCount; - int nonCompliantCount; - long complianceSummaryTimestamp; - }; - struct ComplianceSummaryByConfigRule - { - long totalCount; - int compliantCount; - int nonCompliantCount; - long complianceSummaryTimestamp; - }; - ComplianceSummaryByResource complianceSummaryByResource; - ComplianceSummaryByConfigRule complianceSummaryByConfigRule; - }; - - - DescribeComplianceSummaryResult(); - explicit DescribeComplianceSummaryResult(const std::string &payload); - ~DescribeComplianceSummaryResult(); - ComplianceSummary getComplianceSummary()const; - - protected: - void parse(const std::string &payload); - private: - ComplianceSummary complianceSummary_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h b/config/include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h deleted file mode 100644 index 469a3ced6..000000000 --- a/config/include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h +++ /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. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsResult : public ServiceResult - { - public: - struct DeliveryChannel - { - int status; - bool configurationSnapshot; - std::string oversizedDataOSSTargetArn; - std::string description; - std::string deliveryChannelName; - std::string deliveryChannelId; - std::string deliveryChannelTargetArn; - std::string deliveryChannelAssumeRoleArn; - bool configurationItemChangeNotification; - std::string deliveryChannelType; - std::string deliveryChannelCondition; - bool nonCompliantNotification; - }; - - - DescribeDeliveryChannelsResult(); - explicit DescribeDeliveryChannelsResult(const std::string &payload); - ~DescribeDeliveryChannelsResult(); - std::vector getDeliveryChannels()const; - - protected: - void parse(const std::string &payload); - private: - std::vector deliveryChannels_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h b/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h new file mode 100644 index 000000000..853159e8f --- /dev/null +++ b/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DetachAggregateConfigRuleToCompliancePackRequest : public RpcServiceRequest { +public: + DetachAggregateConfigRuleToCompliancePackRequest(); + ~DetachAggregateConfigRuleToCompliancePackRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string configRuleIds_; + std::string aggregatorId_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h b/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h new file mode 100644 index 000000000..01bd0d4de --- /dev/null +++ b/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DetachAggregateConfigRuleToCompliancePackResult : public ServiceResult + { + public: + struct OperateRuleResult + { + struct OperateRuleItem + { + std::string configRuleId; + std::string errorCode; + bool success; + }; + std::vector operateRuleItemList; + }; + + + DetachAggregateConfigRuleToCompliancePackResult(); + explicit DetachAggregateConfigRuleToCompliancePackResult(const std::string &payload); + ~DetachAggregateConfigRuleToCompliancePackResult(); + OperateRuleResult getOperateRuleResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateRuleResult operateRuleResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h b/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h new file mode 100644 index 000000000..561efac2c --- /dev/null +++ b/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DetachConfigRuleToCompliancePackRequest : public RpcServiceRequest { +public: + DetachConfigRuleToCompliancePackRequest(); + ~DetachConfigRuleToCompliancePackRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string configRuleIds_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackResult.h b/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackResult.h new file mode 100644 index 000000000..5bd160f94 --- /dev/null +++ b/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DetachConfigRuleToCompliancePackResult : public ServiceResult + { + public: + struct OperateRuleResult + { + struct OperateRuleItem + { + std::string configRuleId; + std::string errorCode; + bool success; + }; + std::vector operateRuleItemList; + }; + + + DetachConfigRuleToCompliancePackResult(); + explicit DetachConfigRuleToCompliancePackResult(const std::string &payload); + ~DetachConfigRuleToCompliancePackResult(); + OperateRuleResult getOperateRuleResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateRuleResult operateRuleResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportRequest.h b/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportRequest.h new file mode 100644 index 000000000..9bc9aacfb --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateCompliancePackReportRequest : public RpcServiceRequest { +public: + GenerateAggregateCompliancePackReportRequest(); + ~GenerateAggregateCompliancePackReportRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string clientToken_; + std::string aggregatorId_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportResult.h b/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportResult.h new file mode 100644 index 000000000..7a6bb933b --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateCompliancePackReportResult : public ServiceResult + { + public: + + + GenerateAggregateCompliancePackReportResult(); + explicit GenerateAggregateCompliancePackReportResult(const std::string &payload); + ~GenerateAggregateCompliancePackReportResult(); + std::string getCompliancePackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string compliancePackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.h b/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.h new file mode 100644 index 000000000..f08483432 --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateConfigRulesReportRequest : public RpcServiceRequest { +public: + GenerateAggregateConfigRulesReportRequest(); + ~GenerateAggregateConfigRulesReportRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string clientToken_; + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h b/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h new file mode 100644 index 000000000..55cd570e1 --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateConfigRulesReportResult : public ServiceResult + { + public: + + + GenerateAggregateConfigRulesReportResult(); + explicit GenerateAggregateConfigRulesReportResult(const std::string &payload); + ~GenerateAggregateConfigRulesReportResult(); + std::string getAggregatorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aggregatorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GenerateCompliancePackReportRequest.h b/config/include/alibabacloud/config/model/GenerateCompliancePackReportRequest.h new file mode 100644 index 000000000..7e6e5c1b3 --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateCompliancePackReportRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GenerateCompliancePackReportRequest : public RpcServiceRequest { +public: + GenerateCompliancePackReportRequest(); + ~GenerateCompliancePackReportRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string clientToken_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateCompliancePackReportResult.h b/config/include/alibabacloud/config/model/GenerateCompliancePackReportResult.h new file mode 100644 index 000000000..0dd5355fd --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateCompliancePackReportResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GenerateCompliancePackReportResult : public ServiceResult + { + public: + + + GenerateCompliancePackReportResult(); + explicit GenerateCompliancePackReportResult(const std::string &payload); + ~GenerateCompliancePackReportResult(); + std::string getCompliancePackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string compliancePackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h b/config/include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h similarity index 64% rename from config/include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h rename to config/include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h index 7c6116e64..1c69eae1b 100644 --- a/config/include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h +++ b/config/include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTREQUEST_H_ #include #include @@ -26,20 +26,17 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GenerateConfigRulesReportRequest : public RpcServiceRequest { public: - DescribeComplianceSummaryRequest(); - ~DescribeComplianceSummaryRequest(); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - long getMemberId() const; - void setMemberId(long memberId); + GenerateConfigRulesReportRequest(); + ~GenerateConfigRulesReportRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); private: - bool multiAccount_; - long memberId_; + std::string clientToken_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h b/config/include/alibabacloud/config/model/GenerateConfigRulesReportResult.h similarity index 69% rename from config/include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h rename to config/include/alibabacloud/config/model/GenerateConfigRulesReportResult.h index c5a8d34fb..3cc1273eb 100644 --- a/config/include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h +++ b/config/include/alibabacloud/config/model/GenerateConfigRulesReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT StartConfigRuleEvaluationResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GenerateConfigRulesReportResult : public ServiceResult { public: - StartConfigRuleEvaluationResult(); - explicit StartConfigRuleEvaluationResult(const std::string &payload); - ~StartConfigRuleEvaluationResult(); - bool getResult()const; + GenerateConfigRulesReportResult(); + explicit GenerateConfigRulesReportResult(const std::string &payload); + ~GenerateConfigRulesReportResult(); protected: void parse(const std::string &payload); private: - bool result_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h new file mode 100644 index 000000000..e900bb812 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateAccountComplianceByPackRequest : public RpcServiceRequest { +public: + GetAggregateAccountComplianceByPackRequest(); + ~GetAggregateAccountComplianceByPackRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string aggregatorId_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h b/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h new file mode 100644 index 000000000..78c8095dc --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateAccountComplianceByPackResult : public ServiceResult + { + public: + struct AccountComplianceResult + { + struct AccountCompliancesItem + { + long accountId; + std::string complianceType; + std::string accountName; + }; + std::string compliancePackId; + int totalCount; + int nonCompliantCount; + std::vector accountCompliances; + }; + + + GetAggregateAccountComplianceByPackResult(); + explicit GetAggregateAccountComplianceByPackResult(const std::string &payload); + ~GetAggregateAccountComplianceByPackResult(); + AccountComplianceResult getAccountComplianceResult()const; + + protected: + void parse(const std::string &payload); + private: + AccountComplianceResult accountComplianceResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h b/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h new file mode 100644 index 000000000..50ae77ed7 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateCompliancePackReportRequest : public RpcServiceRequest { +public: + GetAggregateCompliancePackReportRequest(); + ~GetAggregateCompliancePackReportRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string aggregatorId_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/PutConfigurationRecorderResult.h b/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h similarity index 56% rename from config/include/alibabacloud/config/model/PutConfigurationRecorderResult.h rename to config/include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h index a9572205c..b606e2ab6 100644 --- a/config/include/alibabacloud/config/model/PutConfigurationRecorderResult.h +++ b/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ #include #include @@ -29,31 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateCompliancePackReportResult : public ServiceResult { public: - struct ConfigurationRecorder + struct CompliancePackReport { - std::string configurationRecorderStatus; - std::vector resourceTypes; + std::string compliancePackId; long accountId; - long organizationMasterId; - std::string organizationEnableStatus; + std::string reportUrl; + std::string reportStatus; + long reportCreateTimestamp; }; - PutConfigurationRecorderResult(); - explicit PutConfigurationRecorderResult(const std::string &payload); - ~PutConfigurationRecorderResult(); - ConfigurationRecorder getConfigurationRecorder()const; + GetAggregateCompliancePackReportResult(); + explicit GetAggregateCompliancePackReportResult(const std::string &payload); + ~GetAggregateCompliancePackReportResult(); + CompliancePackReport getCompliancePackReport()const; protected: void parse(const std::string &payload); private: - ConfigurationRecorder configurationRecorder_; + CompliancePackReport compliancePackReport_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateCompliancePackRequest.h b/config/include/alibabacloud/config/model/GetAggregateCompliancePackRequest.h new file mode 100644 index 000000000..d6761e8dc --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateCompliancePackRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateCompliancePackRequest : public RpcServiceRequest { +public: + GetAggregateCompliancePackRequest(); + ~GetAggregateCompliancePackRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string aggregatorId_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateCompliancePackResult.h b/config/include/alibabacloud/config/model/GetAggregateCompliancePackResult.h new file mode 100644 index 000000000..c1883e2b2 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateCompliancePackResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateCompliancePackResult : public ServiceResult + { + public: + struct CompliancePack + { + struct ConfigRulesItem + { + struct ConfigRuleParametersItem + { + bool required; + std::string parameterValue; + std::string parameterName; + }; + std::string configRuleId; + std::string description; + std::string configRuleName; + std::string managedRuleIdentifier; + int riskLevel; + std::vector configRuleParameters; + }; + std::string status; + std::string compliancePackId; + std::string description; + std::string compliancePackName; + long accountId; + std::vector configRules; + std::string compliancePackTemplateId; + int riskLevel; + long createTimestamp; + std::string aggregatorId; + }; + + + GetAggregateCompliancePackResult(); + explicit GetAggregateCompliancePackResult(const std::string &payload); + ~GetAggregateCompliancePackResult(); + CompliancePack getCompliancePack()const; + + protected: + void parse(const std::string &payload); + private: + CompliancePack compliancePack_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h new file mode 100644 index 000000000..2905c33db --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleComplianceByPackRequest : public RpcServiceRequest { +public: + GetAggregateConfigRuleComplianceByPackRequest(); + ~GetAggregateConfigRuleComplianceByPackRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string aggregatorId_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackResult.h new file mode 100644 index 000000000..8d7ea9449 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleComplianceByPackResult : public ServiceResult + { + public: + struct ConfigRuleComplianceResult + { + struct ConfigRuleCompliancesItem + { + std::string configRuleId; + std::string complianceType; + std::string configRuleName; + }; + std::vector configRuleCompliances; + std::string compliancePackId; + int totalCount; + int nonCompliantCount; + }; + + + GetAggregateConfigRuleComplianceByPackResult(); + explicit GetAggregateConfigRuleComplianceByPackResult(const std::string &payload); + ~GetAggregateConfigRuleComplianceByPackResult(); + ConfigRuleComplianceResult getConfigRuleComplianceResult()const; + + protected: + void parse(const std::string &payload); + private: + ConfigRuleComplianceResult configRuleComplianceResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleRequest.h similarity index 65% rename from config/include/alibabacloud/config/model/DescribeConfigRuleRequest.h rename to config/include/alibabacloud/config/model/GetAggregateConfigRuleRequest.h index 0bc1b7354..9e4582d2f 100644 --- a/config/include/alibabacloud/config/model/DescribeConfigRuleRequest.h +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRuleRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULEREQUEST_H_ #include #include @@ -26,23 +26,20 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigRuleRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleRequest : public RpcServiceRequest { public: - DescribeConfigRuleRequest(); - ~DescribeConfigRuleRequest(); + GetAggregateConfigRuleRequest(); + ~GetAggregateConfigRuleRequest(); std::string getConfigRuleId() const; void setConfigRuleId(const std::string &configRuleId); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - long getMemberId() const; - void setMemberId(long memberId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); private: std::string configRuleId_; - bool multiAccount_; - long memberId_; + std::string aggregatorId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleResult.h new file mode 100644 index 000000000..e5358075f --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRuleResult.h @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleResult : public ServiceResult + { + public: + struct ConfigRule + { + struct Source + { + struct SourceDetailsItem + { + std::string eventSource; + std::string messageType; + std::string maximumExecutionFrequency; + }; + std::string owner; + std::string identifier; + std::vector sourceConditions; + std::vector sourceDetails; + }; + struct ManagedRule + { + struct SourceDetailsItem2 + { + std::string eventSource; + std::string messageType; + std::string maximumExecutionFrequency; + }; + std::string managedRuleName; + std::string optionalInputParameterDetails; + std::string description; + std::string identifier; + std::string compulsoryInputParameterDetails; + std::vector labels; + std::vector sourceDetails1; + std::string helpUrl; + }; + struct CreateBy + { + std::string compliancePackId; + std::string aggregatorName; + std::string compliancePackName; + std::string creatorId; + std::string creatorType; + std::string creatorName; + std::string aggregatorId; + }; + struct ConfigRuleEvaluationStatus + { + std::string lastErrorMessage; + long lastFailedInvocationTimestamp; + long lastSuccessfulEvaluationTimestamp; + long firstActivatedTimestamp; + bool firstEvaluationStarted; + long lastFailedEvaluationTimestamp; + std::string lastErrorCode; + long lastSuccessfulInvocationTimestamp; + }; + struct Scope + { + std::vector complianceResourceTypes; + }; + std::string tagKeyScope; + std::string tagValueScope; + ManagedRule managedRule; + std::string description; + std::string excludeResourceIdsScope; + CreateBy createBy; + ConfigRuleEvaluationStatus configRuleEvaluationStatus; + Source source; + std::string configRuleState; + std::string maximumExecutionFrequency; + std::string configRuleId; + Scope scope; + std::string configRuleArn; + std::string regionIdsScope; + long modifiedTimestamp; + std::string configRuleTriggerTypes; + std::string configRuleName; + std::string resourceGroupIdsScope; + int riskLevel; + long createTimestamp; + std::string resourceTypesScope; + std::string inputParameters; + }; + + + GetAggregateConfigRuleResult(); + explicit GetAggregateConfigRuleResult(const std::string &payload); + ~GetAggregateConfigRuleResult(); + ConfigRule getConfigRule()const; + + protected: + void parse(const std::string &payload); + private: + ConfigRule configRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h new file mode 100644 index 000000000..b23943712 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleSummaryByRiskLevelRequest : public RpcServiceRequest { +public: + GetAggregateConfigRuleSummaryByRiskLevelRequest(); + ~GetAggregateConfigRuleSummaryByRiskLevelRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h new file mode 100644 index 000000000..51a471479 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleSummaryByRiskLevelResult : public ServiceResult + { + public: + struct Data + { + int compliantCount; + int nonCompliantCount; + int riskLevel; + }; + + + GetAggregateConfigRuleSummaryByRiskLevelResult(); + explicit GetAggregateConfigRuleSummaryByRiskLevelResult(const std::string &payload); + ~GetAggregateConfigRuleSummaryByRiskLevelResult(); + std::vector getConfigRuleSummaries()const; + + protected: + void parse(const std::string &payload); + private: + std::vector configRuleSummaries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h similarity index 62% rename from config/include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h rename to config/include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h index 527a54ebf..19dbdab80 100644 --- a/config/include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRulesReportRequest : public RpcServiceRequest { public: - DescribeDeliveryChannelsRequest(); - ~DescribeDeliveryChannelsRequest(); - std::string getDeliveryChannelIds() const; - void setDeliveryChannelIds(const std::string &deliveryChannelIds); + GetAggregateConfigRulesReportRequest(); + ~GetAggregateConfigRulesReportRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); private: - std::string deliveryChannelIds_; + std::string aggregatorId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h similarity index 57% rename from config/include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h rename to config/include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h index 07761d45f..50ec6d70f 100644 --- a/config/include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTRESULT_H_ #include #include @@ -29,31 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRulesReportResult : public ServiceResult { public: - struct ConfigurationRecorder + struct ConfigRulesReport { - std::string configurationRecorderStatus; - std::vector resourceTypes; long accountId; - long organizationMasterId; - std::string organizationEnableStatus; + std::string reportUrl; + std::string reportStatus; + std::string aggregatorId; + long reportCreateTimestamp; }; - DescribeConfigurationRecorderResult(); - explicit DescribeConfigurationRecorderResult(const std::string &payload); - ~DescribeConfigurationRecorderResult(); - ConfigurationRecorder getConfigurationRecorder()const; + GetAggregateConfigRulesReportResult(); + explicit GetAggregateConfigRulesReportResult(const std::string &payload); + ~GetAggregateConfigRulesReportResult(); + ConfigRulesReport getConfigRulesReport()const; protected: void parse(const std::string &payload); private: - ConfigurationRecorder configurationRecorder_; + ConfigRulesReport configRulesReport_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h b/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h deleted file mode 100644 index 822148514..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.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_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateDiscoveredResourceResult : public ServiceResult - { - public: - struct DiscoveredResourceDetail - { - long resourceCreationTime; - long accountId; - std::string configuration; - std::string resourceId; - std::string resourceName; - std::string availabilityZone; - std::string region; - std::string resourceStatus; - std::string resourceType; - std::string tags; - int resourceDeleted; - }; - - - GetAggregateDiscoveredResourceResult(); - explicit GetAggregateDiscoveredResourceResult(const std::string &payload); - ~GetAggregateDiscoveredResourceResult(); - DiscoveredResourceDetail getDiscoveredResourceDetail()const; - - protected: - void parse(const std::string &payload); - private: - DiscoveredResourceDetail discoveredResourceDetail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h new file mode 100644 index 000000000..3e7e30674 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceByConfigRuleRequest : public RpcServiceRequest { +public: + GetAggregateResourceComplianceByConfigRuleRequest(); + ~GetAggregateResourceComplianceByConfigRuleRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); + +private: + std::string configRuleId_; + std::string aggregatorId_; + std::string complianceType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h new file mode 100644 index 000000000..3f62bd585 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceByConfigRuleResult : public ServiceResult + { + public: + struct ComplianceResult + { + struct CompliancesItem + { + std::string complianceType; + int count; + }; + long totalCount; + std::vector compliances; + }; + + + GetAggregateResourceComplianceByConfigRuleResult(); + explicit GetAggregateResourceComplianceByConfigRuleResult(const std::string &payload); + ~GetAggregateResourceComplianceByConfigRuleResult(); + ComplianceResult getComplianceResult()const; + + protected: + void parse(const std::string &payload); + private: + ComplianceResult complianceResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h new file mode 100644 index 000000000..eeb386dd1 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceByPackRequest : public RpcServiceRequest { +public: + GetAggregateResourceComplianceByPackRequest(); + ~GetAggregateResourceComplianceByPackRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string aggregatorId_; + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h new file mode 100644 index 000000000..10c747975 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceByPackResult : public ServiceResult + { + public: + struct ResourceComplianceResult + { + std::string compliancePackId; + int totalCount; + int nonCompliantCount; + }; + + + GetAggregateResourceComplianceByPackResult(); + explicit GetAggregateResourceComplianceByPackResult(const std::string &payload); + ~GetAggregateResourceComplianceByPackResult(); + ResourceComplianceResult getResourceComplianceResult()const; + + protected: + void parse(const std::string &payload); + private: + ResourceComplianceResult resourceComplianceResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h new file mode 100644 index 000000000..c7754d535 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceTimelineRequest : public RpcServiceRequest { +public: + GetAggregateResourceComplianceTimelineRequest(); + ~GetAggregateResourceComplianceTimelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + long getStartTime() const; + void setStartTime(long startTime); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + long getEndTime() const; + void setEndTime(long endTime); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + long resourceOwnerId_; + std::string aggregatorId_; + long startTime_; + std::string nextToken_; + std::string resourceId_; + long endTime_; + std::string resourceType_; + int maxResults_; + std::string region_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h similarity index 52% rename from config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h rename to config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h index 025347045..fb181f10c 100644 --- a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINERESULT_H_ #include #include @@ -29,43 +29,44 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT ListAggregateDiscoveredResourcesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceTimelineResult : public ServiceResult { public: - struct DiscoveredResourceProfiles + struct ResourceComplianceTimeline { - struct DiscoveredResourceProfile + struct ComplianceListItem { - long resourceCreationTime; - long accountId; + std::string accountId; + long captureTime; + std::string configurationDiff; + std::string configuration; std::string resourceId; std::string resourceName; + std::string availabilityZone; std::string region; std::string resourceStatus; std::string resourceType; - long resourceOwnerId; + long resourceCreateTime; std::string tags; - int resourceDeleted; }; - int totalCount; - int pageSize; - int pageNumber; - std::vector discoveredResourceProfileList; + std::vector complianceList; + std::string nextToken; + int maxResults; }; - ListAggregateDiscoveredResourcesResult(); - explicit ListAggregateDiscoveredResourcesResult(const std::string &payload); - ~ListAggregateDiscoveredResourcesResult(); - DiscoveredResourceProfiles getDiscoveredResourceProfiles()const; + GetAggregateResourceComplianceTimelineResult(); + explicit GetAggregateResourceComplianceTimelineResult(const std::string &payload); + ~GetAggregateResourceComplianceTimelineResult(); + ResourceComplianceTimeline getResourceComplianceTimeline()const; protected: void parse(const std::string &payload); private: - DiscoveredResourceProfiles discoveredResourceProfiles_; + ResourceComplianceTimeline resourceComplianceTimeline_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h new file mode 100644 index 000000000..fd9d645fc --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceConfigurationTimelineRequest : public RpcServiceRequest { +public: + GetAggregateResourceConfigurationTimelineRequest(); + ~GetAggregateResourceConfigurationTimelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + long getStartTime() const; + void setStartTime(long startTime); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + long getEndTime() const; + void setEndTime(long endTime); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + long resourceOwnerId_; + std::string aggregatorId_; + long startTime_; + std::string nextToken_; + std::string resourceId_; + long endTime_; + std::string resourceType_; + int maxResults_; + std::string region_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineResult.h new file mode 100644 index 000000000..2d2a41690 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceConfigurationTimelineResult : public ServiceResult + { + public: + struct ResourceConfigurationTimeline + { + struct ConfigurationListItem + { + long accountId; + std::string resourceName; + std::string availabilityZone; + std::string resourceType; + std::string resourceEventType; + std::string resourceCreateTime; + std::string relationshipDiff; + std::string captureTime; + std::string configurationDiff; + std::string resourceId; + std::string relationship; + std::string region; + std::string tags; + }; + std::string nextToken; + int maxResults; + std::vector configurationList; + }; + + + GetAggregateResourceConfigurationTimelineResult(); + explicit GetAggregateResourceConfigurationTimelineResult(const std::string &payload); + ~GetAggregateResourceConfigurationTimelineResult(); + ResourceConfigurationTimeline getResourceConfigurationTimeline()const; + + protected: + void parse(const std::string &payload); + private: + ResourceConfigurationTimeline resourceConfigurationTimeline_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h similarity index 65% rename from config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h rename to config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h index 1fa6a7731..2bc420720 100644 --- a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h +++ b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCEREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONREQUEST_H_ #include #include @@ -26,29 +26,26 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateDiscoveredResourceRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByRegionRequest : public RpcServiceRequest { public: - GetAggregateDiscoveredResourceRequest(); - ~GetAggregateDiscoveredResourceRequest(); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); + GetAggregateResourceCountsGroupByRegionRequest(); + ~GetAggregateResourceCountsGroupByRegionRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getAggregatorId() const; void setAggregatorId(const std::string &aggregatorId); std::string getResourceType() const; void setResourceType(const std::string &resourceType); - std::string getRegion() const; - void setRegion(const std::string ®ion); + std::string getFolderId() const; + void setFolderId(const std::string &folderId); private: - std::string resourceId_; long resourceOwnerId_; std::string aggregatorId_; std::string resourceType_; - std::string region_; + std::string folderId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCEREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionResult.h new file mode 100644 index 000000000..c53fb8f07 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByRegionResult : public ServiceResult + { + public: + struct GroupedResourceCount + { + std::string groupName; + long resourceCount; + std::string region; + }; + + + GetAggregateResourceCountsGroupByRegionResult(); + explicit GetAggregateResourceCountsGroupByRegionResult(const std::string &payload); + ~GetAggregateResourceCountsGroupByRegionResult(); + std::vector getDiscoveredResourceCountsSummary()const; + + protected: + void parse(const std::string &payload); + private: + std::vector discoveredResourceCountsSummary_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h similarity index 53% rename from config/include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h rename to config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h index c6c7b645b..5ef699db5 100644 --- a/config/include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h +++ b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ #include #include @@ -26,29 +26,26 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByResourceTypeRequest : public RpcServiceRequest { public: - DescribeDiscoveredResourceRequest(); - ~DescribeDiscoveredResourceRequest(); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); + GetAggregateResourceCountsGroupByResourceTypeRequest(); + ~GetAggregateResourceCountsGroupByResourceTypeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getFolderId() const; + void setFolderId(const std::string &folderId); std::string getRegion() const; void setRegion(const std::string ®ion); - long getMemberId() const; - void setMemberId(long memberId); private: - std::string resourceId_; - bool multiAccount_; - std::string resourceType_; + long resourceOwnerId_; + std::string aggregatorId_; + std::string folderId_; std::string region_; - long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeResult.h new file mode 100644 index 000000000..8e2c10e51 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByResourceTypeResult : public ServiceResult + { + public: + struct GroupedResourceCount + { + std::string groupName; + long resourceCount; + std::string resourceType; + }; + + + GetAggregateResourceCountsGroupByResourceTypeResult(); + explicit GetAggregateResourceCountsGroupByResourceTypeResult(const std::string &payload); + ~GetAggregateResourceCountsGroupByResourceTypeResult(); + std::vector getDiscoveredResourceCountsSummary()const; + + protected: + void parse(const std::string &payload); + private: + std::vector discoveredResourceCountsSummary_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StopConfigRulesRequest.h b/config/include/alibabacloud/config/model/GetAggregatorRequest.h similarity index 66% rename from config/include/alibabacloud/config/model/StopConfigRulesRequest.h rename to config/include/alibabacloud/config/model/GetAggregatorRequest.h index c8fa8235e..d2a2e9054 100644 --- a/config/include/alibabacloud/config/model/StopConfigRulesRequest.h +++ b/config/include/alibabacloud/config/model/GetAggregatorRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregatorRequest : public RpcServiceRequest { public: - StopConfigRulesRequest(); - ~StopConfigRulesRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); + GetAggregatorRequest(); + ~GetAggregatorRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); private: - std::string configRuleIds_; + std::string aggregatorId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h b/config/include/alibabacloud/config/model/GetAggregatorResult.h similarity index 51% rename from config/include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h rename to config/include/alibabacloud/config/model/GetAggregatorResult.h index e68f76454..e1b703bb8 100644 --- a/config/include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h +++ b/config/include/alibabacloud/config/model/GetAggregatorResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORRESULT_H_ #include #include @@ -29,37 +29,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetAggregatorResult : public ServiceResult { public: - struct DiscoveredResourceDetail + struct Aggregator { - long resourceCreationTime; + struct AggregatorAccountsItem + { + long accountId; + std::string recorderStatus; + std::string accountType; + std::string accountName; + }; + std::string aggregatorName; + std::string description; long accountId; - std::string configuration; - std::string resourceId; - std::string resourceName; - std::string availabilityZone; - std::string region; - std::string resourceStatus; - std::string resourceType; - std::string tags; - int resourceDeleted; + std::vector aggregatorAccounts; + std::string aggregatorCreateTimestamp; + long aggregatorAccountCount; + int aggregatorStatus; + std::string aggregatorType; + std::string aggregatorId; }; - DescribeDiscoveredResourceResult(); - explicit DescribeDiscoveredResourceResult(const std::string &payload); - ~DescribeDiscoveredResourceResult(); - DiscoveredResourceDetail getDiscoveredResourceDetail()const; + GetAggregatorResult(); + explicit GetAggregatorResult(const std::string &payload); + ~GetAggregatorResult(); + Aggregator getAggregator()const; protected: void parse(const std::string &payload); private: - DiscoveredResourceDetail discoveredResourceDetail_; + Aggregator aggregator_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h b/config/include/alibabacloud/config/model/GetCompliancePackReportRequest.h similarity index 63% rename from config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h rename to config/include/alibabacloud/config/model/GetCompliancePackReportRequest.h index 98d98f70b..5aafa51ac 100644 --- a/config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h +++ b/config/include/alibabacloud/config/model/GetCompliancePackReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT StartConfigurationRecorderRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackReportRequest : public RpcServiceRequest { public: - StartConfigurationRecorderRequest(); - ~StartConfigurationRecorderRequest(); - bool getEnterpriseEdition() const; - void setEnterpriseEdition(bool enterpriseEdition); + GetCompliancePackReportRequest(); + ~GetCompliancePackReportRequest(); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); private: - bool enterpriseEdition_; + std::string compliancePackId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetCompliancePackReportResult.h b/config/include/alibabacloud/config/model/GetCompliancePackReportResult.h new file mode 100644 index 000000000..87baf8ceb --- /dev/null +++ b/config/include/alibabacloud/config/model/GetCompliancePackReportResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackReportResult : public ServiceResult + { + public: + struct CompliancePackReport + { + std::string compliancePackId; + long accountId; + std::string reportUrl; + std::string reportStatus; + long reportCreateTimestamp; + }; + + + GetCompliancePackReportResult(); + explicit GetCompliancePackReportResult(const std::string &payload); + ~GetCompliancePackReportResult(); + CompliancePackReport getCompliancePackReport()const; + + protected: + void parse(const std::string &payload); + private: + CompliancePackReport compliancePackReport_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteConfigRulesRequest.h b/config/include/alibabacloud/config/model/GetCompliancePackRequest.h similarity index 66% rename from config/include/alibabacloud/config/model/DeleteConfigRulesRequest.h rename to config/include/alibabacloud/config/model/GetCompliancePackRequest.h index 666e13c5c..05945c6e4 100644 --- a/config/include/alibabacloud/config/model/DeleteConfigRulesRequest.h +++ b/config/include/alibabacloud/config/model/GetCompliancePackRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigRulesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackRequest : public RpcServiceRequest { public: - DeleteConfigRulesRequest(); - ~DeleteConfigRulesRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); + GetCompliancePackRequest(); + ~GetCompliancePackRequest(); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); private: - std::string configRuleIds_; + std::string compliancePackId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetCompliancePackResult.h b/config/include/alibabacloud/config/model/GetCompliancePackResult.h new file mode 100644 index 000000000..db426573e --- /dev/null +++ b/config/include/alibabacloud/config/model/GetCompliancePackResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackResult : public ServiceResult + { + public: + struct CompliancePack + { + struct ConfigRulesItem + { + struct ConfigRuleParametersItem + { + bool required; + std::string parameterValue; + std::string parameterName; + }; + std::string configRuleId; + std::string description; + std::string configRuleName; + std::string managedRuleIdentifier; + int riskLevel; + std::vector configRuleParameters; + }; + std::string status; + std::string compliancePackId; + std::string description; + std::string compliancePackName; + long accountId; + std::vector configRules; + std::string compliancePackTemplateId; + int riskLevel; + long createTimestamp; + }; + + + GetCompliancePackResult(); + explicit GetCompliancePackResult(const std::string &payload); + ~GetCompliancePackResult(); + CompliancePack getCompliancePack()const; + + protected: + void parse(const std::string &payload); + private: + CompliancePack compliancePack_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackRequest.h new file mode 100644 index 000000000..a45dbfa5c --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleComplianceByPackRequest : public RpcServiceRequest { +public: + GetConfigRuleComplianceByPackRequest(); + ~GetConfigRuleComplianceByPackRequest(); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackResult.h b/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackResult.h new file mode 100644 index 000000000..b2951ef81 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleComplianceByPackResult : public ServiceResult + { + public: + struct ConfigRuleComplianceResult + { + struct ConfigRuleCompliancesItem + { + std::string configRuleId; + std::string complianceType; + std::string configRuleName; + }; + std::vector configRuleCompliances; + std::string compliancePackId; + int totalCount; + int nonCompliantCount; + }; + + + GetConfigRuleComplianceByPackResult(); + explicit GetConfigRuleComplianceByPackResult(const std::string &payload); + ~GetConfigRuleComplianceByPackResult(); + ConfigRuleComplianceResult getConfigRuleComplianceResult()const; + + protected: + void parse(const std::string &payload); + private: + ConfigRuleComplianceResult configRuleComplianceResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetConfigRuleRequest.h new file mode 100644 index 000000000..4fd41aecf --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigRuleRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleRequest : public RpcServiceRequest { +public: + GetConfigRuleRequest(); + ~GetConfigRuleRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + +private: + std::string configRuleId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DescribeConfigRuleResult.h b/config/include/alibabacloud/config/model/GetConfigRuleResult.h similarity index 77% rename from config/include/alibabacloud/config/model/DescribeConfigRuleResult.h rename to config/include/alibabacloud/config/model/GetConfigRuleResult.h index 53c4530be..8509abfc5 100644 --- a/config/include/alibabacloud/config/model/DescribeConfigRuleResult.h +++ b/config/include/alibabacloud/config/model/GetConfigRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULERESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULERESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigRuleResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleResult : public ServiceResult { public: struct ConfigRule @@ -42,18 +42,9 @@ namespace AlibabaCloud std::string messageType; std::string maximumExecutionFrequency; }; - struct SourceConditionsItem - { - std::string desiredValue; - bool required; - std::string _operator; - std::string selectPath; - std::string tips; - std::string name; - }; std::string owner; std::string identifier; - std::vector sourceConditions; + std::vector sourceConditions; std::vector sourceDetails; }; struct ManagedRule @@ -75,16 +66,13 @@ namespace AlibabaCloud }; struct CreateBy { + std::string compliancePackId; + std::string aggregatorName; + std::string compliancePackName; std::string creatorId; - std::string configRuleSceneName; - std::string configRuleSceneId; std::string creatorType; std::string creatorName; - }; - struct Scope - { - std::string complianceResourceId; - std::vector complianceResourceTypes; + std::string aggregatorId; }; struct ConfigRuleEvaluationStatus { @@ -97,28 +85,38 @@ namespace AlibabaCloud std::string lastErrorCode; long lastSuccessfulInvocationTimestamp; }; + struct Scope + { + std::vector complianceResourceTypes; + }; + std::string tagKeyScope; + std::string tagValueScope; ManagedRule managedRule; std::string description; + std::string excludeResourceIdsScope; CreateBy createBy; ConfigRuleEvaluationStatus configRuleEvaluationStatus; Source source; std::string configRuleState; std::string maximumExecutionFrequency; - bool organizationRule; std::string configRuleId; Scope scope; std::string configRuleArn; + std::string regionIdsScope; long modifiedTimestamp; + std::string configRuleTriggerTypes; std::string configRuleName; + std::string resourceGroupIdsScope; int riskLevel; long createTimestamp; + std::string resourceTypesScope; std::string inputParameters; }; - DescribeConfigRuleResult(); - explicit DescribeConfigRuleResult(const std::string &payload); - ~DescribeConfigRuleResult(); + GetConfigRuleResult(); + explicit GetConfigRuleResult(const std::string &payload); + ~GetConfigRuleResult(); ConfigRule getConfigRule()const; protected: @@ -130,4 +128,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h b/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h similarity index 67% rename from config/include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h rename to config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h index 3357a81a8..9ed9a6b51 100644 --- a/config/include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h +++ b/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ #include #include @@ -26,14 +26,14 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleSummaryByRiskLevelRequest : public RpcServiceRequest { public: - DescribeConfigurationRecorderRequest(); - ~DescribeConfigurationRecorderRequest(); + GetConfigRuleSummaryByRiskLevelRequest(); + ~GetConfigRuleSummaryByRiskLevelRequest(); private: }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelResult.h b/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelResult.h new file mode 100644 index 000000000..44ed3b6ad --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleSummaryByRiskLevelResult : public ServiceResult + { + public: + struct Data + { + int compliantCount; + int nonCompliantCount; + int riskLevel; + }; + + + GetConfigRuleSummaryByRiskLevelResult(); + explicit GetConfigRuleSummaryByRiskLevelResult(const std::string &payload); + ~GetConfigRuleSummaryByRiskLevelResult(); + std::vector getConfigRuleSummaries()const; + + protected: + void parse(const std::string &payload); + private: + std::vector configRuleSummaries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h b/config/include/alibabacloud/config/model/GetConfigRulesReportRequest.h similarity index 69% rename from config/include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h rename to config/include/alibabacloud/config/model/GetConfigRulesReportRequest.h index ae289d689..da2456904 100644 --- a/config/include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h +++ b/config/include/alibabacloud/config/model/GetConfigRulesReportRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTREQUEST_H_ #include #include @@ -26,14 +26,14 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceTypesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetConfigRulesReportRequest : public RpcServiceRequest { public: - GetSupportedResourceTypesRequest(); - ~GetSupportedResourceTypesRequest(); + GetConfigRulesReportRequest(); + ~GetConfigRulesReportRequest(); private: }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetConfigRulesReportResult.h b/config/include/alibabacloud/config/model/GetConfigRulesReportResult.h new file mode 100644 index 000000000..7f27fb8f5 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigRulesReportResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetConfigRulesReportResult : public ServiceResult + { + public: + struct ConfigRulesReport + { + long accountId; + std::string reportUrl; + std::string reportStatus; + long reportCreateTimestamp; + }; + + + GetConfigRulesReportResult(); + explicit GetConfigRulesReportResult(const std::string &payload); + ~GetConfigRulesReportResult(); + ConfigRulesReport getConfigRulesReport()const; + + protected: + void parse(const std::string &payload); + private: + ConfigRulesReport configRulesReport_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionRequest.h similarity index 60% rename from config/include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h rename to config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionRequest.h index 17be44562..ae6009a83 100644 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONREQUEST_H_ #include #include @@ -26,23 +26,17 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsGroupByRegionRequest : public RpcServiceRequest { public: - GetDiscoveredResourceCountsRequest(); - ~GetDiscoveredResourceCountsRequest(); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - std::string getGroupByKey() const; - void setGroupByKey(const std::string &groupByKey); - long getMemberId() const; - void setMemberId(long memberId); + GetDiscoveredResourceCountsGroupByRegionRequest(); + ~GetDiscoveredResourceCountsGroupByRegionRequest(); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); private: - bool multiAccount_; - std::string groupByKey_; - long memberId_; + std::string resourceType_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionResult.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionResult.h new file mode 100644 index 000000000..98317b7e6 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsGroupByRegionResult : public ServiceResult + { + public: + struct GroupedResourceCount + { + std::string groupName; + long resourceCount; + std::string region; + }; + + + GetDiscoveredResourceCountsGroupByRegionResult(); + explicit GetDiscoveredResourceCountsGroupByRegionResult(const std::string &payload); + ~GetDiscoveredResourceCountsGroupByRegionResult(); + std::vector getDiscoveredResourceCountsSummary()const; + + protected: + void parse(const std::string &payload); + private: + std::vector discoveredResourceCountsSummary_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h new file mode 100644 index 000000000..bb6030420 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsGroupByResourceTypeRequest : public RpcServiceRequest { +public: + GetDiscoveredResourceCountsGroupByResourceTypeRequest(); + ~GetDiscoveredResourceCountsGroupByResourceTypeRequest(); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string region_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h new file mode 100644 index 000000000..5e7a52d69 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsGroupByResourceTypeResult : public ServiceResult + { + public: + struct GroupedResourceCount + { + std::string groupName; + long resourceCount; + std::string resourceType; + }; + + + GetDiscoveredResourceCountsGroupByResourceTypeResult(); + explicit GetDiscoveredResourceCountsGroupByResourceTypeResult(const std::string &payload); + ~GetDiscoveredResourceCountsGroupByResourceTypeResult(); + std::vector getDiscoveredResourceCountsSummary()const; + + protected: + void parse(const std::string &payload); + private: + std::vector discoveredResourceCountsSummary_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleRequest.h new file mode 100644 index 000000000..82edb69a2 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceByConfigRuleRequest : public RpcServiceRequest { +public: + GetResourceComplianceByConfigRuleRequest(); + ~GetResourceComplianceByConfigRuleRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); + +private: + std::string configRuleId_; + std::string complianceType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DescribeComplianceResult.h b/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleResult.h similarity index 70% rename from config/include/alibabacloud/config/model/DescribeComplianceResult.h rename to config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleResult.h index ee516b3a5..6a70e1f2e 100644 --- a/config/include/alibabacloud/config/model/DescribeComplianceResult.h +++ b/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCERESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceByConfigRuleResult : public ServiceResult { public: struct ComplianceResult @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - DescribeComplianceResult(); - explicit DescribeComplianceResult(const std::string &payload); - ~DescribeComplianceResult(); + GetResourceComplianceByConfigRuleResult(); + explicit GetResourceComplianceByConfigRuleResult(const std::string &payload); + ~GetResourceComplianceByConfigRuleResult(); ComplianceResult getComplianceResult()const; protected: @@ -58,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/PutConfigurationRecorderRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h similarity index 62% rename from config/include/alibabacloud/config/model/PutConfigurationRecorderRequest.h rename to config/include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h index 9f01ce2e9..b7849d9d6 100644 --- a/config/include/alibabacloud/config/model/PutConfigurationRecorderRequest.h +++ b/config/include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceByPackRequest : public RpcServiceRequest { public: - PutConfigurationRecorderRequest(); - ~PutConfigurationRecorderRequest(); - std::string getResourceTypes() const; - void setResourceTypes(const std::string &resourceTypes); + GetResourceComplianceByPackRequest(); + ~GetResourceComplianceByPackRequest(); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); private: - std::string resourceTypes_; + std::string compliancePackId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h b/config/include/alibabacloud/config/model/GetResourceComplianceByPackResult.h similarity index 58% rename from config/include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h rename to config/include/alibabacloud/config/model/GetResourceComplianceByPackResult.h index 36b315a27..a39b335d0 100644 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h +++ b/config/include/alibabacloud/config/model/GetResourceComplianceByPackResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKRESULT_H_ #include #include @@ -29,33 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceByPackResult : public ServiceResult { public: - struct GroupedResourceCounts + struct ResourceComplianceResult { - struct GroupedResourceCount - { - std::string groupName; - long resourceCount; - }; - std::vector groupedResourceCountList; - std::string groupByKey; + std::string compliancePackId; + int totalCount; + int nonCompliantCount; }; - GetDiscoveredResourceCountsResult(); - explicit GetDiscoveredResourceCountsResult(const std::string &payload); - ~GetDiscoveredResourceCountsResult(); - GroupedResourceCounts getGroupedResourceCounts()const; + GetResourceComplianceByPackResult(); + explicit GetResourceComplianceByPackResult(const std::string &payload); + ~GetResourceComplianceByPackResult(); + ResourceComplianceResult getResourceComplianceResult()const; protected: void parse(const std::string &payload); private: - GroupedResourceCounts groupedResourceCounts_; + ResourceComplianceResult resourceComplianceResult_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h index 2af2f10af..752697f58 100644 --- a/config/include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h +++ b/config/include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h @@ -30,35 +30,29 @@ class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceTimelineRequest : public R public: GetResourceComplianceTimelineRequest(); ~GetResourceComplianceTimelineRequest(); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - long getStartTime() const; - void setStartTime(long startTime); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - int getLimit() const; - void setLimit(int limit); std::string getResourceId() const; void setResourceId(const std::string &resourceId); long getEndTime() const; void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); std::string getResourceType() const; void setResourceType(const std::string &resourceType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); std::string getRegion() const; void setRegion(const std::string ®ion); - std::string getMemberId() const; - void setMemberId(const std::string &memberId); private: - bool multiAccount_; - long startTime_; - std::string nextToken_; - int limit_; std::string resourceId_; long endTime_; + long startTime_; std::string resourceType_; + std::string nextToken_; + int maxResults_; std::string region_; - std::string memberId_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h b/config/include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h index 8cdf9ceec..d8682c224 100644 --- a/config/include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h +++ b/config/include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h @@ -49,10 +49,9 @@ namespace AlibabaCloud long resourceCreateTime; std::string tags; }; - long totalCount; std::vector complianceList; std::string nextToken; - int limit; + int maxResults; }; diff --git a/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h b/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h index b744f237b..9cf217f5e 100644 --- a/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h +++ b/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h @@ -30,35 +30,29 @@ class ALIBABACLOUD_CONFIG_EXPORT GetResourceConfigurationTimelineRequest : publi public: GetResourceConfigurationTimelineRequest(); ~GetResourceConfigurationTimelineRequest(); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - long getStartTime() const; - void setStartTime(long startTime); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - int getLimit() const; - void setLimit(int limit); std::string getResourceId() const; void setResourceId(const std::string &resourceId); long getEndTime() const; void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); std::string getResourceType() const; void setResourceType(const std::string &resourceType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); std::string getRegion() const; void setRegion(const std::string ®ion); - long getMemberId() const; - void setMemberId(long memberId); private: - bool multiAccount_; - long startTime_; - std::string nextToken_; - int limit_; std::string resourceId_; long endTime_; + long startTime_; std::string resourceType_; + std::string nextToken_; + int maxResults_; std::string region_; - long memberId_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h b/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h index 0cf57c856..808e894b2 100644 --- a/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h +++ b/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h @@ -50,10 +50,9 @@ namespace AlibabaCloud std::string region; std::string tags; }; - long totalCount; std::string nextToken; + int maxResults; std::vector configurationList; - int limit; }; diff --git a/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h new file mode 100644 index 000000000..f60d49d14 --- /dev/null +++ b/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT IgnoreAggregateEvaluationResultsRequest : public RpcServiceRequest { +public: + struct Resources { + std::string resourceId; + long resourceAccountId; + std::string region; + std::string resourceType; + }; + IgnoreAggregateEvaluationResultsRequest(); + ~IgnoreAggregateEvaluationResultsRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getReason() const; + void setReason(const std::string &reason); + std::vector getResources() const; + void setResources(const std::vector &resources); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string configRuleId_; + std::string reason_; + std::vector resources_; + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsResult.h b/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsResult.h new file mode 100644 index 000000000..059421956 --- /dev/null +++ b/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT IgnoreAggregateEvaluationResultsResult : public ServiceResult + { + public: + + + IgnoreAggregateEvaluationResultsResult(); + explicit IgnoreAggregateEvaluationResultsResult(const std::string &payload); + ~IgnoreAggregateEvaluationResultsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.h new file mode 100644 index 000000000..7c3774902 --- /dev/null +++ b/config/include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT IgnoreEvaluationResultsRequest : public RpcServiceRequest { +public: + struct Resources { + std::string resourceId; + long resourceAccountId; + std::string region; + std::string resourceType; + }; + IgnoreEvaluationResultsRequest(); + ~IgnoreEvaluationResultsRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getReason() const; + void setReason(const std::string &reason); + std::vector getResources() const; + void setResources(const std::vector &resources); + +private: + std::string configRuleId_; + std::string reason_; + std::vector resources_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/PutEvaluationsResult.h b/config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h similarity index 68% rename from config/include/alibabacloud/config/model/PutEvaluationsResult.h rename to config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h index 22b20f80d..a4be0231f 100644 --- a/config/include/alibabacloud/config/model/PutEvaluationsResult.h +++ b/config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT PutEvaluationsResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT IgnoreEvaluationResultsResult : public ServiceResult { public: - PutEvaluationsResult(); - explicit PutEvaluationsResult(const std::string &payload); - ~PutEvaluationsResult(); - bool getResult()const; + IgnoreEvaluationResultsResult(); + explicit IgnoreEvaluationResultsResult(const std::string &payload); + ~IgnoreEvaluationResultsResult(); protected: void parse(const std::string &payload); private: - bool result_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateCompliancePacksRequest.h b/config/include/alibabacloud/config/model/ListAggregateCompliancePacksRequest.h new file mode 100644 index 000000000..7962c68b9 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateCompliancePacksRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateCompliancePacksRequest : public RpcServiceRequest { +public: + ListAggregateCompliancePacksRequest(); + ~ListAggregateCompliancePacksRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string aggregatorId_; + int pageNumber_; + int pageSize_; + std::string status_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateCompliancePacksResult.h b/config/include/alibabacloud/config/model/ListAggregateCompliancePacksResult.h new file mode 100644 index 000000000..c8bad079d --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateCompliancePacksResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateCompliancePacksResult : public ServiceResult + { + public: + struct CompliancePacksResult + { + struct CompliancePacksItem + { + std::string status; + std::string compliancePackId; + std::string description; + std::string compliancePackName; + long accountId; + std::string compliancePackTemplateId; + int riskLevel; + long createTimestamp; + std::string aggregatorId; + }; + long totalCount; + int pageSize; + std::vector compliancePacks; + int pageNumber; + }; + + + ListAggregateCompliancePacksResult(); + explicit ListAggregateCompliancePacksResult(const std::string &payload); + ~ListAggregateCompliancePacksResult(); + CompliancePacksResult getCompliancePacksResult()const; + + protected: + void parse(const std::string &payload); + private: + CompliancePacksResult compliancePacksResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h similarity index 51% rename from config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h rename to config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h index a66e81911..9710c80ab 100644 --- a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSREQUEST_H_ #include #include @@ -26,44 +26,35 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListAggregateDiscoveredResourcesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRuleEvaluationResultsRequest : public RpcServiceRequest { public: - ListAggregateDiscoveredResourcesRequest(); - ~ListAggregateDiscoveredResourcesRequest(); - int getResourceDeleted() const; - void setResourceDeleted(int resourceDeleted); + ListAggregateConfigRuleEvaluationResultsRequest(); + ~ListAggregateConfigRuleEvaluationResultsRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getRegions() const; - void setRegions(const std::string ®ions); std::string getAggregatorId() const; void setAggregatorId(const std::string &aggregatorId); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getFolderId() const; - void setFolderId(const std::string &folderId); - int getPageSize() const; - void setPageSize(int pageSize); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); std::string getComplianceType() const; void setComplianceType(const std::string &complianceType); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); - std::string getResourceTypes() const; - void setResourceTypes(const std::string &resourceTypes); private: - int resourceDeleted_; + std::string configRuleId_; long resourceOwnerId_; - std::string regions_; std::string aggregatorId_; - int pageNumber_; - std::string folderId_; - int pageSize_; + std::string nextToken_; + int maxResults_; + std::string compliancePackId_; std::string complianceType_; - std::string resourceId_; - std::string resourceTypes_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h new file mode 100644 index 000000000..0463de385 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRuleEvaluationResultsResult : public ServiceResult + { + public: + struct EvaluationResults + { + struct EvaluationResult + { + struct EvaluationResultIdentifier + { + struct EvaluationResultQualifier + { + std::string compliancePackId; + std::string configRuleId; + std::string configRuleArn; + std::string resourceId; + std::string resourceName; + std::string configRuleName; + std::string resourceType; + std::string regionId; + long resourceOwnerId; + }; + EvaluationResultQualifier evaluationResultQualifier; + long orderingTimestamp; + }; + long configRuleInvokedTimestamp; + std::string complianceType; + long resultRecordedTimestamp; + std::string invokingEventMessageType; + EvaluationResultIdentifier evaluationResultIdentifier; + int riskLevel; + bool remediationEnabled; + std::string annotation; + }; + std::vector evaluationResultList; + std::string nextToken; + int maxResults; + }; + + + ListAggregateConfigRuleEvaluationResultsResult(); + explicit ListAggregateConfigRuleEvaluationResultsResult(const std::string &payload); + ~ListAggregateConfigRuleEvaluationResultsResult(); + EvaluationResults getEvaluationResults()const; + + protected: + void parse(const std::string &payload); + private: + EvaluationResults evaluationResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListConfigRulesRequest.h b/config/include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h similarity index 75% rename from config/include/alibabacloud/config/model/ListConfigRulesRequest.h rename to config/include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h index efa37cc64..91ae78d5e 100644 --- a/config/include/alibabacloud/config/model/ListConfigRulesRequest.h +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESREQUEST_H_ #include #include @@ -26,18 +26,18 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListConfigRulesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRulesRequest : public RpcServiceRequest { public: - ListConfigRulesRequest(); - ~ListConfigRulesRequest(); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); + ListAggregateConfigRulesRequest(); + ~ListAggregateConfigRulesRequest(); bool getFilterInCompliancePack() const; void setFilterInCompliancePack(bool filterInCompliancePack); std::string getMessageType() const; void setMessageType(const std::string &messageType); std::string getConfigRuleState() const; void setConfigRuleState(const std::string &configRuleState); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); std::string getFilterInCompliancePackExcludeIds() const; void setFilterInCompliancePackExcludeIds(const std::string &filterInCompliancePackExcludeIds); int getPageNumber() const; @@ -48,31 +48,25 @@ public: void setCompliancePackId(const std::string &compliancePackId); std::string getComplianceType() const; void setComplianceType(const std::string &complianceType); - std::string getConfigRuleSceneId() const; - void setConfigRuleSceneId(const std::string &configRuleSceneId); int getRiskLevel() const; void setRiskLevel(int riskLevel); std::string getConfigRuleName() const; void setConfigRuleName(const std::string &configRuleName); - long getMemberId() const; - void setMemberId(long memberId); private: - bool multiAccount_; bool filterInCompliancePack_; std::string messageType_; std::string configRuleState_; + std::string aggregatorId_; std::string filterInCompliancePackExcludeIds_; int pageNumber_; int pageSize_; std::string compliancePackId_; std::string complianceType_; - std::string configRuleSceneId_; int riskLevel_; std::string configRuleName_; - long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListConfigRulesResult.h b/config/include/alibabacloud/config/model/ListAggregateConfigRulesResult.h similarity index 78% rename from config/include/alibabacloud/config/model/ListConfigRulesResult.h rename to config/include/alibabacloud/config/model/ListAggregateConfigRulesResult.h index ae1369527..3d4c3e640 100644 --- a/config/include/alibabacloud/config/model/ListConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT ListConfigRulesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRulesResult : public ServiceResult { public: struct ConfigRules @@ -44,26 +44,25 @@ namespace AlibabaCloud struct CreateBy { std::string compliancePackId; + std::string aggregatorName; std::string compliancePackName; std::string creatorId; - std::string configRuleSceneName; - std::string configRuleSceneId; std::string creatorType; std::string creatorName; + std::string aggregatorId; }; + std::string configRuleId; long accountId; std::string description; Compliance compliance; + std::string configRuleArn; + std::string automationType; std::string sourceOwner; CreateBy createBy; std::string sourceIdentifier; - std::string configRuleState; - std::string compliancePackId; - std::string configRuleId; - std::string configRuleArn; - std::string automationType; std::string configRuleName; int riskLevel; + std::string configRuleState; }; long totalCount; int pageSize; @@ -72,9 +71,9 @@ namespace AlibabaCloud }; - ListConfigRulesResult(); - explicit ListConfigRulesResult(const std::string &payload); - ~ListConfigRulesResult(); + ListAggregateConfigRulesResult(); + explicit ListAggregateConfigRulesResult(const std::string &payload); + ~ListAggregateConfigRulesResult(); ConfigRules getConfigRules()const; protected: @@ -86,4 +85,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h similarity index 58% rename from config/include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h rename to config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h index 870931905..74d3f6594 100644 --- a/config/include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h +++ b/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSREQUEST_H_ #include #include @@ -26,38 +26,35 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeEvaluationResultsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateResourceEvaluationResultsRequest : public RpcServiceRequest { public: - DescribeEvaluationResultsRequest(); - ~DescribeEvaluationResultsRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - int getPageNumber() const; - void setPageNumber(int pageNumber); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getComplianceType() const; - void setComplianceType(const std::string &complianceType); + ListAggregateResourceEvaluationResultsRequest(); + ~ListAggregateResourceEvaluationResultsRequest(); std::string getResourceId() const; void setResourceId(const std::string &resourceId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); std::string getResourceType() const; void setResourceType(const std::string &resourceType); - long getMemberId() const; - void setMemberId(long memberId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getRegion() const; + void setRegion(const std::string ®ion); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); private: - std::string configRuleId_; - bool multiAccount_; - int pageNumber_; - int pageSize_; - std::string complianceType_; std::string resourceId_; + std::string aggregatorId_; std::string resourceType_; - long memberId_; + std::string nextToken_; + int maxResults_; + std::string region_; + std::string complianceType_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.h b/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.h new file mode 100644 index 000000000..c9c84d4cd --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateResourceEvaluationResultsResult : public ServiceResult + { + public: + struct EvaluationResults + { + struct EvaluationResult + { + struct EvaluationResultIdentifier + { + struct EvaluationResultQualifier + { + std::string configRuleId; + std::string configRuleArn; + std::string resourceId; + std::string resourceName; + std::string configRuleName; + std::string resourceType; + std::string regionId; + }; + EvaluationResultQualifier evaluationResultQualifier; + long orderingTimestamp; + }; + long configRuleInvokedTimestamp; + std::string complianceType; + long resultRecordedTimestamp; + std::string invokingEventMessageType; + EvaluationResultIdentifier evaluationResultIdentifier; + int riskLevel; + bool remediationEnabled; + std::string annotation; + }; + std::vector evaluationResultList; + std::string nextToken; + int maxResults; + }; + + + ListAggregateResourceEvaluationResultsResult(); + explicit ListAggregateResourceEvaluationResultsResult(const std::string &payload); + ~ListAggregateResourceEvaluationResultsResult(); + EvaluationResults getEvaluationResults()const; + + protected: + void parse(const std::string &payload); + private: + EvaluationResults evaluationResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregatorsRequest.h b/config/include/alibabacloud/config/model/ListAggregatorsRequest.h new file mode 100644 index 000000000..8eb83ed1e --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregatorsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregatorsRequest : public RpcServiceRequest { +public: + ListAggregatorsRequest(); + ~ListAggregatorsRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregatorsResult.h b/config/include/alibabacloud/config/model/ListAggregatorsResult.h new file mode 100644 index 000000000..a3c0a45a9 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregatorsResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregatorsResult : public ServiceResult + { + public: + struct AggregatorsResult + { + struct AggregatorsItem + { + std::string aggregatorName; + std::string description; + long accountId; + long aggregatorCreateTimestamp; + long aggregatorAccountCount; + int aggregatorStatus; + std::string aggregatorType; + std::string aggregatorId; + }; + std::string nextToken; + int maxResults; + std::vector aggregators; + }; + + + ListAggregatorsResult(); + explicit ListAggregatorsResult(const std::string &payload); + ~ListAggregatorsResult(); + AggregatorsResult getAggregatorsResult()const; + + protected: + void parse(const std::string &payload); + private: + AggregatorsResult aggregatorsResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.h b/config/include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.h new file mode 100644 index 000000000..2feb63050 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListCompliancePackTemplatesRequest : public RpcServiceRequest { +public: + ListCompliancePackTemplatesRequest(); + ~ListCompliancePackTemplatesRequest(); + std::string getCompliancePackTemplateId() const; + void setCompliancePackTemplateId(const std::string &compliancePackTemplateId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string compliancePackTemplateId_; + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListCompliancePackTemplatesResult.h b/config/include/alibabacloud/config/model/ListCompliancePackTemplatesResult.h new file mode 100644 index 000000000..cfac3b102 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListCompliancePackTemplatesResult.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_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListCompliancePackTemplatesResult : public ServiceResult + { + public: + struct CompliancePackTemplatesResult + { + struct CompliancePackTemplate + { + struct ConfigRulesItem + { + struct ConfigRuleParametersItem + { + bool required; + std::string parameterValue; + std::string parameterName; + }; + std::string managedRuleName; + std::string description; + std::string managedRuleIdentifier; + int riskLevel; + std::vector configRuleParameters; + }; + std::string compliancePackTemplateName; + std::string description; + std::vector configRules; + std::string compliancePackTemplateId; + int riskLevel; + std::string automationHelpUrl; + }; + std::vector compliancePackTemplates; + long totalCount; + int pageSize; + int pageNumber; + }; + + + ListCompliancePackTemplatesResult(); + explicit ListCompliancePackTemplatesResult(const std::string &payload); + ~ListCompliancePackTemplatesResult(); + CompliancePackTemplatesResult getCompliancePackTemplatesResult()const; + + protected: + void parse(const std::string &payload); + private: + CompliancePackTemplatesResult compliancePackTemplatesResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListCompliancePacksRequest.h b/config/include/alibabacloud/config/model/ListCompliancePacksRequest.h new file mode 100644 index 000000000..879a28361 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListCompliancePacksRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListCompliancePacksRequest : public RpcServiceRequest { +public: + ListCompliancePacksRequest(); + ~ListCompliancePacksRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + int pageNumber_; + int pageSize_; + std::string status_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h b/config/include/alibabacloud/config/model/ListCompliancePacksResult.h similarity index 51% rename from config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h rename to config/include/alibabacloud/config/model/ListCompliancePacksResult.h index b29dfd38e..5420bbbd4 100644 --- a/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h +++ b/config/include/alibabacloud/config/model/ListCompliancePacksResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSRESULT_H_ #include #include @@ -29,42 +29,41 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT ListDiscoveredResourcesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT ListCompliancePacksResult : public ServiceResult { public: - struct DiscoveredResourceProfiles + struct CompliancePacksResult { - struct DiscoveredResourceProfile + struct CompliancePacksItem { - long resourceCreationTime; + std::string status; + std::string compliancePackId; + std::string description; + std::string compliancePackName; long accountId; - std::string resourceId; - std::string resourceName; - std::string region; - std::string resourceStatus; - std::string resourceType; - std::string tags; - int resourceDeleted; + std::string compliancePackTemplateId; + int riskLevel; + long createTimestamp; }; - int totalCount; + long totalCount; int pageSize; + std::vector compliancePacks; int pageNumber; - std::vector discoveredResourceProfileList; }; - ListDiscoveredResourcesResult(); - explicit ListDiscoveredResourcesResult(const std::string &payload); - ~ListDiscoveredResourcesResult(); - DiscoveredResourceProfiles getDiscoveredResourceProfiles()const; + ListCompliancePacksResult(); + explicit ListCompliancePacksResult(const std::string &payload); + ~ListCompliancePacksResult(); + CompliancePacksResult getCompliancePacksResult()const; protected: void parse(const std::string &payload); private: - DiscoveredResourceProfiles discoveredResourceProfiles_; + CompliancePacksResult compliancePacksResult_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h new file mode 100644 index 000000000..cd547721d --- /dev/null +++ b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListConfigRuleEvaluationResultsRequest : public RpcServiceRequest { +public: + ListConfigRuleEvaluationResultsRequest(); + ~ListConfigRuleEvaluationResultsRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); + +private: + std::string configRuleId_; + std::string nextToken_; + int maxResults_; + std::string compliancePackId_; + std::string complianceType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h new file mode 100644 index 000000000..4cf9e60b6 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListConfigRuleEvaluationResultsResult : public ServiceResult + { + public: + struct EvaluationResults + { + struct EvaluationResult + { + struct EvaluationResultIdentifier + { + struct EvaluationResultQualifier + { + std::string compliancePackId; + std::string configRuleId; + std::string configRuleArn; + std::string resourceId; + std::string resourceName; + std::string configRuleName; + std::string resourceType; + std::string regionId; + long resourceOwnerId; + }; + EvaluationResultQualifier evaluationResultQualifier; + long orderingTimestamp; + }; + long configRuleInvokedTimestamp; + std::string complianceType; + long resultRecordedTimestamp; + std::string invokingEventMessageType; + EvaluationResultIdentifier evaluationResultIdentifier; + int riskLevel; + bool remediationEnabled; + std::string annotation; + }; + std::vector evaluationResultList; + std::string nextToken; + int maxResults; + }; + + + ListConfigRuleEvaluationResultsResult(); + explicit ListConfigRuleEvaluationResultsResult(const std::string &payload); + ~ListConfigRuleEvaluationResultsResult(); + EvaluationResults getEvaluationResults()const; + + protected: + void parse(const std::string &payload); + private: + EvaluationResults evaluationResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h b/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h deleted file mode 100644 index 3099c3dbc..000000000 --- a/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListDiscoveredResourcesRequest : public RpcServiceRequest { -public: - ListDiscoveredResourcesRequest(); - ~ListDiscoveredResourcesRequest(); - int getResourceDeleted() const; - void setResourceDeleted(int resourceDeleted); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - std::string getRegions() const; - void setRegions(const std::string ®ions); - int getPageNumber() const; - void setPageNumber(int pageNumber); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getComplianceType() const; - void setComplianceType(const std::string &complianceType); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); - std::string getResourceTypes() const; - void setResourceTypes(const std::string &resourceTypes); - long getMemberId() const; - void setMemberId(long memberId); - -private: - int resourceDeleted_; - bool multiAccount_; - std::string regions_; - int pageNumber_; - int pageSize_; - std::string complianceType_; - std::string resourceId_; - std::string resourceTypes_; - long memberId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h b/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h deleted file mode 100644 index 09dc6d447..000000000 --- a/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h +++ /dev/null @@ -1,59 +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_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListRemediationTemplatesResult : public ServiceResult - { - public: - struct RemediationTemplate - { - std::string templateIdentifier; - std::string compulsoryParameters; - std::string templateName; - std::string templateDefinition; - std::string remediationType; - }; - - - ListRemediationTemplatesResult(); - explicit ListRemediationTemplatesResult(const std::string &payload); - ~ListRemediationTemplatesResult(); - std::vector getRemediationTemplates()const; - - protected: - void parse(const std::string &payload); - private: - std::vector remediationTemplates_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeComplianceRequest.h b/config/include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h similarity index 63% rename from config/include/alibabacloud/config/model/DescribeComplianceRequest.h rename to config/include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h index 76d37a669..e0fca14b0 100644 --- a/config/include/alibabacloud/config/model/DescribeComplianceRequest.h +++ b/config/include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSREQUEST_H_ #include #include @@ -26,32 +26,32 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT ListResourceEvaluationResultsRequest : public RpcServiceRequest { public: - DescribeComplianceRequest(); - ~DescribeComplianceRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); + ListResourceEvaluationResultsRequest(); + ~ListResourceEvaluationResultsRequest(); std::string getResourceId() const; void setResourceId(const std::string &resourceId); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); std::string getResourceType() const; void setResourceType(const std::string &resourceType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getRegion() const; + void setRegion(const std::string ®ion); std::string getComplianceType() const; void setComplianceType(const std::string &complianceType); - long getMemberId() const; - void setMemberId(long memberId); private: - std::string configRuleId_; std::string resourceId_; - bool multiAccount_; std::string resourceType_; + std::string nextToken_; + int maxResults_; + std::string region_; std::string complianceType_; - long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DescribeEvaluationResultsResult.h b/config/include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h similarity index 78% rename from config/include/alibabacloud/config/model/DescribeEvaluationResultsResult.h rename to config/include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h index 5fdaac7e6..505269cb7 100644 --- a/config/include/alibabacloud/config/model/DescribeEvaluationResultsResult.h +++ b/config/include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DescribeEvaluationResultsResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT ListResourceEvaluationResultsResult : public ServiceResult { public: struct EvaluationResults @@ -61,15 +61,14 @@ namespace AlibabaCloud std::string annotation; }; std::vector evaluationResultList; - long totalCount; - int pageSize; - int pageNumber; + std::string nextToken; + int maxResults; }; - DescribeEvaluationResultsResult(); - explicit DescribeEvaluationResultsResult(const std::string &payload); - ~DescribeEvaluationResultsResult(); + ListResourceEvaluationResultsResult(); + explicit ListResourceEvaluationResultsResult(const std::string &payload); + ~ListResourceEvaluationResultsResult(); EvaluationResults getEvaluationResults()const; protected: @@ -81,4 +80,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/PutConfigRuleRequest.h b/config/include/alibabacloud/config/model/PutConfigRuleRequest.h deleted file mode 100644 index 5996f7f4c..000000000 --- a/config/include/alibabacloud/config/model/PutConfigRuleRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT PutConfigRuleRequest : public RpcServiceRequest { -public: - PutConfigRuleRequest(); - ~PutConfigRuleRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getSourceIdentifier() const; - void setSourceIdentifier(const std::string &sourceIdentifier); - std::string getSourceMaximumExecutionFrequency() const; - void setSourceMaximumExecutionFrequency(const std::string &sourceMaximumExecutionFrequency); - std::string getScopeComplianceResourceTypes() const; - void setScopeComplianceResourceTypes(const std::string &scopeComplianceResourceTypes); - std::string getSourceDetailMessageType() const; - void setSourceDetailMessageType(const std::string &sourceDetailMessageType); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - std::string getSourceOwner() const; - void setSourceOwner(const std::string &sourceOwner); - std::string getInputParameters() const; - void setInputParameters(const std::string &inputParameters); - std::string getScopeComplianceExcludeResourceIds() const; - void setScopeComplianceExcludeResourceIds(const std::string &scopeComplianceExcludeResourceIds); - std::string getConfigRuleName() const; - void setConfigRuleName(const std::string &configRuleName); - std::string getScopeComplianceResourceId() const; - void setScopeComplianceResourceId(const std::string &scopeComplianceResourceId); - std::string getScopeComplianceResourceIds() const; - void setScopeComplianceResourceIds(const std::string &scopeComplianceResourceIds); - std::string getScopeComplianceRegionIds() const; - void setScopeComplianceRegionIds(const std::string &scopeComplianceRegionIds); - long getMemberId() const; - void setMemberId(long memberId); - -private: - std::string configRuleId_; - bool multiAccount_; - std::string clientToken_; - std::string description_; - std::string sourceIdentifier_; - std::string sourceMaximumExecutionFrequency_; - std::string scopeComplianceResourceTypes_; - std::string sourceDetailMessageType_; - int riskLevel_; - std::string sourceOwner_; - std::string inputParameters_; - std::string scopeComplianceExcludeResourceIds_; - std::string configRuleName_; - std::string scopeComplianceResourceId_; - std::string scopeComplianceResourceIds_; - std::string scopeComplianceRegionIds_; - long memberId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/PutDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/PutDeliveryChannelRequest.h deleted file mode 100644 index 437a0e917..000000000 --- a/config/include/alibabacloud/config/model/PutDeliveryChannelRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelRequest : public RpcServiceRequest { -public: - PutDeliveryChannelRequest(); - ~PutDeliveryChannelRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getDeliveryChannelTargetArn() const; - void setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn); - std::string getDeliveryChannelCondition() const; - void setDeliveryChannelCondition(const std::string &deliveryChannelCondition); - std::string getDeliveryChannelAssumeRoleArn() const; - void setDeliveryChannelAssumeRoleArn(const std::string &deliveryChannelAssumeRoleArn); - std::string getDeliveryChannelName() const; - void setDeliveryChannelName(const std::string &deliveryChannelName); - std::string getDeliveryChannelId() const; - void setDeliveryChannelId(const std::string &deliveryChannelId); - std::string getDeliveryChannelType() const; - void setDeliveryChannelType(const std::string &deliveryChannelType); - int getStatus() const; - void setStatus(int status); - -private: - std::string clientToken_; - std::string description_; - std::string deliveryChannelTargetArn_; - std::string deliveryChannelCondition_; - std::string deliveryChannelAssumeRoleArn_; - std::string deliveryChannelName_; - std::string deliveryChannelId_; - std::string deliveryChannelType_; - int status_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/PutEvaluationsRequest.h b/config/include/alibabacloud/config/model/PutEvaluationsRequest.h deleted file mode 100644 index 418e22d85..000000000 --- a/config/include/alibabacloud/config/model/PutEvaluationsRequest.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_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT PutEvaluationsRequest : public RpcServiceRequest { -public: - PutEvaluationsRequest(); - ~PutEvaluationsRequest(); - std::string getEvaluations() const; - void setEvaluations(const std::string &evaluations); - bool getDeleteMode() const; - void setDeleteMode(bool deleteMode); - std::string getResultToken() const; - void setResultToken(const std::string &resultToken); - -private: - std::string evaluations_; - bool deleteMode_; - std::string resultToken_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h new file mode 100644 index 000000000..4e1cb5722 --- /dev/null +++ b/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT RevertAggregateEvaluationResultsRequest : public RpcServiceRequest { +public: + struct Resources { + std::string resourceId; + long resourceAccountId; + std::string region; + std::string resourceType; + }; + RevertAggregateEvaluationResultsRequest(); + ~RevertAggregateEvaluationResultsRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::vector getResources() const; + void setResources(const std::vector &resources); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string configRuleId_; + std::vector resources_; + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsResult.h b/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsResult.h new file mode 100644 index 000000000..d1f5c7b80 --- /dev/null +++ b/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT RevertAggregateEvaluationResultsResult : public ServiceResult + { + public: + + + RevertAggregateEvaluationResultsResult(); + explicit RevertAggregateEvaluationResultsResult(const std::string &payload); + ~RevertAggregateEvaluationResultsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/RevertEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/RevertEvaluationResultsRequest.h new file mode 100644 index 000000000..4f66bffd7 --- /dev/null +++ b/config/include/alibabacloud/config/model/RevertEvaluationResultsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT RevertEvaluationResultsRequest : public RpcServiceRequest { +public: + struct Resources { + std::string resourceId; + long resourceAccountId; + std::string region; + std::string resourceType; + }; + RevertEvaluationResultsRequest(); + ~RevertEvaluationResultsRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::vector getResources() const; + void setResources(const std::vector &resources); + +private: + std::string configRuleId_; + std::vector resources_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/RevertEvaluationResultsResult.h b/config/include/alibabacloud/config/model/RevertEvaluationResultsResult.h new file mode 100644 index 000000000..d6ff0762e --- /dev/null +++ b/config/include/alibabacloud/config/model/RevertEvaluationResultsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT RevertEvaluationResultsResult : public ServiceResult + { + public: + + + RevertEvaluationResultsResult(); + explicit RevertEvaluationResultsResult(const std::string &payload); + ~RevertEvaluationResultsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h b/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.h similarity index 68% rename from config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h rename to config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.h index 6aab98498..62667604a 100644 --- a/config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h +++ b/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONREQUEST_H_ #include #include @@ -26,29 +26,26 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT StartConfigRuleEvaluationRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT StartAggregateConfigRuleEvaluationRequest : public RpcServiceRequest { public: - StartConfigRuleEvaluationRequest(); - ~StartConfigRuleEvaluationRequest(); + StartAggregateConfigRuleEvaluationRequest(); + ~StartAggregateConfigRuleEvaluationRequest(); std::string getConfigRuleId() const; void setConfigRuleId(const std::string &configRuleId); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); std::string getCompliancePackId() const; void setCompliancePackId(const std::string &compliancePackId); bool getRevertEvaluation() const; void setRevertEvaluation(bool revertEvaluation); - long getMemberId() const; - void setMemberId(long memberId); private: std::string configRuleId_; - bool multiAccount_; + std::string aggregatorId_; std::string compliancePackId_; bool revertEvaluation_; - long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationResult.h b/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationResult.h new file mode 100644 index 000000000..abb4b93b9 --- /dev/null +++ b/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT StartAggregateConfigRuleEvaluationResult : public ServiceResult + { + public: + + + StartAggregateConfigRuleEvaluationResult(); + explicit StartAggregateConfigRuleEvaluationResult(const std::string &payload); + ~StartAggregateConfigRuleEvaluationResult(); + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h b/config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h deleted file mode 100644 index fef17df5e..000000000 --- a/config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h +++ /dev/null @@ -1,59 +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_CONFIG_MODEL_STARTCONFIGURATIONRECORDERRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT StartConfigurationRecorderResult : public ServiceResult - { - public: - struct ConfigurationRecorder - { - std::string configurationRecorderStatus; - std::vector resourceTypes; - long accountId; - long organizationMasterId; - std::string organizationEnableStatus; - }; - - - StartConfigurationRecorderResult(); - explicit StartConfigurationRecorderResult(const std::string &payload); - ~StartConfigurationRecorderResult(); - ConfigurationRecorder getConfigurationRecorder()const; - - protected: - void parse(const std::string &payload); - private: - ConfigurationRecorder configurationRecorder_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h b/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h new file mode 100644 index 000000000..0ea7f9ae5 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateCompliancePackRequest : public RpcServiceRequest { +public: + struct ConfigRules { + std::string managedRuleIdentifier; + struct ConfigRuleParametersItem { + std::string parameterValue; + std::string parameterName; + }; + ConfigRuleParametersItem configRuleParametersItem; + std::vector configRuleParameters; + std::string configRuleId; + std::string configRuleName; + std::string description; + int riskLevel; + }; + UpdateAggregateCompliancePackRequest(); + ~UpdateAggregateCompliancePackRequest(); + std::string getCompliancePackName() const; + void setCompliancePackName(const std::string &compliancePackName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + std::vector getConfigRules() const; + void setConfigRules(const std::vector &configRules); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + +private: + std::string compliancePackName_; + std::string clientToken_; + std::string description_; + std::string aggregatorId_; + std::string compliancePackId_; + std::vector configRules_; + int riskLevel_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h b/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h new file mode 100644 index 000000000..8ec743731 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateCompliancePackResult : public ServiceResult + { + public: + + + UpdateAggregateCompliancePackResult(); + explicit UpdateAggregateCompliancePackResult(const std::string &payload); + ~UpdateAggregateCompliancePackResult(); + std::string getCompliancePackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string compliancePackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h b/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h new file mode 100644 index 000000000..0908a9218 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateConfigRuleRequest : public RpcServiceRequest { +public: + UpdateAggregateConfigRuleRequest(); + ~UpdateAggregateConfigRuleRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getTagKeyScope() const; + void setTagKeyScope(const std::string &tagKeyScope); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getResourceTypesScope() const; + void setResourceTypesScope(const std::vector &resourceTypesScope); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getConfigRuleTriggerTypes() const; + void setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes); + std::string getTagValueScope() const; + void setTagValueScope(const std::string &tagValueScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + std::string getResourceGroupIdsScope() const; + void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); + std::string getInputParameters() const; + void setInputParameters(const std::string &inputParameters); + std::string getConfigRuleName() const; + void setConfigRuleName(const std::string &configRuleName); + std::string getMaximumExecutionFrequency() const; + void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); + std::string getExcludeResourceIdsScope() const; + void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); + +private: + std::string configRuleId_; + std::string tagKeyScope_; + std::string clientToken_; + std::vector resourceTypesScope_; + std::string description_; + std::string aggregatorId_; + std::string configRuleTriggerTypes_; + std::string tagValueScope_; + std::string regionIdsScope_; + int riskLevel_; + std::string resourceGroupIdsScope_; + std::string inputParameters_; + std::string configRuleName_; + std::string maximumExecutionFrequency_; + std::string excludeResourceIdsScope_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h b/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h new file mode 100644 index 000000000..cfab4e4fd --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateConfigRuleResult : public ServiceResult + { + public: + + + UpdateAggregateConfigRuleResult(); + explicit UpdateAggregateConfigRuleResult(const std::string &payload); + ~UpdateAggregateConfigRuleResult(); + std::string getConfigRuleId()const; + + protected: + void parse(const std::string &payload); + private: + std::string configRuleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateAggregatorRequest.h b/config/include/alibabacloud/config/model/UpdateAggregatorRequest.h new file mode 100644 index 000000000..6f6819bb6 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregatorRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregatorRequest : public RpcServiceRequest { +public: + struct AggregatorAccounts { + long accountId; + std::string accountName; + std::string accountType; + }; + UpdateAggregatorRequest(); + ~UpdateAggregatorRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAggregatorName() const; + void setAggregatorName(const std::string &aggregatorName); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::vector getAggregatorAccounts() const; + void setAggregatorAccounts(const std::vector &aggregatorAccounts); + +private: + std::string clientToken_; + std::string aggregatorName_; + std::string description_; + std::string aggregatorId_; + std::vector aggregatorAccounts_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregatorResult.h b/config/include/alibabacloud/config/model/UpdateAggregatorResult.h new file mode 100644 index 000000000..3e96966ad --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregatorResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregatorResult : public ServiceResult + { + public: + + + UpdateAggregatorResult(); + explicit UpdateAggregatorResult(const std::string &payload); + ~UpdateAggregatorResult(); + std::string getAggregatorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aggregatorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateCompliancePackRequest.h b/config/include/alibabacloud/config/model/UpdateCompliancePackRequest.h new file mode 100644 index 000000000..fe4ec0166 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateCompliancePackRequest.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateCompliancePackRequest : public RpcServiceRequest { +public: + struct ConfigRules { + std::string managedRuleIdentifier; + struct ConfigRuleParametersItem { + std::string parameterValue; + std::string parameterName; + }; + ConfigRuleParametersItem configRuleParametersItem; + std::vector configRuleParameters; + std::string configRuleId; + std::string configRuleName; + std::string description; + int riskLevel; + }; + UpdateCompliancePackRequest(); + ~UpdateCompliancePackRequest(); + std::string getCompliancePackName() const; + void setCompliancePackName(const std::string &compliancePackName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + std::vector getConfigRules() const; + void setConfigRules(const std::vector &configRules); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + +private: + std::string compliancePackName_; + std::string clientToken_; + std::string description_; + std::string compliancePackId_; + std::vector configRules_; + int riskLevel_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateCompliancePackResult.h b/config/include/alibabacloud/config/model/UpdateCompliancePackResult.h new file mode 100644 index 000000000..2df55d58e --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateCompliancePackResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateCompliancePackResult : public ServiceResult + { + public: + + + UpdateCompliancePackResult(); + explicit UpdateCompliancePackResult(const std::string &payload); + ~UpdateCompliancePackResult(); + std::string getCompliancePackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string compliancePackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateConfigRuleRequest.h b/config/include/alibabacloud/config/model/UpdateConfigRuleRequest.h new file mode 100644 index 000000000..dbcc4921e --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateConfigRuleRequest.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_CONFIG_MODEL_UPDATECONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigRuleRequest : public RpcServiceRequest { +public: + UpdateConfigRuleRequest(); + ~UpdateConfigRuleRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getTagKeyScope() const; + void setTagKeyScope(const std::string &tagKeyScope); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getResourceTypesScope() const; + void setResourceTypesScope(const std::vector &resourceTypesScope); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getConfigRuleTriggerTypes() const; + void setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes); + std::string getTagValueScope() const; + void setTagValueScope(const std::string &tagValueScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + std::string getResourceGroupIdsScope() const; + void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); + std::string getInputParameters() const; + void setInputParameters(const std::string &inputParameters); + std::string getConfigRuleName() const; + void setConfigRuleName(const std::string &configRuleName); + std::string getMaximumExecutionFrequency() const; + void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); + std::string getExcludeResourceIdsScope() const; + void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); + +private: + std::string configRuleId_; + std::string tagKeyScope_; + std::string clientToken_; + std::vector resourceTypesScope_; + std::string description_; + std::string configRuleTriggerTypes_; + std::string tagValueScope_; + std::string regionIdsScope_; + int riskLevel_; + std::string resourceGroupIdsScope_; + std::string inputParameters_; + std::string configRuleName_; + std::string maximumExecutionFrequency_; + std::string excludeResourceIdsScope_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateConfigRuleResult.h b/config/include/alibabacloud/config/model/UpdateConfigRuleResult.h new file mode 100644 index 000000000..e850c24fa --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateConfigRuleResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigRuleResult : public ServiceResult + { + public: + + + UpdateConfigRuleResult(); + explicit UpdateConfigRuleResult(const std::string &payload); + ~UpdateConfigRuleResult(); + std::string getConfigRuleId()const; + + protected: + void parse(const std::string &payload); + private: + std::string configRuleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/src/ConfigClient.cc b/config/src/ConfigClient.cc index 58177e892..a720306a4 100644 --- a/config/src/ConfigClient.cc +++ b/config/src/ConfigClient.cc @@ -51,432 +51,1584 @@ ConfigClient::ConfigClient(const std::string & accessKeyId, const std::string & ConfigClient::~ConfigClient() {} -ConfigClient::ActiveConfigRulesOutcome ConfigClient::activeConfigRules(const ActiveConfigRulesRequest &request) const +ConfigClient::ActiveAggregateConfigRulesOutcome ConfigClient::activeAggregateConfigRules(const ActiveAggregateConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ActiveConfigRulesOutcome(endpointOutcome.error()); + return ActiveAggregateConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ActiveConfigRulesOutcome(ActiveConfigRulesResult(outcome.result())); + return ActiveAggregateConfigRulesOutcome(ActiveAggregateConfigRulesResult(outcome.result())); else - return ActiveConfigRulesOutcome(outcome.error()); + return ActiveAggregateConfigRulesOutcome(outcome.error()); } -void ConfigClient::activeConfigRulesAsync(const ActiveConfigRulesRequest& request, const ActiveConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::activeAggregateConfigRulesAsync(const ActiveAggregateConfigRulesRequest& request, const ActiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, activeConfigRules(request), context); + handler(this, request, activeAggregateConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ActiveConfigRulesOutcomeCallable ConfigClient::activeConfigRulesCallable(const ActiveConfigRulesRequest &request) const +ConfigClient::ActiveAggregateConfigRulesOutcomeCallable ConfigClient::activeAggregateConfigRulesCallable(const ActiveAggregateConfigRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->activeConfigRules(request); + return this->activeAggregateConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DeleteConfigRulesOutcome ConfigClient::deleteConfigRules(const DeleteConfigRulesRequest &request) const +ConfigClient::AttachAggregateConfigRuleToCompliancePackOutcome ConfigClient::attachAggregateConfigRuleToCompliancePack(const AttachAggregateConfigRuleToCompliancePackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteConfigRulesOutcome(endpointOutcome.error()); + return AttachAggregateConfigRuleToCompliancePackOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteConfigRulesOutcome(DeleteConfigRulesResult(outcome.result())); + return AttachAggregateConfigRuleToCompliancePackOutcome(AttachAggregateConfigRuleToCompliancePackResult(outcome.result())); else - return DeleteConfigRulesOutcome(outcome.error()); + return AttachAggregateConfigRuleToCompliancePackOutcome(outcome.error()); } -void ConfigClient::deleteConfigRulesAsync(const DeleteConfigRulesRequest& request, const DeleteConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::attachAggregateConfigRuleToCompliancePackAsync(const AttachAggregateConfigRuleToCompliancePackRequest& request, const AttachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteConfigRules(request), context); + handler(this, request, attachAggregateConfigRuleToCompliancePack(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DeleteConfigRulesOutcomeCallable ConfigClient::deleteConfigRulesCallable(const DeleteConfigRulesRequest &request) const +ConfigClient::AttachAggregateConfigRuleToCompliancePackOutcomeCallable ConfigClient::attachAggregateConfigRuleToCompliancePackCallable(const AttachAggregateConfigRuleToCompliancePackRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteConfigRules(request); + return this->attachAggregateConfigRuleToCompliancePack(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeComplianceOutcome ConfigClient::describeCompliance(const DescribeComplianceRequest &request) const +ConfigClient::AttachConfigRuleToCompliancePackOutcome ConfigClient::attachConfigRuleToCompliancePack(const AttachConfigRuleToCompliancePackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeComplianceOutcome(endpointOutcome.error()); + return AttachConfigRuleToCompliancePackOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeComplianceOutcome(DescribeComplianceResult(outcome.result())); + return AttachConfigRuleToCompliancePackOutcome(AttachConfigRuleToCompliancePackResult(outcome.result())); else - return DescribeComplianceOutcome(outcome.error()); + return AttachConfigRuleToCompliancePackOutcome(outcome.error()); } -void ConfigClient::describeComplianceAsync(const DescribeComplianceRequest& request, const DescribeComplianceAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::attachConfigRuleToCompliancePackAsync(const AttachConfigRuleToCompliancePackRequest& request, const AttachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCompliance(request), context); + handler(this, request, attachConfigRuleToCompliancePack(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeComplianceOutcomeCallable ConfigClient::describeComplianceCallable(const DescribeComplianceRequest &request) const +ConfigClient::AttachConfigRuleToCompliancePackOutcomeCallable ConfigClient::attachConfigRuleToCompliancePackCallable(const AttachConfigRuleToCompliancePackRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCompliance(request); + return this->attachConfigRuleToCompliancePack(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeComplianceSummaryOutcome ConfigClient::describeComplianceSummary(const DescribeComplianceSummaryRequest &request) const +ConfigClient::CreateAggregateCompliancePackOutcome ConfigClient::createAggregateCompliancePack(const CreateAggregateCompliancePackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeComplianceSummaryOutcome(endpointOutcome.error()); + return CreateAggregateCompliancePackOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeComplianceSummaryOutcome(DescribeComplianceSummaryResult(outcome.result())); + return CreateAggregateCompliancePackOutcome(CreateAggregateCompliancePackResult(outcome.result())); else - return DescribeComplianceSummaryOutcome(outcome.error()); + return CreateAggregateCompliancePackOutcome(outcome.error()); } -void ConfigClient::describeComplianceSummaryAsync(const DescribeComplianceSummaryRequest& request, const DescribeComplianceSummaryAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::createAggregateCompliancePackAsync(const CreateAggregateCompliancePackRequest& request, const CreateAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeComplianceSummary(request), context); + handler(this, request, createAggregateCompliancePack(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeComplianceSummaryOutcomeCallable ConfigClient::describeComplianceSummaryCallable(const DescribeComplianceSummaryRequest &request) const +ConfigClient::CreateAggregateCompliancePackOutcomeCallable ConfigClient::createAggregateCompliancePackCallable(const CreateAggregateCompliancePackRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeComplianceSummary(request); + return this->createAggregateCompliancePack(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeConfigRuleOutcome ConfigClient::describeConfigRule(const DescribeConfigRuleRequest &request) const +ConfigClient::CreateAggregateConfigRuleOutcome ConfigClient::createAggregateConfigRule(const CreateAggregateConfigRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeConfigRuleOutcome(endpointOutcome.error()); + return CreateAggregateConfigRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeConfigRuleOutcome(DescribeConfigRuleResult(outcome.result())); + return CreateAggregateConfigRuleOutcome(CreateAggregateConfigRuleResult(outcome.result())); else - return DescribeConfigRuleOutcome(outcome.error()); + return CreateAggregateConfigRuleOutcome(outcome.error()); } -void ConfigClient::describeConfigRuleAsync(const DescribeConfigRuleRequest& request, const DescribeConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::createAggregateConfigRuleAsync(const CreateAggregateConfigRuleRequest& request, const CreateAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeConfigRule(request), context); + handler(this, request, createAggregateConfigRule(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeConfigRuleOutcomeCallable ConfigClient::describeConfigRuleCallable(const DescribeConfigRuleRequest &request) const +ConfigClient::CreateAggregateConfigRuleOutcomeCallable ConfigClient::createAggregateConfigRuleCallable(const CreateAggregateConfigRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeConfigRule(request); + return this->createAggregateConfigRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeConfigurationRecorderOutcome ConfigClient::describeConfigurationRecorder(const DescribeConfigurationRecorderRequest &request) const +ConfigClient::CreateAggregatorOutcome ConfigClient::createAggregator(const CreateAggregatorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeConfigurationRecorderOutcome(endpointOutcome.error()); + return CreateAggregatorOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeConfigurationRecorderOutcome(DescribeConfigurationRecorderResult(outcome.result())); + return CreateAggregatorOutcome(CreateAggregatorResult(outcome.result())); else - return DescribeConfigurationRecorderOutcome(outcome.error()); + return CreateAggregatorOutcome(outcome.error()); } -void ConfigClient::describeConfigurationRecorderAsync(const DescribeConfigurationRecorderRequest& request, const DescribeConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::createAggregatorAsync(const CreateAggregatorRequest& request, const CreateAggregatorAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeConfigurationRecorder(request), context); + handler(this, request, createAggregator(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeConfigurationRecorderOutcomeCallable ConfigClient::describeConfigurationRecorderCallable(const DescribeConfigurationRecorderRequest &request) const +ConfigClient::CreateAggregatorOutcomeCallable ConfigClient::createAggregatorCallable(const CreateAggregatorRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeConfigurationRecorder(request); + return this->createAggregator(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeDeliveryChannelsOutcome ConfigClient::describeDeliveryChannels(const DescribeDeliveryChannelsRequest &request) const +ConfigClient::CreateCompliancePackOutcome ConfigClient::createCompliancePack(const CreateCompliancePackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDeliveryChannelsOutcome(endpointOutcome.error()); + return CreateCompliancePackOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDeliveryChannelsOutcome(DescribeDeliveryChannelsResult(outcome.result())); + return CreateCompliancePackOutcome(CreateCompliancePackResult(outcome.result())); else - return DescribeDeliveryChannelsOutcome(outcome.error()); + return CreateCompliancePackOutcome(outcome.error()); } -void ConfigClient::describeDeliveryChannelsAsync(const DescribeDeliveryChannelsRequest& request, const DescribeDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::createCompliancePackAsync(const CreateCompliancePackRequest& request, const CreateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDeliveryChannels(request), context); + handler(this, request, createCompliancePack(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeDeliveryChannelsOutcomeCallable ConfigClient::describeDeliveryChannelsCallable(const DescribeDeliveryChannelsRequest &request) const +ConfigClient::CreateCompliancePackOutcomeCallable ConfigClient::createCompliancePackCallable(const CreateCompliancePackRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDeliveryChannels(request); + return this->createCompliancePack(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeDiscoveredResourceOutcome ConfigClient::describeDiscoveredResource(const DescribeDiscoveredResourceRequest &request) const +ConfigClient::CreateConfigRuleOutcome ConfigClient::createConfigRule(const CreateConfigRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDiscoveredResourceOutcome(endpointOutcome.error()); + return CreateConfigRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDiscoveredResourceOutcome(DescribeDiscoveredResourceResult(outcome.result())); + return CreateConfigRuleOutcome(CreateConfigRuleResult(outcome.result())); else - return DescribeDiscoveredResourceOutcome(outcome.error()); + return CreateConfigRuleOutcome(outcome.error()); } -void ConfigClient::describeDiscoveredResourceAsync(const DescribeDiscoveredResourceRequest& request, const DescribeDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::createConfigRuleAsync(const CreateConfigRuleRequest& request, const CreateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDiscoveredResource(request), context); + handler(this, request, createConfigRule(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeDiscoveredResourceOutcomeCallable ConfigClient::describeDiscoveredResourceCallable(const DescribeDiscoveredResourceRequest &request) const +ConfigClient::CreateConfigRuleOutcomeCallable ConfigClient::createConfigRuleCallable(const CreateConfigRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDiscoveredResource(request); + return this->createConfigRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeEvaluationResultsOutcome ConfigClient::describeEvaluationResults(const DescribeEvaluationResultsRequest &request) const +ConfigClient::DeactiveAggregateConfigRulesOutcome ConfigClient::deactiveAggregateConfigRules(const DeactiveAggregateConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeEvaluationResultsOutcome(endpointOutcome.error()); + return DeactiveAggregateConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeEvaluationResultsOutcome(DescribeEvaluationResultsResult(outcome.result())); + return DeactiveAggregateConfigRulesOutcome(DeactiveAggregateConfigRulesResult(outcome.result())); else - return DescribeEvaluationResultsOutcome(outcome.error()); + return DeactiveAggregateConfigRulesOutcome(outcome.error()); } -void ConfigClient::describeEvaluationResultsAsync(const DescribeEvaluationResultsRequest& request, const DescribeEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::deactiveAggregateConfigRulesAsync(const DeactiveAggregateConfigRulesRequest& request, const DeactiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeEvaluationResults(request), context); + handler(this, request, deactiveAggregateConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeEvaluationResultsOutcomeCallable ConfigClient::describeEvaluationResultsCallable(const DescribeEvaluationResultsRequest &request) const +ConfigClient::DeactiveAggregateConfigRulesOutcomeCallable ConfigClient::deactiveAggregateConfigRulesCallable(const DeactiveAggregateConfigRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeEvaluationResults(request); + return this->deactiveAggregateConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::GetAggregateDiscoveredResourceOutcome ConfigClient::getAggregateDiscoveredResource(const GetAggregateDiscoveredResourceRequest &request) const +ConfigClient::DeactiveConfigRulesOutcome ConfigClient::deactiveConfigRules(const DeactiveConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetAggregateDiscoveredResourceOutcome(endpointOutcome.error()); + return DeactiveConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetAggregateDiscoveredResourceOutcome(GetAggregateDiscoveredResourceResult(outcome.result())); + return DeactiveConfigRulesOutcome(DeactiveConfigRulesResult(outcome.result())); else - return GetAggregateDiscoveredResourceOutcome(outcome.error()); + return DeactiveConfigRulesOutcome(outcome.error()); } -void ConfigClient::getAggregateDiscoveredResourceAsync(const GetAggregateDiscoveredResourceRequest& request, const GetAggregateDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::deactiveConfigRulesAsync(const DeactiveConfigRulesRequest& request, const DeactiveConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getAggregateDiscoveredResource(request), context); + handler(this, request, deactiveConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::GetAggregateDiscoveredResourceOutcomeCallable ConfigClient::getAggregateDiscoveredResourceCallable(const GetAggregateDiscoveredResourceRequest &request) const +ConfigClient::DeactiveConfigRulesOutcomeCallable ConfigClient::deactiveConfigRulesCallable(const DeactiveConfigRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getAggregateDiscoveredResource(request); + return this->deactiveConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::GetDiscoveredResourceCountsOutcome ConfigClient::getDiscoveredResourceCounts(const GetDiscoveredResourceCountsRequest &request) const +ConfigClient::DeleteAggregateCompliancePacksOutcome ConfigClient::deleteAggregateCompliancePacks(const DeleteAggregateCompliancePacksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetDiscoveredResourceCountsOutcome(endpointOutcome.error()); + return DeleteAggregateCompliancePacksOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetDiscoveredResourceCountsOutcome(GetDiscoveredResourceCountsResult(outcome.result())); + return DeleteAggregateCompliancePacksOutcome(DeleteAggregateCompliancePacksResult(outcome.result())); else - return GetDiscoveredResourceCountsOutcome(outcome.error()); + return DeleteAggregateCompliancePacksOutcome(outcome.error()); } -void ConfigClient::getDiscoveredResourceCountsAsync(const GetDiscoveredResourceCountsRequest& request, const GetDiscoveredResourceCountsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::deleteAggregateCompliancePacksAsync(const DeleteAggregateCompliancePacksRequest& request, const DeleteAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getDiscoveredResourceCounts(request), context); + handler(this, request, deleteAggregateCompliancePacks(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::GetDiscoveredResourceCountsOutcomeCallable ConfigClient::getDiscoveredResourceCountsCallable(const GetDiscoveredResourceCountsRequest &request) const +ConfigClient::DeleteAggregateCompliancePacksOutcomeCallable ConfigClient::deleteAggregateCompliancePacksCallable(const DeleteAggregateCompliancePacksRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getDiscoveredResourceCounts(request); + return this->deleteAggregateCompliancePacks(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::GetDiscoveredResourceSummaryOutcome ConfigClient::getDiscoveredResourceSummary(const GetDiscoveredResourceSummaryRequest &request) const +ConfigClient::DeleteAggregateConfigRulesOutcome ConfigClient::deleteAggregateConfigRules(const DeleteAggregateConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetDiscoveredResourceSummaryOutcome(endpointOutcome.error()); + return DeleteAggregateConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetDiscoveredResourceSummaryOutcome(GetDiscoveredResourceSummaryResult(outcome.result())); + return DeleteAggregateConfigRulesOutcome(DeleteAggregateConfigRulesResult(outcome.result())); else - return GetDiscoveredResourceSummaryOutcome(outcome.error()); + return DeleteAggregateConfigRulesOutcome(outcome.error()); } -void ConfigClient::getDiscoveredResourceSummaryAsync(const GetDiscoveredResourceSummaryRequest& request, const GetDiscoveredResourceSummaryAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::deleteAggregateConfigRulesAsync(const DeleteAggregateConfigRulesRequest& request, const DeleteAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getDiscoveredResourceSummary(request), context); + handler(this, request, deleteAggregateConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::GetDiscoveredResourceSummaryOutcomeCallable ConfigClient::getDiscoveredResourceSummaryCallable(const GetDiscoveredResourceSummaryRequest &request) const +ConfigClient::DeleteAggregateConfigRulesOutcomeCallable ConfigClient::deleteAggregateConfigRulesCallable(const DeleteAggregateConfigRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getDiscoveredResourceSummary(request); + return this->deleteAggregateConfigRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DeleteAggregatorsOutcome ConfigClient::deleteAggregators(const DeleteAggregatorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAggregatorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAggregatorsOutcome(DeleteAggregatorsResult(outcome.result())); + else + return DeleteAggregatorsOutcome(outcome.error()); +} + +void ConfigClient::deleteAggregatorsAsync(const DeleteAggregatorsRequest& request, const DeleteAggregatorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAggregators(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeleteAggregatorsOutcomeCallable ConfigClient::deleteAggregatorsCallable(const DeleteAggregatorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAggregators(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DeleteCompliancePacksOutcome ConfigClient::deleteCompliancePacks(const DeleteCompliancePacksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCompliancePacksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCompliancePacksOutcome(DeleteCompliancePacksResult(outcome.result())); + else + return DeleteCompliancePacksOutcome(outcome.error()); +} + +void ConfigClient::deleteCompliancePacksAsync(const DeleteCompliancePacksRequest& request, const DeleteCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCompliancePacks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeleteCompliancePacksOutcomeCallable ConfigClient::deleteCompliancePacksCallable(const DeleteCompliancePacksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCompliancePacks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DetachAggregateConfigRuleToCompliancePackOutcome ConfigClient::detachAggregateConfigRuleToCompliancePack(const DetachAggregateConfigRuleToCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachAggregateConfigRuleToCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachAggregateConfigRuleToCompliancePackOutcome(DetachAggregateConfigRuleToCompliancePackResult(outcome.result())); + else + return DetachAggregateConfigRuleToCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::detachAggregateConfigRuleToCompliancePackAsync(const DetachAggregateConfigRuleToCompliancePackRequest& request, const DetachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachAggregateConfigRuleToCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DetachAggregateConfigRuleToCompliancePackOutcomeCallable ConfigClient::detachAggregateConfigRuleToCompliancePackCallable(const DetachAggregateConfigRuleToCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachAggregateConfigRuleToCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DetachConfigRuleToCompliancePackOutcome ConfigClient::detachConfigRuleToCompliancePack(const DetachConfigRuleToCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachConfigRuleToCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachConfigRuleToCompliancePackOutcome(DetachConfigRuleToCompliancePackResult(outcome.result())); + else + return DetachConfigRuleToCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::detachConfigRuleToCompliancePackAsync(const DetachConfigRuleToCompliancePackRequest& request, const DetachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachConfigRuleToCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DetachConfigRuleToCompliancePackOutcomeCallable ConfigClient::detachConfigRuleToCompliancePackCallable(const DetachConfigRuleToCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachConfigRuleToCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GenerateAggregateCompliancePackReportOutcome ConfigClient::generateAggregateCompliancePackReport(const GenerateAggregateCompliancePackReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateAggregateCompliancePackReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateAggregateCompliancePackReportOutcome(GenerateAggregateCompliancePackReportResult(outcome.result())); + else + return GenerateAggregateCompliancePackReportOutcome(outcome.error()); +} + +void ConfigClient::generateAggregateCompliancePackReportAsync(const GenerateAggregateCompliancePackReportRequest& request, const GenerateAggregateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateAggregateCompliancePackReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GenerateAggregateCompliancePackReportOutcomeCallable ConfigClient::generateAggregateCompliancePackReportCallable(const GenerateAggregateCompliancePackReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateAggregateCompliancePackReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GenerateAggregateConfigRulesReportOutcome ConfigClient::generateAggregateConfigRulesReport(const GenerateAggregateConfigRulesReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateAggregateConfigRulesReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateAggregateConfigRulesReportOutcome(GenerateAggregateConfigRulesReportResult(outcome.result())); + else + return GenerateAggregateConfigRulesReportOutcome(outcome.error()); +} + +void ConfigClient::generateAggregateConfigRulesReportAsync(const GenerateAggregateConfigRulesReportRequest& request, const GenerateAggregateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateAggregateConfigRulesReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GenerateAggregateConfigRulesReportOutcomeCallable ConfigClient::generateAggregateConfigRulesReportCallable(const GenerateAggregateConfigRulesReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateAggregateConfigRulesReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GenerateCompliancePackReportOutcome ConfigClient::generateCompliancePackReport(const GenerateCompliancePackReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateCompliancePackReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateCompliancePackReportOutcome(GenerateCompliancePackReportResult(outcome.result())); + else + return GenerateCompliancePackReportOutcome(outcome.error()); +} + +void ConfigClient::generateCompliancePackReportAsync(const GenerateCompliancePackReportRequest& request, const GenerateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateCompliancePackReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GenerateCompliancePackReportOutcomeCallable ConfigClient::generateCompliancePackReportCallable(const GenerateCompliancePackReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateCompliancePackReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GenerateConfigRulesReportOutcome ConfigClient::generateConfigRulesReport(const GenerateConfigRulesReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateConfigRulesReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateConfigRulesReportOutcome(GenerateConfigRulesReportResult(outcome.result())); + else + return GenerateConfigRulesReportOutcome(outcome.error()); +} + +void ConfigClient::generateConfigRulesReportAsync(const GenerateConfigRulesReportRequest& request, const GenerateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateConfigRulesReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GenerateConfigRulesReportOutcomeCallable ConfigClient::generateConfigRulesReportCallable(const GenerateConfigRulesReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateConfigRulesReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateAccountComplianceByPackOutcome ConfigClient::getAggregateAccountComplianceByPack(const GetAggregateAccountComplianceByPackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateAccountComplianceByPackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateAccountComplianceByPackOutcome(GetAggregateAccountComplianceByPackResult(outcome.result())); + else + return GetAggregateAccountComplianceByPackOutcome(outcome.error()); +} + +void ConfigClient::getAggregateAccountComplianceByPackAsync(const GetAggregateAccountComplianceByPackRequest& request, const GetAggregateAccountComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateAccountComplianceByPack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateAccountComplianceByPackOutcomeCallable ConfigClient::getAggregateAccountComplianceByPackCallable(const GetAggregateAccountComplianceByPackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateAccountComplianceByPack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateCompliancePackOutcome ConfigClient::getAggregateCompliancePack(const GetAggregateCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateCompliancePackOutcome(GetAggregateCompliancePackResult(outcome.result())); + else + return GetAggregateCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::getAggregateCompliancePackAsync(const GetAggregateCompliancePackRequest& request, const GetAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateCompliancePackOutcomeCallable ConfigClient::getAggregateCompliancePackCallable(const GetAggregateCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateCompliancePackReportOutcome ConfigClient::getAggregateCompliancePackReport(const GetAggregateCompliancePackReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateCompliancePackReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateCompliancePackReportOutcome(GetAggregateCompliancePackReportResult(outcome.result())); + else + return GetAggregateCompliancePackReportOutcome(outcome.error()); +} + +void ConfigClient::getAggregateCompliancePackReportAsync(const GetAggregateCompliancePackReportRequest& request, const GetAggregateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateCompliancePackReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateCompliancePackReportOutcomeCallable ConfigClient::getAggregateCompliancePackReportCallable(const GetAggregateCompliancePackReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateCompliancePackReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateConfigRuleOutcome ConfigClient::getAggregateConfigRule(const GetAggregateConfigRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateConfigRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateConfigRuleOutcome(GetAggregateConfigRuleResult(outcome.result())); + else + return GetAggregateConfigRuleOutcome(outcome.error()); +} + +void ConfigClient::getAggregateConfigRuleAsync(const GetAggregateConfigRuleRequest& request, const GetAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateConfigRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateConfigRuleOutcomeCallable ConfigClient::getAggregateConfigRuleCallable(const GetAggregateConfigRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateConfigRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateConfigRuleComplianceByPackOutcome ConfigClient::getAggregateConfigRuleComplianceByPack(const GetAggregateConfigRuleComplianceByPackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateConfigRuleComplianceByPackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateConfigRuleComplianceByPackOutcome(GetAggregateConfigRuleComplianceByPackResult(outcome.result())); + else + return GetAggregateConfigRuleComplianceByPackOutcome(outcome.error()); +} + +void ConfigClient::getAggregateConfigRuleComplianceByPackAsync(const GetAggregateConfigRuleComplianceByPackRequest& request, const GetAggregateConfigRuleComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateConfigRuleComplianceByPack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateConfigRuleComplianceByPackOutcomeCallable ConfigClient::getAggregateConfigRuleComplianceByPackCallable(const GetAggregateConfigRuleComplianceByPackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateConfigRuleComplianceByPack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateConfigRuleSummaryByRiskLevelOutcome ConfigClient::getAggregateConfigRuleSummaryByRiskLevel(const GetAggregateConfigRuleSummaryByRiskLevelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateConfigRuleSummaryByRiskLevelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateConfigRuleSummaryByRiskLevelOutcome(GetAggregateConfigRuleSummaryByRiskLevelResult(outcome.result())); + else + return GetAggregateConfigRuleSummaryByRiskLevelOutcome(outcome.error()); +} + +void ConfigClient::getAggregateConfigRuleSummaryByRiskLevelAsync(const GetAggregateConfigRuleSummaryByRiskLevelRequest& request, const GetAggregateConfigRuleSummaryByRiskLevelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateConfigRuleSummaryByRiskLevel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateConfigRuleSummaryByRiskLevelOutcomeCallable ConfigClient::getAggregateConfigRuleSummaryByRiskLevelCallable(const GetAggregateConfigRuleSummaryByRiskLevelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateConfigRuleSummaryByRiskLevel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateConfigRulesReportOutcome ConfigClient::getAggregateConfigRulesReport(const GetAggregateConfigRulesReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateConfigRulesReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateConfigRulesReportOutcome(GetAggregateConfigRulesReportResult(outcome.result())); + else + return GetAggregateConfigRulesReportOutcome(outcome.error()); +} + +void ConfigClient::getAggregateConfigRulesReportAsync(const GetAggregateConfigRulesReportRequest& request, const GetAggregateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateConfigRulesReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateConfigRulesReportOutcomeCallable ConfigClient::getAggregateConfigRulesReportCallable(const GetAggregateConfigRulesReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateConfigRulesReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateResourceComplianceByConfigRuleOutcome ConfigClient::getAggregateResourceComplianceByConfigRule(const GetAggregateResourceComplianceByConfigRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateResourceComplianceByConfigRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateResourceComplianceByConfigRuleOutcome(GetAggregateResourceComplianceByConfigRuleResult(outcome.result())); + else + return GetAggregateResourceComplianceByConfigRuleOutcome(outcome.error()); +} + +void ConfigClient::getAggregateResourceComplianceByConfigRuleAsync(const GetAggregateResourceComplianceByConfigRuleRequest& request, const GetAggregateResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateResourceComplianceByConfigRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateResourceComplianceByConfigRuleOutcomeCallable ConfigClient::getAggregateResourceComplianceByConfigRuleCallable(const GetAggregateResourceComplianceByConfigRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateResourceComplianceByConfigRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateResourceComplianceByPackOutcome ConfigClient::getAggregateResourceComplianceByPack(const GetAggregateResourceComplianceByPackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateResourceComplianceByPackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateResourceComplianceByPackOutcome(GetAggregateResourceComplianceByPackResult(outcome.result())); + else + return GetAggregateResourceComplianceByPackOutcome(outcome.error()); +} + +void ConfigClient::getAggregateResourceComplianceByPackAsync(const GetAggregateResourceComplianceByPackRequest& request, const GetAggregateResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateResourceComplianceByPack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateResourceComplianceByPackOutcomeCallable ConfigClient::getAggregateResourceComplianceByPackCallable(const GetAggregateResourceComplianceByPackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateResourceComplianceByPack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateResourceComplianceTimelineOutcome ConfigClient::getAggregateResourceComplianceTimeline(const GetAggregateResourceComplianceTimelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateResourceComplianceTimelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateResourceComplianceTimelineOutcome(GetAggregateResourceComplianceTimelineResult(outcome.result())); + else + return GetAggregateResourceComplianceTimelineOutcome(outcome.error()); +} + +void ConfigClient::getAggregateResourceComplianceTimelineAsync(const GetAggregateResourceComplianceTimelineRequest& request, const GetAggregateResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateResourceComplianceTimeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateResourceComplianceTimelineOutcomeCallable ConfigClient::getAggregateResourceComplianceTimelineCallable(const GetAggregateResourceComplianceTimelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateResourceComplianceTimeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateResourceConfigurationTimelineOutcome ConfigClient::getAggregateResourceConfigurationTimeline(const GetAggregateResourceConfigurationTimelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateResourceConfigurationTimelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateResourceConfigurationTimelineOutcome(GetAggregateResourceConfigurationTimelineResult(outcome.result())); + else + return GetAggregateResourceConfigurationTimelineOutcome(outcome.error()); +} + +void ConfigClient::getAggregateResourceConfigurationTimelineAsync(const GetAggregateResourceConfigurationTimelineRequest& request, const GetAggregateResourceConfigurationTimelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateResourceConfigurationTimeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateResourceConfigurationTimelineOutcomeCallable ConfigClient::getAggregateResourceConfigurationTimelineCallable(const GetAggregateResourceConfigurationTimelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateResourceConfigurationTimeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateResourceCountsGroupByRegionOutcome ConfigClient::getAggregateResourceCountsGroupByRegion(const GetAggregateResourceCountsGroupByRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateResourceCountsGroupByRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateResourceCountsGroupByRegionOutcome(GetAggregateResourceCountsGroupByRegionResult(outcome.result())); + else + return GetAggregateResourceCountsGroupByRegionOutcome(outcome.error()); +} + +void ConfigClient::getAggregateResourceCountsGroupByRegionAsync(const GetAggregateResourceCountsGroupByRegionRequest& request, const GetAggregateResourceCountsGroupByRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateResourceCountsGroupByRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateResourceCountsGroupByRegionOutcomeCallable ConfigClient::getAggregateResourceCountsGroupByRegionCallable(const GetAggregateResourceCountsGroupByRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateResourceCountsGroupByRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateResourceCountsGroupByResourceTypeOutcome ConfigClient::getAggregateResourceCountsGroupByResourceType(const GetAggregateResourceCountsGroupByResourceTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateResourceCountsGroupByResourceTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateResourceCountsGroupByResourceTypeOutcome(GetAggregateResourceCountsGroupByResourceTypeResult(outcome.result())); + else + return GetAggregateResourceCountsGroupByResourceTypeOutcome(outcome.error()); +} + +void ConfigClient::getAggregateResourceCountsGroupByResourceTypeAsync(const GetAggregateResourceCountsGroupByResourceTypeRequest& request, const GetAggregateResourceCountsGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateResourceCountsGroupByResourceType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateResourceCountsGroupByResourceTypeOutcomeCallable ConfigClient::getAggregateResourceCountsGroupByResourceTypeCallable(const GetAggregateResourceCountsGroupByResourceTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateResourceCountsGroupByResourceType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregatorOutcome ConfigClient::getAggregator(const GetAggregatorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregatorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregatorOutcome(GetAggregatorResult(outcome.result())); + else + return GetAggregatorOutcome(outcome.error()); +} + +void ConfigClient::getAggregatorAsync(const GetAggregatorRequest& request, const GetAggregatorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregatorOutcomeCallable ConfigClient::getAggregatorCallable(const GetAggregatorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetCompliancePackOutcome ConfigClient::getCompliancePack(const GetCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCompliancePackOutcome(GetCompliancePackResult(outcome.result())); + else + return GetCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::getCompliancePackAsync(const GetCompliancePackRequest& request, const GetCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetCompliancePackOutcomeCallable ConfigClient::getCompliancePackCallable(const GetCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetCompliancePackReportOutcome ConfigClient::getCompliancePackReport(const GetCompliancePackReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCompliancePackReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCompliancePackReportOutcome(GetCompliancePackReportResult(outcome.result())); + else + return GetCompliancePackReportOutcome(outcome.error()); +} + +void ConfigClient::getCompliancePackReportAsync(const GetCompliancePackReportRequest& request, const GetCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCompliancePackReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetCompliancePackReportOutcomeCallable ConfigClient::getCompliancePackReportCallable(const GetCompliancePackReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCompliancePackReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetConfigRuleOutcome ConfigClient::getConfigRule(const GetConfigRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConfigRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConfigRuleOutcome(GetConfigRuleResult(outcome.result())); + else + return GetConfigRuleOutcome(outcome.error()); +} + +void ConfigClient::getConfigRuleAsync(const GetConfigRuleRequest& request, const GetConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConfigRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetConfigRuleOutcomeCallable ConfigClient::getConfigRuleCallable(const GetConfigRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConfigRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetConfigRuleComplianceByPackOutcome ConfigClient::getConfigRuleComplianceByPack(const GetConfigRuleComplianceByPackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConfigRuleComplianceByPackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConfigRuleComplianceByPackOutcome(GetConfigRuleComplianceByPackResult(outcome.result())); + else + return GetConfigRuleComplianceByPackOutcome(outcome.error()); +} + +void ConfigClient::getConfigRuleComplianceByPackAsync(const GetConfigRuleComplianceByPackRequest& request, const GetConfigRuleComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConfigRuleComplianceByPack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetConfigRuleComplianceByPackOutcomeCallable ConfigClient::getConfigRuleComplianceByPackCallable(const GetConfigRuleComplianceByPackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConfigRuleComplianceByPack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetConfigRuleSummaryByRiskLevelOutcome ConfigClient::getConfigRuleSummaryByRiskLevel(const GetConfigRuleSummaryByRiskLevelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConfigRuleSummaryByRiskLevelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConfigRuleSummaryByRiskLevelOutcome(GetConfigRuleSummaryByRiskLevelResult(outcome.result())); + else + return GetConfigRuleSummaryByRiskLevelOutcome(outcome.error()); +} + +void ConfigClient::getConfigRuleSummaryByRiskLevelAsync(const GetConfigRuleSummaryByRiskLevelRequest& request, const GetConfigRuleSummaryByRiskLevelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConfigRuleSummaryByRiskLevel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetConfigRuleSummaryByRiskLevelOutcomeCallable ConfigClient::getConfigRuleSummaryByRiskLevelCallable(const GetConfigRuleSummaryByRiskLevelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConfigRuleSummaryByRiskLevel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetConfigRulesReportOutcome ConfigClient::getConfigRulesReport(const GetConfigRulesReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConfigRulesReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConfigRulesReportOutcome(GetConfigRulesReportResult(outcome.result())); + else + return GetConfigRulesReportOutcome(outcome.error()); +} + +void ConfigClient::getConfigRulesReportAsync(const GetConfigRulesReportRequest& request, const GetConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConfigRulesReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetConfigRulesReportOutcomeCallable ConfigClient::getConfigRulesReportCallable(const GetConfigRulesReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConfigRulesReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetDiscoveredResourceCountsGroupByRegionOutcome ConfigClient::getDiscoveredResourceCountsGroupByRegion(const GetDiscoveredResourceCountsGroupByRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDiscoveredResourceCountsGroupByRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDiscoveredResourceCountsGroupByRegionOutcome(GetDiscoveredResourceCountsGroupByRegionResult(outcome.result())); + else + return GetDiscoveredResourceCountsGroupByRegionOutcome(outcome.error()); +} + +void ConfigClient::getDiscoveredResourceCountsGroupByRegionAsync(const GetDiscoveredResourceCountsGroupByRegionRequest& request, const GetDiscoveredResourceCountsGroupByRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDiscoveredResourceCountsGroupByRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetDiscoveredResourceCountsGroupByRegionOutcomeCallable ConfigClient::getDiscoveredResourceCountsGroupByRegionCallable(const GetDiscoveredResourceCountsGroupByRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDiscoveredResourceCountsGroupByRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetDiscoveredResourceCountsGroupByResourceTypeOutcome ConfigClient::getDiscoveredResourceCountsGroupByResourceType(const GetDiscoveredResourceCountsGroupByResourceTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDiscoveredResourceCountsGroupByResourceTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDiscoveredResourceCountsGroupByResourceTypeOutcome(GetDiscoveredResourceCountsGroupByResourceTypeResult(outcome.result())); + else + return GetDiscoveredResourceCountsGroupByResourceTypeOutcome(outcome.error()); +} + +void ConfigClient::getDiscoveredResourceCountsGroupByResourceTypeAsync(const GetDiscoveredResourceCountsGroupByResourceTypeRequest& request, const GetDiscoveredResourceCountsGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDiscoveredResourceCountsGroupByResourceType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetDiscoveredResourceCountsGroupByResourceTypeOutcomeCallable ConfigClient::getDiscoveredResourceCountsGroupByResourceTypeCallable(const GetDiscoveredResourceCountsGroupByResourceTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDiscoveredResourceCountsGroupByResourceType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetResourceComplianceByConfigRuleOutcome ConfigClient::getResourceComplianceByConfigRule(const GetResourceComplianceByConfigRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceComplianceByConfigRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceComplianceByConfigRuleOutcome(GetResourceComplianceByConfigRuleResult(outcome.result())); + else + return GetResourceComplianceByConfigRuleOutcome(outcome.error()); +} + +void ConfigClient::getResourceComplianceByConfigRuleAsync(const GetResourceComplianceByConfigRuleRequest& request, const GetResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceComplianceByConfigRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetResourceComplianceByConfigRuleOutcomeCallable ConfigClient::getResourceComplianceByConfigRuleCallable(const GetResourceComplianceByConfigRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceComplianceByConfigRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetResourceComplianceByPackOutcome ConfigClient::getResourceComplianceByPack(const GetResourceComplianceByPackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceComplianceByPackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceComplianceByPackOutcome(GetResourceComplianceByPackResult(outcome.result())); + else + return GetResourceComplianceByPackOutcome(outcome.error()); +} + +void ConfigClient::getResourceComplianceByPackAsync(const GetResourceComplianceByPackRequest& request, const GetResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceComplianceByPack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetResourceComplianceByPackOutcomeCallable ConfigClient::getResourceComplianceByPackCallable(const GetResourceComplianceByPackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceComplianceByPack(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -555,432 +1707,684 @@ ConfigClient::GetResourceConfigurationTimelineOutcomeCallable ConfigClient::getR return task->get_future(); } -ConfigClient::GetSupportedResourceTypesOutcome ConfigClient::getSupportedResourceTypes(const GetSupportedResourceTypesRequest &request) const +ConfigClient::IgnoreAggregateEvaluationResultsOutcome ConfigClient::ignoreAggregateEvaluationResults(const IgnoreAggregateEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetSupportedResourceTypesOutcome(endpointOutcome.error()); + return IgnoreAggregateEvaluationResultsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetSupportedResourceTypesOutcome(GetSupportedResourceTypesResult(outcome.result())); + return IgnoreAggregateEvaluationResultsOutcome(IgnoreAggregateEvaluationResultsResult(outcome.result())); else - return GetSupportedResourceTypesOutcome(outcome.error()); + return IgnoreAggregateEvaluationResultsOutcome(outcome.error()); } -void ConfigClient::getSupportedResourceTypesAsync(const GetSupportedResourceTypesRequest& request, const GetSupportedResourceTypesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::ignoreAggregateEvaluationResultsAsync(const IgnoreAggregateEvaluationResultsRequest& request, const IgnoreAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getSupportedResourceTypes(request), context); + handler(this, request, ignoreAggregateEvaluationResults(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::GetSupportedResourceTypesOutcomeCallable ConfigClient::getSupportedResourceTypesCallable(const GetSupportedResourceTypesRequest &request) const +ConfigClient::IgnoreAggregateEvaluationResultsOutcomeCallable ConfigClient::ignoreAggregateEvaluationResultsCallable(const IgnoreAggregateEvaluationResultsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getSupportedResourceTypes(request); + return this->ignoreAggregateEvaluationResults(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::ListAggregateDiscoveredResourcesOutcome ConfigClient::listAggregateDiscoveredResources(const ListAggregateDiscoveredResourcesRequest &request) const +ConfigClient::IgnoreEvaluationResultsOutcome ConfigClient::ignoreEvaluationResults(const IgnoreEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListAggregateDiscoveredResourcesOutcome(endpointOutcome.error()); + return IgnoreEvaluationResultsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListAggregateDiscoveredResourcesOutcome(ListAggregateDiscoveredResourcesResult(outcome.result())); + return IgnoreEvaluationResultsOutcome(IgnoreEvaluationResultsResult(outcome.result())); else - return ListAggregateDiscoveredResourcesOutcome(outcome.error()); + return IgnoreEvaluationResultsOutcome(outcome.error()); } -void ConfigClient::listAggregateDiscoveredResourcesAsync(const ListAggregateDiscoveredResourcesRequest& request, const ListAggregateDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::ignoreEvaluationResultsAsync(const IgnoreEvaluationResultsRequest& request, const IgnoreEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listAggregateDiscoveredResources(request), context); + handler(this, request, ignoreEvaluationResults(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ListAggregateDiscoveredResourcesOutcomeCallable ConfigClient::listAggregateDiscoveredResourcesCallable(const ListAggregateDiscoveredResourcesRequest &request) const +ConfigClient::IgnoreEvaluationResultsOutcomeCallable ConfigClient::ignoreEvaluationResultsCallable(const IgnoreEvaluationResultsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listAggregateDiscoveredResources(request); + return this->ignoreEvaluationResults(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::ListConfigRulesOutcome ConfigClient::listConfigRules(const ListConfigRulesRequest &request) const +ConfigClient::ListAggregateCompliancePacksOutcome ConfigClient::listAggregateCompliancePacks(const ListAggregateCompliancePacksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListConfigRulesOutcome(endpointOutcome.error()); + return ListAggregateCompliancePacksOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListConfigRulesOutcome(ListConfigRulesResult(outcome.result())); + return ListAggregateCompliancePacksOutcome(ListAggregateCompliancePacksResult(outcome.result())); else - return ListConfigRulesOutcome(outcome.error()); + return ListAggregateCompliancePacksOutcome(outcome.error()); } -void ConfigClient::listConfigRulesAsync(const ListConfigRulesRequest& request, const ListConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listAggregateCompliancePacksAsync(const ListAggregateCompliancePacksRequest& request, const ListAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listConfigRules(request), context); + handler(this, request, listAggregateCompliancePacks(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ListConfigRulesOutcomeCallable ConfigClient::listConfigRulesCallable(const ListConfigRulesRequest &request) const +ConfigClient::ListAggregateCompliancePacksOutcomeCallable ConfigClient::listAggregateCompliancePacksCallable(const ListAggregateCompliancePacksRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listConfigRules(request); + return this->listAggregateCompliancePacks(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::ListDiscoveredResourcesOutcome ConfigClient::listDiscoveredResources(const ListDiscoveredResourcesRequest &request) const +ConfigClient::ListAggregateConfigRuleEvaluationResultsOutcome ConfigClient::listAggregateConfigRuleEvaluationResults(const ListAggregateConfigRuleEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListDiscoveredResourcesOutcome(endpointOutcome.error()); + return ListAggregateConfigRuleEvaluationResultsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListDiscoveredResourcesOutcome(ListDiscoveredResourcesResult(outcome.result())); + return ListAggregateConfigRuleEvaluationResultsOutcome(ListAggregateConfigRuleEvaluationResultsResult(outcome.result())); else - return ListDiscoveredResourcesOutcome(outcome.error()); + return ListAggregateConfigRuleEvaluationResultsOutcome(outcome.error()); } -void ConfigClient::listDiscoveredResourcesAsync(const ListDiscoveredResourcesRequest& request, const ListDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listAggregateConfigRuleEvaluationResultsAsync(const ListAggregateConfigRuleEvaluationResultsRequest& request, const ListAggregateConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listDiscoveredResources(request), context); + handler(this, request, listAggregateConfigRuleEvaluationResults(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ListDiscoveredResourcesOutcomeCallable ConfigClient::listDiscoveredResourcesCallable(const ListDiscoveredResourcesRequest &request) const +ConfigClient::ListAggregateConfigRuleEvaluationResultsOutcomeCallable ConfigClient::listAggregateConfigRuleEvaluationResultsCallable(const ListAggregateConfigRuleEvaluationResultsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listDiscoveredResources(request); + return this->listAggregateConfigRuleEvaluationResults(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::ListRemediationTemplatesOutcome ConfigClient::listRemediationTemplates(const ListRemediationTemplatesRequest &request) const +ConfigClient::ListAggregateConfigRulesOutcome ConfigClient::listAggregateConfigRules(const ListAggregateConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRemediationTemplatesOutcome(endpointOutcome.error()); + return ListAggregateConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRemediationTemplatesOutcome(ListRemediationTemplatesResult(outcome.result())); + return ListAggregateConfigRulesOutcome(ListAggregateConfigRulesResult(outcome.result())); else - return ListRemediationTemplatesOutcome(outcome.error()); + return ListAggregateConfigRulesOutcome(outcome.error()); } -void ConfigClient::listRemediationTemplatesAsync(const ListRemediationTemplatesRequest& request, const ListRemediationTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listAggregateConfigRulesAsync(const ListAggregateConfigRulesRequest& request, const ListAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRemediationTemplates(request), context); + handler(this, request, listAggregateConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ListRemediationTemplatesOutcomeCallable ConfigClient::listRemediationTemplatesCallable(const ListRemediationTemplatesRequest &request) const +ConfigClient::ListAggregateConfigRulesOutcomeCallable ConfigClient::listAggregateConfigRulesCallable(const ListAggregateConfigRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRemediationTemplates(request); + return this->listAggregateConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::PutConfigRuleOutcome ConfigClient::putConfigRule(const PutConfigRuleRequest &request) const +ConfigClient::ListAggregateResourceEvaluationResultsOutcome ConfigClient::listAggregateResourceEvaluationResults(const ListAggregateResourceEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutConfigRuleOutcome(endpointOutcome.error()); + return ListAggregateResourceEvaluationResultsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutConfigRuleOutcome(PutConfigRuleResult(outcome.result())); + return ListAggregateResourceEvaluationResultsOutcome(ListAggregateResourceEvaluationResultsResult(outcome.result())); else - return PutConfigRuleOutcome(outcome.error()); + return ListAggregateResourceEvaluationResultsOutcome(outcome.error()); } -void ConfigClient::putConfigRuleAsync(const PutConfigRuleRequest& request, const PutConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listAggregateResourceEvaluationResultsAsync(const ListAggregateResourceEvaluationResultsRequest& request, const ListAggregateResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putConfigRule(request), context); + handler(this, request, listAggregateResourceEvaluationResults(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::PutConfigRuleOutcomeCallable ConfigClient::putConfigRuleCallable(const PutConfigRuleRequest &request) const +ConfigClient::ListAggregateResourceEvaluationResultsOutcomeCallable ConfigClient::listAggregateResourceEvaluationResultsCallable(const ListAggregateResourceEvaluationResultsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putConfigRule(request); + return this->listAggregateResourceEvaluationResults(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::PutConfigurationRecorderOutcome ConfigClient::putConfigurationRecorder(const PutConfigurationRecorderRequest &request) const +ConfigClient::ListAggregatorsOutcome ConfigClient::listAggregators(const ListAggregatorsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutConfigurationRecorderOutcome(endpointOutcome.error()); + return ListAggregatorsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutConfigurationRecorderOutcome(PutConfigurationRecorderResult(outcome.result())); + return ListAggregatorsOutcome(ListAggregatorsResult(outcome.result())); else - return PutConfigurationRecorderOutcome(outcome.error()); + return ListAggregatorsOutcome(outcome.error()); } -void ConfigClient::putConfigurationRecorderAsync(const PutConfigurationRecorderRequest& request, const PutConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listAggregatorsAsync(const ListAggregatorsRequest& request, const ListAggregatorsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putConfigurationRecorder(request), context); + handler(this, request, listAggregators(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::PutConfigurationRecorderOutcomeCallable ConfigClient::putConfigurationRecorderCallable(const PutConfigurationRecorderRequest &request) const +ConfigClient::ListAggregatorsOutcomeCallable ConfigClient::listAggregatorsCallable(const ListAggregatorsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putConfigurationRecorder(request); + return this->listAggregators(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::PutDeliveryChannelOutcome ConfigClient::putDeliveryChannel(const PutDeliveryChannelRequest &request) const +ConfigClient::ListCompliancePackTemplatesOutcome ConfigClient::listCompliancePackTemplates(const ListCompliancePackTemplatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutDeliveryChannelOutcome(endpointOutcome.error()); + return ListCompliancePackTemplatesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutDeliveryChannelOutcome(PutDeliveryChannelResult(outcome.result())); + return ListCompliancePackTemplatesOutcome(ListCompliancePackTemplatesResult(outcome.result())); else - return PutDeliveryChannelOutcome(outcome.error()); + return ListCompliancePackTemplatesOutcome(outcome.error()); } -void ConfigClient::putDeliveryChannelAsync(const PutDeliveryChannelRequest& request, const PutDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listCompliancePackTemplatesAsync(const ListCompliancePackTemplatesRequest& request, const ListCompliancePackTemplatesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putDeliveryChannel(request), context); + handler(this, request, listCompliancePackTemplates(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::PutDeliveryChannelOutcomeCallable ConfigClient::putDeliveryChannelCallable(const PutDeliveryChannelRequest &request) const +ConfigClient::ListCompliancePackTemplatesOutcomeCallable ConfigClient::listCompliancePackTemplatesCallable(const ListCompliancePackTemplatesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putDeliveryChannel(request); + return this->listCompliancePackTemplates(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::PutEvaluationsOutcome ConfigClient::putEvaluations(const PutEvaluationsRequest &request) const +ConfigClient::ListCompliancePacksOutcome ConfigClient::listCompliancePacks(const ListCompliancePacksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutEvaluationsOutcome(endpointOutcome.error()); + return ListCompliancePacksOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutEvaluationsOutcome(PutEvaluationsResult(outcome.result())); + return ListCompliancePacksOutcome(ListCompliancePacksResult(outcome.result())); else - return PutEvaluationsOutcome(outcome.error()); + return ListCompliancePacksOutcome(outcome.error()); } -void ConfigClient::putEvaluationsAsync(const PutEvaluationsRequest& request, const PutEvaluationsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listCompliancePacksAsync(const ListCompliancePacksRequest& request, const ListCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putEvaluations(request), context); + handler(this, request, listCompliancePacks(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::PutEvaluationsOutcomeCallable ConfigClient::putEvaluationsCallable(const PutEvaluationsRequest &request) const +ConfigClient::ListCompliancePacksOutcomeCallable ConfigClient::listCompliancePacksCallable(const ListCompliancePacksRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putEvaluations(request); + return this->listCompliancePacks(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::StartConfigRuleEvaluationOutcome ConfigClient::startConfigRuleEvaluation(const StartConfigRuleEvaluationRequest &request) const +ConfigClient::ListConfigRuleEvaluationResultsOutcome ConfigClient::listConfigRuleEvaluationResults(const ListConfigRuleEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StartConfigRuleEvaluationOutcome(endpointOutcome.error()); + return ListConfigRuleEvaluationResultsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StartConfigRuleEvaluationOutcome(StartConfigRuleEvaluationResult(outcome.result())); + return ListConfigRuleEvaluationResultsOutcome(ListConfigRuleEvaluationResultsResult(outcome.result())); else - return StartConfigRuleEvaluationOutcome(outcome.error()); + return ListConfigRuleEvaluationResultsOutcome(outcome.error()); } -void ConfigClient::startConfigRuleEvaluationAsync(const StartConfigRuleEvaluationRequest& request, const StartConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listConfigRuleEvaluationResultsAsync(const ListConfigRuleEvaluationResultsRequest& request, const ListConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, startConfigRuleEvaluation(request), context); + handler(this, request, listConfigRuleEvaluationResults(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::StartConfigRuleEvaluationOutcomeCallable ConfigClient::startConfigRuleEvaluationCallable(const StartConfigRuleEvaluationRequest &request) const +ConfigClient::ListConfigRuleEvaluationResultsOutcomeCallable ConfigClient::listConfigRuleEvaluationResultsCallable(const ListConfigRuleEvaluationResultsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->startConfigRuleEvaluation(request); + return this->listConfigRuleEvaluationResults(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::StartConfigurationRecorderOutcome ConfigClient::startConfigurationRecorder(const StartConfigurationRecorderRequest &request) const +ConfigClient::ListResourceEvaluationResultsOutcome ConfigClient::listResourceEvaluationResults(const ListResourceEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StartConfigurationRecorderOutcome(endpointOutcome.error()); + return ListResourceEvaluationResultsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StartConfigurationRecorderOutcome(StartConfigurationRecorderResult(outcome.result())); + return ListResourceEvaluationResultsOutcome(ListResourceEvaluationResultsResult(outcome.result())); else - return StartConfigurationRecorderOutcome(outcome.error()); + return ListResourceEvaluationResultsOutcome(outcome.error()); } -void ConfigClient::startConfigurationRecorderAsync(const StartConfigurationRecorderRequest& request, const StartConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listResourceEvaluationResultsAsync(const ListResourceEvaluationResultsRequest& request, const ListResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, startConfigurationRecorder(request), context); + handler(this, request, listResourceEvaluationResults(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::StartConfigurationRecorderOutcomeCallable ConfigClient::startConfigurationRecorderCallable(const StartConfigurationRecorderRequest &request) const +ConfigClient::ListResourceEvaluationResultsOutcomeCallable ConfigClient::listResourceEvaluationResultsCallable(const ListResourceEvaluationResultsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->startConfigurationRecorder(request); + return this->listResourceEvaluationResults(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::StopConfigRulesOutcome ConfigClient::stopConfigRules(const StopConfigRulesRequest &request) const +ConfigClient::RevertAggregateEvaluationResultsOutcome ConfigClient::revertAggregateEvaluationResults(const RevertAggregateEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StopConfigRulesOutcome(endpointOutcome.error()); + return RevertAggregateEvaluationResultsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StopConfigRulesOutcome(StopConfigRulesResult(outcome.result())); + return RevertAggregateEvaluationResultsOutcome(RevertAggregateEvaluationResultsResult(outcome.result())); else - return StopConfigRulesOutcome(outcome.error()); + return RevertAggregateEvaluationResultsOutcome(outcome.error()); } -void ConfigClient::stopConfigRulesAsync(const StopConfigRulesRequest& request, const StopConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::revertAggregateEvaluationResultsAsync(const RevertAggregateEvaluationResultsRequest& request, const RevertAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, stopConfigRules(request), context); + handler(this, request, revertAggregateEvaluationResults(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::StopConfigRulesOutcomeCallable ConfigClient::stopConfigRulesCallable(const StopConfigRulesRequest &request) const +ConfigClient::RevertAggregateEvaluationResultsOutcomeCallable ConfigClient::revertAggregateEvaluationResultsCallable(const RevertAggregateEvaluationResultsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->stopConfigRules(request); + return this->revertAggregateEvaluationResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::RevertEvaluationResultsOutcome ConfigClient::revertEvaluationResults(const RevertEvaluationResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevertEvaluationResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevertEvaluationResultsOutcome(RevertEvaluationResultsResult(outcome.result())); + else + return RevertEvaluationResultsOutcome(outcome.error()); +} + +void ConfigClient::revertEvaluationResultsAsync(const RevertEvaluationResultsRequest& request, const RevertEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revertEvaluationResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::RevertEvaluationResultsOutcomeCallable ConfigClient::revertEvaluationResultsCallable(const RevertEvaluationResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revertEvaluationResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::StartAggregateConfigRuleEvaluationOutcome ConfigClient::startAggregateConfigRuleEvaluation(const StartAggregateConfigRuleEvaluationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartAggregateConfigRuleEvaluationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartAggregateConfigRuleEvaluationOutcome(StartAggregateConfigRuleEvaluationResult(outcome.result())); + else + return StartAggregateConfigRuleEvaluationOutcome(outcome.error()); +} + +void ConfigClient::startAggregateConfigRuleEvaluationAsync(const StartAggregateConfigRuleEvaluationRequest& request, const StartAggregateConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startAggregateConfigRuleEvaluation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::StartAggregateConfigRuleEvaluationOutcomeCallable ConfigClient::startAggregateConfigRuleEvaluationCallable(const StartAggregateConfigRuleEvaluationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startAggregateConfigRuleEvaluation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::UpdateAggregateCompliancePackOutcome ConfigClient::updateAggregateCompliancePack(const UpdateAggregateCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAggregateCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAggregateCompliancePackOutcome(UpdateAggregateCompliancePackResult(outcome.result())); + else + return UpdateAggregateCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::updateAggregateCompliancePackAsync(const UpdateAggregateCompliancePackRequest& request, const UpdateAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAggregateCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateAggregateCompliancePackOutcomeCallable ConfigClient::updateAggregateCompliancePackCallable(const UpdateAggregateCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAggregateCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::UpdateAggregateConfigRuleOutcome ConfigClient::updateAggregateConfigRule(const UpdateAggregateConfigRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAggregateConfigRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAggregateConfigRuleOutcome(UpdateAggregateConfigRuleResult(outcome.result())); + else + return UpdateAggregateConfigRuleOutcome(outcome.error()); +} + +void ConfigClient::updateAggregateConfigRuleAsync(const UpdateAggregateConfigRuleRequest& request, const UpdateAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAggregateConfigRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateAggregateConfigRuleOutcomeCallable ConfigClient::updateAggregateConfigRuleCallable(const UpdateAggregateConfigRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAggregateConfigRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::UpdateAggregatorOutcome ConfigClient::updateAggregator(const UpdateAggregatorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAggregatorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAggregatorOutcome(UpdateAggregatorResult(outcome.result())); + else + return UpdateAggregatorOutcome(outcome.error()); +} + +void ConfigClient::updateAggregatorAsync(const UpdateAggregatorRequest& request, const UpdateAggregatorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAggregator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateAggregatorOutcomeCallable ConfigClient::updateAggregatorCallable(const UpdateAggregatorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAggregator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::UpdateCompliancePackOutcome ConfigClient::updateCompliancePack(const UpdateCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCompliancePackOutcome(UpdateCompliancePackResult(outcome.result())); + else + return UpdateCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::updateCompliancePackAsync(const UpdateCompliancePackRequest& request, const UpdateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateCompliancePackOutcomeCallable ConfigClient::updateCompliancePackCallable(const UpdateCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::UpdateConfigRuleOutcome ConfigClient::updateConfigRule(const UpdateConfigRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateConfigRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateConfigRuleOutcome(UpdateConfigRuleResult(outcome.result())); + else + return UpdateConfigRuleOutcome(outcome.error()); +} + +void ConfigClient::updateConfigRuleAsync(const UpdateConfigRuleRequest& request, const UpdateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateConfigRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateConfigRuleOutcomeCallable ConfigClient::updateConfigRuleCallable(const UpdateConfigRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateConfigRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/config/src/model/ActiveAggregateConfigRulesRequest.cc b/config/src/model/ActiveAggregateConfigRulesRequest.cc new file mode 100644 index 000000000..d7aa5d334 --- /dev/null +++ b/config/src/model/ActiveAggregateConfigRulesRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ActiveAggregateConfigRulesRequest; + +ActiveAggregateConfigRulesRequest::ActiveAggregateConfigRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "ActiveAggregateConfigRules") { + setMethod(HttpRequest::Method::Post); +} + +ActiveAggregateConfigRulesRequest::~ActiveAggregateConfigRulesRequest() {} + +std::string ActiveAggregateConfigRulesRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void ActiveAggregateConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string ActiveAggregateConfigRulesRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ActiveAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/StopConfigRulesResult.cc b/config/src/model/ActiveAggregateConfigRulesResult.cc similarity index 79% rename from config/src/model/StopConfigRulesResult.cc rename to config/src/model/ActiveAggregateConfigRulesResult.cc index 99198cf4c..d76c7aa2d 100644 --- a/config/src/model/StopConfigRulesResult.cc +++ b/config/src/model/ActiveAggregateConfigRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -StopConfigRulesResult::StopConfigRulesResult() : +ActiveAggregateConfigRulesResult::ActiveAggregateConfigRulesResult() : ServiceResult() {} -StopConfigRulesResult::StopConfigRulesResult(const std::string &payload) : +ActiveAggregateConfigRulesResult::ActiveAggregateConfigRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -StopConfigRulesResult::~StopConfigRulesResult() +ActiveAggregateConfigRulesResult::~ActiveAggregateConfigRulesResult() {} -void StopConfigRulesResult::parse(const std::string &payload) +void ActiveAggregateConfigRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -55,7 +55,7 @@ void StopConfigRulesResult::parse(const std::string &payload) } -StopConfigRulesResult::OperateRuleResult StopConfigRulesResult::getOperateRuleResult()const +ActiveAggregateConfigRulesResult::OperateRuleResult ActiveAggregateConfigRulesResult::getOperateRuleResult()const { return operateRuleResult_; } diff --git a/config/src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc b/config/src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc new file mode 100644 index 000000000..17374a0a5 --- /dev/null +++ b/config/src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::AttachAggregateConfigRuleToCompliancePackRequest; + +AttachAggregateConfigRuleToCompliancePackRequest::AttachAggregateConfigRuleToCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "AttachAggregateConfigRuleToCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +AttachAggregateConfigRuleToCompliancePackRequest::~AttachAggregateConfigRuleToCompliancePackRequest() {} + +std::string AttachAggregateConfigRuleToCompliancePackRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void AttachAggregateConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string AttachAggregateConfigRuleToCompliancePackRequest::getAggregatorId() const { + return aggregatorId_; +} + +void AttachAggregateConfigRuleToCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string AttachAggregateConfigRuleToCompliancePackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void AttachAggregateConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/AttachAggregateConfigRuleToCompliancePackResult.cc b/config/src/model/AttachAggregateConfigRuleToCompliancePackResult.cc new file mode 100644 index 000000000..98b67e973 --- /dev/null +++ b/config/src/model/AttachAggregateConfigRuleToCompliancePackResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +AttachAggregateConfigRuleToCompliancePackResult::AttachAggregateConfigRuleToCompliancePackResult() : + ServiceResult() +{} + +AttachAggregateConfigRuleToCompliancePackResult::AttachAggregateConfigRuleToCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachAggregateConfigRuleToCompliancePackResult::~AttachAggregateConfigRuleToCompliancePackResult() +{} + +void AttachAggregateConfigRuleToCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto operateRuleResultNode = value["OperateRuleResult"]; + auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; + for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) + { + OperateRuleResult::OperateRuleItem operateRuleItemObject; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) + operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) + operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) + operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); + operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); + } + +} + +AttachAggregateConfigRuleToCompliancePackResult::OperateRuleResult AttachAggregateConfigRuleToCompliancePackResult::getOperateRuleResult()const +{ + return operateRuleResult_; +} + diff --git a/config/src/model/AttachConfigRuleToCompliancePackRequest.cc b/config/src/model/AttachConfigRuleToCompliancePackRequest.cc new file mode 100644 index 000000000..2647b775d --- /dev/null +++ b/config/src/model/AttachConfigRuleToCompliancePackRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::AttachConfigRuleToCompliancePackRequest; + +AttachConfigRuleToCompliancePackRequest::AttachConfigRuleToCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "AttachConfigRuleToCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +AttachConfigRuleToCompliancePackRequest::~AttachConfigRuleToCompliancePackRequest() {} + +std::string AttachConfigRuleToCompliancePackRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void AttachConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string AttachConfigRuleToCompliancePackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void AttachConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/AttachConfigRuleToCompliancePackResult.cc b/config/src/model/AttachConfigRuleToCompliancePackResult.cc new file mode 100644 index 000000000..e2bab61bb --- /dev/null +++ b/config/src/model/AttachConfigRuleToCompliancePackResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +AttachConfigRuleToCompliancePackResult::AttachConfigRuleToCompliancePackResult() : + ServiceResult() +{} + +AttachConfigRuleToCompliancePackResult::AttachConfigRuleToCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachConfigRuleToCompliancePackResult::~AttachConfigRuleToCompliancePackResult() +{} + +void AttachConfigRuleToCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto operateRuleResultNode = value["OperateRuleResult"]; + auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; + for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) + { + OperateRuleResult::OperateRuleItem operateRuleItemObject; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) + operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) + operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) + operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); + operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); + } + +} + +AttachConfigRuleToCompliancePackResult::OperateRuleResult AttachConfigRuleToCompliancePackResult::getOperateRuleResult()const +{ + return operateRuleResult_; +} + diff --git a/config/src/model/CreateAggregateCompliancePackRequest.cc b/config/src/model/CreateAggregateCompliancePackRequest.cc new file mode 100644 index 000000000..2b9a04887 --- /dev/null +++ b/config/src/model/CreateAggregateCompliancePackRequest.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::CreateAggregateCompliancePackRequest; + +CreateAggregateCompliancePackRequest::CreateAggregateCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateAggregateCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +CreateAggregateCompliancePackRequest::~CreateAggregateCompliancePackRequest() {} + +std::string CreateAggregateCompliancePackRequest::getCompliancePackName() const { + return compliancePackName_; +} + +void CreateAggregateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) { + compliancePackName_ = compliancePackName; + setBodyParameter(std::string("CompliancePackName"), compliancePackName); +} + +std::string CreateAggregateCompliancePackRequest::getClientToken() const { + return clientToken_; +} + +void CreateAggregateCompliancePackRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateAggregateCompliancePackRequest::getCompliancePackTemplateId() const { + return compliancePackTemplateId_; +} + +void CreateAggregateCompliancePackRequest::setCompliancePackTemplateId(const std::string &compliancePackTemplateId) { + compliancePackTemplateId_ = compliancePackTemplateId; + setBodyParameter(std::string("CompliancePackTemplateId"), compliancePackTemplateId); +} + +std::string CreateAggregateCompliancePackRequest::getDescription() const { + return description_; +} + +void CreateAggregateCompliancePackRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateAggregateCompliancePackRequest::getAggregatorId() const { + return aggregatorId_; +} + +void CreateAggregateCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::vector CreateAggregateCompliancePackRequest::getConfigRules() const { + return configRules_; +} + +void CreateAggregateCompliancePackRequest::setConfigRules(const std::vector &configRules) { + configRules_ = configRules; + for(int dep1 = 0; dep1 != configRules.size(); dep1++) { + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier); + for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) { + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName); + } + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel)); + } +} + +int CreateAggregateCompliancePackRequest::getRiskLevel() const { + return riskLevel_; +} + +void CreateAggregateCompliancePackRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + diff --git a/config/src/model/CreateAggregateCompliancePackResult.cc b/config/src/model/CreateAggregateCompliancePackResult.cc new file mode 100644 index 000000000..6566c37bb --- /dev/null +++ b/config/src/model/CreateAggregateCompliancePackResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +CreateAggregateCompliancePackResult::CreateAggregateCompliancePackResult() : + ServiceResult() +{} + +CreateAggregateCompliancePackResult::CreateAggregateCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAggregateCompliancePackResult::~CreateAggregateCompliancePackResult() +{} + +void CreateAggregateCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CompliancePackId"].isNull()) + compliancePackId_ = value["CompliancePackId"].asString(); + +} + +std::string CreateAggregateCompliancePackResult::getCompliancePackId()const +{ + return compliancePackId_; +} + diff --git a/config/src/model/CreateAggregateConfigRuleRequest.cc b/config/src/model/CreateAggregateConfigRuleRequest.cc new file mode 100644 index 000000000..ff6b5f7cb --- /dev/null +++ b/config/src/model/CreateAggregateConfigRuleRequest.cc @@ -0,0 +1,173 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config::Model::CreateAggregateConfigRuleRequest; + +CreateAggregateConfigRuleRequest::CreateAggregateConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateAggregateConfigRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateAggregateConfigRuleRequest::~CreateAggregateConfigRuleRequest() {} + +std::string CreateAggregateConfigRuleRequest::getTagKeyScope() const { + return tagKeyScope_; +} + +void CreateAggregateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) { + tagKeyScope_ = tagKeyScope; + setBodyParameter(std::string("TagKeyScope"), tagKeyScope); +} + +std::string CreateAggregateConfigRuleRequest::getClientToken() const { + return clientToken_; +} + +void CreateAggregateConfigRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateAggregateConfigRuleRequest::getResourceTypesScope() const { + return resourceTypesScope_; +} + +void CreateAggregateConfigRuleRequest::setResourceTypesScope(const std::vector &resourceTypesScope) { + resourceTypesScope_ = resourceTypesScope; + for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) { + setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]); + } +} + +std::string CreateAggregateConfigRuleRequest::getDescription() const { + return description_; +} + +void CreateAggregateConfigRuleRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateAggregateConfigRuleRequest::getAggregatorId() const { + return aggregatorId_; +} + +void CreateAggregateConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string CreateAggregateConfigRuleRequest::getConfigRuleTriggerTypes() const { + return configRuleTriggerTypes_; +} + +void CreateAggregateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) { + configRuleTriggerTypes_ = configRuleTriggerTypes; + setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes); +} + +std::string CreateAggregateConfigRuleRequest::getSourceIdentifier() const { + return sourceIdentifier_; +} + +void CreateAggregateConfigRuleRequest::setSourceIdentifier(const std::string &sourceIdentifier) { + sourceIdentifier_ = sourceIdentifier; + setBodyParameter(std::string("SourceIdentifier"), sourceIdentifier); +} + +std::string CreateAggregateConfigRuleRequest::getTagValueScope() const { + return tagValueScope_; +} + +void CreateAggregateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) { + tagValueScope_ = tagValueScope; + setBodyParameter(std::string("TagValueScope"), tagValueScope); +} + +std::string CreateAggregateConfigRuleRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void CreateAggregateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +int CreateAggregateConfigRuleRequest::getRiskLevel() const { + return riskLevel_; +} + +void CreateAggregateConfigRuleRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + +std::string CreateAggregateConfigRuleRequest::getSourceOwner() const { + return sourceOwner_; +} + +void CreateAggregateConfigRuleRequest::setSourceOwner(const std::string &sourceOwner) { + sourceOwner_ = sourceOwner; + setBodyParameter(std::string("SourceOwner"), sourceOwner); +} + +std::string CreateAggregateConfigRuleRequest::getResourceGroupIdsScope() const { + return resourceGroupIdsScope_; +} + +void CreateAggregateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { + resourceGroupIdsScope_ = resourceGroupIdsScope; + setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); +} + +std::string CreateAggregateConfigRuleRequest::getInputParameters() const { + return inputParameters_; +} + +void CreateAggregateConfigRuleRequest::setInputParameters(const std::string &inputParameters) { + inputParameters_ = inputParameters; + setBodyParameter(std::string("InputParameters"), inputParameters); +} + +std::string CreateAggregateConfigRuleRequest::getConfigRuleName() const { + return configRuleName_; +} + +void CreateAggregateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { + configRuleName_ = configRuleName; + setBodyParameter(std::string("ConfigRuleName"), configRuleName); +} + +std::string CreateAggregateConfigRuleRequest::getMaximumExecutionFrequency() const { + return maximumExecutionFrequency_; +} + +void CreateAggregateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { + maximumExecutionFrequency_ = maximumExecutionFrequency; + setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); +} + +std::string CreateAggregateConfigRuleRequest::getExcludeResourceIdsScope() const { + return excludeResourceIdsScope_; +} + +void CreateAggregateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { + excludeResourceIdsScope_ = excludeResourceIdsScope; + setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); +} + diff --git a/config/src/model/GetSupportedResourceTypesResult.cc b/config/src/model/CreateAggregateConfigRuleResult.cc similarity index 62% rename from config/src/model/GetSupportedResourceTypesResult.cc rename to config/src/model/CreateAggregateConfigRuleResult.cc index ec9fb813a..8e127aa3b 100644 --- a/config/src/model/GetSupportedResourceTypesResult.cc +++ b/config/src/model/CreateAggregateConfigRuleResult.cc @@ -14,39 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -GetSupportedResourceTypesResult::GetSupportedResourceTypesResult() : +CreateAggregateConfigRuleResult::CreateAggregateConfigRuleResult() : ServiceResult() {} -GetSupportedResourceTypesResult::GetSupportedResourceTypesResult(const std::string &payload) : +CreateAggregateConfigRuleResult::CreateAggregateConfigRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetSupportedResourceTypesResult::~GetSupportedResourceTypesResult() +CreateAggregateConfigRuleResult::~CreateAggregateConfigRuleResult() {} -void GetSupportedResourceTypesResult::parse(const std::string &payload) +void CreateAggregateConfigRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allResourceTypes = value["ResourceTypes"]["ResourceType"]; - for (const auto &item : allResourceTypes) - resourceTypes_.push_back(item.asString()); + if(!value["ConfigRuleId"].isNull()) + configRuleId_ = value["ConfigRuleId"].asString(); } -std::vector GetSupportedResourceTypesResult::getResourceTypes()const +std::string CreateAggregateConfigRuleResult::getConfigRuleId()const { - return resourceTypes_; + return configRuleId_; } diff --git a/config/src/model/CreateAggregatorRequest.cc b/config/src/model/CreateAggregatorRequest.cc new file mode 100644 index 000000000..c6641a9b4 --- /dev/null +++ b/config/src/model/CreateAggregatorRequest.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::CreateAggregatorRequest; + +CreateAggregatorRequest::CreateAggregatorRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateAggregator") { + setMethod(HttpRequest::Method::Post); +} + +CreateAggregatorRequest::~CreateAggregatorRequest() {} + +std::string CreateAggregatorRequest::getAggregatorType() const { + return aggregatorType_; +} + +void CreateAggregatorRequest::setAggregatorType(const std::string &aggregatorType) { + aggregatorType_ = aggregatorType; + setBodyParameter(std::string("AggregatorType"), aggregatorType); +} + +std::string CreateAggregatorRequest::getClientToken() const { + return clientToken_; +} + +void CreateAggregatorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateAggregatorRequest::getAggregatorName() const { + return aggregatorName_; +} + +void CreateAggregatorRequest::setAggregatorName(const std::string &aggregatorName) { + aggregatorName_ = aggregatorName; + setBodyParameter(std::string("AggregatorName"), aggregatorName); +} + +std::string CreateAggregatorRequest::getDescription() const { + return description_; +} + +void CreateAggregatorRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::vector CreateAggregatorRequest::getAggregatorAccounts() const { + return aggregatorAccounts_; +} + +void CreateAggregatorRequest::setAggregatorAccounts(const std::vector &aggregatorAccounts) { + aggregatorAccounts_ = aggregatorAccounts; + for(int dep1 = 0; dep1 != aggregatorAccounts.size(); dep1++) { + setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountId", std::to_string(aggregatorAccounts[dep1].accountId)); + setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountName", aggregatorAccounts[dep1].accountName); + setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountType", aggregatorAccounts[dep1].accountType); + } +} + diff --git a/config/src/model/PutDeliveryChannelResult.cc b/config/src/model/CreateAggregatorResult.cc similarity index 64% rename from config/src/model/PutDeliveryChannelResult.cc rename to config/src/model/CreateAggregatorResult.cc index 769def101..00e47f4d2 100644 --- a/config/src/model/PutDeliveryChannelResult.cc +++ b/config/src/model/CreateAggregatorResult.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -PutDeliveryChannelResult::PutDeliveryChannelResult() : +CreateAggregatorResult::CreateAggregatorResult() : ServiceResult() {} -PutDeliveryChannelResult::PutDeliveryChannelResult(const std::string &payload) : +CreateAggregatorResult::CreateAggregatorResult(const std::string &payload) : ServiceResult() { parse(payload); } -PutDeliveryChannelResult::~PutDeliveryChannelResult() +CreateAggregatorResult::~CreateAggregatorResult() {} -void PutDeliveryChannelResult::parse(const std::string &payload) +void CreateAggregatorResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DeliveryChannelId"].isNull()) - deliveryChannelId_ = value["DeliveryChannelId"].asString(); + if(!value["AggregatorId"].isNull()) + aggregatorId_ = value["AggregatorId"].asString(); } -std::string PutDeliveryChannelResult::getDeliveryChannelId()const +std::string CreateAggregatorResult::getAggregatorId()const { - return deliveryChannelId_; + return aggregatorId_; } diff --git a/config/src/model/CreateCompliancePackRequest.cc b/config/src/model/CreateCompliancePackRequest.cc new file mode 100644 index 000000000..5f1c3fb79 --- /dev/null +++ b/config/src/model/CreateCompliancePackRequest.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::CreateCompliancePackRequest; + +CreateCompliancePackRequest::CreateCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +CreateCompliancePackRequest::~CreateCompliancePackRequest() {} + +std::string CreateCompliancePackRequest::getCompliancePackName() const { + return compliancePackName_; +} + +void CreateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) { + compliancePackName_ = compliancePackName; + setBodyParameter(std::string("CompliancePackName"), compliancePackName); +} + +std::string CreateCompliancePackRequest::getClientToken() const { + return clientToken_; +} + +void CreateCompliancePackRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateCompliancePackRequest::getCompliancePackTemplateId() const { + return compliancePackTemplateId_; +} + +void CreateCompliancePackRequest::setCompliancePackTemplateId(const std::string &compliancePackTemplateId) { + compliancePackTemplateId_ = compliancePackTemplateId; + setBodyParameter(std::string("CompliancePackTemplateId"), compliancePackTemplateId); +} + +std::string CreateCompliancePackRequest::getDescription() const { + return description_; +} + +void CreateCompliancePackRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::vector CreateCompliancePackRequest::getConfigRules() const { + return configRules_; +} + +void CreateCompliancePackRequest::setConfigRules(const std::vector &configRules) { + configRules_ = configRules; + for(int dep1 = 0; dep1 != configRules.size(); dep1++) { + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier); + for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) { + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName); + } + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel)); + } +} + +int CreateCompliancePackRequest::getRiskLevel() const { + return riskLevel_; +} + +void CreateCompliancePackRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + diff --git a/config/src/model/CreateCompliancePackResult.cc b/config/src/model/CreateCompliancePackResult.cc new file mode 100644 index 000000000..0270eba37 --- /dev/null +++ b/config/src/model/CreateCompliancePackResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +CreateCompliancePackResult::CreateCompliancePackResult() : + ServiceResult() +{} + +CreateCompliancePackResult::CreateCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCompliancePackResult::~CreateCompliancePackResult() +{} + +void CreateCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CompliancePackId"].isNull()) + compliancePackId_ = value["CompliancePackId"].asString(); + +} + +std::string CreateCompliancePackResult::getCompliancePackId()const +{ + return compliancePackId_; +} + diff --git a/config/src/model/CreateConfigRuleRequest.cc b/config/src/model/CreateConfigRuleRequest.cc new file mode 100644 index 000000000..0558c4e08 --- /dev/null +++ b/config/src/model/CreateConfigRuleRequest.cc @@ -0,0 +1,164 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config::Model::CreateConfigRuleRequest; + +CreateConfigRuleRequest::CreateConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateConfigRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateConfigRuleRequest::~CreateConfigRuleRequest() {} + +std::string CreateConfigRuleRequest::getTagKeyScope() const { + return tagKeyScope_; +} + +void CreateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) { + tagKeyScope_ = tagKeyScope; + setBodyParameter(std::string("TagKeyScope"), tagKeyScope); +} + +std::string CreateConfigRuleRequest::getClientToken() const { + return clientToken_; +} + +void CreateConfigRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateConfigRuleRequest::getResourceTypesScope() const { + return resourceTypesScope_; +} + +void CreateConfigRuleRequest::setResourceTypesScope(const std::vector &resourceTypesScope) { + resourceTypesScope_ = resourceTypesScope; + for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) { + setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]); + } +} + +std::string CreateConfigRuleRequest::getDescription() const { + return description_; +} + +void CreateConfigRuleRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateConfigRuleRequest::getConfigRuleTriggerTypes() const { + return configRuleTriggerTypes_; +} + +void CreateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) { + configRuleTriggerTypes_ = configRuleTriggerTypes; + setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes); +} + +std::string CreateConfigRuleRequest::getSourceIdentifier() const { + return sourceIdentifier_; +} + +void CreateConfigRuleRequest::setSourceIdentifier(const std::string &sourceIdentifier) { + sourceIdentifier_ = sourceIdentifier; + setBodyParameter(std::string("SourceIdentifier"), sourceIdentifier); +} + +std::string CreateConfigRuleRequest::getTagValueScope() const { + return tagValueScope_; +} + +void CreateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) { + tagValueScope_ = tagValueScope; + setBodyParameter(std::string("TagValueScope"), tagValueScope); +} + +std::string CreateConfigRuleRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void CreateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +int CreateConfigRuleRequest::getRiskLevel() const { + return riskLevel_; +} + +void CreateConfigRuleRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + +std::string CreateConfigRuleRequest::getSourceOwner() const { + return sourceOwner_; +} + +void CreateConfigRuleRequest::setSourceOwner(const std::string &sourceOwner) { + sourceOwner_ = sourceOwner; + setBodyParameter(std::string("SourceOwner"), sourceOwner); +} + +std::string CreateConfigRuleRequest::getResourceGroupIdsScope() const { + return resourceGroupIdsScope_; +} + +void CreateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { + resourceGroupIdsScope_ = resourceGroupIdsScope; + setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); +} + +std::string CreateConfigRuleRequest::getInputParameters() const { + return inputParameters_; +} + +void CreateConfigRuleRequest::setInputParameters(const std::string &inputParameters) { + inputParameters_ = inputParameters; + setBodyParameter(std::string("InputParameters"), inputParameters); +} + +std::string CreateConfigRuleRequest::getConfigRuleName() const { + return configRuleName_; +} + +void CreateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { + configRuleName_ = configRuleName; + setBodyParameter(std::string("ConfigRuleName"), configRuleName); +} + +std::string CreateConfigRuleRequest::getMaximumExecutionFrequency() const { + return maximumExecutionFrequency_; +} + +void CreateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { + maximumExecutionFrequency_ = maximumExecutionFrequency; + setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); +} + +std::string CreateConfigRuleRequest::getExcludeResourceIdsScope() const { + return excludeResourceIdsScope_; +} + +void CreateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { + excludeResourceIdsScope_ = excludeResourceIdsScope; + setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); +} + diff --git a/config/src/model/PutConfigRuleResult.cc b/config/src/model/CreateConfigRuleResult.cc similarity index 74% rename from config/src/model/PutConfigRuleResult.cc rename to config/src/model/CreateConfigRuleResult.cc index bb7182b83..864a18983 100644 --- a/config/src/model/PutConfigRuleResult.cc +++ b/config/src/model/CreateConfigRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -PutConfigRuleResult::PutConfigRuleResult() : +CreateConfigRuleResult::CreateConfigRuleResult() : ServiceResult() {} -PutConfigRuleResult::PutConfigRuleResult(const std::string &payload) : +CreateConfigRuleResult::CreateConfigRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -PutConfigRuleResult::~PutConfigRuleResult() +CreateConfigRuleResult::~CreateConfigRuleResult() {} -void PutConfigRuleResult::parse(const std::string &payload) +void CreateConfigRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -44,7 +44,7 @@ void PutConfigRuleResult::parse(const std::string &payload) } -std::string PutConfigRuleResult::getConfigRuleId()const +std::string CreateConfigRuleResult::getConfigRuleId()const { return configRuleId_; } diff --git a/config/src/model/DeactiveAggregateConfigRulesRequest.cc b/config/src/model/DeactiveAggregateConfigRulesRequest.cc new file mode 100644 index 000000000..eb101d6d9 --- /dev/null +++ b/config/src/model/DeactiveAggregateConfigRulesRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::DeactiveAggregateConfigRulesRequest; + +DeactiveAggregateConfigRulesRequest::DeactiveAggregateConfigRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "DeactiveAggregateConfigRules") { + setMethod(HttpRequest::Method::Post); +} + +DeactiveAggregateConfigRulesRequest::~DeactiveAggregateConfigRulesRequest() {} + +std::string DeactiveAggregateConfigRulesRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void DeactiveAggregateConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string DeactiveAggregateConfigRulesRequest::getAggregatorId() const { + return aggregatorId_; +} + +void DeactiveAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/DeactiveAggregateConfigRulesResult.cc b/config/src/model/DeactiveAggregateConfigRulesResult.cc new file mode 100644 index 000000000..c468ed501 --- /dev/null +++ b/config/src/model/DeactiveAggregateConfigRulesResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +DeactiveAggregateConfigRulesResult::DeactiveAggregateConfigRulesResult() : + ServiceResult() +{} + +DeactiveAggregateConfigRulesResult::DeactiveAggregateConfigRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeactiveAggregateConfigRulesResult::~DeactiveAggregateConfigRulesResult() +{} + +void DeactiveAggregateConfigRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto operateRuleResultNode = value["OperateRuleResult"]; + auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; + for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) + { + OperateRuleResult::OperateRuleItem operateRuleItemObject; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) + operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) + operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) + operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); + operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); + } + +} + +DeactiveAggregateConfigRulesResult::OperateRuleResult DeactiveAggregateConfigRulesResult::getOperateRuleResult()const +{ + return operateRuleResult_; +} + diff --git a/config/src/model/ActiveConfigRulesRequest.cc b/config/src/model/DeactiveConfigRulesRequest.cc similarity index 61% rename from config/src/model/ActiveConfigRulesRequest.cc rename to config/src/model/DeactiveConfigRulesRequest.cc index 03d63fada..ea0ef609d 100644 --- a/config/src/model/ActiveConfigRulesRequest.cc +++ b/config/src/model/DeactiveConfigRulesRequest.cc @@ -14,22 +14,22 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::ActiveConfigRulesRequest; +using AlibabaCloud::Config::Model::DeactiveConfigRulesRequest; -ActiveConfigRulesRequest::ActiveConfigRulesRequest() - : RpcServiceRequest("config", "2019-01-08", "ActiveConfigRules") { +DeactiveConfigRulesRequest::DeactiveConfigRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "DeactiveConfigRules") { setMethod(HttpRequest::Method::Post); } -ActiveConfigRulesRequest::~ActiveConfigRulesRequest() {} +DeactiveConfigRulesRequest::~DeactiveConfigRulesRequest() {} -std::string ActiveConfigRulesRequest::getConfigRuleIds() const { +std::string DeactiveConfigRulesRequest::getConfigRuleIds() const { return configRuleIds_; } -void ActiveConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { +void DeactiveConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { configRuleIds_ = configRuleIds; setParameter(std::string("ConfigRuleIds"), configRuleIds); } diff --git a/config/src/model/DeleteConfigRulesResult.cc b/config/src/model/DeactiveConfigRulesResult.cc similarity index 82% rename from config/src/model/DeleteConfigRulesResult.cc rename to config/src/model/DeactiveConfigRulesResult.cc index 1492c6597..9c48ecb9d 100644 --- a/config/src/model/DeleteConfigRulesResult.cc +++ b/config/src/model/DeactiveConfigRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DeleteConfigRulesResult::DeleteConfigRulesResult() : +DeactiveConfigRulesResult::DeactiveConfigRulesResult() : ServiceResult() {} -DeleteConfigRulesResult::DeleteConfigRulesResult(const std::string &payload) : +DeactiveConfigRulesResult::DeactiveConfigRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteConfigRulesResult::~DeleteConfigRulesResult() +DeactiveConfigRulesResult::~DeactiveConfigRulesResult() {} -void DeleteConfigRulesResult::parse(const std::string &payload) +void DeactiveConfigRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -55,7 +55,7 @@ void DeleteConfigRulesResult::parse(const std::string &payload) } -DeleteConfigRulesResult::OperateRuleResult DeleteConfigRulesResult::getOperateRuleResult()const +DeactiveConfigRulesResult::OperateRuleResult DeactiveConfigRulesResult::getOperateRuleResult()const { return operateRuleResult_; } diff --git a/config/src/model/DeleteAggregateCompliancePacksRequest.cc b/config/src/model/DeleteAggregateCompliancePacksRequest.cc new file mode 100644 index 000000000..15c47e782 --- /dev/null +++ b/config/src/model/DeleteAggregateCompliancePacksRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::DeleteAggregateCompliancePacksRequest; + +DeleteAggregateCompliancePacksRequest::DeleteAggregateCompliancePacksRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteAggregateCompliancePacks") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAggregateCompliancePacksRequest::~DeleteAggregateCompliancePacksRequest() {} + +std::string DeleteAggregateCompliancePacksRequest::getClientToken() const { + return clientToken_; +} + +void DeleteAggregateCompliancePacksRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteAggregateCompliancePacksRequest::getAggregatorId() const { + return aggregatorId_; +} + +void DeleteAggregateCompliancePacksRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string DeleteAggregateCompliancePacksRequest::getCompliancePackIds() const { + return compliancePackIds_; +} + +void DeleteAggregateCompliancePacksRequest::setCompliancePackIds(const std::string &compliancePackIds) { + compliancePackIds_ = compliancePackIds; + setBodyParameter(std::string("CompliancePackIds"), compliancePackIds); +} + +bool DeleteAggregateCompliancePacksRequest::getDeleteRule() const { + return deleteRule_; +} + +void DeleteAggregateCompliancePacksRequest::setDeleteRule(bool deleteRule) { + deleteRule_ = deleteRule; + setBodyParameter(std::string("DeleteRule"), deleteRule ? "true" : "false"); +} + diff --git a/config/src/model/DeleteAggregateCompliancePacksResult.cc b/config/src/model/DeleteAggregateCompliancePacksResult.cc new file mode 100644 index 000000000..2dbc83435 --- /dev/null +++ b/config/src/model/DeleteAggregateCompliancePacksResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +DeleteAggregateCompliancePacksResult::DeleteAggregateCompliancePacksResult() : + ServiceResult() +{} + +DeleteAggregateCompliancePacksResult::DeleteAggregateCompliancePacksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAggregateCompliancePacksResult::~DeleteAggregateCompliancePacksResult() +{} + +void DeleteAggregateCompliancePacksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto operateCompliancePacksResultNode = value["OperateCompliancePacksResult"]; + auto allOperateCompliancePacksNode = operateCompliancePacksResultNode["OperateCompliancePacks"]["OperateCompliancePacksItem"]; + for (auto operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem : allOperateCompliancePacksNode) + { + OperateCompliancePacksResult::OperateCompliancePacksItem operateCompliancePacksItemObject; + if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].isNull()) + operateCompliancePacksItemObject.compliancePackId = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].asString(); + if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].isNull()) + operateCompliancePacksItemObject.errorCode = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].asString(); + if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].isNull()) + operateCompliancePacksItemObject.success = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].asString() == "true"; + operateCompliancePacksResult_.operateCompliancePacks.push_back(operateCompliancePacksItemObject); + } + +} + +DeleteAggregateCompliancePacksResult::OperateCompliancePacksResult DeleteAggregateCompliancePacksResult::getOperateCompliancePacksResult()const +{ + return operateCompliancePacksResult_; +} + diff --git a/config/src/model/DeleteAggregateConfigRulesRequest.cc b/config/src/model/DeleteAggregateConfigRulesRequest.cc new file mode 100644 index 000000000..8eee0836a --- /dev/null +++ b/config/src/model/DeleteAggregateConfigRulesRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::DeleteAggregateConfigRulesRequest; + +DeleteAggregateConfigRulesRequest::DeleteAggregateConfigRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteAggregateConfigRules") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAggregateConfigRulesRequest::~DeleteAggregateConfigRulesRequest() {} + +std::string DeleteAggregateConfigRulesRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void DeleteAggregateConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string DeleteAggregateConfigRulesRequest::getAggregatorId() const { + return aggregatorId_; +} + +void DeleteAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/ActiveConfigRulesResult.cc b/config/src/model/DeleteAggregateConfigRulesResult.cc similarity index 79% rename from config/src/model/ActiveConfigRulesResult.cc rename to config/src/model/DeleteAggregateConfigRulesResult.cc index bff2daf29..637e09bcb 100644 --- a/config/src/model/ActiveConfigRulesResult.cc +++ b/config/src/model/DeleteAggregateConfigRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -ActiveConfigRulesResult::ActiveConfigRulesResult() : +DeleteAggregateConfigRulesResult::DeleteAggregateConfigRulesResult() : ServiceResult() {} -ActiveConfigRulesResult::ActiveConfigRulesResult(const std::string &payload) : +DeleteAggregateConfigRulesResult::DeleteAggregateConfigRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -ActiveConfigRulesResult::~ActiveConfigRulesResult() +DeleteAggregateConfigRulesResult::~DeleteAggregateConfigRulesResult() {} -void ActiveConfigRulesResult::parse(const std::string &payload) +void DeleteAggregateConfigRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -55,7 +55,7 @@ void ActiveConfigRulesResult::parse(const std::string &payload) } -ActiveConfigRulesResult::OperateRuleResult ActiveConfigRulesResult::getOperateRuleResult()const +DeleteAggregateConfigRulesResult::OperateRuleResult DeleteAggregateConfigRulesResult::getOperateRuleResult()const { return operateRuleResult_; } diff --git a/config/src/model/DeleteAggregatorsRequest.cc b/config/src/model/DeleteAggregatorsRequest.cc new file mode 100644 index 000000000..66cfb9fab --- /dev/null +++ b/config/src/model/DeleteAggregatorsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::DeleteAggregatorsRequest; + +DeleteAggregatorsRequest::DeleteAggregatorsRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteAggregators") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAggregatorsRequest::~DeleteAggregatorsRequest() {} + +std::string DeleteAggregatorsRequest::getClientToken() const { + return clientToken_; +} + +void DeleteAggregatorsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteAggregatorsRequest::getAggregatorIds() const { + return aggregatorIds_; +} + +void DeleteAggregatorsRequest::setAggregatorIds(const std::string &aggregatorIds) { + aggregatorIds_ = aggregatorIds; + setBodyParameter(std::string("AggregatorIds"), aggregatorIds); +} + diff --git a/config/src/model/DeleteAggregatorsResult.cc b/config/src/model/DeleteAggregatorsResult.cc new file mode 100644 index 000000000..1ec325366 --- /dev/null +++ b/config/src/model/DeleteAggregatorsResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +DeleteAggregatorsResult::DeleteAggregatorsResult() : + ServiceResult() +{} + +DeleteAggregatorsResult::DeleteAggregatorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAggregatorsResult::~DeleteAggregatorsResult() +{} + +void DeleteAggregatorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto operateAggregatorsResultNode = value["OperateAggregatorsResult"]; + auto allOperateAggregatorsNode = operateAggregatorsResultNode["OperateAggregators"]["OperateAggregatorList"]; + for (auto operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList : allOperateAggregatorsNode) + { + OperateAggregatorsResult::OperateAggregatorList operateAggregatorListObject; + if(!operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["ErrorCode"].isNull()) + operateAggregatorListObject.errorCode = operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["ErrorCode"].asString(); + if(!operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["Success"].isNull()) + operateAggregatorListObject.success = operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["Success"].asString() == "true"; + if(!operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["AggregatorId"].isNull()) + operateAggregatorListObject.aggregatorId = operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["AggregatorId"].asString(); + operateAggregatorsResult_.operateAggregators.push_back(operateAggregatorListObject); + } + +} + +DeleteAggregatorsResult::OperateAggregatorsResult DeleteAggregatorsResult::getOperateAggregatorsResult()const +{ + return operateAggregatorsResult_; +} + diff --git a/config/src/model/DeleteCompliancePacksRequest.cc b/config/src/model/DeleteCompliancePacksRequest.cc new file mode 100644 index 000000000..9e4c51b49 --- /dev/null +++ b/config/src/model/DeleteCompliancePacksRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::DeleteCompliancePacksRequest; + +DeleteCompliancePacksRequest::DeleteCompliancePacksRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteCompliancePacks") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCompliancePacksRequest::~DeleteCompliancePacksRequest() {} + +std::string DeleteCompliancePacksRequest::getClientToken() const { + return clientToken_; +} + +void DeleteCompliancePacksRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteCompliancePacksRequest::getCompliancePackIds() const { + return compliancePackIds_; +} + +void DeleteCompliancePacksRequest::setCompliancePackIds(const std::string &compliancePackIds) { + compliancePackIds_ = compliancePackIds; + setBodyParameter(std::string("CompliancePackIds"), compliancePackIds); +} + +bool DeleteCompliancePacksRequest::getDeleteRule() const { + return deleteRule_; +} + +void DeleteCompliancePacksRequest::setDeleteRule(bool deleteRule) { + deleteRule_ = deleteRule; + setBodyParameter(std::string("DeleteRule"), deleteRule ? "true" : "false"); +} + diff --git a/config/src/model/DeleteCompliancePacksResult.cc b/config/src/model/DeleteCompliancePacksResult.cc new file mode 100644 index 000000000..6fa89083e --- /dev/null +++ b/config/src/model/DeleteCompliancePacksResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +DeleteCompliancePacksResult::DeleteCompliancePacksResult() : + ServiceResult() +{} + +DeleteCompliancePacksResult::DeleteCompliancePacksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCompliancePacksResult::~DeleteCompliancePacksResult() +{} + +void DeleteCompliancePacksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto operateCompliancePacksResultNode = value["OperateCompliancePacksResult"]; + auto allOperateCompliancePacksNode = operateCompliancePacksResultNode["OperateCompliancePacks"]["OperateCompliancePacksItem"]; + for (auto operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem : allOperateCompliancePacksNode) + { + OperateCompliancePacksResult::OperateCompliancePacksItem operateCompliancePacksItemObject; + if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].isNull()) + operateCompliancePacksItemObject.compliancePackId = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].asString(); + if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].isNull()) + operateCompliancePacksItemObject.errorCode = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].asString(); + if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].isNull()) + operateCompliancePacksItemObject.success = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].asString() == "true"; + operateCompliancePacksResult_.operateCompliancePacks.push_back(operateCompliancePacksItemObject); + } + +} + +DeleteCompliancePacksResult::OperateCompliancePacksResult DeleteCompliancePacksResult::getOperateCompliancePacksResult()const +{ + return operateCompliancePacksResult_; +} + diff --git a/config/src/model/DescribeComplianceRequest.cc b/config/src/model/DescribeComplianceRequest.cc deleted file mode 100644 index a2d2e7edb..000000000 --- a/config/src/model/DescribeComplianceRequest.cc +++ /dev/null @@ -1,81 +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::Config::Model::DescribeComplianceRequest; - -DescribeComplianceRequest::DescribeComplianceRequest() - : RpcServiceRequest("config", "2019-01-08", "DescribeCompliance") { - setMethod(HttpRequest::Method::Get); -} - -DescribeComplianceRequest::~DescribeComplianceRequest() {} - -std::string DescribeComplianceRequest::getConfigRuleId() const { - return configRuleId_; -} - -void DescribeComplianceRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::string DescribeComplianceRequest::getResourceId() const { - return resourceId_; -} - -void DescribeComplianceRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -bool DescribeComplianceRequest::getMultiAccount() const { - return multiAccount_; -} - -void DescribeComplianceRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -std::string DescribeComplianceRequest::getResourceType() const { - return resourceType_; -} - -void DescribeComplianceRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::string DescribeComplianceRequest::getComplianceType() const { - return complianceType_; -} - -void DescribeComplianceRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - -long DescribeComplianceRequest::getMemberId() const { - return memberId_; -} - -void DescribeComplianceRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/DescribeComplianceSummaryRequest.cc b/config/src/model/DescribeComplianceSummaryRequest.cc deleted file mode 100644 index a40fcfd84..000000000 --- a/config/src/model/DescribeComplianceSummaryRequest.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::Config::Model::DescribeComplianceSummaryRequest; - -DescribeComplianceSummaryRequest::DescribeComplianceSummaryRequest() - : RpcServiceRequest("config", "2019-01-08", "DescribeComplianceSummary") { - setMethod(HttpRequest::Method::Get); -} - -DescribeComplianceSummaryRequest::~DescribeComplianceSummaryRequest() {} - -bool DescribeComplianceSummaryRequest::getMultiAccount() const { - return multiAccount_; -} - -void DescribeComplianceSummaryRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -long DescribeComplianceSummaryRequest::getMemberId() const { - return memberId_; -} - -void DescribeComplianceSummaryRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/DescribeComplianceSummaryResult.cc b/config/src/model/DescribeComplianceSummaryResult.cc deleted file mode 100644 index c0f890fad..000000000 --- a/config/src/model/DescribeComplianceSummaryResult.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::Config; -using namespace AlibabaCloud::Config::Model; - -DescribeComplianceSummaryResult::DescribeComplianceSummaryResult() : - ServiceResult() -{} - -DescribeComplianceSummaryResult::DescribeComplianceSummaryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeComplianceSummaryResult::~DescribeComplianceSummaryResult() -{} - -void DescribeComplianceSummaryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto complianceSummaryNode = value["ComplianceSummary"]; - auto complianceSummaryByResourceNode = complianceSummaryNode["ComplianceSummaryByResource"]; - if(!complianceSummaryByResourceNode["CompliantCount"].isNull()) - complianceSummary_.complianceSummaryByResource.compliantCount = std::stoi(complianceSummaryByResourceNode["CompliantCount"].asString()); - if(!complianceSummaryByResourceNode["NonCompliantCount"].isNull()) - complianceSummary_.complianceSummaryByResource.nonCompliantCount = std::stoi(complianceSummaryByResourceNode["NonCompliantCount"].asString()); - if(!complianceSummaryByResourceNode["ComplianceSummaryTimestamp"].isNull()) - complianceSummary_.complianceSummaryByResource.complianceSummaryTimestamp = std::stol(complianceSummaryByResourceNode["ComplianceSummaryTimestamp"].asString()); - if(!complianceSummaryByResourceNode["TotalCount"].isNull()) - complianceSummary_.complianceSummaryByResource.totalCount = std::stol(complianceSummaryByResourceNode["TotalCount"].asString()); - auto complianceSummaryByConfigRuleNode = complianceSummaryNode["ComplianceSummaryByConfigRule"]; - if(!complianceSummaryByConfigRuleNode["CompliantCount"].isNull()) - complianceSummary_.complianceSummaryByConfigRule.compliantCount = std::stoi(complianceSummaryByConfigRuleNode["CompliantCount"].asString()); - if(!complianceSummaryByConfigRuleNode["NonCompliantCount"].isNull()) - complianceSummary_.complianceSummaryByConfigRule.nonCompliantCount = std::stoi(complianceSummaryByConfigRuleNode["NonCompliantCount"].asString()); - if(!complianceSummaryByConfigRuleNode["ComplianceSummaryTimestamp"].isNull()) - complianceSummary_.complianceSummaryByConfigRule.complianceSummaryTimestamp = std::stol(complianceSummaryByConfigRuleNode["ComplianceSummaryTimestamp"].asString()); - if(!complianceSummaryByConfigRuleNode["TotalCount"].isNull()) - complianceSummary_.complianceSummaryByConfigRule.totalCount = std::stol(complianceSummaryByConfigRuleNode["TotalCount"].asString()); - -} - -DescribeComplianceSummaryResult::ComplianceSummary DescribeComplianceSummaryResult::getComplianceSummary()const -{ - return complianceSummary_; -} - diff --git a/config/src/model/DescribeConfigRuleRequest.cc b/config/src/model/DescribeConfigRuleRequest.cc deleted file mode 100644 index 4299189ca..000000000 --- a/config/src/model/DescribeConfigRuleRequest.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::Config::Model::DescribeConfigRuleRequest; - -DescribeConfigRuleRequest::DescribeConfigRuleRequest() - : RpcServiceRequest("config", "2019-01-08", "DescribeConfigRule") { - setMethod(HttpRequest::Method::Get); -} - -DescribeConfigRuleRequest::~DescribeConfigRuleRequest() {} - -std::string DescribeConfigRuleRequest::getConfigRuleId() const { - return configRuleId_; -} - -void DescribeConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - -bool DescribeConfigRuleRequest::getMultiAccount() const { - return multiAccount_; -} - -void DescribeConfigRuleRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -long DescribeConfigRuleRequest::getMemberId() const { - return memberId_; -} - -void DescribeConfigRuleRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/DescribeConfigurationRecorderResult.cc b/config/src/model/DescribeConfigurationRecorderResult.cc deleted file mode 100644 index e4df26b0b..000000000 --- a/config/src/model/DescribeConfigurationRecorderResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -DescribeConfigurationRecorderResult::DescribeConfigurationRecorderResult() : - ServiceResult() -{} - -DescribeConfigurationRecorderResult::DescribeConfigurationRecorderResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeConfigurationRecorderResult::~DescribeConfigurationRecorderResult() -{} - -void DescribeConfigurationRecorderResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto configurationRecorderNode = value["ConfigurationRecorder"]; - if(!configurationRecorderNode["OrganizationEnableStatus"].isNull()) - configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString(); - if(!configurationRecorderNode["ConfigurationRecorderStatus"].isNull()) - configurationRecorder_.configurationRecorderStatus = configurationRecorderNode["ConfigurationRecorderStatus"].asString(); - if(!configurationRecorderNode["OrganizationMasterId"].isNull()) - configurationRecorder_.organizationMasterId = std::stol(configurationRecorderNode["OrganizationMasterId"].asString()); - if(!configurationRecorderNode["AccountId"].isNull()) - configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString()); - auto allResourceTypes = configurationRecorderNode["ResourceTypes"]["ResourceType"]; - for (auto value : allResourceTypes) - configurationRecorder_.resourceTypes.push_back(value.asString()); - -} - -DescribeConfigurationRecorderResult::ConfigurationRecorder DescribeConfigurationRecorderResult::getConfigurationRecorder()const -{ - return configurationRecorder_; -} - diff --git a/config/src/model/DescribeDeliveryChannelsRequest.cc b/config/src/model/DescribeDeliveryChannelsRequest.cc deleted file mode 100644 index 2c9c7f059..000000000 --- a/config/src/model/DescribeDeliveryChannelsRequest.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::Config::Model::DescribeDeliveryChannelsRequest; - -DescribeDeliveryChannelsRequest::DescribeDeliveryChannelsRequest() - : RpcServiceRequest("config", "2019-01-08", "DescribeDeliveryChannels") { - setMethod(HttpRequest::Method::Get); -} - -DescribeDeliveryChannelsRequest::~DescribeDeliveryChannelsRequest() {} - -std::string DescribeDeliveryChannelsRequest::getDeliveryChannelIds() const { - return deliveryChannelIds_; -} - -void DescribeDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) { - deliveryChannelIds_ = deliveryChannelIds; - setParameter(std::string("DeliveryChannelIds"), deliveryChannelIds); -} - diff --git a/config/src/model/DescribeDeliveryChannelsResult.cc b/config/src/model/DescribeDeliveryChannelsResult.cc deleted file mode 100644 index 298aa8acc..000000000 --- a/config/src/model/DescribeDeliveryChannelsResult.cc +++ /dev/null @@ -1,79 +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::Config; -using namespace AlibabaCloud::Config::Model; - -DescribeDeliveryChannelsResult::DescribeDeliveryChannelsResult() : - ServiceResult() -{} - -DescribeDeliveryChannelsResult::DescribeDeliveryChannelsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDeliveryChannelsResult::~DescribeDeliveryChannelsResult() -{} - -void DescribeDeliveryChannelsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDeliveryChannelsNode = value["DeliveryChannels"]["DeliveryChannel"]; - for (auto valueDeliveryChannelsDeliveryChannel : allDeliveryChannelsNode) - { - DeliveryChannel deliveryChannelsObject; - if(!valueDeliveryChannelsDeliveryChannel["Status"].isNull()) - deliveryChannelsObject.status = std::stoi(valueDeliveryChannelsDeliveryChannel["Status"].asString()); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].isNull()) - deliveryChannelsObject.deliveryChannelName = valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].isNull()) - deliveryChannelsObject.deliveryChannelId = valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].isNull()) - deliveryChannelsObject.deliveryChannelType = valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].isNull()) - deliveryChannelsObject.deliveryChannelAssumeRoleArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["Description"].isNull()) - deliveryChannelsObject.description = valueDeliveryChannelsDeliveryChannel["Description"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull()) - deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].isNull()) - deliveryChannelsObject.deliveryChannelTargetArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].isNull()) - deliveryChannelsObject.configurationSnapshot = valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].asString() == "true"; - if(!valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].isNull()) - deliveryChannelsObject.configurationItemChangeNotification = valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].asString() == "true"; - if(!valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].isNull()) - deliveryChannelsObject.nonCompliantNotification = valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].asString() == "true"; - if(!valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].isNull()) - deliveryChannelsObject.oversizedDataOSSTargetArn = valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].asString(); - deliveryChannels_.push_back(deliveryChannelsObject); - } - -} - -std::vector DescribeDeliveryChannelsResult::getDeliveryChannels()const -{ - return deliveryChannels_; -} - diff --git a/config/src/model/DescribeDiscoveredResourceRequest.cc b/config/src/model/DescribeDiscoveredResourceRequest.cc deleted file mode 100644 index 8ba16dec2..000000000 --- a/config/src/model/DescribeDiscoveredResourceRequest.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::Config::Model::DescribeDiscoveredResourceRequest; - -DescribeDiscoveredResourceRequest::DescribeDiscoveredResourceRequest() - : RpcServiceRequest("config", "2019-01-08", "DescribeDiscoveredResource") { - setMethod(HttpRequest::Method::Get); -} - -DescribeDiscoveredResourceRequest::~DescribeDiscoveredResourceRequest() {} - -std::string DescribeDiscoveredResourceRequest::getResourceId() const { - return resourceId_; -} - -void DescribeDiscoveredResourceRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -bool DescribeDiscoveredResourceRequest::getMultiAccount() const { - return multiAccount_; -} - -void DescribeDiscoveredResourceRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -std::string DescribeDiscoveredResourceRequest::getResourceType() const { - return resourceType_; -} - -void DescribeDiscoveredResourceRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::string DescribeDiscoveredResourceRequest::getRegion() const { - return region_; -} - -void DescribeDiscoveredResourceRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - -long DescribeDiscoveredResourceRequest::getMemberId() const { - return memberId_; -} - -void DescribeDiscoveredResourceRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/DescribeDiscoveredResourceResult.cc b/config/src/model/DescribeDiscoveredResourceResult.cc deleted file mode 100644 index 57dcf7997..000000000 --- a/config/src/model/DescribeDiscoveredResourceResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -DescribeDiscoveredResourceResult::DescribeDiscoveredResourceResult() : - ServiceResult() -{} - -DescribeDiscoveredResourceResult::DescribeDiscoveredResourceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDiscoveredResourceResult::~DescribeDiscoveredResourceResult() -{} - -void DescribeDiscoveredResourceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto discoveredResourceDetailNode = value["DiscoveredResourceDetail"]; - if(!discoveredResourceDetailNode["AvailabilityZone"].isNull()) - discoveredResourceDetail_.availabilityZone = discoveredResourceDetailNode["AvailabilityZone"].asString(); - if(!discoveredResourceDetailNode["ResourceType"].isNull()) - discoveredResourceDetail_.resourceType = discoveredResourceDetailNode["ResourceType"].asString(); - if(!discoveredResourceDetailNode["Configuration"].isNull()) - discoveredResourceDetail_.configuration = discoveredResourceDetailNode["Configuration"].asString(); - if(!discoveredResourceDetailNode["Region"].isNull()) - discoveredResourceDetail_.region = discoveredResourceDetailNode["Region"].asString(); - if(!discoveredResourceDetailNode["ResourceCreationTime"].isNull()) - discoveredResourceDetail_.resourceCreationTime = std::stol(discoveredResourceDetailNode["ResourceCreationTime"].asString()); - if(!discoveredResourceDetailNode["Tags"].isNull()) - discoveredResourceDetail_.tags = discoveredResourceDetailNode["Tags"].asString(); - if(!discoveredResourceDetailNode["AccountId"].isNull()) - discoveredResourceDetail_.accountId = std::stol(discoveredResourceDetailNode["AccountId"].asString()); - if(!discoveredResourceDetailNode["ResourceId"].isNull()) - discoveredResourceDetail_.resourceId = discoveredResourceDetailNode["ResourceId"].asString(); - if(!discoveredResourceDetailNode["ResourceDeleted"].isNull()) - discoveredResourceDetail_.resourceDeleted = std::stoi(discoveredResourceDetailNode["ResourceDeleted"].asString()); - if(!discoveredResourceDetailNode["ResourceName"].isNull()) - discoveredResourceDetail_.resourceName = discoveredResourceDetailNode["ResourceName"].asString(); - if(!discoveredResourceDetailNode["ResourceStatus"].isNull()) - discoveredResourceDetail_.resourceStatus = discoveredResourceDetailNode["ResourceStatus"].asString(); - -} - -DescribeDiscoveredResourceResult::DiscoveredResourceDetail DescribeDiscoveredResourceResult::getDiscoveredResourceDetail()const -{ - return discoveredResourceDetail_; -} - diff --git a/config/src/model/DescribeEvaluationResultsRequest.cc b/config/src/model/DescribeEvaluationResultsRequest.cc deleted file mode 100644 index 7a425a83f..000000000 --- a/config/src/model/DescribeEvaluationResultsRequest.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::Config::Model::DescribeEvaluationResultsRequest; - -DescribeEvaluationResultsRequest::DescribeEvaluationResultsRequest() - : RpcServiceRequest("config", "2019-01-08", "DescribeEvaluationResults") { - setMethod(HttpRequest::Method::Get); -} - -DescribeEvaluationResultsRequest::~DescribeEvaluationResultsRequest() {} - -std::string DescribeEvaluationResultsRequest::getConfigRuleId() const { - return configRuleId_; -} - -void DescribeEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - -bool DescribeEvaluationResultsRequest::getMultiAccount() const { - return multiAccount_; -} - -void DescribeEvaluationResultsRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -int DescribeEvaluationResultsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeEvaluationResultsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int DescribeEvaluationResultsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeEvaluationResultsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeEvaluationResultsRequest::getComplianceType() const { - return complianceType_; -} - -void DescribeEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - -std::string DescribeEvaluationResultsRequest::getResourceId() const { - return resourceId_; -} - -void DescribeEvaluationResultsRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -std::string DescribeEvaluationResultsRequest::getResourceType() const { - return resourceType_; -} - -void DescribeEvaluationResultsRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -long DescribeEvaluationResultsRequest::getMemberId() const { - return memberId_; -} - -void DescribeEvaluationResultsRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc b/config/src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc new file mode 100644 index 000000000..59420fe3a --- /dev/null +++ b/config/src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::DetachAggregateConfigRuleToCompliancePackRequest; + +DetachAggregateConfigRuleToCompliancePackRequest::DetachAggregateConfigRuleToCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "DetachAggregateConfigRuleToCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +DetachAggregateConfigRuleToCompliancePackRequest::~DetachAggregateConfigRuleToCompliancePackRequest() {} + +std::string DetachAggregateConfigRuleToCompliancePackRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void DetachAggregateConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string DetachAggregateConfigRuleToCompliancePackRequest::getAggregatorId() const { + return aggregatorId_; +} + +void DetachAggregateConfigRuleToCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string DetachAggregateConfigRuleToCompliancePackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void DetachAggregateConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/DetachAggregateConfigRuleToCompliancePackResult.cc b/config/src/model/DetachAggregateConfigRuleToCompliancePackResult.cc new file mode 100644 index 000000000..d58023715 --- /dev/null +++ b/config/src/model/DetachAggregateConfigRuleToCompliancePackResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +DetachAggregateConfigRuleToCompliancePackResult::DetachAggregateConfigRuleToCompliancePackResult() : + ServiceResult() +{} + +DetachAggregateConfigRuleToCompliancePackResult::DetachAggregateConfigRuleToCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachAggregateConfigRuleToCompliancePackResult::~DetachAggregateConfigRuleToCompliancePackResult() +{} + +void DetachAggregateConfigRuleToCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto operateRuleResultNode = value["OperateRuleResult"]; + auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; + for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) + { + OperateRuleResult::OperateRuleItem operateRuleItemObject; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) + operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) + operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) + operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); + operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); + } + +} + +DetachAggregateConfigRuleToCompliancePackResult::OperateRuleResult DetachAggregateConfigRuleToCompliancePackResult::getOperateRuleResult()const +{ + return operateRuleResult_; +} + diff --git a/config/src/model/DetachConfigRuleToCompliancePackRequest.cc b/config/src/model/DetachConfigRuleToCompliancePackRequest.cc new file mode 100644 index 000000000..14c977cd2 --- /dev/null +++ b/config/src/model/DetachConfigRuleToCompliancePackRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::DetachConfigRuleToCompliancePackRequest; + +DetachConfigRuleToCompliancePackRequest::DetachConfigRuleToCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "DetachConfigRuleToCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +DetachConfigRuleToCompliancePackRequest::~DetachConfigRuleToCompliancePackRequest() {} + +std::string DetachConfigRuleToCompliancePackRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void DetachConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string DetachConfigRuleToCompliancePackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void DetachConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/DetachConfigRuleToCompliancePackResult.cc b/config/src/model/DetachConfigRuleToCompliancePackResult.cc new file mode 100644 index 000000000..bdd16cee4 --- /dev/null +++ b/config/src/model/DetachConfigRuleToCompliancePackResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +DetachConfigRuleToCompliancePackResult::DetachConfigRuleToCompliancePackResult() : + ServiceResult() +{} + +DetachConfigRuleToCompliancePackResult::DetachConfigRuleToCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachConfigRuleToCompliancePackResult::~DetachConfigRuleToCompliancePackResult() +{} + +void DetachConfigRuleToCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto operateRuleResultNode = value["OperateRuleResult"]; + auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; + for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) + { + OperateRuleResult::OperateRuleItem operateRuleItemObject; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) + operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) + operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; + if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) + operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); + operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); + } + +} + +DetachConfigRuleToCompliancePackResult::OperateRuleResult DetachConfigRuleToCompliancePackResult::getOperateRuleResult()const +{ + return operateRuleResult_; +} + diff --git a/config/src/model/GenerateAggregateCompliancePackReportRequest.cc b/config/src/model/GenerateAggregateCompliancePackReportRequest.cc new file mode 100644 index 000000000..3a148a745 --- /dev/null +++ b/config/src/model/GenerateAggregateCompliancePackReportRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GenerateAggregateCompliancePackReportRequest; + +GenerateAggregateCompliancePackReportRequest::GenerateAggregateCompliancePackReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GenerateAggregateCompliancePackReport") { + setMethod(HttpRequest::Method::Post); +} + +GenerateAggregateCompliancePackReportRequest::~GenerateAggregateCompliancePackReportRequest() {} + +std::string GenerateAggregateCompliancePackReportRequest::getClientToken() const { + return clientToken_; +} + +void GenerateAggregateCompliancePackReportRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string GenerateAggregateCompliancePackReportRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GenerateAggregateCompliancePackReportRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GenerateAggregateCompliancePackReportRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GenerateAggregateCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setBodyParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GenerateAggregateCompliancePackReportResult.cc b/config/src/model/GenerateAggregateCompliancePackReportResult.cc new file mode 100644 index 000000000..156a3ebcd --- /dev/null +++ b/config/src/model/GenerateAggregateCompliancePackReportResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GenerateAggregateCompliancePackReportResult::GenerateAggregateCompliancePackReportResult() : + ServiceResult() +{} + +GenerateAggregateCompliancePackReportResult::GenerateAggregateCompliancePackReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateAggregateCompliancePackReportResult::~GenerateAggregateCompliancePackReportResult() +{} + +void GenerateAggregateCompliancePackReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CompliancePackId"].isNull()) + compliancePackId_ = value["CompliancePackId"].asString(); + +} + +std::string GenerateAggregateCompliancePackReportResult::getCompliancePackId()const +{ + return compliancePackId_; +} + diff --git a/config/src/model/GenerateAggregateConfigRulesReportRequest.cc b/config/src/model/GenerateAggregateConfigRulesReportRequest.cc new file mode 100644 index 000000000..765eaced4 --- /dev/null +++ b/config/src/model/GenerateAggregateConfigRulesReportRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GenerateAggregateConfigRulesReportRequest; + +GenerateAggregateConfigRulesReportRequest::GenerateAggregateConfigRulesReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GenerateAggregateConfigRulesReport") { + setMethod(HttpRequest::Method::Post); +} + +GenerateAggregateConfigRulesReportRequest::~GenerateAggregateConfigRulesReportRequest() {} + +std::string GenerateAggregateConfigRulesReportRequest::getClientToken() const { + return clientToken_; +} + +void GenerateAggregateConfigRulesReportRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string GenerateAggregateConfigRulesReportRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GenerateAggregateConfigRulesReportRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/GenerateAggregateConfigRulesReportResult.cc b/config/src/model/GenerateAggregateConfigRulesReportResult.cc new file mode 100644 index 000000000..e0e30fcd7 --- /dev/null +++ b/config/src/model/GenerateAggregateConfigRulesReportResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GenerateAggregateConfigRulesReportResult::GenerateAggregateConfigRulesReportResult() : + ServiceResult() +{} + +GenerateAggregateConfigRulesReportResult::GenerateAggregateConfigRulesReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateAggregateConfigRulesReportResult::~GenerateAggregateConfigRulesReportResult() +{} + +void GenerateAggregateConfigRulesReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AggregatorId"].isNull()) + aggregatorId_ = value["AggregatorId"].asString(); + +} + +std::string GenerateAggregateConfigRulesReportResult::getAggregatorId()const +{ + return aggregatorId_; +} + diff --git a/config/src/model/GenerateCompliancePackReportRequest.cc b/config/src/model/GenerateCompliancePackReportRequest.cc new file mode 100644 index 000000000..e10c6a97a --- /dev/null +++ b/config/src/model/GenerateCompliancePackReportRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GenerateCompliancePackReportRequest; + +GenerateCompliancePackReportRequest::GenerateCompliancePackReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GenerateCompliancePackReport") { + setMethod(HttpRequest::Method::Post); +} + +GenerateCompliancePackReportRequest::~GenerateCompliancePackReportRequest() {} + +std::string GenerateCompliancePackReportRequest::getClientToken() const { + return clientToken_; +} + +void GenerateCompliancePackReportRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string GenerateCompliancePackReportRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GenerateCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setBodyParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GenerateCompliancePackReportResult.cc b/config/src/model/GenerateCompliancePackReportResult.cc new file mode 100644 index 000000000..77141a446 --- /dev/null +++ b/config/src/model/GenerateCompliancePackReportResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GenerateCompliancePackReportResult::GenerateCompliancePackReportResult() : + ServiceResult() +{} + +GenerateCompliancePackReportResult::GenerateCompliancePackReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateCompliancePackReportResult::~GenerateCompliancePackReportResult() +{} + +void GenerateCompliancePackReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CompliancePackId"].isNull()) + compliancePackId_ = value["CompliancePackId"].asString(); + +} + +std::string GenerateCompliancePackReportResult::getCompliancePackId()const +{ + return compliancePackId_; +} + diff --git a/config/src/model/DeleteConfigRulesRequest.cc b/config/src/model/GenerateConfigRulesReportRequest.cc similarity index 50% rename from config/src/model/DeleteConfigRulesRequest.cc rename to config/src/model/GenerateConfigRulesReportRequest.cc index 94dadc03b..731bf5ed8 100644 --- a/config/src/model/DeleteConfigRulesRequest.cc +++ b/config/src/model/GenerateConfigRulesReportRequest.cc @@ -14,23 +14,23 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::DeleteConfigRulesRequest; +using AlibabaCloud::Config::Model::GenerateConfigRulesReportRequest; -DeleteConfigRulesRequest::DeleteConfigRulesRequest() - : RpcServiceRequest("config", "2019-01-08", "DeleteConfigRules") { +GenerateConfigRulesReportRequest::GenerateConfigRulesReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GenerateConfigRulesReport") { setMethod(HttpRequest::Method::Post); } -DeleteConfigRulesRequest::~DeleteConfigRulesRequest() {} +GenerateConfigRulesReportRequest::~GenerateConfigRulesReportRequest() {} -std::string DeleteConfigRulesRequest::getConfigRuleIds() const { - return configRuleIds_; +std::string GenerateConfigRulesReportRequest::getClientToken() const { + return clientToken_; } -void DeleteConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); +void GenerateConfigRulesReportRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); } diff --git a/config/src/model/StartConfigRuleEvaluationResult.cc b/config/src/model/GenerateConfigRulesReportResult.cc similarity index 67% rename from config/src/model/StartConfigRuleEvaluationResult.cc rename to config/src/model/GenerateConfigRulesReportResult.cc index 0a90d063f..d308f9d20 100644 --- a/config/src/model/StartConfigRuleEvaluationResult.cc +++ b/config/src/model/GenerateConfigRulesReportResult.cc @@ -14,38 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -StartConfigRuleEvaluationResult::StartConfigRuleEvaluationResult() : +GenerateConfigRulesReportResult::GenerateConfigRulesReportResult() : ServiceResult() {} -StartConfigRuleEvaluationResult::StartConfigRuleEvaluationResult(const std::string &payload) : +GenerateConfigRulesReportResult::GenerateConfigRulesReportResult(const std::string &payload) : ServiceResult() { parse(payload); } -StartConfigRuleEvaluationResult::~StartConfigRuleEvaluationResult() +GenerateConfigRulesReportResult::~GenerateConfigRulesReportResult() {} -void StartConfigRuleEvaluationResult::parse(const std::string &payload) +void GenerateConfigRulesReportResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Result"].isNull()) - result_ = value["Result"].asString() == "true"; } -bool StartConfigRuleEvaluationResult::getResult()const -{ - return result_; -} - diff --git a/config/src/model/GetAggregateAccountComplianceByPackRequest.cc b/config/src/model/GetAggregateAccountComplianceByPackRequest.cc new file mode 100644 index 000000000..81db52ed6 --- /dev/null +++ b/config/src/model/GetAggregateAccountComplianceByPackRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateAccountComplianceByPackRequest; + +GetAggregateAccountComplianceByPackRequest::GetAggregateAccountComplianceByPackRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateAccountComplianceByPack") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateAccountComplianceByPackRequest::~GetAggregateAccountComplianceByPackRequest() {} + +std::string GetAggregateAccountComplianceByPackRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateAccountComplianceByPackRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GetAggregateAccountComplianceByPackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GetAggregateAccountComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GetAggregateAccountComplianceByPackResult.cc b/config/src/model/GetAggregateAccountComplianceByPackResult.cc new file mode 100644 index 000000000..55684b294 --- /dev/null +++ b/config/src/model/GetAggregateAccountComplianceByPackResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateAccountComplianceByPackResult::GetAggregateAccountComplianceByPackResult() : + ServiceResult() +{} + +GetAggregateAccountComplianceByPackResult::GetAggregateAccountComplianceByPackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateAccountComplianceByPackResult::~GetAggregateAccountComplianceByPackResult() +{} + +void GetAggregateAccountComplianceByPackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accountComplianceResultNode = value["AccountComplianceResult"]; + if(!accountComplianceResultNode["CompliancePackId"].isNull()) + accountComplianceResult_.compliancePackId = accountComplianceResultNode["CompliancePackId"].asString(); + if(!accountComplianceResultNode["NonCompliantCount"].isNull()) + accountComplianceResult_.nonCompliantCount = std::stoi(accountComplianceResultNode["NonCompliantCount"].asString()); + if(!accountComplianceResultNode["TotalCount"].isNull()) + accountComplianceResult_.totalCount = std::stoi(accountComplianceResultNode["TotalCount"].asString()); + auto allAccountCompliancesNode = accountComplianceResultNode["AccountCompliances"]["AccountCompliancesItem"]; + for (auto accountComplianceResultNodeAccountCompliancesAccountCompliancesItem : allAccountCompliancesNode) + { + AccountComplianceResult::AccountCompliancesItem accountCompliancesItemObject; + if(!accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["ComplianceType"].isNull()) + accountCompliancesItemObject.complianceType = accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["ComplianceType"].asString(); + if(!accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountId"].isNull()) + accountCompliancesItemObject.accountId = std::stol(accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountId"].asString()); + if(!accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountName"].isNull()) + accountCompliancesItemObject.accountName = accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountName"].asString(); + accountComplianceResult_.accountCompliances.push_back(accountCompliancesItemObject); + } + +} + +GetAggregateAccountComplianceByPackResult::AccountComplianceResult GetAggregateAccountComplianceByPackResult::getAccountComplianceResult()const +{ + return accountComplianceResult_; +} + diff --git a/config/src/model/GetAggregateCompliancePackReportRequest.cc b/config/src/model/GetAggregateCompliancePackReportRequest.cc new file mode 100644 index 000000000..2e7df2a74 --- /dev/null +++ b/config/src/model/GetAggregateCompliancePackReportRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateCompliancePackReportRequest; + +GetAggregateCompliancePackReportRequest::GetAggregateCompliancePackReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateCompliancePackReport") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateCompliancePackReportRequest::~GetAggregateCompliancePackReportRequest() {} + +std::string GetAggregateCompliancePackReportRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateCompliancePackReportRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GetAggregateCompliancePackReportRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GetAggregateCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GetAggregateCompliancePackReportResult.cc b/config/src/model/GetAggregateCompliancePackReportResult.cc new file mode 100644 index 000000000..0c954954f --- /dev/null +++ b/config/src/model/GetAggregateCompliancePackReportResult.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateCompliancePackReportResult::GetAggregateCompliancePackReportResult() : + ServiceResult() +{} + +GetAggregateCompliancePackReportResult::GetAggregateCompliancePackReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateCompliancePackReportResult::~GetAggregateCompliancePackReportResult() +{} + +void GetAggregateCompliancePackReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto compliancePackReportNode = value["CompliancePackReport"]; + if(!compliancePackReportNode["ReportUrl"].isNull()) + compliancePackReport_.reportUrl = compliancePackReportNode["ReportUrl"].asString(); + if(!compliancePackReportNode["ReportStatus"].isNull()) + compliancePackReport_.reportStatus = compliancePackReportNode["ReportStatus"].asString(); + if(!compliancePackReportNode["CompliancePackId"].isNull()) + compliancePackReport_.compliancePackId = compliancePackReportNode["CompliancePackId"].asString(); + if(!compliancePackReportNode["AccountId"].isNull()) + compliancePackReport_.accountId = std::stol(compliancePackReportNode["AccountId"].asString()); + if(!compliancePackReportNode["ReportCreateTimestamp"].isNull()) + compliancePackReport_.reportCreateTimestamp = std::stol(compliancePackReportNode["ReportCreateTimestamp"].asString()); + +} + +GetAggregateCompliancePackReportResult::CompliancePackReport GetAggregateCompliancePackReportResult::getCompliancePackReport()const +{ + return compliancePackReport_; +} + diff --git a/config/src/model/GetAggregateCompliancePackRequest.cc b/config/src/model/GetAggregateCompliancePackRequest.cc new file mode 100644 index 000000000..127b66b9d --- /dev/null +++ b/config/src/model/GetAggregateCompliancePackRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateCompliancePackRequest; + +GetAggregateCompliancePackRequest::GetAggregateCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateCompliancePack") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateCompliancePackRequest::~GetAggregateCompliancePackRequest() {} + +std::string GetAggregateCompliancePackRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GetAggregateCompliancePackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GetAggregateCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GetAggregateCompliancePackResult.cc b/config/src/model/GetAggregateCompliancePackResult.cc new file mode 100644 index 000000000..96dc58d0f --- /dev/null +++ b/config/src/model/GetAggregateCompliancePackResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateCompliancePackResult::GetAggregateCompliancePackResult() : + ServiceResult() +{} + +GetAggregateCompliancePackResult::GetAggregateCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateCompliancePackResult::~GetAggregateCompliancePackResult() +{} + +void GetAggregateCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto compliancePackNode = value["CompliancePack"]; + if(!compliancePackNode["Status"].isNull()) + compliancePack_.status = compliancePackNode["Status"].asString(); + if(!compliancePackNode["RiskLevel"].isNull()) + compliancePack_.riskLevel = std::stoi(compliancePackNode["RiskLevel"].asString()); + if(!compliancePackNode["CompliancePackId"].isNull()) + compliancePack_.compliancePackId = compliancePackNode["CompliancePackId"].asString(); + if(!compliancePackNode["Description"].isNull()) + compliancePack_.description = compliancePackNode["Description"].asString(); + if(!compliancePackNode["CompliancePackName"].isNull()) + compliancePack_.compliancePackName = compliancePackNode["CompliancePackName"].asString(); + if(!compliancePackNode["AccountId"].isNull()) + compliancePack_.accountId = std::stol(compliancePackNode["AccountId"].asString()); + if(!compliancePackNode["AggregatorId"].isNull()) + compliancePack_.aggregatorId = compliancePackNode["AggregatorId"].asString(); + if(!compliancePackNode["CompliancePackTemplateId"].isNull()) + compliancePack_.compliancePackTemplateId = compliancePackNode["CompliancePackTemplateId"].asString(); + if(!compliancePackNode["CreateTimestamp"].isNull()) + compliancePack_.createTimestamp = std::stol(compliancePackNode["CreateTimestamp"].asString()); + auto allConfigRulesNode = compliancePackNode["ConfigRules"]["ConfigRulesItem"]; + for (auto compliancePackNodeConfigRulesConfigRulesItem : allConfigRulesNode) + { + CompliancePack::ConfigRulesItem configRulesItemObject; + if(!compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].isNull()) + configRulesItemObject.managedRuleIdentifier = compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].isNull()) + configRulesItemObject.configRuleName = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].isNull()) + configRulesItemObject.configRuleId = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItem["Description"].isNull()) + configRulesItemObject.description = compliancePackNodeConfigRulesConfigRulesItem["Description"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].isNull()) + configRulesItemObject.riskLevel = std::stoi(compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].asString()); + auto allConfigRuleParametersNode = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleParameters"]["ConfigRuleParametersItem"]; + for (auto compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem : allConfigRuleParametersNode) + { + CompliancePack::ConfigRulesItem::ConfigRuleParametersItem configRuleParametersObject; + if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].isNull()) + configRuleParametersObject.required = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].asString() == "true"; + if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].isNull()) + configRuleParametersObject.parameterName = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].isNull()) + configRuleParametersObject.parameterValue = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].asString(); + configRulesItemObject.configRuleParameters.push_back(configRuleParametersObject); + } + compliancePack_.configRules.push_back(configRulesItemObject); + } + +} + +GetAggregateCompliancePackResult::CompliancePack GetAggregateCompliancePackResult::getCompliancePack()const +{ + return compliancePack_; +} + diff --git a/config/src/model/GetAggregateConfigRuleComplianceByPackRequest.cc b/config/src/model/GetAggregateConfigRuleComplianceByPackRequest.cc new file mode 100644 index 000000000..018745ee7 --- /dev/null +++ b/config/src/model/GetAggregateConfigRuleComplianceByPackRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateConfigRuleComplianceByPackRequest; + +GetAggregateConfigRuleComplianceByPackRequest::GetAggregateConfigRuleComplianceByPackRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRuleComplianceByPack") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateConfigRuleComplianceByPackRequest::~GetAggregateConfigRuleComplianceByPackRequest() {} + +std::string GetAggregateConfigRuleComplianceByPackRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateConfigRuleComplianceByPackRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GetAggregateConfigRuleComplianceByPackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GetAggregateConfigRuleComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GetAggregateConfigRuleComplianceByPackResult.cc b/config/src/model/GetAggregateConfigRuleComplianceByPackResult.cc new file mode 100644 index 000000000..d328a0f34 --- /dev/null +++ b/config/src/model/GetAggregateConfigRuleComplianceByPackResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateConfigRuleComplianceByPackResult::GetAggregateConfigRuleComplianceByPackResult() : + ServiceResult() +{} + +GetAggregateConfigRuleComplianceByPackResult::GetAggregateConfigRuleComplianceByPackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateConfigRuleComplianceByPackResult::~GetAggregateConfigRuleComplianceByPackResult() +{} + +void GetAggregateConfigRuleComplianceByPackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configRuleComplianceResultNode = value["ConfigRuleComplianceResult"]; + if(!configRuleComplianceResultNode["CompliancePackId"].isNull()) + configRuleComplianceResult_.compliancePackId = configRuleComplianceResultNode["CompliancePackId"].asString(); + if(!configRuleComplianceResultNode["NonCompliantCount"].isNull()) + configRuleComplianceResult_.nonCompliantCount = std::stoi(configRuleComplianceResultNode["NonCompliantCount"].asString()); + if(!configRuleComplianceResultNode["TotalCount"].isNull()) + configRuleComplianceResult_.totalCount = std::stoi(configRuleComplianceResultNode["TotalCount"].asString()); + auto allConfigRuleCompliancesNode = configRuleComplianceResultNode["ConfigRuleCompliances"]["ConfigRuleCompliancesItem"]; + for (auto configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem : allConfigRuleCompliancesNode) + { + ConfigRuleComplianceResult::ConfigRuleCompliancesItem configRuleCompliancesItemObject; + if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].isNull()) + configRuleCompliancesItemObject.complianceType = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].asString(); + if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].isNull()) + configRuleCompliancesItemObject.configRuleName = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].asString(); + if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].isNull()) + configRuleCompliancesItemObject.configRuleId = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].asString(); + configRuleComplianceResult_.configRuleCompliances.push_back(configRuleCompliancesItemObject); + } + +} + +GetAggregateConfigRuleComplianceByPackResult::ConfigRuleComplianceResult GetAggregateConfigRuleComplianceByPackResult::getConfigRuleComplianceResult()const +{ + return configRuleComplianceResult_; +} + diff --git a/config/src/model/GetAggregateConfigRuleRequest.cc b/config/src/model/GetAggregateConfigRuleRequest.cc new file mode 100644 index 000000000..5906c35e8 --- /dev/null +++ b/config/src/model/GetAggregateConfigRuleRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateConfigRuleRequest; + +GetAggregateConfigRuleRequest::GetAggregateConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRule") { + setMethod(HttpRequest::Method::Post); +} + +GetAggregateConfigRuleRequest::~GetAggregateConfigRuleRequest() {} + +std::string GetAggregateConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; +} + +void GetAggregateConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string GetAggregateConfigRuleRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/DescribeConfigRuleResult.cc b/config/src/model/GetAggregateConfigRuleResult.cc similarity index 76% rename from config/src/model/DescribeConfigRuleResult.cc rename to config/src/model/GetAggregateConfigRuleResult.cc index f928858e3..b8807b46e 100644 --- a/config/src/model/DescribeConfigRuleResult.cc +++ b/config/src/model/GetAggregateConfigRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DescribeConfigRuleResult::DescribeConfigRuleResult() : +GetAggregateConfigRuleResult::GetAggregateConfigRuleResult() : ServiceResult() {} -DescribeConfigRuleResult::DescribeConfigRuleResult(const std::string &payload) : +GetAggregateConfigRuleResult::GetAggregateConfigRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeConfigRuleResult::~DescribeConfigRuleResult() +GetAggregateConfigRuleResult::~GetAggregateConfigRuleResult() {} -void DescribeConfigRuleResult::parse(const std::string &payload) +void GetAggregateConfigRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,8 +48,6 @@ void DescribeConfigRuleResult::parse(const std::string &payload) configRule_.configRuleState = configRuleNode["ConfigRuleState"].asString(); if(!configRuleNode["MaximumExecutionFrequency"].isNull()) configRule_.maximumExecutionFrequency = configRuleNode["MaximumExecutionFrequency"].asString(); - if(!configRuleNode["OrganizationRule"].isNull()) - configRule_.organizationRule = configRuleNode["OrganizationRule"].asString() == "true"; if(!configRuleNode["ConfigRuleArn"].isNull()) configRule_.configRuleArn = configRuleNode["ConfigRuleArn"].asString(); if(!configRuleNode["Description"].isNull()) @@ -62,6 +60,20 @@ void DescribeConfigRuleResult::parse(const std::string &payload) configRule_.modifiedTimestamp = std::stol(configRuleNode["ModifiedTimestamp"].asString()); if(!configRuleNode["CreateTimestamp"].isNull()) configRule_.createTimestamp = std::stol(configRuleNode["CreateTimestamp"].asString()); + if(!configRuleNode["ResourceTypesScope"].isNull()) + configRule_.resourceTypesScope = configRuleNode["ResourceTypesScope"].asString(); + if(!configRuleNode["RegionIdsScope"].isNull()) + configRule_.regionIdsScope = configRuleNode["RegionIdsScope"].asString(); + if(!configRuleNode["ExcludeResourceIdsScope"].isNull()) + configRule_.excludeResourceIdsScope = configRuleNode["ExcludeResourceIdsScope"].asString(); + if(!configRuleNode["ResourceGroupIdsScope"].isNull()) + configRule_.resourceGroupIdsScope = configRuleNode["ResourceGroupIdsScope"].asString(); + if(!configRuleNode["TagKeyScope"].isNull()) + configRule_.tagKeyScope = configRuleNode["TagKeyScope"].asString(); + if(!configRuleNode["TagValueScope"].isNull()) + configRule_.tagValueScope = configRuleNode["TagValueScope"].asString(); + if(!configRuleNode["ConfigRuleTriggerTypes"].isNull()) + configRule_.configRuleTriggerTypes = configRuleNode["ConfigRuleTriggerTypes"].asString(); auto sourceNode = configRuleNode["Source"]; if(!sourceNode["Owner"].isNull()) configRule_.source.owner = sourceNode["Owner"].asString(); @@ -79,24 +91,9 @@ void DescribeConfigRuleResult::parse(const std::string &payload) sourceDetailsItemObject.maximumExecutionFrequency = sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString(); configRule_.source.sourceDetails.push_back(sourceDetailsItemObject); } - auto allSourceConditionsNode = sourceNode["SourceConditions"]["SourceConditionsItem"]; - for (auto sourceNodeSourceConditionsSourceConditionsItem : allSourceConditionsNode) - { - ConfigRule::Source::SourceConditionsItem sourceConditionsItemObject; - if(!sourceNodeSourceConditionsSourceConditionsItem["DesiredValue"].isNull()) - sourceConditionsItemObject.desiredValue = sourceNodeSourceConditionsSourceConditionsItem["DesiredValue"].asString(); - if(!sourceNodeSourceConditionsSourceConditionsItem["Required"].isNull()) - sourceConditionsItemObject.required = sourceNodeSourceConditionsSourceConditionsItem["Required"].asString() == "true"; - if(!sourceNodeSourceConditionsSourceConditionsItem["Tips"].isNull()) - sourceConditionsItemObject.tips = sourceNodeSourceConditionsSourceConditionsItem["Tips"].asString(); - if(!sourceNodeSourceConditionsSourceConditionsItem["Operator"].isNull()) - sourceConditionsItemObject._operator = sourceNodeSourceConditionsSourceConditionsItem["Operator"].asString(); - if(!sourceNodeSourceConditionsSourceConditionsItem["Name"].isNull()) - sourceConditionsItemObject.name = sourceNodeSourceConditionsSourceConditionsItem["Name"].asString(); - if(!sourceNodeSourceConditionsSourceConditionsItem["SelectPath"].isNull()) - sourceConditionsItemObject.selectPath = sourceNodeSourceConditionsSourceConditionsItem["SelectPath"].asString(); - configRule_.source.sourceConditions.push_back(sourceConditionsItemObject); - } + auto allSourceConditions = sourceNode["SourceConditions"]["SourceConditions"]; + for (auto value : allSourceConditions) + configRule_.source.sourceConditions.push_back(value.asString()); auto managedRuleNode = configRuleNode["ManagedRule"]; if(!managedRuleNode["HelpUrl"].isNull()) configRule_.managedRule.helpUrl = managedRuleNode["HelpUrl"].asString(); @@ -126,22 +123,20 @@ void DescribeConfigRuleResult::parse(const std::string &payload) for (auto value : allLabels) configRule_.managedRule.labels.push_back(value.asString()); auto createByNode = configRuleNode["CreateBy"]; - if(!createByNode["ConfigRuleSceneId"].isNull()) - configRule_.createBy.configRuleSceneId = createByNode["ConfigRuleSceneId"].asString(); + if(!createByNode["CompliancePackId"].isNull()) + configRule_.createBy.compliancePackId = createByNode["CompliancePackId"].asString(); + if(!createByNode["AggregatorName"].isNull()) + configRule_.createBy.aggregatorName = createByNode["AggregatorName"].asString(); + if(!createByNode["CompliancePackName"].isNull()) + configRule_.createBy.compliancePackName = createByNode["CompliancePackName"].asString(); if(!createByNode["CreatorName"].isNull()) configRule_.createBy.creatorName = createByNode["CreatorName"].asString(); if(!createByNode["CreatorType"].isNull()) configRule_.createBy.creatorType = createByNode["CreatorType"].asString(); if(!createByNode["CreatorId"].isNull()) configRule_.createBy.creatorId = createByNode["CreatorId"].asString(); - if(!createByNode["ConfigRuleSceneName"].isNull()) - configRule_.createBy.configRuleSceneName = createByNode["ConfigRuleSceneName"].asString(); - auto scopeNode = configRuleNode["Scope"]; - if(!scopeNode["ComplianceResourceId"].isNull()) - configRule_.scope.complianceResourceId = scopeNode["ComplianceResourceId"].asString(); - auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"]; - for (auto value : allComplianceResourceTypes) - configRule_.scope.complianceResourceTypes.push_back(value.asString()); + if(!createByNode["AggregatorId"].isNull()) + configRule_.createBy.aggregatorId = createByNode["AggregatorId"].asString(); auto configRuleEvaluationStatusNode = configRuleNode["ConfigRuleEvaluationStatus"]; if(!configRuleEvaluationStatusNode["LastErrorCode"].isNull()) configRule_.configRuleEvaluationStatus.lastErrorCode = configRuleEvaluationStatusNode["LastErrorCode"].asString(); @@ -159,10 +154,14 @@ void DescribeConfigRuleResult::parse(const std::string &payload) configRule_.configRuleEvaluationStatus.lastFailedEvaluationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedEvaluationTimestamp"].asString()); if(!configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].isNull()) configRule_.configRuleEvaluationStatus.lastFailedInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].asString()); + auto scopeNode = configRuleNode["Scope"]; + auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"]; + for (auto value : allComplianceResourceTypes) + configRule_.scope.complianceResourceTypes.push_back(value.asString()); } -DescribeConfigRuleResult::ConfigRule DescribeConfigRuleResult::getConfigRule()const +GetAggregateConfigRuleResult::ConfigRule GetAggregateConfigRuleResult::getConfigRule()const { return configRule_; } diff --git a/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.cc b/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.cc new file mode 100644 index 000000000..a85afa34f --- /dev/null +++ b/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateConfigRuleSummaryByRiskLevelRequest; + +GetAggregateConfigRuleSummaryByRiskLevelRequest::GetAggregateConfigRuleSummaryByRiskLevelRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRuleSummaryByRiskLevel") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateConfigRuleSummaryByRiskLevelRequest::~GetAggregateConfigRuleSummaryByRiskLevelRequest() {} + +std::string GetAggregateConfigRuleSummaryByRiskLevelRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateConfigRuleSummaryByRiskLevelRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc b/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc new file mode 100644 index 000000000..911b86c6e --- /dev/null +++ b/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateConfigRuleSummaryByRiskLevelResult::GetAggregateConfigRuleSummaryByRiskLevelResult() : + ServiceResult() +{} + +GetAggregateConfigRuleSummaryByRiskLevelResult::GetAggregateConfigRuleSummaryByRiskLevelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateConfigRuleSummaryByRiskLevelResult::~GetAggregateConfigRuleSummaryByRiskLevelResult() +{} + +void GetAggregateConfigRuleSummaryByRiskLevelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allConfigRuleSummariesNode = value["ConfigRuleSummaries"]["Data"]; + for (auto valueConfigRuleSummariesData : allConfigRuleSummariesNode) + { + Data configRuleSummariesObject; + if(!valueConfigRuleSummariesData["RiskLevel"].isNull()) + configRuleSummariesObject.riskLevel = std::stoi(valueConfigRuleSummariesData["RiskLevel"].asString()); + if(!valueConfigRuleSummariesData["CompliantCount"].isNull()) + configRuleSummariesObject.compliantCount = std::stoi(valueConfigRuleSummariesData["CompliantCount"].asString()); + if(!valueConfigRuleSummariesData["NonCompliantCount"].isNull()) + configRuleSummariesObject.nonCompliantCount = std::stoi(valueConfigRuleSummariesData["NonCompliantCount"].asString()); + configRuleSummaries_.push_back(configRuleSummariesObject); + } + +} + +std::vector GetAggregateConfigRuleSummaryByRiskLevelResult::getConfigRuleSummaries()const +{ + return configRuleSummaries_; +} + diff --git a/config/src/model/GetAggregateConfigRulesReportRequest.cc b/config/src/model/GetAggregateConfigRulesReportRequest.cc new file mode 100644 index 000000000..9bd53c9be --- /dev/null +++ b/config/src/model/GetAggregateConfigRulesReportRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateConfigRulesReportRequest; + +GetAggregateConfigRulesReportRequest::GetAggregateConfigRulesReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRulesReport") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateConfigRulesReportRequest::~GetAggregateConfigRulesReportRequest() {} + +std::string GetAggregateConfigRulesReportRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateConfigRulesReportRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/GetAggregateConfigRulesReportResult.cc b/config/src/model/GetAggregateConfigRulesReportResult.cc new file mode 100644 index 000000000..cc920cc16 --- /dev/null +++ b/config/src/model/GetAggregateConfigRulesReportResult.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateConfigRulesReportResult::GetAggregateConfigRulesReportResult() : + ServiceResult() +{} + +GetAggregateConfigRulesReportResult::GetAggregateConfigRulesReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateConfigRulesReportResult::~GetAggregateConfigRulesReportResult() +{} + +void GetAggregateConfigRulesReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configRulesReportNode = value["ConfigRulesReport"]; + if(!configRulesReportNode["ReportUrl"].isNull()) + configRulesReport_.reportUrl = configRulesReportNode["ReportUrl"].asString(); + if(!configRulesReportNode["ReportStatus"].isNull()) + configRulesReport_.reportStatus = configRulesReportNode["ReportStatus"].asString(); + if(!configRulesReportNode["AccountId"].isNull()) + configRulesReport_.accountId = std::stol(configRulesReportNode["AccountId"].asString()); + if(!configRulesReportNode["AggregatorId"].isNull()) + configRulesReport_.aggregatorId = configRulesReportNode["AggregatorId"].asString(); + if(!configRulesReportNode["ReportCreateTimestamp"].isNull()) + configRulesReport_.reportCreateTimestamp = std::stol(configRulesReportNode["ReportCreateTimestamp"].asString()); + +} + +GetAggregateConfigRulesReportResult::ConfigRulesReport GetAggregateConfigRulesReportResult::getConfigRulesReport()const +{ + return configRulesReport_; +} + diff --git a/config/src/model/GetAggregateDiscoveredResourceRequest.cc b/config/src/model/GetAggregateDiscoveredResourceRequest.cc deleted file mode 100644 index 7087638b5..000000000 --- a/config/src/model/GetAggregateDiscoveredResourceRequest.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::Config::Model::GetAggregateDiscoveredResourceRequest; - -GetAggregateDiscoveredResourceRequest::GetAggregateDiscoveredResourceRequest() - : RpcServiceRequest("config", "2019-01-08", "GetAggregateDiscoveredResource") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateDiscoveredResourceRequest::~GetAggregateDiscoveredResourceRequest() {} - -std::string GetAggregateDiscoveredResourceRequest::getResourceId() const { - return resourceId_; -} - -void GetAggregateDiscoveredResourceRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -long GetAggregateDiscoveredResourceRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void GetAggregateDiscoveredResourceRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string GetAggregateDiscoveredResourceRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateDiscoveredResourceRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateDiscoveredResourceRequest::getResourceType() const { - return resourceType_; -} - -void GetAggregateDiscoveredResourceRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::string GetAggregateDiscoveredResourceRequest::getRegion() const { - return region_; -} - -void GetAggregateDiscoveredResourceRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - diff --git a/config/src/model/GetAggregateDiscoveredResourceResult.cc b/config/src/model/GetAggregateDiscoveredResourceResult.cc deleted file mode 100644 index 905034b28..000000000 --- a/config/src/model/GetAggregateDiscoveredResourceResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateDiscoveredResourceResult::GetAggregateDiscoveredResourceResult() : - ServiceResult() -{} - -GetAggregateDiscoveredResourceResult::GetAggregateDiscoveredResourceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateDiscoveredResourceResult::~GetAggregateDiscoveredResourceResult() -{} - -void GetAggregateDiscoveredResourceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto discoveredResourceDetailNode = value["DiscoveredResourceDetail"]; - if(!discoveredResourceDetailNode["AvailabilityZone"].isNull()) - discoveredResourceDetail_.availabilityZone = discoveredResourceDetailNode["AvailabilityZone"].asString(); - if(!discoveredResourceDetailNode["ResourceType"].isNull()) - discoveredResourceDetail_.resourceType = discoveredResourceDetailNode["ResourceType"].asString(); - if(!discoveredResourceDetailNode["Configuration"].isNull()) - discoveredResourceDetail_.configuration = discoveredResourceDetailNode["Configuration"].asString(); - if(!discoveredResourceDetailNode["Region"].isNull()) - discoveredResourceDetail_.region = discoveredResourceDetailNode["Region"].asString(); - if(!discoveredResourceDetailNode["ResourceCreationTime"].isNull()) - discoveredResourceDetail_.resourceCreationTime = std::stol(discoveredResourceDetailNode["ResourceCreationTime"].asString()); - if(!discoveredResourceDetailNode["Tags"].isNull()) - discoveredResourceDetail_.tags = discoveredResourceDetailNode["Tags"].asString(); - if(!discoveredResourceDetailNode["AccountId"].isNull()) - discoveredResourceDetail_.accountId = std::stol(discoveredResourceDetailNode["AccountId"].asString()); - if(!discoveredResourceDetailNode["ResourceId"].isNull()) - discoveredResourceDetail_.resourceId = discoveredResourceDetailNode["ResourceId"].asString(); - if(!discoveredResourceDetailNode["ResourceDeleted"].isNull()) - discoveredResourceDetail_.resourceDeleted = std::stoi(discoveredResourceDetailNode["ResourceDeleted"].asString()); - if(!discoveredResourceDetailNode["ResourceName"].isNull()) - discoveredResourceDetail_.resourceName = discoveredResourceDetailNode["ResourceName"].asString(); - if(!discoveredResourceDetailNode["ResourceStatus"].isNull()) - discoveredResourceDetail_.resourceStatus = discoveredResourceDetailNode["ResourceStatus"].asString(); - -} - -GetAggregateDiscoveredResourceResult::DiscoveredResourceDetail GetAggregateDiscoveredResourceResult::getDiscoveredResourceDetail()const -{ - return discoveredResourceDetail_; -} - diff --git a/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc b/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc new file mode 100644 index 000000000..5dd26d67d --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateResourceComplianceByConfigRuleRequest; + +GetAggregateResourceComplianceByConfigRuleRequest::GetAggregateResourceComplianceByConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceByConfigRule") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateResourceComplianceByConfigRuleRequest::~GetAggregateResourceComplianceByConfigRuleRequest() {} + +std::string GetAggregateResourceComplianceByConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; +} + +void GetAggregateResourceComplianceByConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string GetAggregateResourceComplianceByConfigRuleRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceComplianceByConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GetAggregateResourceComplianceByConfigRuleRequest::getComplianceType() const { + return complianceType_; +} + +void GetAggregateResourceComplianceByConfigRuleRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + diff --git a/config/src/model/GetAggregateResourceComplianceByConfigRuleResult.cc b/config/src/model/GetAggregateResourceComplianceByConfigRuleResult.cc new file mode 100644 index 000000000..86bf0c0af --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceByConfigRuleResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateResourceComplianceByConfigRuleResult::GetAggregateResourceComplianceByConfigRuleResult() : + ServiceResult() +{} + +GetAggregateResourceComplianceByConfigRuleResult::GetAggregateResourceComplianceByConfigRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateResourceComplianceByConfigRuleResult::~GetAggregateResourceComplianceByConfigRuleResult() +{} + +void GetAggregateResourceComplianceByConfigRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto complianceResultNode = value["ComplianceResult"]; + if(!complianceResultNode["TotalCount"].isNull()) + complianceResult_.totalCount = std::stol(complianceResultNode["TotalCount"].asString()); + auto allCompliancesNode = complianceResultNode["Compliances"]["CompliancesItem"]; + for (auto complianceResultNodeCompliancesCompliancesItem : allCompliancesNode) + { + ComplianceResult::CompliancesItem compliancesItemObject; + if(!complianceResultNodeCompliancesCompliancesItem["ComplianceType"].isNull()) + compliancesItemObject.complianceType = complianceResultNodeCompliancesCompliancesItem["ComplianceType"].asString(); + if(!complianceResultNodeCompliancesCompliancesItem["Count"].isNull()) + compliancesItemObject.count = std::stoi(complianceResultNodeCompliancesCompliancesItem["Count"].asString()); + complianceResult_.compliances.push_back(compliancesItemObject); + } + +} + +GetAggregateResourceComplianceByConfigRuleResult::ComplianceResult GetAggregateResourceComplianceByConfigRuleResult::getComplianceResult()const +{ + return complianceResult_; +} + diff --git a/config/src/model/GetAggregateResourceComplianceByPackRequest.cc b/config/src/model/GetAggregateResourceComplianceByPackRequest.cc new file mode 100644 index 000000000..6c4c8a999 --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceByPackRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateResourceComplianceByPackRequest; + +GetAggregateResourceComplianceByPackRequest::GetAggregateResourceComplianceByPackRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceByPack") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateResourceComplianceByPackRequest::~GetAggregateResourceComplianceByPackRequest() {} + +std::string GetAggregateResourceComplianceByPackRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceComplianceByPackRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GetAggregateResourceComplianceByPackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GetAggregateResourceComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GetAggregateResourceComplianceByPackResult.cc b/config/src/model/GetAggregateResourceComplianceByPackResult.cc new file mode 100644 index 000000000..7a780e82d --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceByPackResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateResourceComplianceByPackResult::GetAggregateResourceComplianceByPackResult() : + ServiceResult() +{} + +GetAggregateResourceComplianceByPackResult::GetAggregateResourceComplianceByPackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateResourceComplianceByPackResult::~GetAggregateResourceComplianceByPackResult() +{} + +void GetAggregateResourceComplianceByPackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceComplianceResultNode = value["ResourceComplianceResult"]; + if(!resourceComplianceResultNode["CompliancePackId"].isNull()) + resourceComplianceResult_.compliancePackId = resourceComplianceResultNode["CompliancePackId"].asString(); + if(!resourceComplianceResultNode["NonCompliantCount"].isNull()) + resourceComplianceResult_.nonCompliantCount = std::stoi(resourceComplianceResultNode["NonCompliantCount"].asString()); + if(!resourceComplianceResultNode["TotalCount"].isNull()) + resourceComplianceResult_.totalCount = std::stoi(resourceComplianceResultNode["TotalCount"].asString()); + +} + +GetAggregateResourceComplianceByPackResult::ResourceComplianceResult GetAggregateResourceComplianceByPackResult::getResourceComplianceResult()const +{ + return resourceComplianceResult_; +} + diff --git a/config/src/model/GetAggregateResourceComplianceTimelineRequest.cc b/config/src/model/GetAggregateResourceComplianceTimelineRequest.cc new file mode 100644 index 000000000..58550fb02 --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceTimelineRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateResourceComplianceTimelineRequest; + +GetAggregateResourceComplianceTimelineRequest::GetAggregateResourceComplianceTimelineRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceTimeline") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateResourceComplianceTimelineRequest::~GetAggregateResourceComplianceTimelineRequest() {} + +long GetAggregateResourceComplianceTimelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetAggregateResourceComplianceTimelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetAggregateResourceComplianceTimelineRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceComplianceTimelineRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +long GetAggregateResourceComplianceTimelineRequest::getStartTime() const { + return startTime_; +} + +void GetAggregateResourceComplianceTimelineRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string GetAggregateResourceComplianceTimelineRequest::getNextToken() const { + return nextToken_; +} + +void GetAggregateResourceComplianceTimelineRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string GetAggregateResourceComplianceTimelineRequest::getResourceId() const { + return resourceId_; +} + +void GetAggregateResourceComplianceTimelineRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +long GetAggregateResourceComplianceTimelineRequest::getEndTime() const { + return endTime_; +} + +void GetAggregateResourceComplianceTimelineRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string GetAggregateResourceComplianceTimelineRequest::getResourceType() const { + return resourceType_; +} + +void GetAggregateResourceComplianceTimelineRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int GetAggregateResourceComplianceTimelineRequest::getMaxResults() const { + return maxResults_; +} + +void GetAggregateResourceComplianceTimelineRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string GetAggregateResourceComplianceTimelineRequest::getRegion() const { + return region_; +} + +void GetAggregateResourceComplianceTimelineRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/config/src/model/GetAggregateResourceComplianceTimelineResult.cc b/config/src/model/GetAggregateResourceComplianceTimelineResult.cc new file mode 100644 index 000000000..0bf3a1e60 --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceTimelineResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateResourceComplianceTimelineResult::GetAggregateResourceComplianceTimelineResult() : + ServiceResult() +{} + +GetAggregateResourceComplianceTimelineResult::GetAggregateResourceComplianceTimelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateResourceComplianceTimelineResult::~GetAggregateResourceComplianceTimelineResult() +{} + +void GetAggregateResourceComplianceTimelineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceComplianceTimelineNode = value["ResourceComplianceTimeline"]; + if(!resourceComplianceTimelineNode["NextToken"].isNull()) + resourceComplianceTimeline_.nextToken = resourceComplianceTimelineNode["NextToken"].asString(); + if(!resourceComplianceTimelineNode["MaxResults"].isNull()) + resourceComplianceTimeline_.maxResults = std::stoi(resourceComplianceTimelineNode["MaxResults"].asString()); + auto allComplianceListNode = resourceComplianceTimelineNode["ComplianceList"]["ComplianceListItem"]; + for (auto resourceComplianceTimelineNodeComplianceListComplianceListItem : allComplianceListNode) + { + ResourceComplianceTimeline::ComplianceListItem complianceListItemObject; + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Tags"].isNull()) + complianceListItemObject.tags = resourceComplianceTimelineNodeComplianceListComplianceListItem["Tags"].asString(); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["AccountId"].isNull()) + complianceListItemObject.accountId = resourceComplianceTimelineNodeComplianceListComplianceListItem["AccountId"].asString(); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["AvailabilityZone"].isNull()) + complianceListItemObject.availabilityZone = resourceComplianceTimelineNodeComplianceListComplianceListItem["AvailabilityZone"].asString(); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceType"].isNull()) + complianceListItemObject.resourceType = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceType"].asString(); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceCreateTime"].isNull()) + complianceListItemObject.resourceCreateTime = std::stol(resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceCreateTime"].asString()); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Region"].isNull()) + complianceListItemObject.region = resourceComplianceTimelineNodeComplianceListComplianceListItem["Region"].asString(); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Configuration"].isNull()) + complianceListItemObject.configuration = resourceComplianceTimelineNodeComplianceListComplianceListItem["Configuration"].asString(); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["CaptureTime"].isNull()) + complianceListItemObject.captureTime = std::stol(resourceComplianceTimelineNodeComplianceListComplianceListItem["CaptureTime"].asString()); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ConfigurationDiff"].isNull()) + complianceListItemObject.configurationDiff = resourceComplianceTimelineNodeComplianceListComplianceListItem["ConfigurationDiff"].asString(); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceId"].isNull()) + complianceListItemObject.resourceId = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceId"].asString(); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceName"].isNull()) + complianceListItemObject.resourceName = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceName"].asString(); + if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceStatus"].isNull()) + complianceListItemObject.resourceStatus = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceStatus"].asString(); + resourceComplianceTimeline_.complianceList.push_back(complianceListItemObject); + } + +} + +GetAggregateResourceComplianceTimelineResult::ResourceComplianceTimeline GetAggregateResourceComplianceTimelineResult::getResourceComplianceTimeline()const +{ + return resourceComplianceTimeline_; +} + diff --git a/config/src/model/GetAggregateResourceConfigurationTimelineRequest.cc b/config/src/model/GetAggregateResourceConfigurationTimelineRequest.cc new file mode 100644 index 000000000..6ebdd7ec7 --- /dev/null +++ b/config/src/model/GetAggregateResourceConfigurationTimelineRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateResourceConfigurationTimelineRequest; + +GetAggregateResourceConfigurationTimelineRequest::GetAggregateResourceConfigurationTimelineRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceConfigurationTimeline") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateResourceConfigurationTimelineRequest::~GetAggregateResourceConfigurationTimelineRequest() {} + +long GetAggregateResourceConfigurationTimelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetAggregateResourceConfigurationTimelineRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +long GetAggregateResourceConfigurationTimelineRequest::getStartTime() const { + return startTime_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string GetAggregateResourceConfigurationTimelineRequest::getNextToken() const { + return nextToken_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string GetAggregateResourceConfigurationTimelineRequest::getResourceId() const { + return resourceId_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +long GetAggregateResourceConfigurationTimelineRequest::getEndTime() const { + return endTime_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string GetAggregateResourceConfigurationTimelineRequest::getResourceType() const { + return resourceType_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int GetAggregateResourceConfigurationTimelineRequest::getMaxResults() const { + return maxResults_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string GetAggregateResourceConfigurationTimelineRequest::getRegion() const { + return region_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/config/src/model/GetAggregateResourceConfigurationTimelineResult.cc b/config/src/model/GetAggregateResourceConfigurationTimelineResult.cc new file mode 100644 index 000000000..7a8459807 --- /dev/null +++ b/config/src/model/GetAggregateResourceConfigurationTimelineResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateResourceConfigurationTimelineResult::GetAggregateResourceConfigurationTimelineResult() : + ServiceResult() +{} + +GetAggregateResourceConfigurationTimelineResult::GetAggregateResourceConfigurationTimelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateResourceConfigurationTimelineResult::~GetAggregateResourceConfigurationTimelineResult() +{} + +void GetAggregateResourceConfigurationTimelineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceConfigurationTimelineNode = value["ResourceConfigurationTimeline"]; + if(!resourceConfigurationTimelineNode["NextToken"].isNull()) + resourceConfigurationTimeline_.nextToken = resourceConfigurationTimelineNode["NextToken"].asString(); + if(!resourceConfigurationTimelineNode["MaxResults"].isNull()) + resourceConfigurationTimeline_.maxResults = std::stoi(resourceConfigurationTimelineNode["MaxResults"].asString()); + auto allConfigurationListNode = resourceConfigurationTimelineNode["ConfigurationList"]["ConfigurationListItem"]; + for (auto resourceConfigurationTimelineNodeConfigurationListConfigurationListItem : allConfigurationListNode) + { + ResourceConfigurationTimeline::ConfigurationListItem configurationListItemObject; + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].isNull()) + configurationListItemObject.relationship = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].isNull()) + configurationListItemObject.tags = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].isNull()) + configurationListItemObject.accountId = std::stol(resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].asString()); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].isNull()) + configurationListItemObject.resourceEventType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].isNull()) + configurationListItemObject.relationshipDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].isNull()) + configurationListItemObject.availabilityZone = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].isNull()) + configurationListItemObject.resourceType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceCreateTime"].isNull()) + configurationListItemObject.resourceCreateTime = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceCreateTime"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Region"].isNull()) + configurationListItemObject.region = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Region"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["CaptureTime"].isNull()) + configurationListItemObject.captureTime = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["CaptureTime"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ConfigurationDiff"].isNull()) + configurationListItemObject.configurationDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ConfigurationDiff"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceId"].isNull()) + configurationListItemObject.resourceId = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceId"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].isNull()) + configurationListItemObject.resourceName = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].asString(); + resourceConfigurationTimeline_.configurationList.push_back(configurationListItemObject); + } + +} + +GetAggregateResourceConfigurationTimelineResult::ResourceConfigurationTimeline GetAggregateResourceConfigurationTimelineResult::getResourceConfigurationTimeline()const +{ + return resourceConfigurationTimeline_; +} + diff --git a/config/src/model/GetAggregateResourceCountsGroupByRegionRequest.cc b/config/src/model/GetAggregateResourceCountsGroupByRegionRequest.cc new file mode 100644 index 000000000..f6b051125 --- /dev/null +++ b/config/src/model/GetAggregateResourceCountsGroupByRegionRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateResourceCountsGroupByRegionRequest; + +GetAggregateResourceCountsGroupByRegionRequest::GetAggregateResourceCountsGroupByRegionRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceCountsGroupByRegion") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateResourceCountsGroupByRegionRequest::~GetAggregateResourceCountsGroupByRegionRequest() {} + +long GetAggregateResourceCountsGroupByRegionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetAggregateResourceCountsGroupByRegionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetAggregateResourceCountsGroupByRegionRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceCountsGroupByRegionRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GetAggregateResourceCountsGroupByRegionRequest::getResourceType() const { + return resourceType_; +} + +void GetAggregateResourceCountsGroupByRegionRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string GetAggregateResourceCountsGroupByRegionRequest::getFolderId() const { + return folderId_; +} + +void GetAggregateResourceCountsGroupByRegionRequest::setFolderId(const std::string &folderId) { + folderId_ = folderId; + setParameter(std::string("FolderId"), folderId); +} + diff --git a/config/src/model/GetAggregateResourceCountsGroupByRegionResult.cc b/config/src/model/GetAggregateResourceCountsGroupByRegionResult.cc new file mode 100644 index 000000000..76662f959 --- /dev/null +++ b/config/src/model/GetAggregateResourceCountsGroupByRegionResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateResourceCountsGroupByRegionResult::GetAggregateResourceCountsGroupByRegionResult() : + ServiceResult() +{} + +GetAggregateResourceCountsGroupByRegionResult::GetAggregateResourceCountsGroupByRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateResourceCountsGroupByRegionResult::~GetAggregateResourceCountsGroupByRegionResult() +{} + +void GetAggregateResourceCountsGroupByRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDiscoveredResourceCountsSummaryNode = value["DiscoveredResourceCountsSummary"]["GroupedResourceCount"]; + for (auto valueDiscoveredResourceCountsSummaryGroupedResourceCount : allDiscoveredResourceCountsSummaryNode) + { + GroupedResourceCount discoveredResourceCountsSummaryObject; + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].isNull()) + discoveredResourceCountsSummaryObject.resourceCount = std::stol(valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].asString()); + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].isNull()) + discoveredResourceCountsSummaryObject.groupName = valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].asString(); + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["Region"].isNull()) + discoveredResourceCountsSummaryObject.region = valueDiscoveredResourceCountsSummaryGroupedResourceCount["Region"].asString(); + discoveredResourceCountsSummary_.push_back(discoveredResourceCountsSummaryObject); + } + +} + +std::vector GetAggregateResourceCountsGroupByRegionResult::getDiscoveredResourceCountsSummary()const +{ + return discoveredResourceCountsSummary_; +} + diff --git a/config/src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.cc b/config/src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.cc new file mode 100644 index 000000000..ddfc1cb12 --- /dev/null +++ b/config/src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregateResourceCountsGroupByResourceTypeRequest; + +GetAggregateResourceCountsGroupByResourceTypeRequest::GetAggregateResourceCountsGroupByResourceTypeRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceCountsGroupByResourceType") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregateResourceCountsGroupByResourceTypeRequest::~GetAggregateResourceCountsGroupByResourceTypeRequest() {} + +long GetAggregateResourceCountsGroupByResourceTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetAggregateResourceCountsGroupByResourceTypeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetAggregateResourceCountsGroupByResourceTypeRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceCountsGroupByResourceTypeRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GetAggregateResourceCountsGroupByResourceTypeRequest::getFolderId() const { + return folderId_; +} + +void GetAggregateResourceCountsGroupByResourceTypeRequest::setFolderId(const std::string &folderId) { + folderId_ = folderId; + setParameter(std::string("FolderId"), folderId); +} + +std::string GetAggregateResourceCountsGroupByResourceTypeRequest::getRegion() const { + return region_; +} + +void GetAggregateResourceCountsGroupByResourceTypeRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/config/src/model/GetAggregateResourceCountsGroupByResourceTypeResult.cc b/config/src/model/GetAggregateResourceCountsGroupByResourceTypeResult.cc new file mode 100644 index 000000000..0b169ef28 --- /dev/null +++ b/config/src/model/GetAggregateResourceCountsGroupByResourceTypeResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateResourceCountsGroupByResourceTypeResult::GetAggregateResourceCountsGroupByResourceTypeResult() : + ServiceResult() +{} + +GetAggregateResourceCountsGroupByResourceTypeResult::GetAggregateResourceCountsGroupByResourceTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateResourceCountsGroupByResourceTypeResult::~GetAggregateResourceCountsGroupByResourceTypeResult() +{} + +void GetAggregateResourceCountsGroupByResourceTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDiscoveredResourceCountsSummaryNode = value["DiscoveredResourceCountsSummary"]["GroupedResourceCount"]; + for (auto valueDiscoveredResourceCountsSummaryGroupedResourceCount : allDiscoveredResourceCountsSummaryNode) + { + GroupedResourceCount discoveredResourceCountsSummaryObject; + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].isNull()) + discoveredResourceCountsSummaryObject.resourceCount = std::stol(valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].asString()); + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].isNull()) + discoveredResourceCountsSummaryObject.groupName = valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].asString(); + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceType"].isNull()) + discoveredResourceCountsSummaryObject.resourceType = valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceType"].asString(); + discoveredResourceCountsSummary_.push_back(discoveredResourceCountsSummaryObject); + } + +} + +std::vector GetAggregateResourceCountsGroupByResourceTypeResult::getDiscoveredResourceCountsSummary()const +{ + return discoveredResourceCountsSummary_; +} + diff --git a/config/src/model/GetAggregatorRequest.cc b/config/src/model/GetAggregatorRequest.cc new file mode 100644 index 000000000..38a07148d --- /dev/null +++ b/config/src/model/GetAggregatorRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetAggregatorRequest; + +GetAggregatorRequest::GetAggregatorRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregator") { + setMethod(HttpRequest::Method::Get); +} + +GetAggregatorRequest::~GetAggregatorRequest() {} + +std::string GetAggregatorRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregatorRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/GetAggregatorResult.cc b/config/src/model/GetAggregatorResult.cc new file mode 100644 index 000000000..b58e6e328 --- /dev/null +++ b/config/src/model/GetAggregatorResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregatorResult::GetAggregatorResult() : + ServiceResult() +{} + +GetAggregatorResult::GetAggregatorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregatorResult::~GetAggregatorResult() +{} + +void GetAggregatorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto aggregatorNode = value["Aggregator"]; + if(!aggregatorNode["AggregatorCreateTimestamp"].isNull()) + aggregator_.aggregatorCreateTimestamp = aggregatorNode["AggregatorCreateTimestamp"].asString(); + if(!aggregatorNode["AggregatorAccountCount"].isNull()) + aggregator_.aggregatorAccountCount = std::stol(aggregatorNode["AggregatorAccountCount"].asString()); + if(!aggregatorNode["Description"].isNull()) + aggregator_.description = aggregatorNode["Description"].asString(); + if(!aggregatorNode["AggregatorName"].isNull()) + aggregator_.aggregatorName = aggregatorNode["AggregatorName"].asString(); + if(!aggregatorNode["AggregatorStatus"].isNull()) + aggregator_.aggregatorStatus = std::stoi(aggregatorNode["AggregatorStatus"].asString()); + if(!aggregatorNode["AggregatorType"].isNull()) + aggregator_.aggregatorType = aggregatorNode["AggregatorType"].asString(); + if(!aggregatorNode["AccountId"].isNull()) + aggregator_.accountId = std::stol(aggregatorNode["AccountId"].asString()); + if(!aggregatorNode["AggregatorId"].isNull()) + aggregator_.aggregatorId = aggregatorNode["AggregatorId"].asString(); + auto allAggregatorAccountsNode = aggregatorNode["AggregatorAccounts"]["AggregatorAccountsItem"]; + for (auto aggregatorNodeAggregatorAccountsAggregatorAccountsItem : allAggregatorAccountsNode) + { + Aggregator::AggregatorAccountsItem aggregatorAccountsItemObject; + if(!aggregatorNodeAggregatorAccountsAggregatorAccountsItem["RecorderStatus"].isNull()) + aggregatorAccountsItemObject.recorderStatus = aggregatorNodeAggregatorAccountsAggregatorAccountsItem["RecorderStatus"].asString(); + if(!aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountId"].isNull()) + aggregatorAccountsItemObject.accountId = std::stol(aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountId"].asString()); + if(!aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountType"].isNull()) + aggregatorAccountsItemObject.accountType = aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountType"].asString(); + if(!aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountName"].isNull()) + aggregatorAccountsItemObject.accountName = aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountName"].asString(); + aggregator_.aggregatorAccounts.push_back(aggregatorAccountsItemObject); + } + +} + +GetAggregatorResult::Aggregator GetAggregatorResult::getAggregator()const +{ + return aggregator_; +} + diff --git a/config/src/model/GetCompliancePackReportRequest.cc b/config/src/model/GetCompliancePackReportRequest.cc new file mode 100644 index 000000000..1cff5bbad --- /dev/null +++ b/config/src/model/GetCompliancePackReportRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetCompliancePackReportRequest; + +GetCompliancePackReportRequest::GetCompliancePackReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GetCompliancePackReport") { + setMethod(HttpRequest::Method::Get); +} + +GetCompliancePackReportRequest::~GetCompliancePackReportRequest() {} + +std::string GetCompliancePackReportRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GetCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GetCompliancePackReportResult.cc b/config/src/model/GetCompliancePackReportResult.cc new file mode 100644 index 000000000..22a8847d9 --- /dev/null +++ b/config/src/model/GetCompliancePackReportResult.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetCompliancePackReportResult::GetCompliancePackReportResult() : + ServiceResult() +{} + +GetCompliancePackReportResult::GetCompliancePackReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCompliancePackReportResult::~GetCompliancePackReportResult() +{} + +void GetCompliancePackReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto compliancePackReportNode = value["CompliancePackReport"]; + if(!compliancePackReportNode["ReportUrl"].isNull()) + compliancePackReport_.reportUrl = compliancePackReportNode["ReportUrl"].asString(); + if(!compliancePackReportNode["ReportStatus"].isNull()) + compliancePackReport_.reportStatus = compliancePackReportNode["ReportStatus"].asString(); + if(!compliancePackReportNode["CompliancePackId"].isNull()) + compliancePackReport_.compliancePackId = compliancePackReportNode["CompliancePackId"].asString(); + if(!compliancePackReportNode["AccountId"].isNull()) + compliancePackReport_.accountId = std::stol(compliancePackReportNode["AccountId"].asString()); + if(!compliancePackReportNode["ReportCreateTimestamp"].isNull()) + compliancePackReport_.reportCreateTimestamp = std::stol(compliancePackReportNode["ReportCreateTimestamp"].asString()); + +} + +GetCompliancePackReportResult::CompliancePackReport GetCompliancePackReportResult::getCompliancePackReport()const +{ + return compliancePackReport_; +} + diff --git a/config/src/model/GetCompliancePackRequest.cc b/config/src/model/GetCompliancePackRequest.cc new file mode 100644 index 000000000..3ff5895cc --- /dev/null +++ b/config/src/model/GetCompliancePackRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetCompliancePackRequest; + +GetCompliancePackRequest::GetCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "GetCompliancePack") { + setMethod(HttpRequest::Method::Get); +} + +GetCompliancePackRequest::~GetCompliancePackRequest() {} + +std::string GetCompliancePackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GetCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GetCompliancePackResult.cc b/config/src/model/GetCompliancePackResult.cc new file mode 100644 index 000000000..af4a03177 --- /dev/null +++ b/config/src/model/GetCompliancePackResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetCompliancePackResult::GetCompliancePackResult() : + ServiceResult() +{} + +GetCompliancePackResult::GetCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCompliancePackResult::~GetCompliancePackResult() +{} + +void GetCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto compliancePackNode = value["CompliancePack"]; + if(!compliancePackNode["Status"].isNull()) + compliancePack_.status = compliancePackNode["Status"].asString(); + if(!compliancePackNode["CompliancePackId"].isNull()) + compliancePack_.compliancePackId = compliancePackNode["CompliancePackId"].asString(); + if(!compliancePackNode["RiskLevel"].isNull()) + compliancePack_.riskLevel = std::stoi(compliancePackNode["RiskLevel"].asString()); + if(!compliancePackNode["Description"].isNull()) + compliancePack_.description = compliancePackNode["Description"].asString(); + if(!compliancePackNode["CompliancePackName"].isNull()) + compliancePack_.compliancePackName = compliancePackNode["CompliancePackName"].asString(); + if(!compliancePackNode["AccountId"].isNull()) + compliancePack_.accountId = std::stol(compliancePackNode["AccountId"].asString()); + if(!compliancePackNode["CompliancePackTemplateId"].isNull()) + compliancePack_.compliancePackTemplateId = compliancePackNode["CompliancePackTemplateId"].asString(); + if(!compliancePackNode["CreateTimestamp"].isNull()) + compliancePack_.createTimestamp = std::stol(compliancePackNode["CreateTimestamp"].asString()); + auto allConfigRulesNode = compliancePackNode["ConfigRules"]["ConfigRulesItem"]; + for (auto compliancePackNodeConfigRulesConfigRulesItem : allConfigRulesNode) + { + CompliancePack::ConfigRulesItem configRulesItemObject; + if(!compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].isNull()) + configRulesItemObject.managedRuleIdentifier = compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].isNull()) + configRulesItemObject.configRuleName = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].isNull()) + configRulesItemObject.configRuleId = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItem["Description"].isNull()) + configRulesItemObject.description = compliancePackNodeConfigRulesConfigRulesItem["Description"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].isNull()) + configRulesItemObject.riskLevel = std::stoi(compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].asString()); + auto allConfigRuleParametersNode = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleParameters"]["ConfigRuleParametersItem"]; + for (auto compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem : allConfigRuleParametersNode) + { + CompliancePack::ConfigRulesItem::ConfigRuleParametersItem configRuleParametersObject; + if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].isNull()) + configRuleParametersObject.required = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].asString() == "true"; + if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].isNull()) + configRuleParametersObject.parameterName = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].asString(); + if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].isNull()) + configRuleParametersObject.parameterValue = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].asString(); + configRulesItemObject.configRuleParameters.push_back(configRuleParametersObject); + } + compliancePack_.configRules.push_back(configRulesItemObject); + } + +} + +GetCompliancePackResult::CompliancePack GetCompliancePackResult::getCompliancePack()const +{ + return compliancePack_; +} + diff --git a/config/src/model/GetConfigRuleComplianceByPackRequest.cc b/config/src/model/GetConfigRuleComplianceByPackRequest.cc new file mode 100644 index 000000000..42b5fd48a --- /dev/null +++ b/config/src/model/GetConfigRuleComplianceByPackRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetConfigRuleComplianceByPackRequest; + +GetConfigRuleComplianceByPackRequest::GetConfigRuleComplianceByPackRequest() + : RpcServiceRequest("config", "2020-09-07", "GetConfigRuleComplianceByPack") { + setMethod(HttpRequest::Method::Get); +} + +GetConfigRuleComplianceByPackRequest::~GetConfigRuleComplianceByPackRequest() {} + +std::string GetConfigRuleComplianceByPackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GetConfigRuleComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GetConfigRuleComplianceByPackResult.cc b/config/src/model/GetConfigRuleComplianceByPackResult.cc new file mode 100644 index 000000000..d4c498dae --- /dev/null +++ b/config/src/model/GetConfigRuleComplianceByPackResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetConfigRuleComplianceByPackResult::GetConfigRuleComplianceByPackResult() : + ServiceResult() +{} + +GetConfigRuleComplianceByPackResult::GetConfigRuleComplianceByPackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConfigRuleComplianceByPackResult::~GetConfigRuleComplianceByPackResult() +{} + +void GetConfigRuleComplianceByPackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configRuleComplianceResultNode = value["ConfigRuleComplianceResult"]; + if(!configRuleComplianceResultNode["CompliancePackId"].isNull()) + configRuleComplianceResult_.compliancePackId = configRuleComplianceResultNode["CompliancePackId"].asString(); + if(!configRuleComplianceResultNode["NonCompliantCount"].isNull()) + configRuleComplianceResult_.nonCompliantCount = std::stoi(configRuleComplianceResultNode["NonCompliantCount"].asString()); + if(!configRuleComplianceResultNode["TotalCount"].isNull()) + configRuleComplianceResult_.totalCount = std::stoi(configRuleComplianceResultNode["TotalCount"].asString()); + auto allConfigRuleCompliancesNode = configRuleComplianceResultNode["ConfigRuleCompliances"]["ConfigRuleCompliancesItem"]; + for (auto configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem : allConfigRuleCompliancesNode) + { + ConfigRuleComplianceResult::ConfigRuleCompliancesItem configRuleCompliancesItemObject; + if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].isNull()) + configRuleCompliancesItemObject.complianceType = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].asString(); + if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].isNull()) + configRuleCompliancesItemObject.configRuleName = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].asString(); + if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].isNull()) + configRuleCompliancesItemObject.configRuleId = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].asString(); + configRuleComplianceResult_.configRuleCompliances.push_back(configRuleCompliancesItemObject); + } + +} + +GetConfigRuleComplianceByPackResult::ConfigRuleComplianceResult GetConfigRuleComplianceByPackResult::getConfigRuleComplianceResult()const +{ + return configRuleComplianceResult_; +} + diff --git a/config/src/model/StopConfigRulesRequest.cc b/config/src/model/GetConfigRuleRequest.cc similarity index 53% rename from config/src/model/StopConfigRulesRequest.cc rename to config/src/model/GetConfigRuleRequest.cc index e87909e15..6a13f2988 100644 --- a/config/src/model/StopConfigRulesRequest.cc +++ b/config/src/model/GetConfigRuleRequest.cc @@ -14,23 +14,23 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::StopConfigRulesRequest; +using AlibabaCloud::Config::Model::GetConfigRuleRequest; -StopConfigRulesRequest::StopConfigRulesRequest() - : RpcServiceRequest("config", "2019-01-08", "StopConfigRules") { +GetConfigRuleRequest::GetConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "GetConfigRule") { setMethod(HttpRequest::Method::Post); } -StopConfigRulesRequest::~StopConfigRulesRequest() {} +GetConfigRuleRequest::~GetConfigRuleRequest() {} -std::string StopConfigRulesRequest::getConfigRuleIds() const { - return configRuleIds_; +std::string GetConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; } -void StopConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); +void GetConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); } diff --git a/config/src/model/GetConfigRuleResult.cc b/config/src/model/GetConfigRuleResult.cc new file mode 100644 index 000000000..018801797 --- /dev/null +++ b/config/src/model/GetConfigRuleResult.cc @@ -0,0 +1,168 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config; +using namespace AlibabaCloud::Config::Model; + +GetConfigRuleResult::GetConfigRuleResult() : + ServiceResult() +{} + +GetConfigRuleResult::GetConfigRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConfigRuleResult::~GetConfigRuleResult() +{} + +void GetConfigRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configRuleNode = value["ConfigRule"]; + if(!configRuleNode["RiskLevel"].isNull()) + configRule_.riskLevel = std::stoi(configRuleNode["RiskLevel"].asString()); + if(!configRuleNode["InputParameters"].isNull()) + configRule_.inputParameters = configRuleNode["InputParameters"].asString(); + if(!configRuleNode["ConfigRuleState"].isNull()) + configRule_.configRuleState = configRuleNode["ConfigRuleState"].asString(); + if(!configRuleNode["MaximumExecutionFrequency"].isNull()) + configRule_.maximumExecutionFrequency = configRuleNode["MaximumExecutionFrequency"].asString(); + if(!configRuleNode["ConfigRuleArn"].isNull()) + configRule_.configRuleArn = configRuleNode["ConfigRuleArn"].asString(); + if(!configRuleNode["Description"].isNull()) + configRule_.description = configRuleNode["Description"].asString(); + if(!configRuleNode["ConfigRuleName"].isNull()) + configRule_.configRuleName = configRuleNode["ConfigRuleName"].asString(); + if(!configRuleNode["ConfigRuleId"].isNull()) + configRule_.configRuleId = configRuleNode["ConfigRuleId"].asString(); + if(!configRuleNode["ModifiedTimestamp"].isNull()) + configRule_.modifiedTimestamp = std::stol(configRuleNode["ModifiedTimestamp"].asString()); + if(!configRuleNode["CreateTimestamp"].isNull()) + configRule_.createTimestamp = std::stol(configRuleNode["CreateTimestamp"].asString()); + if(!configRuleNode["ResourceTypesScope"].isNull()) + configRule_.resourceTypesScope = configRuleNode["ResourceTypesScope"].asString(); + if(!configRuleNode["RegionIdsScope"].isNull()) + configRule_.regionIdsScope = configRuleNode["RegionIdsScope"].asString(); + if(!configRuleNode["ExcludeResourceIdsScope"].isNull()) + configRule_.excludeResourceIdsScope = configRuleNode["ExcludeResourceIdsScope"].asString(); + if(!configRuleNode["ResourceGroupIdsScope"].isNull()) + configRule_.resourceGroupIdsScope = configRuleNode["ResourceGroupIdsScope"].asString(); + if(!configRuleNode["TagKeyScope"].isNull()) + configRule_.tagKeyScope = configRuleNode["TagKeyScope"].asString(); + if(!configRuleNode["TagValueScope"].isNull()) + configRule_.tagValueScope = configRuleNode["TagValueScope"].asString(); + if(!configRuleNode["ConfigRuleTriggerTypes"].isNull()) + configRule_.configRuleTriggerTypes = configRuleNode["ConfigRuleTriggerTypes"].asString(); + auto sourceNode = configRuleNode["Source"]; + if(!sourceNode["Owner"].isNull()) + configRule_.source.owner = sourceNode["Owner"].asString(); + if(!sourceNode["Identifier"].isNull()) + configRule_.source.identifier = sourceNode["Identifier"].asString(); + auto allSourceDetailsNode = sourceNode["SourceDetails"]["SourceDetailsItem"]; + for (auto sourceNodeSourceDetailsSourceDetailsItem : allSourceDetailsNode) + { + ConfigRule::Source::SourceDetailsItem sourceDetailsItemObject; + if(!sourceNodeSourceDetailsSourceDetailsItem["MessageType"].isNull()) + sourceDetailsItemObject.messageType = sourceNodeSourceDetailsSourceDetailsItem["MessageType"].asString(); + if(!sourceNodeSourceDetailsSourceDetailsItem["EventSource"].isNull()) + sourceDetailsItemObject.eventSource = sourceNodeSourceDetailsSourceDetailsItem["EventSource"].asString(); + if(!sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull()) + sourceDetailsItemObject.maximumExecutionFrequency = sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString(); + configRule_.source.sourceDetails.push_back(sourceDetailsItemObject); + } + auto allSourceConditions = sourceNode["SourceConditions"]["SourceConditions"]; + for (auto value : allSourceConditions) + configRule_.source.sourceConditions.push_back(value.asString()); + auto managedRuleNode = configRuleNode["ManagedRule"]; + if(!managedRuleNode["HelpUrl"].isNull()) + configRule_.managedRule.helpUrl = managedRuleNode["HelpUrl"].asString(); + if(!managedRuleNode["Description"].isNull()) + configRule_.managedRule.description = managedRuleNode["Description"].asString(); + if(!managedRuleNode["Identifier"].isNull()) + configRule_.managedRule.identifier = managedRuleNode["Identifier"].asString(); + if(!managedRuleNode["OptionalInputParameterDetails"].isNull()) + configRule_.managedRule.optionalInputParameterDetails = managedRuleNode["OptionalInputParameterDetails"].asString(); + if(!managedRuleNode["ManagedRuleName"].isNull()) + configRule_.managedRule.managedRuleName = managedRuleNode["ManagedRuleName"].asString(); + if(!managedRuleNode["CompulsoryInputParameterDetails"].isNull()) + configRule_.managedRule.compulsoryInputParameterDetails = managedRuleNode["CompulsoryInputParameterDetails"].asString(); + auto allSourceDetails1Node = managedRuleNode["SourceDetails"]["SourceDetailsItem"]; + for (auto managedRuleNodeSourceDetailsSourceDetailsItem : allSourceDetails1Node) + { + ConfigRule::ManagedRule::SourceDetailsItem2 sourceDetailsItem2Object; + if(!managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].isNull()) + sourceDetailsItem2Object.messageType = managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].asString(); + if(!managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].isNull()) + sourceDetailsItem2Object.eventSource = managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].asString(); + if(!managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull()) + sourceDetailsItem2Object.maximumExecutionFrequency = managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString(); + configRule_.managedRule.sourceDetails1.push_back(sourceDetailsItem2Object); + } + auto allLabels = managedRuleNode["Labels"]["Labels"]; + for (auto value : allLabels) + configRule_.managedRule.labels.push_back(value.asString()); + auto createByNode = configRuleNode["CreateBy"]; + if(!createByNode["CompliancePackId"].isNull()) + configRule_.createBy.compliancePackId = createByNode["CompliancePackId"].asString(); + if(!createByNode["AggregatorName"].isNull()) + configRule_.createBy.aggregatorName = createByNode["AggregatorName"].asString(); + if(!createByNode["CompliancePackName"].isNull()) + configRule_.createBy.compliancePackName = createByNode["CompliancePackName"].asString(); + if(!createByNode["CreatorName"].isNull()) + configRule_.createBy.creatorName = createByNode["CreatorName"].asString(); + if(!createByNode["CreatorType"].isNull()) + configRule_.createBy.creatorType = createByNode["CreatorType"].asString(); + if(!createByNode["CreatorId"].isNull()) + configRule_.createBy.creatorId = createByNode["CreatorId"].asString(); + if(!createByNode["AggregatorId"].isNull()) + configRule_.createBy.aggregatorId = createByNode["AggregatorId"].asString(); + auto configRuleEvaluationStatusNode = configRuleNode["ConfigRuleEvaluationStatus"]; + if(!configRuleEvaluationStatusNode["LastErrorCode"].isNull()) + configRule_.configRuleEvaluationStatus.lastErrorCode = configRuleEvaluationStatusNode["LastErrorCode"].asString(); + if(!configRuleEvaluationStatusNode["LastSuccessfulEvaluationTimestamp"].isNull()) + configRule_.configRuleEvaluationStatus.lastSuccessfulEvaluationTimestamp = std::stol(configRuleEvaluationStatusNode["LastSuccessfulEvaluationTimestamp"].asString()); + if(!configRuleEvaluationStatusNode["FirstActivatedTimestamp"].isNull()) + configRule_.configRuleEvaluationStatus.firstActivatedTimestamp = std::stol(configRuleEvaluationStatusNode["FirstActivatedTimestamp"].asString()); + if(!configRuleEvaluationStatusNode["FirstEvaluationStarted"].isNull()) + configRule_.configRuleEvaluationStatus.firstEvaluationStarted = configRuleEvaluationStatusNode["FirstEvaluationStarted"].asString() == "true"; + if(!configRuleEvaluationStatusNode["LastSuccessfulInvocationTimestamp"].isNull()) + configRule_.configRuleEvaluationStatus.lastSuccessfulInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastSuccessfulInvocationTimestamp"].asString()); + if(!configRuleEvaluationStatusNode["LastErrorMessage"].isNull()) + configRule_.configRuleEvaluationStatus.lastErrorMessage = configRuleEvaluationStatusNode["LastErrorMessage"].asString(); + if(!configRuleEvaluationStatusNode["LastFailedEvaluationTimestamp"].isNull()) + configRule_.configRuleEvaluationStatus.lastFailedEvaluationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedEvaluationTimestamp"].asString()); + if(!configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].isNull()) + configRule_.configRuleEvaluationStatus.lastFailedInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].asString()); + auto scopeNode = configRuleNode["Scope"]; + auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"]; + for (auto value : allComplianceResourceTypes) + configRule_.scope.complianceResourceTypes.push_back(value.asString()); + +} + +GetConfigRuleResult::ConfigRule GetConfigRuleResult::getConfigRule()const +{ + return configRule_; +} + diff --git a/config/src/model/DescribeConfigurationRecorderRequest.cc b/config/src/model/GetConfigRuleSummaryByRiskLevelRequest.cc similarity index 61% rename from config/src/model/DescribeConfigurationRecorderRequest.cc rename to config/src/model/GetConfigRuleSummaryByRiskLevelRequest.cc index 270a9b850..7b6525d7c 100644 --- a/config/src/model/DescribeConfigurationRecorderRequest.cc +++ b/config/src/model/GetConfigRuleSummaryByRiskLevelRequest.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::DescribeConfigurationRecorderRequest; +using AlibabaCloud::Config::Model::GetConfigRuleSummaryByRiskLevelRequest; -DescribeConfigurationRecorderRequest::DescribeConfigurationRecorderRequest() - : RpcServiceRequest("config", "2019-01-08", "DescribeConfigurationRecorder") { +GetConfigRuleSummaryByRiskLevelRequest::GetConfigRuleSummaryByRiskLevelRequest() + : RpcServiceRequest("config", "2020-09-07", "GetConfigRuleSummaryByRiskLevel") { setMethod(HttpRequest::Method::Get); } -DescribeConfigurationRecorderRequest::~DescribeConfigurationRecorderRequest() {} +GetConfigRuleSummaryByRiskLevelRequest::~GetConfigRuleSummaryByRiskLevelRequest() {} diff --git a/config/src/model/GetConfigRuleSummaryByRiskLevelResult.cc b/config/src/model/GetConfigRuleSummaryByRiskLevelResult.cc new file mode 100644 index 000000000..166e3e412 --- /dev/null +++ b/config/src/model/GetConfigRuleSummaryByRiskLevelResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetConfigRuleSummaryByRiskLevelResult::GetConfigRuleSummaryByRiskLevelResult() : + ServiceResult() +{} + +GetConfigRuleSummaryByRiskLevelResult::GetConfigRuleSummaryByRiskLevelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConfigRuleSummaryByRiskLevelResult::~GetConfigRuleSummaryByRiskLevelResult() +{} + +void GetConfigRuleSummaryByRiskLevelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allConfigRuleSummariesNode = value["ConfigRuleSummaries"]["Data"]; + for (auto valueConfigRuleSummariesData : allConfigRuleSummariesNode) + { + Data configRuleSummariesObject; + if(!valueConfigRuleSummariesData["RiskLevel"].isNull()) + configRuleSummariesObject.riskLevel = std::stoi(valueConfigRuleSummariesData["RiskLevel"].asString()); + if(!valueConfigRuleSummariesData["CompliantCount"].isNull()) + configRuleSummariesObject.compliantCount = std::stoi(valueConfigRuleSummariesData["CompliantCount"].asString()); + if(!valueConfigRuleSummariesData["NonCompliantCount"].isNull()) + configRuleSummariesObject.nonCompliantCount = std::stoi(valueConfigRuleSummariesData["NonCompliantCount"].asString()); + configRuleSummaries_.push_back(configRuleSummariesObject); + } + +} + +std::vector GetConfigRuleSummaryByRiskLevelResult::getConfigRuleSummaries()const +{ + return configRuleSummaries_; +} + diff --git a/config/src/model/GetSupportedResourceTypesRequest.cc b/config/src/model/GetConfigRulesReportRequest.cc similarity index 64% rename from config/src/model/GetSupportedResourceTypesRequest.cc rename to config/src/model/GetConfigRulesReportRequest.cc index 218b15769..50d0e2336 100644 --- a/config/src/model/GetSupportedResourceTypesRequest.cc +++ b/config/src/model/GetConfigRulesReportRequest.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::GetSupportedResourceTypesRequest; +using AlibabaCloud::Config::Model::GetConfigRulesReportRequest; -GetSupportedResourceTypesRequest::GetSupportedResourceTypesRequest() - : RpcServiceRequest("config", "2019-01-08", "GetSupportedResourceTypes") { +GetConfigRulesReportRequest::GetConfigRulesReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GetConfigRulesReport") { setMethod(HttpRequest::Method::Get); } -GetSupportedResourceTypesRequest::~GetSupportedResourceTypesRequest() {} +GetConfigRulesReportRequest::~GetConfigRulesReportRequest() {} diff --git a/config/src/model/GetConfigRulesReportResult.cc b/config/src/model/GetConfigRulesReportResult.cc new file mode 100644 index 000000000..5cb774775 --- /dev/null +++ b/config/src/model/GetConfigRulesReportResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetConfigRulesReportResult::GetConfigRulesReportResult() : + ServiceResult() +{} + +GetConfigRulesReportResult::GetConfigRulesReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConfigRulesReportResult::~GetConfigRulesReportResult() +{} + +void GetConfigRulesReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configRulesReportNode = value["ConfigRulesReport"]; + if(!configRulesReportNode["ReportStatus"].isNull()) + configRulesReport_.reportStatus = configRulesReportNode["ReportStatus"].asString(); + if(!configRulesReportNode["ReportUrl"].isNull()) + configRulesReport_.reportUrl = configRulesReportNode["ReportUrl"].asString(); + if(!configRulesReportNode["AccountId"].isNull()) + configRulesReport_.accountId = std::stol(configRulesReportNode["AccountId"].asString()); + if(!configRulesReportNode["ReportCreateTimestamp"].isNull()) + configRulesReport_.reportCreateTimestamp = std::stol(configRulesReportNode["ReportCreateTimestamp"].asString()); + +} + +GetConfigRulesReportResult::ConfigRulesReport GetConfigRulesReportResult::getConfigRulesReport()const +{ + return configRulesReport_; +} + diff --git a/config/src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc b/config/src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc new file mode 100644 index 000000000..a06ca1dc7 --- /dev/null +++ b/config/src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetDiscoveredResourceCountsGroupByRegionRequest; + +GetDiscoveredResourceCountsGroupByRegionRequest::GetDiscoveredResourceCountsGroupByRegionRequest() + : RpcServiceRequest("config", "2020-09-07", "GetDiscoveredResourceCountsGroupByRegion") { + setMethod(HttpRequest::Method::Get); +} + +GetDiscoveredResourceCountsGroupByRegionRequest::~GetDiscoveredResourceCountsGroupByRegionRequest() {} + +std::string GetDiscoveredResourceCountsGroupByRegionRequest::getResourceType() const { + return resourceType_; +} + +void GetDiscoveredResourceCountsGroupByRegionRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/config/src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc b/config/src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc new file mode 100644 index 000000000..c38737b10 --- /dev/null +++ b/config/src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetDiscoveredResourceCountsGroupByRegionResult::GetDiscoveredResourceCountsGroupByRegionResult() : + ServiceResult() +{} + +GetDiscoveredResourceCountsGroupByRegionResult::GetDiscoveredResourceCountsGroupByRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDiscoveredResourceCountsGroupByRegionResult::~GetDiscoveredResourceCountsGroupByRegionResult() +{} + +void GetDiscoveredResourceCountsGroupByRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDiscoveredResourceCountsSummaryNode = value["DiscoveredResourceCountsSummary"]["GroupedResourceCount"]; + for (auto valueDiscoveredResourceCountsSummaryGroupedResourceCount : allDiscoveredResourceCountsSummaryNode) + { + GroupedResourceCount discoveredResourceCountsSummaryObject; + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].isNull()) + discoveredResourceCountsSummaryObject.resourceCount = std::stol(valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].asString()); + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].isNull()) + discoveredResourceCountsSummaryObject.groupName = valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].asString(); + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["Region"].isNull()) + discoveredResourceCountsSummaryObject.region = valueDiscoveredResourceCountsSummaryGroupedResourceCount["Region"].asString(); + discoveredResourceCountsSummary_.push_back(discoveredResourceCountsSummaryObject); + } + +} + +std::vector GetDiscoveredResourceCountsGroupByRegionResult::getDiscoveredResourceCountsSummary()const +{ + return discoveredResourceCountsSummary_; +} + diff --git a/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc b/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc new file mode 100644 index 000000000..e942ea343 --- /dev/null +++ b/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest; + +GetDiscoveredResourceCountsGroupByResourceTypeRequest::GetDiscoveredResourceCountsGroupByResourceTypeRequest() + : RpcServiceRequest("config", "2020-09-07", "GetDiscoveredResourceCountsGroupByResourceType") { + setMethod(HttpRequest::Method::Get); +} + +GetDiscoveredResourceCountsGroupByResourceTypeRequest::~GetDiscoveredResourceCountsGroupByResourceTypeRequest() {} + +std::string GetDiscoveredResourceCountsGroupByResourceTypeRequest::getRegion() const { + return region_; +} + +void GetDiscoveredResourceCountsGroupByResourceTypeRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc b/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc new file mode 100644 index 000000000..2982b3feb --- /dev/null +++ b/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetDiscoveredResourceCountsGroupByResourceTypeResult::GetDiscoveredResourceCountsGroupByResourceTypeResult() : + ServiceResult() +{} + +GetDiscoveredResourceCountsGroupByResourceTypeResult::GetDiscoveredResourceCountsGroupByResourceTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDiscoveredResourceCountsGroupByResourceTypeResult::~GetDiscoveredResourceCountsGroupByResourceTypeResult() +{} + +void GetDiscoveredResourceCountsGroupByResourceTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDiscoveredResourceCountsSummaryNode = value["DiscoveredResourceCountsSummary"]["GroupedResourceCount"]; + for (auto valueDiscoveredResourceCountsSummaryGroupedResourceCount : allDiscoveredResourceCountsSummaryNode) + { + GroupedResourceCount discoveredResourceCountsSummaryObject; + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].isNull()) + discoveredResourceCountsSummaryObject.resourceCount = std::stol(valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].asString()); + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].isNull()) + discoveredResourceCountsSummaryObject.groupName = valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].asString(); + if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceType"].isNull()) + discoveredResourceCountsSummaryObject.resourceType = valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceType"].asString(); + discoveredResourceCountsSummary_.push_back(discoveredResourceCountsSummaryObject); + } + +} + +std::vector GetDiscoveredResourceCountsGroupByResourceTypeResult::getDiscoveredResourceCountsSummary()const +{ + return discoveredResourceCountsSummary_; +} + diff --git a/config/src/model/GetDiscoveredResourceCountsRequest.cc b/config/src/model/GetDiscoveredResourceCountsRequest.cc deleted file mode 100644 index ddc6357a8..000000000 --- a/config/src/model/GetDiscoveredResourceCountsRequest.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::Config::Model::GetDiscoveredResourceCountsRequest; - -GetDiscoveredResourceCountsRequest::GetDiscoveredResourceCountsRequest() - : RpcServiceRequest("config", "2019-01-08", "GetDiscoveredResourceCounts") { - setMethod(HttpRequest::Method::Get); -} - -GetDiscoveredResourceCountsRequest::~GetDiscoveredResourceCountsRequest() {} - -bool GetDiscoveredResourceCountsRequest::getMultiAccount() const { - return multiAccount_; -} - -void GetDiscoveredResourceCountsRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -std::string GetDiscoveredResourceCountsRequest::getGroupByKey() const { - return groupByKey_; -} - -void GetDiscoveredResourceCountsRequest::setGroupByKey(const std::string &groupByKey) { - groupByKey_ = groupByKey; - setParameter(std::string("GroupByKey"), groupByKey); -} - -long GetDiscoveredResourceCountsRequest::getMemberId() const { - return memberId_; -} - -void GetDiscoveredResourceCountsRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/GetDiscoveredResourceCountsResult.cc b/config/src/model/GetDiscoveredResourceCountsResult.cc deleted file mode 100644 index 12f427e58..000000000 --- a/config/src/model/GetDiscoveredResourceCountsResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetDiscoveredResourceCountsResult::GetDiscoveredResourceCountsResult() : - ServiceResult() -{} - -GetDiscoveredResourceCountsResult::GetDiscoveredResourceCountsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetDiscoveredResourceCountsResult::~GetDiscoveredResourceCountsResult() -{} - -void GetDiscoveredResourceCountsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto groupedResourceCountsNode = value["GroupedResourceCounts"]; - if(!groupedResourceCountsNode["GroupByKey"].isNull()) - groupedResourceCounts_.groupByKey = groupedResourceCountsNode["GroupByKey"].asString(); - auto allGroupedResourceCountListNode = groupedResourceCountsNode["GroupedResourceCountList"]["GroupedResourceCount"]; - for (auto groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount : allGroupedResourceCountListNode) - { - GroupedResourceCounts::GroupedResourceCount groupedResourceCountObject; - if(!groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["ResourceCount"].isNull()) - groupedResourceCountObject.resourceCount = std::stol(groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["ResourceCount"].asString()); - if(!groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["GroupName"].isNull()) - groupedResourceCountObject.groupName = groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["GroupName"].asString(); - groupedResourceCounts_.groupedResourceCountList.push_back(groupedResourceCountObject); - } - -} - -GetDiscoveredResourceCountsResult::GroupedResourceCounts GetDiscoveredResourceCountsResult::getGroupedResourceCounts()const -{ - return groupedResourceCounts_; -} - diff --git a/config/src/model/GetDiscoveredResourceSummaryRequest.cc b/config/src/model/GetDiscoveredResourceSummaryRequest.cc deleted file mode 100644 index 68b96294d..000000000 --- a/config/src/model/GetDiscoveredResourceSummaryRequest.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::Config::Model::GetDiscoveredResourceSummaryRequest; - -GetDiscoveredResourceSummaryRequest::GetDiscoveredResourceSummaryRequest() - : RpcServiceRequest("config", "2019-01-08", "GetDiscoveredResourceSummary") { - setMethod(HttpRequest::Method::Get); -} - -GetDiscoveredResourceSummaryRequest::~GetDiscoveredResourceSummaryRequest() {} - -bool GetDiscoveredResourceSummaryRequest::getMultiAccount() const { - return multiAccount_; -} - -void GetDiscoveredResourceSummaryRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -long GetDiscoveredResourceSummaryRequest::getMemberId() const { - return memberId_; -} - -void GetDiscoveredResourceSummaryRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/GetDiscoveredResourceSummaryResult.cc b/config/src/model/GetDiscoveredResourceSummaryResult.cc deleted file mode 100644 index 0c73d08a2..000000000 --- a/config/src/model/GetDiscoveredResourceSummaryResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetDiscoveredResourceSummaryResult::GetDiscoveredResourceSummaryResult() : - ServiceResult() -{} - -GetDiscoveredResourceSummaryResult::GetDiscoveredResourceSummaryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetDiscoveredResourceSummaryResult::~GetDiscoveredResourceSummaryResult() -{} - -void GetDiscoveredResourceSummaryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto discoveredResourceSummaryNode = value["DiscoveredResourceSummary"]; - if(!discoveredResourceSummaryNode["RegionCount"].isNull()) - discoveredResourceSummary_.regionCount = std::stoi(discoveredResourceSummaryNode["RegionCount"].asString()); - if(!discoveredResourceSummaryNode["ResourceCount"].isNull()) - discoveredResourceSummary_.resourceCount = std::stoi(discoveredResourceSummaryNode["ResourceCount"].asString()); - if(!discoveredResourceSummaryNode["ResourceTypeCount"].isNull()) - discoveredResourceSummary_.resourceTypeCount = std::stoi(discoveredResourceSummaryNode["ResourceTypeCount"].asString()); - -} - -GetDiscoveredResourceSummaryResult::DiscoveredResourceSummary GetDiscoveredResourceSummaryResult::getDiscoveredResourceSummary()const -{ - return discoveredResourceSummary_; -} - diff --git a/config/src/model/GetResourceComplianceByConfigRuleRequest.cc b/config/src/model/GetResourceComplianceByConfigRuleRequest.cc new file mode 100644 index 000000000..caf97fbf0 --- /dev/null +++ b/config/src/model/GetResourceComplianceByConfigRuleRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetResourceComplianceByConfigRuleRequest; + +GetResourceComplianceByConfigRuleRequest::GetResourceComplianceByConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceByConfigRule") { + setMethod(HttpRequest::Method::Get); +} + +GetResourceComplianceByConfigRuleRequest::~GetResourceComplianceByConfigRuleRequest() {} + +std::string GetResourceComplianceByConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; +} + +void GetResourceComplianceByConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string GetResourceComplianceByConfigRuleRequest::getComplianceType() const { + return complianceType_; +} + +void GetResourceComplianceByConfigRuleRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + diff --git a/config/src/model/DescribeComplianceResult.cc b/config/src/model/GetResourceComplianceByConfigRuleResult.cc similarity index 76% rename from config/src/model/DescribeComplianceResult.cc rename to config/src/model/GetResourceComplianceByConfigRuleResult.cc index 97b5786c9..6b7c42c81 100644 --- a/config/src/model/DescribeComplianceResult.cc +++ b/config/src/model/GetResourceComplianceByConfigRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DescribeComplianceResult::DescribeComplianceResult() : +GetResourceComplianceByConfigRuleResult::GetResourceComplianceByConfigRuleResult() : ServiceResult() {} -DescribeComplianceResult::DescribeComplianceResult(const std::string &payload) : +GetResourceComplianceByConfigRuleResult::GetResourceComplianceByConfigRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeComplianceResult::~DescribeComplianceResult() +GetResourceComplianceByConfigRuleResult::~GetResourceComplianceByConfigRuleResult() {} -void DescribeComplianceResult::parse(const std::string &payload) +void GetResourceComplianceByConfigRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -55,7 +55,7 @@ void DescribeComplianceResult::parse(const std::string &payload) } -DescribeComplianceResult::ComplianceResult DescribeComplianceResult::getComplianceResult()const +GetResourceComplianceByConfigRuleResult::ComplianceResult GetResourceComplianceByConfigRuleResult::getComplianceResult()const { return complianceResult_; } diff --git a/config/src/model/GetResourceComplianceByPackRequest.cc b/config/src/model/GetResourceComplianceByPackRequest.cc new file mode 100644 index 000000000..fa7c28786 --- /dev/null +++ b/config/src/model/GetResourceComplianceByPackRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetResourceComplianceByPackRequest; + +GetResourceComplianceByPackRequest::GetResourceComplianceByPackRequest() + : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceByPack") { + setMethod(HttpRequest::Method::Get); +} + +GetResourceComplianceByPackRequest::~GetResourceComplianceByPackRequest() {} + +std::string GetResourceComplianceByPackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void GetResourceComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + diff --git a/config/src/model/GetResourceComplianceByPackResult.cc b/config/src/model/GetResourceComplianceByPackResult.cc new file mode 100644 index 000000000..ccc4eca11 --- /dev/null +++ b/config/src/model/GetResourceComplianceByPackResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetResourceComplianceByPackResult::GetResourceComplianceByPackResult() : + ServiceResult() +{} + +GetResourceComplianceByPackResult::GetResourceComplianceByPackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceComplianceByPackResult::~GetResourceComplianceByPackResult() +{} + +void GetResourceComplianceByPackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceComplianceResultNode = value["ResourceComplianceResult"]; + if(!resourceComplianceResultNode["CompliancePackId"].isNull()) + resourceComplianceResult_.compliancePackId = resourceComplianceResultNode["CompliancePackId"].asString(); + if(!resourceComplianceResultNode["NonCompliantCount"].isNull()) + resourceComplianceResult_.nonCompliantCount = std::stoi(resourceComplianceResultNode["NonCompliantCount"].asString()); + if(!resourceComplianceResultNode["TotalCount"].isNull()) + resourceComplianceResult_.totalCount = std::stoi(resourceComplianceResultNode["TotalCount"].asString()); + +} + +GetResourceComplianceByPackResult::ResourceComplianceResult GetResourceComplianceByPackResult::getResourceComplianceResult()const +{ + return resourceComplianceResult_; +} + diff --git a/config/src/model/GetResourceComplianceTimelineRequest.cc b/config/src/model/GetResourceComplianceTimelineRequest.cc index c46f3290f..0f78d263a 100644 --- a/config/src/model/GetResourceComplianceTimelineRequest.cc +++ b/config/src/model/GetResourceComplianceTimelineRequest.cc @@ -19,48 +19,12 @@ using AlibabaCloud::Config::Model::GetResourceComplianceTimelineRequest; GetResourceComplianceTimelineRequest::GetResourceComplianceTimelineRequest() - : RpcServiceRequest("config", "2019-01-08", "GetResourceComplianceTimeline") { + : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceTimeline") { setMethod(HttpRequest::Method::Get); } GetResourceComplianceTimelineRequest::~GetResourceComplianceTimelineRequest() {} -bool GetResourceComplianceTimelineRequest::getMultiAccount() const { - return multiAccount_; -} - -void GetResourceComplianceTimelineRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -long GetResourceComplianceTimelineRequest::getStartTime() const { - return startTime_; -} - -void GetResourceComplianceTimelineRequest::setStartTime(long startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); -} - -std::string GetResourceComplianceTimelineRequest::getNextToken() const { - return nextToken_; -} - -void GetResourceComplianceTimelineRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -int GetResourceComplianceTimelineRequest::getLimit() const { - return limit_; -} - -void GetResourceComplianceTimelineRequest::setLimit(int limit) { - limit_ = limit; - setParameter(std::string("Limit"), std::to_string(limit)); -} - std::string GetResourceComplianceTimelineRequest::getResourceId() const { return resourceId_; } @@ -79,6 +43,15 @@ void GetResourceComplianceTimelineRequest::setEndTime(long endTime) { setParameter(std::string("EndTime"), std::to_string(endTime)); } +long GetResourceComplianceTimelineRequest::getStartTime() const { + return startTime_; +} + +void GetResourceComplianceTimelineRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + std::string GetResourceComplianceTimelineRequest::getResourceType() const { return resourceType_; } @@ -88,6 +61,24 @@ void GetResourceComplianceTimelineRequest::setResourceType(const std::string &re setParameter(std::string("ResourceType"), resourceType); } +std::string GetResourceComplianceTimelineRequest::getNextToken() const { + return nextToken_; +} + +void GetResourceComplianceTimelineRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int GetResourceComplianceTimelineRequest::getMaxResults() const { + return maxResults_; +} + +void GetResourceComplianceTimelineRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + std::string GetResourceComplianceTimelineRequest::getRegion() const { return region_; } @@ -97,12 +88,3 @@ void GetResourceComplianceTimelineRequest::setRegion(const std::string ®ion) setParameter(std::string("Region"), region); } -std::string GetResourceComplianceTimelineRequest::getMemberId() const { - return memberId_; -} - -void GetResourceComplianceTimelineRequest::setMemberId(const std::string &memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), memberId); -} - diff --git a/config/src/model/GetResourceComplianceTimelineResult.cc b/config/src/model/GetResourceComplianceTimelineResult.cc index b2ac0c9f0..477838f54 100644 --- a/config/src/model/GetResourceComplianceTimelineResult.cc +++ b/config/src/model/GetResourceComplianceTimelineResult.cc @@ -42,10 +42,8 @@ void GetResourceComplianceTimelineResult::parse(const std::string &payload) auto resourceComplianceTimelineNode = value["ResourceComplianceTimeline"]; if(!resourceComplianceTimelineNode["NextToken"].isNull()) resourceComplianceTimeline_.nextToken = resourceComplianceTimelineNode["NextToken"].asString(); - if(!resourceComplianceTimelineNode["Limit"].isNull()) - resourceComplianceTimeline_.limit = std::stoi(resourceComplianceTimelineNode["Limit"].asString()); - if(!resourceComplianceTimelineNode["TotalCount"].isNull()) - resourceComplianceTimeline_.totalCount = std::stol(resourceComplianceTimelineNode["TotalCount"].asString()); + if(!resourceComplianceTimelineNode["MaxResults"].isNull()) + resourceComplianceTimeline_.maxResults = std::stoi(resourceComplianceTimelineNode["MaxResults"].asString()); auto allComplianceListNode = resourceComplianceTimelineNode["ComplianceList"]["ComplianceListItem"]; for (auto resourceComplianceTimelineNodeComplianceListComplianceListItem : allComplianceListNode) { diff --git a/config/src/model/GetResourceConfigurationTimelineRequest.cc b/config/src/model/GetResourceConfigurationTimelineRequest.cc index 8ad02f517..cc0b0333c 100644 --- a/config/src/model/GetResourceConfigurationTimelineRequest.cc +++ b/config/src/model/GetResourceConfigurationTimelineRequest.cc @@ -19,48 +19,12 @@ using AlibabaCloud::Config::Model::GetResourceConfigurationTimelineRequest; GetResourceConfigurationTimelineRequest::GetResourceConfigurationTimelineRequest() - : RpcServiceRequest("config", "2019-01-08", "GetResourceConfigurationTimeline") { + : RpcServiceRequest("config", "2020-09-07", "GetResourceConfigurationTimeline") { setMethod(HttpRequest::Method::Get); } GetResourceConfigurationTimelineRequest::~GetResourceConfigurationTimelineRequest() {} -bool GetResourceConfigurationTimelineRequest::getMultiAccount() const { - return multiAccount_; -} - -void GetResourceConfigurationTimelineRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -long GetResourceConfigurationTimelineRequest::getStartTime() const { - return startTime_; -} - -void GetResourceConfigurationTimelineRequest::setStartTime(long startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); -} - -std::string GetResourceConfigurationTimelineRequest::getNextToken() const { - return nextToken_; -} - -void GetResourceConfigurationTimelineRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -int GetResourceConfigurationTimelineRequest::getLimit() const { - return limit_; -} - -void GetResourceConfigurationTimelineRequest::setLimit(int limit) { - limit_ = limit; - setParameter(std::string("Limit"), std::to_string(limit)); -} - std::string GetResourceConfigurationTimelineRequest::getResourceId() const { return resourceId_; } @@ -79,6 +43,15 @@ void GetResourceConfigurationTimelineRequest::setEndTime(long endTime) { setParameter(std::string("EndTime"), std::to_string(endTime)); } +long GetResourceConfigurationTimelineRequest::getStartTime() const { + return startTime_; +} + +void GetResourceConfigurationTimelineRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + std::string GetResourceConfigurationTimelineRequest::getResourceType() const { return resourceType_; } @@ -88,6 +61,24 @@ void GetResourceConfigurationTimelineRequest::setResourceType(const std::string setParameter(std::string("ResourceType"), resourceType); } +std::string GetResourceConfigurationTimelineRequest::getNextToken() const { + return nextToken_; +} + +void GetResourceConfigurationTimelineRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int GetResourceConfigurationTimelineRequest::getMaxResults() const { + return maxResults_; +} + +void GetResourceConfigurationTimelineRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + std::string GetResourceConfigurationTimelineRequest::getRegion() const { return region_; } @@ -97,12 +88,3 @@ void GetResourceConfigurationTimelineRequest::setRegion(const std::string ®io setParameter(std::string("Region"), region); } -long GetResourceConfigurationTimelineRequest::getMemberId() const { - return memberId_; -} - -void GetResourceConfigurationTimelineRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/GetResourceConfigurationTimelineResult.cc b/config/src/model/GetResourceConfigurationTimelineResult.cc index f41862143..01578de27 100644 --- a/config/src/model/GetResourceConfigurationTimelineResult.cc +++ b/config/src/model/GetResourceConfigurationTimelineResult.cc @@ -42,24 +42,18 @@ void GetResourceConfigurationTimelineResult::parse(const std::string &payload) auto resourceConfigurationTimelineNode = value["ResourceConfigurationTimeline"]; if(!resourceConfigurationTimelineNode["NextToken"].isNull()) resourceConfigurationTimeline_.nextToken = resourceConfigurationTimelineNode["NextToken"].asString(); - if(!resourceConfigurationTimelineNode["Limit"].isNull()) - resourceConfigurationTimeline_.limit = std::stoi(resourceConfigurationTimelineNode["Limit"].asString()); - if(!resourceConfigurationTimelineNode["TotalCount"].isNull()) - resourceConfigurationTimeline_.totalCount = std::stol(resourceConfigurationTimelineNode["TotalCount"].asString()); + if(!resourceConfigurationTimelineNode["MaxResults"].isNull()) + resourceConfigurationTimeline_.maxResults = std::stoi(resourceConfigurationTimelineNode["MaxResults"].asString()); auto allConfigurationListNode = resourceConfigurationTimelineNode["ConfigurationList"]["ConfigurationListItem"]; for (auto resourceConfigurationTimelineNodeConfigurationListConfigurationListItem : allConfigurationListNode) { ResourceConfigurationTimeline::ConfigurationListItem configurationListItemObject; - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].isNull()) - configurationListItemObject.relationship = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].isNull()) configurationListItemObject.tags = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].isNull()) configurationListItemObject.accountId = std::stol(resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].asString()); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].isNull()) configurationListItemObject.resourceEventType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].isNull()) - configurationListItemObject.relationshipDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].isNull()) configurationListItemObject.availabilityZone = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].isNull()) @@ -76,6 +70,10 @@ void GetResourceConfigurationTimelineResult::parse(const std::string &payload) configurationListItemObject.resourceId = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceId"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].isNull()) configurationListItemObject.resourceName = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].isNull()) + configurationListItemObject.relationship = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].isNull()) + configurationListItemObject.relationshipDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].asString(); resourceConfigurationTimeline_.configurationList.push_back(configurationListItemObject); } diff --git a/config/src/model/IgnoreAggregateEvaluationResultsRequest.cc b/config/src/model/IgnoreAggregateEvaluationResultsRequest.cc new file mode 100644 index 000000000..c3e4ec1f1 --- /dev/null +++ b/config/src/model/IgnoreAggregateEvaluationResultsRequest.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::IgnoreAggregateEvaluationResultsRequest; + +IgnoreAggregateEvaluationResultsRequest::IgnoreAggregateEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "IgnoreAggregateEvaluationResults") { + setMethod(HttpRequest::Method::Post); +} + +IgnoreAggregateEvaluationResultsRequest::~IgnoreAggregateEvaluationResultsRequest() {} + +std::string IgnoreAggregateEvaluationResultsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void IgnoreAggregateEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string IgnoreAggregateEvaluationResultsRequest::getReason() const { + return reason_; +} + +void IgnoreAggregateEvaluationResultsRequest::setReason(const std::string &reason) { + reason_ = reason; + setBodyParameter(std::string("Reason"), reason); +} + +std::vector IgnoreAggregateEvaluationResultsRequest::getResources() const { + return resources_; +} + +void IgnoreAggregateEvaluationResultsRequest::setResources(const std::vector &resources) { + resources_ = resources; + for(int dep1 = 0; dep1 != resources.size(); dep1++) { + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId)); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType); + } +} + +std::string IgnoreAggregateEvaluationResultsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void IgnoreAggregateEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/IgnoreAggregateEvaluationResultsResult.cc b/config/src/model/IgnoreAggregateEvaluationResultsResult.cc new file mode 100644 index 000000000..5056ee4c0 --- /dev/null +++ b/config/src/model/IgnoreAggregateEvaluationResultsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config; +using namespace AlibabaCloud::Config::Model; + +IgnoreAggregateEvaluationResultsResult::IgnoreAggregateEvaluationResultsResult() : + ServiceResult() +{} + +IgnoreAggregateEvaluationResultsResult::IgnoreAggregateEvaluationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IgnoreAggregateEvaluationResultsResult::~IgnoreAggregateEvaluationResultsResult() +{} + +void IgnoreAggregateEvaluationResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/config/src/model/IgnoreEvaluationResultsRequest.cc b/config/src/model/IgnoreEvaluationResultsRequest.cc new file mode 100644 index 000000000..30b6c1abd --- /dev/null +++ b/config/src/model/IgnoreEvaluationResultsRequest.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::IgnoreEvaluationResultsRequest; + +IgnoreEvaluationResultsRequest::IgnoreEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "IgnoreEvaluationResults") { + setMethod(HttpRequest::Method::Post); +} + +IgnoreEvaluationResultsRequest::~IgnoreEvaluationResultsRequest() {} + +std::string IgnoreEvaluationResultsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void IgnoreEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string IgnoreEvaluationResultsRequest::getReason() const { + return reason_; +} + +void IgnoreEvaluationResultsRequest::setReason(const std::string &reason) { + reason_ = reason; + setBodyParameter(std::string("Reason"), reason); +} + +std::vector IgnoreEvaluationResultsRequest::getResources() const { + return resources_; +} + +void IgnoreEvaluationResultsRequest::setResources(const std::vector &resources) { + resources_ = resources; + for(int dep1 = 0; dep1 != resources.size(); dep1++) { + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId)); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType); + } +} + diff --git a/config/src/model/PutEvaluationsResult.cc b/config/src/model/IgnoreEvaluationResultsResult.cc similarity index 68% rename from config/src/model/PutEvaluationsResult.cc rename to config/src/model/IgnoreEvaluationResultsResult.cc index 4119a6cee..9c4d0d7ac 100644 --- a/config/src/model/PutEvaluationsResult.cc +++ b/config/src/model/IgnoreEvaluationResultsResult.cc @@ -14,38 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -PutEvaluationsResult::PutEvaluationsResult() : +IgnoreEvaluationResultsResult::IgnoreEvaluationResultsResult() : ServiceResult() {} -PutEvaluationsResult::PutEvaluationsResult(const std::string &payload) : +IgnoreEvaluationResultsResult::IgnoreEvaluationResultsResult(const std::string &payload) : ServiceResult() { parse(payload); } -PutEvaluationsResult::~PutEvaluationsResult() +IgnoreEvaluationResultsResult::~IgnoreEvaluationResultsResult() {} -void PutEvaluationsResult::parse(const std::string &payload) +void IgnoreEvaluationResultsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Result"].isNull()) - result_ = value["Result"].asString() == "true"; } -bool PutEvaluationsResult::getResult()const -{ - return result_; -} - diff --git a/config/src/model/ListAggregateCompliancePacksRequest.cc b/config/src/model/ListAggregateCompliancePacksRequest.cc new file mode 100644 index 000000000..0e668fc0a --- /dev/null +++ b/config/src/model/ListAggregateCompliancePacksRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListAggregateCompliancePacksRequest; + +ListAggregateCompliancePacksRequest::ListAggregateCompliancePacksRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateCompliancePacks") { + setMethod(HttpRequest::Method::Get); +} + +ListAggregateCompliancePacksRequest::~ListAggregateCompliancePacksRequest() {} + +std::string ListAggregateCompliancePacksRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateCompliancePacksRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +int ListAggregateCompliancePacksRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAggregateCompliancePacksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListAggregateCompliancePacksRequest::getPageSize() const { + return pageSize_; +} + +void ListAggregateCompliancePacksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAggregateCompliancePacksRequest::getStatus() const { + return status_; +} + +void ListAggregateCompliancePacksRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/config/src/model/ListAggregateCompliancePacksResult.cc b/config/src/model/ListAggregateCompliancePacksResult.cc new file mode 100644 index 000000000..14f6fc7b4 --- /dev/null +++ b/config/src/model/ListAggregateCompliancePacksResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregateCompliancePacksResult::ListAggregateCompliancePacksResult() : + ServiceResult() +{} + +ListAggregateCompliancePacksResult::ListAggregateCompliancePacksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateCompliancePacksResult::~ListAggregateCompliancePacksResult() +{} + +void ListAggregateCompliancePacksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto compliancePacksResultNode = value["CompliancePacksResult"]; + if(!compliancePacksResultNode["PageSize"].isNull()) + compliancePacksResult_.pageSize = std::stoi(compliancePacksResultNode["PageSize"].asString()); + if(!compliancePacksResultNode["PageNumber"].isNull()) + compliancePacksResult_.pageNumber = std::stoi(compliancePacksResultNode["PageNumber"].asString()); + if(!compliancePacksResultNode["TotalCount"].isNull()) + compliancePacksResult_.totalCount = std::stol(compliancePacksResultNode["TotalCount"].asString()); + auto allCompliancePacksNode = compliancePacksResultNode["CompliancePacks"]["CompliancePacksItem"]; + for (auto compliancePacksResultNodeCompliancePacksCompliancePacksItem : allCompliancePacksNode) + { + CompliancePacksResult::CompliancePacksItem compliancePacksItemObject; + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["Status"].isNull()) + compliancePacksItemObject.status = compliancePacksResultNodeCompliancePacksCompliancePacksItem["Status"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["RiskLevel"].isNull()) + compliancePacksItemObject.riskLevel = std::stoi(compliancePacksResultNodeCompliancePacksCompliancePacksItem["RiskLevel"].asString()); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackId"].isNull()) + compliancePacksItemObject.compliancePackId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackId"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["Description"].isNull()) + compliancePacksItemObject.description = compliancePacksResultNodeCompliancePacksCompliancePacksItem["Description"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackName"].isNull()) + compliancePacksItemObject.compliancePackName = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackName"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["AccountId"].isNull()) + compliancePacksItemObject.accountId = std::stol(compliancePacksResultNodeCompliancePacksCompliancePacksItem["AccountId"].asString()); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["AggregatorId"].isNull()) + compliancePacksItemObject.aggregatorId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["AggregatorId"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackTemplateId"].isNull()) + compliancePacksItemObject.compliancePackTemplateId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackTemplateId"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CreateTimestamp"].isNull()) + compliancePacksItemObject.createTimestamp = std::stol(compliancePacksResultNodeCompliancePacksCompliancePacksItem["CreateTimestamp"].asString()); + compliancePacksResult_.compliancePacks.push_back(compliancePacksItemObject); + } + +} + +ListAggregateCompliancePacksResult::CompliancePacksResult ListAggregateCompliancePacksResult::getCompliancePacksResult()const +{ + return compliancePacksResult_; +} + diff --git a/config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc b/config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc new file mode 100644 index 000000000..00eb2f390 --- /dev/null +++ b/config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListAggregateConfigRuleEvaluationResultsRequest; + +ListAggregateConfigRuleEvaluationResultsRequest::ListAggregateConfigRuleEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateConfigRuleEvaluationResults") { + setMethod(HttpRequest::Method::Get); +} + +ListAggregateConfigRuleEvaluationResultsRequest::~ListAggregateConfigRuleEvaluationResultsRequest() {} + +std::string ListAggregateConfigRuleEvaluationResultsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +long ListAggregateConfigRuleEvaluationResultsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListAggregateConfigRuleEvaluationResultsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string ListAggregateConfigRuleEvaluationResultsRequest::getNextToken() const { + return nextToken_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListAggregateConfigRuleEvaluationResultsRequest::getMaxResults() const { + return maxResults_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListAggregateConfigRuleEvaluationResultsRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + +std::string ListAggregateConfigRuleEvaluationResultsRequest::getComplianceType() const { + return complianceType_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + diff --git a/config/src/model/ListAggregateConfigRuleEvaluationResultsResult.cc b/config/src/model/ListAggregateConfigRuleEvaluationResultsResult.cc new file mode 100644 index 000000000..3b112f305 --- /dev/null +++ b/config/src/model/ListAggregateConfigRuleEvaluationResultsResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregateConfigRuleEvaluationResultsResult::ListAggregateConfigRuleEvaluationResultsResult() : + ServiceResult() +{} + +ListAggregateConfigRuleEvaluationResultsResult::ListAggregateConfigRuleEvaluationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateConfigRuleEvaluationResultsResult::~ListAggregateConfigRuleEvaluationResultsResult() +{} + +void ListAggregateConfigRuleEvaluationResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto evaluationResultsNode = value["EvaluationResults"]; + if(!evaluationResultsNode["NextToken"].isNull()) + evaluationResults_.nextToken = evaluationResultsNode["NextToken"].asString(); + if(!evaluationResultsNode["MaxResults"].isNull()) + evaluationResults_.maxResults = std::stoi(evaluationResultsNode["MaxResults"].asString()); + auto allEvaluationResultListNode = evaluationResultsNode["EvaluationResultList"]["EvaluationResult"]; + for (auto evaluationResultsNodeEvaluationResultListEvaluationResult : allEvaluationResultListNode) + { + EvaluationResults::EvaluationResult evaluationResultObject; + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].isNull()) + evaluationResultObject.riskLevel = std::stoi(evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].asString()); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].isNull()) + evaluationResultObject.complianceType = evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].asString(); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].isNull()) + evaluationResultObject.resultRecordedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].asString()); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].isNull()) + evaluationResultObject.annotation = evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].asString(); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].isNull()) + evaluationResultObject.configRuleInvokedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].asString()); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].isNull()) + evaluationResultObject.invokingEventMessageType = evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].asString(); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].isNull()) + evaluationResultObject.remediationEnabled = evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].asString() == "true"; + auto evaluationResultIdentifierNode = value["EvaluationResultIdentifier"]; + if(!evaluationResultIdentifierNode["OrderingTimestamp"].isNull()) + evaluationResultObject.evaluationResultIdentifier.orderingTimestamp = std::stol(evaluationResultIdentifierNode["OrderingTimestamp"].asString()); + auto evaluationResultQualifierNode = evaluationResultIdentifierNode["EvaluationResultQualifier"]; + if(!evaluationResultQualifierNode["ResourceOwnerId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceOwnerId = std::stol(evaluationResultQualifierNode["ResourceOwnerId"].asString()); + if(!evaluationResultQualifierNode["ConfigRuleArn"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleArn = evaluationResultQualifierNode["ConfigRuleArn"].asString(); + if(!evaluationResultQualifierNode["ResourceType"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceType = evaluationResultQualifierNode["ResourceType"].asString(); + if(!evaluationResultQualifierNode["ConfigRuleName"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleName = evaluationResultQualifierNode["ConfigRuleName"].asString(); + if(!evaluationResultQualifierNode["ResourceId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceId = evaluationResultQualifierNode["ResourceId"].asString(); + if(!evaluationResultQualifierNode["ConfigRuleId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleId = evaluationResultQualifierNode["ConfigRuleId"].asString(); + if(!evaluationResultQualifierNode["ResourceName"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString(); + if(!evaluationResultQualifierNode["RegionId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString(); + if(!evaluationResultQualifierNode["CompliancePackId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.compliancePackId = evaluationResultQualifierNode["CompliancePackId"].asString(); + evaluationResults_.evaluationResultList.push_back(evaluationResultObject); + } + +} + +ListAggregateConfigRuleEvaluationResultsResult::EvaluationResults ListAggregateConfigRuleEvaluationResultsResult::getEvaluationResults()const +{ + return evaluationResults_; +} + diff --git a/config/src/model/ListAggregateConfigRulesRequest.cc b/config/src/model/ListAggregateConfigRulesRequest.cc new file mode 100644 index 000000000..507a87f19 --- /dev/null +++ b/config/src/model/ListAggregateConfigRulesRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListAggregateConfigRulesRequest; + +ListAggregateConfigRulesRequest::ListAggregateConfigRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateConfigRules") { + setMethod(HttpRequest::Method::Get); +} + +ListAggregateConfigRulesRequest::~ListAggregateConfigRulesRequest() {} + +bool ListAggregateConfigRulesRequest::getFilterInCompliancePack() const { + return filterInCompliancePack_; +} + +void ListAggregateConfigRulesRequest::setFilterInCompliancePack(bool filterInCompliancePack) { + filterInCompliancePack_ = filterInCompliancePack; + setParameter(std::string("FilterInCompliancePack"), filterInCompliancePack ? "true" : "false"); +} + +std::string ListAggregateConfigRulesRequest::getMessageType() const { + return messageType_; +} + +void ListAggregateConfigRulesRequest::setMessageType(const std::string &messageType) { + messageType_ = messageType; + setParameter(std::string("MessageType"), messageType); +} + +std::string ListAggregateConfigRulesRequest::getConfigRuleState() const { + return configRuleState_; +} + +void ListAggregateConfigRulesRequest::setConfigRuleState(const std::string &configRuleState) { + configRuleState_ = configRuleState; + setParameter(std::string("ConfigRuleState"), configRuleState); +} + +std::string ListAggregateConfigRulesRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string ListAggregateConfigRulesRequest::getFilterInCompliancePackExcludeIds() const { + return filterInCompliancePackExcludeIds_; +} + +void ListAggregateConfigRulesRequest::setFilterInCompliancePackExcludeIds(const std::string &filterInCompliancePackExcludeIds) { + filterInCompliancePackExcludeIds_ = filterInCompliancePackExcludeIds; + setParameter(std::string("FilterInCompliancePackExcludeIds"), filterInCompliancePackExcludeIds); +} + +int ListAggregateConfigRulesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAggregateConfigRulesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListAggregateConfigRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListAggregateConfigRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAggregateConfigRulesRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void ListAggregateConfigRulesRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + +std::string ListAggregateConfigRulesRequest::getComplianceType() const { + return complianceType_; +} + +void ListAggregateConfigRulesRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + +int ListAggregateConfigRulesRequest::getRiskLevel() const { + return riskLevel_; +} + +void ListAggregateConfigRulesRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + +std::string ListAggregateConfigRulesRequest::getConfigRuleName() const { + return configRuleName_; +} + +void ListAggregateConfigRulesRequest::setConfigRuleName(const std::string &configRuleName) { + configRuleName_ = configRuleName; + setParameter(std::string("ConfigRuleName"), configRuleName); +} + diff --git a/config/src/model/ListConfigRulesResult.cc b/config/src/model/ListAggregateConfigRulesResult.cc similarity index 83% rename from config/src/model/ListConfigRulesResult.cc rename to config/src/model/ListAggregateConfigRulesResult.cc index 82ae6d69e..4e7f0f880 100644 --- a/config/src/model/ListConfigRulesResult.cc +++ b/config/src/model/ListAggregateConfigRulesResult.cc @@ -14,44 +14,42 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -ListConfigRulesResult::ListConfigRulesResult() : +ListAggregateConfigRulesResult::ListAggregateConfigRulesResult() : ServiceResult() {} -ListConfigRulesResult::ListConfigRulesResult(const std::string &payload) : +ListAggregateConfigRulesResult::ListAggregateConfigRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListConfigRulesResult::~ListConfigRulesResult() +ListAggregateConfigRulesResult::~ListAggregateConfigRulesResult() {} -void ListConfigRulesResult::parse(const std::string &payload) +void ListAggregateConfigRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto configRulesNode = value["ConfigRules"]; - if(!configRulesNode["PageNumber"].isNull()) - configRules_.pageNumber = std::stoi(configRulesNode["PageNumber"].asString()); if(!configRulesNode["PageSize"].isNull()) configRules_.pageSize = std::stoi(configRulesNode["PageSize"].asString()); + if(!configRulesNode["PageNumber"].isNull()) + configRules_.pageNumber = std::stoi(configRulesNode["PageNumber"].asString()); if(!configRulesNode["TotalCount"].isNull()) configRules_.totalCount = std::stol(configRulesNode["TotalCount"].asString()); auto allConfigRuleListNode = configRulesNode["ConfigRuleList"]["ConfigRule"]; for (auto configRulesNodeConfigRuleListConfigRule : allConfigRuleListNode) { ConfigRules::ConfigRule configRuleObject; - if(!configRulesNodeConfigRuleListConfigRule["CompliancePackId"].isNull()) - configRuleObject.compliancePackId = configRulesNodeConfigRuleListConfigRule["CompliancePackId"].asString(); if(!configRulesNodeConfigRuleListConfigRule["RiskLevel"].isNull()) configRuleObject.riskLevel = std::stoi(configRulesNodeConfigRuleListConfigRule["RiskLevel"].asString()); if(!configRulesNodeConfigRuleListConfigRule["SourceOwner"].isNull()) @@ -80,8 +78,8 @@ void ListConfigRulesResult::parse(const std::string &payload) auto createByNode = value["CreateBy"]; if(!createByNode["CompliancePackId"].isNull()) configRuleObject.createBy.compliancePackId = createByNode["CompliancePackId"].asString(); - if(!createByNode["ConfigRuleSceneId"].isNull()) - configRuleObject.createBy.configRuleSceneId = createByNode["ConfigRuleSceneId"].asString(); + if(!createByNode["AggregatorName"].isNull()) + configRuleObject.createBy.aggregatorName = createByNode["AggregatorName"].asString(); if(!createByNode["CompliancePackName"].isNull()) configRuleObject.createBy.compliancePackName = createByNode["CompliancePackName"].asString(); if(!createByNode["CreatorName"].isNull()) @@ -90,14 +88,14 @@ void ListConfigRulesResult::parse(const std::string &payload) configRuleObject.createBy.creatorType = createByNode["CreatorType"].asString(); if(!createByNode["CreatorId"].isNull()) configRuleObject.createBy.creatorId = createByNode["CreatorId"].asString(); - if(!createByNode["ConfigRuleSceneName"].isNull()) - configRuleObject.createBy.configRuleSceneName = createByNode["ConfigRuleSceneName"].asString(); + if(!createByNode["AggregatorId"].isNull()) + configRuleObject.createBy.aggregatorId = createByNode["AggregatorId"].asString(); configRules_.configRuleList.push_back(configRuleObject); } } -ListConfigRulesResult::ConfigRules ListConfigRulesResult::getConfigRules()const +ListAggregateConfigRulesResult::ConfigRules ListAggregateConfigRulesResult::getConfigRules()const { return configRules_; } diff --git a/config/src/model/ListAggregateDiscoveredResourcesRequest.cc b/config/src/model/ListAggregateDiscoveredResourcesRequest.cc deleted file mode 100644 index 83b4ef05d..000000000 --- a/config/src/model/ListAggregateDiscoveredResourcesRequest.cc +++ /dev/null @@ -1,117 +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::Config::Model::ListAggregateDiscoveredResourcesRequest; - -ListAggregateDiscoveredResourcesRequest::ListAggregateDiscoveredResourcesRequest() - : RpcServiceRequest("config", "2019-01-08", "ListAggregateDiscoveredResources") { - setMethod(HttpRequest::Method::Get); -} - -ListAggregateDiscoveredResourcesRequest::~ListAggregateDiscoveredResourcesRequest() {} - -int ListAggregateDiscoveredResourcesRequest::getResourceDeleted() const { - return resourceDeleted_; -} - -void ListAggregateDiscoveredResourcesRequest::setResourceDeleted(int resourceDeleted) { - resourceDeleted_ = resourceDeleted; - setParameter(std::string("ResourceDeleted"), std::to_string(resourceDeleted)); -} - -long ListAggregateDiscoveredResourcesRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ListAggregateDiscoveredResourcesRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ListAggregateDiscoveredResourcesRequest::getRegions() const { - return regions_; -} - -void ListAggregateDiscoveredResourcesRequest::setRegions(const std::string ®ions) { - regions_ = regions; - setParameter(std::string("Regions"), regions); -} - -std::string ListAggregateDiscoveredResourcesRequest::getAggregatorId() const { - return aggregatorId_; -} - -void ListAggregateDiscoveredResourcesRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -int ListAggregateDiscoveredResourcesRequest::getPageNumber() const { - return pageNumber_; -} - -void ListAggregateDiscoveredResourcesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string ListAggregateDiscoveredResourcesRequest::getFolderId() const { - return folderId_; -} - -void ListAggregateDiscoveredResourcesRequest::setFolderId(const std::string &folderId) { - folderId_ = folderId; - setParameter(std::string("FolderId"), folderId); -} - -int ListAggregateDiscoveredResourcesRequest::getPageSize() const { - return pageSize_; -} - -void ListAggregateDiscoveredResourcesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListAggregateDiscoveredResourcesRequest::getComplianceType() const { - return complianceType_; -} - -void ListAggregateDiscoveredResourcesRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - -std::string ListAggregateDiscoveredResourcesRequest::getResourceId() const { - return resourceId_; -} - -void ListAggregateDiscoveredResourcesRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -std::string ListAggregateDiscoveredResourcesRequest::getResourceTypes() const { - return resourceTypes_; -} - -void ListAggregateDiscoveredResourcesRequest::setResourceTypes(const std::string &resourceTypes) { - resourceTypes_ = resourceTypes; - setParameter(std::string("ResourceTypes"), resourceTypes); -} - diff --git a/config/src/model/ListAggregateDiscoveredResourcesResult.cc b/config/src/model/ListAggregateDiscoveredResourcesResult.cc deleted file mode 100644 index 4975c6773..000000000 --- a/config/src/model/ListAggregateDiscoveredResourcesResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListAggregateDiscoveredResourcesResult::ListAggregateDiscoveredResourcesResult() : - ServiceResult() -{} - -ListAggregateDiscoveredResourcesResult::ListAggregateDiscoveredResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAggregateDiscoveredResourcesResult::~ListAggregateDiscoveredResourcesResult() -{} - -void ListAggregateDiscoveredResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto discoveredResourceProfilesNode = value["DiscoveredResourceProfiles"]; - if(!discoveredResourceProfilesNode["PageNumber"].isNull()) - discoveredResourceProfiles_.pageNumber = std::stoi(discoveredResourceProfilesNode["PageNumber"].asString()); - if(!discoveredResourceProfilesNode["PageSize"].isNull()) - discoveredResourceProfiles_.pageSize = std::stoi(discoveredResourceProfilesNode["PageSize"].asString()); - if(!discoveredResourceProfilesNode["TotalCount"].isNull()) - discoveredResourceProfiles_.totalCount = std::stoi(discoveredResourceProfilesNode["TotalCount"].asString()); - auto allDiscoveredResourceProfileListNode = discoveredResourceProfilesNode["DiscoveredResourceProfileList"]["DiscoveredResourceProfile"]; - for (auto discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile : allDiscoveredResourceProfileListNode) - { - DiscoveredResourceProfiles::DiscoveredResourceProfile discoveredResourceProfileObject; - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].isNull()) - discoveredResourceProfileObject.resourceType = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Region"].isNull()) - discoveredResourceProfileObject.region = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Region"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceCreationTime"].isNull()) - discoveredResourceProfileObject.resourceCreationTime = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceCreationTime"].asString()); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].isNull()) - discoveredResourceProfileObject.tags = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].isNull()) - discoveredResourceProfileObject.accountId = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].asString()); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceId"].isNull()) - discoveredResourceProfileObject.resourceId = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceId"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceName"].isNull()) - discoveredResourceProfileObject.resourceName = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceName"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].isNull()) - discoveredResourceProfileObject.resourceDeleted = std::stoi(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].asString()); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].isNull()) - discoveredResourceProfileObject.resourceStatus = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceOwnerId"].isNull()) - discoveredResourceProfileObject.resourceOwnerId = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceOwnerId"].asString()); - discoveredResourceProfiles_.discoveredResourceProfileList.push_back(discoveredResourceProfileObject); - } - -} - -ListAggregateDiscoveredResourcesResult::DiscoveredResourceProfiles ListAggregateDiscoveredResourcesResult::getDiscoveredResourceProfiles()const -{ - return discoveredResourceProfiles_; -} - diff --git a/config/src/model/ListAggregateResourceEvaluationResultsRequest.cc b/config/src/model/ListAggregateResourceEvaluationResultsRequest.cc new file mode 100644 index 000000000..7e351dac6 --- /dev/null +++ b/config/src/model/ListAggregateResourceEvaluationResultsRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListAggregateResourceEvaluationResultsRequest; + +ListAggregateResourceEvaluationResultsRequest::ListAggregateResourceEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateResourceEvaluationResults") { + setMethod(HttpRequest::Method::Get); +} + +ListAggregateResourceEvaluationResultsRequest::~ListAggregateResourceEvaluationResultsRequest() {} + +std::string ListAggregateResourceEvaluationResultsRequest::getResourceId() const { + return resourceId_; +} + +void ListAggregateResourceEvaluationResultsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateResourceEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getResourceType() const { + return resourceType_; +} + +void ListAggregateResourceEvaluationResultsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getNextToken() const { + return nextToken_; +} + +void ListAggregateResourceEvaluationResultsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListAggregateResourceEvaluationResultsRequest::getMaxResults() const { + return maxResults_; +} + +void ListAggregateResourceEvaluationResultsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getRegion() const { + return region_; +} + +void ListAggregateResourceEvaluationResultsRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getComplianceType() const { + return complianceType_; +} + +void ListAggregateResourceEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + diff --git a/config/src/model/DescribeEvaluationResultsResult.cc b/config/src/model/ListAggregateResourceEvaluationResultsResult.cc similarity index 84% rename from config/src/model/DescribeEvaluationResultsResult.cc rename to config/src/model/ListAggregateResourceEvaluationResultsResult.cc index 9729288db..96a973afc 100644 --- a/config/src/model/DescribeEvaluationResultsResult.cc +++ b/config/src/model/ListAggregateResourceEvaluationResultsResult.cc @@ -14,38 +14,36 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DescribeEvaluationResultsResult::DescribeEvaluationResultsResult() : +ListAggregateResourceEvaluationResultsResult::ListAggregateResourceEvaluationResultsResult() : ServiceResult() {} -DescribeEvaluationResultsResult::DescribeEvaluationResultsResult(const std::string &payload) : +ListAggregateResourceEvaluationResultsResult::ListAggregateResourceEvaluationResultsResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeEvaluationResultsResult::~DescribeEvaluationResultsResult() +ListAggregateResourceEvaluationResultsResult::~ListAggregateResourceEvaluationResultsResult() {} -void DescribeEvaluationResultsResult::parse(const std::string &payload) +void ListAggregateResourceEvaluationResultsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto evaluationResultsNode = value["EvaluationResults"]; - if(!evaluationResultsNode["PageNumber"].isNull()) - evaluationResults_.pageNumber = std::stoi(evaluationResultsNode["PageNumber"].asString()); - if(!evaluationResultsNode["PageSize"].isNull()) - evaluationResults_.pageSize = std::stoi(evaluationResultsNode["PageSize"].asString()); - if(!evaluationResultsNode["TotalCount"].isNull()) - evaluationResults_.totalCount = std::stol(evaluationResultsNode["TotalCount"].asString()); + if(!evaluationResultsNode["NextToken"].isNull()) + evaluationResults_.nextToken = evaluationResultsNode["NextToken"].asString(); + if(!evaluationResultsNode["MaxResults"].isNull()) + evaluationResults_.maxResults = std::stoi(evaluationResultsNode["MaxResults"].asString()); auto allEvaluationResultListNode = evaluationResultsNode["EvaluationResultList"]["EvaluationResult"]; for (auto evaluationResultsNodeEvaluationResultListEvaluationResult : allEvaluationResultListNode) { @@ -87,7 +85,7 @@ void DescribeEvaluationResultsResult::parse(const std::string &payload) } -DescribeEvaluationResultsResult::EvaluationResults DescribeEvaluationResultsResult::getEvaluationResults()const +ListAggregateResourceEvaluationResultsResult::EvaluationResults ListAggregateResourceEvaluationResultsResult::getEvaluationResults()const { return evaluationResults_; } diff --git a/config/src/model/ListAggregatorsRequest.cc b/config/src/model/ListAggregatorsRequest.cc new file mode 100644 index 000000000..502eacacd --- /dev/null +++ b/config/src/model/ListAggregatorsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListAggregatorsRequest; + +ListAggregatorsRequest::ListAggregatorsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregators") { + setMethod(HttpRequest::Method::Get); +} + +ListAggregatorsRequest::~ListAggregatorsRequest() {} + +std::string ListAggregatorsRequest::getNextToken() const { + return nextToken_; +} + +void ListAggregatorsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListAggregatorsRequest::getMaxResults() const { + return maxResults_; +} + +void ListAggregatorsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/config/src/model/ListAggregatorsResult.cc b/config/src/model/ListAggregatorsResult.cc new file mode 100644 index 000000000..3de4440c1 --- /dev/null +++ b/config/src/model/ListAggregatorsResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregatorsResult::ListAggregatorsResult() : + ServiceResult() +{} + +ListAggregatorsResult::ListAggregatorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregatorsResult::~ListAggregatorsResult() +{} + +void ListAggregatorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto aggregatorsResultNode = value["AggregatorsResult"]; + if(!aggregatorsResultNode["NextToken"].isNull()) + aggregatorsResult_.nextToken = aggregatorsResultNode["NextToken"].asString(); + if(!aggregatorsResultNode["MaxResults"].isNull()) + aggregatorsResult_.maxResults = std::stoi(aggregatorsResultNode["MaxResults"].asString()); + auto allAggregatorsNode = aggregatorsResultNode["Aggregators"]["AggregatorsItem"]; + for (auto aggregatorsResultNodeAggregatorsAggregatorsItem : allAggregatorsNode) + { + AggregatorsResult::AggregatorsItem aggregatorsItemObject; + if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorCreateTimestamp"].isNull()) + aggregatorsItemObject.aggregatorCreateTimestamp = std::stol(aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorCreateTimestamp"].asString()); + if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorAccountCount"].isNull()) + aggregatorsItemObject.aggregatorAccountCount = std::stol(aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorAccountCount"].asString()); + if(!aggregatorsResultNodeAggregatorsAggregatorsItem["Description"].isNull()) + aggregatorsItemObject.description = aggregatorsResultNodeAggregatorsAggregatorsItem["Description"].asString(); + if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorName"].isNull()) + aggregatorsItemObject.aggregatorName = aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorName"].asString(); + if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorStatus"].isNull()) + aggregatorsItemObject.aggregatorStatus = std::stoi(aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorStatus"].asString()); + if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorType"].isNull()) + aggregatorsItemObject.aggregatorType = aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorType"].asString(); + if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AccountId"].isNull()) + aggregatorsItemObject.accountId = std::stol(aggregatorsResultNodeAggregatorsAggregatorsItem["AccountId"].asString()); + if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorId"].isNull()) + aggregatorsItemObject.aggregatorId = aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorId"].asString(); + aggregatorsResult_.aggregators.push_back(aggregatorsItemObject); + } + +} + +ListAggregatorsResult::AggregatorsResult ListAggregatorsResult::getAggregatorsResult()const +{ + return aggregatorsResult_; +} + diff --git a/config/src/model/ListCompliancePackTemplatesRequest.cc b/config/src/model/ListCompliancePackTemplatesRequest.cc new file mode 100644 index 000000000..4f7138c58 --- /dev/null +++ b/config/src/model/ListCompliancePackTemplatesRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListCompliancePackTemplatesRequest; + +ListCompliancePackTemplatesRequest::ListCompliancePackTemplatesRequest() + : RpcServiceRequest("config", "2020-09-07", "ListCompliancePackTemplates") { + setMethod(HttpRequest::Method::Get); +} + +ListCompliancePackTemplatesRequest::~ListCompliancePackTemplatesRequest() {} + +std::string ListCompliancePackTemplatesRequest::getCompliancePackTemplateId() const { + return compliancePackTemplateId_; +} + +void ListCompliancePackTemplatesRequest::setCompliancePackTemplateId(const std::string &compliancePackTemplateId) { + compliancePackTemplateId_ = compliancePackTemplateId; + setParameter(std::string("CompliancePackTemplateId"), compliancePackTemplateId); +} + +int ListCompliancePackTemplatesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCompliancePackTemplatesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListCompliancePackTemplatesRequest::getPageSize() const { + return pageSize_; +} + +void ListCompliancePackTemplatesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/config/src/model/ListCompliancePackTemplatesResult.cc b/config/src/model/ListCompliancePackTemplatesResult.cc new file mode 100644 index 000000000..853fd774f --- /dev/null +++ b/config/src/model/ListCompliancePackTemplatesResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListCompliancePackTemplatesResult::ListCompliancePackTemplatesResult() : + ServiceResult() +{} + +ListCompliancePackTemplatesResult::ListCompliancePackTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCompliancePackTemplatesResult::~ListCompliancePackTemplatesResult() +{} + +void ListCompliancePackTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto compliancePackTemplatesResultNode = value["CompliancePackTemplatesResult"]; + if(!compliancePackTemplatesResultNode["PageSize"].isNull()) + compliancePackTemplatesResult_.pageSize = std::stoi(compliancePackTemplatesResultNode["PageSize"].asString()); + if(!compliancePackTemplatesResultNode["PageNumber"].isNull()) + compliancePackTemplatesResult_.pageNumber = std::stoi(compliancePackTemplatesResultNode["PageNumber"].asString()); + if(!compliancePackTemplatesResultNode["TotalCount"].isNull()) + compliancePackTemplatesResult_.totalCount = std::stol(compliancePackTemplatesResultNode["TotalCount"].asString()); + auto allCompliancePackTemplatesNode = compliancePackTemplatesResultNode["CompliancePackTemplates"]["CompliancePackTemplate"]; + for (auto compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate : allCompliancePackTemplatesNode) + { + CompliancePackTemplatesResult::CompliancePackTemplate compliancePackTemplateObject; + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["RiskLevel"].isNull()) + compliancePackTemplateObject.riskLevel = std::stoi(compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["RiskLevel"].asString()); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["Description"].isNull()) + compliancePackTemplateObject.description = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["Description"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["AutomationHelpUrl"].isNull()) + compliancePackTemplateObject.automationHelpUrl = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["AutomationHelpUrl"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["CompliancePackTemplateName"].isNull()) + compliancePackTemplateObject.compliancePackTemplateName = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["CompliancePackTemplateName"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["CompliancePackTemplateId"].isNull()) + compliancePackTemplateObject.compliancePackTemplateId = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["CompliancePackTemplateId"].asString(); + auto allConfigRulesNode = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["ConfigRules"]["ConfigRulesItem"]; + for (auto compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem : allConfigRulesNode) + { + CompliancePackTemplatesResult::CompliancePackTemplate::ConfigRulesItem configRulesObject; + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["Description"].isNull()) + configRulesObject.description = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["Description"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ManagedRuleIdentifier"].isNull()) + configRulesObject.managedRuleIdentifier = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ManagedRuleIdentifier"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ManagedRuleName"].isNull()) + configRulesObject.managedRuleName = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ManagedRuleName"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["RiskLevel"].isNull()) + configRulesObject.riskLevel = std::stoi(compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["RiskLevel"].asString()); + auto allConfigRuleParametersNode = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ConfigRuleParameters"]["ConfigRuleParametersItem"]; + for (auto compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem : allConfigRuleParametersNode) + { + CompliancePackTemplatesResult::CompliancePackTemplate::ConfigRulesItem::ConfigRuleParametersItem configRuleParametersObject; + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].isNull()) + configRuleParametersObject.required = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].asString() == "true"; + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].isNull()) + configRuleParametersObject.parameterName = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].isNull()) + configRuleParametersObject.parameterValue = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].asString(); + configRulesObject.configRuleParameters.push_back(configRuleParametersObject); + } + compliancePackTemplateObject.configRules.push_back(configRulesObject); + } + compliancePackTemplatesResult_.compliancePackTemplates.push_back(compliancePackTemplateObject); + } + +} + +ListCompliancePackTemplatesResult::CompliancePackTemplatesResult ListCompliancePackTemplatesResult::getCompliancePackTemplatesResult()const +{ + return compliancePackTemplatesResult_; +} + diff --git a/config/src/model/ListCompliancePacksRequest.cc b/config/src/model/ListCompliancePacksRequest.cc new file mode 100644 index 000000000..3ad0c4f25 --- /dev/null +++ b/config/src/model/ListCompliancePacksRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListCompliancePacksRequest; + +ListCompliancePacksRequest::ListCompliancePacksRequest() + : RpcServiceRequest("config", "2020-09-07", "ListCompliancePacks") { + setMethod(HttpRequest::Method::Get); +} + +ListCompliancePacksRequest::~ListCompliancePacksRequest() {} + +int ListCompliancePacksRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCompliancePacksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListCompliancePacksRequest::getPageSize() const { + return pageSize_; +} + +void ListCompliancePacksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListCompliancePacksRequest::getStatus() const { + return status_; +} + +void ListCompliancePacksRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/config/src/model/ListCompliancePacksResult.cc b/config/src/model/ListCompliancePacksResult.cc new file mode 100644 index 000000000..b308a1a58 --- /dev/null +++ b/config/src/model/ListCompliancePacksResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListCompliancePacksResult::ListCompliancePacksResult() : + ServiceResult() +{} + +ListCompliancePacksResult::ListCompliancePacksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCompliancePacksResult::~ListCompliancePacksResult() +{} + +void ListCompliancePacksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto compliancePacksResultNode = value["CompliancePacksResult"]; + if(!compliancePacksResultNode["PageSize"].isNull()) + compliancePacksResult_.pageSize = std::stoi(compliancePacksResultNode["PageSize"].asString()); + if(!compliancePacksResultNode["PageNumber"].isNull()) + compliancePacksResult_.pageNumber = std::stoi(compliancePacksResultNode["PageNumber"].asString()); + if(!compliancePacksResultNode["TotalCount"].isNull()) + compliancePacksResult_.totalCount = std::stol(compliancePacksResultNode["TotalCount"].asString()); + auto allCompliancePacksNode = compliancePacksResultNode["CompliancePacks"]["CompliancePacksItem"]; + for (auto compliancePacksResultNodeCompliancePacksCompliancePacksItem : allCompliancePacksNode) + { + CompliancePacksResult::CompliancePacksItem compliancePacksItemObject; + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["Status"].isNull()) + compliancePacksItemObject.status = compliancePacksResultNodeCompliancePacksCompliancePacksItem["Status"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackId"].isNull()) + compliancePacksItemObject.compliancePackId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackId"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["RiskLevel"].isNull()) + compliancePacksItemObject.riskLevel = std::stoi(compliancePacksResultNodeCompliancePacksCompliancePacksItem["RiskLevel"].asString()); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["Description"].isNull()) + compliancePacksItemObject.description = compliancePacksResultNodeCompliancePacksCompliancePacksItem["Description"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackName"].isNull()) + compliancePacksItemObject.compliancePackName = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackName"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["AccountId"].isNull()) + compliancePacksItemObject.accountId = std::stol(compliancePacksResultNodeCompliancePacksCompliancePacksItem["AccountId"].asString()); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackTemplateId"].isNull()) + compliancePacksItemObject.compliancePackTemplateId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackTemplateId"].asString(); + if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CreateTimestamp"].isNull()) + compliancePacksItemObject.createTimestamp = std::stol(compliancePacksResultNodeCompliancePacksCompliancePacksItem["CreateTimestamp"].asString()); + compliancePacksResult_.compliancePacks.push_back(compliancePacksItemObject); + } + +} + +ListCompliancePacksResult::CompliancePacksResult ListCompliancePacksResult::getCompliancePacksResult()const +{ + return compliancePacksResult_; +} + diff --git a/config/src/model/ListConfigRuleEvaluationResultsRequest.cc b/config/src/model/ListConfigRuleEvaluationResultsRequest.cc new file mode 100644 index 000000000..95efd1e1b --- /dev/null +++ b/config/src/model/ListConfigRuleEvaluationResultsRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListConfigRuleEvaluationResultsRequest; + +ListConfigRuleEvaluationResultsRequest::ListConfigRuleEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListConfigRuleEvaluationResults") { + setMethod(HttpRequest::Method::Get); +} + +ListConfigRuleEvaluationResultsRequest::~ListConfigRuleEvaluationResultsRequest() {} + +std::string ListConfigRuleEvaluationResultsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void ListConfigRuleEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string ListConfigRuleEvaluationResultsRequest::getNextToken() const { + return nextToken_; +} + +void ListConfigRuleEvaluationResultsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListConfigRuleEvaluationResultsRequest::getMaxResults() const { + return maxResults_; +} + +void ListConfigRuleEvaluationResultsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListConfigRuleEvaluationResultsRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void ListConfigRuleEvaluationResultsRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + +std::string ListConfigRuleEvaluationResultsRequest::getComplianceType() const { + return complianceType_; +} + +void ListConfigRuleEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + diff --git a/config/src/model/ListConfigRuleEvaluationResultsResult.cc b/config/src/model/ListConfigRuleEvaluationResultsResult.cc new file mode 100644 index 000000000..49e98902c --- /dev/null +++ b/config/src/model/ListConfigRuleEvaluationResultsResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListConfigRuleEvaluationResultsResult::ListConfigRuleEvaluationResultsResult() : + ServiceResult() +{} + +ListConfigRuleEvaluationResultsResult::ListConfigRuleEvaluationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListConfigRuleEvaluationResultsResult::~ListConfigRuleEvaluationResultsResult() +{} + +void ListConfigRuleEvaluationResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto evaluationResultsNode = value["EvaluationResults"]; + if(!evaluationResultsNode["NextToken"].isNull()) + evaluationResults_.nextToken = evaluationResultsNode["NextToken"].asString(); + if(!evaluationResultsNode["MaxResults"].isNull()) + evaluationResults_.maxResults = std::stoi(evaluationResultsNode["MaxResults"].asString()); + auto allEvaluationResultListNode = evaluationResultsNode["EvaluationResultList"]["EvaluationResult"]; + for (auto evaluationResultsNodeEvaluationResultListEvaluationResult : allEvaluationResultListNode) + { + EvaluationResults::EvaluationResult evaluationResultObject; + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].isNull()) + evaluationResultObject.riskLevel = std::stoi(evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].asString()); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].isNull()) + evaluationResultObject.complianceType = evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].asString(); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].isNull()) + evaluationResultObject.resultRecordedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].asString()); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].isNull()) + evaluationResultObject.annotation = evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].asString(); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].isNull()) + evaluationResultObject.configRuleInvokedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].asString()); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].isNull()) + evaluationResultObject.invokingEventMessageType = evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].asString(); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].isNull()) + evaluationResultObject.remediationEnabled = evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].asString() == "true"; + auto evaluationResultIdentifierNode = value["EvaluationResultIdentifier"]; + if(!evaluationResultIdentifierNode["OrderingTimestamp"].isNull()) + evaluationResultObject.evaluationResultIdentifier.orderingTimestamp = std::stol(evaluationResultIdentifierNode["OrderingTimestamp"].asString()); + auto evaluationResultQualifierNode = evaluationResultIdentifierNode["EvaluationResultQualifier"]; + if(!evaluationResultQualifierNode["ResourceOwnerId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceOwnerId = std::stol(evaluationResultQualifierNode["ResourceOwnerId"].asString()); + if(!evaluationResultQualifierNode["ConfigRuleArn"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleArn = evaluationResultQualifierNode["ConfigRuleArn"].asString(); + if(!evaluationResultQualifierNode["ResourceType"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceType = evaluationResultQualifierNode["ResourceType"].asString(); + if(!evaluationResultQualifierNode["ConfigRuleName"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleName = evaluationResultQualifierNode["ConfigRuleName"].asString(); + if(!evaluationResultQualifierNode["ResourceId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceId = evaluationResultQualifierNode["ResourceId"].asString(); + if(!evaluationResultQualifierNode["ConfigRuleId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleId = evaluationResultQualifierNode["ConfigRuleId"].asString(); + if(!evaluationResultQualifierNode["ResourceName"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString(); + if(!evaluationResultQualifierNode["RegionId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString(); + if(!evaluationResultQualifierNode["CompliancePackId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.compliancePackId = evaluationResultQualifierNode["CompliancePackId"].asString(); + evaluationResults_.evaluationResultList.push_back(evaluationResultObject); + } + +} + +ListConfigRuleEvaluationResultsResult::EvaluationResults ListConfigRuleEvaluationResultsResult::getEvaluationResults()const +{ + return evaluationResults_; +} + diff --git a/config/src/model/ListConfigRulesRequest.cc b/config/src/model/ListConfigRulesRequest.cc deleted file mode 100644 index f6f8d9e62..000000000 --- a/config/src/model/ListConfigRulesRequest.cc +++ /dev/null @@ -1,144 +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::Config::Model::ListConfigRulesRequest; - -ListConfigRulesRequest::ListConfigRulesRequest() - : RpcServiceRequest("config", "2019-01-08", "ListConfigRules") { - setMethod(HttpRequest::Method::Get); -} - -ListConfigRulesRequest::~ListConfigRulesRequest() {} - -bool ListConfigRulesRequest::getMultiAccount() const { - return multiAccount_; -} - -void ListConfigRulesRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -bool ListConfigRulesRequest::getFilterInCompliancePack() const { - return filterInCompliancePack_; -} - -void ListConfigRulesRequest::setFilterInCompliancePack(bool filterInCompliancePack) { - filterInCompliancePack_ = filterInCompliancePack; - setParameter(std::string("FilterInCompliancePack"), filterInCompliancePack ? "true" : "false"); -} - -std::string ListConfigRulesRequest::getMessageType() const { - return messageType_; -} - -void ListConfigRulesRequest::setMessageType(const std::string &messageType) { - messageType_ = messageType; - setParameter(std::string("MessageType"), messageType); -} - -std::string ListConfigRulesRequest::getConfigRuleState() const { - return configRuleState_; -} - -void ListConfigRulesRequest::setConfigRuleState(const std::string &configRuleState) { - configRuleState_ = configRuleState; - setParameter(std::string("ConfigRuleState"), configRuleState); -} - -std::string ListConfigRulesRequest::getFilterInCompliancePackExcludeIds() const { - return filterInCompliancePackExcludeIds_; -} - -void ListConfigRulesRequest::setFilterInCompliancePackExcludeIds(const std::string &filterInCompliancePackExcludeIds) { - filterInCompliancePackExcludeIds_ = filterInCompliancePackExcludeIds; - setParameter(std::string("FilterInCompliancePackExcludeIds"), filterInCompliancePackExcludeIds); -} - -int ListConfigRulesRequest::getPageNumber() const { - return pageNumber_; -} - -void ListConfigRulesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int ListConfigRulesRequest::getPageSize() const { - return pageSize_; -} - -void ListConfigRulesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListConfigRulesRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void ListConfigRulesRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - -std::string ListConfigRulesRequest::getComplianceType() const { - return complianceType_; -} - -void ListConfigRulesRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - -std::string ListConfigRulesRequest::getConfigRuleSceneId() const { - return configRuleSceneId_; -} - -void ListConfigRulesRequest::setConfigRuleSceneId(const std::string &configRuleSceneId) { - configRuleSceneId_ = configRuleSceneId; - setParameter(std::string("ConfigRuleSceneId"), configRuleSceneId); -} - -int ListConfigRulesRequest::getRiskLevel() const { - return riskLevel_; -} - -void ListConfigRulesRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - -std::string ListConfigRulesRequest::getConfigRuleName() const { - return configRuleName_; -} - -void ListConfigRulesRequest::setConfigRuleName(const std::string &configRuleName) { - configRuleName_ = configRuleName; - setParameter(std::string("ConfigRuleName"), configRuleName); -} - -long ListConfigRulesRequest::getMemberId() const { - return memberId_; -} - -void ListConfigRulesRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/ListDiscoveredResourcesRequest.cc b/config/src/model/ListDiscoveredResourcesRequest.cc deleted file mode 100644 index 02d6c4e9d..000000000 --- a/config/src/model/ListDiscoveredResourcesRequest.cc +++ /dev/null @@ -1,108 +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::Config::Model::ListDiscoveredResourcesRequest; - -ListDiscoveredResourcesRequest::ListDiscoveredResourcesRequest() - : RpcServiceRequest("config", "2019-01-08", "ListDiscoveredResources") { - setMethod(HttpRequest::Method::Get); -} - -ListDiscoveredResourcesRequest::~ListDiscoveredResourcesRequest() {} - -int ListDiscoveredResourcesRequest::getResourceDeleted() const { - return resourceDeleted_; -} - -void ListDiscoveredResourcesRequest::setResourceDeleted(int resourceDeleted) { - resourceDeleted_ = resourceDeleted; - setParameter(std::string("ResourceDeleted"), std::to_string(resourceDeleted)); -} - -bool ListDiscoveredResourcesRequest::getMultiAccount() const { - return multiAccount_; -} - -void ListDiscoveredResourcesRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -std::string ListDiscoveredResourcesRequest::getRegions() const { - return regions_; -} - -void ListDiscoveredResourcesRequest::setRegions(const std::string ®ions) { - regions_ = regions; - setParameter(std::string("Regions"), regions); -} - -int ListDiscoveredResourcesRequest::getPageNumber() const { - return pageNumber_; -} - -void ListDiscoveredResourcesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int ListDiscoveredResourcesRequest::getPageSize() const { - return pageSize_; -} - -void ListDiscoveredResourcesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListDiscoveredResourcesRequest::getComplianceType() const { - return complianceType_; -} - -void ListDiscoveredResourcesRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - -std::string ListDiscoveredResourcesRequest::getResourceId() const { - return resourceId_; -} - -void ListDiscoveredResourcesRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -std::string ListDiscoveredResourcesRequest::getResourceTypes() const { - return resourceTypes_; -} - -void ListDiscoveredResourcesRequest::setResourceTypes(const std::string &resourceTypes) { - resourceTypes_ = resourceTypes; - setParameter(std::string("ResourceTypes"), resourceTypes); -} - -long ListDiscoveredResourcesRequest::getMemberId() const { - return memberId_; -} - -void ListDiscoveredResourcesRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/ListDiscoveredResourcesResult.cc b/config/src/model/ListDiscoveredResourcesResult.cc deleted file mode 100644 index 4dd28dcc4..000000000 --- a/config/src/model/ListDiscoveredResourcesResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListDiscoveredResourcesResult::ListDiscoveredResourcesResult() : - ServiceResult() -{} - -ListDiscoveredResourcesResult::ListDiscoveredResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListDiscoveredResourcesResult::~ListDiscoveredResourcesResult() -{} - -void ListDiscoveredResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto discoveredResourceProfilesNode = value["DiscoveredResourceProfiles"]; - if(!discoveredResourceProfilesNode["PageNumber"].isNull()) - discoveredResourceProfiles_.pageNumber = std::stoi(discoveredResourceProfilesNode["PageNumber"].asString()); - if(!discoveredResourceProfilesNode["PageSize"].isNull()) - discoveredResourceProfiles_.pageSize = std::stoi(discoveredResourceProfilesNode["PageSize"].asString()); - if(!discoveredResourceProfilesNode["TotalCount"].isNull()) - discoveredResourceProfiles_.totalCount = std::stoi(discoveredResourceProfilesNode["TotalCount"].asString()); - auto allDiscoveredResourceProfileListNode = discoveredResourceProfilesNode["DiscoveredResourceProfileList"]["DiscoveredResourceProfile"]; - for (auto discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile : allDiscoveredResourceProfileListNode) - { - DiscoveredResourceProfiles::DiscoveredResourceProfile discoveredResourceProfileObject; - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].isNull()) - discoveredResourceProfileObject.resourceType = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Region"].isNull()) - discoveredResourceProfileObject.region = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Region"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceCreationTime"].isNull()) - discoveredResourceProfileObject.resourceCreationTime = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceCreationTime"].asString()); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].isNull()) - discoveredResourceProfileObject.tags = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].isNull()) - discoveredResourceProfileObject.accountId = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].asString()); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceId"].isNull()) - discoveredResourceProfileObject.resourceId = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceId"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceName"].isNull()) - discoveredResourceProfileObject.resourceName = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceName"].asString(); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].isNull()) - discoveredResourceProfileObject.resourceDeleted = std::stoi(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].asString()); - if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].isNull()) - discoveredResourceProfileObject.resourceStatus = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].asString(); - discoveredResourceProfiles_.discoveredResourceProfileList.push_back(discoveredResourceProfileObject); - } - -} - -ListDiscoveredResourcesResult::DiscoveredResourceProfiles ListDiscoveredResourcesResult::getDiscoveredResourceProfiles()const -{ - return discoveredResourceProfiles_; -} - diff --git a/config/src/model/ListRemediationTemplatesRequest.cc b/config/src/model/ListRemediationTemplatesRequest.cc deleted file mode 100644 index 03119c152..000000000 --- a/config/src/model/ListRemediationTemplatesRequest.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::Config::Model::ListRemediationTemplatesRequest; - -ListRemediationTemplatesRequest::ListRemediationTemplatesRequest() - : RpcServiceRequest("config", "2019-01-08", "ListRemediationTemplates") { - setMethod(HttpRequest::Method::Post); -} - -ListRemediationTemplatesRequest::~ListRemediationTemplatesRequest() {} - -std::string ListRemediationTemplatesRequest::getManagedRuleIdentifier() const { - return managedRuleIdentifier_; -} - -void ListRemediationTemplatesRequest::setManagedRuleIdentifier(const std::string &managedRuleIdentifier) { - managedRuleIdentifier_ = managedRuleIdentifier; - setParameter(std::string("ManagedRuleIdentifier"), managedRuleIdentifier); -} - -std::string ListRemediationTemplatesRequest::getRemediationType() const { - return remediationType_; -} - -void ListRemediationTemplatesRequest::setRemediationType(const std::string &remediationType) { - remediationType_ = remediationType; - setParameter(std::string("RemediationType"), remediationType); -} - diff --git a/config/src/model/ListRemediationTemplatesResult.cc b/config/src/model/ListRemediationTemplatesResult.cc deleted file mode 100644 index be5e7cc6f..000000000 --- a/config/src/model/ListRemediationTemplatesResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListRemediationTemplatesResult::ListRemediationTemplatesResult() : - ServiceResult() -{} - -ListRemediationTemplatesResult::ListRemediationTemplatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListRemediationTemplatesResult::~ListRemediationTemplatesResult() -{} - -void ListRemediationTemplatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allRemediationTemplatesNode = value["RemediationTemplates"]["RemediationTemplate"]; - for (auto valueRemediationTemplatesRemediationTemplate : allRemediationTemplatesNode) - { - RemediationTemplate remediationTemplatesObject; - if(!valueRemediationTemplatesRemediationTemplate["CompulsoryParameters"].isNull()) - remediationTemplatesObject.compulsoryParameters = valueRemediationTemplatesRemediationTemplate["CompulsoryParameters"].asString(); - if(!valueRemediationTemplatesRemediationTemplate["RemediationType"].isNull()) - remediationTemplatesObject.remediationType = valueRemediationTemplatesRemediationTemplate["RemediationType"].asString(); - if(!valueRemediationTemplatesRemediationTemplate["TemplateIdentifier"].isNull()) - remediationTemplatesObject.templateIdentifier = valueRemediationTemplatesRemediationTemplate["TemplateIdentifier"].asString(); - if(!valueRemediationTemplatesRemediationTemplate["TemplateName"].isNull()) - remediationTemplatesObject.templateName = valueRemediationTemplatesRemediationTemplate["TemplateName"].asString(); - if(!valueRemediationTemplatesRemediationTemplate["TemplateDefinition"].isNull()) - remediationTemplatesObject.templateDefinition = valueRemediationTemplatesRemediationTemplate["TemplateDefinition"].asString(); - remediationTemplates_.push_back(remediationTemplatesObject); - } - -} - -std::vector ListRemediationTemplatesResult::getRemediationTemplates()const -{ - return remediationTemplates_; -} - diff --git a/config/src/model/ListResourceEvaluationResultsRequest.cc b/config/src/model/ListResourceEvaluationResultsRequest.cc new file mode 100644 index 000000000..799def7bc --- /dev/null +++ b/config/src/model/ListResourceEvaluationResultsRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListResourceEvaluationResultsRequest; + +ListResourceEvaluationResultsRequest::ListResourceEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListResourceEvaluationResults") { + setMethod(HttpRequest::Method::Get); +} + +ListResourceEvaluationResultsRequest::~ListResourceEvaluationResultsRequest() {} + +std::string ListResourceEvaluationResultsRequest::getResourceId() const { + return resourceId_; +} + +void ListResourceEvaluationResultsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ListResourceEvaluationResultsRequest::getResourceType() const { + return resourceType_; +} + +void ListResourceEvaluationResultsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListResourceEvaluationResultsRequest::getNextToken() const { + return nextToken_; +} + +void ListResourceEvaluationResultsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListResourceEvaluationResultsRequest::getMaxResults() const { + return maxResults_; +} + +void ListResourceEvaluationResultsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListResourceEvaluationResultsRequest::getRegion() const { + return region_; +} + +void ListResourceEvaluationResultsRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + +std::string ListResourceEvaluationResultsRequest::getComplianceType() const { + return complianceType_; +} + +void ListResourceEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + diff --git a/config/src/model/ListResourceEvaluationResultsResult.cc b/config/src/model/ListResourceEvaluationResultsResult.cc new file mode 100644 index 000000000..ade322659 --- /dev/null +++ b/config/src/model/ListResourceEvaluationResultsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config; +using namespace AlibabaCloud::Config::Model; + +ListResourceEvaluationResultsResult::ListResourceEvaluationResultsResult() : + ServiceResult() +{} + +ListResourceEvaluationResultsResult::ListResourceEvaluationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListResourceEvaluationResultsResult::~ListResourceEvaluationResultsResult() +{} + +void ListResourceEvaluationResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto evaluationResultsNode = value["EvaluationResults"]; + if(!evaluationResultsNode["NextToken"].isNull()) + evaluationResults_.nextToken = evaluationResultsNode["NextToken"].asString(); + if(!evaluationResultsNode["MaxResults"].isNull()) + evaluationResults_.maxResults = std::stoi(evaluationResultsNode["MaxResults"].asString()); + auto allEvaluationResultListNode = evaluationResultsNode["EvaluationResultList"]["EvaluationResult"]; + for (auto evaluationResultsNodeEvaluationResultListEvaluationResult : allEvaluationResultListNode) + { + EvaluationResults::EvaluationResult evaluationResultObject; + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].isNull()) + evaluationResultObject.riskLevel = std::stoi(evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].asString()); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].isNull()) + evaluationResultObject.complianceType = evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].asString(); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].isNull()) + evaluationResultObject.resultRecordedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].asString()); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].isNull()) + evaluationResultObject.annotation = evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].asString(); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].isNull()) + evaluationResultObject.configRuleInvokedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].asString()); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].isNull()) + evaluationResultObject.invokingEventMessageType = evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].asString(); + if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].isNull()) + evaluationResultObject.remediationEnabled = evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].asString() == "true"; + auto evaluationResultIdentifierNode = value["EvaluationResultIdentifier"]; + if(!evaluationResultIdentifierNode["OrderingTimestamp"].isNull()) + evaluationResultObject.evaluationResultIdentifier.orderingTimestamp = std::stol(evaluationResultIdentifierNode["OrderingTimestamp"].asString()); + auto evaluationResultQualifierNode = evaluationResultIdentifierNode["EvaluationResultQualifier"]; + if(!evaluationResultQualifierNode["ConfigRuleArn"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleArn = evaluationResultQualifierNode["ConfigRuleArn"].asString(); + if(!evaluationResultQualifierNode["ResourceType"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceType = evaluationResultQualifierNode["ResourceType"].asString(); + if(!evaluationResultQualifierNode["ConfigRuleName"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleName = evaluationResultQualifierNode["ConfigRuleName"].asString(); + if(!evaluationResultQualifierNode["ResourceId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceId = evaluationResultQualifierNode["ResourceId"].asString(); + if(!evaluationResultQualifierNode["ConfigRuleId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleId = evaluationResultQualifierNode["ConfigRuleId"].asString(); + if(!evaluationResultQualifierNode["ResourceName"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString(); + if(!evaluationResultQualifierNode["RegionId"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString(); + evaluationResults_.evaluationResultList.push_back(evaluationResultObject); + } + +} + +ListResourceEvaluationResultsResult::EvaluationResults ListResourceEvaluationResultsResult::getEvaluationResults()const +{ + return evaluationResults_; +} + diff --git a/config/src/model/PutConfigRuleRequest.cc b/config/src/model/PutConfigRuleRequest.cc deleted file mode 100644 index 9e38df441..000000000 --- a/config/src/model/PutConfigRuleRequest.cc +++ /dev/null @@ -1,180 +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::Config::Model::PutConfigRuleRequest; - -PutConfigRuleRequest::PutConfigRuleRequest() - : RpcServiceRequest("config", "2019-01-08", "PutConfigRule") { - setMethod(HttpRequest::Method::Post); -} - -PutConfigRuleRequest::~PutConfigRuleRequest() {} - -std::string PutConfigRuleRequest::getConfigRuleId() const { - return configRuleId_; -} - -void PutConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setBodyParameter(std::string("ConfigRuleId"), configRuleId); -} - -bool PutConfigRuleRequest::getMultiAccount() const { - return multiAccount_; -} - -void PutConfigRuleRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -std::string PutConfigRuleRequest::getClientToken() const { - return clientToken_; -} - -void PutConfigRuleRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string PutConfigRuleRequest::getDescription() const { - return description_; -} - -void PutConfigRuleRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string PutConfigRuleRequest::getSourceIdentifier() const { - return sourceIdentifier_; -} - -void PutConfigRuleRequest::setSourceIdentifier(const std::string &sourceIdentifier) { - sourceIdentifier_ = sourceIdentifier; - setBodyParameter(std::string("SourceIdentifier"), sourceIdentifier); -} - -std::string PutConfigRuleRequest::getSourceMaximumExecutionFrequency() const { - return sourceMaximumExecutionFrequency_; -} - -void PutConfigRuleRequest::setSourceMaximumExecutionFrequency(const std::string &sourceMaximumExecutionFrequency) { - sourceMaximumExecutionFrequency_ = sourceMaximumExecutionFrequency; - setBodyParameter(std::string("SourceMaximumExecutionFrequency"), sourceMaximumExecutionFrequency); -} - -std::string PutConfigRuleRequest::getScopeComplianceResourceTypes() const { - return scopeComplianceResourceTypes_; -} - -void PutConfigRuleRequest::setScopeComplianceResourceTypes(const std::string &scopeComplianceResourceTypes) { - scopeComplianceResourceTypes_ = scopeComplianceResourceTypes; - setBodyParameter(std::string("ScopeComplianceResourceTypes"), scopeComplianceResourceTypes); -} - -std::string PutConfigRuleRequest::getSourceDetailMessageType() const { - return sourceDetailMessageType_; -} - -void PutConfigRuleRequest::setSourceDetailMessageType(const std::string &sourceDetailMessageType) { - sourceDetailMessageType_ = sourceDetailMessageType; - setBodyParameter(std::string("SourceDetailMessageType"), sourceDetailMessageType); -} - -int PutConfigRuleRequest::getRiskLevel() const { - return riskLevel_; -} - -void PutConfigRuleRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - -std::string PutConfigRuleRequest::getSourceOwner() const { - return sourceOwner_; -} - -void PutConfigRuleRequest::setSourceOwner(const std::string &sourceOwner) { - sourceOwner_ = sourceOwner; - setBodyParameter(std::string("SourceOwner"), sourceOwner); -} - -std::string PutConfigRuleRequest::getInputParameters() const { - return inputParameters_; -} - -void PutConfigRuleRequest::setInputParameters(const std::string &inputParameters) { - inputParameters_ = inputParameters; - setBodyParameter(std::string("InputParameters"), inputParameters); -} - -std::string PutConfigRuleRequest::getScopeComplianceExcludeResourceIds() const { - return scopeComplianceExcludeResourceIds_; -} - -void PutConfigRuleRequest::setScopeComplianceExcludeResourceIds(const std::string &scopeComplianceExcludeResourceIds) { - scopeComplianceExcludeResourceIds_ = scopeComplianceExcludeResourceIds; - setBodyParameter(std::string("ScopeComplianceExcludeResourceIds"), scopeComplianceExcludeResourceIds); -} - -std::string PutConfigRuleRequest::getConfigRuleName() const { - return configRuleName_; -} - -void PutConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { - configRuleName_ = configRuleName; - setBodyParameter(std::string("ConfigRuleName"), configRuleName); -} - -std::string PutConfigRuleRequest::getScopeComplianceResourceId() const { - return scopeComplianceResourceId_; -} - -void PutConfigRuleRequest::setScopeComplianceResourceId(const std::string &scopeComplianceResourceId) { - scopeComplianceResourceId_ = scopeComplianceResourceId; - setBodyParameter(std::string("ScopeComplianceResourceId"), scopeComplianceResourceId); -} - -std::string PutConfigRuleRequest::getScopeComplianceResourceIds() const { - return scopeComplianceResourceIds_; -} - -void PutConfigRuleRequest::setScopeComplianceResourceIds(const std::string &scopeComplianceResourceIds) { - scopeComplianceResourceIds_ = scopeComplianceResourceIds; - setBodyParameter(std::string("ScopeComplianceResourceIds"), scopeComplianceResourceIds); -} - -std::string PutConfigRuleRequest::getScopeComplianceRegionIds() const { - return scopeComplianceRegionIds_; -} - -void PutConfigRuleRequest::setScopeComplianceRegionIds(const std::string &scopeComplianceRegionIds) { - scopeComplianceRegionIds_ = scopeComplianceRegionIds; - setBodyParameter(std::string("ScopeComplianceRegionIds"), scopeComplianceRegionIds); -} - -long PutConfigRuleRequest::getMemberId() const { - return memberId_; -} - -void PutConfigRuleRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/PutConfigurationRecorderRequest.cc b/config/src/model/PutConfigurationRecorderRequest.cc deleted file mode 100644 index 0b0f00398..000000000 --- a/config/src/model/PutConfigurationRecorderRequest.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::Config::Model::PutConfigurationRecorderRequest; - -PutConfigurationRecorderRequest::PutConfigurationRecorderRequest() - : RpcServiceRequest("config", "2019-01-08", "PutConfigurationRecorder") { - setMethod(HttpRequest::Method::Post); -} - -PutConfigurationRecorderRequest::~PutConfigurationRecorderRequest() {} - -std::string PutConfigurationRecorderRequest::getResourceTypes() const { - return resourceTypes_; -} - -void PutConfigurationRecorderRequest::setResourceTypes(const std::string &resourceTypes) { - resourceTypes_ = resourceTypes; - setBodyParameter(std::string("ResourceTypes"), resourceTypes); -} - diff --git a/config/src/model/PutConfigurationRecorderResult.cc b/config/src/model/PutConfigurationRecorderResult.cc deleted file mode 100644 index 46f85f95f..000000000 --- a/config/src/model/PutConfigurationRecorderResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -PutConfigurationRecorderResult::PutConfigurationRecorderResult() : - ServiceResult() -{} - -PutConfigurationRecorderResult::PutConfigurationRecorderResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PutConfigurationRecorderResult::~PutConfigurationRecorderResult() -{} - -void PutConfigurationRecorderResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto configurationRecorderNode = value["ConfigurationRecorder"]; - if(!configurationRecorderNode["OrganizationEnableStatus"].isNull()) - configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString(); - if(!configurationRecorderNode["ConfigurationRecorderStatus"].isNull()) - configurationRecorder_.configurationRecorderStatus = configurationRecorderNode["ConfigurationRecorderStatus"].asString(); - if(!configurationRecorderNode["OrganizationMasterId"].isNull()) - configurationRecorder_.organizationMasterId = std::stol(configurationRecorderNode["OrganizationMasterId"].asString()); - if(!configurationRecorderNode["AccountId"].isNull()) - configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString()); - auto allResourceTypes = configurationRecorderNode["ResourceTypes"]["ResourceType"]; - for (auto value : allResourceTypes) - configurationRecorder_.resourceTypes.push_back(value.asString()); - -} - -PutConfigurationRecorderResult::ConfigurationRecorder PutConfigurationRecorderResult::getConfigurationRecorder()const -{ - return configurationRecorder_; -} - diff --git a/config/src/model/PutDeliveryChannelRequest.cc b/config/src/model/PutDeliveryChannelRequest.cc deleted file mode 100644 index 779fb1909..000000000 --- a/config/src/model/PutDeliveryChannelRequest.cc +++ /dev/null @@ -1,108 +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::Config::Model::PutDeliveryChannelRequest; - -PutDeliveryChannelRequest::PutDeliveryChannelRequest() - : RpcServiceRequest("config", "2019-01-08", "PutDeliveryChannel") { - setMethod(HttpRequest::Method::Post); -} - -PutDeliveryChannelRequest::~PutDeliveryChannelRequest() {} - -std::string PutDeliveryChannelRequest::getClientToken() const { - return clientToken_; -} - -void PutDeliveryChannelRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string PutDeliveryChannelRequest::getDescription() const { - return description_; -} - -void PutDeliveryChannelRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string PutDeliveryChannelRequest::getDeliveryChannelTargetArn() const { - return deliveryChannelTargetArn_; -} - -void PutDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { - deliveryChannelTargetArn_ = deliveryChannelTargetArn; - setBodyParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); -} - -std::string PutDeliveryChannelRequest::getDeliveryChannelCondition() const { - return deliveryChannelCondition_; -} - -void PutDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { - deliveryChannelCondition_ = deliveryChannelCondition; - setBodyParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); -} - -std::string PutDeliveryChannelRequest::getDeliveryChannelAssumeRoleArn() const { - return deliveryChannelAssumeRoleArn_; -} - -void PutDeliveryChannelRequest::setDeliveryChannelAssumeRoleArn(const std::string &deliveryChannelAssumeRoleArn) { - deliveryChannelAssumeRoleArn_ = deliveryChannelAssumeRoleArn; - setBodyParameter(std::string("DeliveryChannelAssumeRoleArn"), deliveryChannelAssumeRoleArn); -} - -std::string PutDeliveryChannelRequest::getDeliveryChannelName() const { - return deliveryChannelName_; -} - -void PutDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { - deliveryChannelName_ = deliveryChannelName; - setBodyParameter(std::string("DeliveryChannelName"), deliveryChannelName); -} - -std::string PutDeliveryChannelRequest::getDeliveryChannelId() const { - return deliveryChannelId_; -} - -void PutDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { - deliveryChannelId_ = deliveryChannelId; - setBodyParameter(std::string("DeliveryChannelId"), deliveryChannelId); -} - -std::string PutDeliveryChannelRequest::getDeliveryChannelType() const { - return deliveryChannelType_; -} - -void PutDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) { - deliveryChannelType_ = deliveryChannelType; - setBodyParameter(std::string("DeliveryChannelType"), deliveryChannelType); -} - -int PutDeliveryChannelRequest::getStatus() const { - return status_; -} - -void PutDeliveryChannelRequest::setStatus(int status) { - status_ = status; - setBodyParameter(std::string("Status"), std::to_string(status)); -} - diff --git a/config/src/model/PutEvaluationsRequest.cc b/config/src/model/PutEvaluationsRequest.cc deleted file mode 100644 index 4cf1634cb..000000000 --- a/config/src/model/PutEvaluationsRequest.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::Config::Model::PutEvaluationsRequest; - -PutEvaluationsRequest::PutEvaluationsRequest() - : RpcServiceRequest("config", "2019-01-08", "PutEvaluations") { - setMethod(HttpRequest::Method::Post); -} - -PutEvaluationsRequest::~PutEvaluationsRequest() {} - -std::string PutEvaluationsRequest::getEvaluations() const { - return evaluations_; -} - -void PutEvaluationsRequest::setEvaluations(const std::string &evaluations) { - evaluations_ = evaluations; - setBodyParameter(std::string("Evaluations"), evaluations); -} - -bool PutEvaluationsRequest::getDeleteMode() const { - return deleteMode_; -} - -void PutEvaluationsRequest::setDeleteMode(bool deleteMode) { - deleteMode_ = deleteMode; - setBodyParameter(std::string("DeleteMode"), deleteMode ? "true" : "false"); -} - -std::string PutEvaluationsRequest::getResultToken() const { - return resultToken_; -} - -void PutEvaluationsRequest::setResultToken(const std::string &resultToken) { - resultToken_ = resultToken; - setBodyParameter(std::string("ResultToken"), resultToken); -} - diff --git a/config/src/model/RevertAggregateEvaluationResultsRequest.cc b/config/src/model/RevertAggregateEvaluationResultsRequest.cc new file mode 100644 index 000000000..ab8633bd4 --- /dev/null +++ b/config/src/model/RevertAggregateEvaluationResultsRequest.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::RevertAggregateEvaluationResultsRequest; + +RevertAggregateEvaluationResultsRequest::RevertAggregateEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "RevertAggregateEvaluationResults") { + setMethod(HttpRequest::Method::Post); +} + +RevertAggregateEvaluationResultsRequest::~RevertAggregateEvaluationResultsRequest() {} + +std::string RevertAggregateEvaluationResultsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void RevertAggregateEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::vector RevertAggregateEvaluationResultsRequest::getResources() const { + return resources_; +} + +void RevertAggregateEvaluationResultsRequest::setResources(const std::vector &resources) { + resources_ = resources; + for(int dep1 = 0; dep1 != resources.size(); dep1++) { + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId)); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType); + } +} + +std::string RevertAggregateEvaluationResultsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void RevertAggregateEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/RevertAggregateEvaluationResultsResult.cc b/config/src/model/RevertAggregateEvaluationResultsResult.cc new file mode 100644 index 000000000..cd490f2a8 --- /dev/null +++ b/config/src/model/RevertAggregateEvaluationResultsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config; +using namespace AlibabaCloud::Config::Model; + +RevertAggregateEvaluationResultsResult::RevertAggregateEvaluationResultsResult() : + ServiceResult() +{} + +RevertAggregateEvaluationResultsResult::RevertAggregateEvaluationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevertAggregateEvaluationResultsResult::~RevertAggregateEvaluationResultsResult() +{} + +void RevertAggregateEvaluationResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/config/src/model/RevertEvaluationResultsRequest.cc b/config/src/model/RevertEvaluationResultsRequest.cc new file mode 100644 index 000000000..c2871a65b --- /dev/null +++ b/config/src/model/RevertEvaluationResultsRequest.cc @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config::Model::RevertEvaluationResultsRequest; + +RevertEvaluationResultsRequest::RevertEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "RevertEvaluationResults") { + setMethod(HttpRequest::Method::Post); +} + +RevertEvaluationResultsRequest::~RevertEvaluationResultsRequest() {} + +std::string RevertEvaluationResultsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void RevertEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::vector RevertEvaluationResultsRequest::getResources() const { + return resources_; +} + +void RevertEvaluationResultsRequest::setResources(const std::vector &resources) { + resources_ = resources; + for(int dep1 = 0; dep1 != resources.size(); dep1++) { + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId)); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region); + setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType); + } +} + diff --git a/config/src/model/RevertEvaluationResultsResult.cc b/config/src/model/RevertEvaluationResultsResult.cc new file mode 100644 index 000000000..11e863fb0 --- /dev/null +++ b/config/src/model/RevertEvaluationResultsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config; +using namespace AlibabaCloud::Config::Model; + +RevertEvaluationResultsResult::RevertEvaluationResultsResult() : + ServiceResult() +{} + +RevertEvaluationResultsResult::RevertEvaluationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevertEvaluationResultsResult::~RevertEvaluationResultsResult() +{} + +void RevertEvaluationResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/config/src/model/StartAggregateConfigRuleEvaluationRequest.cc b/config/src/model/StartAggregateConfigRuleEvaluationRequest.cc new file mode 100644 index 000000000..843a751cd --- /dev/null +++ b/config/src/model/StartAggregateConfigRuleEvaluationRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::StartAggregateConfigRuleEvaluationRequest; + +StartAggregateConfigRuleEvaluationRequest::StartAggregateConfigRuleEvaluationRequest() + : RpcServiceRequest("config", "2020-09-07", "StartAggregateConfigRuleEvaluation") { + setMethod(HttpRequest::Method::Post); +} + +StartAggregateConfigRuleEvaluationRequest::~StartAggregateConfigRuleEvaluationRequest() {} + +std::string StartAggregateConfigRuleEvaluationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void StartAggregateConfigRuleEvaluationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string StartAggregateConfigRuleEvaluationRequest::getAggregatorId() const { + return aggregatorId_; +} + +void StartAggregateConfigRuleEvaluationRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string StartAggregateConfigRuleEvaluationRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void StartAggregateConfigRuleEvaluationRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + +bool StartAggregateConfigRuleEvaluationRequest::getRevertEvaluation() const { + return revertEvaluation_; +} + +void StartAggregateConfigRuleEvaluationRequest::setRevertEvaluation(bool revertEvaluation) { + revertEvaluation_ = revertEvaluation; + setParameter(std::string("RevertEvaluation"), revertEvaluation ? "true" : "false"); +} + diff --git a/config/src/model/StartAggregateConfigRuleEvaluationResult.cc b/config/src/model/StartAggregateConfigRuleEvaluationResult.cc new file mode 100644 index 000000000..a1da65321 --- /dev/null +++ b/config/src/model/StartAggregateConfigRuleEvaluationResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +StartAggregateConfigRuleEvaluationResult::StartAggregateConfigRuleEvaluationResult() : + ServiceResult() +{} + +StartAggregateConfigRuleEvaluationResult::StartAggregateConfigRuleEvaluationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartAggregateConfigRuleEvaluationResult::~StartAggregateConfigRuleEvaluationResult() +{} + +void StartAggregateConfigRuleEvaluationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + +} + +bool StartAggregateConfigRuleEvaluationResult::getResult()const +{ + return result_; +} + diff --git a/config/src/model/StartConfigRuleEvaluationRequest.cc b/config/src/model/StartConfigRuleEvaluationRequest.cc deleted file mode 100644 index 3858e126c..000000000 --- a/config/src/model/StartConfigRuleEvaluationRequest.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::Config::Model::StartConfigRuleEvaluationRequest; - -StartConfigRuleEvaluationRequest::StartConfigRuleEvaluationRequest() - : RpcServiceRequest("config", "2019-01-08", "StartConfigRuleEvaluation") { - setMethod(HttpRequest::Method::Post); -} - -StartConfigRuleEvaluationRequest::~StartConfigRuleEvaluationRequest() {} - -std::string StartConfigRuleEvaluationRequest::getConfigRuleId() const { - return configRuleId_; -} - -void StartConfigRuleEvaluationRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - -bool StartConfigRuleEvaluationRequest::getMultiAccount() const { - return multiAccount_; -} - -void StartConfigRuleEvaluationRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); -} - -std::string StartConfigRuleEvaluationRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void StartConfigRuleEvaluationRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - -bool StartConfigRuleEvaluationRequest::getRevertEvaluation() const { - return revertEvaluation_; -} - -void StartConfigRuleEvaluationRequest::setRevertEvaluation(bool revertEvaluation) { - revertEvaluation_ = revertEvaluation; - setParameter(std::string("RevertEvaluation"), revertEvaluation ? "true" : "false"); -} - -long StartConfigRuleEvaluationRequest::getMemberId() const { - return memberId_; -} - -void StartConfigRuleEvaluationRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); -} - diff --git a/config/src/model/StartConfigurationRecorderRequest.cc b/config/src/model/StartConfigurationRecorderRequest.cc deleted file mode 100644 index a03091418..000000000 --- a/config/src/model/StartConfigurationRecorderRequest.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::Config::Model::StartConfigurationRecorderRequest; - -StartConfigurationRecorderRequest::StartConfigurationRecorderRequest() - : RpcServiceRequest("config", "2019-01-08", "StartConfigurationRecorder") { - setMethod(HttpRequest::Method::Post); -} - -StartConfigurationRecorderRequest::~StartConfigurationRecorderRequest() {} - -bool StartConfigurationRecorderRequest::getEnterpriseEdition() const { - return enterpriseEdition_; -} - -void StartConfigurationRecorderRequest::setEnterpriseEdition(bool enterpriseEdition) { - enterpriseEdition_ = enterpriseEdition; - setBodyParameter(std::string("EnterpriseEdition"), enterpriseEdition ? "true" : "false"); -} - diff --git a/config/src/model/StartConfigurationRecorderResult.cc b/config/src/model/StartConfigurationRecorderResult.cc deleted file mode 100644 index 833ef3ce9..000000000 --- a/config/src/model/StartConfigurationRecorderResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -StartConfigurationRecorderResult::StartConfigurationRecorderResult() : - ServiceResult() -{} - -StartConfigurationRecorderResult::StartConfigurationRecorderResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartConfigurationRecorderResult::~StartConfigurationRecorderResult() -{} - -void StartConfigurationRecorderResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto configurationRecorderNode = value["ConfigurationRecorder"]; - if(!configurationRecorderNode["OrganizationEnableStatus"].isNull()) - configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString(); - if(!configurationRecorderNode["ConfigurationRecorderStatus"].isNull()) - configurationRecorder_.configurationRecorderStatus = configurationRecorderNode["ConfigurationRecorderStatus"].asString(); - if(!configurationRecorderNode["OrganizationMasterId"].isNull()) - configurationRecorder_.organizationMasterId = std::stol(configurationRecorderNode["OrganizationMasterId"].asString()); - if(!configurationRecorderNode["AccountId"].isNull()) - configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString()); - auto allResourceTypes = configurationRecorderNode["ResourceTypes"]["ResourceType"]; - for (auto value : allResourceTypes) - configurationRecorder_.resourceTypes.push_back(value.asString()); - -} - -StartConfigurationRecorderResult::ConfigurationRecorder StartConfigurationRecorderResult::getConfigurationRecorder()const -{ - return configurationRecorder_; -} - diff --git a/config/src/model/UpdateAggregateCompliancePackRequest.cc b/config/src/model/UpdateAggregateCompliancePackRequest.cc new file mode 100644 index 000000000..3c2e82ce2 --- /dev/null +++ b/config/src/model/UpdateAggregateCompliancePackRequest.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::UpdateAggregateCompliancePackRequest; + +UpdateAggregateCompliancePackRequest::UpdateAggregateCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateAggregateCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAggregateCompliancePackRequest::~UpdateAggregateCompliancePackRequest() {} + +std::string UpdateAggregateCompliancePackRequest::getCompliancePackName() const { + return compliancePackName_; +} + +void UpdateAggregateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) { + compliancePackName_ = compliancePackName; + setBodyParameter(std::string("CompliancePackName"), compliancePackName); +} + +std::string UpdateAggregateCompliancePackRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAggregateCompliancePackRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateAggregateCompliancePackRequest::getDescription() const { + return description_; +} + +void UpdateAggregateCompliancePackRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateAggregateCompliancePackRequest::getAggregatorId() const { + return aggregatorId_; +} + +void UpdateAggregateCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string UpdateAggregateCompliancePackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void UpdateAggregateCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setBodyParameter(std::string("CompliancePackId"), compliancePackId); +} + +std::vector UpdateAggregateCompliancePackRequest::getConfigRules() const { + return configRules_; +} + +void UpdateAggregateCompliancePackRequest::setConfigRules(const std::vector &configRules) { + configRules_ = configRules; + for(int dep1 = 0; dep1 != configRules.size(); dep1++) { + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier); + for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) { + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName); + } + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel)); + } +} + +int UpdateAggregateCompliancePackRequest::getRiskLevel() const { + return riskLevel_; +} + +void UpdateAggregateCompliancePackRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + diff --git a/config/src/model/UpdateAggregateCompliancePackResult.cc b/config/src/model/UpdateAggregateCompliancePackResult.cc new file mode 100644 index 000000000..97932a476 --- /dev/null +++ b/config/src/model/UpdateAggregateCompliancePackResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +UpdateAggregateCompliancePackResult::UpdateAggregateCompliancePackResult() : + ServiceResult() +{} + +UpdateAggregateCompliancePackResult::UpdateAggregateCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAggregateCompliancePackResult::~UpdateAggregateCompliancePackResult() +{} + +void UpdateAggregateCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CompliancePackId"].isNull()) + compliancePackId_ = value["CompliancePackId"].asString(); + +} + +std::string UpdateAggregateCompliancePackResult::getCompliancePackId()const +{ + return compliancePackId_; +} + diff --git a/config/src/model/UpdateAggregateConfigRuleRequest.cc b/config/src/model/UpdateAggregateConfigRuleRequest.cc new file mode 100644 index 000000000..a93075576 --- /dev/null +++ b/config/src/model/UpdateAggregateConfigRuleRequest.cc @@ -0,0 +1,164 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config::Model::UpdateAggregateConfigRuleRequest; + +UpdateAggregateConfigRuleRequest::UpdateAggregateConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateAggregateConfigRule") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAggregateConfigRuleRequest::~UpdateAggregateConfigRuleRequest() {} + +std::string UpdateAggregateConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; +} + +void UpdateAggregateConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string UpdateAggregateConfigRuleRequest::getTagKeyScope() const { + return tagKeyScope_; +} + +void UpdateAggregateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) { + tagKeyScope_ = tagKeyScope; + setBodyParameter(std::string("TagKeyScope"), tagKeyScope); +} + +std::string UpdateAggregateConfigRuleRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAggregateConfigRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::vector UpdateAggregateConfigRuleRequest::getResourceTypesScope() const { + return resourceTypesScope_; +} + +void UpdateAggregateConfigRuleRequest::setResourceTypesScope(const std::vector &resourceTypesScope) { + resourceTypesScope_ = resourceTypesScope; + for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) { + setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]); + } +} + +std::string UpdateAggregateConfigRuleRequest::getDescription() const { + return description_; +} + +void UpdateAggregateConfigRuleRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateAggregateConfigRuleRequest::getAggregatorId() const { + return aggregatorId_; +} + +void UpdateAggregateConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string UpdateAggregateConfigRuleRequest::getConfigRuleTriggerTypes() const { + return configRuleTriggerTypes_; +} + +void UpdateAggregateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) { + configRuleTriggerTypes_ = configRuleTriggerTypes; + setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes); +} + +std::string UpdateAggregateConfigRuleRequest::getTagValueScope() const { + return tagValueScope_; +} + +void UpdateAggregateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) { + tagValueScope_ = tagValueScope; + setBodyParameter(std::string("TagValueScope"), tagValueScope); +} + +std::string UpdateAggregateConfigRuleRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void UpdateAggregateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +int UpdateAggregateConfigRuleRequest::getRiskLevel() const { + return riskLevel_; +} + +void UpdateAggregateConfigRuleRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + +std::string UpdateAggregateConfigRuleRequest::getResourceGroupIdsScope() const { + return resourceGroupIdsScope_; +} + +void UpdateAggregateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { + resourceGroupIdsScope_ = resourceGroupIdsScope; + setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); +} + +std::string UpdateAggregateConfigRuleRequest::getInputParameters() const { + return inputParameters_; +} + +void UpdateAggregateConfigRuleRequest::setInputParameters(const std::string &inputParameters) { + inputParameters_ = inputParameters; + setBodyParameter(std::string("InputParameters"), inputParameters); +} + +std::string UpdateAggregateConfigRuleRequest::getConfigRuleName() const { + return configRuleName_; +} + +void UpdateAggregateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { + configRuleName_ = configRuleName; + setBodyParameter(std::string("ConfigRuleName"), configRuleName); +} + +std::string UpdateAggregateConfigRuleRequest::getMaximumExecutionFrequency() const { + return maximumExecutionFrequency_; +} + +void UpdateAggregateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { + maximumExecutionFrequency_ = maximumExecutionFrequency; + setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); +} + +std::string UpdateAggregateConfigRuleRequest::getExcludeResourceIdsScope() const { + return excludeResourceIdsScope_; +} + +void UpdateAggregateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { + excludeResourceIdsScope_ = excludeResourceIdsScope; + setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); +} + diff --git a/config/src/model/UpdateAggregateConfigRuleResult.cc b/config/src/model/UpdateAggregateConfigRuleResult.cc new file mode 100644 index 000000000..2e1a845aa --- /dev/null +++ b/config/src/model/UpdateAggregateConfigRuleResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +UpdateAggregateConfigRuleResult::UpdateAggregateConfigRuleResult() : + ServiceResult() +{} + +UpdateAggregateConfigRuleResult::UpdateAggregateConfigRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAggregateConfigRuleResult::~UpdateAggregateConfigRuleResult() +{} + +void UpdateAggregateConfigRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ConfigRuleId"].isNull()) + configRuleId_ = value["ConfigRuleId"].asString(); + +} + +std::string UpdateAggregateConfigRuleResult::getConfigRuleId()const +{ + return configRuleId_; +} + diff --git a/config/src/model/UpdateAggregatorRequest.cc b/config/src/model/UpdateAggregatorRequest.cc new file mode 100644 index 000000000..0b63424bd --- /dev/null +++ b/config/src/model/UpdateAggregatorRequest.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::UpdateAggregatorRequest; + +UpdateAggregatorRequest::UpdateAggregatorRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateAggregator") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAggregatorRequest::~UpdateAggregatorRequest() {} + +std::string UpdateAggregatorRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAggregatorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateAggregatorRequest::getAggregatorName() const { + return aggregatorName_; +} + +void UpdateAggregatorRequest::setAggregatorName(const std::string &aggregatorName) { + aggregatorName_ = aggregatorName; + setBodyParameter(std::string("AggregatorName"), aggregatorName); +} + +std::string UpdateAggregatorRequest::getDescription() const { + return description_; +} + +void UpdateAggregatorRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateAggregatorRequest::getAggregatorId() const { + return aggregatorId_; +} + +void UpdateAggregatorRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::vector UpdateAggregatorRequest::getAggregatorAccounts() const { + return aggregatorAccounts_; +} + +void UpdateAggregatorRequest::setAggregatorAccounts(const std::vector &aggregatorAccounts) { + aggregatorAccounts_ = aggregatorAccounts; + for(int dep1 = 0; dep1 != aggregatorAccounts.size(); dep1++) { + setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountId", std::to_string(aggregatorAccounts[dep1].accountId)); + setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountName", aggregatorAccounts[dep1].accountName); + setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountType", aggregatorAccounts[dep1].accountType); + } +} + diff --git a/config/src/model/UpdateAggregatorResult.cc b/config/src/model/UpdateAggregatorResult.cc new file mode 100644 index 000000000..d7a3bdbd8 --- /dev/null +++ b/config/src/model/UpdateAggregatorResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +UpdateAggregatorResult::UpdateAggregatorResult() : + ServiceResult() +{} + +UpdateAggregatorResult::UpdateAggregatorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAggregatorResult::~UpdateAggregatorResult() +{} + +void UpdateAggregatorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AggregatorId"].isNull()) + aggregatorId_ = value["AggregatorId"].asString(); + +} + +std::string UpdateAggregatorResult::getAggregatorId()const +{ + return aggregatorId_; +} + diff --git a/config/src/model/UpdateCompliancePackRequest.cc b/config/src/model/UpdateCompliancePackRequest.cc new file mode 100644 index 000000000..38a0134cb --- /dev/null +++ b/config/src/model/UpdateCompliancePackRequest.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::UpdateCompliancePackRequest; + +UpdateCompliancePackRequest::UpdateCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +UpdateCompliancePackRequest::~UpdateCompliancePackRequest() {} + +std::string UpdateCompliancePackRequest::getCompliancePackName() const { + return compliancePackName_; +} + +void UpdateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) { + compliancePackName_ = compliancePackName; + setBodyParameter(std::string("CompliancePackName"), compliancePackName); +} + +std::string UpdateCompliancePackRequest::getClientToken() const { + return clientToken_; +} + +void UpdateCompliancePackRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateCompliancePackRequest::getDescription() const { + return description_; +} + +void UpdateCompliancePackRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateCompliancePackRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void UpdateCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setBodyParameter(std::string("CompliancePackId"), compliancePackId); +} + +std::vector UpdateCompliancePackRequest::getConfigRules() const { + return configRules_; +} + +void UpdateCompliancePackRequest::setConfigRules(const std::vector &configRules) { + configRules_ = configRules; + for(int dep1 = 0; dep1 != configRules.size(); dep1++) { + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier); + for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) { + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName); + } + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description); + setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel)); + } +} + +int UpdateCompliancePackRequest::getRiskLevel() const { + return riskLevel_; +} + +void UpdateCompliancePackRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + diff --git a/config/src/model/UpdateCompliancePackResult.cc b/config/src/model/UpdateCompliancePackResult.cc new file mode 100644 index 000000000..5c58d0735 --- /dev/null +++ b/config/src/model/UpdateCompliancePackResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +UpdateCompliancePackResult::UpdateCompliancePackResult() : + ServiceResult() +{} + +UpdateCompliancePackResult::UpdateCompliancePackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCompliancePackResult::~UpdateCompliancePackResult() +{} + +void UpdateCompliancePackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CompliancePackId"].isNull()) + compliancePackId_ = value["CompliancePackId"].asString(); + +} + +std::string UpdateCompliancePackResult::getCompliancePackId()const +{ + return compliancePackId_; +} + diff --git a/config/src/model/UpdateConfigRuleRequest.cc b/config/src/model/UpdateConfigRuleRequest.cc new file mode 100644 index 000000000..6ec8634b3 --- /dev/null +++ b/config/src/model/UpdateConfigRuleRequest.cc @@ -0,0 +1,155 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Config::Model::UpdateConfigRuleRequest; + +UpdateConfigRuleRequest::UpdateConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateConfigRule") { + setMethod(HttpRequest::Method::Post); +} + +UpdateConfigRuleRequest::~UpdateConfigRuleRequest() {} + +std::string UpdateConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; +} + +void UpdateConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string UpdateConfigRuleRequest::getTagKeyScope() const { + return tagKeyScope_; +} + +void UpdateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) { + tagKeyScope_ = tagKeyScope; + setBodyParameter(std::string("TagKeyScope"), tagKeyScope); +} + +std::string UpdateConfigRuleRequest::getClientToken() const { + return clientToken_; +} + +void UpdateConfigRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::vector UpdateConfigRuleRequest::getResourceTypesScope() const { + return resourceTypesScope_; +} + +void UpdateConfigRuleRequest::setResourceTypesScope(const std::vector &resourceTypesScope) { + resourceTypesScope_ = resourceTypesScope; + for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) { + setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]); + } +} + +std::string UpdateConfigRuleRequest::getDescription() const { + return description_; +} + +void UpdateConfigRuleRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateConfigRuleRequest::getConfigRuleTriggerTypes() const { + return configRuleTriggerTypes_; +} + +void UpdateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) { + configRuleTriggerTypes_ = configRuleTriggerTypes; + setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes); +} + +std::string UpdateConfigRuleRequest::getTagValueScope() const { + return tagValueScope_; +} + +void UpdateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) { + tagValueScope_ = tagValueScope; + setBodyParameter(std::string("TagValueScope"), tagValueScope); +} + +std::string UpdateConfigRuleRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void UpdateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +int UpdateConfigRuleRequest::getRiskLevel() const { + return riskLevel_; +} + +void UpdateConfigRuleRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + +std::string UpdateConfigRuleRequest::getResourceGroupIdsScope() const { + return resourceGroupIdsScope_; +} + +void UpdateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { + resourceGroupIdsScope_ = resourceGroupIdsScope; + setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); +} + +std::string UpdateConfigRuleRequest::getInputParameters() const { + return inputParameters_; +} + +void UpdateConfigRuleRequest::setInputParameters(const std::string &inputParameters) { + inputParameters_ = inputParameters; + setBodyParameter(std::string("InputParameters"), inputParameters); +} + +std::string UpdateConfigRuleRequest::getConfigRuleName() const { + return configRuleName_; +} + +void UpdateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { + configRuleName_ = configRuleName; + setBodyParameter(std::string("ConfigRuleName"), configRuleName); +} + +std::string UpdateConfigRuleRequest::getMaximumExecutionFrequency() const { + return maximumExecutionFrequency_; +} + +void UpdateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { + maximumExecutionFrequency_ = maximumExecutionFrequency; + setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); +} + +std::string UpdateConfigRuleRequest::getExcludeResourceIdsScope() const { + return excludeResourceIdsScope_; +} + +void UpdateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { + excludeResourceIdsScope_ = excludeResourceIdsScope; + setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); +} + diff --git a/config/src/model/UpdateConfigRuleResult.cc b/config/src/model/UpdateConfigRuleResult.cc new file mode 100644 index 000000000..c0b717f85 --- /dev/null +++ b/config/src/model/UpdateConfigRuleResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +UpdateConfigRuleResult::UpdateConfigRuleResult() : + ServiceResult() +{} + +UpdateConfigRuleResult::UpdateConfigRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateConfigRuleResult::~UpdateConfigRuleResult() +{} + +void UpdateConfigRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ConfigRuleId"].isNull()) + configRuleId_ = value["ConfigRuleId"].asString(); + +} + +std::string UpdateConfigRuleResult::getConfigRuleId()const +{ + return configRuleId_; +} +