diff --git a/VERSION b/VERSION index 26f3c9fba..f1866e595 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1715 \ No newline at end of file +1.36.1716 \ No newline at end of file diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index 234a7afaa..122c27207 100644 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -21,113 +21,561 @@ set(config_public_header include/alibabacloud/config/ConfigExport.h ) set(config_public_header_model + include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h + include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h include/alibabacloud/config/model/ActiveConfigRulesRequest.h include/alibabacloud/config/model/ActiveConfigRulesResult.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/CopyCompliancePacksRequest.h + include/alibabacloud/config/model/CopyCompliancePacksResult.h + include/alibabacloud/config/model/CopyConfigRulesRequest.h + include/alibabacloud/config/model/CopyConfigRulesResult.h + include/alibabacloud/config/model/CreateAdvancedSearchFileRequest.h + include/alibabacloud/config/model/CreateAdvancedSearchFileResult.h + include/alibabacloud/config/model/CreateAggregateAdvancedSearchFileRequest.h + include/alibabacloud/config/model/CreateAggregateAdvancedSearchFileResult.h + include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h + include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h + include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelRequest.h + include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.h + include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h + include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h + include/alibabacloud/config/model/CreateAggregateRemediationRequest.h + include/alibabacloud/config/model/CreateAggregateRemediationResult.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/CreateConfigDeliveryChannelRequest.h + include/alibabacloud/config/model/CreateConfigDeliveryChannelResult.h + include/alibabacloud/config/model/CreateConfigRuleRequest.h + include/alibabacloud/config/model/CreateConfigRuleResult.h + include/alibabacloud/config/model/CreateDeliveryChannelRequest.h + include/alibabacloud/config/model/CreateDeliveryChannelResult.h + include/alibabacloud/config/model/CreateRemediationRequest.h + include/alibabacloud/config/model/CreateRemediationResult.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/DeleteAggregateConfigDeliveryChannelRequest.h + include/alibabacloud/config/model/DeleteAggregateConfigDeliveryChannelResult.h + include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h + include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h + include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h + include/alibabacloud/config/model/DeleteAggregateRemediationsResult.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/DeleteConfigDeliveryChannelRequest.h + include/alibabacloud/config/model/DeleteConfigDeliveryChannelResult.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/DeleteRemediationsRequest.h + include/alibabacloud/config/model/DeleteRemediationsResult.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/EvaluatePreConfigRulesRequest.h + include/alibabacloud/config/model/EvaluatePreConfigRulesResult.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/GenerateAggregateResourceInventoryRequest.h + include/alibabacloud/config/model/GenerateAggregateResourceInventoryResult.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/GenerateResourceInventoryRequest.h + include/alibabacloud/config/model/GenerateResourceInventoryResult.h + include/alibabacloud/config/model/GetAdvancedSearchFileRequest.h + include/alibabacloud/config/model/GetAdvancedSearchFileResult.h + include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h + include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h + include/alibabacloud/config/model/GetAggregateAdvancedSearchFileRequest.h + include/alibabacloud/config/model/GetAggregateAdvancedSearchFileResult.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/GetAggregateComplianceSummaryRequest.h + include/alibabacloud/config/model/GetAggregateComplianceSummaryResult.h + include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.h + include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.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/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/GetAggregateResourceComplianceByConfigRuleRequest.h + include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h + include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h + include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h + include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionRequest.h + include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionResult.h + include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h + include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeResult.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/GetAggregateResourceInventoryRequest.h + include/alibabacloud/config/model/GetAggregateResourceInventoryResult.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/GetComplianceSummaryRequest.h + include/alibabacloud/config/model/GetComplianceSummaryResult.h + include/alibabacloud/config/model/GetConfigDeliveryChannelRequest.h + include/alibabacloud/config/model/GetConfigDeliveryChannelResult.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/GetConfigurationRecorderRequest.h + include/alibabacloud/config/model/GetConfigurationRecorderResult.h + include/alibabacloud/config/model/GetDiscoveredResourceRequest.h + include/alibabacloud/config/model/GetDiscoveredResourceResult.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/GetIntegratedServiceStatusRequest.h + include/alibabacloud/config/model/GetIntegratedServiceStatusResult.h + include/alibabacloud/config/model/GetManagedRuleRequest.h + include/alibabacloud/config/model/GetManagedRuleResult.h + include/alibabacloud/config/model/GetRemediationTemplateRequest.h + include/alibabacloud/config/model/GetRemediationTemplateResult.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/GetResourceComplianceGroupByRegionRequest.h + include/alibabacloud/config/model/GetResourceComplianceGroupByRegionResult.h + include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeRequest.h + include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeResult.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/GetResourceInventoryRequest.h + include/alibabacloud/config/model/GetResourceInventoryResult.h + include/alibabacloud/config/model/GetSupportedResourceRelationConfigRequest.h + include/alibabacloud/config/model/GetSupportedResourceRelationConfigResult.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/ListAggregateConfigDeliveryChannelsRequest.h + include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsResult.h + include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h + include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h + include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationStatisticsRequest.h + include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationStatisticsResult.h + include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h + include/alibabacloud/config/model/ListAggregateConfigRulesResult.h include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h + include/alibabacloud/config/model/ListAggregateRemediationExecutionsRequest.h + include/alibabacloud/config/model/ListAggregateRemediationExecutionsResult.h + include/alibabacloud/config/model/ListAggregateRemediationsRequest.h + include/alibabacloud/config/model/ListAggregateRemediationsResult.h + include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h + include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.h + include/alibabacloud/config/model/ListAggregateResourceRelationsRequest.h + include/alibabacloud/config/model/ListAggregateResourceRelationsResult.h + include/alibabacloud/config/model/ListAggregateResourcesByAdvancedSearchRequest.h + include/alibabacloud/config/model/ListAggregateResourcesByAdvancedSearchResult.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/ListConfigDeliveryChannelsRequest.h + include/alibabacloud/config/model/ListConfigDeliveryChannelsResult.h + include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h + include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h + include/alibabacloud/config/model/ListConfigRuleEvaluationStatisticsRequest.h + include/alibabacloud/config/model/ListConfigRuleEvaluationStatisticsResult.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/ListIntegratedServiceRequest.h + include/alibabacloud/config/model/ListIntegratedServiceResult.h + include/alibabacloud/config/model/ListManagedRulesRequest.h + include/alibabacloud/config/model/ListManagedRulesResult.h + include/alibabacloud/config/model/ListPreManagedRulesRequest.h + include/alibabacloud/config/model/ListPreManagedRulesResult.h + include/alibabacloud/config/model/ListRemediationExecutionsRequest.h + include/alibabacloud/config/model/ListRemediationExecutionsResult.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/ListRemediationsRequest.h + include/alibabacloud/config/model/ListRemediationsResult.h + include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h + include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h + include/alibabacloud/config/model/ListResourceRelationsRequest.h + include/alibabacloud/config/model/ListResourceRelationsResult.h + include/alibabacloud/config/model/ListResourcesByAdvancedSearchRequest.h + include/alibabacloud/config/model/ListResourcesByAdvancedSearchResult.h + include/alibabacloud/config/model/ListSupportedProductsRequest.h + include/alibabacloud/config/model/ListSupportedProductsResult.h + include/alibabacloud/config/model/ListTagResourcesRequest.h + include/alibabacloud/config/model/ListTagResourcesResult.h include/alibabacloud/config/model/PutEvaluationsRequest.h include/alibabacloud/config/model/PutEvaluationsResult.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/StartAggregateRemediationRequest.h + include/alibabacloud/config/model/StartAggregateRemediationResult.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/StartRemediationRequest.h + include/alibabacloud/config/model/StartRemediationResult.h + include/alibabacloud/config/model/StopConfigurationRecorderRequest.h + include/alibabacloud/config/model/StopConfigurationRecorderResult.h + include/alibabacloud/config/model/TagResourcesRequest.h + include/alibabacloud/config/model/TagResourcesResult.h + include/alibabacloud/config/model/UntagResourcesRequest.h + include/alibabacloud/config/model/UntagResourcesResult.h + include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h + include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h + include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelRequest.h + include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.h + include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h + include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h + include/alibabacloud/config/model/UpdateAggregateRemediationRequest.h + include/alibabacloud/config/model/UpdateAggregateRemediationResult.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/UpdateConfigDeliveryChannelRequest.h + include/alibabacloud/config/model/UpdateConfigDeliveryChannelResult.h + include/alibabacloud/config/model/UpdateConfigRuleRequest.h + include/alibabacloud/config/model/UpdateConfigRuleResult.h + include/alibabacloud/config/model/UpdateConfigurationRecorderRequest.h + include/alibabacloud/config/model/UpdateConfigurationRecorderResult.h + include/alibabacloud/config/model/UpdateDeliveryChannelRequest.h + include/alibabacloud/config/model/UpdateDeliveryChannelResult.h + include/alibabacloud/config/model/UpdateIntegratedServiceStatusRequest.h + include/alibabacloud/config/model/UpdateIntegratedServiceStatusResult.h + include/alibabacloud/config/model/UpdateRemediationRequest.h + include/alibabacloud/config/model/UpdateRemediationResult.h ) set(config_src src/ConfigClient.cc + src/model/ActiveAggregateConfigRulesRequest.cc + src/model/ActiveAggregateConfigRulesResult.cc src/model/ActiveConfigRulesRequest.cc src/model/ActiveConfigRulesResult.cc + src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc + src/model/AttachAggregateConfigRuleToCompliancePackResult.cc + src/model/AttachConfigRuleToCompliancePackRequest.cc + src/model/AttachConfigRuleToCompliancePackResult.cc + src/model/CopyCompliancePacksRequest.cc + src/model/CopyCompliancePacksResult.cc + src/model/CopyConfigRulesRequest.cc + src/model/CopyConfigRulesResult.cc + src/model/CreateAdvancedSearchFileRequest.cc + src/model/CreateAdvancedSearchFileResult.cc + src/model/CreateAggregateAdvancedSearchFileRequest.cc + src/model/CreateAggregateAdvancedSearchFileResult.cc + src/model/CreateAggregateCompliancePackRequest.cc + src/model/CreateAggregateCompliancePackResult.cc + src/model/CreateAggregateConfigDeliveryChannelRequest.cc + src/model/CreateAggregateConfigDeliveryChannelResult.cc + src/model/CreateAggregateConfigRuleRequest.cc + src/model/CreateAggregateConfigRuleResult.cc + src/model/CreateAggregateRemediationRequest.cc + src/model/CreateAggregateRemediationResult.cc + src/model/CreateAggregatorRequest.cc + src/model/CreateAggregatorResult.cc + src/model/CreateCompliancePackRequest.cc + src/model/CreateCompliancePackResult.cc + src/model/CreateConfigDeliveryChannelRequest.cc + src/model/CreateConfigDeliveryChannelResult.cc + src/model/CreateConfigRuleRequest.cc + src/model/CreateConfigRuleResult.cc + src/model/CreateDeliveryChannelRequest.cc + src/model/CreateDeliveryChannelResult.cc + src/model/CreateRemediationRequest.cc + src/model/CreateRemediationResult.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/DeleteAggregateConfigDeliveryChannelRequest.cc + src/model/DeleteAggregateConfigDeliveryChannelResult.cc + src/model/DeleteAggregateConfigRulesRequest.cc + src/model/DeleteAggregateConfigRulesResult.cc + src/model/DeleteAggregateRemediationsRequest.cc + src/model/DeleteAggregateRemediationsResult.cc + src/model/DeleteAggregatorsRequest.cc + src/model/DeleteAggregatorsResult.cc + src/model/DeleteCompliancePacksRequest.cc + src/model/DeleteCompliancePacksResult.cc + src/model/DeleteConfigDeliveryChannelRequest.cc + src/model/DeleteConfigDeliveryChannelResult.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/DeleteRemediationsRequest.cc + src/model/DeleteRemediationsResult.cc + src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc + src/model/DetachAggregateConfigRuleToCompliancePackResult.cc + src/model/DetachConfigRuleToCompliancePackRequest.cc + src/model/DetachConfigRuleToCompliancePackResult.cc + src/model/EvaluatePreConfigRulesRequest.cc + src/model/EvaluatePreConfigRulesResult.cc + src/model/GenerateAggregateCompliancePackReportRequest.cc + src/model/GenerateAggregateCompliancePackReportResult.cc + src/model/GenerateAggregateConfigRulesReportRequest.cc + src/model/GenerateAggregateConfigRulesReportResult.cc + src/model/GenerateAggregateResourceInventoryRequest.cc + src/model/GenerateAggregateResourceInventoryResult.cc + src/model/GenerateCompliancePackReportRequest.cc + src/model/GenerateCompliancePackReportResult.cc + src/model/GenerateConfigRulesReportRequest.cc + src/model/GenerateConfigRulesReportResult.cc + src/model/GenerateResourceInventoryRequest.cc + src/model/GenerateResourceInventoryResult.cc + src/model/GetAdvancedSearchFileRequest.cc + src/model/GetAdvancedSearchFileResult.cc + src/model/GetAggregateAccountComplianceByPackRequest.cc + src/model/GetAggregateAccountComplianceByPackResult.cc + src/model/GetAggregateAdvancedSearchFileRequest.cc + src/model/GetAggregateAdvancedSearchFileResult.cc + src/model/GetAggregateCompliancePackRequest.cc + src/model/GetAggregateCompliancePackResult.cc + src/model/GetAggregateCompliancePackReportRequest.cc + src/model/GetAggregateCompliancePackReportResult.cc + src/model/GetAggregateComplianceSummaryRequest.cc + src/model/GetAggregateComplianceSummaryResult.cc + src/model/GetAggregateConfigDeliveryChannelRequest.cc + src/model/GetAggregateConfigDeliveryChannelResult.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/GetAggregateDiscoveredResourceRequest.cc src/model/GetAggregateDiscoveredResourceResult.cc - src/model/GetDiscoveredResourceCountsRequest.cc - src/model/GetDiscoveredResourceCountsResult.cc - src/model/GetDiscoveredResourceSummaryRequest.cc - src/model/GetDiscoveredResourceSummaryResult.cc + src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc + src/model/GetAggregateResourceComplianceByConfigRuleResult.cc + src/model/GetAggregateResourceComplianceByPackRequest.cc + src/model/GetAggregateResourceComplianceByPackResult.cc + src/model/GetAggregateResourceComplianceGroupByRegionRequest.cc + src/model/GetAggregateResourceComplianceGroupByRegionResult.cc + src/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.cc + src/model/GetAggregateResourceComplianceGroupByResourceTypeResult.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/GetAggregateResourceInventoryRequest.cc + src/model/GetAggregateResourceInventoryResult.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/GetComplianceSummaryRequest.cc + src/model/GetComplianceSummaryResult.cc + src/model/GetConfigDeliveryChannelRequest.cc + src/model/GetConfigDeliveryChannelResult.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/GetConfigurationRecorderRequest.cc + src/model/GetConfigurationRecorderResult.cc + src/model/GetDiscoveredResourceRequest.cc + src/model/GetDiscoveredResourceResult.cc + src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc + src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc + src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc + src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc + src/model/GetIntegratedServiceStatusRequest.cc + src/model/GetIntegratedServiceStatusResult.cc + src/model/GetManagedRuleRequest.cc + src/model/GetManagedRuleResult.cc + src/model/GetRemediationTemplateRequest.cc + src/model/GetRemediationTemplateResult.cc + src/model/GetResourceComplianceByConfigRuleRequest.cc + src/model/GetResourceComplianceByConfigRuleResult.cc + src/model/GetResourceComplianceByPackRequest.cc + src/model/GetResourceComplianceByPackResult.cc + src/model/GetResourceComplianceGroupByRegionRequest.cc + src/model/GetResourceComplianceGroupByRegionResult.cc + src/model/GetResourceComplianceGroupByResourceTypeRequest.cc + src/model/GetResourceComplianceGroupByResourceTypeResult.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/GetResourceInventoryRequest.cc + src/model/GetResourceInventoryResult.cc + src/model/GetSupportedResourceRelationConfigRequest.cc + src/model/GetSupportedResourceRelationConfigResult.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/ListAggregateConfigDeliveryChannelsRequest.cc + src/model/ListAggregateConfigDeliveryChannelsResult.cc + src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc + src/model/ListAggregateConfigRuleEvaluationResultsResult.cc + src/model/ListAggregateConfigRuleEvaluationStatisticsRequest.cc + src/model/ListAggregateConfigRuleEvaluationStatisticsResult.cc + src/model/ListAggregateConfigRulesRequest.cc + src/model/ListAggregateConfigRulesResult.cc src/model/ListAggregateDiscoveredResourcesRequest.cc src/model/ListAggregateDiscoveredResourcesResult.cc + src/model/ListAggregateRemediationExecutionsRequest.cc + src/model/ListAggregateRemediationExecutionsResult.cc + src/model/ListAggregateRemediationsRequest.cc + src/model/ListAggregateRemediationsResult.cc + src/model/ListAggregateResourceEvaluationResultsRequest.cc + src/model/ListAggregateResourceEvaluationResultsResult.cc + src/model/ListAggregateResourceRelationsRequest.cc + src/model/ListAggregateResourceRelationsResult.cc + src/model/ListAggregateResourcesByAdvancedSearchRequest.cc + src/model/ListAggregateResourcesByAdvancedSearchResult.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/ListConfigDeliveryChannelsRequest.cc + src/model/ListConfigDeliveryChannelsResult.cc + src/model/ListConfigRuleEvaluationResultsRequest.cc + src/model/ListConfigRuleEvaluationResultsResult.cc + src/model/ListConfigRuleEvaluationStatisticsRequest.cc + src/model/ListConfigRuleEvaluationStatisticsResult.cc src/model/ListConfigRulesRequest.cc src/model/ListConfigRulesResult.cc src/model/ListDiscoveredResourcesRequest.cc src/model/ListDiscoveredResourcesResult.cc + src/model/ListIntegratedServiceRequest.cc + src/model/ListIntegratedServiceResult.cc + src/model/ListManagedRulesRequest.cc + src/model/ListManagedRulesResult.cc + src/model/ListPreManagedRulesRequest.cc + src/model/ListPreManagedRulesResult.cc + src/model/ListRemediationExecutionsRequest.cc + src/model/ListRemediationExecutionsResult.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/ListRemediationsRequest.cc + src/model/ListRemediationsResult.cc + src/model/ListResourceEvaluationResultsRequest.cc + src/model/ListResourceEvaluationResultsResult.cc + src/model/ListResourceRelationsRequest.cc + src/model/ListResourceRelationsResult.cc + src/model/ListResourcesByAdvancedSearchRequest.cc + src/model/ListResourcesByAdvancedSearchResult.cc + src/model/ListSupportedProductsRequest.cc + src/model/ListSupportedProductsResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc src/model/PutEvaluationsRequest.cc src/model/PutEvaluationsResult.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/StartAggregateRemediationRequest.cc + src/model/StartAggregateRemediationResult.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/StartRemediationRequest.cc + src/model/StartRemediationResult.cc + src/model/StopConfigurationRecorderRequest.cc + src/model/StopConfigurationRecorderResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/UpdateAggregateCompliancePackRequest.cc + src/model/UpdateAggregateCompliancePackResult.cc + src/model/UpdateAggregateConfigDeliveryChannelRequest.cc + src/model/UpdateAggregateConfigDeliveryChannelResult.cc + src/model/UpdateAggregateConfigRuleRequest.cc + src/model/UpdateAggregateConfigRuleResult.cc + src/model/UpdateAggregateRemediationRequest.cc + src/model/UpdateAggregateRemediationResult.cc + src/model/UpdateAggregatorRequest.cc + src/model/UpdateAggregatorResult.cc + src/model/UpdateCompliancePackRequest.cc + src/model/UpdateCompliancePackResult.cc + src/model/UpdateConfigDeliveryChannelRequest.cc + src/model/UpdateConfigDeliveryChannelResult.cc + src/model/UpdateConfigRuleRequest.cc + src/model/UpdateConfigRuleResult.cc + src/model/UpdateConfigurationRecorderRequest.cc + src/model/UpdateConfigurationRecorderResult.cc + src/model/UpdateDeliveryChannelRequest.cc + src/model/UpdateDeliveryChannelResult.cc + src/model/UpdateIntegratedServiceStatusRequest.cc + src/model/UpdateIntegratedServiceStatusResult.cc + src/model/UpdateRemediationRequest.cc + src/model/UpdateRemediationResult.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..d1350a769 100644 --- a/config/include/alibabacloud/config/ConfigClient.h +++ b/config/include/alibabacloud/config/ConfigClient.h @@ -22,58 +22,282 @@ #include #include #include "ConfigExport.h" +#include "model/ActiveAggregateConfigRulesRequest.h" +#include "model/ActiveAggregateConfigRulesResult.h" #include "model/ActiveConfigRulesRequest.h" #include "model/ActiveConfigRulesResult.h" +#include "model/AttachAggregateConfigRuleToCompliancePackRequest.h" +#include "model/AttachAggregateConfigRuleToCompliancePackResult.h" +#include "model/AttachConfigRuleToCompliancePackRequest.h" +#include "model/AttachConfigRuleToCompliancePackResult.h" +#include "model/CopyCompliancePacksRequest.h" +#include "model/CopyCompliancePacksResult.h" +#include "model/CopyConfigRulesRequest.h" +#include "model/CopyConfigRulesResult.h" +#include "model/CreateAdvancedSearchFileRequest.h" +#include "model/CreateAdvancedSearchFileResult.h" +#include "model/CreateAggregateAdvancedSearchFileRequest.h" +#include "model/CreateAggregateAdvancedSearchFileResult.h" +#include "model/CreateAggregateCompliancePackRequest.h" +#include "model/CreateAggregateCompliancePackResult.h" +#include "model/CreateAggregateConfigDeliveryChannelRequest.h" +#include "model/CreateAggregateConfigDeliveryChannelResult.h" +#include "model/CreateAggregateConfigRuleRequest.h" +#include "model/CreateAggregateConfigRuleResult.h" +#include "model/CreateAggregateRemediationRequest.h" +#include "model/CreateAggregateRemediationResult.h" +#include "model/CreateAggregatorRequest.h" +#include "model/CreateAggregatorResult.h" +#include "model/CreateCompliancePackRequest.h" +#include "model/CreateCompliancePackResult.h" +#include "model/CreateConfigDeliveryChannelRequest.h" +#include "model/CreateConfigDeliveryChannelResult.h" +#include "model/CreateConfigRuleRequest.h" +#include "model/CreateConfigRuleResult.h" +#include "model/CreateDeliveryChannelRequest.h" +#include "model/CreateDeliveryChannelResult.h" +#include "model/CreateRemediationRequest.h" +#include "model/CreateRemediationResult.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/DeleteAggregateConfigDeliveryChannelRequest.h" +#include "model/DeleteAggregateConfigDeliveryChannelResult.h" +#include "model/DeleteAggregateConfigRulesRequest.h" +#include "model/DeleteAggregateConfigRulesResult.h" +#include "model/DeleteAggregateRemediationsRequest.h" +#include "model/DeleteAggregateRemediationsResult.h" +#include "model/DeleteAggregatorsRequest.h" +#include "model/DeleteAggregatorsResult.h" +#include "model/DeleteCompliancePacksRequest.h" +#include "model/DeleteCompliancePacksResult.h" +#include "model/DeleteConfigDeliveryChannelRequest.h" +#include "model/DeleteConfigDeliveryChannelResult.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/DeleteRemediationsRequest.h" +#include "model/DeleteRemediationsResult.h" +#include "model/DetachAggregateConfigRuleToCompliancePackRequest.h" +#include "model/DetachAggregateConfigRuleToCompliancePackResult.h" +#include "model/DetachConfigRuleToCompliancePackRequest.h" +#include "model/DetachConfigRuleToCompliancePackResult.h" +#include "model/EvaluatePreConfigRulesRequest.h" +#include "model/EvaluatePreConfigRulesResult.h" +#include "model/GenerateAggregateCompliancePackReportRequest.h" +#include "model/GenerateAggregateCompliancePackReportResult.h" +#include "model/GenerateAggregateConfigRulesReportRequest.h" +#include "model/GenerateAggregateConfigRulesReportResult.h" +#include "model/GenerateAggregateResourceInventoryRequest.h" +#include "model/GenerateAggregateResourceInventoryResult.h" +#include "model/GenerateCompliancePackReportRequest.h" +#include "model/GenerateCompliancePackReportResult.h" +#include "model/GenerateConfigRulesReportRequest.h" +#include "model/GenerateConfigRulesReportResult.h" +#include "model/GenerateResourceInventoryRequest.h" +#include "model/GenerateResourceInventoryResult.h" +#include "model/GetAdvancedSearchFileRequest.h" +#include "model/GetAdvancedSearchFileResult.h" +#include "model/GetAggregateAccountComplianceByPackRequest.h" +#include "model/GetAggregateAccountComplianceByPackResult.h" +#include "model/GetAggregateAdvancedSearchFileRequest.h" +#include "model/GetAggregateAdvancedSearchFileResult.h" +#include "model/GetAggregateCompliancePackRequest.h" +#include "model/GetAggregateCompliancePackResult.h" +#include "model/GetAggregateCompliancePackReportRequest.h" +#include "model/GetAggregateCompliancePackReportResult.h" +#include "model/GetAggregateComplianceSummaryRequest.h" +#include "model/GetAggregateComplianceSummaryResult.h" +#include "model/GetAggregateConfigDeliveryChannelRequest.h" +#include "model/GetAggregateConfigDeliveryChannelResult.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/GetAggregateDiscoveredResourceRequest.h" #include "model/GetAggregateDiscoveredResourceResult.h" -#include "model/GetDiscoveredResourceCountsRequest.h" -#include "model/GetDiscoveredResourceCountsResult.h" -#include "model/GetDiscoveredResourceSummaryRequest.h" -#include "model/GetDiscoveredResourceSummaryResult.h" +#include "model/GetAggregateResourceComplianceByConfigRuleRequest.h" +#include "model/GetAggregateResourceComplianceByConfigRuleResult.h" +#include "model/GetAggregateResourceComplianceByPackRequest.h" +#include "model/GetAggregateResourceComplianceByPackResult.h" +#include "model/GetAggregateResourceComplianceGroupByRegionRequest.h" +#include "model/GetAggregateResourceComplianceGroupByRegionResult.h" +#include "model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h" +#include "model/GetAggregateResourceComplianceGroupByResourceTypeResult.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/GetAggregateResourceInventoryRequest.h" +#include "model/GetAggregateResourceInventoryResult.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/GetComplianceSummaryRequest.h" +#include "model/GetComplianceSummaryResult.h" +#include "model/GetConfigDeliveryChannelRequest.h" +#include "model/GetConfigDeliveryChannelResult.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/GetConfigurationRecorderRequest.h" +#include "model/GetConfigurationRecorderResult.h" +#include "model/GetDiscoveredResourceRequest.h" +#include "model/GetDiscoveredResourceResult.h" +#include "model/GetDiscoveredResourceCountsGroupByRegionRequest.h" +#include "model/GetDiscoveredResourceCountsGroupByRegionResult.h" +#include "model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h" +#include "model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h" +#include "model/GetIntegratedServiceStatusRequest.h" +#include "model/GetIntegratedServiceStatusResult.h" +#include "model/GetManagedRuleRequest.h" +#include "model/GetManagedRuleResult.h" +#include "model/GetRemediationTemplateRequest.h" +#include "model/GetRemediationTemplateResult.h" +#include "model/GetResourceComplianceByConfigRuleRequest.h" +#include "model/GetResourceComplianceByConfigRuleResult.h" +#include "model/GetResourceComplianceByPackRequest.h" +#include "model/GetResourceComplianceByPackResult.h" +#include "model/GetResourceComplianceGroupByRegionRequest.h" +#include "model/GetResourceComplianceGroupByRegionResult.h" +#include "model/GetResourceComplianceGroupByResourceTypeRequest.h" +#include "model/GetResourceComplianceGroupByResourceTypeResult.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/GetResourceInventoryRequest.h" +#include "model/GetResourceInventoryResult.h" +#include "model/GetSupportedResourceRelationConfigRequest.h" +#include "model/GetSupportedResourceRelationConfigResult.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/ListAggregateConfigDeliveryChannelsRequest.h" +#include "model/ListAggregateConfigDeliveryChannelsResult.h" +#include "model/ListAggregateConfigRuleEvaluationResultsRequest.h" +#include "model/ListAggregateConfigRuleEvaluationResultsResult.h" +#include "model/ListAggregateConfigRuleEvaluationStatisticsRequest.h" +#include "model/ListAggregateConfigRuleEvaluationStatisticsResult.h" +#include "model/ListAggregateConfigRulesRequest.h" +#include "model/ListAggregateConfigRulesResult.h" #include "model/ListAggregateDiscoveredResourcesRequest.h" #include "model/ListAggregateDiscoveredResourcesResult.h" +#include "model/ListAggregateRemediationExecutionsRequest.h" +#include "model/ListAggregateRemediationExecutionsResult.h" +#include "model/ListAggregateRemediationsRequest.h" +#include "model/ListAggregateRemediationsResult.h" +#include "model/ListAggregateResourceEvaluationResultsRequest.h" +#include "model/ListAggregateResourceEvaluationResultsResult.h" +#include "model/ListAggregateResourceRelationsRequest.h" +#include "model/ListAggregateResourceRelationsResult.h" +#include "model/ListAggregateResourcesByAdvancedSearchRequest.h" +#include "model/ListAggregateResourcesByAdvancedSearchResult.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/ListConfigDeliveryChannelsRequest.h" +#include "model/ListConfigDeliveryChannelsResult.h" +#include "model/ListConfigRuleEvaluationResultsRequest.h" +#include "model/ListConfigRuleEvaluationResultsResult.h" +#include "model/ListConfigRuleEvaluationStatisticsRequest.h" +#include "model/ListConfigRuleEvaluationStatisticsResult.h" #include "model/ListConfigRulesRequest.h" #include "model/ListConfigRulesResult.h" #include "model/ListDiscoveredResourcesRequest.h" #include "model/ListDiscoveredResourcesResult.h" +#include "model/ListIntegratedServiceRequest.h" +#include "model/ListIntegratedServiceResult.h" +#include "model/ListManagedRulesRequest.h" +#include "model/ListManagedRulesResult.h" +#include "model/ListPreManagedRulesRequest.h" +#include "model/ListPreManagedRulesResult.h" +#include "model/ListRemediationExecutionsRequest.h" +#include "model/ListRemediationExecutionsResult.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/ListRemediationsRequest.h" +#include "model/ListRemediationsResult.h" +#include "model/ListResourceEvaluationResultsRequest.h" +#include "model/ListResourceEvaluationResultsResult.h" +#include "model/ListResourceRelationsRequest.h" +#include "model/ListResourceRelationsResult.h" +#include "model/ListResourcesByAdvancedSearchRequest.h" +#include "model/ListResourcesByAdvancedSearchResult.h" +#include "model/ListSupportedProductsRequest.h" +#include "model/ListSupportedProductsResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" #include "model/PutEvaluationsRequest.h" #include "model/PutEvaluationsResult.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/StartAggregateRemediationRequest.h" +#include "model/StartAggregateRemediationResult.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/StartRemediationRequest.h" +#include "model/StartRemediationResult.h" +#include "model/StopConfigurationRecorderRequest.h" +#include "model/StopConfigurationRecorderResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/UpdateAggregateCompliancePackRequest.h" +#include "model/UpdateAggregateCompliancePackResult.h" +#include "model/UpdateAggregateConfigDeliveryChannelRequest.h" +#include "model/UpdateAggregateConfigDeliveryChannelResult.h" +#include "model/UpdateAggregateConfigRuleRequest.h" +#include "model/UpdateAggregateConfigRuleResult.h" +#include "model/UpdateAggregateRemediationRequest.h" +#include "model/UpdateAggregateRemediationResult.h" +#include "model/UpdateAggregatorRequest.h" +#include "model/UpdateAggregatorResult.h" +#include "model/UpdateCompliancePackRequest.h" +#include "model/UpdateCompliancePackResult.h" +#include "model/UpdateConfigDeliveryChannelRequest.h" +#include "model/UpdateConfigDeliveryChannelResult.h" +#include "model/UpdateConfigRuleRequest.h" +#include "model/UpdateConfigRuleResult.h" +#include "model/UpdateConfigurationRecorderRequest.h" +#include "model/UpdateConfigurationRecorderResult.h" +#include "model/UpdateDeliveryChannelRequest.h" +#include "model/UpdateDeliveryChannelResult.h" +#include "model/UpdateIntegratedServiceStatusRequest.h" +#include "model/UpdateIntegratedServiceStatusResult.h" +#include "model/UpdateRemediationRequest.h" +#include "model/UpdateRemediationResult.h" namespace AlibabaCloud @@ -83,167 +307,839 @@ namespace AlibabaCloud class ALIBABACLOUD_CONFIG_EXPORT ConfigClient : public RpcServiceClient { public: + typedef Outcome ActiveAggregateConfigRulesOutcome; + typedef std::future ActiveAggregateConfigRulesOutcomeCallable; + typedef std::function&)> ActiveAggregateConfigRulesAsyncHandler; typedef Outcome ActiveConfigRulesOutcome; typedef std::future ActiveConfigRulesOutcomeCallable; typedef std::function&)> ActiveConfigRulesAsyncHandler; + typedef Outcome AttachAggregateConfigRuleToCompliancePackOutcome; + typedef std::future AttachAggregateConfigRuleToCompliancePackOutcomeCallable; + typedef std::function&)> AttachAggregateConfigRuleToCompliancePackAsyncHandler; + typedef Outcome AttachConfigRuleToCompliancePackOutcome; + typedef std::future AttachConfigRuleToCompliancePackOutcomeCallable; + typedef std::function&)> AttachConfigRuleToCompliancePackAsyncHandler; + typedef Outcome CopyCompliancePacksOutcome; + typedef std::future CopyCompliancePacksOutcomeCallable; + typedef std::function&)> CopyCompliancePacksAsyncHandler; + typedef Outcome CopyConfigRulesOutcome; + typedef std::future CopyConfigRulesOutcomeCallable; + typedef std::function&)> CopyConfigRulesAsyncHandler; + typedef Outcome CreateAdvancedSearchFileOutcome; + typedef std::future CreateAdvancedSearchFileOutcomeCallable; + typedef std::function&)> CreateAdvancedSearchFileAsyncHandler; + typedef Outcome CreateAggregateAdvancedSearchFileOutcome; + typedef std::future CreateAggregateAdvancedSearchFileOutcomeCallable; + typedef std::function&)> CreateAggregateAdvancedSearchFileAsyncHandler; + typedef Outcome CreateAggregateCompliancePackOutcome; + typedef std::future CreateAggregateCompliancePackOutcomeCallable; + typedef std::function&)> CreateAggregateCompliancePackAsyncHandler; + typedef Outcome CreateAggregateConfigDeliveryChannelOutcome; + typedef std::future CreateAggregateConfigDeliveryChannelOutcomeCallable; + typedef std::function&)> CreateAggregateConfigDeliveryChannelAsyncHandler; + typedef Outcome CreateAggregateConfigRuleOutcome; + typedef std::future CreateAggregateConfigRuleOutcomeCallable; + typedef std::function&)> CreateAggregateConfigRuleAsyncHandler; + typedef Outcome CreateAggregateRemediationOutcome; + typedef std::future CreateAggregateRemediationOutcomeCallable; + typedef std::function&)> CreateAggregateRemediationAsyncHandler; + typedef Outcome CreateAggregatorOutcome; + typedef std::future CreateAggregatorOutcomeCallable; + typedef std::function&)> CreateAggregatorAsyncHandler; + typedef Outcome CreateCompliancePackOutcome; + typedef std::future CreateCompliancePackOutcomeCallable; + typedef std::function&)> CreateCompliancePackAsyncHandler; + typedef Outcome CreateConfigDeliveryChannelOutcome; + typedef std::future CreateConfigDeliveryChannelOutcomeCallable; + typedef std::function&)> CreateConfigDeliveryChannelAsyncHandler; + typedef Outcome CreateConfigRuleOutcome; + typedef std::future CreateConfigRuleOutcomeCallable; + typedef std::function&)> CreateConfigRuleAsyncHandler; + typedef Outcome CreateDeliveryChannelOutcome; + typedef std::future CreateDeliveryChannelOutcomeCallable; + typedef std::function&)> CreateDeliveryChannelAsyncHandler; + typedef Outcome CreateRemediationOutcome; + typedef std::future CreateRemediationOutcomeCallable; + typedef std::function&)> CreateRemediationAsyncHandler; + 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 DeleteAggregateConfigDeliveryChannelOutcome; + typedef std::future DeleteAggregateConfigDeliveryChannelOutcomeCallable; + typedef std::function&)> DeleteAggregateConfigDeliveryChannelAsyncHandler; + typedef Outcome DeleteAggregateConfigRulesOutcome; + typedef std::future DeleteAggregateConfigRulesOutcomeCallable; + typedef std::function&)> DeleteAggregateConfigRulesAsyncHandler; + typedef Outcome DeleteAggregateRemediationsOutcome; + typedef std::future DeleteAggregateRemediationsOutcomeCallable; + typedef std::function&)> DeleteAggregateRemediationsAsyncHandler; + typedef Outcome DeleteAggregatorsOutcome; + typedef std::future DeleteAggregatorsOutcomeCallable; + typedef std::function&)> DeleteAggregatorsAsyncHandler; + typedef Outcome DeleteCompliancePacksOutcome; + typedef std::future DeleteCompliancePacksOutcomeCallable; + typedef std::function&)> DeleteCompliancePacksAsyncHandler; + typedef Outcome DeleteConfigDeliveryChannelOutcome; + typedef std::future DeleteConfigDeliveryChannelOutcomeCallable; + typedef std::function&)> DeleteConfigDeliveryChannelAsyncHandler; 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 DeleteRemediationsOutcome; + typedef std::future DeleteRemediationsOutcomeCallable; + typedef std::function&)> DeleteRemediationsAsyncHandler; + typedef Outcome DetachAggregateConfigRuleToCompliancePackOutcome; + typedef std::future DetachAggregateConfigRuleToCompliancePackOutcomeCallable; + typedef std::function&)> DetachAggregateConfigRuleToCompliancePackAsyncHandler; + typedef Outcome DetachConfigRuleToCompliancePackOutcome; + typedef std::future DetachConfigRuleToCompliancePackOutcomeCallable; + typedef std::function&)> DetachConfigRuleToCompliancePackAsyncHandler; + typedef Outcome EvaluatePreConfigRulesOutcome; + typedef std::future EvaluatePreConfigRulesOutcomeCallable; + typedef std::function&)> EvaluatePreConfigRulesAsyncHandler; + typedef Outcome GenerateAggregateCompliancePackReportOutcome; + typedef std::future GenerateAggregateCompliancePackReportOutcomeCallable; + typedef std::function&)> GenerateAggregateCompliancePackReportAsyncHandler; + typedef Outcome GenerateAggregateConfigRulesReportOutcome; + typedef std::future GenerateAggregateConfigRulesReportOutcomeCallable; + typedef std::function&)> GenerateAggregateConfigRulesReportAsyncHandler; + typedef Outcome GenerateAggregateResourceInventoryOutcome; + typedef std::future GenerateAggregateResourceInventoryOutcomeCallable; + typedef std::function&)> GenerateAggregateResourceInventoryAsyncHandler; + typedef Outcome GenerateCompliancePackReportOutcome; + typedef std::future GenerateCompliancePackReportOutcomeCallable; + typedef std::function&)> GenerateCompliancePackReportAsyncHandler; + typedef Outcome GenerateConfigRulesReportOutcome; + typedef std::future GenerateConfigRulesReportOutcomeCallable; + typedef std::function&)> GenerateConfigRulesReportAsyncHandler; + typedef Outcome GenerateResourceInventoryOutcome; + typedef std::future GenerateResourceInventoryOutcomeCallable; + typedef std::function&)> GenerateResourceInventoryAsyncHandler; + typedef Outcome GetAdvancedSearchFileOutcome; + typedef std::future GetAdvancedSearchFileOutcomeCallable; + typedef std::function&)> GetAdvancedSearchFileAsyncHandler; + typedef Outcome GetAggregateAccountComplianceByPackOutcome; + typedef std::future GetAggregateAccountComplianceByPackOutcomeCallable; + typedef std::function&)> GetAggregateAccountComplianceByPackAsyncHandler; + typedef Outcome GetAggregateAdvancedSearchFileOutcome; + typedef std::future GetAggregateAdvancedSearchFileOutcomeCallable; + typedef std::function&)> GetAggregateAdvancedSearchFileAsyncHandler; + typedef Outcome GetAggregateCompliancePackOutcome; + typedef std::future GetAggregateCompliancePackOutcomeCallable; + typedef std::function&)> GetAggregateCompliancePackAsyncHandler; + typedef Outcome GetAggregateCompliancePackReportOutcome; + typedef std::future GetAggregateCompliancePackReportOutcomeCallable; + typedef std::function&)> GetAggregateCompliancePackReportAsyncHandler; + typedef Outcome GetAggregateComplianceSummaryOutcome; + typedef std::future GetAggregateComplianceSummaryOutcomeCallable; + typedef std::function&)> GetAggregateComplianceSummaryAsyncHandler; + typedef Outcome GetAggregateConfigDeliveryChannelOutcome; + typedef std::future GetAggregateConfigDeliveryChannelOutcomeCallable; + typedef std::function&)> GetAggregateConfigDeliveryChannelAsyncHandler; + 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 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 GetAggregateResourceComplianceByConfigRuleOutcome; + typedef std::future GetAggregateResourceComplianceByConfigRuleOutcomeCallable; + typedef std::function&)> GetAggregateResourceComplianceByConfigRuleAsyncHandler; + typedef Outcome GetAggregateResourceComplianceByPackOutcome; + typedef std::future GetAggregateResourceComplianceByPackOutcomeCallable; + typedef std::function&)> GetAggregateResourceComplianceByPackAsyncHandler; + typedef Outcome GetAggregateResourceComplianceGroupByRegionOutcome; + typedef std::future GetAggregateResourceComplianceGroupByRegionOutcomeCallable; + typedef std::function&)> GetAggregateResourceComplianceGroupByRegionAsyncHandler; + typedef Outcome GetAggregateResourceComplianceGroupByResourceTypeOutcome; + typedef std::future GetAggregateResourceComplianceGroupByResourceTypeOutcomeCallable; + typedef std::function&)> GetAggregateResourceComplianceGroupByResourceTypeAsyncHandler; + 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 GetAggregateResourceInventoryOutcome; + typedef std::future GetAggregateResourceInventoryOutcomeCallable; + typedef std::function&)> GetAggregateResourceInventoryAsyncHandler; + 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 GetComplianceSummaryOutcome; + typedef std::future GetComplianceSummaryOutcomeCallable; + typedef std::function&)> GetComplianceSummaryAsyncHandler; + typedef Outcome GetConfigDeliveryChannelOutcome; + typedef std::future GetConfigDeliveryChannelOutcomeCallable; + typedef std::function&)> GetConfigDeliveryChannelAsyncHandler; + 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 GetConfigurationRecorderOutcome; + typedef std::future GetConfigurationRecorderOutcomeCallable; + typedef std::function&)> GetConfigurationRecorderAsyncHandler; + typedef Outcome GetDiscoveredResourceOutcome; + typedef std::future GetDiscoveredResourceOutcomeCallable; + typedef std::function&)> GetDiscoveredResourceAsyncHandler; + typedef Outcome GetDiscoveredResourceCountsGroupByRegionOutcome; + typedef std::future GetDiscoveredResourceCountsGroupByRegionOutcomeCallable; + typedef std::function&)> GetDiscoveredResourceCountsGroupByRegionAsyncHandler; + typedef Outcome GetDiscoveredResourceCountsGroupByResourceTypeOutcome; + typedef std::future GetDiscoveredResourceCountsGroupByResourceTypeOutcomeCallable; + typedef std::function&)> GetDiscoveredResourceCountsGroupByResourceTypeAsyncHandler; + typedef Outcome GetIntegratedServiceStatusOutcome; + typedef std::future GetIntegratedServiceStatusOutcomeCallable; + typedef std::function&)> GetIntegratedServiceStatusAsyncHandler; + typedef Outcome GetManagedRuleOutcome; + typedef std::future GetManagedRuleOutcomeCallable; + typedef std::function&)> GetManagedRuleAsyncHandler; + typedef Outcome GetRemediationTemplateOutcome; + typedef std::future GetRemediationTemplateOutcomeCallable; + typedef std::function&)> GetRemediationTemplateAsyncHandler; + typedef Outcome GetResourceComplianceByConfigRuleOutcome; + typedef std::future GetResourceComplianceByConfigRuleOutcomeCallable; + typedef std::function&)> GetResourceComplianceByConfigRuleAsyncHandler; + typedef Outcome GetResourceComplianceByPackOutcome; + typedef std::future GetResourceComplianceByPackOutcomeCallable; + typedef std::function&)> GetResourceComplianceByPackAsyncHandler; + typedef Outcome GetResourceComplianceGroupByRegionOutcome; + typedef std::future GetResourceComplianceGroupByRegionOutcomeCallable; + typedef std::function&)> GetResourceComplianceGroupByRegionAsyncHandler; + typedef Outcome GetResourceComplianceGroupByResourceTypeOutcome; + typedef std::future GetResourceComplianceGroupByResourceTypeOutcomeCallable; + typedef std::function&)> GetResourceComplianceGroupByResourceTypeAsyncHandler; 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 GetResourceInventoryOutcome; + typedef std::future GetResourceInventoryOutcomeCallable; + typedef std::function&)> GetResourceInventoryAsyncHandler; + typedef Outcome GetSupportedResourceRelationConfigOutcome; + typedef std::future GetSupportedResourceRelationConfigOutcomeCallable; + typedef std::function&)> GetSupportedResourceRelationConfigAsyncHandler; + 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 ListAggregateConfigDeliveryChannelsOutcome; + typedef std::future ListAggregateConfigDeliveryChannelsOutcomeCallable; + typedef std::function&)> ListAggregateConfigDeliveryChannelsAsyncHandler; + typedef Outcome ListAggregateConfigRuleEvaluationResultsOutcome; + typedef std::future ListAggregateConfigRuleEvaluationResultsOutcomeCallable; + typedef std::function&)> ListAggregateConfigRuleEvaluationResultsAsyncHandler; + typedef Outcome ListAggregateConfigRuleEvaluationStatisticsOutcome; + typedef std::future ListAggregateConfigRuleEvaluationStatisticsOutcomeCallable; + typedef std::function&)> ListAggregateConfigRuleEvaluationStatisticsAsyncHandler; + typedef Outcome ListAggregateConfigRulesOutcome; + typedef std::future ListAggregateConfigRulesOutcomeCallable; + typedef std::function&)> ListAggregateConfigRulesAsyncHandler; typedef Outcome ListAggregateDiscoveredResourcesOutcome; typedef std::future ListAggregateDiscoveredResourcesOutcomeCallable; typedef std::function&)> ListAggregateDiscoveredResourcesAsyncHandler; + typedef Outcome ListAggregateRemediationExecutionsOutcome; + typedef std::future ListAggregateRemediationExecutionsOutcomeCallable; + typedef std::function&)> ListAggregateRemediationExecutionsAsyncHandler; + typedef Outcome ListAggregateRemediationsOutcome; + typedef std::future ListAggregateRemediationsOutcomeCallable; + typedef std::function&)> ListAggregateRemediationsAsyncHandler; + typedef Outcome ListAggregateResourceEvaluationResultsOutcome; + typedef std::future ListAggregateResourceEvaluationResultsOutcomeCallable; + typedef std::function&)> ListAggregateResourceEvaluationResultsAsyncHandler; + typedef Outcome ListAggregateResourceRelationsOutcome; + typedef std::future ListAggregateResourceRelationsOutcomeCallable; + typedef std::function&)> ListAggregateResourceRelationsAsyncHandler; + typedef Outcome ListAggregateResourcesByAdvancedSearchOutcome; + typedef std::future ListAggregateResourcesByAdvancedSearchOutcomeCallable; + typedef std::function&)> ListAggregateResourcesByAdvancedSearchAsyncHandler; + 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 ListConfigDeliveryChannelsOutcome; + typedef std::future ListConfigDeliveryChannelsOutcomeCallable; + typedef std::function&)> ListConfigDeliveryChannelsAsyncHandler; + typedef Outcome ListConfigRuleEvaluationResultsOutcome; + typedef std::future ListConfigRuleEvaluationResultsOutcomeCallable; + typedef std::function&)> ListConfigRuleEvaluationResultsAsyncHandler; + typedef Outcome ListConfigRuleEvaluationStatisticsOutcome; + typedef std::future ListConfigRuleEvaluationStatisticsOutcomeCallable; + typedef std::function&)> ListConfigRuleEvaluationStatisticsAsyncHandler; typedef Outcome ListConfigRulesOutcome; typedef std::future ListConfigRulesOutcomeCallable; typedef std::function&)> ListConfigRulesAsyncHandler; typedef Outcome ListDiscoveredResourcesOutcome; typedef std::future ListDiscoveredResourcesOutcomeCallable; typedef std::function&)> ListDiscoveredResourcesAsyncHandler; + typedef Outcome ListIntegratedServiceOutcome; + typedef std::future ListIntegratedServiceOutcomeCallable; + typedef std::function&)> ListIntegratedServiceAsyncHandler; + typedef Outcome ListManagedRulesOutcome; + typedef std::future ListManagedRulesOutcomeCallable; + typedef std::function&)> ListManagedRulesAsyncHandler; + typedef Outcome ListPreManagedRulesOutcome; + typedef std::future ListPreManagedRulesOutcomeCallable; + typedef std::function&)> ListPreManagedRulesAsyncHandler; + typedef Outcome ListRemediationExecutionsOutcome; + typedef std::future ListRemediationExecutionsOutcomeCallable; + typedef std::function&)> ListRemediationExecutionsAsyncHandler; 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 ListRemediationsOutcome; + typedef std::future ListRemediationsOutcomeCallable; + typedef std::function&)> ListRemediationsAsyncHandler; + typedef Outcome ListResourceEvaluationResultsOutcome; + typedef std::future ListResourceEvaluationResultsOutcomeCallable; + typedef std::function&)> ListResourceEvaluationResultsAsyncHandler; + typedef Outcome ListResourceRelationsOutcome; + typedef std::future ListResourceRelationsOutcomeCallable; + typedef std::function&)> ListResourceRelationsAsyncHandler; + typedef Outcome ListResourcesByAdvancedSearchOutcome; + typedef std::future ListResourcesByAdvancedSearchOutcomeCallable; + typedef std::function&)> ListResourcesByAdvancedSearchAsyncHandler; + typedef Outcome ListSupportedProductsOutcome; + typedef std::future ListSupportedProductsOutcomeCallable; + typedef std::function&)> ListSupportedProductsAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; typedef Outcome PutEvaluationsOutcome; typedef std::future PutEvaluationsOutcomeCallable; typedef std::function&)> PutEvaluationsAsyncHandler; + 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 StartAggregateRemediationOutcome; + typedef std::future StartAggregateRemediationOutcomeCallable; + typedef std::function&)> StartAggregateRemediationAsyncHandler; 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 StartRemediationOutcome; + typedef std::future StartRemediationOutcomeCallable; + typedef std::function&)> StartRemediationAsyncHandler; + typedef Outcome StopConfigurationRecorderOutcome; + typedef std::future StopConfigurationRecorderOutcomeCallable; + typedef std::function&)> StopConfigurationRecorderAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UpdateAggregateCompliancePackOutcome; + typedef std::future UpdateAggregateCompliancePackOutcomeCallable; + typedef std::function&)> UpdateAggregateCompliancePackAsyncHandler; + typedef Outcome UpdateAggregateConfigDeliveryChannelOutcome; + typedef std::future UpdateAggregateConfigDeliveryChannelOutcomeCallable; + typedef std::function&)> UpdateAggregateConfigDeliveryChannelAsyncHandler; + typedef Outcome UpdateAggregateConfigRuleOutcome; + typedef std::future UpdateAggregateConfigRuleOutcomeCallable; + typedef std::function&)> UpdateAggregateConfigRuleAsyncHandler; + typedef Outcome UpdateAggregateRemediationOutcome; + typedef std::future UpdateAggregateRemediationOutcomeCallable; + typedef std::function&)> UpdateAggregateRemediationAsyncHandler; + typedef Outcome UpdateAggregatorOutcome; + typedef std::future UpdateAggregatorOutcomeCallable; + typedef std::function&)> UpdateAggregatorAsyncHandler; + typedef Outcome UpdateCompliancePackOutcome; + typedef std::future UpdateCompliancePackOutcomeCallable; + typedef std::function&)> UpdateCompliancePackAsyncHandler; + typedef Outcome UpdateConfigDeliveryChannelOutcome; + typedef std::future UpdateConfigDeliveryChannelOutcomeCallable; + typedef std::function&)> UpdateConfigDeliveryChannelAsyncHandler; + typedef Outcome UpdateConfigRuleOutcome; + typedef std::future UpdateConfigRuleOutcomeCallable; + typedef std::function&)> UpdateConfigRuleAsyncHandler; + typedef Outcome UpdateConfigurationRecorderOutcome; + typedef std::future UpdateConfigurationRecorderOutcomeCallable; + typedef std::function&)> UpdateConfigurationRecorderAsyncHandler; + typedef Outcome UpdateDeliveryChannelOutcome; + typedef std::future UpdateDeliveryChannelOutcomeCallable; + typedef std::function&)> UpdateDeliveryChannelAsyncHandler; + typedef Outcome UpdateIntegratedServiceStatusOutcome; + typedef std::future UpdateIntegratedServiceStatusOutcomeCallable; + typedef std::function&)> UpdateIntegratedServiceStatusAsyncHandler; + typedef Outcome UpdateRemediationOutcome; + typedef std::future UpdateRemediationOutcomeCallable; + typedef std::function&)> UpdateRemediationAsyncHandler; 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(); + 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; 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; + 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; + CopyCompliancePacksOutcome copyCompliancePacks(const Model::CopyCompliancePacksRequest &request)const; + void copyCompliancePacksAsync(const Model::CopyCompliancePacksRequest& request, const CopyCompliancePacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CopyCompliancePacksOutcomeCallable copyCompliancePacksCallable(const Model::CopyCompliancePacksRequest& request) const; + CopyConfigRulesOutcome copyConfigRules(const Model::CopyConfigRulesRequest &request)const; + void copyConfigRulesAsync(const Model::CopyConfigRulesRequest& request, const CopyConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CopyConfigRulesOutcomeCallable copyConfigRulesCallable(const Model::CopyConfigRulesRequest& request) const; + CreateAdvancedSearchFileOutcome createAdvancedSearchFile(const Model::CreateAdvancedSearchFileRequest &request)const; + void createAdvancedSearchFileAsync(const Model::CreateAdvancedSearchFileRequest& request, const CreateAdvancedSearchFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAdvancedSearchFileOutcomeCallable createAdvancedSearchFileCallable(const Model::CreateAdvancedSearchFileRequest& request) const; + CreateAggregateAdvancedSearchFileOutcome createAggregateAdvancedSearchFile(const Model::CreateAggregateAdvancedSearchFileRequest &request)const; + void createAggregateAdvancedSearchFileAsync(const Model::CreateAggregateAdvancedSearchFileRequest& request, const CreateAggregateAdvancedSearchFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAggregateAdvancedSearchFileOutcomeCallable createAggregateAdvancedSearchFileCallable(const Model::CreateAggregateAdvancedSearchFileRequest& 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; + CreateAggregateConfigDeliveryChannelOutcome createAggregateConfigDeliveryChannel(const Model::CreateAggregateConfigDeliveryChannelRequest &request)const; + void createAggregateConfigDeliveryChannelAsync(const Model::CreateAggregateConfigDeliveryChannelRequest& request, const CreateAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAggregateConfigDeliveryChannelOutcomeCallable createAggregateConfigDeliveryChannelCallable(const Model::CreateAggregateConfigDeliveryChannelRequest& 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; + CreateAggregateRemediationOutcome createAggregateRemediation(const Model::CreateAggregateRemediationRequest &request)const; + void createAggregateRemediationAsync(const Model::CreateAggregateRemediationRequest& request, const CreateAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAggregateRemediationOutcomeCallable createAggregateRemediationCallable(const Model::CreateAggregateRemediationRequest& 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; + CreateConfigDeliveryChannelOutcome createConfigDeliveryChannel(const Model::CreateConfigDeliveryChannelRequest &request)const; + void createConfigDeliveryChannelAsync(const Model::CreateConfigDeliveryChannelRequest& request, const CreateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateConfigDeliveryChannelOutcomeCallable createConfigDeliveryChannelCallable(const Model::CreateConfigDeliveryChannelRequest& 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; + CreateDeliveryChannelOutcome createDeliveryChannel(const Model::CreateDeliveryChannelRequest &request)const; + void createDeliveryChannelAsync(const Model::CreateDeliveryChannelRequest& request, const CreateDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDeliveryChannelOutcomeCallable createDeliveryChannelCallable(const Model::CreateDeliveryChannelRequest& request) const; + CreateRemediationOutcome createRemediation(const Model::CreateRemediationRequest &request)const; + void createRemediationAsync(const Model::CreateRemediationRequest& request, const CreateRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRemediationOutcomeCallable createRemediationCallable(const Model::CreateRemediationRequest& 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; + DeleteAggregateConfigDeliveryChannelOutcome deleteAggregateConfigDeliveryChannel(const Model::DeleteAggregateConfigDeliveryChannelRequest &request)const; + void deleteAggregateConfigDeliveryChannelAsync(const Model::DeleteAggregateConfigDeliveryChannelRequest& request, const DeleteAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAggregateConfigDeliveryChannelOutcomeCallable deleteAggregateConfigDeliveryChannelCallable(const Model::DeleteAggregateConfigDeliveryChannelRequest& 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; + DeleteAggregateRemediationsOutcome deleteAggregateRemediations(const Model::DeleteAggregateRemediationsRequest &request)const; + void deleteAggregateRemediationsAsync(const Model::DeleteAggregateRemediationsRequest& request, const DeleteAggregateRemediationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAggregateRemediationsOutcomeCallable deleteAggregateRemediationsCallable(const Model::DeleteAggregateRemediationsRequest& 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; + DeleteConfigDeliveryChannelOutcome deleteConfigDeliveryChannel(const Model::DeleteConfigDeliveryChannelRequest &request)const; + void deleteConfigDeliveryChannelAsync(const Model::DeleteConfigDeliveryChannelRequest& request, const DeleteConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteConfigDeliveryChannelOutcomeCallable deleteConfigDeliveryChannelCallable(const Model::DeleteConfigDeliveryChannelRequest& 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; + DeleteRemediationsOutcome deleteRemediations(const Model::DeleteRemediationsRequest &request)const; + void deleteRemediationsAsync(const Model::DeleteRemediationsRequest& request, const DeleteRemediationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRemediationsOutcomeCallable deleteRemediationsCallable(const Model::DeleteRemediationsRequest& 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; + EvaluatePreConfigRulesOutcome evaluatePreConfigRules(const Model::EvaluatePreConfigRulesRequest &request)const; + void evaluatePreConfigRulesAsync(const Model::EvaluatePreConfigRulesRequest& request, const EvaluatePreConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EvaluatePreConfigRulesOutcomeCallable evaluatePreConfigRulesCallable(const Model::EvaluatePreConfigRulesRequest& 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; + GenerateAggregateResourceInventoryOutcome generateAggregateResourceInventory(const Model::GenerateAggregateResourceInventoryRequest &request)const; + void generateAggregateResourceInventoryAsync(const Model::GenerateAggregateResourceInventoryRequest& request, const GenerateAggregateResourceInventoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateAggregateResourceInventoryOutcomeCallable generateAggregateResourceInventoryCallable(const Model::GenerateAggregateResourceInventoryRequest& 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; + GenerateResourceInventoryOutcome generateResourceInventory(const Model::GenerateResourceInventoryRequest &request)const; + void generateResourceInventoryAsync(const Model::GenerateResourceInventoryRequest& request, const GenerateResourceInventoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateResourceInventoryOutcomeCallable generateResourceInventoryCallable(const Model::GenerateResourceInventoryRequest& request) const; + GetAdvancedSearchFileOutcome getAdvancedSearchFile(const Model::GetAdvancedSearchFileRequest &request)const; + void getAdvancedSearchFileAsync(const Model::GetAdvancedSearchFileRequest& request, const GetAdvancedSearchFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAdvancedSearchFileOutcomeCallable getAdvancedSearchFileCallable(const Model::GetAdvancedSearchFileRequest& 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; + GetAggregateAdvancedSearchFileOutcome getAggregateAdvancedSearchFile(const Model::GetAggregateAdvancedSearchFileRequest &request)const; + void getAggregateAdvancedSearchFileAsync(const Model::GetAggregateAdvancedSearchFileRequest& request, const GetAggregateAdvancedSearchFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateAdvancedSearchFileOutcomeCallable getAggregateAdvancedSearchFileCallable(const Model::GetAggregateAdvancedSearchFileRequest& 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; + GetAggregateComplianceSummaryOutcome getAggregateComplianceSummary(const Model::GetAggregateComplianceSummaryRequest &request)const; + void getAggregateComplianceSummaryAsync(const Model::GetAggregateComplianceSummaryRequest& request, const GetAggregateComplianceSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateComplianceSummaryOutcomeCallable getAggregateComplianceSummaryCallable(const Model::GetAggregateComplianceSummaryRequest& request) const; + GetAggregateConfigDeliveryChannelOutcome getAggregateConfigDeliveryChannel(const Model::GetAggregateConfigDeliveryChannelRequest &request)const; + void getAggregateConfigDeliveryChannelAsync(const Model::GetAggregateConfigDeliveryChannelRequest& request, const GetAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateConfigDeliveryChannelOutcomeCallable getAggregateConfigDeliveryChannelCallable(const Model::GetAggregateConfigDeliveryChannelRequest& 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; 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; + 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; + GetAggregateResourceComplianceGroupByRegionOutcome getAggregateResourceComplianceGroupByRegion(const Model::GetAggregateResourceComplianceGroupByRegionRequest &request)const; + void getAggregateResourceComplianceGroupByRegionAsync(const Model::GetAggregateResourceComplianceGroupByRegionRequest& request, const GetAggregateResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateResourceComplianceGroupByRegionOutcomeCallable getAggregateResourceComplianceGroupByRegionCallable(const Model::GetAggregateResourceComplianceGroupByRegionRequest& request) const; + GetAggregateResourceComplianceGroupByResourceTypeOutcome getAggregateResourceComplianceGroupByResourceType(const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest &request)const; + void getAggregateResourceComplianceGroupByResourceTypeAsync(const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest& request, const GetAggregateResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateResourceComplianceGroupByResourceTypeOutcomeCallable getAggregateResourceComplianceGroupByResourceTypeCallable(const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest& 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; + GetAggregateResourceInventoryOutcome getAggregateResourceInventory(const Model::GetAggregateResourceInventoryRequest &request)const; + void getAggregateResourceInventoryAsync(const Model::GetAggregateResourceInventoryRequest& request, const GetAggregateResourceInventoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateResourceInventoryOutcomeCallable getAggregateResourceInventoryCallable(const Model::GetAggregateResourceInventoryRequest& 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; + GetComplianceSummaryOutcome getComplianceSummary(const Model::GetComplianceSummaryRequest &request)const; + void getComplianceSummaryAsync(const Model::GetComplianceSummaryRequest& request, const GetComplianceSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetComplianceSummaryOutcomeCallable getComplianceSummaryCallable(const Model::GetComplianceSummaryRequest& request) const; + GetConfigDeliveryChannelOutcome getConfigDeliveryChannel(const Model::GetConfigDeliveryChannelRequest &request)const; + void getConfigDeliveryChannelAsync(const Model::GetConfigDeliveryChannelRequest& request, const GetConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConfigDeliveryChannelOutcomeCallable getConfigDeliveryChannelCallable(const Model::GetConfigDeliveryChannelRequest& 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; + GetConfigurationRecorderOutcome getConfigurationRecorder(const Model::GetConfigurationRecorderRequest &request)const; + void getConfigurationRecorderAsync(const Model::GetConfigurationRecorderRequest& request, const GetConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConfigurationRecorderOutcomeCallable getConfigurationRecorderCallable(const Model::GetConfigurationRecorderRequest& request) const; + GetDiscoveredResourceOutcome getDiscoveredResource(const Model::GetDiscoveredResourceRequest &request)const; + void getDiscoveredResourceAsync(const Model::GetDiscoveredResourceRequest& request, const GetDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDiscoveredResourceOutcomeCallable getDiscoveredResourceCallable(const Model::GetDiscoveredResourceRequest& 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; + GetIntegratedServiceStatusOutcome getIntegratedServiceStatus(const Model::GetIntegratedServiceStatusRequest &request)const; + void getIntegratedServiceStatusAsync(const Model::GetIntegratedServiceStatusRequest& request, const GetIntegratedServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetIntegratedServiceStatusOutcomeCallable getIntegratedServiceStatusCallable(const Model::GetIntegratedServiceStatusRequest& request) const; + GetManagedRuleOutcome getManagedRule(const Model::GetManagedRuleRequest &request)const; + void getManagedRuleAsync(const Model::GetManagedRuleRequest& request, const GetManagedRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetManagedRuleOutcomeCallable getManagedRuleCallable(const Model::GetManagedRuleRequest& request) const; + GetRemediationTemplateOutcome getRemediationTemplate(const Model::GetRemediationTemplateRequest &request)const; + void getRemediationTemplateAsync(const Model::GetRemediationTemplateRequest& request, const GetRemediationTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRemediationTemplateOutcomeCallable getRemediationTemplateCallable(const Model::GetRemediationTemplateRequest& 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; + GetResourceComplianceGroupByRegionOutcome getResourceComplianceGroupByRegion(const Model::GetResourceComplianceGroupByRegionRequest &request)const; + void getResourceComplianceGroupByRegionAsync(const Model::GetResourceComplianceGroupByRegionRequest& request, const GetResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceComplianceGroupByRegionOutcomeCallable getResourceComplianceGroupByRegionCallable(const Model::GetResourceComplianceGroupByRegionRequest& request) const; + GetResourceComplianceGroupByResourceTypeOutcome getResourceComplianceGroupByResourceType(const Model::GetResourceComplianceGroupByResourceTypeRequest &request)const; + void getResourceComplianceGroupByResourceTypeAsync(const Model::GetResourceComplianceGroupByResourceTypeRequest& request, const GetResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceComplianceGroupByResourceTypeOutcomeCallable getResourceComplianceGroupByResourceTypeCallable(const Model::GetResourceComplianceGroupByResourceTypeRequest& 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; + GetResourceInventoryOutcome getResourceInventory(const Model::GetResourceInventoryRequest &request)const; + void getResourceInventoryAsync(const Model::GetResourceInventoryRequest& request, const GetResourceInventoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceInventoryOutcomeCallable getResourceInventoryCallable(const Model::GetResourceInventoryRequest& request) const; + GetSupportedResourceRelationConfigOutcome getSupportedResourceRelationConfig(const Model::GetSupportedResourceRelationConfigRequest &request)const; + void getSupportedResourceRelationConfigAsync(const Model::GetSupportedResourceRelationConfigRequest& request, const GetSupportedResourceRelationConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSupportedResourceRelationConfigOutcomeCallable getSupportedResourceRelationConfigCallable(const Model::GetSupportedResourceRelationConfigRequest& 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; + ListAggregateConfigDeliveryChannelsOutcome listAggregateConfigDeliveryChannels(const Model::ListAggregateConfigDeliveryChannelsRequest &request)const; + void listAggregateConfigDeliveryChannelsAsync(const Model::ListAggregateConfigDeliveryChannelsRequest& request, const ListAggregateConfigDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateConfigDeliveryChannelsOutcomeCallable listAggregateConfigDeliveryChannelsCallable(const Model::ListAggregateConfigDeliveryChannelsRequest& 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; + ListAggregateConfigRuleEvaluationStatisticsOutcome listAggregateConfigRuleEvaluationStatistics(const Model::ListAggregateConfigRuleEvaluationStatisticsRequest &request)const; + void listAggregateConfigRuleEvaluationStatisticsAsync(const Model::ListAggregateConfigRuleEvaluationStatisticsRequest& request, const ListAggregateConfigRuleEvaluationStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateConfigRuleEvaluationStatisticsOutcomeCallable listAggregateConfigRuleEvaluationStatisticsCallable(const Model::ListAggregateConfigRuleEvaluationStatisticsRequest& 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; 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; + ListAggregateRemediationExecutionsOutcome listAggregateRemediationExecutions(const Model::ListAggregateRemediationExecutionsRequest &request)const; + void listAggregateRemediationExecutionsAsync(const Model::ListAggregateRemediationExecutionsRequest& request, const ListAggregateRemediationExecutionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateRemediationExecutionsOutcomeCallable listAggregateRemediationExecutionsCallable(const Model::ListAggregateRemediationExecutionsRequest& request) const; + ListAggregateRemediationsOutcome listAggregateRemediations(const Model::ListAggregateRemediationsRequest &request)const; + void listAggregateRemediationsAsync(const Model::ListAggregateRemediationsRequest& request, const ListAggregateRemediationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateRemediationsOutcomeCallable listAggregateRemediationsCallable(const Model::ListAggregateRemediationsRequest& 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; + ListAggregateResourceRelationsOutcome listAggregateResourceRelations(const Model::ListAggregateResourceRelationsRequest &request)const; + void listAggregateResourceRelationsAsync(const Model::ListAggregateResourceRelationsRequest& request, const ListAggregateResourceRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateResourceRelationsOutcomeCallable listAggregateResourceRelationsCallable(const Model::ListAggregateResourceRelationsRequest& request) const; + ListAggregateResourcesByAdvancedSearchOutcome listAggregateResourcesByAdvancedSearch(const Model::ListAggregateResourcesByAdvancedSearchRequest &request)const; + void listAggregateResourcesByAdvancedSearchAsync(const Model::ListAggregateResourcesByAdvancedSearchRequest& request, const ListAggregateResourcesByAdvancedSearchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateResourcesByAdvancedSearchOutcomeCallable listAggregateResourcesByAdvancedSearchCallable(const Model::ListAggregateResourcesByAdvancedSearchRequest& 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; + ListConfigDeliveryChannelsOutcome listConfigDeliveryChannels(const Model::ListConfigDeliveryChannelsRequest &request)const; + void listConfigDeliveryChannelsAsync(const Model::ListConfigDeliveryChannelsRequest& request, const ListConfigDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConfigDeliveryChannelsOutcomeCallable listConfigDeliveryChannelsCallable(const Model::ListConfigDeliveryChannelsRequest& 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; + ListConfigRuleEvaluationStatisticsOutcome listConfigRuleEvaluationStatistics(const Model::ListConfigRuleEvaluationStatisticsRequest &request)const; + void listConfigRuleEvaluationStatisticsAsync(const Model::ListConfigRuleEvaluationStatisticsRequest& request, const ListConfigRuleEvaluationStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConfigRuleEvaluationStatisticsOutcomeCallable listConfigRuleEvaluationStatisticsCallable(const Model::ListConfigRuleEvaluationStatisticsRequest& 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; + ListIntegratedServiceOutcome listIntegratedService(const Model::ListIntegratedServiceRequest &request)const; + void listIntegratedServiceAsync(const Model::ListIntegratedServiceRequest& request, const ListIntegratedServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIntegratedServiceOutcomeCallable listIntegratedServiceCallable(const Model::ListIntegratedServiceRequest& request) const; + ListManagedRulesOutcome listManagedRules(const Model::ListManagedRulesRequest &request)const; + void listManagedRulesAsync(const Model::ListManagedRulesRequest& request, const ListManagedRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListManagedRulesOutcomeCallable listManagedRulesCallable(const Model::ListManagedRulesRequest& request) const; + ListPreManagedRulesOutcome listPreManagedRules(const Model::ListPreManagedRulesRequest &request)const; + void listPreManagedRulesAsync(const Model::ListPreManagedRulesRequest& request, const ListPreManagedRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPreManagedRulesOutcomeCallable listPreManagedRulesCallable(const Model::ListPreManagedRulesRequest& request) const; + ListRemediationExecutionsOutcome listRemediationExecutions(const Model::ListRemediationExecutionsRequest &request)const; + void listRemediationExecutionsAsync(const Model::ListRemediationExecutionsRequest& request, const ListRemediationExecutionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRemediationExecutionsOutcomeCallable listRemediationExecutionsCallable(const Model::ListRemediationExecutionsRequest& 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; + ListRemediationsOutcome listRemediations(const Model::ListRemediationsRequest &request)const; + void listRemediationsAsync(const Model::ListRemediationsRequest& request, const ListRemediationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRemediationsOutcomeCallable listRemediationsCallable(const Model::ListRemediationsRequest& 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; + ListResourceRelationsOutcome listResourceRelations(const Model::ListResourceRelationsRequest &request)const; + void listResourceRelationsAsync(const Model::ListResourceRelationsRequest& request, const ListResourceRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourceRelationsOutcomeCallable listResourceRelationsCallable(const Model::ListResourceRelationsRequest& request) const; + ListResourcesByAdvancedSearchOutcome listResourcesByAdvancedSearch(const Model::ListResourcesByAdvancedSearchRequest &request)const; + void listResourcesByAdvancedSearchAsync(const Model::ListResourcesByAdvancedSearchRequest& request, const ListResourcesByAdvancedSearchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourcesByAdvancedSearchOutcomeCallable listResourcesByAdvancedSearchCallable(const Model::ListResourcesByAdvancedSearchRequest& request) const; + ListSupportedProductsOutcome listSupportedProducts(const Model::ListSupportedProductsRequest &request)const; + void listSupportedProductsAsync(const Model::ListSupportedProductsRequest& request, const ListSupportedProductsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSupportedProductsOutcomeCallable listSupportedProductsCallable(const Model::ListSupportedProductsRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& 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; + 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; + StartAggregateRemediationOutcome startAggregateRemediation(const Model::StartAggregateRemediationRequest &request)const; + void startAggregateRemediationAsync(const Model::StartAggregateRemediationRequest& request, const StartAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartAggregateRemediationOutcomeCallable startAggregateRemediationCallable(const Model::StartAggregateRemediationRequest& 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; + StartRemediationOutcome startRemediation(const Model::StartRemediationRequest &request)const; + void startRemediationAsync(const Model::StartRemediationRequest& request, const StartRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartRemediationOutcomeCallable startRemediationCallable(const Model::StartRemediationRequest& request) const; + StopConfigurationRecorderOutcome stopConfigurationRecorder(const Model::StopConfigurationRecorderRequest &request)const; + void stopConfigurationRecorderAsync(const Model::StopConfigurationRecorderRequest& request, const StopConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopConfigurationRecorderOutcomeCallable stopConfigurationRecorderCallable(const Model::StopConfigurationRecorderRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& 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; + UpdateAggregateConfigDeliveryChannelOutcome updateAggregateConfigDeliveryChannel(const Model::UpdateAggregateConfigDeliveryChannelRequest &request)const; + void updateAggregateConfigDeliveryChannelAsync(const Model::UpdateAggregateConfigDeliveryChannelRequest& request, const UpdateAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAggregateConfigDeliveryChannelOutcomeCallable updateAggregateConfigDeliveryChannelCallable(const Model::UpdateAggregateConfigDeliveryChannelRequest& 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; + UpdateAggregateRemediationOutcome updateAggregateRemediation(const Model::UpdateAggregateRemediationRequest &request)const; + void updateAggregateRemediationAsync(const Model::UpdateAggregateRemediationRequest& request, const UpdateAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAggregateRemediationOutcomeCallable updateAggregateRemediationCallable(const Model::UpdateAggregateRemediationRequest& 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; + UpdateConfigDeliveryChannelOutcome updateConfigDeliveryChannel(const Model::UpdateConfigDeliveryChannelRequest &request)const; + void updateConfigDeliveryChannelAsync(const Model::UpdateConfigDeliveryChannelRequest& request, const UpdateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateConfigDeliveryChannelOutcomeCallable updateConfigDeliveryChannelCallable(const Model::UpdateConfigDeliveryChannelRequest& 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; + UpdateConfigurationRecorderOutcome updateConfigurationRecorder(const Model::UpdateConfigurationRecorderRequest &request)const; + void updateConfigurationRecorderAsync(const Model::UpdateConfigurationRecorderRequest& request, const UpdateConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateConfigurationRecorderOutcomeCallable updateConfigurationRecorderCallable(const Model::UpdateConfigurationRecorderRequest& request) const; + UpdateDeliveryChannelOutcome updateDeliveryChannel(const Model::UpdateDeliveryChannelRequest &request)const; + void updateDeliveryChannelAsync(const Model::UpdateDeliveryChannelRequest& request, const UpdateDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDeliveryChannelOutcomeCallable updateDeliveryChannelCallable(const Model::UpdateDeliveryChannelRequest& request) const; + UpdateIntegratedServiceStatusOutcome updateIntegratedServiceStatus(const Model::UpdateIntegratedServiceStatusRequest &request)const; + void updateIntegratedServiceStatusAsync(const Model::UpdateIntegratedServiceStatusRequest& request, const UpdateIntegratedServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateIntegratedServiceStatusOutcomeCallable updateIntegratedServiceStatusCallable(const Model::UpdateIntegratedServiceStatusRequest& request) const; + UpdateRemediationOutcome updateRemediation(const Model::UpdateRemediationRequest &request)const; + void updateRemediationAsync(const Model::UpdateRemediationRequest& request, const UpdateRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRemediationOutcomeCallable updateRemediationCallable(const Model::UpdateRemediationRequest& 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/ActiveAggregateConfigRulesResult.h b/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h new file mode 100644 index 000000000..eaed51a8f --- /dev/null +++ b/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.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_ACTIVEAGGREGATECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ActiveAggregateConfigRulesResult : public ServiceResult + { + public: + struct OperateRuleResult + { + struct OperateRuleItem + { + std::string configRuleId; + std::string errorCode; + bool success; + }; + std::vector operateRuleItemList; + }; + + + ActiveAggregateConfigRulesResult(); + explicit ActiveAggregateConfigRulesResult(const std::string &payload); + ~ActiveAggregateConfigRulesResult(); + OperateRuleResult getOperateRuleResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateRuleResult operateRuleResult_; + + }; + } + } +} +#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/CopyCompliancePacksRequest.h b/config/include/alibabacloud/config/model/CopyCompliancePacksRequest.h new file mode 100644 index 000000000..2ace18ea3 --- /dev/null +++ b/config/include/alibabacloud/config/model/CopyCompliancePacksRequest.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_COPYCOMPLIANCEPACKSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_COPYCOMPLIANCEPACKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CopyCompliancePacksRequest : public RpcServiceRequest { +public: + CopyCompliancePacksRequest(); + ~CopyCompliancePacksRequest(); + std::string getDesAggregatorIds() const; + void setDesAggregatorIds(const std::string &desAggregatorIds); + std::string getSrcAggregatorId() const; + void setSrcAggregatorId(const std::string &srcAggregatorId); + std::string getSrcCompliancePackIds() const; + void setSrcCompliancePackIds(const std::string &srcCompliancePackIds); + +private: + std::string desAggregatorIds_; + std::string srcAggregatorId_; + std::string srcCompliancePackIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_COPYCOMPLIANCEPACKSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CopyCompliancePacksResult.h b/config/include/alibabacloud/config/model/CopyCompliancePacksResult.h new file mode 100644 index 000000000..417197dfc --- /dev/null +++ b/config/include/alibabacloud/config/model/CopyCompliancePacksResult.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_COPYCOMPLIANCEPACKSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_COPYCOMPLIANCEPACKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CopyCompliancePacksResult : public ServiceResult + { + public: + + + CopyCompliancePacksResult(); + explicit CopyCompliancePacksResult(const std::string &payload); + ~CopyCompliancePacksResult(); + bool getCopyRulesResult()const; + + protected: + void parse(const std::string &payload); + private: + bool copyRulesResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_COPYCOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CopyConfigRulesRequest.h b/config/include/alibabacloud/config/model/CopyConfigRulesRequest.h new file mode 100644 index 000000000..c021488b0 --- /dev/null +++ b/config/include/alibabacloud/config/model/CopyConfigRulesRequest.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_COPYCONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_COPYCONFIGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CopyConfigRulesRequest : public RpcServiceRequest { +public: + CopyConfigRulesRequest(); + ~CopyConfigRulesRequest(); + std::string getDesAggregatorIds() const; + void setDesAggregatorIds(const std::string &desAggregatorIds); + std::string getSrcConfigRuleIds() const; + void setSrcConfigRuleIds(const std::string &srcConfigRuleIds); + std::string getSrcAggregatorId() const; + void setSrcAggregatorId(const std::string &srcAggregatorId); + +private: + std::string desAggregatorIds_; + std::string srcConfigRuleIds_; + std::string srcAggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_COPYCONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CopyConfigRulesResult.h b/config/include/alibabacloud/config/model/CopyConfigRulesResult.h new file mode 100644 index 000000000..b9b5ad437 --- /dev/null +++ b/config/include/alibabacloud/config/model/CopyConfigRulesResult.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_COPYCONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_COPYCONFIGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CopyConfigRulesResult : public ServiceResult + { + public: + + + CopyConfigRulesResult(); + explicit CopyConfigRulesResult(const std::string &payload); + ~CopyConfigRulesResult(); + bool getCopyRulesResult()const; + + protected: + void parse(const std::string &payload); + private: + bool copyRulesResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_COPYCONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateAdvancedSearchFileRequest.h b/config/include/alibabacloud/config/model/CreateAdvancedSearchFileRequest.h new file mode 100644 index 000000000..170ab69db --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAdvancedSearchFileRequest.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_CREATEADVANCEDSEARCHFILEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEADVANCEDSEARCHFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateAdvancedSearchFileRequest : public RpcServiceRequest { +public: + CreateAdvancedSearchFileRequest(); + ~CreateAdvancedSearchFileRequest(); + std::string getSql() const; + void setSql(const std::string &sql); + bool getOnlyBaseLine() const; + void setOnlyBaseLine(bool onlyBaseLine); + +private: + std::string sql_; + bool onlyBaseLine_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEADVANCEDSEARCHFILEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAdvancedSearchFileResult.h b/config/include/alibabacloud/config/model/CreateAdvancedSearchFileResult.h new file mode 100644 index 000000000..1e737b5b9 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAdvancedSearchFileResult.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_CREATEADVANCEDSEARCHFILERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEADVANCEDSEARCHFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateAdvancedSearchFileResult : public ServiceResult + { + public: + + + CreateAdvancedSearchFileResult(); + explicit CreateAdvancedSearchFileResult(const std::string &payload); + ~CreateAdvancedSearchFileResult(); + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEADVANCEDSEARCHFILERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateAggregateAdvancedSearchFileRequest.h b/config/include/alibabacloud/config/model/CreateAggregateAdvancedSearchFileRequest.h new file mode 100644 index 000000000..232fb1002 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateAdvancedSearchFileRequest.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_CREATEAGGREGATEADVANCEDSEARCHFILEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEADVANCEDSEARCHFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateAdvancedSearchFileRequest : public RpcServiceRequest { +public: + CreateAggregateAdvancedSearchFileRequest(); + ~CreateAggregateAdvancedSearchFileRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getSql() const; + void setSql(const std::string &sql); + bool getOnlyBaseLine() const; + void setOnlyBaseLine(bool onlyBaseLine); + +private: + std::string aggregatorId_; + std::string sql_; + bool onlyBaseLine_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEADVANCEDSEARCHFILEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregateAdvancedSearchFileResult.h b/config/include/alibabacloud/config/model/CreateAggregateAdvancedSearchFileResult.h new file mode 100644 index 000000000..6a05c18b7 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateAdvancedSearchFileResult.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_CREATEAGGREGATEADVANCEDSEARCHFILERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEADVANCEDSEARCHFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateAdvancedSearchFileResult : public ServiceResult + { + public: + + + CreateAggregateAdvancedSearchFileResult(); + explicit CreateAggregateAdvancedSearchFileResult(const std::string &payload); + ~CreateAggregateAdvancedSearchFileResult(); + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEADVANCEDSEARCHFILERESULT_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..e6cb900f8 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h @@ -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. + */ + +#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 getTagKeyScope() const; + void setTagKeyScope(const std::string &tagKeyScope); + 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::string getTagValueScope() const; + void setTagValueScope(const std::string &tagValueScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + bool getDefaultEnable() const; + void setDefaultEnable(bool defaultEnable); + std::vector getConfigRules() const; + void setConfigRules(const std::vector &configRules); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + std::string getResourceGroupIdsScope() const; + void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); + std::string getExcludeResourceIdsScope() const; + void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); + +private: + std::string tagKeyScope_; + std::string compliancePackName_; + std::string clientToken_; + std::string compliancePackTemplateId_; + std::string description_; + std::string aggregatorId_; + std::string tagValueScope_; + std::string regionIdsScope_; + bool defaultEnable_; + std::vector configRules_; + int riskLevel_; + std::string resourceGroupIdsScope_; + std::string excludeResourceIdsScope_; +}; +} // 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/CreateAggregateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelRequest.h new file mode 100644 index 000000000..a4cbc3638 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateConfigDeliveryChannelRequest : public RpcServiceRequest { +public: + CreateAggregateConfigDeliveryChannelRequest(); + ~CreateAggregateConfigDeliveryChannelRequest(); + bool getNonCompliantNotification() const; + void setNonCompliantNotification(bool nonCompliantNotification); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getConfigurationSnapshot() const; + void setConfigurationSnapshot(bool configurationSnapshot); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getDeliveryChannelTargetArn() const; + void setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn); + std::string getDeliveryChannelCondition() const; + void setDeliveryChannelCondition(const std::string &deliveryChannelCondition); + bool getConfigurationItemChangeNotification() const; + void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); + std::string getDeliveryChannelName() const; + void setDeliveryChannelName(const std::string &deliveryChannelName); + std::string getDeliverySnapshotTime() const; + void setDeliverySnapshotTime(const std::string &deliverySnapshotTime); + std::string getOversizedDataOSSTargetArn() const; + void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); + std::string getDeliveryChannelType() const; + void setDeliveryChannelType(const std::string &deliveryChannelType); + +private: + bool nonCompliantNotification_; + std::string clientToken_; + bool configurationSnapshot_; + std::string description_; + std::string aggregatorId_; + std::string deliveryChannelTargetArn_; + std::string deliveryChannelCondition_; + bool configurationItemChangeNotification_; + std::string deliveryChannelName_; + std::string deliverySnapshotTime_; + std::string oversizedDataOSSTargetArn_; + std::string deliveryChannelType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.h new file mode 100644 index 000000000..a87f485e0 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.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_CREATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateConfigDeliveryChannelResult : public ServiceResult + { + public: + + + CreateAggregateConfigDeliveryChannelResult(); + explicit CreateAggregateConfigDeliveryChannelResult(const std::string &payload); + ~CreateAggregateConfigDeliveryChannelResult(); + std::string getDeliveryChannelId()const; + + protected: + void parse(const std::string &payload); + private: + std::string deliveryChannelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELRESULT_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..f1ca156f6 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 getExcludeAccountIdsScope() const; + void setExcludeAccountIdsScope(const std::string &excludeAccountIdsScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + std::string getExcludeFolderIdsScope() const; + void setExcludeFolderIdsScope(const std::string &excludeFolderIdsScope); + 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 getTagKeyLogicScope() const; + void setTagKeyLogicScope(const std::string &tagKeyLogicScope); + std::string getMaximumExecutionFrequency() const; + void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); + std::string getFolderIdsScope() const; + void setFolderIdsScope(const std::string &folderIdsScope); + 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 excludeAccountIdsScope_; + std::string regionIdsScope_; + std::string excludeFolderIdsScope_; + int riskLevel_; + std::string sourceOwner_; + std::string resourceGroupIdsScope_; + std::string inputParameters_; + std::string configRuleName_; + std::string tagKeyLogicScope_; + std::string maximumExecutionFrequency_; + std::string folderIdsScope_; + 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/CreateAggregateRemediationRequest.h b/config/include/alibabacloud/config/model/CreateAggregateRemediationRequest.h new file mode 100644 index 000000000..9b92d8588 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateRemediationRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateRemediationRequest : public RpcServiceRequest { +public: + CreateAggregateRemediationRequest(); + ~CreateAggregateRemediationRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getRemediationType() const; + void setRemediationType(const std::string &remediationType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getRemediationTemplateId() const; + void setRemediationTemplateId(const std::string &remediationTemplateId); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getInvokeType() const; + void setInvokeType(const std::string &invokeType); + +private: + std::string configRuleId_; + std::string remediationType_; + std::string clientToken_; + std::string aggregatorId_; + std::string sourceType_; + std::string remediationTemplateId_; + std::string params_; + std::string invokeType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregateRemediationResult.h b/config/include/alibabacloud/config/model/CreateAggregateRemediationResult.h new file mode 100644 index 000000000..91457a0b5 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateRemediationResult.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_CREATEAGGREGATEREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateRemediationResult : public ServiceResult + { + public: + + + CreateAggregateRemediationResult(); + explicit CreateAggregateRemediationResult(const std::string &payload); + ~CreateAggregateRemediationResult(); + std::string getRemediationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string remediationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONRESULT_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/CreateAggregatorResult.h b/config/include/alibabacloud/config/model/CreateAggregatorResult.h new file mode 100644 index 000000000..38b2fbb89 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregatorResult.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_CREATEAGGREGATORRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateAggregatorResult : public ServiceResult + { + public: + + + CreateAggregatorResult(); + explicit CreateAggregatorResult(const std::string &payload); + ~CreateAggregatorResult(); + std::string getAggregatorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aggregatorId_; + + }; + } + } +} +#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..0b1b4dd02 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateCompliancePackRequest.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 getTagKeyScope() const; + void setTagKeyScope(const std::string &tagKeyScope); + 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 getTagValueScope() const; + void setTagValueScope(const std::string &tagValueScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + bool getDefaultEnable() const; + void setDefaultEnable(bool defaultEnable); + std::vector getConfigRules() const; + void setConfigRules(const std::vector &configRules); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + std::string getResourceGroupIdsScope() const; + void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); + std::string getExcludeResourceIdsScope() const; + void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); + +private: + std::string tagKeyScope_; + std::string compliancePackName_; + std::string clientToken_; + std::string compliancePackTemplateId_; + std::string description_; + std::string tagValueScope_; + std::string regionIdsScope_; + bool defaultEnable_; + std::vector configRules_; + int riskLevel_; + std::string resourceGroupIdsScope_; + std::string excludeResourceIdsScope_; +}; +} // 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/CreateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelRequest.h new file mode 100644 index 000000000..760b8bbd0 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateConfigDeliveryChannelRequest : public RpcServiceRequest { +public: + CreateConfigDeliveryChannelRequest(); + ~CreateConfigDeliveryChannelRequest(); + bool getNonCompliantNotification() const; + void setNonCompliantNotification(bool nonCompliantNotification); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getConfigurationSnapshot() const; + void setConfigurationSnapshot(bool configurationSnapshot); + 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); + bool getConfigurationItemChangeNotification() const; + void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); + std::string getDeliveryChannelName() const; + void setDeliveryChannelName(const std::string &deliveryChannelName); + std::string getDeliverySnapshotTime() const; + void setDeliverySnapshotTime(const std::string &deliverySnapshotTime); + std::string getOversizedDataOSSTargetArn() const; + void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); + std::string getDeliveryChannelType() const; + void setDeliveryChannelType(const std::string &deliveryChannelType); + +private: + bool nonCompliantNotification_; + std::string clientToken_; + bool configurationSnapshot_; + std::string description_; + std::string deliveryChannelTargetArn_; + std::string deliveryChannelCondition_; + bool configurationItemChangeNotification_; + std::string deliveryChannelName_; + std::string deliverySnapshotTime_; + std::string oversizedDataOSSTargetArn_; + std::string deliveryChannelType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelResult.h new file mode 100644 index 000000000..d9fb03211 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelResult.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_CREATECONFIGDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateConfigDeliveryChannelResult : public ServiceResult + { + public: + + + CreateConfigDeliveryChannelResult(); + explicit CreateConfigDeliveryChannelResult(const std::string &payload); + ~CreateConfigDeliveryChannelResult(); + std::string getDeliveryChannelId()const; + + protected: + void parse(const std::string &payload); + private: + std::string deliveryChannelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELRESULT_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..e62e7b8f6 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateConfigRuleRequest.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_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 getTagKeyLogicScope() const; + void setTagKeyLogicScope(const std::string &tagKeyLogicScope); + 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 tagKeyLogicScope_; + 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/PutDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/CreateDeliveryChannelRequest.h similarity index 65% rename from config/include/alibabacloud/config/model/PutDeliveryChannelRequest.h rename to config/include/alibabacloud/config/model/CreateDeliveryChannelRequest.h index 437a0e917..fd3ccf3c5 100644 --- a/config/include/alibabacloud/config/model/PutDeliveryChannelRequest.h +++ b/config/include/alibabacloud/config/model/CreateDeliveryChannelRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEDELIVERYCHANNELREQUEST_H_ #include #include @@ -26,41 +26,47 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT CreateDeliveryChannelRequest : public RpcServiceRequest { public: - PutDeliveryChannelRequest(); - ~PutDeliveryChannelRequest(); + CreateDeliveryChannelRequest(); + ~CreateDeliveryChannelRequest(); + bool getNonCompliantNotification() const; + void setNonCompliantNotification(bool nonCompliantNotification); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + bool getConfigurationSnapshot() const; + void setConfigurationSnapshot(bool configurationSnapshot); 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); + bool getConfigurationItemChangeNotification() const; + void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); 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 getOversizedDataOSSTargetArn() const; + void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); std::string getDeliveryChannelType() const; void setDeliveryChannelType(const std::string &deliveryChannelType); - int getStatus() const; - void setStatus(int status); private: + bool nonCompliantNotification_; std::string clientToken_; + bool configurationSnapshot_; std::string description_; std::string deliveryChannelTargetArn_; std::string deliveryChannelCondition_; + bool configurationItemChangeNotification_; std::string deliveryChannelAssumeRoleArn_; std::string deliveryChannelName_; - std::string deliveryChannelId_; + std::string oversizedDataOSSTargetArn_; std::string deliveryChannelType_; - int status_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/PutDeliveryChannelResult.h b/config/include/alibabacloud/config/model/CreateDeliveryChannelResult.h similarity index 70% rename from config/include/alibabacloud/config/model/PutDeliveryChannelResult.h rename to config/include/alibabacloud/config/model/CreateDeliveryChannelResult.h index 5e85892ac..3d9ddbbf5 100644 --- a/config/include/alibabacloud/config/model/PutDeliveryChannelResult.h +++ b/config/include/alibabacloud/config/model/CreateDeliveryChannelResult.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_CREATEDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEDELIVERYCHANNELRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT CreateDeliveryChannelResult : public ServiceResult { public: - PutDeliveryChannelResult(); - explicit PutDeliveryChannelResult(const std::string &payload); - ~PutDeliveryChannelResult(); + CreateDeliveryChannelResult(); + explicit CreateDeliveryChannelResult(const std::string &payload); + ~CreateDeliveryChannelResult(); std::string getDeliveryChannelId()const; protected: @@ -48,4 +48,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEDELIVERYCHANNELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateRemediationRequest.h b/config/include/alibabacloud/config/model/CreateRemediationRequest.h new file mode 100644 index 000000000..447a8b668 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateRemediationRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateRemediationRequest : public RpcServiceRequest { +public: + CreateRemediationRequest(); + ~CreateRemediationRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getRemediationType() const; + void setRemediationType(const std::string &remediationType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getRemediationTemplateId() const; + void setRemediationTemplateId(const std::string &remediationTemplateId); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getInvokeType() const; + void setInvokeType(const std::string &invokeType); + +private: + std::string configRuleId_; + std::string remediationType_; + std::string clientToken_; + std::string sourceType_; + std::string remediationTemplateId_; + std::string params_; + std::string invokeType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateRemediationResult.h b/config/include/alibabacloud/config/model/CreateRemediationResult.h new file mode 100644 index 000000000..4e8d9b651 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateRemediationResult.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_CREATEREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateRemediationResult : public ServiceResult + { + public: + + + CreateRemediationResult(); + explicit CreateRemediationResult(const std::string &payload); + ~CreateRemediationResult(); + std::string getRemediationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string remediationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONRESULT_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/DeactiveAggregateConfigRulesResult.h b/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.h new file mode 100644 index 000000000..b26d1fe96 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.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_DEACTIVEAGGREGATECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeactiveAggregateConfigRulesResult : public ServiceResult + { + public: + struct OperateRuleResult + { + struct OperateRuleItem + { + std::string configRuleId; + std::string errorCode; + bool success; + }; + std::vector operateRuleItemList; + }; + + + DeactiveAggregateConfigRulesResult(); + explicit DeactiveAggregateConfigRulesResult(const std::string &payload); + ~DeactiveAggregateConfigRulesResult(); + OperateRuleResult getOperateRuleResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateRuleResult operateRuleResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StopConfigRulesRequest.h b/config/include/alibabacloud/config/model/DeactiveConfigRulesRequest.h similarity index 73% rename from config/include/alibabacloud/config/model/StopConfigRulesRequest.h rename to config/include/alibabacloud/config/model/DeactiveConfigRulesRequest.h index c8fa8235e..d30e7e7c8 100644 --- a/config/include/alibabacloud/config/model/StopConfigRulesRequest.h +++ b/config/include/alibabacloud/config/model/DeactiveConfigRulesRequest.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_DEACTIVECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DeactiveConfigRulesRequest : public RpcServiceRequest { public: - StopConfigRulesRequest(); - ~StopConfigRulesRequest(); + 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_STOPCONFIGRULESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StopConfigRulesResult.h b/config/include/alibabacloud/config/model/DeactiveConfigRulesResult.h similarity index 75% rename from config/include/alibabacloud/config/model/StopConfigRulesResult.h rename to config/include/alibabacloud/config/model/DeactiveConfigRulesResult.h index 6b92b2441..7975c3beb 100644 --- a/config/include/alibabacloud/config/model/StopConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/DeactiveConfigRulesResult.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_DEACTIVECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DeactiveConfigRulesResult : public ServiceResult { public: struct OperateRuleResult @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - StopConfigRulesResult(); - explicit StopConfigRulesResult(const std::string &payload); - ~StopConfigRulesResult(); + DeactiveConfigRulesResult(); + explicit DeactiveConfigRulesResult(const std::string &payload); + ~DeactiveConfigRulesResult(); 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_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/DeleteAggregateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/DeleteAggregateConfigDeliveryChannelRequest.h new file mode 100644 index 000000000..cf2118be6 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateConfigDeliveryChannelRequest.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_DELETEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateConfigDeliveryChannelRequest : public RpcServiceRequest { +public: + DeleteAggregateConfigDeliveryChannelRequest(); + ~DeleteAggregateConfigDeliveryChannelRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getDeliveryChannelId() const; + void setDeliveryChannelId(const std::string &deliveryChannelId); + +private: + std::string aggregatorId_; + std::string deliveryChannelId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteAggregateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/DeleteAggregateConfigDeliveryChannelResult.h new file mode 100644 index 000000000..31b808b19 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateConfigDeliveryChannelResult.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_DELETEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateConfigDeliveryChannelResult : public ServiceResult + { + public: + + + DeleteAggregateConfigDeliveryChannelResult(); + explicit DeleteAggregateConfigDeliveryChannelResult(const std::string &payload); + ~DeleteAggregateConfigDeliveryChannelResult(); + std::string getDeliveryChannelId()const; + + protected: + void parse(const std::string &payload); + private: + std::string deliveryChannelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGDELIVERYCHANNELRESULT_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/DeleteAggregateConfigRulesResult.h b/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h new file mode 100644 index 000000000..4c48e650a --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.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_DELETEAGGREGATECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateConfigRulesResult : public ServiceResult + { + public: + struct OperateRuleResult + { + struct OperateRuleItem + { + std::string configRuleId; + std::string errorCode; + bool success; + }; + std::vector operateRuleItemList; + }; + + + DeleteAggregateConfigRulesResult(); + explicit DeleteAggregateConfigRulesResult(const std::string &payload); + ~DeleteAggregateConfigRulesResult(); + OperateRuleResult getOperateRuleResult()const; + + protected: + void parse(const std::string &payload); + private: + OperateRuleResult operateRuleResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h b/config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h new file mode 100644 index 000000000..8cc3c346e --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.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_DELETEAGGREGATEREMEDIATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATEREMEDIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateRemediationsRequest : public RpcServiceRequest { +public: + DeleteAggregateRemediationsRequest(); + ~DeleteAggregateRemediationsRequest(); + std::string getRemediationIds() const; + void setRemediationIds(const std::string &remediationIds); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string remediationIds_; + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATEREMEDIATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteAggregateRemediationsResult.h b/config/include/alibabacloud/config/model/DeleteAggregateRemediationsResult.h new file mode 100644 index 000000000..c96c24ab9 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateRemediationsResult.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_DELETEAGGREGATEREMEDIATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATEREMEDIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateRemediationsResult : public ServiceResult + { + public: + struct RemediationDeleteResult + { + std::string remediationId; + std::string errorMessage; + bool success; + }; + + + DeleteAggregateRemediationsResult(); + explicit DeleteAggregateRemediationsResult(const std::string &payload); + ~DeleteAggregateRemediationsResult(); + std::vector getRemediationDeleteResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector remediationDeleteResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATEREMEDIATIONSRESULT_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/DeleteCompliancePacksRequest.h b/config/include/alibabacloud/config/model/DeleteCompliancePacksRequest.h new file mode 100644 index 000000000..dbb9c689c --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteCompliancePacksRequest.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_DELETECOMPLIANCEPACKSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteCompliancePacksRequest : public RpcServiceRequest { +public: + 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 clientToken_; + std::string compliancePackIds_; + bool deleteRule_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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/DeleteConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/DeleteConfigDeliveryChannelRequest.h new file mode 100644 index 000000000..ec5145972 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteConfigDeliveryChannelRequest.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_DELETECONFIGDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGDELIVERYCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigDeliveryChannelRequest : public RpcServiceRequest { +public: + DeleteConfigDeliveryChannelRequest(); + ~DeleteConfigDeliveryChannelRequest(); + std::string getDeliveryChannelId() const; + void setDeliveryChannelId(const std::string &deliveryChannelId); + +private: + std::string deliveryChannelId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/DeleteConfigDeliveryChannelResult.h new file mode 100644 index 000000000..755147361 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteConfigDeliveryChannelResult.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_DELETECONFIGDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGDELIVERYCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigDeliveryChannelResult : public ServiceResult + { + public: + + + DeleteConfigDeliveryChannelResult(); + explicit DeleteConfigDeliveryChannelResult(const std::string &payload); + ~DeleteConfigDeliveryChannelResult(); + std::string getDeliveryChannelId()const; + + protected: + void parse(const std::string &payload); + private: + std::string deliveryChannelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGDELIVERYCHANNELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteRemediationsRequest.h b/config/include/alibabacloud/config/model/DeleteRemediationsRequest.h new file mode 100644 index 000000000..a75a16f52 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteRemediationsRequest.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_DELETEREMEDIATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEREMEDIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteRemediationsRequest : public RpcServiceRequest { +public: + DeleteRemediationsRequest(); + ~DeleteRemediationsRequest(); + std::string getRemediationIds() const; + void setRemediationIds(const std::string &remediationIds); + +private: + std::string remediationIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEREMEDIATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteRemediationsResult.h b/config/include/alibabacloud/config/model/DeleteRemediationsResult.h new file mode 100644 index 000000000..c342739d8 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteRemediationsResult.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_DELETEREMEDIATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEREMEDIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteRemediationsResult : public ServiceResult + { + public: + struct RemediationDeleteResult + { + std::string remediationId; + std::string errorMessage; + bool success; + }; + + + DeleteRemediationsResult(); + explicit DeleteRemediationsResult(const std::string &payload); + ~DeleteRemediationsResult(); + std::vector getRemediationDeleteResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector remediationDeleteResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEREMEDIATIONSRESULT_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/EvaluatePreConfigRulesRequest.h b/config/include/alibabacloud/config/model/EvaluatePreConfigRulesRequest.h new file mode 100644 index 000000000..cccef6fb3 --- /dev/null +++ b/config/include/alibabacloud/config/model/EvaluatePreConfigRulesRequest.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_EVALUATEPRECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_EVALUATEPRECONFIGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT EvaluatePreConfigRulesRequest : public RpcServiceRequest { +public: + EvaluatePreConfigRulesRequest(); + ~EvaluatePreConfigRulesRequest(); + bool getEnableManagedRules() const; + void setEnableManagedRules(bool enableManagedRules); + std::string getResourceEvaluateItems() const; + void setResourceEvaluateItems(const std::string &resourceEvaluateItems); + std::string getResourceTypeFormat() const; + void setResourceTypeFormat(const std::string &resourceTypeFormat); + +private: + bool enableManagedRules_; + std::string resourceEvaluateItems_; + std::string resourceTypeFormat_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_EVALUATEPRECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/EvaluatePreConfigRulesResult.h b/config/include/alibabacloud/config/model/EvaluatePreConfigRulesResult.h new file mode 100644 index 000000000..0d02bcfa5 --- /dev/null +++ b/config/include/alibabacloud/config/model/EvaluatePreConfigRulesResult.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_EVALUATEPRECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_EVALUATEPRECONFIGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT EvaluatePreConfigRulesResult : public ServiceResult + { + public: + struct ResourceEvaluation + { + struct Rule + { + std::string identifier; + std::string complianceType; + std::string annotation; + std::string helpUrl; + }; + std::string resourceLogicalId; + std::string resourceType; + std::vector rules; + }; + + + EvaluatePreConfigRulesResult(); + explicit EvaluatePreConfigRulesResult(const std::string &payload); + ~EvaluatePreConfigRulesResult(); + std::vector getResourceEvaluations()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resourceEvaluations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_EVALUATEPRECONFIGRULESRESULT_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..407f0b5dc --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.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_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 getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string clientToken_; + std::string configRuleIds_; + 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..4cf57ec81 --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 getReportId()const; + std::string getAggregatorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string reportId_; + std::string aggregatorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GenerateAggregateResourceInventoryRequest.h b/config/include/alibabacloud/config/model/GenerateAggregateResourceInventoryRequest.h new file mode 100644 index 000000000..5484cd9e6 --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateAggregateResourceInventoryRequest.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_GENERATEAGGREGATERESOURCEINVENTORYREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATERESOURCEINVENTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateResourceInventoryRequest : public RpcServiceRequest { +public: + GenerateAggregateResourceInventoryRequest(); + ~GenerateAggregateResourceInventoryRequest(); + std::string getRegions() const; + void setRegions(const std::string ®ions); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getAccountIds() const; + void setAccountIds(const std::string &accountIds); + +private: + std::string regions_; + std::string resourceTypes_; + std::string aggregatorId_; + std::string accountIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATERESOURCEINVENTORYREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateAggregateResourceInventoryResult.h b/config/include/alibabacloud/config/model/GenerateAggregateResourceInventoryResult.h new file mode 100644 index 000000000..224468bc2 --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateAggregateResourceInventoryResult.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_GENERATEAGGREGATERESOURCEINVENTORYRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATERESOURCEINVENTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateResourceInventoryResult : public ServiceResult + { + public: + + + GenerateAggregateResourceInventoryResult(); + explicit GenerateAggregateResourceInventoryResult(const std::string &payload); + ~GenerateAggregateResourceInventoryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATERESOURCEINVENTORYRESULT_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/GetDiscoveredResourceSummaryResult.h b/config/include/alibabacloud/config/model/GenerateCompliancePackReportResult.h similarity index 60% rename from config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h rename to config/include/alibabacloud/config/model/GenerateCompliancePackReportResult.h index 6c88bb2ce..0dd5355fd 100644 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h +++ b/config/include/alibabacloud/config/model/GenerateCompliancePackReportResult.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_GENERATECOMPLIANCEPACKREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTRESULT_H_ #include #include @@ -29,29 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceSummaryResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GenerateCompliancePackReportResult : public ServiceResult { public: - struct DiscoveredResourceSummary - { - int resourceTypeCount; - int regionCount; - int resourceCount; - }; - GetDiscoveredResourceSummaryResult(); - explicit GetDiscoveredResourceSummaryResult(const std::string &payload); - ~GetDiscoveredResourceSummaryResult(); - DiscoveredResourceSummary getDiscoveredResourceSummary()const; + GenerateCompliancePackReportResult(); + explicit GenerateCompliancePackReportResult(const std::string &payload); + ~GenerateCompliancePackReportResult(); + std::string getCompliancePackId()const; protected: void parse(const std::string &payload); private: - DiscoveredResourceSummary discoveredResourceSummary_; + std::string compliancePackId_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h b/config/include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h new file mode 100644 index 000000000..c38b3c9bf --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateConfigRulesReportRequest.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_GENERATECONFIGRULESREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GenerateConfigRulesReportRequest : public RpcServiceRequest { +public: + GenerateConfigRulesReportRequest(); + ~GenerateConfigRulesReportRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + +private: + std::string clientToken_; + std::string configRuleIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateConfigRulesReportResult.h b/config/include/alibabacloud/config/model/GenerateConfigRulesReportResult.h new file mode 100644 index 000000000..95ea9df44 --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateConfigRulesReportResult.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_GENERATECONFIGRULESREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GenerateConfigRulesReportResult : public ServiceResult + { + public: + + + GenerateConfigRulesReportResult(); + explicit GenerateConfigRulesReportResult(const std::string &payload); + ~GenerateConfigRulesReportResult(); + std::string getReportId()const; + + protected: + void parse(const std::string &payload); + private: + std::string reportId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h b/config/include/alibabacloud/config/model/GenerateResourceInventoryRequest.h similarity index 62% rename from config/include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h rename to config/include/alibabacloud/config/model/GenerateResourceInventoryRequest.h index 7c6116e64..9588a2554 100644 --- a/config/include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h +++ b/config/include/alibabacloud/config/model/GenerateResourceInventoryRequest.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_GENERATERESOURCEINVENTORYREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATERESOURCEINVENTORYREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GenerateResourceInventoryRequest : public RpcServiceRequest { public: - DescribeComplianceSummaryRequest(); - ~DescribeComplianceSummaryRequest(); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); - long getMemberId() const; - void setMemberId(long memberId); + GenerateResourceInventoryRequest(); + ~GenerateResourceInventoryRequest(); + std::string getRegions() const; + void setRegions(const std::string ®ions); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); private: - bool multiAccount_; - long memberId_; + std::string regions_; + std::string resourceTypes_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATERESOURCEINVENTORYREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateResourceInventoryResult.h b/config/include/alibabacloud/config/model/GenerateResourceInventoryResult.h new file mode 100644 index 000000000..03d1425ca --- /dev/null +++ b/config/include/alibabacloud/config/model/GenerateResourceInventoryResult.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_GENERATERESOURCEINVENTORYRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GENERATERESOURCEINVENTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GenerateResourceInventoryResult : public ServiceResult + { + public: + + + GenerateResourceInventoryResult(); + explicit GenerateResourceInventoryResult(const std::string &payload); + ~GenerateResourceInventoryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATERESOURCEINVENTORYRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h b/config/include/alibabacloud/config/model/GetAdvancedSearchFileRequest.h similarity index 68% rename from config/include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h rename to config/include/alibabacloud/config/model/GetAdvancedSearchFileRequest.h index 3357a81a8..2dbf72020 100644 --- a/config/include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h +++ b/config/include/alibabacloud/config/model/GetAdvancedSearchFileRequest.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_GETADVANCEDSEARCHFILEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETADVANCEDSEARCHFILEREQUEST_H_ #include #include @@ -26,14 +26,14 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetAdvancedSearchFileRequest : public RpcServiceRequest { public: - DescribeConfigurationRecorderRequest(); - ~DescribeConfigurationRecorderRequest(); + GetAdvancedSearchFileRequest(); + ~GetAdvancedSearchFileRequest(); private: }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETADVANCEDSEARCHFILEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAdvancedSearchFileResult.h b/config/include/alibabacloud/config/model/GetAdvancedSearchFileResult.h new file mode 100644 index 000000000..9b4381657 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAdvancedSearchFileResult.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_GETADVANCEDSEARCHFILERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETADVANCEDSEARCHFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAdvancedSearchFileResult : public ServiceResult + { + public: + struct ResourceSearch + { + std::string status; + long accountId; + long resourceInventoryGenerateTime; + std::string downloadUrl; + }; + + + GetAdvancedSearchFileResult(); + explicit GetAdvancedSearchFileResult(const std::string &payload); + ~GetAdvancedSearchFileResult(); + ResourceSearch getResourceSearch()const; + + protected: + void parse(const std::string &payload); + private: + ResourceSearch resourceSearch_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETADVANCEDSEARCHFILERESULT_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/GetAggregateAdvancedSearchFileRequest.h b/config/include/alibabacloud/config/model/GetAggregateAdvancedSearchFileRequest.h new file mode 100644 index 000000000..84ed325c0 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateAdvancedSearchFileRequest.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_GETAGGREGATEADVANCEDSEARCHFILEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEADVANCEDSEARCHFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateAdvancedSearchFileRequest : public RpcServiceRequest { +public: + GetAggregateAdvancedSearchFileRequest(); + ~GetAggregateAdvancedSearchFileRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEADVANCEDSEARCHFILEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateAdvancedSearchFileResult.h b/config/include/alibabacloud/config/model/GetAggregateAdvancedSearchFileResult.h new file mode 100644 index 000000000..b11cb200c --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateAdvancedSearchFileResult.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_GETAGGREGATEADVANCEDSEARCHFILERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEADVANCEDSEARCHFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateAdvancedSearchFileResult : public ServiceResult + { + public: + struct ResourceSearch + { + std::string status; + long accountId; + long resourceInventoryGenerateTime; + std::string downloadUrl; + }; + + + GetAggregateAdvancedSearchFileResult(); + explicit GetAggregateAdvancedSearchFileResult(const std::string &payload); + ~GetAggregateAdvancedSearchFileResult(); + ResourceSearch getResourceSearch()const; + + protected: + void parse(const std::string &payload); + private: + ResourceSearch resourceSearch_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEADVANCEDSEARCHFILERESULT_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/GetAggregateCompliancePackReportResult.h b/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h new file mode 100644 index 000000000..b606e2ab6 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.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_GETAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateCompliancePackReportResult : public ServiceResult + { + public: + struct CompliancePackReport + { + std::string compliancePackId; + long accountId; + std::string reportUrl; + std::string reportStatus; + long reportCreateTimestamp; + }; + + + GetAggregateCompliancePackReportResult(); + explicit GetAggregateCompliancePackReportResult(const std::string &payload); + ~GetAggregateCompliancePackReportResult(); + CompliancePackReport getCompliancePackReport()const; + + protected: + void parse(const std::string &payload); + private: + CompliancePackReport compliancePackReport_; + + }; + } + } +} +#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..d4ab6af02 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateCompliancePackResult.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 Scope + { + std::string tagKeyScope; + std::string tagValueScope; + std::string excludeResourceIdsScope; + std::string regionIdsScope; + std::string resourceGroupIdsScope; + }; + 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::string resourceTypesScope; + std::vector configRuleParameters; + }; + std::string status; + std::string compliancePackId; + std::string description; + std::string compliancePackName; + long accountId; + Scope scope; + 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/GetAggregateComplianceSummaryRequest.h b/config/include/alibabacloud/config/model/GetAggregateComplianceSummaryRequest.h new file mode 100644 index 000000000..936661a6a --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateComplianceSummaryRequest.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_GETAGGREGATECOMPLIANCESUMMARYREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCESUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateComplianceSummaryRequest : public RpcServiceRequest { +public: + GetAggregateComplianceSummaryRequest(); + ~GetAggregateComplianceSummaryRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCESUMMARYREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateComplianceSummaryResult.h b/config/include/alibabacloud/config/model/GetAggregateComplianceSummaryResult.h new file mode 100644 index 000000000..c8cb37616 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateComplianceSummaryResult.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_GETAGGREGATECOMPLIANCESUMMARYRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCESUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateComplianceSummaryResult : 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; + }; + + + GetAggregateComplianceSummaryResult(); + explicit GetAggregateComplianceSummaryResult(const std::string &payload); + ~GetAggregateComplianceSummaryResult(); + ComplianceSummary getComplianceSummary()const; + + protected: + void parse(const std::string &payload); + private: + ComplianceSummary complianceSummary_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCESUMMARYRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.h new file mode 100644 index 000000000..c5b156cea --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.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_GETAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigDeliveryChannelRequest : public RpcServiceRequest { +public: + GetAggregateConfigDeliveryChannelRequest(); + ~GetAggregateConfigDeliveryChannelRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getDeliveryChannelId() const; + void setDeliveryChannelId(const std::string &deliveryChannelId); + +private: + std::string aggregatorId_; + std::string deliveryChannelId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.h new file mode 100644 index 000000000..64f057c9a --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigDeliveryChannelResult : public ServiceResult + { + public: + struct DeliveryChannel + { + int status; + std::string oversizedDataOSSTargetArn; + bool configurationSnapshot; + std::string description; + std::string accountId; + std::string deliveryChannelId; + std::string deliveryChannelName; + std::string deliveryChannelTargetArn; + std::string deliveryChannelAssumeRoleArn; + std::string deliveryChannelType; + std::string deliveryChannelCondition; + bool nonCompliantNotification; + std::string deliverySnapshotTime; + bool configurationItemChangeNotification; + std::string aggregatorId; + }; + + + GetAggregateConfigDeliveryChannelResult(); + explicit GetAggregateConfigDeliveryChannelResult(const std::string &payload); + ~GetAggregateConfigDeliveryChannelResult(); + DeliveryChannel getDeliveryChannel()const; + + protected: + void parse(const std::string &payload); + private: + DeliveryChannel deliveryChannel_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELRESULT_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..6871246de --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRuleResult.h @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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; + }; + struct Compliance + { + std::string complianceType; + int count; + }; + std::string tagValueScope; + std::string excludeAccountIdsScope; + std::string description; + long accountId; + Compliance compliance; + std::string tagKeyLogicScope; + CreateBy createBy; + ConfigRuleEvaluationStatus configRuleEvaluationStatus; + Source source; + std::string maximumExecutionFrequency; + std::string regionIdsScope; + long modifiedTimestamp; + std::string resourceGroupIdsScope; + long createTimestamp; + std::string inputParameters; + std::string tagKeyScope; + ManagedRule managedRule; + std::string excludeFolderIdsScope; + std::string excludeResourceIdsScope; + std::string configRuleState; + std::string configRuleId; + Scope scope; + std::string configRuleArn; + std::string configRuleTriggerTypes; + std::string folderIdsScope; + std::string configRuleName; + int riskLevel; + std::string resourceTypesScope; + std::string serviceChannel; + }; + + + 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/GetAggregateConfigRulesReportRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h new file mode 100644 index 000000000..a5776a48e --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.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_GETAGGREGATECONFIGRULESREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRulesReportRequest : public RpcServiceRequest { +public: + GetAggregateConfigRulesReportRequest(); + ~GetAggregateConfigRulesReportRequest(); + std::string getReportId() const; + void setReportId(const std::string &reportId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string reportId_; + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h new file mode 100644 index 000000000..c514719f7 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRulesReportResult : public ServiceResult + { + public: + struct ConfigRulesReport + { + long accountId; + std::string reportUrl; + std::string reportId; + std::string reportStatus; + std::string aggregatorId; + long reportCreateTimestamp; + }; + + + GetAggregateConfigRulesReportResult(); + explicit GetAggregateConfigRulesReportResult(const std::string &payload); + ~GetAggregateConfigRulesReportResult(); + ConfigRulesReport getConfigRulesReport()const; + + protected: + void parse(const std::string &payload); + private: + ConfigRulesReport configRulesReport_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h b/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h index 1fa6a7731..40dd5432e 100644 --- a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h +++ b/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h @@ -38,6 +38,8 @@ public: void setAggregatorId(const std::string &aggregatorId); std::string getResourceType() const; void setResourceType(const std::string &resourceType); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); std::string getRegion() const; void setRegion(const std::string ®ion); @@ -46,6 +48,7 @@ private: long resourceOwnerId_; std::string aggregatorId_; std::string resourceType_; + long resourceAccountId_; std::string region_; }; } // namespace Model diff --git a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h b/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h index 822148514..b2dc034e5 100644 --- a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h +++ b/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud long accountId; std::string configuration; std::string resourceId; + long version; std::string resourceName; std::string availabilityZone; std::string region; diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h new file mode 100644 index 000000000..29ce9cfb8 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.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_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); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); + +private: + std::string configRuleId_; + long resourceOwnerId_; + std::string aggregatorId_; + long resourceAccountId_; + 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/GetAggregateResourceComplianceGroupByRegionRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionRequest.h new file mode 100644 index 000000000..05380d529 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionRequest.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_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceGroupByRegionRequest : public RpcServiceRequest { +public: + GetAggregateResourceComplianceGroupByRegionRequest(); + ~GetAggregateResourceComplianceGroupByRegionRequest(); + 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_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionResult.h new file mode 100644 index 000000000..991af5f9c --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceGroupByRegionResult : public ServiceResult + { + public: + struct ComplianceResult + { + struct ComplianceResultListItem + { + struct CompliancesItem + { + std::string complianceType; + long count; + }; + std::vector compliances; + std::string regionId; + }; + std::vector complianceResultList; + }; + + + GetAggregateResourceComplianceGroupByRegionResult(); + explicit GetAggregateResourceComplianceGroupByRegionResult(const std::string &payload); + ~GetAggregateResourceComplianceGroupByRegionResult(); + ComplianceResult getComplianceResult()const; + + protected: + void parse(const std::string &payload); + private: + ComplianceResult complianceResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h new file mode 100644 index 000000000..64163cf43 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.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_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceGroupByResourceTypeRequest : public RpcServiceRequest { +public: + GetAggregateResourceComplianceGroupByResourceTypeRequest(); + ~GetAggregateResourceComplianceGroupByResourceTypeRequest(); + 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_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeResult.h new file mode 100644 index 000000000..02952d4f0 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceGroupByResourceTypeResult : public ServiceResult + { + public: + struct ComplianceResult + { + struct ComplianceResultListItem + { + struct CompliancesItem + { + std::string complianceType; + long count; + }; + std::vector compliances; + std::string resourceType; + }; + std::vector complianceResultList; + }; + + + GetAggregateResourceComplianceGroupByResourceTypeResult(); + explicit GetAggregateResourceComplianceGroupByResourceTypeResult(const std::string &payload); + ~GetAggregateResourceComplianceGroupByResourceTypeResult(); + ComplianceResult getComplianceResult()const; + + protected: + void parse(const std::string &payload); + private: + ComplianceResult complianceResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_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..351c1ca9a --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + 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_; + long resourceAccountId_; + 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/GetAggregateResourceComplianceTimelineResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h new file mode 100644 index 000000000..fb181f10c --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceTimelineResult : public ServiceResult + { + public: + struct ResourceComplianceTimeline + { + struct ComplianceListItem + { + 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 resourceCreateTime; + std::string tags; + }; + std::vector complianceList; + std::string nextToken; + int maxResults; + }; + + + GetAggregateResourceComplianceTimelineResult(); + explicit GetAggregateResourceComplianceTimelineResult(const std::string &payload); + ~GetAggregateResourceComplianceTimelineResult(); + ResourceComplianceTimeline getResourceComplianceTimeline()const; + + protected: + void parse(const std::string &payload); + private: + ResourceComplianceTimeline resourceComplianceTimeline_; + + }; + } + } +} +#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..1eae3ecb5 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + 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_; + long resourceAccountId_; + 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/GetAggregateResourceCountsGroupByRegionRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h new file mode 100644 index 000000000..37f3cfa55 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.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_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByRegionRequest : public RpcServiceRequest { +public: + 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 getFolderId() const; + void setFolderId(const std::string &folderId); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + +private: + long resourceOwnerId_; + std::string aggregatorId_; + std::string resourceType_; + std::string folderId_; + long resourceAccountId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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/GetAggregateResourceCountsGroupByResourceTypeRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h new file mode 100644 index 000000000..bffa99ead --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.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_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByResourceTypeRequest : public RpcServiceRequest { +public: + 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); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + long resourceOwnerId_; + std::string aggregatorId_; + std::string folderId_; + long resourceAccountId_; + std::string region_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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/GetAggregateResourceInventoryRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceInventoryRequest.h new file mode 100644 index 000000000..f7a995862 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceInventoryRequest.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_GETAGGREGATERESOURCEINVENTORYREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCEINVENTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceInventoryRequest : public RpcServiceRequest { +public: + GetAggregateResourceInventoryRequest(); + ~GetAggregateResourceInventoryRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCEINVENTORYREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceInventoryResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceInventoryResult.h new file mode 100644 index 000000000..f22b3b7e5 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateResourceInventoryResult.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_GETAGGREGATERESOURCEINVENTORYRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCEINVENTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceInventoryResult : public ServiceResult + { + public: + struct ResourceInventory + { + std::string status; + long accountId; + long resourceInventoryGenerateTime; + std::string downloadUrl; + }; + + + GetAggregateResourceInventoryResult(); + explicit GetAggregateResourceInventoryResult(const std::string &payload); + ~GetAggregateResourceInventoryResult(); + ResourceInventory getResourceInventory()const; + + protected: + void parse(const std::string &payload); + private: + ResourceInventory resourceInventory_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCEINVENTORYRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregatorRequest.h b/config/include/alibabacloud/config/model/GetAggregatorRequest.h new file mode 100644 index 000000000..d2a2e9054 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregatorRequest.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_GETAGGREGATORREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetAggregatorRequest : public RpcServiceRequest { +public: + GetAggregatorRequest(); + ~GetAggregatorRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregatorResult.h b/config/include/alibabacloud/config/model/GetAggregatorResult.h new file mode 100644 index 000000000..e1b703bb8 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregatorResult.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_GETAGGREGATORRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetAggregatorResult : public ServiceResult + { + public: + struct Aggregator + { + struct AggregatorAccountsItem + { + long accountId; + std::string recorderStatus; + std::string accountType; + std::string accountName; + }; + std::string aggregatorName; + std::string description; + long accountId; + std::vector aggregatorAccounts; + std::string aggregatorCreateTimestamp; + long aggregatorAccountCount; + int aggregatorStatus; + std::string aggregatorType; + std::string aggregatorId; + }; + + + GetAggregatorResult(); + explicit GetAggregatorResult(const std::string &payload); + ~GetAggregatorResult(); + Aggregator getAggregator()const; + + protected: + void parse(const std::string &payload); + private: + Aggregator aggregator_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetCompliancePackReportRequest.h b/config/include/alibabacloud/config/model/GetCompliancePackReportRequest.h new file mode 100644 index 000000000..5aafa51ac --- /dev/null +++ b/config/include/alibabacloud/config/model/GetCompliancePackReportRequest.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_GETCOMPLIANCEPACKREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackReportRequest : public RpcServiceRequest { +public: + GetCompliancePackReportRequest(); + ~GetCompliancePackReportRequest(); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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/GetCompliancePackRequest.h b/config/include/alibabacloud/config/model/GetCompliancePackRequest.h new file mode 100644 index 000000000..05945c6e4 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetCompliancePackRequest.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_GETCOMPLIANCEPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackRequest : public RpcServiceRequest { +public: + GetCompliancePackRequest(); + ~GetCompliancePackRequest(); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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..4e2047781 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetCompliancePackResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 Scope + { + std::string tagKeyScope; + std::string tagValueScope; + std::string excludeResourceIdsScope; + std::string regionIdsScope; + std::string resourceGroupIdsScope; + }; + 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::string resourceTypesScope; + std::vector configRuleParameters; + }; + std::string status; + std::string compliancePackId; + std::string description; + std::string compliancePackName; + long accountId; + Scope scope; + 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/GetComplianceSummaryRequest.h b/config/include/alibabacloud/config/model/GetComplianceSummaryRequest.h new file mode 100644 index 000000000..1f33570b8 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetComplianceSummaryRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCESUMMARYREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCESUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetComplianceSummaryRequest : public RpcServiceRequest { +public: + GetComplianceSummaryRequest(); + ~GetComplianceSummaryRequest(); + +private: +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCESUMMARYREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DescribeComplianceSummaryResult.h b/config/include/alibabacloud/config/model/GetComplianceSummaryResult.h similarity index 77% rename from config/include/alibabacloud/config/model/DescribeComplianceSummaryResult.h rename to config/include/alibabacloud/config/model/GetComplianceSummaryResult.h index d30414193..83c41296b 100644 --- a/config/include/alibabacloud/config/model/DescribeComplianceSummaryResult.h +++ b/config/include/alibabacloud/config/model/GetComplianceSummaryResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCESUMMARYRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCESUMMARYRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetComplianceSummaryResult : public ServiceResult { public: struct ComplianceSummary @@ -53,9 +53,9 @@ namespace AlibabaCloud }; - DescribeComplianceSummaryResult(); - explicit DescribeComplianceSummaryResult(const std::string &payload); - ~DescribeComplianceSummaryResult(); + GetComplianceSummaryResult(); + explicit GetComplianceSummaryResult(const std::string &payload); + ~GetComplianceSummaryResult(); ComplianceSummary getComplianceSummary()const; protected: @@ -67,4 +67,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCESUMMARYRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/GetConfigDeliveryChannelRequest.h new file mode 100644 index 000000000..70922bd18 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigDeliveryChannelRequest.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_GETCONFIGDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetConfigDeliveryChannelRequest : public RpcServiceRequest { +public: + GetConfigDeliveryChannelRequest(); + ~GetConfigDeliveryChannelRequest(); + std::string getDeliveryChannelId() const; + void setDeliveryChannelId(const std::string &deliveryChannelId); + +private: + std::string deliveryChannelId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/GetConfigDeliveryChannelResult.h new file mode 100644 index 000000000..b6aab9ccd --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigDeliveryChannelResult.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_GETCONFIGDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetConfigDeliveryChannelResult : public ServiceResult + { + public: + struct DeliveryChannel + { + int status; + std::string oversizedDataOSSTargetArn; + bool configurationSnapshot; + std::string description; + long accountId; + std::string deliveryChannelId; + std::string deliveryChannelName; + std::string deliveryChannelTargetArn; + std::string deliveryChannelAssumeRoleArn; + std::string deliveryChannelType; + std::string deliveryChannelCondition; + bool nonCompliantNotification; + std::string deliverySnapshotTime; + bool configurationItemChangeNotification; + }; + + + GetConfigDeliveryChannelResult(); + explicit GetConfigDeliveryChannelResult(const std::string &payload); + ~GetConfigDeliveryChannelResult(); + DeliveryChannel getDeliveryChannel()const; + + protected: + void parse(const std::string &payload); + private: + DeliveryChannel deliveryChannel_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELRESULT_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 74% rename from config/include/alibabacloud/config/model/DescribeConfigRuleResult.h rename to config/include/alibabacloud/config/model/GetConfigRuleResult.h index 53c4530be..b014d3888 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,47 @@ namespace AlibabaCloud std::string lastErrorCode; long lastSuccessfulInvocationTimestamp; }; - ManagedRule managedRule; + struct Scope + { + std::vector complianceResourceTypes; + }; + struct Compliance + { + std::string complianceType; + int count; + }; + std::string tagValueScope; std::string description; + long accountId; + Compliance compliance; + std::string tagKeyLogicScope; CreateBy createBy; ConfigRuleEvaluationStatus configRuleEvaluationStatus; Source source; - std::string configRuleState; std::string maximumExecutionFrequency; - bool organizationRule; + std::string regionIdsScope; + long modifiedTimestamp; + std::string resourceGroupIdsScope; + long createTimestamp; + std::string inputParameters; + std::string tagKeyScope; + ManagedRule managedRule; + std::string excludeResourceIdsScope; + std::string configRuleState; std::string configRuleId; Scope scope; std::string configRuleArn; - long modifiedTimestamp; + std::string configRuleTriggerTypes; std::string configRuleName; int riskLevel; - long createTimestamp; - std::string inputParameters; + std::string resourceTypesScope; + std::string serviceChannel; }; - DescribeConfigRuleResult(); - explicit DescribeConfigRuleResult(const std::string &payload); - ~DescribeConfigRuleResult(); + GetConfigRuleResult(); + explicit GetConfigRuleResult(const std::string &payload); + ~GetConfigRuleResult(); ConfigRule getConfigRule()const; protected: @@ -130,4 +137,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/GetConfigRuleSummaryByRiskLevelRequest.h b/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h new file mode 100644 index 000000000..9ed9a6b51 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleSummaryByRiskLevelRequest : public RpcServiceRequest { +public: + GetConfigRuleSummaryByRiskLevelRequest(); + ~GetConfigRuleSummaryByRiskLevelRequest(); + +private: +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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/GetConfigRulesReportRequest.h b/config/include/alibabacloud/config/model/GetConfigRulesReportRequest.h new file mode 100644 index 000000000..c41b98b3e --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigRulesReportRequest.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_GETCONFIGRULESREPORTREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetConfigRulesReportRequest : public RpcServiceRequest { +public: + GetConfigRulesReportRequest(); + ~GetConfigRulesReportRequest(); + std::string getReportId() const; + void setReportId(const std::string &reportId); + +private: + std::string reportId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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..be871095a --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigRulesReportResult.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_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 reportId; + 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/GetConfigurationRecorderRequest.h b/config/include/alibabacloud/config/model/GetConfigurationRecorderRequest.h new file mode 100644 index 000000000..3de44b9ca --- /dev/null +++ b/config/include/alibabacloud/config/model/GetConfigurationRecorderRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGURATIONRECORDERREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGURATIONRECORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetConfigurationRecorderRequest : public RpcServiceRequest { +public: + GetConfigurationRecorderRequest(); + ~GetConfigurationRecorderRequest(); + +private: +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGURATIONRECORDERREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/PutConfigurationRecorderResult.h b/config/include/alibabacloud/config/model/GetConfigurationRecorderResult.h similarity index 71% rename from config/include/alibabacloud/config/model/PutConfigurationRecorderResult.h rename to config/include/alibabacloud/config/model/GetConfigurationRecorderResult.h index a9572205c..ee6a6a871 100644 --- a/config/include/alibabacloud/config/model/PutConfigurationRecorderResult.h +++ b/config/include/alibabacloud/config/model/GetConfigurationRecorderResult.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_GETCONFIGURATIONRECORDERRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGURATIONRECORDERRESULT_H_ #include #include @@ -29,22 +29,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetConfigurationRecorderResult : public ServiceResult { public: struct ConfigurationRecorder { std::string configurationRecorderStatus; std::vector resourceTypes; - long accountId; - long organizationMasterId; - std::string organizationEnableStatus; }; - PutConfigurationRecorderResult(); - explicit PutConfigurationRecorderResult(const std::string &payload); - ~PutConfigurationRecorderResult(); + GetConfigurationRecorderResult(); + explicit GetConfigurationRecorderResult(const std::string &payload); + ~GetConfigurationRecorderResult(); ConfigurationRecorder getConfigurationRecorder()const; protected: @@ -56,4 +53,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGURATIONRECORDERRESULT_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/DescribeDiscoveredResourceRequest.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceRequest.h similarity index 67% rename from config/include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h rename to config/include/alibabacloud/config/model/GetDiscoveredResourceRequest.h index c6c7b645b..be36ffe13 100644 --- a/config/include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceRequest.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_GETDISCOVEREDRESOURCEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCEREQUEST_H_ #include #include @@ -26,29 +26,23 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceRequest : public RpcServiceRequest { public: - DescribeDiscoveredResourceRequest(); - ~DescribeDiscoveredResourceRequest(); + GetDiscoveredResourceRequest(); + ~GetDiscoveredResourceRequest(); 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 getRegion() const; void setRegion(const std::string ®ion); - long getMemberId() const; - void setMemberId(long memberId); private: std::string resourceId_; - bool multiAccount_; std::string resourceType_; std::string region_; - long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceResult.h similarity index 75% rename from config/include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h rename to config/include/alibabacloud/config/model/GetDiscoveredResourceResult.h index e68f76454..a0b2e970f 100644 --- a/config/include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceResult.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_GETDISCOVEREDRESOURCERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCERESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceResult : public ServiceResult { public: struct DiscoveredResourceDetail @@ -38,6 +38,7 @@ namespace AlibabaCloud long accountId; std::string configuration; std::string resourceId; + long version; std::string resourceName; std::string availabilityZone; std::string region; @@ -48,9 +49,9 @@ namespace AlibabaCloud }; - DescribeDiscoveredResourceResult(); - explicit DescribeDiscoveredResourceResult(const std::string &payload); - ~DescribeDiscoveredResourceResult(); + GetDiscoveredResourceResult(); + explicit GetDiscoveredResourceResult(const std::string &payload); + ~GetDiscoveredResourceResult(); DiscoveredResourceDetail getDiscoveredResourceDetail()const; protected: @@ -62,4 +63,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetIntegratedServiceStatusRequest.h b/config/include/alibabacloud/config/model/GetIntegratedServiceStatusRequest.h new file mode 100644 index 000000000..84f233e36 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetIntegratedServiceStatusRequest.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_GETINTEGRATEDSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETINTEGRATEDSERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetIntegratedServiceStatusRequest : public RpcServiceRequest { +public: + GetIntegratedServiceStatusRequest(); + ~GetIntegratedServiceStatusRequest(); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + +private: + std::string serviceCode_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETINTEGRATEDSERVICESTATUSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetIntegratedServiceStatusResult.h b/config/include/alibabacloud/config/model/GetIntegratedServiceStatusResult.h new file mode 100644 index 000000000..39630147e --- /dev/null +++ b/config/include/alibabacloud/config/model/GetIntegratedServiceStatusResult.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_GETINTEGRATEDSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETINTEGRATEDSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetIntegratedServiceStatusResult : public ServiceResult + { + public: + + + GetIntegratedServiceStatusResult(); + explicit GetIntegratedServiceStatusResult(const std::string &payload); + ~GetIntegratedServiceStatusResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETINTEGRATEDSERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetManagedRuleRequest.h b/config/include/alibabacloud/config/model/GetManagedRuleRequest.h new file mode 100644 index 000000000..0012428fb --- /dev/null +++ b/config/include/alibabacloud/config/model/GetManagedRuleRequest.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_GETMANAGEDRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetManagedRuleRequest : public RpcServiceRequest { +public: + GetManagedRuleRequest(); + ~GetManagedRuleRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + +private: + std::string identifier_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetManagedRuleResult.h b/config/include/alibabacloud/config/model/GetManagedRuleResult.h new file mode 100644 index 000000000..22a8b0304 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetManagedRuleResult.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_GETMANAGEDRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetManagedRuleResult : public ServiceResult + { + public: + struct ManagedRule + { + struct Scope + { + std::vector complianceResourceTypes; + }; + struct SourceDetailsItem + { + std::string eventSource; + std::string messageType; + std::string maximumExecutionFrequency; + }; + std::string optionalInputParameterDetails; + std::string description; + std::string compulsoryInputParameterDetails; + std::string helpHint; + std::vector labels; + std::string helpUrls; + std::string functionName; + std::string identifier; + Scope scope; + std::vector sourceConditions; + std::string serviceName; + std::string defaultName; + std::string helpDoc; + std::string configRuleName; + std::string regionId; + std::string useCases; + std::vector sourceDetails; + int riskLevel; + long createTimestamp; + }; + + + GetManagedRuleResult(); + explicit GetManagedRuleResult(const std::string &payload); + ~GetManagedRuleResult(); + ManagedRule getManagedRule()const; + + protected: + void parse(const std::string &payload); + private: + ManagedRule managedRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetRemediationTemplateRequest.h b/config/include/alibabacloud/config/model/GetRemediationTemplateRequest.h new file mode 100644 index 000000000..8d3445ee0 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetRemediationTemplateRequest.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_GETREMEDIATIONTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETREMEDIATIONTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetRemediationTemplateRequest : public RpcServiceRequest { +public: + GetRemediationTemplateRequest(); + ~GetRemediationTemplateRequest(); + std::string getTemplateIdentifier() const; + void setTemplateIdentifier(const std::string &templateIdentifier); + +private: + std::string templateIdentifier_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETREMEDIATIONTEMPLATEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetRemediationTemplateResult.h b/config/include/alibabacloud/config/model/GetRemediationTemplateResult.h new file mode 100644 index 000000000..fc985ab6c --- /dev/null +++ b/config/include/alibabacloud/config/model/GetRemediationTemplateResult.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_GETREMEDIATIONTEMPLATERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETREMEDIATIONTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetRemediationTemplateResult : public ServiceResult + { + public: + struct RemediationTemplate + { + std::string templateIdentifier; + std::string compulsoryParameters; + std::string templateName; + std::string templateDefinition; + std::string managedRuleIdentifier; + std::string templateDescription; + std::string remediationType; + }; + + + GetRemediationTemplateResult(); + explicit GetRemediationTemplateResult(const std::string &payload); + ~GetRemediationTemplateResult(); + std::vector getRemediationTemplates()const; + + protected: + void parse(const std::string &payload); + private: + std::vector remediationTemplates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETREMEDIATIONTEMPLATERESULT_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/GetResourceComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h new file mode 100644 index 000000000..b7849d9d6 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetResourceComplianceByPackRequest.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_GETRESOURCECOMPLIANCEBYPACKREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceByPackRequest : public RpcServiceRequest { +public: + GetResourceComplianceByPackRequest(); + ~GetResourceComplianceByPackRequest(); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + +private: + std::string compliancePackId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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/GetResourceComplianceGroupByRegionRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionRequest.h new file mode 100644 index 000000000..f3214201b --- /dev/null +++ b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionRequest.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_GETRESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceGroupByRegionRequest : public RpcServiceRequest { +public: + GetResourceComplianceGroupByRegionRequest(); + ~GetResourceComplianceGroupByRegionRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + +private: + std::string configRuleIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionResult.h b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionResult.h new file mode 100644 index 000000000..9287668e6 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceGroupByRegionResult : public ServiceResult + { + public: + struct ComplianceResult + { + struct ComplianceResultListItem + { + struct CompliancesItem + { + std::string complianceType; + long count; + }; + std::vector compliances; + std::string regionId; + }; + std::vector complianceResultList; + }; + + + GetResourceComplianceGroupByRegionResult(); + explicit GetResourceComplianceGroupByRegionResult(const std::string &payload); + ~GetResourceComplianceGroupByRegionResult(); + ComplianceResult getComplianceResult()const; + + protected: + void parse(const std::string &payload); + private: + ComplianceResult complianceResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeRequest.h new file mode 100644 index 000000000..5b88c7afd --- /dev/null +++ b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeRequest.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_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceGroupByResourceTypeRequest : public RpcServiceRequest { +public: + GetResourceComplianceGroupByResourceTypeRequest(); + ~GetResourceComplianceGroupByResourceTypeRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + +private: + std::string configRuleIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeResult.h b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeResult.h new file mode 100644 index 000000000..36415570c --- /dev/null +++ b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceGroupByResourceTypeResult : public ServiceResult + { + public: + struct ComplianceResult + { + struct ComplianceResultListItem + { + struct CompliancesItem + { + std::string complianceType; + long count; + }; + std::vector compliances; + std::string resourceType; + }; + std::vector complianceResultList; + }; + + + GetResourceComplianceGroupByResourceTypeResult(); + explicit GetResourceComplianceGroupByResourceTypeResult(const std::string &payload); + ~GetResourceComplianceGroupByResourceTypeResult(); + ComplianceResult getComplianceResult()const; + + protected: + void parse(const std::string &payload); + private: + ComplianceResult complianceResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_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/GetResourceInventoryRequest.h b/config/include/alibabacloud/config/model/GetResourceInventoryRequest.h new file mode 100644 index 000000000..aa5f7ffd1 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetResourceInventoryRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCEINVENTORYREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCEINVENTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetResourceInventoryRequest : public RpcServiceRequest { +public: + GetResourceInventoryRequest(); + ~GetResourceInventoryRequest(); + +private: +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCEINVENTORYREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetResourceInventoryResult.h b/config/include/alibabacloud/config/model/GetResourceInventoryResult.h new file mode 100644 index 000000000..18e21abc4 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetResourceInventoryResult.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_GETRESOURCEINVENTORYRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCEINVENTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetResourceInventoryResult : public ServiceResult + { + public: + struct ResourceInventory + { + std::string status; + long accountId; + long resourceInventoryGenerateTime; + std::string downloadUrl; + }; + + + GetResourceInventoryResult(); + explicit GetResourceInventoryResult(const std::string &payload); + ~GetResourceInventoryResult(); + ResourceInventory getResourceInventory()const; + + protected: + void parse(const std::string &payload); + private: + ResourceInventory resourceInventory_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCEINVENTORYRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetSupportedResourceRelationConfigRequest.h b/config/include/alibabacloud/config/model/GetSupportedResourceRelationConfigRequest.h new file mode 100644 index 000000000..c72cfb6df --- /dev/null +++ b/config/include/alibabacloud/config/model/GetSupportedResourceRelationConfigRequest.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_GETSUPPORTEDRESOURCERELATIONCONFIGREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCERELATIONCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceRelationConfigRequest : public RpcServiceRequest { +public: + GetSupportedResourceRelationConfigRequest(); + ~GetSupportedResourceRelationConfigRequest(); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string resourceType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCERELATIONCONFIGREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetSupportedResourceRelationConfigResult.h b/config/include/alibabacloud/config/model/GetSupportedResourceRelationConfigResult.h new file mode 100644 index 000000000..df61d4902 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetSupportedResourceRelationConfigResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCERELATIONCONFIGRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCERELATIONCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceRelationConfigResult : public ServiceResult + { + public: + struct ResourceRelationConfigListItem + { + std::string targetResourceType; + std::string relationType; + }; + + + GetSupportedResourceRelationConfigResult(); + explicit GetSupportedResourceRelationConfigResult(const std::string &payload); + ~GetSupportedResourceRelationConfigResult(); + std::vector getResourceRelationConfigList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resourceRelationConfigList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCERELATIONCONFIGRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h new file mode 100644 index 000000000..8a0621b7e --- /dev/null +++ b/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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::string getIgnoreDate() const; + void setIgnoreDate(const std::string &ignoreDate); + 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::string ignoreDate_; + 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..9a95f9bda --- /dev/null +++ b/config/include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.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_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::string getIgnoreDate() const; + void setIgnoreDate(const std::string &ignoreDate); + std::vector getResources() const; + void setResources(const std::vector &resources); + +private: + std::string configRuleId_; + std::string reason_; + std::string ignoreDate_; + std::vector resources_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h b/config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h new file mode 100644 index 000000000..a4be0231f --- /dev/null +++ b/config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.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_IGNOREEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT IgnoreEvaluationResultsResult : public ServiceResult + { + public: + + + IgnoreEvaluationResultsResult(); + explicit IgnoreEvaluationResultsResult(const std::string &payload); + ~IgnoreEvaluationResultsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#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/ListAggregateConfigDeliveryChannelsRequest.h b/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsRequest.h new file mode 100644 index 000000000..27cd778b9 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsRequest.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_LISTAGGREGATECONFIGDELIVERYCHANNELSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigDeliveryChannelsRequest : public RpcServiceRequest { +public: + ListAggregateConfigDeliveryChannelsRequest(); + ~ListAggregateConfigDeliveryChannelsRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getDeliveryChannelIds() const; + void setDeliveryChannelIds(const std::string &deliveryChannelIds); + +private: + std::string aggregatorId_; + std::string deliveryChannelIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsResult.h b/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsResult.h new file mode 100644 index 000000000..17973495c --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigDeliveryChannelsResult : public ServiceResult + { + public: + struct DeliveryChannel + { + int status; + std::string oversizedDataOSSTargetArn; + bool configurationSnapshot; + std::string description; + long accountId; + std::string deliveryChannelName; + std::string deliveryChannelId; + std::string deliveryChannelTargetArn; + std::string deliveryChannelAssumeRoleArn; + std::string deliveryChannelType; + std::string deliveryChannelCondition; + bool nonCompliantNotification; + std::string deliverySnapshotTime; + bool configurationItemChangeNotification; + std::string aggregatorId; + }; + + + ListAggregateConfigDeliveryChannelsResult(); + explicit ListAggregateConfigDeliveryChannelsResult(const std::string &payload); + ~ListAggregateConfigDeliveryChannelsResult(); + std::vector getDeliveryChannels()const; + + protected: + void parse(const std::string &payload); + private: + std::vector deliveryChannels_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h new file mode 100644 index 000000000..4a61018be --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRuleEvaluationResultsRequest : public RpcServiceRequest { +public: + 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); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); + std::string getResourceGroupIds() const; + void setResourceGroupIds(const std::string &resourceGroupIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string configRuleId_; + long resourceOwnerId_; + std::string regions_; + std::string aggregatorId_; + long resourceAccountId_; + std::string nextToken_; + std::string compliancePackId_; + std::string complianceType_; + std::string resourceTypes_; + std::string resourceGroupIds_; + int maxResults_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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..27511f8d7 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h @@ -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. + */ + +#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 ignoreDate; + 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/ListAggregateConfigRuleEvaluationStatisticsRequest.h b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationStatisticsRequest.h new file mode 100644 index 000000000..8972e271d --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationStatisticsRequest.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_LISTAGGREGATECONFIGRULEEVALUATIONSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRuleEvaluationStatisticsRequest : public RpcServiceRequest { +public: + ListAggregateConfigRuleEvaluationStatisticsRequest(); + ~ListAggregateConfigRuleEvaluationStatisticsRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONSTATISTICSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationStatisticsResult.h b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationStatisticsResult.h new file mode 100644 index 000000000..b65cfcf71 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationStatisticsResult.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_LISTAGGREGATECONFIGRULEEVALUATIONSTATISTICSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRuleEvaluationStatisticsResult : public ServiceResult + { + public: + struct EvaluationResultsItem + { + std::string aggregatorName; + int totalResourceCnt; + long gmtCreate; + long accountId; + int nonCompliantResourceCnt; + int totalRuleCnt; + std::string nonCompliantRuleDetail; + std::string statisticDate; + int nonCompliantRuleCnt; + std::string aggregatorId; + }; + + + ListAggregateConfigRuleEvaluationStatisticsResult(); + explicit ListAggregateConfigRuleEvaluationStatisticsResult(const std::string &payload); + ~ListAggregateConfigRuleEvaluationStatisticsResult(); + std::vector getEvaluationResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector evaluationResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h b/config/include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h new file mode 100644 index 000000000..843f3c650 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRulesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + 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; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + Tag getTag() const; + void setTag(const Tag &tag); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + std::string getConfigRuleName() const; + void setConfigRuleName(const std::string &configRuleName); + std::string getServiceChannel() const; + void setServiceChannel(const std::string &serviceChannel); + +private: + bool filterInCompliancePack_; + std::string messageType_; + std::string configRuleState_; + std::string aggregatorId_; + std::string filterInCompliancePackExcludeIds_; + int pageNumber_; + int pageSize_; + std::string compliancePackId_; + Tag tag_; + std::string keyword_; + std::string complianceType_; + std::string resourceTypes_; + int riskLevel_; + std::string configRuleName_; + std::string serviceChannel_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigRulesResult.h b/config/include/alibabacloud/config/model/ListAggregateConfigRulesResult.h new file mode 100644 index 000000000..095801fd8 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateConfigRulesResult.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRulesResult : public ServiceResult + { + public: + struct ConfigRules + { + struct ConfigRule + { + struct Compliance + { + std::string complianceType; + int count; + }; + struct CreateBy + { + std::string compliancePackId; + std::string aggregatorName; + std::string compliancePackName; + std::string creatorId; + std::string creatorType; + std::string creatorName; + std::string aggregatorId; + }; + struct Tag + { + std::string value; + std::string key; + }; + long accountId; + std::string description; + Compliance compliance; + std::string sourceOwner; + CreateBy createBy; + std::string sourceIdentifier; + std::string configRuleState; + std::string configRuleId; + std::string configRuleArn; + std::string automationType; + std::string configRuleName; + int riskLevel; + std::string resourceTypesScope; + std::vector tags; + std::string serviceChannel; + }; + long totalCount; + int pageSize; + int pageNumber; + std::vector configRuleList; + }; + + + ListAggregateConfigRulesResult(); + explicit ListAggregateConfigRulesResult(const std::string &payload); + ~ListAggregateConfigRulesResult(); + ConfigRules getConfigRules()const; + + protected: + void parse(const std::string &payload); + private: + ConfigRules configRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h index a66e81911..e643209f1 100644 --- a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h +++ b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h @@ -38,30 +38,30 @@ public: 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 getComplianceType() const; - void setComplianceType(const std::string &complianceType); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); std::string getResourceId() const; void setResourceId(const std::string &resourceId); std::string getResourceTypes() const; void setResourceTypes(const std::string &resourceTypes); + int getMaxResults() const; + void setMaxResults(int maxResults); private: int resourceDeleted_; long resourceOwnerId_; std::string regions_; std::string aggregatorId_; - int pageNumber_; std::string folderId_; - int pageSize_; - std::string complianceType_; + long resourceAccountId_; + std::string nextToken_; std::string resourceId_; std::string resourceTypes_; + int maxResults_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h index 025347045..2c669a257 100644 --- a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h +++ b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h @@ -39,17 +39,19 @@ namespace AlibabaCloud long resourceCreationTime; long accountId; std::string resourceId; + long version; std::string resourceName; std::string region; std::string resourceStatus; + std::string availabilityZone; std::string resourceType; long resourceOwnerId; std::string tags; int resourceDeleted; }; int totalCount; - int pageSize; - int pageNumber; + std::string nextToken; + int maxResults; std::vector discoveredResourceProfileList; }; diff --git a/config/include/alibabacloud/config/model/ListAggregateRemediationExecutionsRequest.h b/config/include/alibabacloud/config/model/ListAggregateRemediationExecutionsRequest.h new file mode 100644 index 000000000..6848b99e2 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateRemediationExecutionsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONEXECUTIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONEXECUTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateRemediationExecutionsRequest : public RpcServiceRequest { +public: + ListAggregateRemediationExecutionsRequest(); + ~ListAggregateRemediationExecutionsRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getExecutionStatus() const; + void setExecutionStatus(const std::string &executionStatus); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + std::string configRuleId_; + std::string resourceOwnerId_; + std::string executionStatus_; + std::string aggregatorId_; + long resourceAccountId_; + std::string nextToken_; + long maxResults_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONEXECUTIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateRemediationExecutionsResult.h b/config/include/alibabacloud/config/model/ListAggregateRemediationExecutionsResult.h new file mode 100644 index 000000000..a3d37416f --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateRemediationExecutionsResult.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_LISTAGGREGATEREMEDIATIONEXECUTIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONEXECUTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateRemediationExecutionsResult : public ServiceResult + { + public: + struct RemediationExecutionData + { + struct RemediationExecutionsItem + { + std::string executionCreateDate; + std::string executionStatusMessage; + std::string executionStatus; + std::string executionResourceType; + std::string executionInvocationId; + std::string executionResourceIds; + }; + std::string nextToken; + std::vector remediationExecutions; + long maxResults; + }; + + + ListAggregateRemediationExecutionsResult(); + explicit ListAggregateRemediationExecutionsResult(const std::string &payload); + ~ListAggregateRemediationExecutionsResult(); + RemediationExecutionData getRemediationExecutionData()const; + + protected: + void parse(const std::string &payload); + private: + RemediationExecutionData remediationExecutionData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONEXECUTIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.h b/config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.h new file mode 100644 index 000000000..22b9f3916 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.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_LISTAGGREGATEREMEDIATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateRemediationsRequest : public RpcServiceRequest { +public: + ListAggregateRemediationsRequest(); + ~ListAggregateRemediationsRequest(); + 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_LISTAGGREGATEREMEDIATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateRemediationsResult.h b/config/include/alibabacloud/config/model/ListAggregateRemediationsResult.h new file mode 100644 index 000000000..2bc403eac --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateRemediationsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateRemediationsResult : public ServiceResult + { + public: + struct Remediation + { + std::string remediationTemplateId; + long accountId; + std::string remediationSourceType; + std::string remediaitonOriginParams; + long lastSuccessfulInvocationTime; + std::string remediationId; + std::string remediationDynamicParams; + std::string lastSuccessfulInvocationType; + std::string configRuleId; + std::string invokeType; + std::string lastSuccessfulInvocationId; + std::string remediationType; + std::string aggregatorId; + }; + + + ListAggregateRemediationsResult(); + explicit ListAggregateRemediationsResult(const std::string &payload); + ~ListAggregateRemediationsResult(); + std::vector getRemediations()const; + + protected: + void parse(const std::string &payload); + private: + std::vector remediations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSRESULT_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 60% rename from config/include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h rename to config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h index 870931905..18c3eb566 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,38 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeEvaluationResultsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateResourceEvaluationResultsRequest : public RpcServiceRequest { public: - DescribeEvaluationResultsRequest(); - ~DescribeEvaluationResultsRequest(); + ListAggregateResourceEvaluationResultsRequest(); + ~ListAggregateResourceEvaluationResultsRequest(); 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 getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); std::string getComplianceType() const; void setComplianceType(const std::string &complianceType); std::string getResourceId() const; void setResourceId(const std::string &resourceId); std::string getResourceType() const; void setResourceType(const std::string &resourceType); - long getMemberId() const; - void setMemberId(long memberId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getRegion() const; + void setRegion(const std::string ®ion); private: std::string configRuleId_; - bool multiAccount_; - int pageNumber_; - int pageSize_; + std::string aggregatorId_; + std::string nextToken_; std::string complianceType_; std::string resourceId_; std::string resourceType_; - long memberId_; + int maxResults_; + std::string region_; }; } // 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..262d71104 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.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_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 ignoreDate; + 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/ListAggregateResourceRelationsRequest.h b/config/include/alibabacloud/config/model/ListAggregateResourceRelationsRequest.h new file mode 100644 index 000000000..faef37b18 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateResourceRelationsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCERELATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCERELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateResourceRelationsRequest : public RpcServiceRequest { +public: + ListAggregateResourceRelationsRequest(); + ~ListAggregateResourceRelationsRequest(); + std::string getTargetResourceId() const; + void setTargetResourceId(const std::string &targetResourceId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getRelationType() const; + void setRelationType(const std::string &relationType); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getTargetResourceType() const; + void setTargetResourceType(const std::string &targetResourceType); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + 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: + std::string targetResourceId_; + std::string aggregatorId_; + std::string relationType_; + long resourceAccountId_; + std::string nextToken_; + std::string targetResourceType_; + std::string resourceId_; + std::string resourceType_; + int maxResults_; + std::string region_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCERELATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateResourceRelationsResult.h b/config/include/alibabacloud/config/model/ListAggregateResourceRelationsResult.h new file mode 100644 index 000000000..4dc7f029f --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateResourceRelationsResult.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_LISTAGGREGATERESOURCERELATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCERELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateResourceRelationsResult : public ServiceResult + { + public: + struct ResourceRelations + { + struct ResourceRelationListItem + { + std::string targetResourceType; + int accountId; + std::string targetResourceId; + std::string relationType; + std::string sourceResourceRegionId; + std::string sourceResourceId; + std::string sourceResourceType; + }; + int totalCount; + std::string nextToken; + int maxResults; + std::vector resourceRelationList; + }; + + + ListAggregateResourceRelationsResult(); + explicit ListAggregateResourceRelationsResult(const std::string &payload); + ~ListAggregateResourceRelationsResult(); + ResourceRelations getResourceRelations()const; + + protected: + void parse(const std::string &payload); + private: + ResourceRelations resourceRelations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCERELATIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateResourcesByAdvancedSearchRequest.h b/config/include/alibabacloud/config/model/ListAggregateResourcesByAdvancedSearchRequest.h new file mode 100644 index 000000000..13a49c66d --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateResourcesByAdvancedSearchRequest.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_LISTAGGREGATERESOURCESBYADVANCEDSEARCHREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCESBYADVANCEDSEARCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateResourcesByAdvancedSearchRequest : public RpcServiceRequest { +public: + ListAggregateResourcesByAdvancedSearchRequest(); + ~ListAggregateResourcesByAdvancedSearchRequest(); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getSql() const; + void setSql(const std::string &sql); + +private: + std::string aggregatorId_; + std::string sql_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCESBYADVANCEDSEARCHREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateResourcesByAdvancedSearchResult.h b/config/include/alibabacloud/config/model/ListAggregateResourcesByAdvancedSearchResult.h new file mode 100644 index 000000000..b12faa927 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateResourcesByAdvancedSearchResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCESBYADVANCEDSEARCHRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCESBYADVANCEDSEARCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateResourcesByAdvancedSearchResult : public ServiceResult + { + public: + struct QueryResults + { + struct QueryResultList + { + std::vector values; + std::vector columns; + }; + QueryResultList queryResultList; + }; + + + ListAggregateResourcesByAdvancedSearchResult(); + explicit ListAggregateResourcesByAdvancedSearchResult(const std::string &payload); + ~ListAggregateResourcesByAdvancedSearchResult(); + QueryResults getQueryResults()const; + + protected: + void parse(const std::string &payload); + private: + QueryResults queryResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCESBYADVANCEDSEARCHRESULT_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..42fb24b03 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.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_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 getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); + 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 resourceTypes_; + 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..b774729a5 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListCompliancePackTemplatesResult.h @@ -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. + */ + +#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; + std::string controlDescription; + int riskLevel; + std::string controlId; + bool defaultEnable; + std::string resourceTypesScope; + std::vector configRuleParameters; + std::string developerType; + }; + std::string compliancePackTemplateName; + std::string description; + int lastUpdate; + std::string labels; + std::vector configRules; + std::string compliancePackTemplateId; + std::string domain; + int riskLevel; + std::string automationHelpUrl; + std::string developerType; + }; + 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/ListCompliancePacksResult.h b/config/include/alibabacloud/config/model/ListCompliancePacksResult.h new file mode 100644 index 000000000..5420bbbd4 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListCompliancePacksResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListCompliancePacksResult : 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; + }; + long totalCount; + int pageSize; + std::vector compliancePacks; + int pageNumber; + }; + + + ListCompliancePacksResult(); + explicit ListCompliancePacksResult(const std::string &payload); + ~ListCompliancePacksResult(); + CompliancePacksResult getCompliancePacksResult()const; + + protected: + void parse(const std::string &payload); + private: + CompliancePacksResult compliancePacksResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h b/config/include/alibabacloud/config/model/ListConfigDeliveryChannelsRequest.h similarity index 72% rename from config/include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h rename to config/include/alibabacloud/config/model/ListConfigDeliveryChannelsRequest.h index 527a54ebf..f7eaeb560 100644 --- a/config/include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h +++ b/config/include/alibabacloud/config/model/ListConfigDeliveryChannelsRequest.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_LISTCONFIGDELIVERYCHANNELSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT ListConfigDeliveryChannelsRequest : public RpcServiceRequest { public: - DescribeDeliveryChannelsRequest(); - ~DescribeDeliveryChannelsRequest(); + ListConfigDeliveryChannelsRequest(); + ~ListConfigDeliveryChannelsRequest(); std::string getDeliveryChannelIds() const; void setDeliveryChannelIds(const std::string &deliveryChannelIds); @@ -39,4 +39,4 @@ private: } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h b/config/include/alibabacloud/config/model/ListConfigDeliveryChannelsResult.h similarity index 74% rename from config/include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h rename to config/include/alibabacloud/config/model/ListConfigDeliveryChannelsResult.h index 469a3ced6..a66c924ac 100644 --- a/config/include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h +++ b/config/include/alibabacloud/config/model/ListConfigDeliveryChannelsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSRESULT_H_ #include #include @@ -29,29 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT ListConfigDeliveryChannelsResult : public ServiceResult { public: struct DeliveryChannel { int status; - bool configurationSnapshot; std::string oversizedDataOSSTargetArn; + bool configurationSnapshot; std::string description; + long accountId; std::string deliveryChannelName; std::string deliveryChannelId; std::string deliveryChannelTargetArn; std::string deliveryChannelAssumeRoleArn; - bool configurationItemChangeNotification; std::string deliveryChannelType; std::string deliveryChannelCondition; bool nonCompliantNotification; + std::string deliverySnapshotTime; + bool configurationItemChangeNotification; }; - DescribeDeliveryChannelsResult(); - explicit DescribeDeliveryChannelsResult(const std::string &payload); - ~DescribeDeliveryChannelsResult(); + ListConfigDeliveryChannelsResult(); + explicit ListConfigDeliveryChannelsResult(const std::string &payload); + ~ListConfigDeliveryChannelsResult(); std::vector getDeliveryChannels()const; protected: @@ -63,4 +65,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSRESULT_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..e7c3647e0 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 getRegions() const; + void setRegions(const std::string ®ions); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getCompliancePackId() const; + void setCompliancePackId(const std::string &compliancePackId); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); + std::string getResourceGroupIds() const; + void setResourceGroupIds(const std::string &resourceGroupIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string configRuleId_; + std::string regions_; + std::string nextToken_; + std::string compliancePackId_; + std::string complianceType_; + std::string resourceTypes_; + std::string resourceGroupIds_; + int maxResults_; +}; +} // 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..ed257ad57 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h @@ -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. + */ + +#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 ignoreDate; + 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/ListConfigRuleEvaluationStatisticsRequest.h b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationStatisticsRequest.h new file mode 100644 index 000000000..0f91468e0 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationStatisticsRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListConfigRuleEvaluationStatisticsRequest : public RpcServiceRequest { +public: + ListConfigRuleEvaluationStatisticsRequest(); + ~ListConfigRuleEvaluationStatisticsRequest(); + +private: +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONSTATISTICSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListConfigRuleEvaluationStatisticsResult.h b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationStatisticsResult.h new file mode 100644 index 000000000..5b60d5d61 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationStatisticsResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONSTATISTICSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListConfigRuleEvaluationStatisticsResult : public ServiceResult + { + public: + struct EvaluationResultsItem + { + int totalResourceCnt; + long gmtCreate; + long accountId; + int nonCompliantResourceCnt; + int totalRuleCnt; + std::string nonCompliantRuleDetail; + std::string statisticDate; + int nonCompliantRuleCnt; + }; + + + ListConfigRuleEvaluationStatisticsResult(); + explicit ListConfigRuleEvaluationStatisticsResult(const std::string &payload); + ~ListConfigRuleEvaluationStatisticsResult(); + std::vector getEvaluationResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector evaluationResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListConfigRulesRequest.h b/config/include/alibabacloud/config/model/ListConfigRulesRequest.h index ff26add36..c7c2e7b6a 100644 --- a/config/include/alibabacloud/config/model/ListConfigRulesRequest.h +++ b/config/include/alibabacloud/config/model/ListConfigRulesRequest.h @@ -28,18 +28,10 @@ namespace Config { namespace Model { class ALIBABACLOUD_CONFIG_EXPORT ListConfigRulesRequest : public RpcServiceRequest { public: - struct Tag { - std::string value; - std::string key; - }; ListConfigRulesRequest(); ~ListConfigRulesRequest(); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); 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 getFilterInCompliancePackExcludeIds() const; @@ -50,34 +42,32 @@ public: void setPageSize(int pageSize); std::string getCompliancePackId() const; void setCompliancePackId(const std::string &compliancePackId); - Tag getTag() const; - void setTag(const Tag &tag); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); std::string getComplianceType() const; void setComplianceType(const std::string &complianceType); - std::string getConfigRuleSceneId() const; - void setConfigRuleSceneId(const std::string &configRuleSceneId); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); int getRiskLevel() const; void setRiskLevel(int riskLevel); std::string getConfigRuleName() const; void setConfigRuleName(const std::string &configRuleName); - long getMemberId() const; - void setMemberId(long memberId); + std::string getServiceChannel() const; + void setServiceChannel(const std::string &serviceChannel); private: - bool multiAccount_; bool filterInCompliancePack_; - std::string messageType_; std::string configRuleState_; std::string filterInCompliancePackExcludeIds_; int pageNumber_; int pageSize_; std::string compliancePackId_; - Tag tag_; + std::string keyword_; std::string complianceType_; - std::string configRuleSceneId_; + std::string resourceTypes_; int riskLevel_; std::string configRuleName_; - long memberId_; + std::string serviceChannel_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/ListConfigRulesResult.h b/config/include/alibabacloud/config/model/ListConfigRulesResult.h index 3403beada..8a6c1b72f 100644 --- a/config/include/alibabacloud/config/model/ListConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/ListConfigRulesResult.h @@ -45,11 +45,6 @@ namespace AlibabaCloud { std::string compliancePackId; std::string compliancePackName; - std::string creatorId; - std::string configRuleSceneName; - std::string configRuleSceneId; - std::string creatorType; - std::string creatorName; }; struct Tag { @@ -63,13 +58,14 @@ namespace AlibabaCloud 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 resourceTypesScope; std::vector tags; + std::string serviceChannel; }; long totalCount; int pageSize; diff --git a/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h b/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h index 3099c3dbc..44f5fb9f0 100644 --- a/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h +++ b/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h @@ -32,33 +32,24 @@ public: ~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 getRegions() const; + void setRegions(const std::string ®ions); std::string getResourceTypes() const; void setResourceTypes(const std::string &resourceTypes); - long getMemberId() const; - void setMemberId(long memberId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); private: int resourceDeleted_; - bool multiAccount_; - std::string regions_; - int pageNumber_; - int pageSize_; - std::string complianceType_; std::string resourceId_; + std::string regions_; std::string resourceTypes_; - long memberId_; + std::string nextToken_; + int maxResults_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h b/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h index b29dfd38e..937405d4a 100644 --- a/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h +++ b/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h @@ -39,16 +39,18 @@ namespace AlibabaCloud long resourceCreationTime; long accountId; std::string resourceId; + long version; std::string resourceName; std::string region; std::string resourceStatus; + std::string availabilityZone; std::string resourceType; std::string tags; int resourceDeleted; }; int totalCount; - int pageSize; - int pageNumber; + std::string nextToken; + int maxResults; std::vector discoveredResourceProfileList; }; diff --git a/config/include/alibabacloud/config/model/ListIntegratedServiceRequest.h b/config/include/alibabacloud/config/model/ListIntegratedServiceRequest.h new file mode 100644 index 000000000..96c0df22e --- /dev/null +++ b/config/include/alibabacloud/config/model/ListIntegratedServiceRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTINTEGRATEDSERVICEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTINTEGRATEDSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListIntegratedServiceRequest : public RpcServiceRequest { +public: + ListIntegratedServiceRequest(); + ~ListIntegratedServiceRequest(); + +private: +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTINTEGRATEDSERVICEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListIntegratedServiceResult.h b/config/include/alibabacloud/config/model/ListIntegratedServiceResult.h new file mode 100644 index 000000000..4b74a1a0c --- /dev/null +++ b/config/include/alibabacloud/config/model/ListIntegratedServiceResult.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_LISTINTEGRATEDSERVICERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTINTEGRATEDSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListIntegratedServiceResult : public ServiceResult + { + public: + struct DataItem + { + bool status; + long accountId; + std::string serviceCode; + std::string serviceName; + }; + + + ListIntegratedServiceResult(); + explicit ListIntegratedServiceResult(const std::string &payload); + ~ListIntegratedServiceResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTINTEGRATEDSERVICERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListManagedRulesRequest.h b/config/include/alibabacloud/config/model/ListManagedRulesRequest.h new file mode 100644 index 000000000..86103b11c --- /dev/null +++ b/config/include/alibabacloud/config/model/ListManagedRulesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListManagedRulesRequest : public RpcServiceRequest { +public: + ListManagedRulesRequest(); + ~ListManagedRulesRequest(); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); + std::string getSupportRemediation() const; + void setSupportRemediation(const std::string &supportRemediation); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSupportPreviewManagedRule() const; + void setSupportPreviewManagedRule(const std::string &supportPreviewManagedRule); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + std::string resourceTypes_; + std::string supportRemediation_; + int riskLevel_; + int pageNumber_; + int pageSize_; + std::string supportPreviewManagedRule_; + std::string keyword_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListManagedRulesResult.h b/config/include/alibabacloud/config/model/ListManagedRulesResult.h new file mode 100644 index 000000000..d0717c6e1 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListManagedRulesResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListManagedRulesResult : public ServiceResult + { + public: + struct ManagedRules + { + struct ManagedRule + { + struct Scope + { + std::vector complianceResourceTypes; + }; + std::string remediationTemplateName; + std::string description; + std::string identifier; + Scope scope; + std::string remediationTemplateIdentifier; + std::string configRuleName; + std::vector labels; + std::string useCases; + int riskLevel; + std::string helpUrls; + bool supportPreviewManagedRule; + int referenceCount; + }; + long totalCount; + int pageSize; + int pageNumber; + std::vector managedRuleList; + }; + + + ListManagedRulesResult(); + explicit ListManagedRulesResult(const std::string &payload); + ~ListManagedRulesResult(); + ManagedRules getManagedRules()const; + + protected: + void parse(const std::string &payload); + private: + ManagedRules managedRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListPreManagedRulesRequest.h b/config/include/alibabacloud/config/model/ListPreManagedRulesRequest.h new file mode 100644 index 000000000..c18f1da4d --- /dev/null +++ b/config/include/alibabacloud/config/model/ListPreManagedRulesRequest.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_LISTPREMANAGEDRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTPREMANAGEDRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListPreManagedRulesRequest : public RpcServiceRequest { +public: + ListPreManagedRulesRequest(); + ~ListPreManagedRulesRequest(); + std::vector getResourceTypes() const; + void setResourceTypes(const std::vector &resourceTypes); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getResourceTypeFormat() const; + void setResourceTypeFormat(const std::string &resourceTypeFormat); + +private: + std::vector resourceTypes_; + long pageNumber_; + long pageSize_; + std::string resourceTypeFormat_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTPREMANAGEDRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListPreManagedRulesResult.h b/config/include/alibabacloud/config/model/ListPreManagedRulesResult.h new file mode 100644 index 000000000..7ae5c5a23 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListPreManagedRulesResult.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_LISTPREMANAGEDRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTPREMANAGEDRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListPreManagedRulesResult : public ServiceResult + { + public: + struct ManagedRule + { + std::string optionalInputParameterDetails; + std::string nonCompliantSample; + std::string description; + std::string identifier; + std::vector sourceConditions; + std::string compulsoryInputParameterDetails; + std::string compliantSample; + std::string configRuleName; + std::string resourceType; + std::string helpUrls; + bool defaultEnable; + std::string inputParameters; + }; + + + ListPreManagedRulesResult(); + explicit ListPreManagedRulesResult(const std::string &payload); + ~ListPreManagedRulesResult(); + long getPageSize()const; + long getPageNumber()const; + std::vector getManagedRules()const; + + protected: + void parse(const std::string &payload); + private: + long pageSize_; + long pageNumber_; + std::vector managedRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTPREMANAGEDRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListRemediationExecutionsRequest.h b/config/include/alibabacloud/config/model/ListRemediationExecutionsRequest.h new file mode 100644 index 000000000..15a2ed946 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListRemediationExecutionsRequest.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_LISTREMEDIATIONEXECUTIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONEXECUTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListRemediationExecutionsRequest : public RpcServiceRequest { +public: + ListRemediationExecutionsRequest(); + ~ListRemediationExecutionsRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getExecutionStatus() const; + void setExecutionStatus(const std::string &executionStatus); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + std::string configRuleId_; + std::string executionStatus_; + std::string nextToken_; + long maxResults_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONEXECUTIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListRemediationExecutionsResult.h b/config/include/alibabacloud/config/model/ListRemediationExecutionsResult.h new file mode 100644 index 000000000..4d8ba05fb --- /dev/null +++ b/config/include/alibabacloud/config/model/ListRemediationExecutionsResult.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_LISTREMEDIATIONEXECUTIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONEXECUTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListRemediationExecutionsResult : public ServiceResult + { + public: + struct RemediationExecutionData + { + struct RemediationExecutionsItem + { + std::string executionCreateDate; + std::string executionStatusMessage; + std::string executionStatus; + std::string executionResourceType; + std::string executionInvocationId; + std::string executionResourceIds; + }; + std::string nextToken; + std::vector remediationExecutions; + long maxResults; + }; + + + ListRemediationExecutionsResult(); + explicit ListRemediationExecutionsResult(const std::string &payload); + ~ListRemediationExecutionsResult(); + RemediationExecutionData getRemediationExecutionData()const; + + protected: + void parse(const std::string &payload); + private: + RemediationExecutionData remediationExecutionData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONEXECUTIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.h b/config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.h index 68dcc3fbe..3fabf7a38 100644 --- a/config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.h +++ b/config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.h @@ -34,10 +34,16 @@ public: void setManagedRuleIdentifier(const std::string &managedRuleIdentifier); std::string getRemediationType() const; void setRemediationType(const std::string &remediationType); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getPageSize() const; + void setPageSize(long pageSize); private: std::string managedRuleIdentifier_; std::string remediationType_; + long pageNumber_; + long pageSize_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h b/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h index 09dc6d447..5f01deb8b 100644 --- a/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h +++ b/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string compulsoryParameters; std::string templateName; std::string templateDefinition; + std::string templateDescription; std::string remediationType; }; @@ -45,11 +46,17 @@ namespace AlibabaCloud ListRemediationTemplatesResult(); explicit ListRemediationTemplatesResult(const std::string &payload); ~ListRemediationTemplatesResult(); + std::string getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; std::vector getRemediationTemplates()const; protected: void parse(const std::string &payload); private: + std::string totalCount_; + long pageSize_; + long pageNumber_; std::vector remediationTemplates_; }; diff --git a/config/include/alibabacloud/config/model/ListRemediationsRequest.h b/config/include/alibabacloud/config/model/ListRemediationsRequest.h new file mode 100644 index 000000000..e92e7f851 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListRemediationsRequest.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_LISTREMEDIATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListRemediationsRequest : public RpcServiceRequest { +public: + ListRemediationsRequest(); + ~ListRemediationsRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + std::string configRuleIds_; + long pageNumber_; + long pageSize_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListRemediationsResult.h b/config/include/alibabacloud/config/model/ListRemediationsResult.h new file mode 100644 index 000000000..5e0c9b297 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListRemediationsResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListRemediationsResult : public ServiceResult + { + public: + struct Remediation + { + std::string lastSuccessfulInvocationType; + std::string configRuleId; + std::string remediationTemplateId; + long accountId; + std::string remediationSourceType; + long lastSuccessfulInvocationTime; + std::string invokeType; + std::string remediationOriginParams; + std::string remediationId; + std::string lastSuccessfulInvocationId; + std::string remediationDynamicParams; + std::string remediationType; + }; + + + ListRemediationsResult(); + explicit ListRemediationsResult(const std::string &payload); + ~ListRemediationsResult(); + std::string getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + std::vector getRemediations()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + long pageSize_; + long pageNumber_; + std::vector remediations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h new file mode 100644 index 000000000..e0fca14b0 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.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_LISTRESOURCEEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListResourceEvaluationResultsRequest : public RpcServiceRequest { +public: + ListResourceEvaluationResultsRequest(); + ~ListResourceEvaluationResultsRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + 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); + +private: + std::string resourceId_; + std::string resourceType_; + std::string nextToken_; + int maxResults_; + std::string region_; + std::string complianceType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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 77% rename from config/include/alibabacloud/config/model/DescribeEvaluationResultsResult.h rename to config/include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h index 5fdaac7e6..cb46d6547 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 @@ -44,6 +44,7 @@ namespace AlibabaCloud std::string configRuleArn; std::string resourceId; std::string resourceName; + std::string ignoreDate; std::string configRuleName; std::string resourceType; std::string regionId; @@ -61,15 +62,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 +81,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/ListResourceRelationsRequest.h b/config/include/alibabacloud/config/model/ListResourceRelationsRequest.h new file mode 100644 index 000000000..eb250fb4c --- /dev/null +++ b/config/include/alibabacloud/config/model/ListResourceRelationsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCERELATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCERELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListResourceRelationsRequest : public RpcServiceRequest { +public: + ListResourceRelationsRequest(); + ~ListResourceRelationsRequest(); + std::string getTargetResourceType() const; + void setTargetResourceType(const std::string &targetResourceType); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getTargetResourceId() const; + void setTargetResourceId(const std::string &targetResourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRelationType() const; + void setRelationType(const std::string &relationType); + 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); + +private: + std::string targetResourceType_; + std::string resourceId_; + std::string targetResourceId_; + std::string resourceType_; + std::string relationType_; + std::string nextToken_; + int maxResults_; + std::string region_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCERELATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListResourceRelationsResult.h b/config/include/alibabacloud/config/model/ListResourceRelationsResult.h new file mode 100644 index 000000000..d5a453e60 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListResourceRelationsResult.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_LISTRESOURCERELATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCERELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListResourceRelationsResult : public ServiceResult + { + public: + struct ResourceRelations + { + struct ResourceRelationListItem + { + std::string targetResourceType; + long accountId; + std::string targetResourceId; + std::string relationType; + std::string sourceResourceRegionId; + std::string sourceResourceId; + std::string sourceResourceType; + }; + int totalCount; + std::string nextToken; + int maxResults; + std::vector resourceRelationList; + }; + + + ListResourceRelationsResult(); + explicit ListResourceRelationsResult(const std::string &payload); + ~ListResourceRelationsResult(); + ResourceRelations getResourceRelations()const; + + protected: + void parse(const std::string &payload); + private: + ResourceRelations resourceRelations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCERELATIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListResourcesByAdvancedSearchRequest.h b/config/include/alibabacloud/config/model/ListResourcesByAdvancedSearchRequest.h new file mode 100644 index 000000000..9e14f4433 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListResourcesByAdvancedSearchRequest.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_LISTRESOURCESBYADVANCEDSEARCHREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCESBYADVANCEDSEARCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListResourcesByAdvancedSearchRequest : public RpcServiceRequest { +public: + ListResourcesByAdvancedSearchRequest(); + ~ListResourcesByAdvancedSearchRequest(); + std::string getSql() const; + void setSql(const std::string &sql); + +private: + std::string sql_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCESBYADVANCEDSEARCHREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListResourcesByAdvancedSearchResult.h b/config/include/alibabacloud/config/model/ListResourcesByAdvancedSearchResult.h new file mode 100644 index 000000000..a716d9bbc --- /dev/null +++ b/config/include/alibabacloud/config/model/ListResourcesByAdvancedSearchResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCESBYADVANCEDSEARCHRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCESBYADVANCEDSEARCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListResourcesByAdvancedSearchResult : public ServiceResult + { + public: + struct QueryResults + { + struct QueryResultList + { + std::vector values; + std::vector columns; + }; + QueryResultList queryResultList; + }; + + + ListResourcesByAdvancedSearchResult(); + explicit ListResourcesByAdvancedSearchResult(const std::string &payload); + ~ListResourcesByAdvancedSearchResult(); + QueryResults getQueryResults()const; + + protected: + void parse(const std::string &payload); + private: + QueryResults queryResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCESBYADVANCEDSEARCHRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListSupportedProductsRequest.h b/config/include/alibabacloud/config/model/ListSupportedProductsRequest.h new file mode 100644 index 000000000..05842aaba --- /dev/null +++ b/config/include/alibabacloud/config/model/ListSupportedProductsRequest.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_LISTSUPPORTEDPRODUCTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTSUPPORTEDPRODUCTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListSupportedProductsRequest : public RpcServiceRequest { +public: + ListSupportedProductsRequest(); + ~ListSupportedProductsRequest(); + 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_LISTSUPPORTEDPRODUCTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListSupportedProductsResult.h b/config/include/alibabacloud/config/model/ListSupportedProductsResult.h new file mode 100644 index 000000000..eebef5c24 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListSupportedProductsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTSUPPORTEDPRODUCTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTSUPPORTEDPRODUCTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListSupportedProductsResult : public ServiceResult + { + public: + struct Data + { + struct ResourceType + { + std::string typeNameEn; + std::string typePageLink; + std::string resourceType; + std::string typeNameZh; + }; + std::string productNameZh; + std::string productCode; + std::vector resourceTypeList; + std::string productNameEn; + }; + + + ListSupportedProductsResult(); + explicit ListSupportedProductsResult(const std::string &payload); + ~ListSupportedProductsResult(); + std::vector getProducts()const; + std::string getNextToken()const; + std::string getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector products_; + std::string nextToken_; + std::string maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTSUPPORTEDPRODUCTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListTagResourcesRequest.h b/config/include/alibabacloud/config/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..1205a0239 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListTagResourcesRequest.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_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getTag() const; + void setTag(const std::string &tag); + +private: + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::string nextToken_; + std::string tag_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListTagResourcesResult.h b/config/include/alibabacloud/config/model/ListTagResourcesResult.h new file mode 100644 index 000000000..14ba71240 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListTagResourcesResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESRESULT_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/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/StartAggregateConfigRuleEvaluationRequest.h b/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.h new file mode 100644 index 000000000..62667604a --- /dev/null +++ b/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.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_STARTAGGREGATECONFIGRULEEVALUATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT StartAggregateConfigRuleEvaluationRequest : public RpcServiceRequest { +public: + StartAggregateConfigRuleEvaluationRequest(); + ~StartAggregateConfigRuleEvaluationRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + 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); + +private: + std::string configRuleId_; + std::string aggregatorId_; + std::string compliancePackId_; + bool revertEvaluation_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#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/StartAggregateRemediationRequest.h b/config/include/alibabacloud/config/model/StartAggregateRemediationRequest.h new file mode 100644 index 000000000..ef5fc33dc --- /dev/null +++ b/config/include/alibabacloud/config/model/StartAggregateRemediationRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT StartAggregateRemediationRequest : public RpcServiceRequest { +public: + StartAggregateRemediationRequest(); + ~StartAggregateRemediationRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + long getResourceAccountId() const; + void setResourceAccountId(long resourceAccountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceRegionId() const; + void setResourceRegionId(const std::string &resourceRegionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string configRuleId_; + std::string resourceOwnerId_; + std::string aggregatorId_; + long resourceAccountId_; + std::string regionId_; + std::string resourceRegionId_; + std::string resourceId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StartAggregateRemediationResult.h b/config/include/alibabacloud/config/model/StartAggregateRemediationResult.h new file mode 100644 index 000000000..3e875850b --- /dev/null +++ b/config/include/alibabacloud/config/model/StartAggregateRemediationResult.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_STARTAGGREGATEREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT StartAggregateRemediationResult : public ServiceResult + { + public: + + + StartAggregateRemediationResult(); + explicit StartAggregateRemediationResult(const std::string &payload); + ~StartAggregateRemediationResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h b/config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h index 6aab98498..72acd013f 100644 --- a/config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h +++ b/config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h @@ -32,21 +32,15 @@ public: ~StartConfigRuleEvaluationRequest(); std::string getConfigRuleId() const; void setConfigRuleId(const std::string &configRuleId); - bool getMultiAccount() const; - void setMultiAccount(bool multiAccount); 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 compliancePackId_; bool revertEvaluation_; - long memberId_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h b/config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h index 98d98f70b..7f5b4ca2c 100644 --- a/config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h +++ b/config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h @@ -30,11 +30,8 @@ class ALIBABACLOUD_CONFIG_EXPORT StartConfigurationRecorderRequest : public RpcS public: StartConfigurationRecorderRequest(); ~StartConfigurationRecorderRequest(); - bool getEnterpriseEdition() const; - void setEnterpriseEdition(bool enterpriseEdition); private: - bool enterpriseEdition_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h b/config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h index fef17df5e..44c595458 100644 --- a/config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h +++ b/config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h @@ -36,9 +36,6 @@ namespace AlibabaCloud { std::string configurationRecorderStatus; std::vector resourceTypes; - long accountId; - long organizationMasterId; - std::string organizationEnableStatus; }; diff --git a/config/include/alibabacloud/config/model/DescribeComplianceRequest.h b/config/include/alibabacloud/config/model/StartRemediationRequest.h similarity index 65% rename from config/include/alibabacloud/config/model/DescribeComplianceRequest.h rename to config/include/alibabacloud/config/model/StartRemediationRequest.h index 76d37a669..16b7eee29 100644 --- a/config/include/alibabacloud/config/model/DescribeComplianceRequest.h +++ b/config/include/alibabacloud/config/model/StartRemediationRequest.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_STARTREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTREMEDIATIONREQUEST_H_ #include #include @@ -26,32 +26,26 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT StartRemediationRequest : public RpcServiceRequest { public: - DescribeComplianceRequest(); - ~DescribeComplianceRequest(); + StartRemediationRequest(); + ~StartRemediationRequest(); std::string getConfigRuleId() const; void setConfigRuleId(const std::string &configRuleId); 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 getComplianceType() const; - void setComplianceType(const std::string &complianceType); - long getMemberId() const; - void setMemberId(long memberId); + std::string getResourceRegionId() const; + void setResourceRegionId(const std::string &resourceRegionId); private: std::string configRuleId_; std::string resourceId_; - bool multiAccount_; std::string resourceType_; - std::string complianceType_; - long memberId_; + std::string resourceRegionId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StartRemediationResult.h b/config/include/alibabacloud/config/model/StartRemediationResult.h new file mode 100644 index 000000000..c1d22c91c --- /dev/null +++ b/config/include/alibabacloud/config/model/StartRemediationResult.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_STARTREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT StartRemediationResult : public ServiceResult + { + public: + + + StartRemediationResult(); + explicit StartRemediationResult(const std::string &payload); + ~StartRemediationResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTREMEDIATIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h b/config/include/alibabacloud/config/model/StopConfigurationRecorderRequest.h similarity index 73% rename from config/include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h rename to config/include/alibabacloud/config/model/StopConfigurationRecorderRequest.h index ae289d689..7c78101c6 100644 --- a/config/include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h +++ b/config/include/alibabacloud/config/model/StopConfigurationRecorderRequest.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_STOPCONFIGURATIONRECORDERREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGURATIONRECORDERREQUEST_H_ #include #include @@ -26,14 +26,14 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceTypesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT StopConfigurationRecorderRequest : public RpcServiceRequest { public: - GetSupportedResourceTypesRequest(); - ~GetSupportedResourceTypesRequest(); + StopConfigurationRecorderRequest(); + ~StopConfigurationRecorderRequest(); private: }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGURATIONRECORDERREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StopConfigurationRecorderResult.h b/config/include/alibabacloud/config/model/StopConfigurationRecorderResult.h new file mode 100644 index 000000000..1cfaa3a10 --- /dev/null +++ b/config/include/alibabacloud/config/model/StopConfigurationRecorderResult.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_STOPCONFIGURATIONRECORDERRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGURATIONRECORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT StopConfigurationRecorderResult : public ServiceResult + { + public: + + + StopConfigurationRecorderResult(); + explicit StopConfigurationRecorderResult(const std::string &payload); + ~StopConfigurationRecorderResult(); + bool getStopConfigurationRecorderResult()const; + + protected: + void parse(const std::string &payload); + private: + bool stopConfigurationRecorderResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGURATIONRECORDERRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/TagResourcesRequest.h b/config/include/alibabacloud/config/model/TagResourcesRequest.h new file mode 100644 index 000000000..f2c9912a0 --- /dev/null +++ b/config/include/alibabacloud/config/model/TagResourcesRequest.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_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTag() const; + void setTag(const std::string &tag); + +private: + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::string tag_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/TagResourcesResult.h b/config/include/alibabacloud/config/model/TagResourcesResult.h new file mode 100644 index 000000000..7bd951315 --- /dev/null +++ b/config/include/alibabacloud/config/model/TagResourcesResult.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_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UntagResourcesRequest.h b/config/include/alibabacloud/config/model/UntagResourcesRequest.h new file mode 100644 index 000000000..ccb192cf9 --- /dev/null +++ b/config/include/alibabacloud/config/model/UntagResourcesRequest.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_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UntagResourcesResult.h b/config/include/alibabacloud/config/model/UntagResourcesResult.h new file mode 100644 index 000000000..a33c3692c --- /dev/null +++ b/config/include/alibabacloud/config/model/UntagResourcesResult.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_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESRESULT_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..1129f743c --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 getTagKeyScope() const; + void setTagKeyScope(const std::string &tagKeyScope); + 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 getTagValueScope() const; + void setTagValueScope(const std::string &tagValueScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + 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); + std::string getResourceGroupIdsScope() const; + void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); + std::string getExcludeResourceIdsScope() const; + void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); + +private: + std::string tagKeyScope_; + std::string compliancePackName_; + std::string clientToken_; + std::string description_; + std::string aggregatorId_; + std::string tagValueScope_; + std::string regionIdsScope_; + std::string compliancePackId_; + std::vector configRules_; + int riskLevel_; + std::string resourceGroupIdsScope_; + std::string excludeResourceIdsScope_; +}; +} // 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/UpdateAggregateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelRequest.h new file mode 100644 index 000000000..bab6be0f6 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelRequest.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_UPDATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateConfigDeliveryChannelRequest : public RpcServiceRequest { +public: + UpdateAggregateConfigDeliveryChannelRequest(); + ~UpdateAggregateConfigDeliveryChannelRequest(); + bool getNonCompliantNotification() const; + void setNonCompliantNotification(bool nonCompliantNotification); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getConfigurationSnapshot() const; + void setConfigurationSnapshot(bool configurationSnapshot); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getDeliveryChannelTargetArn() const; + void setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn); + std::string getDeliveryChannelCondition() const; + void setDeliveryChannelCondition(const std::string &deliveryChannelCondition); + bool getConfigurationItemChangeNotification() const; + void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); + std::string getDeliveryChannelName() const; + void setDeliveryChannelName(const std::string &deliveryChannelName); + std::string getDeliverySnapshotTime() const; + void setDeliverySnapshotTime(const std::string &deliverySnapshotTime); + std::string getDeliveryChannelId() const; + void setDeliveryChannelId(const std::string &deliveryChannelId); + std::string getOversizedDataOSSTargetArn() const; + void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); + long getStatus() const; + void setStatus(long status); + +private: + bool nonCompliantNotification_; + std::string clientToken_; + bool configurationSnapshot_; + std::string description_; + std::string aggregatorId_; + std::string deliveryChannelTargetArn_; + std::string deliveryChannelCondition_; + bool configurationItemChangeNotification_; + std::string deliveryChannelName_; + std::string deliverySnapshotTime_; + std::string deliveryChannelId_; + std::string oversizedDataOSSTargetArn_; + long status_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.h new file mode 100644 index 000000000..9f759f61d --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.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_UPDATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateConfigDeliveryChannelResult : public ServiceResult + { + public: + + + UpdateAggregateConfigDeliveryChannelResult(); + explicit UpdateAggregateConfigDeliveryChannelResult(const std::string &payload); + ~UpdateAggregateConfigDeliveryChannelResult(); + std::string getDeliveryChannelId()const; + + protected: + void parse(const std::string &payload); + private: + std::string deliveryChannelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELRESULT_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..3f59b8c0b --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 getExcludeAccountIdsScope() const; + void setExcludeAccountIdsScope(const std::string &excludeAccountIdsScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + std::string getExcludeFolderIdsScope() const; + void setExcludeFolderIdsScope(const std::string &excludeFolderIdsScope); + 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 getTagKeyLogicScope() const; + void setTagKeyLogicScope(const std::string &tagKeyLogicScope); + std::string getMaximumExecutionFrequency() const; + void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); + std::string getFolderIdsScope() const; + void setFolderIdsScope(const std::string &folderIdsScope); + 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 excludeAccountIdsScope_; + std::string regionIdsScope_; + std::string excludeFolderIdsScope_; + int riskLevel_; + std::string resourceGroupIdsScope_; + std::string inputParameters_; + std::string configRuleName_; + std::string tagKeyLogicScope_; + std::string maximumExecutionFrequency_; + std::string folderIdsScope_; + 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/UpdateAggregateRemediationRequest.h b/config/include/alibabacloud/config/model/UpdateAggregateRemediationRequest.h new file mode 100644 index 000000000..cd0328d65 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateRemediationRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateRemediationRequest : public RpcServiceRequest { +public: + UpdateAggregateRemediationRequest(); + ~UpdateAggregateRemediationRequest(); + std::string getRemediationType() const; + void setRemediationType(const std::string &remediationType); + std::string getRemediationId() const; + void setRemediationId(const std::string &remediationId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getRemediationTemplateId() const; + void setRemediationTemplateId(const std::string &remediationTemplateId); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getInvokeType() const; + void setInvokeType(const std::string &invokeType); + +private: + std::string remediationType_; + std::string remediationId_; + std::string aggregatorId_; + std::string sourceType_; + std::string remediationTemplateId_; + std::string params_; + std::string invokeType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregateRemediationResult.h b/config/include/alibabacloud/config/model/UpdateAggregateRemediationResult.h new file mode 100644 index 000000000..34bdc68a5 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateRemediationResult.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_UPDATEAGGREGATEREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateRemediationResult : public ServiceResult + { + public: + + + UpdateAggregateRemediationResult(); + explicit UpdateAggregateRemediationResult(const std::string &payload); + ~UpdateAggregateRemediationResult(); + std::string getRemediationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string remediationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONRESULT_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..2a6aff2cb --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateCompliancePackRequest.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_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 getTagKeyScope() const; + void setTagKeyScope(const std::string &tagKeyScope); + 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 getTagValueScope() const; + void setTagValueScope(const std::string &tagValueScope); + std::string getRegionIdsScope() const; + void setRegionIdsScope(const std::string ®ionIdsScope); + 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); + std::string getResourceGroupIdsScope() const; + void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); + std::string getExcludeResourceIdsScope() const; + void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); + +private: + std::string tagKeyScope_; + std::string compliancePackName_; + std::string clientToken_; + std::string description_; + std::string tagValueScope_; + std::string regionIdsScope_; + std::string compliancePackId_; + std::vector configRules_; + int riskLevel_; + std::string resourceGroupIdsScope_; + std::string excludeResourceIdsScope_; +}; +} // 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/UpdateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelRequest.h new file mode 100644 index 000000000..6d7941ede --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigDeliveryChannelRequest : public RpcServiceRequest { +public: + UpdateConfigDeliveryChannelRequest(); + ~UpdateConfigDeliveryChannelRequest(); + bool getNonCompliantNotification() const; + void setNonCompliantNotification(bool nonCompliantNotification); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getConfigurationSnapshot() const; + void setConfigurationSnapshot(bool configurationSnapshot); + 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); + bool getConfigurationItemChangeNotification() const; + void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); + std::string getDeliveryChannelName() const; + void setDeliveryChannelName(const std::string &deliveryChannelName); + std::string getDeliverySnapshotTime() const; + void setDeliverySnapshotTime(const std::string &deliverySnapshotTime); + std::string getDeliveryChannelId() const; + void setDeliveryChannelId(const std::string &deliveryChannelId); + std::string getOversizedDataOSSTargetArn() const; + void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); + long getStatus() const; + void setStatus(long status); + +private: + bool nonCompliantNotification_; + std::string clientToken_; + bool configurationSnapshot_; + std::string description_; + std::string deliveryChannelTargetArn_; + std::string deliveryChannelCondition_; + bool configurationItemChangeNotification_; + std::string deliveryChannelName_; + std::string deliverySnapshotTime_; + std::string deliveryChannelId_; + std::string oversizedDataOSSTargetArn_; + long status_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelResult.h new file mode 100644 index 000000000..86c9d3f68 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelResult.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_UPDATECONFIGDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigDeliveryChannelResult : public ServiceResult + { + public: + + + UpdateConfigDeliveryChannelResult(); + explicit UpdateConfigDeliveryChannelResult(const std::string &payload); + ~UpdateConfigDeliveryChannelResult(); + std::string getDeliveryChannelId()const; + + protected: + void parse(const std::string &payload); + private: + std::string deliveryChannelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELRESULT_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..2bc8ad9ed --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateConfigRuleRequest.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_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 getTagKeyLogicScope() const; + void setTagKeyLogicScope(const std::string &tagKeyLogicScope); + 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 tagKeyLogicScope_; + 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/include/alibabacloud/config/model/PutConfigurationRecorderRequest.h b/config/include/alibabacloud/config/model/UpdateConfigurationRecorderRequest.h similarity index 71% rename from config/include/alibabacloud/config/model/PutConfigurationRecorderRequest.h rename to config/include/alibabacloud/config/model/UpdateConfigurationRecorderRequest.h index 9f01ce2e9..f9fc48dc1 100644 --- a/config/include/alibabacloud/config/model/PutConfigurationRecorderRequest.h +++ b/config/include/alibabacloud/config/model/UpdateConfigurationRecorderRequest.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_UPDATECONFIGURATIONRECORDERREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGURATIONRECORDERREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigurationRecorderRequest : public RpcServiceRequest { public: - PutConfigurationRecorderRequest(); - ~PutConfigurationRecorderRequest(); + UpdateConfigurationRecorderRequest(); + ~UpdateConfigurationRecorderRequest(); std::string getResourceTypes() const; void setResourceTypes(const std::string &resourceTypes); @@ -39,4 +39,4 @@ private: } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGURATIONRECORDERREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h b/config/include/alibabacloud/config/model/UpdateConfigurationRecorderResult.h similarity index 67% rename from config/include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h rename to config/include/alibabacloud/config/model/UpdateConfigurationRecorderResult.h index 07761d45f..67ad04b00 100644 --- a/config/include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h +++ b/config/include/alibabacloud/config/model/UpdateConfigurationRecorderResult.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_UPDATECONFIGURATIONRECORDERRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGURATIONRECORDERRESULT_H_ #include #include @@ -29,22 +29,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigurationRecorderResult : public ServiceResult { public: struct ConfigurationRecorder { std::string configurationRecorderStatus; std::vector resourceTypes; - long accountId; - long organizationMasterId; - std::string organizationEnableStatus; }; - DescribeConfigurationRecorderResult(); - explicit DescribeConfigurationRecorderResult(const std::string &payload); - ~DescribeConfigurationRecorderResult(); + UpdateConfigurationRecorderResult(); + explicit UpdateConfigurationRecorderResult(const std::string &payload); + ~UpdateConfigurationRecorderResult(); ConfigurationRecorder getConfigurationRecorder()const; protected: @@ -56,4 +53,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGURATIONRECORDERRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/UpdateDeliveryChannelRequest.h new file mode 100644 index 000000000..d6fcda021 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateDeliveryChannelRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEDELIVERYCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateDeliveryChannelRequest : public RpcServiceRequest { +public: + UpdateDeliveryChannelRequest(); + ~UpdateDeliveryChannelRequest(); + bool getNonCompliantNotification() const; + void setNonCompliantNotification(bool nonCompliantNotification); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getConfigurationSnapshot() const; + void setConfigurationSnapshot(bool configurationSnapshot); + 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); + bool getConfigurationItemChangeNotification() const; + void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); + 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 getOversizedDataOSSTargetArn() const; + void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); + long getStatus() const; + void setStatus(long status); + +private: + bool nonCompliantNotification_; + std::string clientToken_; + bool configurationSnapshot_; + std::string description_; + std::string deliveryChannelTargetArn_; + std::string deliveryChannelCondition_; + bool configurationItemChangeNotification_; + std::string deliveryChannelAssumeRoleArn_; + std::string deliveryChannelName_; + std::string deliveryChannelId_; + std::string oversizedDataOSSTargetArn_; + long status_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateDeliveryChannelResult.h b/config/include/alibabacloud/config/model/UpdateDeliveryChannelResult.h new file mode 100644 index 000000000..e95d94e66 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateDeliveryChannelResult.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_UPDATEDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEDELIVERYCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateDeliveryChannelResult : public ServiceResult + { + public: + + + UpdateDeliveryChannelResult(); + explicit UpdateDeliveryChannelResult(const std::string &payload); + ~UpdateDeliveryChannelResult(); + std::string getDeliveryChannelId()const; + + protected: + void parse(const std::string &payload); + private: + std::string deliveryChannelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEDELIVERYCHANNELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateIntegratedServiceStatusRequest.h b/config/include/alibabacloud/config/model/UpdateIntegratedServiceStatusRequest.h new file mode 100644 index 000000000..4aedccbb4 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateIntegratedServiceStatusRequest.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_UPDATEINTEGRATEDSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEINTEGRATEDSERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateIntegratedServiceStatusRequest : public RpcServiceRequest { +public: + UpdateIntegratedServiceStatusRequest(); + ~UpdateIntegratedServiceStatusRequest(); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + bool getStatus() const; + void setStatus(bool status); + +private: + std::string serviceCode_; + bool status_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEINTEGRATEDSERVICESTATUSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateIntegratedServiceStatusResult.h b/config/include/alibabacloud/config/model/UpdateIntegratedServiceStatusResult.h new file mode 100644 index 000000000..6ce7e6273 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateIntegratedServiceStatusResult.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_UPDATEINTEGRATEDSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEINTEGRATEDSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateIntegratedServiceStatusResult : public ServiceResult + { + public: + + + UpdateIntegratedServiceStatusResult(); + explicit UpdateIntegratedServiceStatusResult(const std::string &payload); + ~UpdateIntegratedServiceStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEINTEGRATEDSERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateRemediationRequest.h b/config/include/alibabacloud/config/model/UpdateRemediationRequest.h new file mode 100644 index 000000000..8280d145d --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateRemediationRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateRemediationRequest : public RpcServiceRequest { +public: + UpdateRemediationRequest(); + ~UpdateRemediationRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getRemediationType() const; + void setRemediationType(const std::string &remediationType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRemediationId() const; + void setRemediationId(const std::string &remediationId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getRemediationTemplateId() const; + void setRemediationTemplateId(const std::string &remediationTemplateId); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getInvokeType() const; + void setInvokeType(const std::string &invokeType); + +private: + std::string configRuleId_; + std::string remediationType_; + std::string clientToken_; + std::string remediationId_; + std::string sourceType_; + std::string remediationTemplateId_; + std::string params_; + std::string invokeType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateRemediationResult.h b/config/include/alibabacloud/config/model/UpdateRemediationResult.h new file mode 100644 index 000000000..2425117df --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateRemediationResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateRemediationResult : public ServiceResult + { + public: + + + UpdateRemediationResult(); + explicit UpdateRemediationResult(const std::string &payload); + ~UpdateRemediationResult(); + std::string getRemediationId()const; + std::string getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string remediationId_; + std::string data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEREMEDIATIONRESULT_H_ \ No newline at end of file diff --git a/config/src/ConfigClient.cc b/config/src/ConfigClient.cc index 58177e892..651ae9be0 100644 --- a/config/src/ConfigClient.cc +++ b/config/src/ConfigClient.cc @@ -51,6 +51,42 @@ ConfigClient::ConfigClient(const std::string & accessKeyId, const std::string & ConfigClient::~ConfigClient() {} +ConfigClient::ActiveAggregateConfigRulesOutcome ConfigClient::activeAggregateConfigRules(const ActiveAggregateConfigRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActiveAggregateConfigRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActiveAggregateConfigRulesOutcome(ActiveAggregateConfigRulesResult(outcome.result())); + else + return ActiveAggregateConfigRulesOutcome(outcome.error()); +} + +void ConfigClient::activeAggregateConfigRulesAsync(const ActiveAggregateConfigRulesRequest& request, const ActiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activeAggregateConfigRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ActiveAggregateConfigRulesOutcomeCallable ConfigClient::activeAggregateConfigRulesCallable(const ActiveAggregateConfigRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activeAggregateConfigRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::ActiveConfigRulesOutcome ConfigClient::activeConfigRules(const ActiveConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,6 +123,906 @@ ConfigClient::ActiveConfigRulesOutcomeCallable ConfigClient::activeConfigRulesCa return task->get_future(); } +ConfigClient::AttachAggregateConfigRuleToCompliancePackOutcome ConfigClient::attachAggregateConfigRuleToCompliancePack(const AttachAggregateConfigRuleToCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachAggregateConfigRuleToCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachAggregateConfigRuleToCompliancePackOutcome(AttachAggregateConfigRuleToCompliancePackResult(outcome.result())); + else + return AttachAggregateConfigRuleToCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::attachAggregateConfigRuleToCompliancePackAsync(const AttachAggregateConfigRuleToCompliancePackRequest& request, const AttachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachAggregateConfigRuleToCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::AttachAggregateConfigRuleToCompliancePackOutcomeCallable ConfigClient::attachAggregateConfigRuleToCompliancePackCallable(const AttachAggregateConfigRuleToCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachAggregateConfigRuleToCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::AttachConfigRuleToCompliancePackOutcome ConfigClient::attachConfigRuleToCompliancePack(const AttachConfigRuleToCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachConfigRuleToCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachConfigRuleToCompliancePackOutcome(AttachConfigRuleToCompliancePackResult(outcome.result())); + else + return AttachConfigRuleToCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::attachConfigRuleToCompliancePackAsync(const AttachConfigRuleToCompliancePackRequest& request, const AttachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachConfigRuleToCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::AttachConfigRuleToCompliancePackOutcomeCallable ConfigClient::attachConfigRuleToCompliancePackCallable(const AttachConfigRuleToCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachConfigRuleToCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CopyCompliancePacksOutcome ConfigClient::copyCompliancePacks(const CopyCompliancePacksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CopyCompliancePacksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CopyCompliancePacksOutcome(CopyCompliancePacksResult(outcome.result())); + else + return CopyCompliancePacksOutcome(outcome.error()); +} + +void ConfigClient::copyCompliancePacksAsync(const CopyCompliancePacksRequest& request, const CopyCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, copyCompliancePacks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CopyCompliancePacksOutcomeCallable ConfigClient::copyCompliancePacksCallable(const CopyCompliancePacksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->copyCompliancePacks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CopyConfigRulesOutcome ConfigClient::copyConfigRules(const CopyConfigRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CopyConfigRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CopyConfigRulesOutcome(CopyConfigRulesResult(outcome.result())); + else + return CopyConfigRulesOutcome(outcome.error()); +} + +void ConfigClient::copyConfigRulesAsync(const CopyConfigRulesRequest& request, const CopyConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, copyConfigRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CopyConfigRulesOutcomeCallable ConfigClient::copyConfigRulesCallable(const CopyConfigRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->copyConfigRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateAdvancedSearchFileOutcome ConfigClient::createAdvancedSearchFile(const CreateAdvancedSearchFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAdvancedSearchFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAdvancedSearchFileOutcome(CreateAdvancedSearchFileResult(outcome.result())); + else + return CreateAdvancedSearchFileOutcome(outcome.error()); +} + +void ConfigClient::createAdvancedSearchFileAsync(const CreateAdvancedSearchFileRequest& request, const CreateAdvancedSearchFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAdvancedSearchFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateAdvancedSearchFileOutcomeCallable ConfigClient::createAdvancedSearchFileCallable(const CreateAdvancedSearchFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAdvancedSearchFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateAggregateAdvancedSearchFileOutcome ConfigClient::createAggregateAdvancedSearchFile(const CreateAggregateAdvancedSearchFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAggregateAdvancedSearchFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAggregateAdvancedSearchFileOutcome(CreateAggregateAdvancedSearchFileResult(outcome.result())); + else + return CreateAggregateAdvancedSearchFileOutcome(outcome.error()); +} + +void ConfigClient::createAggregateAdvancedSearchFileAsync(const CreateAggregateAdvancedSearchFileRequest& request, const CreateAggregateAdvancedSearchFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAggregateAdvancedSearchFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateAggregateAdvancedSearchFileOutcomeCallable ConfigClient::createAggregateAdvancedSearchFileCallable(const CreateAggregateAdvancedSearchFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAggregateAdvancedSearchFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateAggregateCompliancePackOutcome ConfigClient::createAggregateCompliancePack(const CreateAggregateCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAggregateCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAggregateCompliancePackOutcome(CreateAggregateCompliancePackResult(outcome.result())); + else + return CreateAggregateCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::createAggregateCompliancePackAsync(const CreateAggregateCompliancePackRequest& request, const CreateAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAggregateCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateAggregateCompliancePackOutcomeCallable ConfigClient::createAggregateCompliancePackCallable(const CreateAggregateCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAggregateCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateAggregateConfigDeliveryChannelOutcome ConfigClient::createAggregateConfigDeliveryChannel(const CreateAggregateConfigDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAggregateConfigDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAggregateConfigDeliveryChannelOutcome(CreateAggregateConfigDeliveryChannelResult(outcome.result())); + else + return CreateAggregateConfigDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::createAggregateConfigDeliveryChannelAsync(const CreateAggregateConfigDeliveryChannelRequest& request, const CreateAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAggregateConfigDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateAggregateConfigDeliveryChannelOutcomeCallable ConfigClient::createAggregateConfigDeliveryChannelCallable(const CreateAggregateConfigDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAggregateConfigDeliveryChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateAggregateConfigRuleOutcome ConfigClient::createAggregateConfigRule(const CreateAggregateConfigRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAggregateConfigRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAggregateConfigRuleOutcome(CreateAggregateConfigRuleResult(outcome.result())); + else + return CreateAggregateConfigRuleOutcome(outcome.error()); +} + +void ConfigClient::createAggregateConfigRuleAsync(const CreateAggregateConfigRuleRequest& request, const CreateAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAggregateConfigRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateAggregateConfigRuleOutcomeCallable ConfigClient::createAggregateConfigRuleCallable(const CreateAggregateConfigRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAggregateConfigRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateAggregateRemediationOutcome ConfigClient::createAggregateRemediation(const CreateAggregateRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAggregateRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAggregateRemediationOutcome(CreateAggregateRemediationResult(outcome.result())); + else + return CreateAggregateRemediationOutcome(outcome.error()); +} + +void ConfigClient::createAggregateRemediationAsync(const CreateAggregateRemediationRequest& request, const CreateAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAggregateRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateAggregateRemediationOutcomeCallable ConfigClient::createAggregateRemediationCallable(const CreateAggregateRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAggregateRemediation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateAggregatorOutcome ConfigClient::createAggregator(const CreateAggregatorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAggregatorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAggregatorOutcome(CreateAggregatorResult(outcome.result())); + else + return CreateAggregatorOutcome(outcome.error()); +} + +void ConfigClient::createAggregatorAsync(const CreateAggregatorRequest& request, const CreateAggregatorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAggregator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateAggregatorOutcomeCallable ConfigClient::createAggregatorCallable(const CreateAggregatorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAggregator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateCompliancePackOutcome ConfigClient::createCompliancePack(const CreateCompliancePackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCompliancePackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCompliancePackOutcome(CreateCompliancePackResult(outcome.result())); + else + return CreateCompliancePackOutcome(outcome.error()); +} + +void ConfigClient::createCompliancePackAsync(const CreateCompliancePackRequest& request, const CreateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCompliancePack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateCompliancePackOutcomeCallable ConfigClient::createCompliancePackCallable(const CreateCompliancePackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCompliancePack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateConfigDeliveryChannelOutcome ConfigClient::createConfigDeliveryChannel(const CreateConfigDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateConfigDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateConfigDeliveryChannelOutcome(CreateConfigDeliveryChannelResult(outcome.result())); + else + return CreateConfigDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::createConfigDeliveryChannelAsync(const CreateConfigDeliveryChannelRequest& request, const CreateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createConfigDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateConfigDeliveryChannelOutcomeCallable ConfigClient::createConfigDeliveryChannelCallable(const CreateConfigDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createConfigDeliveryChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateConfigRuleOutcome ConfigClient::createConfigRule(const CreateConfigRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateConfigRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateConfigRuleOutcome(CreateConfigRuleResult(outcome.result())); + else + return CreateConfigRuleOutcome(outcome.error()); +} + +void ConfigClient::createConfigRuleAsync(const CreateConfigRuleRequest& request, const CreateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createConfigRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateConfigRuleOutcomeCallable ConfigClient::createConfigRuleCallable(const CreateConfigRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createConfigRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateDeliveryChannelOutcome ConfigClient::createDeliveryChannel(const CreateDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDeliveryChannelOutcome(CreateDeliveryChannelResult(outcome.result())); + else + return CreateDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::createDeliveryChannelAsync(const CreateDeliveryChannelRequest& request, const CreateDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateDeliveryChannelOutcomeCallable ConfigClient::createDeliveryChannelCallable(const CreateDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDeliveryChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::CreateRemediationOutcome ConfigClient::createRemediation(const CreateRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRemediationOutcome(CreateRemediationResult(outcome.result())); + else + return CreateRemediationOutcome(outcome.error()); +} + +void ConfigClient::createRemediationAsync(const CreateRemediationRequest& request, const CreateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateRemediationOutcomeCallable ConfigClient::createRemediationCallable(const CreateRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRemediation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DeactiveAggregateConfigRulesOutcome ConfigClient::deactiveAggregateConfigRules(const DeactiveAggregateConfigRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeactiveAggregateConfigRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeactiveAggregateConfigRulesOutcome(DeactiveAggregateConfigRulesResult(outcome.result())); + else + return DeactiveAggregateConfigRulesOutcome(outcome.error()); +} + +void ConfigClient::deactiveAggregateConfigRulesAsync(const DeactiveAggregateConfigRulesRequest& request, const DeactiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deactiveAggregateConfigRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeactiveAggregateConfigRulesOutcomeCallable ConfigClient::deactiveAggregateConfigRulesCallable(const DeactiveAggregateConfigRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deactiveAggregateConfigRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DeactiveConfigRulesOutcome ConfigClient::deactiveConfigRules(const DeactiveConfigRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeactiveConfigRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeactiveConfigRulesOutcome(DeactiveConfigRulesResult(outcome.result())); + else + return DeactiveConfigRulesOutcome(outcome.error()); +} + +void ConfigClient::deactiveConfigRulesAsync(const DeactiveConfigRulesRequest& request, const DeactiveConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deactiveConfigRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeactiveConfigRulesOutcomeCallable ConfigClient::deactiveConfigRulesCallable(const DeactiveConfigRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deactiveConfigRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DeleteAggregateCompliancePacksOutcome ConfigClient::deleteAggregateCompliancePacks(const DeleteAggregateCompliancePacksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAggregateCompliancePacksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAggregateCompliancePacksOutcome(DeleteAggregateCompliancePacksResult(outcome.result())); + else + return DeleteAggregateCompliancePacksOutcome(outcome.error()); +} + +void ConfigClient::deleteAggregateCompliancePacksAsync(const DeleteAggregateCompliancePacksRequest& request, const DeleteAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAggregateCompliancePacks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeleteAggregateCompliancePacksOutcomeCallable ConfigClient::deleteAggregateCompliancePacksCallable(const DeleteAggregateCompliancePacksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAggregateCompliancePacks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DeleteAggregateConfigDeliveryChannelOutcome ConfigClient::deleteAggregateConfigDeliveryChannel(const DeleteAggregateConfigDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAggregateConfigDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAggregateConfigDeliveryChannelOutcome(DeleteAggregateConfigDeliveryChannelResult(outcome.result())); + else + return DeleteAggregateConfigDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::deleteAggregateConfigDeliveryChannelAsync(const DeleteAggregateConfigDeliveryChannelRequest& request, const DeleteAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAggregateConfigDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeleteAggregateConfigDeliveryChannelOutcomeCallable ConfigClient::deleteAggregateConfigDeliveryChannelCallable(const DeleteAggregateConfigDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAggregateConfigDeliveryChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DeleteAggregateConfigRulesOutcome ConfigClient::deleteAggregateConfigRules(const DeleteAggregateConfigRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAggregateConfigRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAggregateConfigRulesOutcome(DeleteAggregateConfigRulesResult(outcome.result())); + else + return DeleteAggregateConfigRulesOutcome(outcome.error()); +} + +void ConfigClient::deleteAggregateConfigRulesAsync(const DeleteAggregateConfigRulesRequest& request, const DeleteAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAggregateConfigRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeleteAggregateConfigRulesOutcomeCallable ConfigClient::deleteAggregateConfigRulesCallable(const DeleteAggregateConfigRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAggregateConfigRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::DeleteAggregateRemediationsOutcome ConfigClient::deleteAggregateRemediations(const DeleteAggregateRemediationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAggregateRemediationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAggregateRemediationsOutcome(DeleteAggregateRemediationsResult(outcome.result())); + else + return DeleteAggregateRemediationsOutcome(outcome.error()); +} + +void ConfigClient::deleteAggregateRemediationsAsync(const DeleteAggregateRemediationsRequest& request, const DeleteAggregateRemediationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAggregateRemediations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeleteAggregateRemediationsOutcomeCallable ConfigClient::deleteAggregateRemediationsCallable(const DeleteAggregateRemediationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAggregateRemediations(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::DeleteConfigDeliveryChannelOutcome ConfigClient::deleteConfigDeliveryChannel(const DeleteConfigDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteConfigDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteConfigDeliveryChannelOutcome(DeleteConfigDeliveryChannelResult(outcome.result())); + else + return DeleteConfigDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::deleteConfigDeliveryChannelAsync(const DeleteConfigDeliveryChannelRequest& request, const DeleteConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteConfigDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeleteConfigDeliveryChannelOutcomeCallable ConfigClient::deleteConfigDeliveryChannelCallable(const DeleteConfigDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteConfigDeliveryChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::DeleteConfigRulesOutcome ConfigClient::deleteConfigRules(const DeleteConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,252 +1059,756 @@ ConfigClient::DeleteConfigRulesOutcomeCallable ConfigClient::deleteConfigRulesCa return task->get_future(); } -ConfigClient::DescribeComplianceOutcome ConfigClient::describeCompliance(const DescribeComplianceRequest &request) const +ConfigClient::DeleteRemediationsOutcome ConfigClient::deleteRemediations(const DeleteRemediationsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeComplianceOutcome(endpointOutcome.error()); + return DeleteRemediationsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeComplianceOutcome(DescribeComplianceResult(outcome.result())); + return DeleteRemediationsOutcome(DeleteRemediationsResult(outcome.result())); else - return DescribeComplianceOutcome(outcome.error()); + return DeleteRemediationsOutcome(outcome.error()); } -void ConfigClient::describeComplianceAsync(const DescribeComplianceRequest& request, const DescribeComplianceAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::deleteRemediationsAsync(const DeleteRemediationsRequest& request, const DeleteRemediationsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCompliance(request), context); + handler(this, request, deleteRemediations(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeComplianceOutcomeCallable ConfigClient::describeComplianceCallable(const DescribeComplianceRequest &request) const +ConfigClient::DeleteRemediationsOutcomeCallable ConfigClient::deleteRemediationsCallable(const DeleteRemediationsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCompliance(request); + return this->deleteRemediations(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeComplianceSummaryOutcome ConfigClient::describeComplianceSummary(const DescribeComplianceSummaryRequest &request) const +ConfigClient::DetachAggregateConfigRuleToCompliancePackOutcome ConfigClient::detachAggregateConfigRuleToCompliancePack(const DetachAggregateConfigRuleToCompliancePackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeComplianceSummaryOutcome(endpointOutcome.error()); + return DetachAggregateConfigRuleToCompliancePackOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeComplianceSummaryOutcome(DescribeComplianceSummaryResult(outcome.result())); + return DetachAggregateConfigRuleToCompliancePackOutcome(DetachAggregateConfigRuleToCompliancePackResult(outcome.result())); else - return DescribeComplianceSummaryOutcome(outcome.error()); + return DetachAggregateConfigRuleToCompliancePackOutcome(outcome.error()); } -void ConfigClient::describeComplianceSummaryAsync(const DescribeComplianceSummaryRequest& request, const DescribeComplianceSummaryAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::detachAggregateConfigRuleToCompliancePackAsync(const DetachAggregateConfigRuleToCompliancePackRequest& request, const DetachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeComplianceSummary(request), context); + handler(this, request, detachAggregateConfigRuleToCompliancePack(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeComplianceSummaryOutcomeCallable ConfigClient::describeComplianceSummaryCallable(const DescribeComplianceSummaryRequest &request) const +ConfigClient::DetachAggregateConfigRuleToCompliancePackOutcomeCallable ConfigClient::detachAggregateConfigRuleToCompliancePackCallable(const DetachAggregateConfigRuleToCompliancePackRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeComplianceSummary(request); + return this->detachAggregateConfigRuleToCompliancePack(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeConfigRuleOutcome ConfigClient::describeConfigRule(const DescribeConfigRuleRequest &request) const +ConfigClient::DetachConfigRuleToCompliancePackOutcome ConfigClient::detachConfigRuleToCompliancePack(const DetachConfigRuleToCompliancePackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeConfigRuleOutcome(endpointOutcome.error()); + return DetachConfigRuleToCompliancePackOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeConfigRuleOutcome(DescribeConfigRuleResult(outcome.result())); + return DetachConfigRuleToCompliancePackOutcome(DetachConfigRuleToCompliancePackResult(outcome.result())); else - return DescribeConfigRuleOutcome(outcome.error()); + return DetachConfigRuleToCompliancePackOutcome(outcome.error()); } -void ConfigClient::describeConfigRuleAsync(const DescribeConfigRuleRequest& request, const DescribeConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::detachConfigRuleToCompliancePackAsync(const DetachConfigRuleToCompliancePackRequest& request, const DetachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeConfigRule(request), context); + handler(this, request, detachConfigRuleToCompliancePack(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeConfigRuleOutcomeCallable ConfigClient::describeConfigRuleCallable(const DescribeConfigRuleRequest &request) const +ConfigClient::DetachConfigRuleToCompliancePackOutcomeCallable ConfigClient::detachConfigRuleToCompliancePackCallable(const DetachConfigRuleToCompliancePackRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeConfigRule(request); + return this->detachConfigRuleToCompliancePack(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeConfigurationRecorderOutcome ConfigClient::describeConfigurationRecorder(const DescribeConfigurationRecorderRequest &request) const +ConfigClient::EvaluatePreConfigRulesOutcome ConfigClient::evaluatePreConfigRules(const EvaluatePreConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeConfigurationRecorderOutcome(endpointOutcome.error()); + return EvaluatePreConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeConfigurationRecorderOutcome(DescribeConfigurationRecorderResult(outcome.result())); + return EvaluatePreConfigRulesOutcome(EvaluatePreConfigRulesResult(outcome.result())); else - return DescribeConfigurationRecorderOutcome(outcome.error()); + return EvaluatePreConfigRulesOutcome(outcome.error()); } -void ConfigClient::describeConfigurationRecorderAsync(const DescribeConfigurationRecorderRequest& request, const DescribeConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::evaluatePreConfigRulesAsync(const EvaluatePreConfigRulesRequest& request, const EvaluatePreConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeConfigurationRecorder(request), context); + handler(this, request, evaluatePreConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeConfigurationRecorderOutcomeCallable ConfigClient::describeConfigurationRecorderCallable(const DescribeConfigurationRecorderRequest &request) const +ConfigClient::EvaluatePreConfigRulesOutcomeCallable ConfigClient::evaluatePreConfigRulesCallable(const EvaluatePreConfigRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeConfigurationRecorder(request); + return this->evaluatePreConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeDeliveryChannelsOutcome ConfigClient::describeDeliveryChannels(const DescribeDeliveryChannelsRequest &request) const +ConfigClient::GenerateAggregateCompliancePackReportOutcome ConfigClient::generateAggregateCompliancePackReport(const GenerateAggregateCompliancePackReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDeliveryChannelsOutcome(endpointOutcome.error()); + return GenerateAggregateCompliancePackReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDeliveryChannelsOutcome(DescribeDeliveryChannelsResult(outcome.result())); + return GenerateAggregateCompliancePackReportOutcome(GenerateAggregateCompliancePackReportResult(outcome.result())); else - return DescribeDeliveryChannelsOutcome(outcome.error()); + return GenerateAggregateCompliancePackReportOutcome(outcome.error()); } -void ConfigClient::describeDeliveryChannelsAsync(const DescribeDeliveryChannelsRequest& request, const DescribeDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::generateAggregateCompliancePackReportAsync(const GenerateAggregateCompliancePackReportRequest& request, const GenerateAggregateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDeliveryChannels(request), context); + handler(this, request, generateAggregateCompliancePackReport(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeDeliveryChannelsOutcomeCallable ConfigClient::describeDeliveryChannelsCallable(const DescribeDeliveryChannelsRequest &request) const +ConfigClient::GenerateAggregateCompliancePackReportOutcomeCallable ConfigClient::generateAggregateCompliancePackReportCallable(const GenerateAggregateCompliancePackReportRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDeliveryChannels(request); + return this->generateAggregateCompliancePackReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeDiscoveredResourceOutcome ConfigClient::describeDiscoveredResource(const DescribeDiscoveredResourceRequest &request) const +ConfigClient::GenerateAggregateConfigRulesReportOutcome ConfigClient::generateAggregateConfigRulesReport(const GenerateAggregateConfigRulesReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDiscoveredResourceOutcome(endpointOutcome.error()); + return GenerateAggregateConfigRulesReportOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDiscoveredResourceOutcome(DescribeDiscoveredResourceResult(outcome.result())); + return GenerateAggregateConfigRulesReportOutcome(GenerateAggregateConfigRulesReportResult(outcome.result())); else - return DescribeDiscoveredResourceOutcome(outcome.error()); + return GenerateAggregateConfigRulesReportOutcome(outcome.error()); } -void ConfigClient::describeDiscoveredResourceAsync(const DescribeDiscoveredResourceRequest& request, const DescribeDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::generateAggregateConfigRulesReportAsync(const GenerateAggregateConfigRulesReportRequest& request, const GenerateAggregateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDiscoveredResource(request), context); + handler(this, request, generateAggregateConfigRulesReport(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeDiscoveredResourceOutcomeCallable ConfigClient::describeDiscoveredResourceCallable(const DescribeDiscoveredResourceRequest &request) const +ConfigClient::GenerateAggregateConfigRulesReportOutcomeCallable ConfigClient::generateAggregateConfigRulesReportCallable(const GenerateAggregateConfigRulesReportRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDiscoveredResource(request); + return this->generateAggregateConfigRulesReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::DescribeEvaluationResultsOutcome ConfigClient::describeEvaluationResults(const DescribeEvaluationResultsRequest &request) const +ConfigClient::GenerateAggregateResourceInventoryOutcome ConfigClient::generateAggregateResourceInventory(const GenerateAggregateResourceInventoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeEvaluationResultsOutcome(endpointOutcome.error()); + return GenerateAggregateResourceInventoryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeEvaluationResultsOutcome(DescribeEvaluationResultsResult(outcome.result())); + return GenerateAggregateResourceInventoryOutcome(GenerateAggregateResourceInventoryResult(outcome.result())); else - return DescribeEvaluationResultsOutcome(outcome.error()); + return GenerateAggregateResourceInventoryOutcome(outcome.error()); } -void ConfigClient::describeEvaluationResultsAsync(const DescribeEvaluationResultsRequest& request, const DescribeEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::generateAggregateResourceInventoryAsync(const GenerateAggregateResourceInventoryRequest& request, const GenerateAggregateResourceInventoryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeEvaluationResults(request), context); + handler(this, request, generateAggregateResourceInventory(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::DescribeEvaluationResultsOutcomeCallable ConfigClient::describeEvaluationResultsCallable(const DescribeEvaluationResultsRequest &request) const +ConfigClient::GenerateAggregateResourceInventoryOutcomeCallable ConfigClient::generateAggregateResourceInventoryCallable(const GenerateAggregateResourceInventoryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeEvaluationResults(request); + return this->generateAggregateResourceInventory(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::GenerateResourceInventoryOutcome ConfigClient::generateResourceInventory(const GenerateResourceInventoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateResourceInventoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateResourceInventoryOutcome(GenerateResourceInventoryResult(outcome.result())); + else + return GenerateResourceInventoryOutcome(outcome.error()); +} + +void ConfigClient::generateResourceInventoryAsync(const GenerateResourceInventoryRequest& request, const GenerateResourceInventoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateResourceInventory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GenerateResourceInventoryOutcomeCallable ConfigClient::generateResourceInventoryCallable(const GenerateResourceInventoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateResourceInventory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAdvancedSearchFileOutcome ConfigClient::getAdvancedSearchFile(const GetAdvancedSearchFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAdvancedSearchFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAdvancedSearchFileOutcome(GetAdvancedSearchFileResult(outcome.result())); + else + return GetAdvancedSearchFileOutcome(outcome.error()); +} + +void ConfigClient::getAdvancedSearchFileAsync(const GetAdvancedSearchFileRequest& request, const GetAdvancedSearchFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAdvancedSearchFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAdvancedSearchFileOutcomeCallable ConfigClient::getAdvancedSearchFileCallable(const GetAdvancedSearchFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAdvancedSearchFile(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::GetAggregateAdvancedSearchFileOutcome ConfigClient::getAggregateAdvancedSearchFile(const GetAggregateAdvancedSearchFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateAdvancedSearchFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateAdvancedSearchFileOutcome(GetAggregateAdvancedSearchFileResult(outcome.result())); + else + return GetAggregateAdvancedSearchFileOutcome(outcome.error()); +} + +void ConfigClient::getAggregateAdvancedSearchFileAsync(const GetAggregateAdvancedSearchFileRequest& request, const GetAggregateAdvancedSearchFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateAdvancedSearchFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateAdvancedSearchFileOutcomeCallable ConfigClient::getAggregateAdvancedSearchFileCallable(const GetAggregateAdvancedSearchFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateAdvancedSearchFile(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::GetAggregateComplianceSummaryOutcome ConfigClient::getAggregateComplianceSummary(const GetAggregateComplianceSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateComplianceSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateComplianceSummaryOutcome(GetAggregateComplianceSummaryResult(outcome.result())); + else + return GetAggregateComplianceSummaryOutcome(outcome.error()); +} + +void ConfigClient::getAggregateComplianceSummaryAsync(const GetAggregateComplianceSummaryRequest& request, const GetAggregateComplianceSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateComplianceSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateComplianceSummaryOutcomeCallable ConfigClient::getAggregateComplianceSummaryCallable(const GetAggregateComplianceSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateComplianceSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateConfigDeliveryChannelOutcome ConfigClient::getAggregateConfigDeliveryChannel(const GetAggregateConfigDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateConfigDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateConfigDeliveryChannelOutcome(GetAggregateConfigDeliveryChannelResult(outcome.result())); + else + return GetAggregateConfigDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::getAggregateConfigDeliveryChannelAsync(const GetAggregateConfigDeliveryChannelRequest& request, const GetAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateConfigDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateConfigDeliveryChannelOutcomeCallable ConfigClient::getAggregateConfigDeliveryChannelCallable(const GetAggregateConfigDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateConfigDeliveryChannel(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)(); })); @@ -411,72 +1851,1044 @@ ConfigClient::GetAggregateDiscoveredResourceOutcomeCallable ConfigClient::getAgg return task->get_future(); } -ConfigClient::GetDiscoveredResourceCountsOutcome ConfigClient::getDiscoveredResourceCounts(const GetDiscoveredResourceCountsRequest &request) const +ConfigClient::GetAggregateResourceComplianceByConfigRuleOutcome ConfigClient::getAggregateResourceComplianceByConfigRule(const GetAggregateResourceComplianceByConfigRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetDiscoveredResourceCountsOutcome(endpointOutcome.error()); + return GetAggregateResourceComplianceByConfigRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetDiscoveredResourceCountsOutcome(GetDiscoveredResourceCountsResult(outcome.result())); + return GetAggregateResourceComplianceByConfigRuleOutcome(GetAggregateResourceComplianceByConfigRuleResult(outcome.result())); else - return GetDiscoveredResourceCountsOutcome(outcome.error()); + return GetAggregateResourceComplianceByConfigRuleOutcome(outcome.error()); } -void ConfigClient::getDiscoveredResourceCountsAsync(const GetDiscoveredResourceCountsRequest& request, const GetDiscoveredResourceCountsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::getAggregateResourceComplianceByConfigRuleAsync(const GetAggregateResourceComplianceByConfigRuleRequest& request, const GetAggregateResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getDiscoveredResourceCounts(request), context); + handler(this, request, getAggregateResourceComplianceByConfigRule(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::GetDiscoveredResourceCountsOutcomeCallable ConfigClient::getDiscoveredResourceCountsCallable(const GetDiscoveredResourceCountsRequest &request) const +ConfigClient::GetAggregateResourceComplianceByConfigRuleOutcomeCallable ConfigClient::getAggregateResourceComplianceByConfigRuleCallable(const GetAggregateResourceComplianceByConfigRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getDiscoveredResourceCounts(request); + return this->getAggregateResourceComplianceByConfigRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::GetDiscoveredResourceSummaryOutcome ConfigClient::getDiscoveredResourceSummary(const GetDiscoveredResourceSummaryRequest &request) const +ConfigClient::GetAggregateResourceComplianceByPackOutcome ConfigClient::getAggregateResourceComplianceByPack(const GetAggregateResourceComplianceByPackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetDiscoveredResourceSummaryOutcome(endpointOutcome.error()); + return GetAggregateResourceComplianceByPackOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetDiscoveredResourceSummaryOutcome(GetDiscoveredResourceSummaryResult(outcome.result())); + return GetAggregateResourceComplianceByPackOutcome(GetAggregateResourceComplianceByPackResult(outcome.result())); else - return GetDiscoveredResourceSummaryOutcome(outcome.error()); + return GetAggregateResourceComplianceByPackOutcome(outcome.error()); } -void ConfigClient::getDiscoveredResourceSummaryAsync(const GetDiscoveredResourceSummaryRequest& request, const GetDiscoveredResourceSummaryAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::getAggregateResourceComplianceByPackAsync(const GetAggregateResourceComplianceByPackRequest& request, const GetAggregateResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getDiscoveredResourceSummary(request), context); + handler(this, request, getAggregateResourceComplianceByPack(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::GetDiscoveredResourceSummaryOutcomeCallable ConfigClient::getDiscoveredResourceSummaryCallable(const GetDiscoveredResourceSummaryRequest &request) const +ConfigClient::GetAggregateResourceComplianceByPackOutcomeCallable ConfigClient::getAggregateResourceComplianceByPackCallable(const GetAggregateResourceComplianceByPackRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getDiscoveredResourceSummary(request); + return this->getAggregateResourceComplianceByPack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateResourceComplianceGroupByRegionOutcome ConfigClient::getAggregateResourceComplianceGroupByRegion(const GetAggregateResourceComplianceGroupByRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateResourceComplianceGroupByRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateResourceComplianceGroupByRegionOutcome(GetAggregateResourceComplianceGroupByRegionResult(outcome.result())); + else + return GetAggregateResourceComplianceGroupByRegionOutcome(outcome.error()); +} + +void ConfigClient::getAggregateResourceComplianceGroupByRegionAsync(const GetAggregateResourceComplianceGroupByRegionRequest& request, const GetAggregateResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateResourceComplianceGroupByRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateResourceComplianceGroupByRegionOutcomeCallable ConfigClient::getAggregateResourceComplianceGroupByRegionCallable(const GetAggregateResourceComplianceGroupByRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateResourceComplianceGroupByRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetAggregateResourceComplianceGroupByResourceTypeOutcome ConfigClient::getAggregateResourceComplianceGroupByResourceType(const GetAggregateResourceComplianceGroupByResourceTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateResourceComplianceGroupByResourceTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateResourceComplianceGroupByResourceTypeOutcome(GetAggregateResourceComplianceGroupByResourceTypeResult(outcome.result())); + else + return GetAggregateResourceComplianceGroupByResourceTypeOutcome(outcome.error()); +} + +void ConfigClient::getAggregateResourceComplianceGroupByResourceTypeAsync(const GetAggregateResourceComplianceGroupByResourceTypeRequest& request, const GetAggregateResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateResourceComplianceGroupByResourceType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateResourceComplianceGroupByResourceTypeOutcomeCallable ConfigClient::getAggregateResourceComplianceGroupByResourceTypeCallable(const GetAggregateResourceComplianceGroupByResourceTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateResourceComplianceGroupByResourceType(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::GetAggregateResourceInventoryOutcome ConfigClient::getAggregateResourceInventory(const GetAggregateResourceInventoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAggregateResourceInventoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAggregateResourceInventoryOutcome(GetAggregateResourceInventoryResult(outcome.result())); + else + return GetAggregateResourceInventoryOutcome(outcome.error()); +} + +void ConfigClient::getAggregateResourceInventoryAsync(const GetAggregateResourceInventoryRequest& request, const GetAggregateResourceInventoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAggregateResourceInventory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetAggregateResourceInventoryOutcomeCallable ConfigClient::getAggregateResourceInventoryCallable(const GetAggregateResourceInventoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAggregateResourceInventory(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::GetComplianceSummaryOutcome ConfigClient::getComplianceSummary(const GetComplianceSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetComplianceSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetComplianceSummaryOutcome(GetComplianceSummaryResult(outcome.result())); + else + return GetComplianceSummaryOutcome(outcome.error()); +} + +void ConfigClient::getComplianceSummaryAsync(const GetComplianceSummaryRequest& request, const GetComplianceSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getComplianceSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetComplianceSummaryOutcomeCallable ConfigClient::getComplianceSummaryCallable(const GetComplianceSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getComplianceSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetConfigDeliveryChannelOutcome ConfigClient::getConfigDeliveryChannel(const GetConfigDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConfigDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConfigDeliveryChannelOutcome(GetConfigDeliveryChannelResult(outcome.result())); + else + return GetConfigDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::getConfigDeliveryChannelAsync(const GetConfigDeliveryChannelRequest& request, const GetConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConfigDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetConfigDeliveryChannelOutcomeCallable ConfigClient::getConfigDeliveryChannelCallable(const GetConfigDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConfigDeliveryChannel(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::GetConfigurationRecorderOutcome ConfigClient::getConfigurationRecorder(const GetConfigurationRecorderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConfigurationRecorderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConfigurationRecorderOutcome(GetConfigurationRecorderResult(outcome.result())); + else + return GetConfigurationRecorderOutcome(outcome.error()); +} + +void ConfigClient::getConfigurationRecorderAsync(const GetConfigurationRecorderRequest& request, const GetConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConfigurationRecorder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetConfigurationRecorderOutcomeCallable ConfigClient::getConfigurationRecorderCallable(const GetConfigurationRecorderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConfigurationRecorder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetDiscoveredResourceOutcome ConfigClient::getDiscoveredResource(const GetDiscoveredResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDiscoveredResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDiscoveredResourceOutcome(GetDiscoveredResourceResult(outcome.result())); + else + return GetDiscoveredResourceOutcome(outcome.error()); +} + +void ConfigClient::getDiscoveredResourceAsync(const GetDiscoveredResourceRequest& request, const GetDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDiscoveredResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetDiscoveredResourceOutcomeCallable ConfigClient::getDiscoveredResourceCallable(const GetDiscoveredResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDiscoveredResource(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::GetIntegratedServiceStatusOutcome ConfigClient::getIntegratedServiceStatus(const GetIntegratedServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetIntegratedServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetIntegratedServiceStatusOutcome(GetIntegratedServiceStatusResult(outcome.result())); + else + return GetIntegratedServiceStatusOutcome(outcome.error()); +} + +void ConfigClient::getIntegratedServiceStatusAsync(const GetIntegratedServiceStatusRequest& request, const GetIntegratedServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getIntegratedServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetIntegratedServiceStatusOutcomeCallable ConfigClient::getIntegratedServiceStatusCallable(const GetIntegratedServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getIntegratedServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetManagedRuleOutcome ConfigClient::getManagedRule(const GetManagedRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetManagedRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetManagedRuleOutcome(GetManagedRuleResult(outcome.result())); + else + return GetManagedRuleOutcome(outcome.error()); +} + +void ConfigClient::getManagedRuleAsync(const GetManagedRuleRequest& request, const GetManagedRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getManagedRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetManagedRuleOutcomeCallable ConfigClient::getManagedRuleCallable(const GetManagedRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getManagedRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetRemediationTemplateOutcome ConfigClient::getRemediationTemplate(const GetRemediationTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRemediationTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRemediationTemplateOutcome(GetRemediationTemplateResult(outcome.result())); + else + return GetRemediationTemplateOutcome(outcome.error()); +} + +void ConfigClient::getRemediationTemplateAsync(const GetRemediationTemplateRequest& request, const GetRemediationTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRemediationTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetRemediationTemplateOutcomeCallable ConfigClient::getRemediationTemplateCallable(const GetRemediationTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRemediationTemplate(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)(); })); + return task->get_future(); +} + +ConfigClient::GetResourceComplianceGroupByRegionOutcome ConfigClient::getResourceComplianceGroupByRegion(const GetResourceComplianceGroupByRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceComplianceGroupByRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceComplianceGroupByRegionOutcome(GetResourceComplianceGroupByRegionResult(outcome.result())); + else + return GetResourceComplianceGroupByRegionOutcome(outcome.error()); +} + +void ConfigClient::getResourceComplianceGroupByRegionAsync(const GetResourceComplianceGroupByRegionRequest& request, const GetResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceComplianceGroupByRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetResourceComplianceGroupByRegionOutcomeCallable ConfigClient::getResourceComplianceGroupByRegionCallable(const GetResourceComplianceGroupByRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceComplianceGroupByRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetResourceComplianceGroupByResourceTypeOutcome ConfigClient::getResourceComplianceGroupByResourceType(const GetResourceComplianceGroupByResourceTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceComplianceGroupByResourceTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceComplianceGroupByResourceTypeOutcome(GetResourceComplianceGroupByResourceTypeResult(outcome.result())); + else + return GetResourceComplianceGroupByResourceTypeOutcome(outcome.error()); +} + +void ConfigClient::getResourceComplianceGroupByResourceTypeAsync(const GetResourceComplianceGroupByResourceTypeRequest& request, const GetResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceComplianceGroupByResourceType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetResourceComplianceGroupByResourceTypeOutcomeCallable ConfigClient::getResourceComplianceGroupByResourceTypeCallable(const GetResourceComplianceGroupByResourceTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceComplianceGroupByResourceType(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -555,36 +2967,324 @@ ConfigClient::GetResourceConfigurationTimelineOutcomeCallable ConfigClient::getR return task->get_future(); } -ConfigClient::GetSupportedResourceTypesOutcome ConfigClient::getSupportedResourceTypes(const GetSupportedResourceTypesRequest &request) const +ConfigClient::GetResourceInventoryOutcome ConfigClient::getResourceInventory(const GetResourceInventoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetSupportedResourceTypesOutcome(endpointOutcome.error()); + return GetResourceInventoryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetSupportedResourceTypesOutcome(GetSupportedResourceTypesResult(outcome.result())); + return GetResourceInventoryOutcome(GetResourceInventoryResult(outcome.result())); else - return GetSupportedResourceTypesOutcome(outcome.error()); + return GetResourceInventoryOutcome(outcome.error()); } -void ConfigClient::getSupportedResourceTypesAsync(const GetSupportedResourceTypesRequest& request, const GetSupportedResourceTypesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::getResourceInventoryAsync(const GetResourceInventoryRequest& request, const GetResourceInventoryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getSupportedResourceTypes(request), context); + handler(this, request, getResourceInventory(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::GetSupportedResourceTypesOutcomeCallable ConfigClient::getSupportedResourceTypesCallable(const GetSupportedResourceTypesRequest &request) const +ConfigClient::GetResourceInventoryOutcomeCallable ConfigClient::getResourceInventoryCallable(const GetResourceInventoryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getSupportedResourceTypes(request); + return this->getResourceInventory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::GetSupportedResourceRelationConfigOutcome ConfigClient::getSupportedResourceRelationConfig(const GetSupportedResourceRelationConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSupportedResourceRelationConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSupportedResourceRelationConfigOutcome(GetSupportedResourceRelationConfigResult(outcome.result())); + else + return GetSupportedResourceRelationConfigOutcome(outcome.error()); +} + +void ConfigClient::getSupportedResourceRelationConfigAsync(const GetSupportedResourceRelationConfigRequest& request, const GetSupportedResourceRelationConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSupportedResourceRelationConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetSupportedResourceRelationConfigOutcomeCallable ConfigClient::getSupportedResourceRelationConfigCallable(const GetSupportedResourceRelationConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSupportedResourceRelationConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::IgnoreAggregateEvaluationResultsOutcome ConfigClient::ignoreAggregateEvaluationResults(const IgnoreAggregateEvaluationResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IgnoreAggregateEvaluationResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IgnoreAggregateEvaluationResultsOutcome(IgnoreAggregateEvaluationResultsResult(outcome.result())); + else + return IgnoreAggregateEvaluationResultsOutcome(outcome.error()); +} + +void ConfigClient::ignoreAggregateEvaluationResultsAsync(const IgnoreAggregateEvaluationResultsRequest& request, const IgnoreAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, ignoreAggregateEvaluationResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::IgnoreAggregateEvaluationResultsOutcomeCallable ConfigClient::ignoreAggregateEvaluationResultsCallable(const IgnoreAggregateEvaluationResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->ignoreAggregateEvaluationResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::IgnoreEvaluationResultsOutcome ConfigClient::ignoreEvaluationResults(const IgnoreEvaluationResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IgnoreEvaluationResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IgnoreEvaluationResultsOutcome(IgnoreEvaluationResultsResult(outcome.result())); + else + return IgnoreEvaluationResultsOutcome(outcome.error()); +} + +void ConfigClient::ignoreEvaluationResultsAsync(const IgnoreEvaluationResultsRequest& request, const IgnoreEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, ignoreEvaluationResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::IgnoreEvaluationResultsOutcomeCallable ConfigClient::ignoreEvaluationResultsCallable(const IgnoreEvaluationResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->ignoreEvaluationResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateCompliancePacksOutcome ConfigClient::listAggregateCompliancePacks(const ListAggregateCompliancePacksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateCompliancePacksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateCompliancePacksOutcome(ListAggregateCompliancePacksResult(outcome.result())); + else + return ListAggregateCompliancePacksOutcome(outcome.error()); +} + +void ConfigClient::listAggregateCompliancePacksAsync(const ListAggregateCompliancePacksRequest& request, const ListAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateCompliancePacks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateCompliancePacksOutcomeCallable ConfigClient::listAggregateCompliancePacksCallable(const ListAggregateCompliancePacksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateCompliancePacks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateConfigDeliveryChannelsOutcome ConfigClient::listAggregateConfigDeliveryChannels(const ListAggregateConfigDeliveryChannelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateConfigDeliveryChannelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateConfigDeliveryChannelsOutcome(ListAggregateConfigDeliveryChannelsResult(outcome.result())); + else + return ListAggregateConfigDeliveryChannelsOutcome(outcome.error()); +} + +void ConfigClient::listAggregateConfigDeliveryChannelsAsync(const ListAggregateConfigDeliveryChannelsRequest& request, const ListAggregateConfigDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateConfigDeliveryChannels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateConfigDeliveryChannelsOutcomeCallable ConfigClient::listAggregateConfigDeliveryChannelsCallable(const ListAggregateConfigDeliveryChannelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateConfigDeliveryChannels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateConfigRuleEvaluationResultsOutcome ConfigClient::listAggregateConfigRuleEvaluationResults(const ListAggregateConfigRuleEvaluationResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateConfigRuleEvaluationResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateConfigRuleEvaluationResultsOutcome(ListAggregateConfigRuleEvaluationResultsResult(outcome.result())); + else + return ListAggregateConfigRuleEvaluationResultsOutcome(outcome.error()); +} + +void ConfigClient::listAggregateConfigRuleEvaluationResultsAsync(const ListAggregateConfigRuleEvaluationResultsRequest& request, const ListAggregateConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateConfigRuleEvaluationResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateConfigRuleEvaluationResultsOutcomeCallable ConfigClient::listAggregateConfigRuleEvaluationResultsCallable(const ListAggregateConfigRuleEvaluationResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateConfigRuleEvaluationResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateConfigRuleEvaluationStatisticsOutcome ConfigClient::listAggregateConfigRuleEvaluationStatistics(const ListAggregateConfigRuleEvaluationStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateConfigRuleEvaluationStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateConfigRuleEvaluationStatisticsOutcome(ListAggregateConfigRuleEvaluationStatisticsResult(outcome.result())); + else + return ListAggregateConfigRuleEvaluationStatisticsOutcome(outcome.error()); +} + +void ConfigClient::listAggregateConfigRuleEvaluationStatisticsAsync(const ListAggregateConfigRuleEvaluationStatisticsRequest& request, const ListAggregateConfigRuleEvaluationStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateConfigRuleEvaluationStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateConfigRuleEvaluationStatisticsOutcomeCallable ConfigClient::listAggregateConfigRuleEvaluationStatisticsCallable(const ListAggregateConfigRuleEvaluationStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateConfigRuleEvaluationStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateConfigRulesOutcome ConfigClient::listAggregateConfigRules(const ListAggregateConfigRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateConfigRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateConfigRulesOutcome(ListAggregateConfigRulesResult(outcome.result())); + else + return ListAggregateConfigRulesOutcome(outcome.error()); +} + +void ConfigClient::listAggregateConfigRulesAsync(const ListAggregateConfigRulesRequest& request, const ListAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateConfigRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateConfigRulesOutcomeCallable ConfigClient::listAggregateConfigRulesCallable(const ListAggregateConfigRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -627,6 +3327,402 @@ ConfigClient::ListAggregateDiscoveredResourcesOutcomeCallable ConfigClient::list return task->get_future(); } +ConfigClient::ListAggregateRemediationExecutionsOutcome ConfigClient::listAggregateRemediationExecutions(const ListAggregateRemediationExecutionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateRemediationExecutionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateRemediationExecutionsOutcome(ListAggregateRemediationExecutionsResult(outcome.result())); + else + return ListAggregateRemediationExecutionsOutcome(outcome.error()); +} + +void ConfigClient::listAggregateRemediationExecutionsAsync(const ListAggregateRemediationExecutionsRequest& request, const ListAggregateRemediationExecutionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateRemediationExecutions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateRemediationExecutionsOutcomeCallable ConfigClient::listAggregateRemediationExecutionsCallable(const ListAggregateRemediationExecutionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateRemediationExecutions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateRemediationsOutcome ConfigClient::listAggregateRemediations(const ListAggregateRemediationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateRemediationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateRemediationsOutcome(ListAggregateRemediationsResult(outcome.result())); + else + return ListAggregateRemediationsOutcome(outcome.error()); +} + +void ConfigClient::listAggregateRemediationsAsync(const ListAggregateRemediationsRequest& request, const ListAggregateRemediationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateRemediations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateRemediationsOutcomeCallable ConfigClient::listAggregateRemediationsCallable(const ListAggregateRemediationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateRemediations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateResourceEvaluationResultsOutcome ConfigClient::listAggregateResourceEvaluationResults(const ListAggregateResourceEvaluationResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateResourceEvaluationResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateResourceEvaluationResultsOutcome(ListAggregateResourceEvaluationResultsResult(outcome.result())); + else + return ListAggregateResourceEvaluationResultsOutcome(outcome.error()); +} + +void ConfigClient::listAggregateResourceEvaluationResultsAsync(const ListAggregateResourceEvaluationResultsRequest& request, const ListAggregateResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateResourceEvaluationResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateResourceEvaluationResultsOutcomeCallable ConfigClient::listAggregateResourceEvaluationResultsCallable(const ListAggregateResourceEvaluationResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateResourceEvaluationResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateResourceRelationsOutcome ConfigClient::listAggregateResourceRelations(const ListAggregateResourceRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateResourceRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateResourceRelationsOutcome(ListAggregateResourceRelationsResult(outcome.result())); + else + return ListAggregateResourceRelationsOutcome(outcome.error()); +} + +void ConfigClient::listAggregateResourceRelationsAsync(const ListAggregateResourceRelationsRequest& request, const ListAggregateResourceRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateResourceRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateResourceRelationsOutcomeCallable ConfigClient::listAggregateResourceRelationsCallable(const ListAggregateResourceRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateResourceRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateResourcesByAdvancedSearchOutcome ConfigClient::listAggregateResourcesByAdvancedSearch(const ListAggregateResourcesByAdvancedSearchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateResourcesByAdvancedSearchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateResourcesByAdvancedSearchOutcome(ListAggregateResourcesByAdvancedSearchResult(outcome.result())); + else + return ListAggregateResourcesByAdvancedSearchOutcome(outcome.error()); +} + +void ConfigClient::listAggregateResourcesByAdvancedSearchAsync(const ListAggregateResourcesByAdvancedSearchRequest& request, const ListAggregateResourcesByAdvancedSearchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateResourcesByAdvancedSearch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateResourcesByAdvancedSearchOutcomeCallable ConfigClient::listAggregateResourcesByAdvancedSearchCallable(const ListAggregateResourcesByAdvancedSearchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateResourcesByAdvancedSearch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregatorsOutcome ConfigClient::listAggregators(const ListAggregatorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregatorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregatorsOutcome(ListAggregatorsResult(outcome.result())); + else + return ListAggregatorsOutcome(outcome.error()); +} + +void ConfigClient::listAggregatorsAsync(const ListAggregatorsRequest& request, const ListAggregatorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregators(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregatorsOutcomeCallable ConfigClient::listAggregatorsCallable(const ListAggregatorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregators(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListCompliancePackTemplatesOutcome ConfigClient::listCompliancePackTemplates(const ListCompliancePackTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCompliancePackTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCompliancePackTemplatesOutcome(ListCompliancePackTemplatesResult(outcome.result())); + else + return ListCompliancePackTemplatesOutcome(outcome.error()); +} + +void ConfigClient::listCompliancePackTemplatesAsync(const ListCompliancePackTemplatesRequest& request, const ListCompliancePackTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCompliancePackTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListCompliancePackTemplatesOutcomeCallable ConfigClient::listCompliancePackTemplatesCallable(const ListCompliancePackTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCompliancePackTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListCompliancePacksOutcome ConfigClient::listCompliancePacks(const ListCompliancePacksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCompliancePacksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCompliancePacksOutcome(ListCompliancePacksResult(outcome.result())); + else + return ListCompliancePacksOutcome(outcome.error()); +} + +void ConfigClient::listCompliancePacksAsync(const ListCompliancePacksRequest& request, const ListCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCompliancePacks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListCompliancePacksOutcomeCallable ConfigClient::listCompliancePacksCallable(const ListCompliancePacksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCompliancePacks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListConfigDeliveryChannelsOutcome ConfigClient::listConfigDeliveryChannels(const ListConfigDeliveryChannelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListConfigDeliveryChannelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListConfigDeliveryChannelsOutcome(ListConfigDeliveryChannelsResult(outcome.result())); + else + return ListConfigDeliveryChannelsOutcome(outcome.error()); +} + +void ConfigClient::listConfigDeliveryChannelsAsync(const ListConfigDeliveryChannelsRequest& request, const ListConfigDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listConfigDeliveryChannels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListConfigDeliveryChannelsOutcomeCallable ConfigClient::listConfigDeliveryChannelsCallable(const ListConfigDeliveryChannelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listConfigDeliveryChannels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListConfigRuleEvaluationResultsOutcome ConfigClient::listConfigRuleEvaluationResults(const ListConfigRuleEvaluationResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListConfigRuleEvaluationResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListConfigRuleEvaluationResultsOutcome(ListConfigRuleEvaluationResultsResult(outcome.result())); + else + return ListConfigRuleEvaluationResultsOutcome(outcome.error()); +} + +void ConfigClient::listConfigRuleEvaluationResultsAsync(const ListConfigRuleEvaluationResultsRequest& request, const ListConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listConfigRuleEvaluationResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListConfigRuleEvaluationResultsOutcomeCallable ConfigClient::listConfigRuleEvaluationResultsCallable(const ListConfigRuleEvaluationResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listConfigRuleEvaluationResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListConfigRuleEvaluationStatisticsOutcome ConfigClient::listConfigRuleEvaluationStatistics(const ListConfigRuleEvaluationStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListConfigRuleEvaluationStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListConfigRuleEvaluationStatisticsOutcome(ListConfigRuleEvaluationStatisticsResult(outcome.result())); + else + return ListConfigRuleEvaluationStatisticsOutcome(outcome.error()); +} + +void ConfigClient::listConfigRuleEvaluationStatisticsAsync(const ListConfigRuleEvaluationStatisticsRequest& request, const ListConfigRuleEvaluationStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listConfigRuleEvaluationStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListConfigRuleEvaluationStatisticsOutcomeCallable ConfigClient::listConfigRuleEvaluationStatisticsCallable(const ListConfigRuleEvaluationStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listConfigRuleEvaluationStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::ListConfigRulesOutcome ConfigClient::listConfigRules(const ListConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +3795,150 @@ ConfigClient::ListDiscoveredResourcesOutcomeCallable ConfigClient::listDiscovere return task->get_future(); } +ConfigClient::ListIntegratedServiceOutcome ConfigClient::listIntegratedService(const ListIntegratedServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListIntegratedServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListIntegratedServiceOutcome(ListIntegratedServiceResult(outcome.result())); + else + return ListIntegratedServiceOutcome(outcome.error()); +} + +void ConfigClient::listIntegratedServiceAsync(const ListIntegratedServiceRequest& request, const ListIntegratedServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listIntegratedService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListIntegratedServiceOutcomeCallable ConfigClient::listIntegratedServiceCallable(const ListIntegratedServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listIntegratedService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListManagedRulesOutcome ConfigClient::listManagedRules(const ListManagedRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListManagedRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListManagedRulesOutcome(ListManagedRulesResult(outcome.result())); + else + return ListManagedRulesOutcome(outcome.error()); +} + +void ConfigClient::listManagedRulesAsync(const ListManagedRulesRequest& request, const ListManagedRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listManagedRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListManagedRulesOutcomeCallable ConfigClient::listManagedRulesCallable(const ListManagedRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listManagedRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListPreManagedRulesOutcome ConfigClient::listPreManagedRules(const ListPreManagedRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPreManagedRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPreManagedRulesOutcome(ListPreManagedRulesResult(outcome.result())); + else + return ListPreManagedRulesOutcome(outcome.error()); +} + +void ConfigClient::listPreManagedRulesAsync(const ListPreManagedRulesRequest& request, const ListPreManagedRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPreManagedRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListPreManagedRulesOutcomeCallable ConfigClient::listPreManagedRulesCallable(const ListPreManagedRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPreManagedRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListRemediationExecutionsOutcome ConfigClient::listRemediationExecutions(const ListRemediationExecutionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRemediationExecutionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRemediationExecutionsOutcome(ListRemediationExecutionsResult(outcome.result())); + else + return ListRemediationExecutionsOutcome(outcome.error()); +} + +void ConfigClient::listRemediationExecutionsAsync(const ListRemediationExecutionsRequest& request, const ListRemediationExecutionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRemediationExecutions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListRemediationExecutionsOutcomeCallable ConfigClient::listRemediationExecutionsCallable(const ListRemediationExecutionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRemediationExecutions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::ListRemediationTemplatesOutcome ConfigClient::listRemediationTemplates(const ListRemediationTemplatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,108 +3975,216 @@ ConfigClient::ListRemediationTemplatesOutcomeCallable ConfigClient::listRemediat return task->get_future(); } -ConfigClient::PutConfigRuleOutcome ConfigClient::putConfigRule(const PutConfigRuleRequest &request) const +ConfigClient::ListRemediationsOutcome ConfigClient::listRemediations(const ListRemediationsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutConfigRuleOutcome(endpointOutcome.error()); + return ListRemediationsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutConfigRuleOutcome(PutConfigRuleResult(outcome.result())); + return ListRemediationsOutcome(ListRemediationsResult(outcome.result())); else - return PutConfigRuleOutcome(outcome.error()); + return ListRemediationsOutcome(outcome.error()); } -void ConfigClient::putConfigRuleAsync(const PutConfigRuleRequest& request, const PutConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listRemediationsAsync(const ListRemediationsRequest& request, const ListRemediationsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putConfigRule(request), context); + handler(this, request, listRemediations(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::PutConfigRuleOutcomeCallable ConfigClient::putConfigRuleCallable(const PutConfigRuleRequest &request) const +ConfigClient::ListRemediationsOutcomeCallable ConfigClient::listRemediationsCallable(const ListRemediationsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putConfigRule(request); + return this->listRemediations(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::PutConfigurationRecorderOutcome ConfigClient::putConfigurationRecorder(const PutConfigurationRecorderRequest &request) const +ConfigClient::ListResourceEvaluationResultsOutcome ConfigClient::listResourceEvaluationResults(const ListResourceEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutConfigurationRecorderOutcome(endpointOutcome.error()); + return ListResourceEvaluationResultsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutConfigurationRecorderOutcome(PutConfigurationRecorderResult(outcome.result())); + return ListResourceEvaluationResultsOutcome(ListResourceEvaluationResultsResult(outcome.result())); else - return PutConfigurationRecorderOutcome(outcome.error()); + return ListResourceEvaluationResultsOutcome(outcome.error()); } -void ConfigClient::putConfigurationRecorderAsync(const PutConfigurationRecorderRequest& request, const PutConfigurationRecorderAsyncHandler& 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, putConfigurationRecorder(request), context); + handler(this, request, listResourceEvaluationResults(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::PutConfigurationRecorderOutcomeCallable ConfigClient::putConfigurationRecorderCallable(const PutConfigurationRecorderRequest &request) const +ConfigClient::ListResourceEvaluationResultsOutcomeCallable ConfigClient::listResourceEvaluationResultsCallable(const ListResourceEvaluationResultsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putConfigurationRecorder(request); + return this->listResourceEvaluationResults(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::PutDeliveryChannelOutcome ConfigClient::putDeliveryChannel(const PutDeliveryChannelRequest &request) const +ConfigClient::ListResourceRelationsOutcome ConfigClient::listResourceRelations(const ListResourceRelationsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutDeliveryChannelOutcome(endpointOutcome.error()); + return ListResourceRelationsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutDeliveryChannelOutcome(PutDeliveryChannelResult(outcome.result())); + return ListResourceRelationsOutcome(ListResourceRelationsResult(outcome.result())); else - return PutDeliveryChannelOutcome(outcome.error()); + return ListResourceRelationsOutcome(outcome.error()); } -void ConfigClient::putDeliveryChannelAsync(const PutDeliveryChannelRequest& request, const PutDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listResourceRelationsAsync(const ListResourceRelationsRequest& request, const ListResourceRelationsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putDeliveryChannel(request), context); + handler(this, request, listResourceRelations(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::PutDeliveryChannelOutcomeCallable ConfigClient::putDeliveryChannelCallable(const PutDeliveryChannelRequest &request) const +ConfigClient::ListResourceRelationsOutcomeCallable ConfigClient::listResourceRelationsCallable(const ListResourceRelationsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putDeliveryChannel(request); + return this->listResourceRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListResourcesByAdvancedSearchOutcome ConfigClient::listResourcesByAdvancedSearch(const ListResourcesByAdvancedSearchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListResourcesByAdvancedSearchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListResourcesByAdvancedSearchOutcome(ListResourcesByAdvancedSearchResult(outcome.result())); + else + return ListResourcesByAdvancedSearchOutcome(outcome.error()); +} + +void ConfigClient::listResourcesByAdvancedSearchAsync(const ListResourcesByAdvancedSearchRequest& request, const ListResourcesByAdvancedSearchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listResourcesByAdvancedSearch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListResourcesByAdvancedSearchOutcomeCallable ConfigClient::listResourcesByAdvancedSearchCallable(const ListResourcesByAdvancedSearchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listResourcesByAdvancedSearch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListSupportedProductsOutcome ConfigClient::listSupportedProducts(const ListSupportedProductsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSupportedProductsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSupportedProductsOutcome(ListSupportedProductsResult(outcome.result())); + else + return ListSupportedProductsOutcome(outcome.error()); +} + +void ConfigClient::listSupportedProductsAsync(const ListSupportedProductsRequest& request, const ListSupportedProductsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSupportedProducts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListSupportedProductsOutcomeCallable ConfigClient::listSupportedProductsCallable(const ListSupportedProductsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSupportedProducts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListTagResourcesOutcome ConfigClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void ConfigClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListTagResourcesOutcomeCallable ConfigClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -879,6 +4227,150 @@ ConfigClient::PutEvaluationsOutcomeCallable ConfigClient::putEvaluationsCallable return task->get_future(); } +ConfigClient::RevertAggregateEvaluationResultsOutcome ConfigClient::revertAggregateEvaluationResults(const RevertAggregateEvaluationResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevertAggregateEvaluationResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevertAggregateEvaluationResultsOutcome(RevertAggregateEvaluationResultsResult(outcome.result())); + else + return RevertAggregateEvaluationResultsOutcome(outcome.error()); +} + +void ConfigClient::revertAggregateEvaluationResultsAsync(const RevertAggregateEvaluationResultsRequest& request, const RevertAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revertAggregateEvaluationResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::RevertAggregateEvaluationResultsOutcomeCallable ConfigClient::revertAggregateEvaluationResultsCallable(const RevertAggregateEvaluationResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, 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::StartAggregateRemediationOutcome ConfigClient::startAggregateRemediation(const StartAggregateRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartAggregateRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartAggregateRemediationOutcome(StartAggregateRemediationResult(outcome.result())); + else + return StartAggregateRemediationOutcome(outcome.error()); +} + +void ConfigClient::startAggregateRemediationAsync(const StartAggregateRemediationRequest& request, const StartAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startAggregateRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::StartAggregateRemediationOutcomeCallable ConfigClient::startAggregateRemediationCallable(const StartAggregateRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startAggregateRemediation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::StartConfigRuleEvaluationOutcome ConfigClient::startConfigRuleEvaluation(const StartConfigRuleEvaluationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,36 +4443,576 @@ ConfigClient::StartConfigurationRecorderOutcomeCallable ConfigClient::startConfi return task->get_future(); } -ConfigClient::StopConfigRulesOutcome ConfigClient::stopConfigRules(const StopConfigRulesRequest &request) const +ConfigClient::StartRemediationOutcome ConfigClient::startRemediation(const StartRemediationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StopConfigRulesOutcome(endpointOutcome.error()); + return StartRemediationOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StopConfigRulesOutcome(StopConfigRulesResult(outcome.result())); + return StartRemediationOutcome(StartRemediationResult(outcome.result())); else - return StopConfigRulesOutcome(outcome.error()); + return StartRemediationOutcome(outcome.error()); } -void ConfigClient::stopConfigRulesAsync(const StopConfigRulesRequest& request, const StopConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::startRemediationAsync(const StartRemediationRequest& request, const StartRemediationAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, stopConfigRules(request), context); + handler(this, request, startRemediation(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::StopConfigRulesOutcomeCallable ConfigClient::stopConfigRulesCallable(const StopConfigRulesRequest &request) const +ConfigClient::StartRemediationOutcomeCallable ConfigClient::startRemediationCallable(const StartRemediationRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->stopConfigRules(request); + return this->startRemediation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::StopConfigurationRecorderOutcome ConfigClient::stopConfigurationRecorder(const StopConfigurationRecorderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopConfigurationRecorderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopConfigurationRecorderOutcome(StopConfigurationRecorderResult(outcome.result())); + else + return StopConfigurationRecorderOutcome(outcome.error()); +} + +void ConfigClient::stopConfigurationRecorderAsync(const StopConfigurationRecorderRequest& request, const StopConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopConfigurationRecorder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::StopConfigurationRecorderOutcomeCallable ConfigClient::stopConfigurationRecorderCallable(const StopConfigurationRecorderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopConfigurationRecorder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::TagResourcesOutcome ConfigClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void ConfigClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::TagResourcesOutcomeCallable ConfigClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::UntagResourcesOutcome ConfigClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void ConfigClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UntagResourcesOutcomeCallable ConfigClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(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::UpdateAggregateConfigDeliveryChannelOutcome ConfigClient::updateAggregateConfigDeliveryChannel(const UpdateAggregateConfigDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAggregateConfigDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAggregateConfigDeliveryChannelOutcome(UpdateAggregateConfigDeliveryChannelResult(outcome.result())); + else + return UpdateAggregateConfigDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::updateAggregateConfigDeliveryChannelAsync(const UpdateAggregateConfigDeliveryChannelRequest& request, const UpdateAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAggregateConfigDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateAggregateConfigDeliveryChannelOutcomeCallable ConfigClient::updateAggregateConfigDeliveryChannelCallable(const UpdateAggregateConfigDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAggregateConfigDeliveryChannel(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::UpdateAggregateRemediationOutcome ConfigClient::updateAggregateRemediation(const UpdateAggregateRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAggregateRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAggregateRemediationOutcome(UpdateAggregateRemediationResult(outcome.result())); + else + return UpdateAggregateRemediationOutcome(outcome.error()); +} + +void ConfigClient::updateAggregateRemediationAsync(const UpdateAggregateRemediationRequest& request, const UpdateAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAggregateRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateAggregateRemediationOutcomeCallable ConfigClient::updateAggregateRemediationCallable(const UpdateAggregateRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAggregateRemediation(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::UpdateConfigDeliveryChannelOutcome ConfigClient::updateConfigDeliveryChannel(const UpdateConfigDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateConfigDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateConfigDeliveryChannelOutcome(UpdateConfigDeliveryChannelResult(outcome.result())); + else + return UpdateConfigDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::updateConfigDeliveryChannelAsync(const UpdateConfigDeliveryChannelRequest& request, const UpdateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateConfigDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateConfigDeliveryChannelOutcomeCallable ConfigClient::updateConfigDeliveryChannelCallable(const UpdateConfigDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateConfigDeliveryChannel(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)(); })); + return task->get_future(); +} + +ConfigClient::UpdateConfigurationRecorderOutcome ConfigClient::updateConfigurationRecorder(const UpdateConfigurationRecorderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateConfigurationRecorderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateConfigurationRecorderOutcome(UpdateConfigurationRecorderResult(outcome.result())); + else + return UpdateConfigurationRecorderOutcome(outcome.error()); +} + +void ConfigClient::updateConfigurationRecorderAsync(const UpdateConfigurationRecorderRequest& request, const UpdateConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateConfigurationRecorder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateConfigurationRecorderOutcomeCallable ConfigClient::updateConfigurationRecorderCallable(const UpdateConfigurationRecorderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateConfigurationRecorder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::UpdateDeliveryChannelOutcome ConfigClient::updateDeliveryChannel(const UpdateDeliveryChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDeliveryChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDeliveryChannelOutcome(UpdateDeliveryChannelResult(outcome.result())); + else + return UpdateDeliveryChannelOutcome(outcome.error()); +} + +void ConfigClient::updateDeliveryChannelAsync(const UpdateDeliveryChannelRequest& request, const UpdateDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDeliveryChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateDeliveryChannelOutcomeCallable ConfigClient::updateDeliveryChannelCallable(const UpdateDeliveryChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDeliveryChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::UpdateIntegratedServiceStatusOutcome ConfigClient::updateIntegratedServiceStatus(const UpdateIntegratedServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateIntegratedServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateIntegratedServiceStatusOutcome(UpdateIntegratedServiceStatusResult(outcome.result())); + else + return UpdateIntegratedServiceStatusOutcome(outcome.error()); +} + +void ConfigClient::updateIntegratedServiceStatusAsync(const UpdateIntegratedServiceStatusRequest& request, const UpdateIntegratedServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateIntegratedServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateIntegratedServiceStatusOutcomeCallable ConfigClient::updateIntegratedServiceStatusCallable(const UpdateIntegratedServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateIntegratedServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::UpdateRemediationOutcome ConfigClient::updateRemediation(const UpdateRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRemediationOutcome(UpdateRemediationResult(outcome.result())); + else + return UpdateRemediationOutcome(outcome.error()); +} + +void ConfigClient::updateRemediationAsync(const UpdateRemediationRequest& request, const UpdateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateRemediationOutcomeCallable ConfigClient::updateRemediationCallable(const UpdateRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRemediation(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/ActiveAggregateConfigRulesResult.cc b/config/src/model/ActiveAggregateConfigRulesResult.cc new file mode 100644 index 000000000..d76c7aa2d --- /dev/null +++ b/config/src/model/ActiveAggregateConfigRulesResult.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; + +ActiveAggregateConfigRulesResult::ActiveAggregateConfigRulesResult() : + ServiceResult() +{} + +ActiveAggregateConfigRulesResult::ActiveAggregateConfigRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActiveAggregateConfigRulesResult::~ActiveAggregateConfigRulesResult() +{} + +void ActiveAggregateConfigRulesResult::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); + } + +} + +ActiveAggregateConfigRulesResult::OperateRuleResult ActiveAggregateConfigRulesResult::getOperateRuleResult()const +{ + return operateRuleResult_; +} + diff --git a/config/src/model/ActiveConfigRulesRequest.cc b/config/src/model/ActiveConfigRulesRequest.cc index 03d63fada..1d852796b 100644 --- a/config/src/model/ActiveConfigRulesRequest.cc +++ b/config/src/model/ActiveConfigRulesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::ActiveConfigRulesRequest; ActiveConfigRulesRequest::ActiveConfigRulesRequest() - : RpcServiceRequest("config", "2019-01-08", "ActiveConfigRules") { + : RpcServiceRequest("config", "2020-09-07", "ActiveConfigRules") { setMethod(HttpRequest::Method::Post); } 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/CopyCompliancePacksRequest.cc b/config/src/model/CopyCompliancePacksRequest.cc new file mode 100644 index 000000000..c648505af --- /dev/null +++ b/config/src/model/CopyCompliancePacksRequest.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::CopyCompliancePacksRequest; + +CopyCompliancePacksRequest::CopyCompliancePacksRequest() + : RpcServiceRequest("config", "2020-09-07", "CopyCompliancePacks") { + setMethod(HttpRequest::Method::Post); +} + +CopyCompliancePacksRequest::~CopyCompliancePacksRequest() {} + +std::string CopyCompliancePacksRequest::getDesAggregatorIds() const { + return desAggregatorIds_; +} + +void CopyCompliancePacksRequest::setDesAggregatorIds(const std::string &desAggregatorIds) { + desAggregatorIds_ = desAggregatorIds; + setParameter(std::string("DesAggregatorIds"), desAggregatorIds); +} + +std::string CopyCompliancePacksRequest::getSrcAggregatorId() const { + return srcAggregatorId_; +} + +void CopyCompliancePacksRequest::setSrcAggregatorId(const std::string &srcAggregatorId) { + srcAggregatorId_ = srcAggregatorId; + setParameter(std::string("SrcAggregatorId"), srcAggregatorId); +} + +std::string CopyCompliancePacksRequest::getSrcCompliancePackIds() const { + return srcCompliancePackIds_; +} + +void CopyCompliancePacksRequest::setSrcCompliancePackIds(const std::string &srcCompliancePackIds) { + srcCompliancePackIds_ = srcCompliancePackIds; + setParameter(std::string("SrcCompliancePackIds"), srcCompliancePackIds); +} + diff --git a/config/src/model/CopyCompliancePacksResult.cc b/config/src/model/CopyCompliancePacksResult.cc new file mode 100644 index 000000000..7051a8123 --- /dev/null +++ b/config/src/model/CopyCompliancePacksResult.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; + +CopyCompliancePacksResult::CopyCompliancePacksResult() : + ServiceResult() +{} + +CopyCompliancePacksResult::CopyCompliancePacksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyCompliancePacksResult::~CopyCompliancePacksResult() +{} + +void CopyCompliancePacksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CopyRulesResult"].isNull()) + copyRulesResult_ = value["CopyRulesResult"].asString() == "true"; + +} + +bool CopyCompliancePacksResult::getCopyRulesResult()const +{ + return copyRulesResult_; +} + diff --git a/config/src/model/CopyConfigRulesRequest.cc b/config/src/model/CopyConfigRulesRequest.cc new file mode 100644 index 000000000..d02539c5d --- /dev/null +++ b/config/src/model/CopyConfigRulesRequest.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::CopyConfigRulesRequest; + +CopyConfigRulesRequest::CopyConfigRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "CopyConfigRules") { + setMethod(HttpRequest::Method::Post); +} + +CopyConfigRulesRequest::~CopyConfigRulesRequest() {} + +std::string CopyConfigRulesRequest::getDesAggregatorIds() const { + return desAggregatorIds_; +} + +void CopyConfigRulesRequest::setDesAggregatorIds(const std::string &desAggregatorIds) { + desAggregatorIds_ = desAggregatorIds; + setParameter(std::string("DesAggregatorIds"), desAggregatorIds); +} + +std::string CopyConfigRulesRequest::getSrcConfigRuleIds() const { + return srcConfigRuleIds_; +} + +void CopyConfigRulesRequest::setSrcConfigRuleIds(const std::string &srcConfigRuleIds) { + srcConfigRuleIds_ = srcConfigRuleIds; + setParameter(std::string("SrcConfigRuleIds"), srcConfigRuleIds); +} + +std::string CopyConfigRulesRequest::getSrcAggregatorId() const { + return srcAggregatorId_; +} + +void CopyConfigRulesRequest::setSrcAggregatorId(const std::string &srcAggregatorId) { + srcAggregatorId_ = srcAggregatorId; + setParameter(std::string("SrcAggregatorId"), srcAggregatorId); +} + diff --git a/config/src/model/CopyConfigRulesResult.cc b/config/src/model/CopyConfigRulesResult.cc new file mode 100644 index 000000000..45a171662 --- /dev/null +++ b/config/src/model/CopyConfigRulesResult.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; + +CopyConfigRulesResult::CopyConfigRulesResult() : + ServiceResult() +{} + +CopyConfigRulesResult::CopyConfigRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyConfigRulesResult::~CopyConfigRulesResult() +{} + +void CopyConfigRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CopyRulesResult"].isNull()) + copyRulesResult_ = value["CopyRulesResult"].asString() == "true"; + +} + +bool CopyConfigRulesResult::getCopyRulesResult()const +{ + return copyRulesResult_; +} + diff --git a/config/src/model/CreateAdvancedSearchFileRequest.cc b/config/src/model/CreateAdvancedSearchFileRequest.cc new file mode 100644 index 000000000..26a2fc771 --- /dev/null +++ b/config/src/model/CreateAdvancedSearchFileRequest.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::CreateAdvancedSearchFileRequest; + +CreateAdvancedSearchFileRequest::CreateAdvancedSearchFileRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateAdvancedSearchFile") { + setMethod(HttpRequest::Method::Post); +} + +CreateAdvancedSearchFileRequest::~CreateAdvancedSearchFileRequest() {} + +std::string CreateAdvancedSearchFileRequest::getSql() const { + return sql_; +} + +void CreateAdvancedSearchFileRequest::setSql(const std::string &sql) { + sql_ = sql; + setParameter(std::string("Sql"), sql); +} + +bool CreateAdvancedSearchFileRequest::getOnlyBaseLine() const { + return onlyBaseLine_; +} + +void CreateAdvancedSearchFileRequest::setOnlyBaseLine(bool onlyBaseLine) { + onlyBaseLine_ = onlyBaseLine; + setParameter(std::string("OnlyBaseLine"), onlyBaseLine ? "true" : "false"); +} + diff --git a/config/src/model/CreateAdvancedSearchFileResult.cc b/config/src/model/CreateAdvancedSearchFileResult.cc new file mode 100644 index 000000000..1c2c96065 --- /dev/null +++ b/config/src/model/CreateAdvancedSearchFileResult.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; + +CreateAdvancedSearchFileResult::CreateAdvancedSearchFileResult() : + ServiceResult() +{} + +CreateAdvancedSearchFileResult::CreateAdvancedSearchFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAdvancedSearchFileResult::~CreateAdvancedSearchFileResult() +{} + +void CreateAdvancedSearchFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool CreateAdvancedSearchFileResult::getSuccess()const +{ + return success_; +} + diff --git a/config/src/model/CreateAggregateAdvancedSearchFileRequest.cc b/config/src/model/CreateAggregateAdvancedSearchFileRequest.cc new file mode 100644 index 000000000..e7af1e0b3 --- /dev/null +++ b/config/src/model/CreateAggregateAdvancedSearchFileRequest.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::CreateAggregateAdvancedSearchFileRequest; + +CreateAggregateAdvancedSearchFileRequest::CreateAggregateAdvancedSearchFileRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateAggregateAdvancedSearchFile") { + setMethod(HttpRequest::Method::Post); +} + +CreateAggregateAdvancedSearchFileRequest::~CreateAggregateAdvancedSearchFileRequest() {} + +std::string CreateAggregateAdvancedSearchFileRequest::getAggregatorId() const { + return aggregatorId_; +} + +void CreateAggregateAdvancedSearchFileRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string CreateAggregateAdvancedSearchFileRequest::getSql() const { + return sql_; +} + +void CreateAggregateAdvancedSearchFileRequest::setSql(const std::string &sql) { + sql_ = sql; + setParameter(std::string("Sql"), sql); +} + +bool CreateAggregateAdvancedSearchFileRequest::getOnlyBaseLine() const { + return onlyBaseLine_; +} + +void CreateAggregateAdvancedSearchFileRequest::setOnlyBaseLine(bool onlyBaseLine) { + onlyBaseLine_ = onlyBaseLine; + setParameter(std::string("OnlyBaseLine"), onlyBaseLine ? "true" : "false"); +} + diff --git a/config/src/model/CreateAggregateAdvancedSearchFileResult.cc b/config/src/model/CreateAggregateAdvancedSearchFileResult.cc new file mode 100644 index 000000000..0834f485d --- /dev/null +++ b/config/src/model/CreateAggregateAdvancedSearchFileResult.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; + +CreateAggregateAdvancedSearchFileResult::CreateAggregateAdvancedSearchFileResult() : + ServiceResult() +{} + +CreateAggregateAdvancedSearchFileResult::CreateAggregateAdvancedSearchFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAggregateAdvancedSearchFileResult::~CreateAggregateAdvancedSearchFileResult() +{} + +void CreateAggregateAdvancedSearchFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool CreateAggregateAdvancedSearchFileResult::getSuccess()const +{ + return success_; +} + diff --git a/config/src/model/CreateAggregateCompliancePackRequest.cc b/config/src/model/CreateAggregateCompliancePackRequest.cc new file mode 100644 index 000000000..f9ae451f8 --- /dev/null +++ b/config/src/model/CreateAggregateCompliancePackRequest.cc @@ -0,0 +1,154 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::getTagKeyScope() const { + return tagKeyScope_; +} + +void CreateAggregateCompliancePackRequest::setTagKeyScope(const std::string &tagKeyScope) { + tagKeyScope_ = tagKeyScope; + setBodyParameter(std::string("TagKeyScope"), tagKeyScope); +} + +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::string CreateAggregateCompliancePackRequest::getTagValueScope() const { + return tagValueScope_; +} + +void CreateAggregateCompliancePackRequest::setTagValueScope(const std::string &tagValueScope) { + tagValueScope_ = tagValueScope; + setBodyParameter(std::string("TagValueScope"), tagValueScope); +} + +std::string CreateAggregateCompliancePackRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void CreateAggregateCompliancePackRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +bool CreateAggregateCompliancePackRequest::getDefaultEnable() const { + return defaultEnable_; +} + +void CreateAggregateCompliancePackRequest::setDefaultEnable(bool defaultEnable) { + defaultEnable_ = defaultEnable; + setBodyParameter(std::string("DefaultEnable"), defaultEnable ? "true" : "false"); +} + +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)); +} + +std::string CreateAggregateCompliancePackRequest::getResourceGroupIdsScope() const { + return resourceGroupIdsScope_; +} + +void CreateAggregateCompliancePackRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { + resourceGroupIdsScope_ = resourceGroupIdsScope; + setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); +} + +std::string CreateAggregateCompliancePackRequest::getExcludeResourceIdsScope() const { + return excludeResourceIdsScope_; +} + +void CreateAggregateCompliancePackRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { + excludeResourceIdsScope_ = excludeResourceIdsScope; + setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); +} + 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/CreateAggregateConfigDeliveryChannelRequest.cc b/config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc new file mode 100644 index 000000000..08487b4a7 --- /dev/null +++ b/config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::CreateAggregateConfigDeliveryChannelRequest; + +CreateAggregateConfigDeliveryChannelRequest::CreateAggregateConfigDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateAggregateConfigDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +CreateAggregateConfigDeliveryChannelRequest::~CreateAggregateConfigDeliveryChannelRequest() {} + +bool CreateAggregateConfigDeliveryChannelRequest::getNonCompliantNotification() const { + return nonCompliantNotification_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { + nonCompliantNotification_ = nonCompliantNotification; + setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); +} + +std::string CreateAggregateConfigDeliveryChannelRequest::getClientToken() const { + return clientToken_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool CreateAggregateConfigDeliveryChannelRequest::getConfigurationSnapshot() const { + return configurationSnapshot_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { + configurationSnapshot_ = configurationSnapshot; + setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); +} + +std::string CreateAggregateConfigDeliveryChannelRequest::getDescription() const { + return description_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateAggregateConfigDeliveryChannelRequest::getAggregatorId() const { + return aggregatorId_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const { + return deliveryChannelTargetArn_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { + deliveryChannelTargetArn_ = deliveryChannelTargetArn; + setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); +} + +std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const { + return deliveryChannelCondition_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { + deliveryChannelCondition_ = deliveryChannelCondition; + setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); +} + +bool CreateAggregateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const { + return configurationItemChangeNotification_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { + configurationItemChangeNotification_ = configurationItemChangeNotification; + setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); +} + +std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelName() const { + return deliveryChannelName_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { + deliveryChannelName_ = deliveryChannelName; + setParameter(std::string("DeliveryChannelName"), deliveryChannelName); +} + +std::string CreateAggregateConfigDeliveryChannelRequest::getDeliverySnapshotTime() const { + return deliverySnapshotTime_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setDeliverySnapshotTime(const std::string &deliverySnapshotTime) { + deliverySnapshotTime_ = deliverySnapshotTime; + setParameter(std::string("DeliverySnapshotTime"), deliverySnapshotTime); +} + +std::string CreateAggregateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { + return oversizedDataOSSTargetArn_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { + oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; + setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); +} + +std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelType() const { + return deliveryChannelType_; +} + +void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) { + deliveryChannelType_ = deliveryChannelType; + setParameter(std::string("DeliveryChannelType"), deliveryChannelType); +} + diff --git a/config/src/model/CreateAggregateConfigDeliveryChannelResult.cc b/config/src/model/CreateAggregateConfigDeliveryChannelResult.cc new file mode 100644 index 000000000..66a2c08df --- /dev/null +++ b/config/src/model/CreateAggregateConfigDeliveryChannelResult.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; + +CreateAggregateConfigDeliveryChannelResult::CreateAggregateConfigDeliveryChannelResult() : + ServiceResult() +{} + +CreateAggregateConfigDeliveryChannelResult::CreateAggregateConfigDeliveryChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAggregateConfigDeliveryChannelResult::~CreateAggregateConfigDeliveryChannelResult() +{} + +void CreateAggregateConfigDeliveryChannelResult::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(); + +} + +std::string CreateAggregateConfigDeliveryChannelResult::getDeliveryChannelId()const +{ + return deliveryChannelId_; +} + diff --git a/config/src/model/CreateAggregateConfigRuleRequest.cc b/config/src/model/CreateAggregateConfigRuleRequest.cc new file mode 100644 index 000000000..f4fe01edb --- /dev/null +++ b/config/src/model/CreateAggregateConfigRuleRequest.cc @@ -0,0 +1,209 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::getExcludeAccountIdsScope() const { + return excludeAccountIdsScope_; +} + +void CreateAggregateConfigRuleRequest::setExcludeAccountIdsScope(const std::string &excludeAccountIdsScope) { + excludeAccountIdsScope_ = excludeAccountIdsScope; + setBodyParameter(std::string("ExcludeAccountIdsScope"), excludeAccountIdsScope); +} + +std::string CreateAggregateConfigRuleRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void CreateAggregateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +std::string CreateAggregateConfigRuleRequest::getExcludeFolderIdsScope() const { + return excludeFolderIdsScope_; +} + +void CreateAggregateConfigRuleRequest::setExcludeFolderIdsScope(const std::string &excludeFolderIdsScope) { + excludeFolderIdsScope_ = excludeFolderIdsScope; + setBodyParameter(std::string("ExcludeFolderIdsScope"), excludeFolderIdsScope); +} + +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::getTagKeyLogicScope() const { + return tagKeyLogicScope_; +} + +void CreateAggregateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) { + tagKeyLogicScope_ = tagKeyLogicScope; + setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope); +} + +std::string CreateAggregateConfigRuleRequest::getMaximumExecutionFrequency() const { + return maximumExecutionFrequency_; +} + +void CreateAggregateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { + maximumExecutionFrequency_ = maximumExecutionFrequency; + setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); +} + +std::string CreateAggregateConfigRuleRequest::getFolderIdsScope() const { + return folderIdsScope_; +} + +void CreateAggregateConfigRuleRequest::setFolderIdsScope(const std::string &folderIdsScope) { + folderIdsScope_ = folderIdsScope; + setBodyParameter(std::string("FolderIdsScope"), folderIdsScope); +} + +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/CreateAggregateRemediationRequest.cc b/config/src/model/CreateAggregateRemediationRequest.cc new file mode 100644 index 000000000..388fe241f --- /dev/null +++ b/config/src/model/CreateAggregateRemediationRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::CreateAggregateRemediationRequest; + +CreateAggregateRemediationRequest::CreateAggregateRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateAggregateRemediation") { + setMethod(HttpRequest::Method::Post); +} + +CreateAggregateRemediationRequest::~CreateAggregateRemediationRequest() {} + +std::string CreateAggregateRemediationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void CreateAggregateRemediationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string CreateAggregateRemediationRequest::getRemediationType() const { + return remediationType_; +} + +void CreateAggregateRemediationRequest::setRemediationType(const std::string &remediationType) { + remediationType_ = remediationType; + setBodyParameter(std::string("RemediationType"), remediationType); +} + +std::string CreateAggregateRemediationRequest::getClientToken() const { + return clientToken_; +} + +void CreateAggregateRemediationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateAggregateRemediationRequest::getAggregatorId() const { + return aggregatorId_; +} + +void CreateAggregateRemediationRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string CreateAggregateRemediationRequest::getSourceType() const { + return sourceType_; +} + +void CreateAggregateRemediationRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setBodyParameter(std::string("SourceType"), sourceType); +} + +std::string CreateAggregateRemediationRequest::getRemediationTemplateId() const { + return remediationTemplateId_; +} + +void CreateAggregateRemediationRequest::setRemediationTemplateId(const std::string &remediationTemplateId) { + remediationTemplateId_ = remediationTemplateId; + setBodyParameter(std::string("RemediationTemplateId"), remediationTemplateId); +} + +std::string CreateAggregateRemediationRequest::getParams() const { + return params_; +} + +void CreateAggregateRemediationRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("Params"), params); +} + +std::string CreateAggregateRemediationRequest::getInvokeType() const { + return invokeType_; +} + +void CreateAggregateRemediationRequest::setInvokeType(const std::string &invokeType) { + invokeType_ = invokeType; + setBodyParameter(std::string("InvokeType"), invokeType); +} + diff --git a/config/src/model/CreateAggregateRemediationResult.cc b/config/src/model/CreateAggregateRemediationResult.cc new file mode 100644 index 000000000..9755b08bb --- /dev/null +++ b/config/src/model/CreateAggregateRemediationResult.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; + +CreateAggregateRemediationResult::CreateAggregateRemediationResult() : + ServiceResult() +{} + +CreateAggregateRemediationResult::CreateAggregateRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAggregateRemediationResult::~CreateAggregateRemediationResult() +{} + +void CreateAggregateRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RemediationId"].isNull()) + remediationId_ = value["RemediationId"].asString(); + +} + +std::string CreateAggregateRemediationResult::getRemediationId()const +{ + return remediationId_; +} + 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/CreateAggregatorResult.cc b/config/src/model/CreateAggregatorResult.cc new file mode 100644 index 000000000..00e47f4d2 --- /dev/null +++ b/config/src/model/CreateAggregatorResult.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; + +CreateAggregatorResult::CreateAggregatorResult() : + ServiceResult() +{} + +CreateAggregatorResult::CreateAggregatorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAggregatorResult::~CreateAggregatorResult() +{} + +void CreateAggregatorResult::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 CreateAggregatorResult::getAggregatorId()const +{ + return aggregatorId_; +} + diff --git a/config/src/model/CreateCompliancePackRequest.cc b/config/src/model/CreateCompliancePackRequest.cc new file mode 100644 index 000000000..64e091c6f --- /dev/null +++ b/config/src/model/CreateCompliancePackRequest.cc @@ -0,0 +1,145 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::CreateCompliancePackRequest; + +CreateCompliancePackRequest::CreateCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +CreateCompliancePackRequest::~CreateCompliancePackRequest() {} + +std::string CreateCompliancePackRequest::getTagKeyScope() const { + return tagKeyScope_; +} + +void CreateCompliancePackRequest::setTagKeyScope(const std::string &tagKeyScope) { + tagKeyScope_ = tagKeyScope; + setBodyParameter(std::string("TagKeyScope"), tagKeyScope); +} + +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::string CreateCompliancePackRequest::getTagValueScope() const { + return tagValueScope_; +} + +void CreateCompliancePackRequest::setTagValueScope(const std::string &tagValueScope) { + tagValueScope_ = tagValueScope; + setBodyParameter(std::string("TagValueScope"), tagValueScope); +} + +std::string CreateCompliancePackRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void CreateCompliancePackRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +bool CreateCompliancePackRequest::getDefaultEnable() const { + return defaultEnable_; +} + +void CreateCompliancePackRequest::setDefaultEnable(bool defaultEnable) { + defaultEnable_ = defaultEnable; + setBodyParameter(std::string("DefaultEnable"), defaultEnable ? "true" : "false"); +} + +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)); +} + +std::string CreateCompliancePackRequest::getResourceGroupIdsScope() const { + return resourceGroupIdsScope_; +} + +void CreateCompliancePackRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { + resourceGroupIdsScope_ = resourceGroupIdsScope; + setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); +} + +std::string CreateCompliancePackRequest::getExcludeResourceIdsScope() const { + return excludeResourceIdsScope_; +} + +void CreateCompliancePackRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { + excludeResourceIdsScope_ = excludeResourceIdsScope; + setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); +} + 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/CreateConfigDeliveryChannelRequest.cc b/config/src/model/CreateConfigDeliveryChannelRequest.cc new file mode 100644 index 000000000..911eb9f37 --- /dev/null +++ b/config/src/model/CreateConfigDeliveryChannelRequest.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::CreateConfigDeliveryChannelRequest; + +CreateConfigDeliveryChannelRequest::CreateConfigDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateConfigDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +CreateConfigDeliveryChannelRequest::~CreateConfigDeliveryChannelRequest() {} + +bool CreateConfigDeliveryChannelRequest::getNonCompliantNotification() const { + return nonCompliantNotification_; +} + +void CreateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { + nonCompliantNotification_ = nonCompliantNotification; + setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); +} + +std::string CreateConfigDeliveryChannelRequest::getClientToken() const { + return clientToken_; +} + +void CreateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool CreateConfigDeliveryChannelRequest::getConfigurationSnapshot() const { + return configurationSnapshot_; +} + +void CreateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { + configurationSnapshot_ = configurationSnapshot; + setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); +} + +std::string CreateConfigDeliveryChannelRequest::getDescription() const { + return description_; +} + +void CreateConfigDeliveryChannelRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const { + return deliveryChannelTargetArn_; +} + +void CreateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { + deliveryChannelTargetArn_ = deliveryChannelTargetArn; + setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); +} + +std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const { + return deliveryChannelCondition_; +} + +void CreateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { + deliveryChannelCondition_ = deliveryChannelCondition; + setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); +} + +bool CreateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const { + return configurationItemChangeNotification_; +} + +void CreateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { + configurationItemChangeNotification_ = configurationItemChangeNotification; + setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); +} + +std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelName() const { + return deliveryChannelName_; +} + +void CreateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { + deliveryChannelName_ = deliveryChannelName; + setParameter(std::string("DeliveryChannelName"), deliveryChannelName); +} + +std::string CreateConfigDeliveryChannelRequest::getDeliverySnapshotTime() const { + return deliverySnapshotTime_; +} + +void CreateConfigDeliveryChannelRequest::setDeliverySnapshotTime(const std::string &deliverySnapshotTime) { + deliverySnapshotTime_ = deliverySnapshotTime; + setParameter(std::string("DeliverySnapshotTime"), deliverySnapshotTime); +} + +std::string CreateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { + return oversizedDataOSSTargetArn_; +} + +void CreateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { + oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; + setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); +} + +std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelType() const { + return deliveryChannelType_; +} + +void CreateConfigDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) { + deliveryChannelType_ = deliveryChannelType; + setParameter(std::string("DeliveryChannelType"), deliveryChannelType); +} + diff --git a/config/src/model/CreateConfigDeliveryChannelResult.cc b/config/src/model/CreateConfigDeliveryChannelResult.cc new file mode 100644 index 000000000..d857db8ff --- /dev/null +++ b/config/src/model/CreateConfigDeliveryChannelResult.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; + +CreateConfigDeliveryChannelResult::CreateConfigDeliveryChannelResult() : + ServiceResult() +{} + +CreateConfigDeliveryChannelResult::CreateConfigDeliveryChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateConfigDeliveryChannelResult::~CreateConfigDeliveryChannelResult() +{} + +void CreateConfigDeliveryChannelResult::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(); + +} + +std::string CreateConfigDeliveryChannelResult::getDeliveryChannelId()const +{ + return deliveryChannelId_; +} + diff --git a/config/src/model/CreateConfigRuleRequest.cc b/config/src/model/CreateConfigRuleRequest.cc new file mode 100644 index 000000000..04f075cf8 --- /dev/null +++ b/config/src/model/CreateConfigRuleRequest.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::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::getTagKeyLogicScope() const { + return tagKeyLogicScope_; +} + +void CreateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) { + tagKeyLogicScope_ = tagKeyLogicScope; + setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope); +} + +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/CreateDeliveryChannelRequest.cc b/config/src/model/CreateDeliveryChannelRequest.cc new file mode 100644 index 000000000..bd4bd2b52 --- /dev/null +++ b/config/src/model/CreateDeliveryChannelRequest.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::CreateDeliveryChannelRequest; + +CreateDeliveryChannelRequest::CreateDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +CreateDeliveryChannelRequest::~CreateDeliveryChannelRequest() {} + +bool CreateDeliveryChannelRequest::getNonCompliantNotification() const { + return nonCompliantNotification_; +} + +void CreateDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { + nonCompliantNotification_ = nonCompliantNotification; + setBodyParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); +} + +std::string CreateDeliveryChannelRequest::getClientToken() const { + return clientToken_; +} + +void CreateDeliveryChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +bool CreateDeliveryChannelRequest::getConfigurationSnapshot() const { + return configurationSnapshot_; +} + +void CreateDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { + configurationSnapshot_ = configurationSnapshot; + setBodyParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); +} + +std::string CreateDeliveryChannelRequest::getDescription() const { + return description_; +} + +void CreateDeliveryChannelRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateDeliveryChannelRequest::getDeliveryChannelTargetArn() const { + return deliveryChannelTargetArn_; +} + +void CreateDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { + deliveryChannelTargetArn_ = deliveryChannelTargetArn; + setBodyParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); +} + +std::string CreateDeliveryChannelRequest::getDeliveryChannelCondition() const { + return deliveryChannelCondition_; +} + +void CreateDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { + deliveryChannelCondition_ = deliveryChannelCondition; + setBodyParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); +} + +bool CreateDeliveryChannelRequest::getConfigurationItemChangeNotification() const { + return configurationItemChangeNotification_; +} + +void CreateDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { + configurationItemChangeNotification_ = configurationItemChangeNotification; + setBodyParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); +} + +std::string CreateDeliveryChannelRequest::getDeliveryChannelAssumeRoleArn() const { + return deliveryChannelAssumeRoleArn_; +} + +void CreateDeliveryChannelRequest::setDeliveryChannelAssumeRoleArn(const std::string &deliveryChannelAssumeRoleArn) { + deliveryChannelAssumeRoleArn_ = deliveryChannelAssumeRoleArn; + setBodyParameter(std::string("DeliveryChannelAssumeRoleArn"), deliveryChannelAssumeRoleArn); +} + +std::string CreateDeliveryChannelRequest::getDeliveryChannelName() const { + return deliveryChannelName_; +} + +void CreateDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { + deliveryChannelName_ = deliveryChannelName; + setBodyParameter(std::string("DeliveryChannelName"), deliveryChannelName); +} + +std::string CreateDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { + return oversizedDataOSSTargetArn_; +} + +void CreateDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { + oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; + setBodyParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); +} + +std::string CreateDeliveryChannelRequest::getDeliveryChannelType() const { + return deliveryChannelType_; +} + +void CreateDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) { + deliveryChannelType_ = deliveryChannelType; + setBodyParameter(std::string("DeliveryChannelType"), deliveryChannelType); +} + diff --git a/config/src/model/PutDeliveryChannelResult.cc b/config/src/model/CreateDeliveryChannelResult.cc similarity index 72% rename from config/src/model/PutDeliveryChannelResult.cc rename to config/src/model/CreateDeliveryChannelResult.cc index 769def101..ae9f45520 100644 --- a/config/src/model/PutDeliveryChannelResult.cc +++ b/config/src/model/CreateDeliveryChannelResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -PutDeliveryChannelResult::PutDeliveryChannelResult() : +CreateDeliveryChannelResult::CreateDeliveryChannelResult() : ServiceResult() {} -PutDeliveryChannelResult::PutDeliveryChannelResult(const std::string &payload) : +CreateDeliveryChannelResult::CreateDeliveryChannelResult(const std::string &payload) : ServiceResult() { parse(payload); } -PutDeliveryChannelResult::~PutDeliveryChannelResult() +CreateDeliveryChannelResult::~CreateDeliveryChannelResult() {} -void PutDeliveryChannelResult::parse(const std::string &payload) +void CreateDeliveryChannelResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -44,7 +44,7 @@ void PutDeliveryChannelResult::parse(const std::string &payload) } -std::string PutDeliveryChannelResult::getDeliveryChannelId()const +std::string CreateDeliveryChannelResult::getDeliveryChannelId()const { return deliveryChannelId_; } diff --git a/config/src/model/CreateRemediationRequest.cc b/config/src/model/CreateRemediationRequest.cc new file mode 100644 index 000000000..7df868d94 --- /dev/null +++ b/config/src/model/CreateRemediationRequest.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::CreateRemediationRequest; + +CreateRemediationRequest::CreateRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateRemediation") { + setMethod(HttpRequest::Method::Post); +} + +CreateRemediationRequest::~CreateRemediationRequest() {} + +std::string CreateRemediationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void CreateRemediationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string CreateRemediationRequest::getRemediationType() const { + return remediationType_; +} + +void CreateRemediationRequest::setRemediationType(const std::string &remediationType) { + remediationType_ = remediationType; + setBodyParameter(std::string("RemediationType"), remediationType); +} + +std::string CreateRemediationRequest::getClientToken() const { + return clientToken_; +} + +void CreateRemediationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateRemediationRequest::getSourceType() const { + return sourceType_; +} + +void CreateRemediationRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setBodyParameter(std::string("SourceType"), sourceType); +} + +std::string CreateRemediationRequest::getRemediationTemplateId() const { + return remediationTemplateId_; +} + +void CreateRemediationRequest::setRemediationTemplateId(const std::string &remediationTemplateId) { + remediationTemplateId_ = remediationTemplateId; + setBodyParameter(std::string("RemediationTemplateId"), remediationTemplateId); +} + +std::string CreateRemediationRequest::getParams() const { + return params_; +} + +void CreateRemediationRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("Params"), params); +} + +std::string CreateRemediationRequest::getInvokeType() const { + return invokeType_; +} + +void CreateRemediationRequest::setInvokeType(const std::string &invokeType) { + invokeType_ = invokeType; + setBodyParameter(std::string("InvokeType"), invokeType); +} + diff --git a/config/src/model/CreateRemediationResult.cc b/config/src/model/CreateRemediationResult.cc new file mode 100644 index 000000000..66913c9d1 --- /dev/null +++ b/config/src/model/CreateRemediationResult.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; + +CreateRemediationResult::CreateRemediationResult() : + ServiceResult() +{} + +CreateRemediationResult::CreateRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRemediationResult::~CreateRemediationResult() +{} + +void CreateRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RemediationId"].isNull()) + remediationId_ = value["RemediationId"].asString(); + +} + +std::string CreateRemediationResult::getRemediationId()const +{ + return remediationId_; +} + 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/StopConfigRulesRequest.cc b/config/src/model/DeactiveConfigRulesRequest.cc similarity index 61% rename from config/src/model/StopConfigRulesRequest.cc rename to config/src/model/DeactiveConfigRulesRequest.cc index e87909e15..ea0ef609d 100644 --- a/config/src/model/StopConfigRulesRequest.cc +++ b/config/src/model/DeactiveConfigRulesRequest.cc @@ -14,22 +14,22 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::StopConfigRulesRequest; +using AlibabaCloud::Config::Model::DeactiveConfigRulesRequest; -StopConfigRulesRequest::StopConfigRulesRequest() - : RpcServiceRequest("config", "2019-01-08", "StopConfigRules") { +DeactiveConfigRulesRequest::DeactiveConfigRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "DeactiveConfigRules") { setMethod(HttpRequest::Method::Post); } -StopConfigRulesRequest::~StopConfigRulesRequest() {} +DeactiveConfigRulesRequest::~DeactiveConfigRulesRequest() {} -std::string StopConfigRulesRequest::getConfigRuleIds() const { +std::string DeactiveConfigRulesRequest::getConfigRuleIds() const { return configRuleIds_; } -void StopConfigRulesRequest::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/StopConfigRulesResult.cc b/config/src/model/DeactiveConfigRulesResult.cc similarity index 82% rename from config/src/model/StopConfigRulesResult.cc rename to config/src/model/DeactiveConfigRulesResult.cc index 99198cf4c..9c48ecb9d 100644 --- a/config/src/model/StopConfigRulesResult.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; -StopConfigRulesResult::StopConfigRulesResult() : +DeactiveConfigRulesResult::DeactiveConfigRulesResult() : ServiceResult() {} -StopConfigRulesResult::StopConfigRulesResult(const std::string &payload) : +DeactiveConfigRulesResult::DeactiveConfigRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -StopConfigRulesResult::~StopConfigRulesResult() +DeactiveConfigRulesResult::~DeactiveConfigRulesResult() {} -void StopConfigRulesResult::parse(const std::string &payload) +void DeactiveConfigRulesResult::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 +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/DeleteAggregateConfigDeliveryChannelRequest.cc b/config/src/model/DeleteAggregateConfigDeliveryChannelRequest.cc new file mode 100644 index 000000000..51da8febf --- /dev/null +++ b/config/src/model/DeleteAggregateConfigDeliveryChannelRequest.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::DeleteAggregateConfigDeliveryChannelRequest; + +DeleteAggregateConfigDeliveryChannelRequest::DeleteAggregateConfigDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteAggregateConfigDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAggregateConfigDeliveryChannelRequest::~DeleteAggregateConfigDeliveryChannelRequest() {} + +std::string DeleteAggregateConfigDeliveryChannelRequest::getAggregatorId() const { + return aggregatorId_; +} + +void DeleteAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string DeleteAggregateConfigDeliveryChannelRequest::getDeliveryChannelId() const { + return deliveryChannelId_; +} + +void DeleteAggregateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { + deliveryChannelId_ = deliveryChannelId; + setParameter(std::string("DeliveryChannelId"), deliveryChannelId); +} + diff --git a/config/src/model/DeleteAggregateConfigDeliveryChannelResult.cc b/config/src/model/DeleteAggregateConfigDeliveryChannelResult.cc new file mode 100644 index 000000000..f84a49a57 --- /dev/null +++ b/config/src/model/DeleteAggregateConfigDeliveryChannelResult.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; + +DeleteAggregateConfigDeliveryChannelResult::DeleteAggregateConfigDeliveryChannelResult() : + ServiceResult() +{} + +DeleteAggregateConfigDeliveryChannelResult::DeleteAggregateConfigDeliveryChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAggregateConfigDeliveryChannelResult::~DeleteAggregateConfigDeliveryChannelResult() +{} + +void DeleteAggregateConfigDeliveryChannelResult::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(); + +} + +std::string DeleteAggregateConfigDeliveryChannelResult::getDeliveryChannelId()const +{ + return deliveryChannelId_; +} + 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/DeleteAggregateConfigRulesResult.cc b/config/src/model/DeleteAggregateConfigRulesResult.cc new file mode 100644 index 000000000..637e09bcb --- /dev/null +++ b/config/src/model/DeleteAggregateConfigRulesResult.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; + +DeleteAggregateConfigRulesResult::DeleteAggregateConfigRulesResult() : + ServiceResult() +{} + +DeleteAggregateConfigRulesResult::DeleteAggregateConfigRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAggregateConfigRulesResult::~DeleteAggregateConfigRulesResult() +{} + +void DeleteAggregateConfigRulesResult::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); + } + +} + +DeleteAggregateConfigRulesResult::OperateRuleResult DeleteAggregateConfigRulesResult::getOperateRuleResult()const +{ + return operateRuleResult_; +} + diff --git a/config/src/model/DeleteAggregateRemediationsRequest.cc b/config/src/model/DeleteAggregateRemediationsRequest.cc new file mode 100644 index 000000000..aec47da7d --- /dev/null +++ b/config/src/model/DeleteAggregateRemediationsRequest.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::DeleteAggregateRemediationsRequest; + +DeleteAggregateRemediationsRequest::DeleteAggregateRemediationsRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteAggregateRemediations") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAggregateRemediationsRequest::~DeleteAggregateRemediationsRequest() {} + +std::string DeleteAggregateRemediationsRequest::getRemediationIds() const { + return remediationIds_; +} + +void DeleteAggregateRemediationsRequest::setRemediationIds(const std::string &remediationIds) { + remediationIds_ = remediationIds; + setBodyParameter(std::string("RemediationIds"), remediationIds); +} + +std::string DeleteAggregateRemediationsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void DeleteAggregateRemediationsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/DeleteAggregateRemediationsResult.cc b/config/src/model/DeleteAggregateRemediationsResult.cc new file mode 100644 index 000000000..a02938390 --- /dev/null +++ b/config/src/model/DeleteAggregateRemediationsResult.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; + +DeleteAggregateRemediationsResult::DeleteAggregateRemediationsResult() : + ServiceResult() +{} + +DeleteAggregateRemediationsResult::DeleteAggregateRemediationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAggregateRemediationsResult::~DeleteAggregateRemediationsResult() +{} + +void DeleteAggregateRemediationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRemediationDeleteResultsNode = value["RemediationDeleteResults"]["RemediationDeleteResult"]; + for (auto valueRemediationDeleteResultsRemediationDeleteResult : allRemediationDeleteResultsNode) + { + RemediationDeleteResult remediationDeleteResultsObject; + if(!valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].isNull()) + remediationDeleteResultsObject.remediationId = valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].asString(); + if(!valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].isNull()) + remediationDeleteResultsObject.errorMessage = valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].asString(); + if(!valueRemediationDeleteResultsRemediationDeleteResult["Success"].isNull()) + remediationDeleteResultsObject.success = valueRemediationDeleteResultsRemediationDeleteResult["Success"].asString() == "true"; + remediationDeleteResults_.push_back(remediationDeleteResultsObject); + } + +} + +std::vector DeleteAggregateRemediationsResult::getRemediationDeleteResults()const +{ + return remediationDeleteResults_; +} + 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/DeleteConfigDeliveryChannelRequest.cc b/config/src/model/DeleteConfigDeliveryChannelRequest.cc new file mode 100644 index 000000000..c5ead0ce2 --- /dev/null +++ b/config/src/model/DeleteConfigDeliveryChannelRequest.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::DeleteConfigDeliveryChannelRequest; + +DeleteConfigDeliveryChannelRequest::DeleteConfigDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteConfigDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +DeleteConfigDeliveryChannelRequest::~DeleteConfigDeliveryChannelRequest() {} + +std::string DeleteConfigDeliveryChannelRequest::getDeliveryChannelId() const { + return deliveryChannelId_; +} + +void DeleteConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { + deliveryChannelId_ = deliveryChannelId; + setParameter(std::string("DeliveryChannelId"), deliveryChannelId); +} + diff --git a/config/src/model/DeleteConfigDeliveryChannelResult.cc b/config/src/model/DeleteConfigDeliveryChannelResult.cc new file mode 100644 index 000000000..0875da655 --- /dev/null +++ b/config/src/model/DeleteConfigDeliveryChannelResult.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; + +DeleteConfigDeliveryChannelResult::DeleteConfigDeliveryChannelResult() : + ServiceResult() +{} + +DeleteConfigDeliveryChannelResult::DeleteConfigDeliveryChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteConfigDeliveryChannelResult::~DeleteConfigDeliveryChannelResult() +{} + +void DeleteConfigDeliveryChannelResult::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(); + +} + +std::string DeleteConfigDeliveryChannelResult::getDeliveryChannelId()const +{ + return deliveryChannelId_; +} + diff --git a/config/src/model/DeleteConfigRulesRequest.cc b/config/src/model/DeleteConfigRulesRequest.cc index 94dadc03b..f0912943d 100644 --- a/config/src/model/DeleteConfigRulesRequest.cc +++ b/config/src/model/DeleteConfigRulesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::DeleteConfigRulesRequest; DeleteConfigRulesRequest::DeleteConfigRulesRequest() - : RpcServiceRequest("config", "2019-01-08", "DeleteConfigRules") { + : RpcServiceRequest("config", "2020-09-07", "DeleteConfigRules") { setMethod(HttpRequest::Method::Post); } diff --git a/config/src/model/DeleteRemediationsRequest.cc b/config/src/model/DeleteRemediationsRequest.cc new file mode 100644 index 000000000..7679e30c0 --- /dev/null +++ b/config/src/model/DeleteRemediationsRequest.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::DeleteRemediationsRequest; + +DeleteRemediationsRequest::DeleteRemediationsRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteRemediations") { + setMethod(HttpRequest::Method::Post); +} + +DeleteRemediationsRequest::~DeleteRemediationsRequest() {} + +std::string DeleteRemediationsRequest::getRemediationIds() const { + return remediationIds_; +} + +void DeleteRemediationsRequest::setRemediationIds(const std::string &remediationIds) { + remediationIds_ = remediationIds; + setBodyParameter(std::string("RemediationIds"), remediationIds); +} + diff --git a/config/src/model/DeleteRemediationsResult.cc b/config/src/model/DeleteRemediationsResult.cc new file mode 100644 index 000000000..e257442cc --- /dev/null +++ b/config/src/model/DeleteRemediationsResult.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; + +DeleteRemediationsResult::DeleteRemediationsResult() : + ServiceResult() +{} + +DeleteRemediationsResult::DeleteRemediationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRemediationsResult::~DeleteRemediationsResult() +{} + +void DeleteRemediationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRemediationDeleteResultsNode = value["RemediationDeleteResults"]["RemediationDeleteResult"]; + for (auto valueRemediationDeleteResultsRemediationDeleteResult : allRemediationDeleteResultsNode) + { + RemediationDeleteResult remediationDeleteResultsObject; + if(!valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].isNull()) + remediationDeleteResultsObject.remediationId = valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].asString(); + if(!valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].isNull()) + remediationDeleteResultsObject.errorMessage = valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].asString(); + if(!valueRemediationDeleteResultsRemediationDeleteResult["Success"].isNull()) + remediationDeleteResultsObject.success = valueRemediationDeleteResultsRemediationDeleteResult["Success"].asString() == "true"; + remediationDeleteResults_.push_back(remediationDeleteResultsObject); + } + +} + +std::vector DeleteRemediationsResult::getRemediationDeleteResults()const +{ + return remediationDeleteResults_; +} + diff --git a/config/src/model/DescribeComplianceRequest.cc b/config/src/model/DescribeComplianceRequest.cc deleted file mode 100644 index 2bfa4ae3f..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::Post); -} - -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 a80fc1e94..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::Post); -} - -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/DescribeConfigRuleRequest.cc b/config/src/model/DescribeConfigRuleRequest.cc deleted file mode 100644 index 086eb8475..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::Post); -} - -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/DescribeDiscoveredResourceRequest.cc b/config/src/model/DescribeDiscoveredResourceRequest.cc deleted file mode 100644 index 1d35cce2f..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::Post); -} - -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/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/EvaluatePreConfigRulesRequest.cc b/config/src/model/EvaluatePreConfigRulesRequest.cc new file mode 100644 index 000000000..786312043 --- /dev/null +++ b/config/src/model/EvaluatePreConfigRulesRequest.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::EvaluatePreConfigRulesRequest; + +EvaluatePreConfigRulesRequest::EvaluatePreConfigRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "EvaluatePreConfigRules") { + setMethod(HttpRequest::Method::Post); +} + +EvaluatePreConfigRulesRequest::~EvaluatePreConfigRulesRequest() {} + +bool EvaluatePreConfigRulesRequest::getEnableManagedRules() const { + return enableManagedRules_; +} + +void EvaluatePreConfigRulesRequest::setEnableManagedRules(bool enableManagedRules) { + enableManagedRules_ = enableManagedRules; + setBodyParameter(std::string("EnableManagedRules"), enableManagedRules ? "true" : "false"); +} + +std::string EvaluatePreConfigRulesRequest::getResourceEvaluateItems() const { + return resourceEvaluateItems_; +} + +void EvaluatePreConfigRulesRequest::setResourceEvaluateItems(const std::string &resourceEvaluateItems) { + resourceEvaluateItems_ = resourceEvaluateItems; + setBodyParameter(std::string("ResourceEvaluateItems"), resourceEvaluateItems); +} + +std::string EvaluatePreConfigRulesRequest::getResourceTypeFormat() const { + return resourceTypeFormat_; +} + +void EvaluatePreConfigRulesRequest::setResourceTypeFormat(const std::string &resourceTypeFormat) { + resourceTypeFormat_ = resourceTypeFormat; + setBodyParameter(std::string("ResourceTypeFormat"), resourceTypeFormat); +} + diff --git a/config/src/model/EvaluatePreConfigRulesResult.cc b/config/src/model/EvaluatePreConfigRulesResult.cc new file mode 100644 index 000000000..26e6ed968 --- /dev/null +++ b/config/src/model/EvaluatePreConfigRulesResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +EvaluatePreConfigRulesResult::EvaluatePreConfigRulesResult() : + ServiceResult() +{} + +EvaluatePreConfigRulesResult::EvaluatePreConfigRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EvaluatePreConfigRulesResult::~EvaluatePreConfigRulesResult() +{} + +void EvaluatePreConfigRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResourceEvaluationsNode = value["ResourceEvaluations"]["ResourceEvaluation"]; + for (auto valueResourceEvaluationsResourceEvaluation : allResourceEvaluationsNode) + { + ResourceEvaluation resourceEvaluationsObject; + if(!valueResourceEvaluationsResourceEvaluation["ResourceLogicalId"].isNull()) + resourceEvaluationsObject.resourceLogicalId = valueResourceEvaluationsResourceEvaluation["ResourceLogicalId"].asString(); + if(!valueResourceEvaluationsResourceEvaluation["ResourceType"].isNull()) + resourceEvaluationsObject.resourceType = valueResourceEvaluationsResourceEvaluation["ResourceType"].asString(); + auto allRulesNode = valueResourceEvaluationsResourceEvaluation["Rules"]["Rule"]; + for (auto valueResourceEvaluationsResourceEvaluationRulesRule : allRulesNode) + { + ResourceEvaluation::Rule rulesObject; + if(!valueResourceEvaluationsResourceEvaluationRulesRule["Identifier"].isNull()) + rulesObject.identifier = valueResourceEvaluationsResourceEvaluationRulesRule["Identifier"].asString(); + if(!valueResourceEvaluationsResourceEvaluationRulesRule["ComplianceType"].isNull()) + rulesObject.complianceType = valueResourceEvaluationsResourceEvaluationRulesRule["ComplianceType"].asString(); + if(!valueResourceEvaluationsResourceEvaluationRulesRule["Annotation"].isNull()) + rulesObject.annotation = valueResourceEvaluationsResourceEvaluationRulesRule["Annotation"].asString(); + if(!valueResourceEvaluationsResourceEvaluationRulesRule["HelpUrl"].isNull()) + rulesObject.helpUrl = valueResourceEvaluationsResourceEvaluationRulesRule["HelpUrl"].asString(); + resourceEvaluationsObject.rules.push_back(rulesObject); + } + resourceEvaluations_.push_back(resourceEvaluationsObject); + } + +} + +std::vector EvaluatePreConfigRulesResult::getResourceEvaluations()const +{ + return resourceEvaluations_; +} + 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..1a7ebe77d --- /dev/null +++ b/config/src/model/GenerateAggregateConfigRulesReportRequest.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::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::getConfigRuleIds() const { + return configRuleIds_; +} + +void GenerateAggregateConfigRulesReportRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setBodyParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +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..33175c52a --- /dev/null +++ b/config/src/model/GenerateAggregateConfigRulesReportResult.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; + +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(); + if(!value["ReportId"].isNull()) + reportId_ = value["ReportId"].asString(); + +} + +std::string GenerateAggregateConfigRulesReportResult::getReportId()const +{ + return reportId_; +} + +std::string GenerateAggregateConfigRulesReportResult::getAggregatorId()const +{ + return aggregatorId_; +} + diff --git a/config/src/model/GenerateAggregateResourceInventoryRequest.cc b/config/src/model/GenerateAggregateResourceInventoryRequest.cc new file mode 100644 index 000000000..0c8ed6b00 --- /dev/null +++ b/config/src/model/GenerateAggregateResourceInventoryRequest.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::GenerateAggregateResourceInventoryRequest; + +GenerateAggregateResourceInventoryRequest::GenerateAggregateResourceInventoryRequest() + : RpcServiceRequest("config", "2020-09-07", "GenerateAggregateResourceInventory") { + setMethod(HttpRequest::Method::Post); +} + +GenerateAggregateResourceInventoryRequest::~GenerateAggregateResourceInventoryRequest() {} + +std::string GenerateAggregateResourceInventoryRequest::getRegions() const { + return regions_; +} + +void GenerateAggregateResourceInventoryRequest::setRegions(const std::string ®ions) { + regions_ = regions; + setParameter(std::string("Regions"), regions); +} + +std::string GenerateAggregateResourceInventoryRequest::getResourceTypes() const { + return resourceTypes_; +} + +void GenerateAggregateResourceInventoryRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setParameter(std::string("ResourceTypes"), resourceTypes); +} + +std::string GenerateAggregateResourceInventoryRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GenerateAggregateResourceInventoryRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GenerateAggregateResourceInventoryRequest::getAccountIds() const { + return accountIds_; +} + +void GenerateAggregateResourceInventoryRequest::setAccountIds(const std::string &accountIds) { + accountIds_ = accountIds; + setParameter(std::string("AccountIds"), accountIds); +} + diff --git a/config/src/model/GenerateAggregateResourceInventoryResult.cc b/config/src/model/GenerateAggregateResourceInventoryResult.cc new file mode 100644 index 000000000..db377d8b7 --- /dev/null +++ b/config/src/model/GenerateAggregateResourceInventoryResult.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; + +GenerateAggregateResourceInventoryResult::GenerateAggregateResourceInventoryResult() : + ServiceResult() +{} + +GenerateAggregateResourceInventoryResult::GenerateAggregateResourceInventoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateAggregateResourceInventoryResult::~GenerateAggregateResourceInventoryResult() +{} + +void GenerateAggregateResourceInventoryResult::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/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/GenerateConfigRulesReportRequest.cc b/config/src/model/GenerateConfigRulesReportRequest.cc new file mode 100644 index 000000000..d5c5273d0 --- /dev/null +++ b/config/src/model/GenerateConfigRulesReportRequest.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::GenerateConfigRulesReportRequest; + +GenerateConfigRulesReportRequest::GenerateConfigRulesReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GenerateConfigRulesReport") { + setMethod(HttpRequest::Method::Post); +} + +GenerateConfigRulesReportRequest::~GenerateConfigRulesReportRequest() {} + +std::string GenerateConfigRulesReportRequest::getClientToken() const { + return clientToken_; +} + +void GenerateConfigRulesReportRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string GenerateConfigRulesReportRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void GenerateConfigRulesReportRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setBodyParameter(std::string("ConfigRuleIds"), configRuleIds); +} + diff --git a/config/src/model/GenerateConfigRulesReportResult.cc b/config/src/model/GenerateConfigRulesReportResult.cc new file mode 100644 index 000000000..a9d8f2b70 --- /dev/null +++ b/config/src/model/GenerateConfigRulesReportResult.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; + +GenerateConfigRulesReportResult::GenerateConfigRulesReportResult() : + ServiceResult() +{} + +GenerateConfigRulesReportResult::GenerateConfigRulesReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateConfigRulesReportResult::~GenerateConfigRulesReportResult() +{} + +void GenerateConfigRulesReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ReportId"].isNull()) + reportId_ = value["ReportId"].asString(); + +} + +std::string GenerateConfigRulesReportResult::getReportId()const +{ + return reportId_; +} + diff --git a/config/src/model/GenerateResourceInventoryRequest.cc b/config/src/model/GenerateResourceInventoryRequest.cc new file mode 100644 index 000000000..ff6f0f345 --- /dev/null +++ b/config/src/model/GenerateResourceInventoryRequest.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::GenerateResourceInventoryRequest; + +GenerateResourceInventoryRequest::GenerateResourceInventoryRequest() + : RpcServiceRequest("config", "2020-09-07", "GenerateResourceInventory") { + setMethod(HttpRequest::Method::Post); +} + +GenerateResourceInventoryRequest::~GenerateResourceInventoryRequest() {} + +std::string GenerateResourceInventoryRequest::getRegions() const { + return regions_; +} + +void GenerateResourceInventoryRequest::setRegions(const std::string ®ions) { + regions_ = regions; + setParameter(std::string("Regions"), regions); +} + +std::string GenerateResourceInventoryRequest::getResourceTypes() const { + return resourceTypes_; +} + +void GenerateResourceInventoryRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setParameter(std::string("ResourceTypes"), resourceTypes); +} + diff --git a/config/src/model/GenerateResourceInventoryResult.cc b/config/src/model/GenerateResourceInventoryResult.cc new file mode 100644 index 000000000..21d79c328 --- /dev/null +++ b/config/src/model/GenerateResourceInventoryResult.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; + +GenerateResourceInventoryResult::GenerateResourceInventoryResult() : + ServiceResult() +{} + +GenerateResourceInventoryResult::GenerateResourceInventoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateResourceInventoryResult::~GenerateResourceInventoryResult() +{} + +void GenerateResourceInventoryResult::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/DescribeConfigurationRecorderRequest.cc b/config/src/model/GetAdvancedSearchFileRequest.cc similarity index 62% rename from config/src/model/DescribeConfigurationRecorderRequest.cc rename to config/src/model/GetAdvancedSearchFileRequest.cc index eb1ce6c9b..4d5425da5 100644 --- a/config/src/model/DescribeConfigurationRecorderRequest.cc +++ b/config/src/model/GetAdvancedSearchFileRequest.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::DescribeConfigurationRecorderRequest; +using AlibabaCloud::Config::Model::GetAdvancedSearchFileRequest; -DescribeConfigurationRecorderRequest::DescribeConfigurationRecorderRequest() - : RpcServiceRequest("config", "2019-01-08", "DescribeConfigurationRecorder") { +GetAdvancedSearchFileRequest::GetAdvancedSearchFileRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAdvancedSearchFile") { setMethod(HttpRequest::Method::Post); } -DescribeConfigurationRecorderRequest::~DescribeConfigurationRecorderRequest() {} +GetAdvancedSearchFileRequest::~GetAdvancedSearchFileRequest() {} diff --git a/config/src/model/GetAdvancedSearchFileResult.cc b/config/src/model/GetAdvancedSearchFileResult.cc new file mode 100644 index 000000000..a2221e787 --- /dev/null +++ b/config/src/model/GetAdvancedSearchFileResult.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; + +GetAdvancedSearchFileResult::GetAdvancedSearchFileResult() : + ServiceResult() +{} + +GetAdvancedSearchFileResult::GetAdvancedSearchFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAdvancedSearchFileResult::~GetAdvancedSearchFileResult() +{} + +void GetAdvancedSearchFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceSearchNode = value["ResourceSearch"]; + if(!resourceSearchNode["DownloadUrl"].isNull()) + resourceSearch_.downloadUrl = resourceSearchNode["DownloadUrl"].asString(); + if(!resourceSearchNode["Status"].isNull()) + resourceSearch_.status = resourceSearchNode["Status"].asString(); + if(!resourceSearchNode["AccountId"].isNull()) + resourceSearch_.accountId = std::stol(resourceSearchNode["AccountId"].asString()); + if(!resourceSearchNode["ResourceInventoryGenerateTime"].isNull()) + resourceSearch_.resourceInventoryGenerateTime = std::stol(resourceSearchNode["ResourceInventoryGenerateTime"].asString()); + +} + +GetAdvancedSearchFileResult::ResourceSearch GetAdvancedSearchFileResult::getResourceSearch()const +{ + return resourceSearch_; +} + 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/GetAggregateAdvancedSearchFileRequest.cc b/config/src/model/GetAggregateAdvancedSearchFileRequest.cc new file mode 100644 index 000000000..5aa3660d2 --- /dev/null +++ b/config/src/model/GetAggregateAdvancedSearchFileRequest.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::GetAggregateAdvancedSearchFileRequest; + +GetAggregateAdvancedSearchFileRequest::GetAggregateAdvancedSearchFileRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateAdvancedSearchFile") { + setMethod(HttpRequest::Method::Post); +} + +GetAggregateAdvancedSearchFileRequest::~GetAggregateAdvancedSearchFileRequest() {} + +std::string GetAggregateAdvancedSearchFileRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateAdvancedSearchFileRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/GetAggregateAdvancedSearchFileResult.cc b/config/src/model/GetAggregateAdvancedSearchFileResult.cc new file mode 100644 index 000000000..67e447bfb --- /dev/null +++ b/config/src/model/GetAggregateAdvancedSearchFileResult.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; + +GetAggregateAdvancedSearchFileResult::GetAggregateAdvancedSearchFileResult() : + ServiceResult() +{} + +GetAggregateAdvancedSearchFileResult::GetAggregateAdvancedSearchFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateAdvancedSearchFileResult::~GetAggregateAdvancedSearchFileResult() +{} + +void GetAggregateAdvancedSearchFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceSearchNode = value["ResourceSearch"]; + if(!resourceSearchNode["DownloadUrl"].isNull()) + resourceSearch_.downloadUrl = resourceSearchNode["DownloadUrl"].asString(); + if(!resourceSearchNode["Status"].isNull()) + resourceSearch_.status = resourceSearchNode["Status"].asString(); + if(!resourceSearchNode["AccountId"].isNull()) + resourceSearch_.accountId = std::stol(resourceSearchNode["AccountId"].asString()); + if(!resourceSearchNode["ResourceInventoryGenerateTime"].isNull()) + resourceSearch_.resourceInventoryGenerateTime = std::stol(resourceSearchNode["ResourceInventoryGenerateTime"].asString()); + +} + +GetAggregateAdvancedSearchFileResult::ResourceSearch GetAggregateAdvancedSearchFileResult::getResourceSearch()const +{ + return resourceSearch_; +} + 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..481a24e72 --- /dev/null +++ b/config/src/model/GetAggregateCompliancePackResult.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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()); + if(!compliancePackNodeConfigRulesConfigRulesItem["ResourceTypesScope"].isNull()) + configRulesItemObject.resourceTypesScope = compliancePackNodeConfigRulesConfigRulesItem["ResourceTypesScope"].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); + } + auto scopeNode = compliancePackNode["Scope"]; + if(!scopeNode["RegionIdsScope"].isNull()) + compliancePack_.scope.regionIdsScope = scopeNode["RegionIdsScope"].asString(); + if(!scopeNode["ExcludeResourceIdsScope"].isNull()) + compliancePack_.scope.excludeResourceIdsScope = scopeNode["ExcludeResourceIdsScope"].asString(); + if(!scopeNode["ResourceGroupIdsScope"].isNull()) + compliancePack_.scope.resourceGroupIdsScope = scopeNode["ResourceGroupIdsScope"].asString(); + if(!scopeNode["TagKeyScope"].isNull()) + compliancePack_.scope.tagKeyScope = scopeNode["TagKeyScope"].asString(); + if(!scopeNode["TagValueScope"].isNull()) + compliancePack_.scope.tagValueScope = scopeNode["TagValueScope"].asString(); + +} + +GetAggregateCompliancePackResult::CompliancePack GetAggregateCompliancePackResult::getCompliancePack()const +{ + return compliancePack_; +} + diff --git a/config/src/model/GetAggregateComplianceSummaryRequest.cc b/config/src/model/GetAggregateComplianceSummaryRequest.cc new file mode 100644 index 000000000..28a9519eb --- /dev/null +++ b/config/src/model/GetAggregateComplianceSummaryRequest.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::GetAggregateComplianceSummaryRequest; + +GetAggregateComplianceSummaryRequest::GetAggregateComplianceSummaryRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateComplianceSummary") { + setMethod(HttpRequest::Method::Post); +} + +GetAggregateComplianceSummaryRequest::~GetAggregateComplianceSummaryRequest() {} + +std::string GetAggregateComplianceSummaryRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateComplianceSummaryRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/GetAggregateComplianceSummaryResult.cc b/config/src/model/GetAggregateComplianceSummaryResult.cc new file mode 100644 index 000000000..ef6589d78 --- /dev/null +++ b/config/src/model/GetAggregateComplianceSummaryResult.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; + +GetAggregateComplianceSummaryResult::GetAggregateComplianceSummaryResult() : + ServiceResult() +{} + +GetAggregateComplianceSummaryResult::GetAggregateComplianceSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateComplianceSummaryResult::~GetAggregateComplianceSummaryResult() +{} + +void GetAggregateComplianceSummaryResult::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()); + +} + +GetAggregateComplianceSummaryResult::ComplianceSummary GetAggregateComplianceSummaryResult::getComplianceSummary()const +{ + return complianceSummary_; +} + diff --git a/config/src/model/GetAggregateConfigDeliveryChannelRequest.cc b/config/src/model/GetAggregateConfigDeliveryChannelRequest.cc new file mode 100644 index 000000000..6a4502a54 --- /dev/null +++ b/config/src/model/GetAggregateConfigDeliveryChannelRequest.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::GetAggregateConfigDeliveryChannelRequest; + +GetAggregateConfigDeliveryChannelRequest::GetAggregateConfigDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +GetAggregateConfigDeliveryChannelRequest::~GetAggregateConfigDeliveryChannelRequest() {} + +std::string GetAggregateConfigDeliveryChannelRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string GetAggregateConfigDeliveryChannelRequest::getDeliveryChannelId() const { + return deliveryChannelId_; +} + +void GetAggregateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { + deliveryChannelId_ = deliveryChannelId; + setParameter(std::string("DeliveryChannelId"), deliveryChannelId); +} + diff --git a/config/src/model/GetAggregateConfigDeliveryChannelResult.cc b/config/src/model/GetAggregateConfigDeliveryChannelResult.cc new file mode 100644 index 000000000..069735344 --- /dev/null +++ b/config/src/model/GetAggregateConfigDeliveryChannelResult.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; + +GetAggregateConfigDeliveryChannelResult::GetAggregateConfigDeliveryChannelResult() : + ServiceResult() +{} + +GetAggregateConfigDeliveryChannelResult::GetAggregateConfigDeliveryChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateConfigDeliveryChannelResult::~GetAggregateConfigDeliveryChannelResult() +{} + +void GetAggregateConfigDeliveryChannelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto deliveryChannelNode = value["DeliveryChannel"]; + if(!deliveryChannelNode["Status"].isNull()) + deliveryChannel_.status = std::stoi(deliveryChannelNode["Status"].asString()); + if(!deliveryChannelNode["DeliveryChannelId"].isNull()) + deliveryChannel_.deliveryChannelId = deliveryChannelNode["DeliveryChannelId"].asString(); + if(!deliveryChannelNode["DeliveryChannelName"].isNull()) + deliveryChannel_.deliveryChannelName = deliveryChannelNode["DeliveryChannelName"].asString(); + if(!deliveryChannelNode["DeliveryChannelType"].isNull()) + deliveryChannel_.deliveryChannelType = deliveryChannelNode["DeliveryChannelType"].asString(); + if(!deliveryChannelNode["DeliveryChannelTargetArn"].isNull()) + deliveryChannel_.deliveryChannelTargetArn = deliveryChannelNode["DeliveryChannelTargetArn"].asString(); + if(!deliveryChannelNode["DeliveryChannelAssumeRoleArn"].isNull()) + deliveryChannel_.deliveryChannelAssumeRoleArn = deliveryChannelNode["DeliveryChannelAssumeRoleArn"].asString(); + if(!deliveryChannelNode["DeliveryChannelCondition"].isNull()) + deliveryChannel_.deliveryChannelCondition = deliveryChannelNode["DeliveryChannelCondition"].asString(); + if(!deliveryChannelNode["OversizedDataOSSTargetArn"].isNull()) + deliveryChannel_.oversizedDataOSSTargetArn = deliveryChannelNode["OversizedDataOSSTargetArn"].asString(); + if(!deliveryChannelNode["Description"].isNull()) + deliveryChannel_.description = deliveryChannelNode["Description"].asString(); + if(!deliveryChannelNode["ConfigurationSnapshot"].isNull()) + deliveryChannel_.configurationSnapshot = deliveryChannelNode["ConfigurationSnapshot"].asString() == "true"; + if(!deliveryChannelNode["ConfigurationItemChangeNotification"].isNull()) + deliveryChannel_.configurationItemChangeNotification = deliveryChannelNode["ConfigurationItemChangeNotification"].asString() == "true"; + if(!deliveryChannelNode["NonCompliantNotification"].isNull()) + deliveryChannel_.nonCompliantNotification = deliveryChannelNode["NonCompliantNotification"].asString() == "true"; + if(!deliveryChannelNode["AggregatorId"].isNull()) + deliveryChannel_.aggregatorId = deliveryChannelNode["AggregatorId"].asString(); + if(!deliveryChannelNode["AccountId"].isNull()) + deliveryChannel_.accountId = deliveryChannelNode["AccountId"].asString(); + if(!deliveryChannelNode["DeliverySnapshotTime"].isNull()) + deliveryChannel_.deliverySnapshotTime = deliveryChannelNode["DeliverySnapshotTime"].asString(); + +} + +GetAggregateConfigDeliveryChannelResult::DeliveryChannel GetAggregateConfigDeliveryChannelResult::getDeliveryChannel()const +{ + return deliveryChannel_; +} + 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/GetAggregateConfigRuleResult.cc b/config/src/model/GetAggregateConfigRuleResult.cc new file mode 100644 index 000000000..d49974770 --- /dev/null +++ b/config/src/model/GetAggregateConfigRuleResult.cc @@ -0,0 +1,185 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetAggregateConfigRuleResult::GetAggregateConfigRuleResult() : + ServiceResult() +{} + +GetAggregateConfigRuleResult::GetAggregateConfigRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateConfigRuleResult::~GetAggregateConfigRuleResult() +{} + +void GetAggregateConfigRuleResult::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(); + if(!configRuleNode["TagKeyLogicScope"].isNull()) + configRule_.tagKeyLogicScope = configRuleNode["TagKeyLogicScope"].asString(); + if(!configRuleNode["FolderIdsScope"].isNull()) + configRule_.folderIdsScope = configRuleNode["FolderIdsScope"].asString(); + if(!configRuleNode["ExcludeFolderIdsScope"].isNull()) + configRule_.excludeFolderIdsScope = configRuleNode["ExcludeFolderIdsScope"].asString(); + if(!configRuleNode["ExcludeAccountIdsScope"].isNull()) + configRule_.excludeAccountIdsScope = configRuleNode["ExcludeAccountIdsScope"].asString(); + if(!configRuleNode["AccountId"].isNull()) + configRule_.accountId = std::stol(configRuleNode["AccountId"].asString()); + if(!configRuleNode["ServiceChannel"].isNull()) + configRule_.serviceChannel = configRuleNode["ServiceChannel"].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()); + auto complianceNode = configRuleNode["Compliance"]; + if(!complianceNode["ComplianceType"].isNull()) + configRule_.compliance.complianceType = complianceNode["ComplianceType"].asString(); + if(!complianceNode["Count"].isNull()) + configRule_.compliance.count = std::stoi(complianceNode["Count"].asString()); + +} + +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..92ca9985a --- /dev/null +++ b/config/src/model/GetAggregateConfigRulesReportRequest.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::GetAggregateConfigRulesReportRequest; + +GetAggregateConfigRulesReportRequest::GetAggregateConfigRulesReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRulesReport") { + setMethod(HttpRequest::Method::Post); +} + +GetAggregateConfigRulesReportRequest::~GetAggregateConfigRulesReportRequest() {} + +std::string GetAggregateConfigRulesReportRequest::getReportId() const { + return reportId_; +} + +void GetAggregateConfigRulesReportRequest::setReportId(const std::string &reportId) { + reportId_ = reportId; + setParameter(std::string("ReportId"), reportId); +} + +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..badc8a3ed --- /dev/null +++ b/config/src/model/GetAggregateConfigRulesReportResult.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; + +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()); + if(!configRulesReportNode["ReportId"].isNull()) + configRulesReport_.reportId = configRulesReportNode["ReportId"].asString(); + +} + +GetAggregateConfigRulesReportResult::ConfigRulesReport GetAggregateConfigRulesReportResult::getConfigRulesReport()const +{ + return configRulesReport_; +} + diff --git a/config/src/model/GetAggregateDiscoveredResourceRequest.cc b/config/src/model/GetAggregateDiscoveredResourceRequest.cc index 7087638b5..5791dbf16 100644 --- a/config/src/model/GetAggregateDiscoveredResourceRequest.cc +++ b/config/src/model/GetAggregateDiscoveredResourceRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::GetAggregateDiscoveredResourceRequest; GetAggregateDiscoveredResourceRequest::GetAggregateDiscoveredResourceRequest() - : RpcServiceRequest("config", "2019-01-08", "GetAggregateDiscoveredResource") { + : RpcServiceRequest("config", "2020-09-07", "GetAggregateDiscoveredResource") { setMethod(HttpRequest::Method::Get); } @@ -61,6 +61,15 @@ void GetAggregateDiscoveredResourceRequest::setResourceType(const std::string &r setParameter(std::string("ResourceType"), resourceType); } +long GetAggregateDiscoveredResourceRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void GetAggregateDiscoveredResourceRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + std::string GetAggregateDiscoveredResourceRequest::getRegion() const { return region_; } diff --git a/config/src/model/GetAggregateDiscoveredResourceResult.cc b/config/src/model/GetAggregateDiscoveredResourceResult.cc index 905034b28..e3dc4bf9c 100644 --- a/config/src/model/GetAggregateDiscoveredResourceResult.cc +++ b/config/src/model/GetAggregateDiscoveredResourceResult.cc @@ -62,6 +62,8 @@ void GetAggregateDiscoveredResourceResult::parse(const std::string &payload) discoveredResourceDetail_.resourceName = discoveredResourceDetailNode["ResourceName"].asString(); if(!discoveredResourceDetailNode["ResourceStatus"].isNull()) discoveredResourceDetail_.resourceStatus = discoveredResourceDetailNode["ResourceStatus"].asString(); + if(!discoveredResourceDetailNode["Version"].isNull()) + discoveredResourceDetail_.version = std::stol(discoveredResourceDetailNode["Version"].asString()); } diff --git a/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc b/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc new file mode 100644 index 000000000..935d1c5b4 --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.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::GetAggregateResourceComplianceByConfigRuleRequest; + +GetAggregateResourceComplianceByConfigRuleRequest::GetAggregateResourceComplianceByConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceByConfigRule") { + setMethod(HttpRequest::Method::Post); +} + +GetAggregateResourceComplianceByConfigRuleRequest::~GetAggregateResourceComplianceByConfigRuleRequest() {} + +std::string GetAggregateResourceComplianceByConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; +} + +void GetAggregateResourceComplianceByConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +long GetAggregateResourceComplianceByConfigRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetAggregateResourceComplianceByConfigRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetAggregateResourceComplianceByConfigRuleRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceComplianceByConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +long GetAggregateResourceComplianceByConfigRuleRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void GetAggregateResourceComplianceByConfigRuleRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + +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/GetAggregateResourceComplianceGroupByRegionRequest.cc b/config/src/model/GetAggregateResourceComplianceGroupByRegionRequest.cc new file mode 100644 index 000000000..d2f86f9cf --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceGroupByRegionRequest.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::GetAggregateResourceComplianceGroupByRegionRequest; + +GetAggregateResourceComplianceGroupByRegionRequest::GetAggregateResourceComplianceGroupByRegionRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceGroupByRegion") { + setMethod(HttpRequest::Method::Post); +} + +GetAggregateResourceComplianceGroupByRegionRequest::~GetAggregateResourceComplianceGroupByRegionRequest() {} + +std::string GetAggregateResourceComplianceGroupByRegionRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void GetAggregateResourceComplianceGroupByRegionRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string GetAggregateResourceComplianceGroupByRegionRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceComplianceGroupByRegionRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/GetAggregateResourceComplianceGroupByRegionResult.cc b/config/src/model/GetAggregateResourceComplianceGroupByRegionResult.cc new file mode 100644 index 000000000..04e590948 --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceGroupByRegionResult.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; + +GetAggregateResourceComplianceGroupByRegionResult::GetAggregateResourceComplianceGroupByRegionResult() : + ServiceResult() +{} + +GetAggregateResourceComplianceGroupByRegionResult::GetAggregateResourceComplianceGroupByRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateResourceComplianceGroupByRegionResult::~GetAggregateResourceComplianceGroupByRegionResult() +{} + +void GetAggregateResourceComplianceGroupByRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto complianceResultNode = value["ComplianceResult"]; + auto allComplianceResultListNode = complianceResultNode["ComplianceResultList"]["ComplianceResultListItem"]; + for (auto complianceResultNodeComplianceResultListComplianceResultListItem : allComplianceResultListNode) + { + ComplianceResult::ComplianceResultListItem complianceResultListItemObject; + if(!complianceResultNodeComplianceResultListComplianceResultListItem["RegionId"].isNull()) + complianceResultListItemObject.regionId = complianceResultNodeComplianceResultListComplianceResultListItem["RegionId"].asString(); + auto allCompliancesNode = complianceResultNodeComplianceResultListComplianceResultListItem["Compliances"]["CompliancesItem"]; + for (auto complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem : allCompliancesNode) + { + ComplianceResult::ComplianceResultListItem::CompliancesItem compliancesObject; + if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].isNull()) + compliancesObject.complianceType = complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].asString(); + if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].isNull()) + compliancesObject.count = std::stol(complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].asString()); + complianceResultListItemObject.compliances.push_back(compliancesObject); + } + complianceResult_.complianceResultList.push_back(complianceResultListItemObject); + } + +} + +GetAggregateResourceComplianceGroupByRegionResult::ComplianceResult GetAggregateResourceComplianceGroupByRegionResult::getComplianceResult()const +{ + return complianceResult_; +} + diff --git a/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.cc b/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.cc new file mode 100644 index 000000000..31a348f93 --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.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::GetAggregateResourceComplianceGroupByResourceTypeRequest; + +GetAggregateResourceComplianceGroupByResourceTypeRequest::GetAggregateResourceComplianceGroupByResourceTypeRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceGroupByResourceType") { + setMethod(HttpRequest::Method::Post); +} + +GetAggregateResourceComplianceGroupByResourceTypeRequest::~GetAggregateResourceComplianceGroupByResourceTypeRequest() {} + +std::string GetAggregateResourceComplianceGroupByResourceTypeRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void GetAggregateResourceComplianceGroupByResourceTypeRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string GetAggregateResourceComplianceGroupByResourceTypeRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceComplianceGroupByResourceTypeRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeResult.cc b/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeResult.cc new file mode 100644 index 000000000..06347c007 --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeResult.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; + +GetAggregateResourceComplianceGroupByResourceTypeResult::GetAggregateResourceComplianceGroupByResourceTypeResult() : + ServiceResult() +{} + +GetAggregateResourceComplianceGroupByResourceTypeResult::GetAggregateResourceComplianceGroupByResourceTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateResourceComplianceGroupByResourceTypeResult::~GetAggregateResourceComplianceGroupByResourceTypeResult() +{} + +void GetAggregateResourceComplianceGroupByResourceTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto complianceResultNode = value["ComplianceResult"]; + auto allComplianceResultListNode = complianceResultNode["ComplianceResultList"]["ComplianceResultListItem"]; + for (auto complianceResultNodeComplianceResultListComplianceResultListItem : allComplianceResultListNode) + { + ComplianceResult::ComplianceResultListItem complianceResultListItemObject; + if(!complianceResultNodeComplianceResultListComplianceResultListItem["ResourceType"].isNull()) + complianceResultListItemObject.resourceType = complianceResultNodeComplianceResultListComplianceResultListItem["ResourceType"].asString(); + auto allCompliancesNode = complianceResultNodeComplianceResultListComplianceResultListItem["Compliances"]["CompliancesItem"]; + for (auto complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem : allCompliancesNode) + { + ComplianceResult::ComplianceResultListItem::CompliancesItem compliancesObject; + if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].isNull()) + compliancesObject.complianceType = complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].asString(); + if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].isNull()) + compliancesObject.count = std::stol(complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].asString()); + complianceResultListItemObject.compliances.push_back(compliancesObject); + } + complianceResult_.complianceResultList.push_back(complianceResultListItemObject); + } + +} + +GetAggregateResourceComplianceGroupByResourceTypeResult::ComplianceResult GetAggregateResourceComplianceGroupByResourceTypeResult::getComplianceResult()const +{ + return complianceResult_; +} + diff --git a/config/src/model/GetAggregateResourceComplianceTimelineRequest.cc b/config/src/model/GetAggregateResourceComplianceTimelineRequest.cc new file mode 100644 index 000000000..5d5b09f70 --- /dev/null +++ b/config/src/model/GetAggregateResourceComplianceTimelineRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::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)); +} + +long GetAggregateResourceComplianceTimelineRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void GetAggregateResourceComplianceTimelineRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + +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..fbee5bef4 --- /dev/null +++ b/config/src/model/GetAggregateResourceConfigurationTimelineRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::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)); +} + +long GetAggregateResourceConfigurationTimelineRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void GetAggregateResourceConfigurationTimelineRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + +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..854333cd5 --- /dev/null +++ b/config/src/model/GetAggregateResourceCountsGroupByRegionRequest.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::GetAggregateResourceCountsGroupByRegionRequest; + +GetAggregateResourceCountsGroupByRegionRequest::GetAggregateResourceCountsGroupByRegionRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceCountsGroupByRegion") { + setMethod(HttpRequest::Method::Post); +} + +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); +} + +long GetAggregateResourceCountsGroupByRegionRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void GetAggregateResourceCountsGroupByRegionRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + 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..9ee7c3c81 --- /dev/null +++ b/config/src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.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::GetAggregateResourceCountsGroupByResourceTypeRequest; + +GetAggregateResourceCountsGroupByResourceTypeRequest::GetAggregateResourceCountsGroupByResourceTypeRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceCountsGroupByResourceType") { + setMethod(HttpRequest::Method::Post); +} + +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); +} + +long GetAggregateResourceCountsGroupByResourceTypeRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void GetAggregateResourceCountsGroupByResourceTypeRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + +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/GetAggregateResourceInventoryRequest.cc b/config/src/model/GetAggregateResourceInventoryRequest.cc new file mode 100644 index 000000000..c8e37507c --- /dev/null +++ b/config/src/model/GetAggregateResourceInventoryRequest.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::GetAggregateResourceInventoryRequest; + +GetAggregateResourceInventoryRequest::GetAggregateResourceInventoryRequest() + : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceInventory") { + setMethod(HttpRequest::Method::Post); +} + +GetAggregateResourceInventoryRequest::~GetAggregateResourceInventoryRequest() {} + +std::string GetAggregateResourceInventoryRequest::getAggregatorId() const { + return aggregatorId_; +} + +void GetAggregateResourceInventoryRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/GetAggregateResourceInventoryResult.cc b/config/src/model/GetAggregateResourceInventoryResult.cc new file mode 100644 index 000000000..c1f3c77bf --- /dev/null +++ b/config/src/model/GetAggregateResourceInventoryResult.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; + +GetAggregateResourceInventoryResult::GetAggregateResourceInventoryResult() : + ServiceResult() +{} + +GetAggregateResourceInventoryResult::GetAggregateResourceInventoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAggregateResourceInventoryResult::~GetAggregateResourceInventoryResult() +{} + +void GetAggregateResourceInventoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceInventoryNode = value["ResourceInventory"]; + if(!resourceInventoryNode["DownloadUrl"].isNull()) + resourceInventory_.downloadUrl = resourceInventoryNode["DownloadUrl"].asString(); + if(!resourceInventoryNode["Status"].isNull()) + resourceInventory_.status = resourceInventoryNode["Status"].asString(); + if(!resourceInventoryNode["AccountId"].isNull()) + resourceInventory_.accountId = std::stol(resourceInventoryNode["AccountId"].asString()); + if(!resourceInventoryNode["ResourceInventoryGenerateTime"].isNull()) + resourceInventory_.resourceInventoryGenerateTime = std::stol(resourceInventoryNode["ResourceInventoryGenerateTime"].asString()); + +} + +GetAggregateResourceInventoryResult::ResourceInventory GetAggregateResourceInventoryResult::getResourceInventory()const +{ + return resourceInventory_; +} + 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..b72860acf --- /dev/null +++ b/config/src/model/GetCompliancePackResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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()); + if(!compliancePackNodeConfigRulesConfigRulesItem["ResourceTypesScope"].isNull()) + configRulesItemObject.resourceTypesScope = compliancePackNodeConfigRulesConfigRulesItem["ResourceTypesScope"].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); + } + auto scopeNode = compliancePackNode["Scope"]; + if(!scopeNode["RegionIdsScope"].isNull()) + compliancePack_.scope.regionIdsScope = scopeNode["RegionIdsScope"].asString(); + if(!scopeNode["ExcludeResourceIdsScope"].isNull()) + compliancePack_.scope.excludeResourceIdsScope = scopeNode["ExcludeResourceIdsScope"].asString(); + if(!scopeNode["ResourceGroupIdsScope"].isNull()) + compliancePack_.scope.resourceGroupIdsScope = scopeNode["ResourceGroupIdsScope"].asString(); + if(!scopeNode["TagKeyScope"].isNull()) + compliancePack_.scope.tagKeyScope = scopeNode["TagKeyScope"].asString(); + if(!scopeNode["TagValueScope"].isNull()) + compliancePack_.scope.tagValueScope = scopeNode["TagValueScope"].asString(); + +} + +GetCompliancePackResult::CompliancePack GetCompliancePackResult::getCompliancePack()const +{ + return compliancePack_; +} + diff --git a/config/src/model/GetComplianceSummaryRequest.cc b/config/src/model/GetComplianceSummaryRequest.cc new file mode 100644 index 000000000..c0e790e70 --- /dev/null +++ b/config/src/model/GetComplianceSummaryRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::GetComplianceSummaryRequest; + +GetComplianceSummaryRequest::GetComplianceSummaryRequest() + : RpcServiceRequest("config", "2020-09-07", "GetComplianceSummary") { + setMethod(HttpRequest::Method::Post); +} + +GetComplianceSummaryRequest::~GetComplianceSummaryRequest() {} + diff --git a/config/src/model/DescribeComplianceSummaryResult.cc b/config/src/model/GetComplianceSummaryResult.cc similarity index 85% rename from config/src/model/DescribeComplianceSummaryResult.cc rename to config/src/model/GetComplianceSummaryResult.cc index c0f890fad..fbccd2627 100644 --- a/config/src/model/DescribeComplianceSummaryResult.cc +++ b/config/src/model/GetComplianceSummaryResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DescribeComplianceSummaryResult::DescribeComplianceSummaryResult() : +GetComplianceSummaryResult::GetComplianceSummaryResult() : ServiceResult() {} -DescribeComplianceSummaryResult::DescribeComplianceSummaryResult(const std::string &payload) : +GetComplianceSummaryResult::GetComplianceSummaryResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeComplianceSummaryResult::~DescribeComplianceSummaryResult() +GetComplianceSummaryResult::~GetComplianceSummaryResult() {} -void DescribeComplianceSummaryResult::parse(const std::string &payload) +void GetComplianceSummaryResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -61,7 +61,7 @@ void DescribeComplianceSummaryResult::parse(const std::string &payload) } -DescribeComplianceSummaryResult::ComplianceSummary DescribeComplianceSummaryResult::getComplianceSummary()const +GetComplianceSummaryResult::ComplianceSummary GetComplianceSummaryResult::getComplianceSummary()const { return complianceSummary_; } diff --git a/config/src/model/GetConfigDeliveryChannelRequest.cc b/config/src/model/GetConfigDeliveryChannelRequest.cc new file mode 100644 index 000000000..ae9d07336 --- /dev/null +++ b/config/src/model/GetConfigDeliveryChannelRequest.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::GetConfigDeliveryChannelRequest; + +GetConfigDeliveryChannelRequest::GetConfigDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "GetConfigDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +GetConfigDeliveryChannelRequest::~GetConfigDeliveryChannelRequest() {} + +std::string GetConfigDeliveryChannelRequest::getDeliveryChannelId() const { + return deliveryChannelId_; +} + +void GetConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { + deliveryChannelId_ = deliveryChannelId; + setParameter(std::string("DeliveryChannelId"), deliveryChannelId); +} + diff --git a/config/src/model/GetConfigDeliveryChannelResult.cc b/config/src/model/GetConfigDeliveryChannelResult.cc new file mode 100644 index 000000000..767fe6908 --- /dev/null +++ b/config/src/model/GetConfigDeliveryChannelResult.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; + +GetConfigDeliveryChannelResult::GetConfigDeliveryChannelResult() : + ServiceResult() +{} + +GetConfigDeliveryChannelResult::GetConfigDeliveryChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConfigDeliveryChannelResult::~GetConfigDeliveryChannelResult() +{} + +void GetConfigDeliveryChannelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto deliveryChannelNode = value["DeliveryChannel"]; + if(!deliveryChannelNode["Status"].isNull()) + deliveryChannel_.status = std::stoi(deliveryChannelNode["Status"].asString()); + if(!deliveryChannelNode["DeliveryChannelId"].isNull()) + deliveryChannel_.deliveryChannelId = deliveryChannelNode["DeliveryChannelId"].asString(); + if(!deliveryChannelNode["DeliveryChannelName"].isNull()) + deliveryChannel_.deliveryChannelName = deliveryChannelNode["DeliveryChannelName"].asString(); + if(!deliveryChannelNode["DeliveryChannelType"].isNull()) + deliveryChannel_.deliveryChannelType = deliveryChannelNode["DeliveryChannelType"].asString(); + if(!deliveryChannelNode["DeliveryChannelTargetArn"].isNull()) + deliveryChannel_.deliveryChannelTargetArn = deliveryChannelNode["DeliveryChannelTargetArn"].asString(); + if(!deliveryChannelNode["DeliveryChannelAssumeRoleArn"].isNull()) + deliveryChannel_.deliveryChannelAssumeRoleArn = deliveryChannelNode["DeliveryChannelAssumeRoleArn"].asString(); + if(!deliveryChannelNode["DeliveryChannelCondition"].isNull()) + deliveryChannel_.deliveryChannelCondition = deliveryChannelNode["DeliveryChannelCondition"].asString(); + if(!deliveryChannelNode["OversizedDataOSSTargetArn"].isNull()) + deliveryChannel_.oversizedDataOSSTargetArn = deliveryChannelNode["OversizedDataOSSTargetArn"].asString(); + if(!deliveryChannelNode["Description"].isNull()) + deliveryChannel_.description = deliveryChannelNode["Description"].asString(); + if(!deliveryChannelNode["ConfigurationSnapshot"].isNull()) + deliveryChannel_.configurationSnapshot = deliveryChannelNode["ConfigurationSnapshot"].asString() == "true"; + if(!deliveryChannelNode["ConfigurationItemChangeNotification"].isNull()) + deliveryChannel_.configurationItemChangeNotification = deliveryChannelNode["ConfigurationItemChangeNotification"].asString() == "true"; + if(!deliveryChannelNode["NonCompliantNotification"].isNull()) + deliveryChannel_.nonCompliantNotification = deliveryChannelNode["NonCompliantNotification"].asString() == "true"; + if(!deliveryChannelNode["AccountId"].isNull()) + deliveryChannel_.accountId = std::stol(deliveryChannelNode["AccountId"].asString()); + if(!deliveryChannelNode["DeliverySnapshotTime"].isNull()) + deliveryChannel_.deliverySnapshotTime = deliveryChannelNode["DeliverySnapshotTime"].asString(); + +} + +GetConfigDeliveryChannelResult::DeliveryChannel GetConfigDeliveryChannelResult::getDeliveryChannel()const +{ + return deliveryChannel_; +} + 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/GetConfigRuleRequest.cc b/config/src/model/GetConfigRuleRequest.cc new file mode 100644 index 000000000..6a13f2988 --- /dev/null +++ b/config/src/model/GetConfigRuleRequest.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::GetConfigRuleRequest; + +GetConfigRuleRequest::GetConfigRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "GetConfigRule") { + setMethod(HttpRequest::Method::Post); +} + +GetConfigRuleRequest::~GetConfigRuleRequest() {} + +std::string GetConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; +} + +void GetConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + diff --git a/config/src/model/DescribeConfigRuleResult.cc b/config/src/model/GetConfigRuleResult.cc similarity index 74% rename from config/src/model/DescribeConfigRuleResult.cc rename to config/src/model/GetConfigRuleResult.cc index f928858e3..cfa2c568a 100644 --- a/config/src/model/DescribeConfigRuleResult.cc +++ b/config/src/model/GetConfigRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DescribeConfigRuleResult::DescribeConfigRuleResult() : +GetConfigRuleResult::GetConfigRuleResult() : ServiceResult() {} -DescribeConfigRuleResult::DescribeConfigRuleResult(const std::string &payload) : +GetConfigRuleResult::GetConfigRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeConfigRuleResult::~DescribeConfigRuleResult() +GetConfigRuleResult::~GetConfigRuleResult() {} -void DescribeConfigRuleResult::parse(const std::string &payload) +void GetConfigRuleResult::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,26 @@ 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(); + if(!configRuleNode["TagKeyLogicScope"].isNull()) + configRule_.tagKeyLogicScope = configRuleNode["TagKeyLogicScope"].asString(); + if(!configRuleNode["AccountId"].isNull()) + configRule_.accountId = std::stol(configRuleNode["AccountId"].asString()); + if(!configRuleNode["ServiceChannel"].isNull()) + configRule_.serviceChannel = configRuleNode["ServiceChannel"].asString(); auto sourceNode = configRuleNode["Source"]; if(!sourceNode["Owner"].isNull()) configRule_.source.owner = sourceNode["Owner"].asString(); @@ -79,24 +97,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 +129,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 +160,19 @@ 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()); + auto complianceNode = configRuleNode["Compliance"]; + if(!complianceNode["ComplianceType"].isNull()) + configRule_.compliance.complianceType = complianceNode["ComplianceType"].asString(); + if(!complianceNode["Count"].isNull()) + configRule_.compliance.count = std::stoi(complianceNode["Count"].asString()); } -DescribeConfigRuleResult::ConfigRule DescribeConfigRuleResult::getConfigRule()const +GetConfigRuleResult::ConfigRule GetConfigRuleResult::getConfigRule()const { return configRule_; } diff --git a/config/src/model/GetConfigRuleSummaryByRiskLevelRequest.cc b/config/src/model/GetConfigRuleSummaryByRiskLevelRequest.cc new file mode 100644 index 000000000..7b6525d7c --- /dev/null +++ b/config/src/model/GetConfigRuleSummaryByRiskLevelRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::GetConfigRuleSummaryByRiskLevelRequest; + +GetConfigRuleSummaryByRiskLevelRequest::GetConfigRuleSummaryByRiskLevelRequest() + : RpcServiceRequest("config", "2020-09-07", "GetConfigRuleSummaryByRiskLevel") { + setMethod(HttpRequest::Method::Get); +} + +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/GetConfigRulesReportRequest.cc b/config/src/model/GetConfigRulesReportRequest.cc new file mode 100644 index 000000000..b2b111f3a --- /dev/null +++ b/config/src/model/GetConfigRulesReportRequest.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::GetConfigRulesReportRequest; + +GetConfigRulesReportRequest::GetConfigRulesReportRequest() + : RpcServiceRequest("config", "2020-09-07", "GetConfigRulesReport") { + setMethod(HttpRequest::Method::Post); +} + +GetConfigRulesReportRequest::~GetConfigRulesReportRequest() {} + +std::string GetConfigRulesReportRequest::getReportId() const { + return reportId_; +} + +void GetConfigRulesReportRequest::setReportId(const std::string &reportId) { + reportId_ = reportId; + setParameter(std::string("ReportId"), reportId); +} + diff --git a/config/src/model/GetConfigRulesReportResult.cc b/config/src/model/GetConfigRulesReportResult.cc new file mode 100644 index 000000000..6370f148a --- /dev/null +++ b/config/src/model/GetConfigRulesReportResult.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; + +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()); + if(!configRulesReportNode["ReportId"].isNull()) + configRulesReport_.reportId = configRulesReportNode["ReportId"].asString(); + +} + +GetConfigRulesReportResult::ConfigRulesReport GetConfigRulesReportResult::getConfigRulesReport()const +{ + return configRulesReport_; +} + diff --git a/config/src/model/GetConfigurationRecorderRequest.cc b/config/src/model/GetConfigurationRecorderRequest.cc new file mode 100644 index 000000000..3c1e877ef --- /dev/null +++ b/config/src/model/GetConfigurationRecorderRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::GetConfigurationRecorderRequest; + +GetConfigurationRecorderRequest::GetConfigurationRecorderRequest() + : RpcServiceRequest("config", "2020-09-07", "GetConfigurationRecorder") { + setMethod(HttpRequest::Method::Post); +} + +GetConfigurationRecorderRequest::~GetConfigurationRecorderRequest() {} + diff --git a/config/src/model/PutConfigurationRecorderResult.cc b/config/src/model/GetConfigurationRecorderResult.cc similarity index 62% rename from config/src/model/PutConfigurationRecorderResult.cc rename to config/src/model/GetConfigurationRecorderResult.cc index 46f85f95f..775c5d994 100644 --- a/config/src/model/PutConfigurationRecorderResult.cc +++ b/config/src/model/GetConfigurationRecorderResult.cc @@ -14,47 +14,41 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -PutConfigurationRecorderResult::PutConfigurationRecorderResult() : +GetConfigurationRecorderResult::GetConfigurationRecorderResult() : ServiceResult() {} -PutConfigurationRecorderResult::PutConfigurationRecorderResult(const std::string &payload) : +GetConfigurationRecorderResult::GetConfigurationRecorderResult(const std::string &payload) : ServiceResult() { parse(payload); } -PutConfigurationRecorderResult::~PutConfigurationRecorderResult() +GetConfigurationRecorderResult::~GetConfigurationRecorderResult() {} -void PutConfigurationRecorderResult::parse(const std::string &payload) +void GetConfigurationRecorderResult::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 +GetConfigurationRecorderResult::ConfigurationRecorder GetConfigurationRecorderResult::getConfigurationRecorder()const { return configurationRecorder_; } diff --git a/config/src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc b/config/src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc new file mode 100644 index 000000000..d28acc8a8 --- /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::Post); +} + +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..a35665515 --- /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::Post); +} + +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 e0e4c387a..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::Post); -} - -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/GetDiscoveredResourceRequest.cc b/config/src/model/GetDiscoveredResourceRequest.cc new file mode 100644 index 000000000..5e0077c31 --- /dev/null +++ b/config/src/model/GetDiscoveredResourceRequest.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::GetDiscoveredResourceRequest; + +GetDiscoveredResourceRequest::GetDiscoveredResourceRequest() + : RpcServiceRequest("config", "2020-09-07", "GetDiscoveredResource") { + setMethod(HttpRequest::Method::Get); +} + +GetDiscoveredResourceRequest::~GetDiscoveredResourceRequest() {} + +std::string GetDiscoveredResourceRequest::getResourceId() const { + return resourceId_; +} + +void GetDiscoveredResourceRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string GetDiscoveredResourceRequest::getResourceType() const { + return resourceType_; +} + +void GetDiscoveredResourceRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string GetDiscoveredResourceRequest::getRegion() const { + return region_; +} + +void GetDiscoveredResourceRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/config/src/model/DescribeDiscoveredResourceResult.cc b/config/src/model/GetDiscoveredResourceResult.cc similarity index 82% rename from config/src/model/DescribeDiscoveredResourceResult.cc rename to config/src/model/GetDiscoveredResourceResult.cc index 57dcf7997..29df91ef2 100644 --- a/config/src/model/DescribeDiscoveredResourceResult.cc +++ b/config/src/model/GetDiscoveredResourceResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DescribeDiscoveredResourceResult::DescribeDiscoveredResourceResult() : +GetDiscoveredResourceResult::GetDiscoveredResourceResult() : ServiceResult() {} -DescribeDiscoveredResourceResult::DescribeDiscoveredResourceResult(const std::string &payload) : +GetDiscoveredResourceResult::GetDiscoveredResourceResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeDiscoveredResourceResult::~DescribeDiscoveredResourceResult() +GetDiscoveredResourceResult::~GetDiscoveredResourceResult() {} -void DescribeDiscoveredResourceResult::parse(const std::string &payload) +void GetDiscoveredResourceResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -62,10 +62,12 @@ void DescribeDiscoveredResourceResult::parse(const std::string &payload) discoveredResourceDetail_.resourceName = discoveredResourceDetailNode["ResourceName"].asString(); if(!discoveredResourceDetailNode["ResourceStatus"].isNull()) discoveredResourceDetail_.resourceStatus = discoveredResourceDetailNode["ResourceStatus"].asString(); + if(!discoveredResourceDetailNode["Version"].isNull()) + discoveredResourceDetail_.version = std::stol(discoveredResourceDetailNode["Version"].asString()); } -DescribeDiscoveredResourceResult::DiscoveredResourceDetail DescribeDiscoveredResourceResult::getDiscoveredResourceDetail()const +GetDiscoveredResourceResult::DiscoveredResourceDetail GetDiscoveredResourceResult::getDiscoveredResourceDetail()const { return discoveredResourceDetail_; } diff --git a/config/src/model/GetDiscoveredResourceSummaryRequest.cc b/config/src/model/GetDiscoveredResourceSummaryRequest.cc deleted file mode 100644 index f50d89892..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::Post); -} - -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/GetIntegratedServiceStatusRequest.cc b/config/src/model/GetIntegratedServiceStatusRequest.cc new file mode 100644 index 000000000..7a0a5d206 --- /dev/null +++ b/config/src/model/GetIntegratedServiceStatusRequest.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::GetIntegratedServiceStatusRequest; + +GetIntegratedServiceStatusRequest::GetIntegratedServiceStatusRequest() + : RpcServiceRequest("config", "2020-09-07", "GetIntegratedServiceStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetIntegratedServiceStatusRequest::~GetIntegratedServiceStatusRequest() {} + +std::string GetIntegratedServiceStatusRequest::getServiceCode() const { + return serviceCode_; +} + +void GetIntegratedServiceStatusRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setBodyParameter(std::string("ServiceCode"), serviceCode); +} + diff --git a/config/src/model/GetIntegratedServiceStatusResult.cc b/config/src/model/GetIntegratedServiceStatusResult.cc new file mode 100644 index 000000000..d18e89d9e --- /dev/null +++ b/config/src/model/GetIntegratedServiceStatusResult.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; + +GetIntegratedServiceStatusResult::GetIntegratedServiceStatusResult() : + ServiceResult() +{} + +GetIntegratedServiceStatusResult::GetIntegratedServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetIntegratedServiceStatusResult::~GetIntegratedServiceStatusResult() +{} + +void GetIntegratedServiceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool GetIntegratedServiceStatusResult::getData()const +{ + return data_; +} + diff --git a/config/src/model/GetManagedRuleRequest.cc b/config/src/model/GetManagedRuleRequest.cc new file mode 100644 index 000000000..dcc0ff3fb --- /dev/null +++ b/config/src/model/GetManagedRuleRequest.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::GetManagedRuleRequest; + +GetManagedRuleRequest::GetManagedRuleRequest() + : RpcServiceRequest("config", "2020-09-07", "GetManagedRule") { + setMethod(HttpRequest::Method::Post); +} + +GetManagedRuleRequest::~GetManagedRuleRequest() {} + +std::string GetManagedRuleRequest::getIdentifier() const { + return identifier_; +} + +void GetManagedRuleRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); +} + diff --git a/config/src/model/GetManagedRuleResult.cc b/config/src/model/GetManagedRuleResult.cc new file mode 100644 index 000000000..983154c30 --- /dev/null +++ b/config/src/model/GetManagedRuleResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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; + +GetManagedRuleResult::GetManagedRuleResult() : + ServiceResult() +{} + +GetManagedRuleResult::GetManagedRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetManagedRuleResult::~GetManagedRuleResult() +{} + +void GetManagedRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto managedRuleNode = value["ManagedRule"]; + if(!managedRuleNode["RiskLevel"].isNull()) + managedRule_.riskLevel = std::stoi(managedRuleNode["RiskLevel"].asString()); + if(!managedRuleNode["HelpHint"].isNull()) + managedRule_.helpHint = managedRuleNode["HelpHint"].asString(); + if(!managedRuleNode["DefaultName"].isNull()) + managedRule_.defaultName = managedRuleNode["DefaultName"].asString(); + if(!managedRuleNode["OptionalInputParameterDetails"].isNull()) + managedRule_.optionalInputParameterDetails = managedRuleNode["OptionalInputParameterDetails"].asString(); + if(!managedRuleNode["Identifier"].isNull()) + managedRule_.identifier = managedRuleNode["Identifier"].asString(); + if(!managedRuleNode["CompulsoryInputParameterDetails"].isNull()) + managedRule_.compulsoryInputParameterDetails = managedRuleNode["CompulsoryInputParameterDetails"].asString(); + if(!managedRuleNode["RegionId"].isNull()) + managedRule_.regionId = managedRuleNode["RegionId"].asString(); + if(!managedRuleNode["Description"].isNull()) + managedRule_.description = managedRuleNode["Description"].asString(); + if(!managedRuleNode["FunctionName"].isNull()) + managedRule_.functionName = managedRuleNode["FunctionName"].asString(); + if(!managedRuleNode["ConfigRuleName"].isNull()) + managedRule_.configRuleName = managedRuleNode["ConfigRuleName"].asString(); + if(!managedRuleNode["HelpDoc"].isNull()) + managedRule_.helpDoc = managedRuleNode["HelpDoc"].asString(); + if(!managedRuleNode["HelpUrls"].isNull()) + managedRule_.helpUrls = managedRuleNode["HelpUrls"].asString(); + if(!managedRuleNode["ServiceName"].isNull()) + managedRule_.serviceName = managedRuleNode["ServiceName"].asString(); + if(!managedRuleNode["CreateTimestamp"].isNull()) + managedRule_.createTimestamp = std::stol(managedRuleNode["CreateTimestamp"].asString()); + if(!managedRuleNode["UseCases"].isNull()) + managedRule_.useCases = managedRuleNode["UseCases"].asString(); + auto allSourceDetailsNode = managedRuleNode["SourceDetails"]["SourceDetailsItem"]; + for (auto managedRuleNodeSourceDetailsSourceDetailsItem : allSourceDetailsNode) + { + ManagedRule::SourceDetailsItem sourceDetailsItemObject; + if(!managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].isNull()) + sourceDetailsItemObject.messageType = managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].asString(); + if(!managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].isNull()) + sourceDetailsItemObject.eventSource = managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].asString(); + if(!managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull()) + sourceDetailsItemObject.maximumExecutionFrequency = managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString(); + managedRule_.sourceDetails.push_back(sourceDetailsItemObject); + } + auto scopeNode = managedRuleNode["Scope"]; + auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"]; + for (auto value : allComplianceResourceTypes) + managedRule_.scope.complianceResourceTypes.push_back(value.asString()); + auto allLabels = managedRuleNode["Labels"]["Labels"]; + for (auto value : allLabels) + managedRule_.labels.push_back(value.asString()); + auto allSourceConditions = managedRuleNode["SourceConditions"]["SourceConditions"]; + for (auto value : allSourceConditions) + managedRule_.sourceConditions.push_back(value.asString()); + +} + +GetManagedRuleResult::ManagedRule GetManagedRuleResult::getManagedRule()const +{ + return managedRule_; +} + diff --git a/config/src/model/GetRemediationTemplateRequest.cc b/config/src/model/GetRemediationTemplateRequest.cc new file mode 100644 index 000000000..d67e068ac --- /dev/null +++ b/config/src/model/GetRemediationTemplateRequest.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::GetRemediationTemplateRequest; + +GetRemediationTemplateRequest::GetRemediationTemplateRequest() + : RpcServiceRequest("config", "2020-09-07", "GetRemediationTemplate") { + setMethod(HttpRequest::Method::Post); +} + +GetRemediationTemplateRequest::~GetRemediationTemplateRequest() {} + +std::string GetRemediationTemplateRequest::getTemplateIdentifier() const { + return templateIdentifier_; +} + +void GetRemediationTemplateRequest::setTemplateIdentifier(const std::string &templateIdentifier) { + templateIdentifier_ = templateIdentifier; + setParameter(std::string("TemplateIdentifier"), templateIdentifier); +} + diff --git a/config/src/model/GetRemediationTemplateResult.cc b/config/src/model/GetRemediationTemplateResult.cc new file mode 100644 index 000000000..ee206ef1d --- /dev/null +++ b/config/src/model/GetRemediationTemplateResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetRemediationTemplateResult::GetRemediationTemplateResult() : + ServiceResult() +{} + +GetRemediationTemplateResult::GetRemediationTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRemediationTemplateResult::~GetRemediationTemplateResult() +{} + +void GetRemediationTemplateResult::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(); + if(!valueRemediationTemplatesRemediationTemplate["ManagedRuleIdentifier"].isNull()) + remediationTemplatesObject.managedRuleIdentifier = valueRemediationTemplatesRemediationTemplate["ManagedRuleIdentifier"].asString(); + if(!valueRemediationTemplatesRemediationTemplate["TemplateDescription"].isNull()) + remediationTemplatesObject.templateDescription = valueRemediationTemplatesRemediationTemplate["TemplateDescription"].asString(); + remediationTemplates_.push_back(remediationTemplatesObject); + } + +} + +std::vector GetRemediationTemplateResult::getRemediationTemplates()const +{ + return remediationTemplates_; +} + 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/GetResourceComplianceGroupByRegionRequest.cc b/config/src/model/GetResourceComplianceGroupByRegionRequest.cc new file mode 100644 index 000000000..e837308b5 --- /dev/null +++ b/config/src/model/GetResourceComplianceGroupByRegionRequest.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::GetResourceComplianceGroupByRegionRequest; + +GetResourceComplianceGroupByRegionRequest::GetResourceComplianceGroupByRegionRequest() + : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceGroupByRegion") { + setMethod(HttpRequest::Method::Post); +} + +GetResourceComplianceGroupByRegionRequest::~GetResourceComplianceGroupByRegionRequest() {} + +std::string GetResourceComplianceGroupByRegionRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void GetResourceComplianceGroupByRegionRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + diff --git a/config/src/model/GetResourceComplianceGroupByRegionResult.cc b/config/src/model/GetResourceComplianceGroupByRegionResult.cc new file mode 100644 index 000000000..3bc8cbce5 --- /dev/null +++ b/config/src/model/GetResourceComplianceGroupByRegionResult.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; + +GetResourceComplianceGroupByRegionResult::GetResourceComplianceGroupByRegionResult() : + ServiceResult() +{} + +GetResourceComplianceGroupByRegionResult::GetResourceComplianceGroupByRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceComplianceGroupByRegionResult::~GetResourceComplianceGroupByRegionResult() +{} + +void GetResourceComplianceGroupByRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto complianceResultNode = value["ComplianceResult"]; + auto allComplianceResultListNode = complianceResultNode["ComplianceResultList"]["ComplianceResultListItem"]; + for (auto complianceResultNodeComplianceResultListComplianceResultListItem : allComplianceResultListNode) + { + ComplianceResult::ComplianceResultListItem complianceResultListItemObject; + if(!complianceResultNodeComplianceResultListComplianceResultListItem["RegionId"].isNull()) + complianceResultListItemObject.regionId = complianceResultNodeComplianceResultListComplianceResultListItem["RegionId"].asString(); + auto allCompliancesNode = complianceResultNodeComplianceResultListComplianceResultListItem["Compliances"]["CompliancesItem"]; + for (auto complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem : allCompliancesNode) + { + ComplianceResult::ComplianceResultListItem::CompliancesItem compliancesObject; + if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].isNull()) + compliancesObject.complianceType = complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].asString(); + if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].isNull()) + compliancesObject.count = std::stol(complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].asString()); + complianceResultListItemObject.compliances.push_back(compliancesObject); + } + complianceResult_.complianceResultList.push_back(complianceResultListItemObject); + } + +} + +GetResourceComplianceGroupByRegionResult::ComplianceResult GetResourceComplianceGroupByRegionResult::getComplianceResult()const +{ + return complianceResult_; +} + diff --git a/config/src/model/GetResourceComplianceGroupByResourceTypeRequest.cc b/config/src/model/GetResourceComplianceGroupByResourceTypeRequest.cc new file mode 100644 index 000000000..85ddb0db7 --- /dev/null +++ b/config/src/model/GetResourceComplianceGroupByResourceTypeRequest.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::GetResourceComplianceGroupByResourceTypeRequest; + +GetResourceComplianceGroupByResourceTypeRequest::GetResourceComplianceGroupByResourceTypeRequest() + : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceGroupByResourceType") { + setMethod(HttpRequest::Method::Post); +} + +GetResourceComplianceGroupByResourceTypeRequest::~GetResourceComplianceGroupByResourceTypeRequest() {} + +std::string GetResourceComplianceGroupByResourceTypeRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void GetResourceComplianceGroupByResourceTypeRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + diff --git a/config/src/model/GetResourceComplianceGroupByResourceTypeResult.cc b/config/src/model/GetResourceComplianceGroupByResourceTypeResult.cc new file mode 100644 index 000000000..a149946a8 --- /dev/null +++ b/config/src/model/GetResourceComplianceGroupByResourceTypeResult.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; + +GetResourceComplianceGroupByResourceTypeResult::GetResourceComplianceGroupByResourceTypeResult() : + ServiceResult() +{} + +GetResourceComplianceGroupByResourceTypeResult::GetResourceComplianceGroupByResourceTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceComplianceGroupByResourceTypeResult::~GetResourceComplianceGroupByResourceTypeResult() +{} + +void GetResourceComplianceGroupByResourceTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto complianceResultNode = value["ComplianceResult"]; + auto allComplianceResultListNode = complianceResultNode["ComplianceResultList"]["ComplianceResultListItem"]; + for (auto complianceResultNodeComplianceResultListComplianceResultListItem : allComplianceResultListNode) + { + ComplianceResult::ComplianceResultListItem complianceResultListItemObject; + if(!complianceResultNodeComplianceResultListComplianceResultListItem["ResourceType"].isNull()) + complianceResultListItemObject.resourceType = complianceResultNodeComplianceResultListComplianceResultListItem["ResourceType"].asString(); + auto allCompliancesNode = complianceResultNodeComplianceResultListComplianceResultListItem["Compliances"]["CompliancesItem"]; + for (auto complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem : allCompliancesNode) + { + ComplianceResult::ComplianceResultListItem::CompliancesItem compliancesObject; + if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].isNull()) + compliancesObject.complianceType = complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].asString(); + if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].isNull()) + compliancesObject.count = std::stol(complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].asString()); + complianceResultListItemObject.compliances.push_back(compliancesObject); + } + complianceResult_.complianceResultList.push_back(complianceResultListItemObject); + } + +} + +GetResourceComplianceGroupByResourceTypeResult::ComplianceResult GetResourceComplianceGroupByResourceTypeResult::getComplianceResult()const +{ + return complianceResult_; +} + diff --git a/config/src/model/GetResourceComplianceTimelineRequest.cc b/config/src/model/GetResourceComplianceTimelineRequest.cc index 7a91d44fa..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") { - setMethod(HttpRequest::Method::Post); + : 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 ec5e1490f..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") { - setMethod(HttpRequest::Method::Post); + : 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/GetResourceInventoryRequest.cc b/config/src/model/GetResourceInventoryRequest.cc new file mode 100644 index 000000000..23c0f1ae1 --- /dev/null +++ b/config/src/model/GetResourceInventoryRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::GetResourceInventoryRequest; + +GetResourceInventoryRequest::GetResourceInventoryRequest() + : RpcServiceRequest("config", "2020-09-07", "GetResourceInventory") { + setMethod(HttpRequest::Method::Post); +} + +GetResourceInventoryRequest::~GetResourceInventoryRequest() {} + diff --git a/config/src/model/GetResourceInventoryResult.cc b/config/src/model/GetResourceInventoryResult.cc new file mode 100644 index 000000000..6e03e5fa1 --- /dev/null +++ b/config/src/model/GetResourceInventoryResult.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; + +GetResourceInventoryResult::GetResourceInventoryResult() : + ServiceResult() +{} + +GetResourceInventoryResult::GetResourceInventoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceInventoryResult::~GetResourceInventoryResult() +{} + +void GetResourceInventoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceInventoryNode = value["ResourceInventory"]; + if(!resourceInventoryNode["DownloadUrl"].isNull()) + resourceInventory_.downloadUrl = resourceInventoryNode["DownloadUrl"].asString(); + if(!resourceInventoryNode["Status"].isNull()) + resourceInventory_.status = resourceInventoryNode["Status"].asString(); + if(!resourceInventoryNode["AccountId"].isNull()) + resourceInventory_.accountId = std::stol(resourceInventoryNode["AccountId"].asString()); + if(!resourceInventoryNode["ResourceInventoryGenerateTime"].isNull()) + resourceInventory_.resourceInventoryGenerateTime = std::stol(resourceInventoryNode["ResourceInventoryGenerateTime"].asString()); + +} + +GetResourceInventoryResult::ResourceInventory GetResourceInventoryResult::getResourceInventory()const +{ + return resourceInventory_; +} + diff --git a/config/src/model/GetSupportedResourceRelationConfigRequest.cc b/config/src/model/GetSupportedResourceRelationConfigRequest.cc new file mode 100644 index 000000000..57d2b81d2 --- /dev/null +++ b/config/src/model/GetSupportedResourceRelationConfigRequest.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::GetSupportedResourceRelationConfigRequest; + +GetSupportedResourceRelationConfigRequest::GetSupportedResourceRelationConfigRequest() + : RpcServiceRequest("config", "2020-09-07", "GetSupportedResourceRelationConfig") { + setMethod(HttpRequest::Method::Post); +} + +GetSupportedResourceRelationConfigRequest::~GetSupportedResourceRelationConfigRequest() {} + +std::string GetSupportedResourceRelationConfigRequest::getResourceType() const { + return resourceType_; +} + +void GetSupportedResourceRelationConfigRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/config/src/model/GetSupportedResourceRelationConfigResult.cc b/config/src/model/GetSupportedResourceRelationConfigResult.cc new file mode 100644 index 000000000..4705b82df --- /dev/null +++ b/config/src/model/GetSupportedResourceRelationConfigResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetSupportedResourceRelationConfigResult::GetSupportedResourceRelationConfigResult() : + ServiceResult() +{} + +GetSupportedResourceRelationConfigResult::GetSupportedResourceRelationConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSupportedResourceRelationConfigResult::~GetSupportedResourceRelationConfigResult() +{} + +void GetSupportedResourceRelationConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResourceRelationConfigListNode = value["ResourceRelationConfigList"]["ResourceRelationConfigListItem"]; + for (auto valueResourceRelationConfigListResourceRelationConfigListItem : allResourceRelationConfigListNode) + { + ResourceRelationConfigListItem resourceRelationConfigListObject; + if(!valueResourceRelationConfigListResourceRelationConfigListItem["TargetResourceType"].isNull()) + resourceRelationConfigListObject.targetResourceType = valueResourceRelationConfigListResourceRelationConfigListItem["TargetResourceType"].asString(); + if(!valueResourceRelationConfigListResourceRelationConfigListItem["RelationType"].isNull()) + resourceRelationConfigListObject.relationType = valueResourceRelationConfigListResourceRelationConfigListItem["RelationType"].asString(); + resourceRelationConfigList_.push_back(resourceRelationConfigListObject); + } + +} + +std::vector GetSupportedResourceRelationConfigResult::getResourceRelationConfigList()const +{ + return resourceRelationConfigList_; +} + diff --git a/config/src/model/IgnoreAggregateEvaluationResultsRequest.cc b/config/src/model/IgnoreAggregateEvaluationResultsRequest.cc new file mode 100644 index 000000000..e77ccac69 --- /dev/null +++ b/config/src/model/IgnoreAggregateEvaluationResultsRequest.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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::string IgnoreAggregateEvaluationResultsRequest::getIgnoreDate() const { + return ignoreDate_; +} + +void IgnoreAggregateEvaluationResultsRequest::setIgnoreDate(const std::string &ignoreDate) { + ignoreDate_ = ignoreDate; + setBodyParameter(std::string("IgnoreDate"), ignoreDate); +} + +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..b7f0cb2bc --- /dev/null +++ b/config/src/model/IgnoreEvaluationResultsRequest.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::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::string IgnoreEvaluationResultsRequest::getIgnoreDate() const { + return ignoreDate_; +} + +void IgnoreEvaluationResultsRequest::setIgnoreDate(const std::string &ignoreDate) { + ignoreDate_ = ignoreDate; + setBodyParameter(std::string("IgnoreDate"), ignoreDate); +} + +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/IgnoreEvaluationResultsResult.cc b/config/src/model/IgnoreEvaluationResultsResult.cc new file mode 100644 index 000000000..9c4d0d7ac --- /dev/null +++ b/config/src/model/IgnoreEvaluationResultsResult.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; + +IgnoreEvaluationResultsResult::IgnoreEvaluationResultsResult() : + ServiceResult() +{} + +IgnoreEvaluationResultsResult::IgnoreEvaluationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IgnoreEvaluationResultsResult::~IgnoreEvaluationResultsResult() +{} + +void IgnoreEvaluationResultsResult::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/ListAggregateCompliancePacksRequest.cc b/config/src/model/ListAggregateCompliancePacksRequest.cc new file mode 100644 index 000000000..83677b6c5 --- /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::Post); +} + +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/ListAggregateConfigDeliveryChannelsRequest.cc b/config/src/model/ListAggregateConfigDeliveryChannelsRequest.cc new file mode 100644 index 000000000..6cadd9fb0 --- /dev/null +++ b/config/src/model/ListAggregateConfigDeliveryChannelsRequest.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::ListAggregateConfigDeliveryChannelsRequest; + +ListAggregateConfigDeliveryChannelsRequest::ListAggregateConfigDeliveryChannelsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateConfigDeliveryChannels") { + setMethod(HttpRequest::Method::Post); +} + +ListAggregateConfigDeliveryChannelsRequest::~ListAggregateConfigDeliveryChannelsRequest() {} + +std::string ListAggregateConfigDeliveryChannelsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateConfigDeliveryChannelsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string ListAggregateConfigDeliveryChannelsRequest::getDeliveryChannelIds() const { + return deliveryChannelIds_; +} + +void ListAggregateConfigDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) { + deliveryChannelIds_ = deliveryChannelIds; + setParameter(std::string("DeliveryChannelIds"), deliveryChannelIds); +} + diff --git a/config/src/model/ListAggregateConfigDeliveryChannelsResult.cc b/config/src/model/ListAggregateConfigDeliveryChannelsResult.cc new file mode 100644 index 000000000..2fcb71a6a --- /dev/null +++ b/config/src/model/ListAggregateConfigDeliveryChannelsResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregateConfigDeliveryChannelsResult::ListAggregateConfigDeliveryChannelsResult() : + ServiceResult() +{} + +ListAggregateConfigDeliveryChannelsResult::ListAggregateConfigDeliveryChannelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateConfigDeliveryChannelsResult::~ListAggregateConfigDeliveryChannelsResult() +{} + +void ListAggregateConfigDeliveryChannelsResult::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["DeliveryChannelTargetArn"].isNull()) + deliveryChannelsObject.deliveryChannelTargetArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].isNull()) + deliveryChannelsObject.deliveryChannelAssumeRoleArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull()) + deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].isNull()) + deliveryChannelsObject.oversizedDataOSSTargetArn = valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["Description"].isNull()) + deliveryChannelsObject.description = valueDeliveryChannelsDeliveryChannel["Description"].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["AggregatorId"].isNull()) + deliveryChannelsObject.aggregatorId = valueDeliveryChannelsDeliveryChannel["AggregatorId"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["AccountId"].isNull()) + deliveryChannelsObject.accountId = std::stol(valueDeliveryChannelsDeliveryChannel["AccountId"].asString()); + if(!valueDeliveryChannelsDeliveryChannel["DeliverySnapshotTime"].isNull()) + deliveryChannelsObject.deliverySnapshotTime = valueDeliveryChannelsDeliveryChannel["DeliverySnapshotTime"].asString(); + deliveryChannels_.push_back(deliveryChannelsObject); + } + +} + +std::vector ListAggregateConfigDeliveryChannelsResult::getDeliveryChannels()const +{ + return deliveryChannels_; +} + diff --git a/config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc b/config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc new file mode 100644 index 000000000..e66f8a989 --- /dev/null +++ b/config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.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::ListAggregateConfigRuleEvaluationResultsRequest; + +ListAggregateConfigRuleEvaluationResultsRequest::ListAggregateConfigRuleEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateConfigRuleEvaluationResults") { + setMethod(HttpRequest::Method::Post); +} + +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::getRegions() const { + return regions_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setRegions(const std::string ®ions) { + regions_ = regions; + setParameter(std::string("Regions"), regions); +} + +std::string ListAggregateConfigRuleEvaluationResultsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +long ListAggregateConfigRuleEvaluationResultsRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + +std::string ListAggregateConfigRuleEvaluationResultsRequest::getNextToken() const { + return nextToken_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +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); +} + +std::string ListAggregateConfigRuleEvaluationResultsRequest::getResourceTypes() const { + return resourceTypes_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setParameter(std::string("ResourceTypes"), resourceTypes); +} + +std::string ListAggregateConfigRuleEvaluationResultsRequest::getResourceGroupIds() const { + return resourceGroupIds_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setResourceGroupIds(const std::string &resourceGroupIds) { + resourceGroupIds_ = resourceGroupIds; + setParameter(std::string("ResourceGroupIds"), resourceGroupIds); +} + +int ListAggregateConfigRuleEvaluationResultsRequest::getMaxResults() const { + return maxResults_; +} + +void ListAggregateConfigRuleEvaluationResultsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/config/src/model/ListAggregateConfigRuleEvaluationResultsResult.cc b/config/src/model/ListAggregateConfigRuleEvaluationResultsResult.cc new file mode 100644 index 000000000..5b2e52408 --- /dev/null +++ b/config/src/model/ListAggregateConfigRuleEvaluationResultsResult.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; + +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(); + if(!evaluationResultQualifierNode["IgnoreDate"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString(); + evaluationResults_.evaluationResultList.push_back(evaluationResultObject); + } + +} + +ListAggregateConfigRuleEvaluationResultsResult::EvaluationResults ListAggregateConfigRuleEvaluationResultsResult::getEvaluationResults()const +{ + return evaluationResults_; +} + diff --git a/config/src/model/ListAggregateConfigRuleEvaluationStatisticsRequest.cc b/config/src/model/ListAggregateConfigRuleEvaluationStatisticsRequest.cc new file mode 100644 index 000000000..efbd7bf4b --- /dev/null +++ b/config/src/model/ListAggregateConfigRuleEvaluationStatisticsRequest.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::ListAggregateConfigRuleEvaluationStatisticsRequest; + +ListAggregateConfigRuleEvaluationStatisticsRequest::ListAggregateConfigRuleEvaluationStatisticsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateConfigRuleEvaluationStatistics") { + setMethod(HttpRequest::Method::Post); +} + +ListAggregateConfigRuleEvaluationStatisticsRequest::~ListAggregateConfigRuleEvaluationStatisticsRequest() {} + +std::string ListAggregateConfigRuleEvaluationStatisticsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateConfigRuleEvaluationStatisticsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/ListAggregateConfigRuleEvaluationStatisticsResult.cc b/config/src/model/ListAggregateConfigRuleEvaluationStatisticsResult.cc new file mode 100644 index 000000000..1fd7768d1 --- /dev/null +++ b/config/src/model/ListAggregateConfigRuleEvaluationStatisticsResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregateConfigRuleEvaluationStatisticsResult::ListAggregateConfigRuleEvaluationStatisticsResult() : + ServiceResult() +{} + +ListAggregateConfigRuleEvaluationStatisticsResult::ListAggregateConfigRuleEvaluationStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateConfigRuleEvaluationStatisticsResult::~ListAggregateConfigRuleEvaluationStatisticsResult() +{} + +void ListAggregateConfigRuleEvaluationStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEvaluationResultsNode = value["EvaluationResults"]["EvaluationResultsItem"]; + for (auto valueEvaluationResultsEvaluationResultsItem : allEvaluationResultsNode) + { + EvaluationResultsItem evaluationResultsObject; + if(!valueEvaluationResultsEvaluationResultsItem["AccountId"].isNull()) + evaluationResultsObject.accountId = std::stol(valueEvaluationResultsEvaluationResultsItem["AccountId"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["AggregatorId"].isNull()) + evaluationResultsObject.aggregatorId = valueEvaluationResultsEvaluationResultsItem["AggregatorId"].asString(); + if(!valueEvaluationResultsEvaluationResultsItem["AggregatorName"].isNull()) + evaluationResultsObject.aggregatorName = valueEvaluationResultsEvaluationResultsItem["AggregatorName"].asString(); + if(!valueEvaluationResultsEvaluationResultsItem["NonCompliantResourceCnt"].isNull()) + evaluationResultsObject.nonCompliantResourceCnt = std::stoi(valueEvaluationResultsEvaluationResultsItem["NonCompliantResourceCnt"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["TotalResourceCnt"].isNull()) + evaluationResultsObject.totalResourceCnt = std::stoi(valueEvaluationResultsEvaluationResultsItem["TotalResourceCnt"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["NonCompliantRuleCnt"].isNull()) + evaluationResultsObject.nonCompliantRuleCnt = std::stoi(valueEvaluationResultsEvaluationResultsItem["NonCompliantRuleCnt"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["TotalRuleCnt"].isNull()) + evaluationResultsObject.totalRuleCnt = std::stoi(valueEvaluationResultsEvaluationResultsItem["TotalRuleCnt"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["GmtCreate"].isNull()) + evaluationResultsObject.gmtCreate = std::stol(valueEvaluationResultsEvaluationResultsItem["GmtCreate"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["NonCompliantRuleDetail"].isNull()) + evaluationResultsObject.nonCompliantRuleDetail = valueEvaluationResultsEvaluationResultsItem["NonCompliantRuleDetail"].asString(); + if(!valueEvaluationResultsEvaluationResultsItem["StatisticDate"].isNull()) + evaluationResultsObject.statisticDate = valueEvaluationResultsEvaluationResultsItem["StatisticDate"].asString(); + evaluationResults_.push_back(evaluationResultsObject); + } + +} + +std::vector ListAggregateConfigRuleEvaluationStatisticsResult::getEvaluationResults()const +{ + return evaluationResults_; +} + diff --git a/config/src/model/ListAggregateConfigRulesRequest.cc b/config/src/model/ListAggregateConfigRulesRequest.cc new file mode 100644 index 000000000..8b2994af8 --- /dev/null +++ b/config/src/model/ListAggregateConfigRulesRequest.cc @@ -0,0 +1,163 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::Post); +} + +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); +} + +ListAggregateConfigRulesRequest::Tag ListAggregateConfigRulesRequest::getTag() const { + return tag_; +} + +void ListAggregateConfigRulesRequest::setTag(const ListAggregateConfigRulesRequest::Tag &tag) { + tag_ = tag; + setParameter(std::string("Tag") + ".Value", tag.value); + setParameter(std::string("Tag") + ".Key", tag.key); +} + +std::string ListAggregateConfigRulesRequest::getKeyword() const { + return keyword_; +} + +void ListAggregateConfigRulesRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string ListAggregateConfigRulesRequest::getComplianceType() const { + return complianceType_; +} + +void ListAggregateConfigRulesRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + +std::string ListAggregateConfigRulesRequest::getResourceTypes() const { + return resourceTypes_; +} + +void ListAggregateConfigRulesRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setParameter(std::string("ResourceTypes"), resourceTypes); +} + +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); +} + +std::string ListAggregateConfigRulesRequest::getServiceChannel() const { + return serviceChannel_; +} + +void ListAggregateConfigRulesRequest::setServiceChannel(const std::string &serviceChannel) { + serviceChannel_ = serviceChannel; + setParameter(std::string("ServiceChannel"), serviceChannel); +} + diff --git a/config/src/model/ListAggregateConfigRulesResult.cc b/config/src/model/ListAggregateConfigRulesResult.cc new file mode 100644 index 000000000..07073264c --- /dev/null +++ b/config/src/model/ListAggregateConfigRulesResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregateConfigRulesResult::ListAggregateConfigRulesResult() : + ServiceResult() +{} + +ListAggregateConfigRulesResult::ListAggregateConfigRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateConfigRulesResult::~ListAggregateConfigRulesResult() +{} + +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["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["RiskLevel"].isNull()) + configRuleObject.riskLevel = std::stoi(configRulesNodeConfigRuleListConfigRule["RiskLevel"].asString()); + if(!configRulesNodeConfigRuleListConfigRule["SourceOwner"].isNull()) + configRuleObject.sourceOwner = configRulesNodeConfigRuleListConfigRule["SourceOwner"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["AccountId"].isNull()) + configRuleObject.accountId = std::stol(configRulesNodeConfigRuleListConfigRule["AccountId"].asString()); + if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleState"].isNull()) + configRuleObject.configRuleState = configRulesNodeConfigRuleListConfigRule["ConfigRuleState"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["SourceIdentifier"].isNull()) + configRuleObject.sourceIdentifier = configRulesNodeConfigRuleListConfigRule["SourceIdentifier"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleArn"].isNull()) + configRuleObject.configRuleArn = configRulesNodeConfigRuleListConfigRule["ConfigRuleArn"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["Description"].isNull()) + configRuleObject.description = configRulesNodeConfigRuleListConfigRule["Description"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["AutomationType"].isNull()) + configRuleObject.automationType = configRulesNodeConfigRuleListConfigRule["AutomationType"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleName"].isNull()) + configRuleObject.configRuleName = configRulesNodeConfigRuleListConfigRule["ConfigRuleName"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleId"].isNull()) + configRuleObject.configRuleId = configRulesNodeConfigRuleListConfigRule["ConfigRuleId"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["ResourceTypesScope"].isNull()) + configRuleObject.resourceTypesScope = configRulesNodeConfigRuleListConfigRule["ResourceTypesScope"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["ServiceChannel"].isNull()) + configRuleObject.serviceChannel = configRulesNodeConfigRuleListConfigRule["ServiceChannel"].asString(); + auto allTagsNode = configRulesNodeConfigRuleListConfigRule["Tags"]["tag"]; + for (auto configRulesNodeConfigRuleListConfigRuleTagstag : allTagsNode) + { + ConfigRules::ConfigRule::Tag tagsObject; + if(!configRulesNodeConfigRuleListConfigRuleTagstag["Key"].isNull()) + tagsObject.key = configRulesNodeConfigRuleListConfigRuleTagstag["Key"].asString(); + if(!configRulesNodeConfigRuleListConfigRuleTagstag["Value"].isNull()) + tagsObject.value = configRulesNodeConfigRuleListConfigRuleTagstag["Value"].asString(); + configRuleObject.tags.push_back(tagsObject); + } + auto complianceNode = value["Compliance"]; + if(!complianceNode["ComplianceType"].isNull()) + configRuleObject.compliance.complianceType = complianceNode["ComplianceType"].asString(); + if(!complianceNode["Count"].isNull()) + configRuleObject.compliance.count = std::stoi(complianceNode["Count"].asString()); + auto createByNode = value["CreateBy"]; + if(!createByNode["CompliancePackId"].isNull()) + configRuleObject.createBy.compliancePackId = createByNode["CompliancePackId"].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()) + configRuleObject.createBy.creatorName = createByNode["CreatorName"].asString(); + if(!createByNode["CreatorType"].isNull()) + configRuleObject.createBy.creatorType = createByNode["CreatorType"].asString(); + if(!createByNode["CreatorId"].isNull()) + configRuleObject.createBy.creatorId = createByNode["CreatorId"].asString(); + if(!createByNode["AggregatorId"].isNull()) + configRuleObject.createBy.aggregatorId = createByNode["AggregatorId"].asString(); + configRules_.configRuleList.push_back(configRuleObject); + } + +} + +ListAggregateConfigRulesResult::ConfigRules ListAggregateConfigRulesResult::getConfigRules()const +{ + return configRules_; +} + diff --git a/config/src/model/ListAggregateDiscoveredResourcesRequest.cc b/config/src/model/ListAggregateDiscoveredResourcesRequest.cc index 46d185a01..b521945eb 100644 --- a/config/src/model/ListAggregateDiscoveredResourcesRequest.cc +++ b/config/src/model/ListAggregateDiscoveredResourcesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::ListAggregateDiscoveredResourcesRequest; ListAggregateDiscoveredResourcesRequest::ListAggregateDiscoveredResourcesRequest() - : RpcServiceRequest("config", "2019-01-08", "ListAggregateDiscoveredResources") { + : RpcServiceRequest("config", "2020-09-07", "ListAggregateDiscoveredResources") { setMethod(HttpRequest::Method::Post); } @@ -61,15 +61,6 @@ void ListAggregateDiscoveredResourcesRequest::setAggregatorId(const std::string 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_; } @@ -79,22 +70,22 @@ void ListAggregateDiscoveredResourcesRequest::setFolderId(const std::string &fol setParameter(std::string("FolderId"), folderId); } -int ListAggregateDiscoveredResourcesRequest::getPageSize() const { - return pageSize_; +long ListAggregateDiscoveredResourcesRequest::getResourceAccountId() const { + return resourceAccountId_; } -void ListAggregateDiscoveredResourcesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); +void ListAggregateDiscoveredResourcesRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); } -std::string ListAggregateDiscoveredResourcesRequest::getComplianceType() const { - return complianceType_; +std::string ListAggregateDiscoveredResourcesRequest::getNextToken() const { + return nextToken_; } -void ListAggregateDiscoveredResourcesRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); +void ListAggregateDiscoveredResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } std::string ListAggregateDiscoveredResourcesRequest::getResourceId() const { @@ -115,3 +106,12 @@ void ListAggregateDiscoveredResourcesRequest::setResourceTypes(const std::string setParameter(std::string("ResourceTypes"), resourceTypes); } +int ListAggregateDiscoveredResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void ListAggregateDiscoveredResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/config/src/model/ListAggregateDiscoveredResourcesResult.cc b/config/src/model/ListAggregateDiscoveredResourcesResult.cc index 4975c6773..6bbc03624 100644 --- a/config/src/model/ListAggregateDiscoveredResourcesResult.cc +++ b/config/src/model/ListAggregateDiscoveredResourcesResult.cc @@ -40,10 +40,10 @@ void ListAggregateDiscoveredResourcesResult::parse(const std::string &payload) 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["NextToken"].isNull()) + discoveredResourceProfiles_.nextToken = discoveredResourceProfilesNode["NextToken"].asString(); + if(!discoveredResourceProfilesNode["MaxResults"].isNull()) + discoveredResourceProfiles_.maxResults = std::stoi(discoveredResourceProfilesNode["MaxResults"].asString()); if(!discoveredResourceProfilesNode["TotalCount"].isNull()) discoveredResourceProfiles_.totalCount = std::stoi(discoveredResourceProfilesNode["TotalCount"].asString()); auto allDiscoveredResourceProfileListNode = discoveredResourceProfilesNode["DiscoveredResourceProfileList"]["DiscoveredResourceProfile"]; @@ -70,6 +70,10 @@ void ListAggregateDiscoveredResourcesResult::parse(const std::string &payload) discoveredResourceProfileObject.resourceStatus = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].asString(); if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceOwnerId"].isNull()) discoveredResourceProfileObject.resourceOwnerId = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceOwnerId"].asString()); + if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Version"].isNull()) + discoveredResourceProfileObject.version = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Version"].asString()); + if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AvailabilityZone"].isNull()) + discoveredResourceProfileObject.availabilityZone = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AvailabilityZone"].asString(); discoveredResourceProfiles_.discoveredResourceProfileList.push_back(discoveredResourceProfileObject); } diff --git a/config/src/model/ListAggregateRemediationExecutionsRequest.cc b/config/src/model/ListAggregateRemediationExecutionsRequest.cc new file mode 100644 index 000000000..fa5608e14 --- /dev/null +++ b/config/src/model/ListAggregateRemediationExecutionsRequest.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::ListAggregateRemediationExecutionsRequest; + +ListAggregateRemediationExecutionsRequest::ListAggregateRemediationExecutionsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateRemediationExecutions") { + setMethod(HttpRequest::Method::Post); +} + +ListAggregateRemediationExecutionsRequest::~ListAggregateRemediationExecutionsRequest() {} + +std::string ListAggregateRemediationExecutionsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void ListAggregateRemediationExecutionsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string ListAggregateRemediationExecutionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListAggregateRemediationExecutionsRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); +} + +std::string ListAggregateRemediationExecutionsRequest::getExecutionStatus() const { + return executionStatus_; +} + +void ListAggregateRemediationExecutionsRequest::setExecutionStatus(const std::string &executionStatus) { + executionStatus_ = executionStatus; + setParameter(std::string("ExecutionStatus"), executionStatus); +} + +std::string ListAggregateRemediationExecutionsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateRemediationExecutionsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +long ListAggregateRemediationExecutionsRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void ListAggregateRemediationExecutionsRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + +std::string ListAggregateRemediationExecutionsRequest::getNextToken() const { + return nextToken_; +} + +void ListAggregateRemediationExecutionsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +long ListAggregateRemediationExecutionsRequest::getMaxResults() const { + return maxResults_; +} + +void ListAggregateRemediationExecutionsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/config/src/model/ListAggregateRemediationExecutionsResult.cc b/config/src/model/ListAggregateRemediationExecutionsResult.cc new file mode 100644 index 000000000..a10db7ea5 --- /dev/null +++ b/config/src/model/ListAggregateRemediationExecutionsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregateRemediationExecutionsResult::ListAggregateRemediationExecutionsResult() : + ServiceResult() +{} + +ListAggregateRemediationExecutionsResult::ListAggregateRemediationExecutionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateRemediationExecutionsResult::~ListAggregateRemediationExecutionsResult() +{} + +void ListAggregateRemediationExecutionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto remediationExecutionDataNode = value["RemediationExecutionData"]; + if(!remediationExecutionDataNode["NextToken"].isNull()) + remediationExecutionData_.nextToken = remediationExecutionDataNode["NextToken"].asString(); + if(!remediationExecutionDataNode["MaxResults"].isNull()) + remediationExecutionData_.maxResults = std::stol(remediationExecutionDataNode["MaxResults"].asString()); + auto allRemediationExecutionsNode = remediationExecutionDataNode["RemediationExecutions"]["RemediationExecutionsItem"]; + for (auto remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem : allRemediationExecutionsNode) + { + RemediationExecutionData::RemediationExecutionsItem remediationExecutionsItemObject; + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionInvocationId"].isNull()) + remediationExecutionsItemObject.executionInvocationId = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionInvocationId"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionStatus"].isNull()) + remediationExecutionsItemObject.executionStatus = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionStatus"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionResourceType"].isNull()) + remediationExecutionsItemObject.executionResourceType = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionResourceType"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionCreateDate"].isNull()) + remediationExecutionsItemObject.executionCreateDate = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionCreateDate"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionStatusMessage"].isNull()) + remediationExecutionsItemObject.executionStatusMessage = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionStatusMessage"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionResourceIds"].isNull()) + remediationExecutionsItemObject.executionResourceIds = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionResourceIds"].asString(); + remediationExecutionData_.remediationExecutions.push_back(remediationExecutionsItemObject); + } + +} + +ListAggregateRemediationExecutionsResult::RemediationExecutionData ListAggregateRemediationExecutionsResult::getRemediationExecutionData()const +{ + return remediationExecutionData_; +} + diff --git a/config/src/model/ListAggregateRemediationsRequest.cc b/config/src/model/ListAggregateRemediationsRequest.cc new file mode 100644 index 000000000..e9d6d202d --- /dev/null +++ b/config/src/model/ListAggregateRemediationsRequest.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::ListAggregateRemediationsRequest; + +ListAggregateRemediationsRequest::ListAggregateRemediationsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateRemediations") { + setMethod(HttpRequest::Method::Post); +} + +ListAggregateRemediationsRequest::~ListAggregateRemediationsRequest() {} + +std::string ListAggregateRemediationsRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void ListAggregateRemediationsRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string ListAggregateRemediationsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateRemediationsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/ListAggregateRemediationsResult.cc b/config/src/model/ListAggregateRemediationsResult.cc new file mode 100644 index 000000000..74f99e003 --- /dev/null +++ b/config/src/model/ListAggregateRemediationsResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregateRemediationsResult::ListAggregateRemediationsResult() : + ServiceResult() +{} + +ListAggregateRemediationsResult::ListAggregateRemediationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateRemediationsResult::~ListAggregateRemediationsResult() +{} + +void ListAggregateRemediationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRemediationsNode = value["Remediations"]["Remediation"]; + for (auto valueRemediationsRemediation : allRemediationsNode) + { + Remediation remediationsObject; + if(!valueRemediationsRemediation["RemediationTemplateId"].isNull()) + remediationsObject.remediationTemplateId = valueRemediationsRemediation["RemediationTemplateId"].asString(); + if(!valueRemediationsRemediation["RemediationDynamicParams"].isNull()) + remediationsObject.remediationDynamicParams = valueRemediationsRemediation["RemediationDynamicParams"].asString(); + if(!valueRemediationsRemediation["RemediationSourceType"].isNull()) + remediationsObject.remediationSourceType = valueRemediationsRemediation["RemediationSourceType"].asString(); + if(!valueRemediationsRemediation["RemediationType"].isNull()) + remediationsObject.remediationType = valueRemediationsRemediation["RemediationType"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationId"].isNull()) + remediationsObject.lastSuccessfulInvocationId = valueRemediationsRemediation["LastSuccessfulInvocationId"].asString(); + if(!valueRemediationsRemediation["AccountId"].isNull()) + remediationsObject.accountId = std::stol(valueRemediationsRemediation["AccountId"].asString()); + if(!valueRemediationsRemediation["AggregatorId"].isNull()) + remediationsObject.aggregatorId = valueRemediationsRemediation["AggregatorId"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationType"].isNull()) + remediationsObject.lastSuccessfulInvocationType = valueRemediationsRemediation["LastSuccessfulInvocationType"].asString(); + if(!valueRemediationsRemediation["RemediationId"].isNull()) + remediationsObject.remediationId = valueRemediationsRemediation["RemediationId"].asString(); + if(!valueRemediationsRemediation["InvokeType"].isNull()) + remediationsObject.invokeType = valueRemediationsRemediation["InvokeType"].asString(); + if(!valueRemediationsRemediation["ConfigRuleId"].isNull()) + remediationsObject.configRuleId = valueRemediationsRemediation["ConfigRuleId"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationTime"].isNull()) + remediationsObject.lastSuccessfulInvocationTime = std::stol(valueRemediationsRemediation["LastSuccessfulInvocationTime"].asString()); + if(!valueRemediationsRemediation["RemediaitonOriginParams"].isNull()) + remediationsObject.remediaitonOriginParams = valueRemediationsRemediation["RemediaitonOriginParams"].asString(); + remediations_.push_back(remediationsObject); + } + +} + +std::vector ListAggregateRemediationsResult::getRemediations()const +{ + return remediations_; +} + diff --git a/config/src/model/ListAggregateResourceEvaluationResultsRequest.cc b/config/src/model/ListAggregateResourceEvaluationResultsRequest.cc new file mode 100644 index 000000000..8b8817573 --- /dev/null +++ b/config/src/model/ListAggregateResourceEvaluationResultsRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListAggregateResourceEvaluationResultsRequest; + +ListAggregateResourceEvaluationResultsRequest::ListAggregateResourceEvaluationResultsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateResourceEvaluationResults") { + setMethod(HttpRequest::Method::Post); +} + +ListAggregateResourceEvaluationResultsRequest::~ListAggregateResourceEvaluationResultsRequest() {} + +std::string ListAggregateResourceEvaluationResultsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void ListAggregateResourceEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateResourceEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getNextToken() const { + return nextToken_; +} + +void ListAggregateResourceEvaluationResultsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getComplianceType() const { + return complianceType_; +} + +void ListAggregateResourceEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getResourceId() const { + return resourceId_; +} + +void ListAggregateResourceEvaluationResultsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ListAggregateResourceEvaluationResultsRequest::getResourceType() const { + return resourceType_; +} + +void ListAggregateResourceEvaluationResultsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +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); +} + diff --git a/config/src/model/ListAggregateResourceEvaluationResultsResult.cc b/config/src/model/ListAggregateResourceEvaluationResultsResult.cc new file mode 100644 index 000000000..5cfeb495c --- /dev/null +++ b/config/src/model/ListAggregateResourceEvaluationResultsResult.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; + +ListAggregateResourceEvaluationResultsResult::ListAggregateResourceEvaluationResultsResult() : + ServiceResult() +{} + +ListAggregateResourceEvaluationResultsResult::ListAggregateResourceEvaluationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateResourceEvaluationResultsResult::~ListAggregateResourceEvaluationResultsResult() +{} + +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["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(); + if(!evaluationResultQualifierNode["IgnoreDate"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString(); + evaluationResults_.evaluationResultList.push_back(evaluationResultObject); + } + +} + +ListAggregateResourceEvaluationResultsResult::EvaluationResults ListAggregateResourceEvaluationResultsResult::getEvaluationResults()const +{ + return evaluationResults_; +} + diff --git a/config/src/model/ListAggregateResourceRelationsRequest.cc b/config/src/model/ListAggregateResourceRelationsRequest.cc new file mode 100644 index 000000000..d4e67f30d --- /dev/null +++ b/config/src/model/ListAggregateResourceRelationsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListAggregateResourceRelationsRequest; + +ListAggregateResourceRelationsRequest::ListAggregateResourceRelationsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateResourceRelations") { + setMethod(HttpRequest::Method::Post); +} + +ListAggregateResourceRelationsRequest::~ListAggregateResourceRelationsRequest() {} + +std::string ListAggregateResourceRelationsRequest::getTargetResourceId() const { + return targetResourceId_; +} + +void ListAggregateResourceRelationsRequest::setTargetResourceId(const std::string &targetResourceId) { + targetResourceId_ = targetResourceId; + setParameter(std::string("TargetResourceId"), targetResourceId); +} + +std::string ListAggregateResourceRelationsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateResourceRelationsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string ListAggregateResourceRelationsRequest::getRelationType() const { + return relationType_; +} + +void ListAggregateResourceRelationsRequest::setRelationType(const std::string &relationType) { + relationType_ = relationType; + setParameter(std::string("RelationType"), relationType); +} + +long ListAggregateResourceRelationsRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void ListAggregateResourceRelationsRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + +std::string ListAggregateResourceRelationsRequest::getNextToken() const { + return nextToken_; +} + +void ListAggregateResourceRelationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListAggregateResourceRelationsRequest::getTargetResourceType() const { + return targetResourceType_; +} + +void ListAggregateResourceRelationsRequest::setTargetResourceType(const std::string &targetResourceType) { + targetResourceType_ = targetResourceType; + setParameter(std::string("TargetResourceType"), targetResourceType); +} + +std::string ListAggregateResourceRelationsRequest::getResourceId() const { + return resourceId_; +} + +void ListAggregateResourceRelationsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ListAggregateResourceRelationsRequest::getResourceType() const { + return resourceType_; +} + +void ListAggregateResourceRelationsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int ListAggregateResourceRelationsRequest::getMaxResults() const { + return maxResults_; +} + +void ListAggregateResourceRelationsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListAggregateResourceRelationsRequest::getRegion() const { + return region_; +} + +void ListAggregateResourceRelationsRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/config/src/model/ListAggregateResourceRelationsResult.cc b/config/src/model/ListAggregateResourceRelationsResult.cc new file mode 100644 index 000000000..7100095f4 --- /dev/null +++ b/config/src/model/ListAggregateResourceRelationsResult.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; + +ListAggregateResourceRelationsResult::ListAggregateResourceRelationsResult() : + ServiceResult() +{} + +ListAggregateResourceRelationsResult::ListAggregateResourceRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateResourceRelationsResult::~ListAggregateResourceRelationsResult() +{} + +void ListAggregateResourceRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceRelationsNode = value["ResourceRelations"]; + if(!resourceRelationsNode["NextToken"].isNull()) + resourceRelations_.nextToken = resourceRelationsNode["NextToken"].asString(); + if(!resourceRelationsNode["MaxResults"].isNull()) + resourceRelations_.maxResults = std::stoi(resourceRelationsNode["MaxResults"].asString()); + if(!resourceRelationsNode["TotalCount"].isNull()) + resourceRelations_.totalCount = std::stoi(resourceRelationsNode["TotalCount"].asString()); + auto allResourceRelationListNode = resourceRelationsNode["ResourceRelationList"]["ResourceRelationListItem"]; + for (auto resourceRelationsNodeResourceRelationListResourceRelationListItem : allResourceRelationListNode) + { + ResourceRelations::ResourceRelationListItem resourceRelationListItemObject; + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].isNull()) + resourceRelationListItemObject.accountId = std::stoi(resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].asString()); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceType"].isNull()) + resourceRelationListItemObject.sourceResourceType = resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceType"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceRegionId"].isNull()) + resourceRelationListItemObject.sourceResourceRegionId = resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceRegionId"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceId"].isNull()) + resourceRelationListItemObject.sourceResourceId = resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceId"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["TargetResourceType"].isNull()) + resourceRelationListItemObject.targetResourceType = resourceRelationsNodeResourceRelationListResourceRelationListItem["TargetResourceType"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["TargetResourceId"].isNull()) + resourceRelationListItemObject.targetResourceId = resourceRelationsNodeResourceRelationListResourceRelationListItem["TargetResourceId"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["RelationType"].isNull()) + resourceRelationListItemObject.relationType = resourceRelationsNodeResourceRelationListResourceRelationListItem["RelationType"].asString(); + resourceRelations_.resourceRelationList.push_back(resourceRelationListItemObject); + } + +} + +ListAggregateResourceRelationsResult::ResourceRelations ListAggregateResourceRelationsResult::getResourceRelations()const +{ + return resourceRelations_; +} + diff --git a/config/src/model/ListAggregateResourcesByAdvancedSearchRequest.cc b/config/src/model/ListAggregateResourcesByAdvancedSearchRequest.cc new file mode 100644 index 000000000..6ee59b08d --- /dev/null +++ b/config/src/model/ListAggregateResourcesByAdvancedSearchRequest.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::ListAggregateResourcesByAdvancedSearchRequest; + +ListAggregateResourcesByAdvancedSearchRequest::ListAggregateResourcesByAdvancedSearchRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateResourcesByAdvancedSearch") { + setMethod(HttpRequest::Method::Post); +} + +ListAggregateResourcesByAdvancedSearchRequest::~ListAggregateResourcesByAdvancedSearchRequest() {} + +std::string ListAggregateResourcesByAdvancedSearchRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateResourcesByAdvancedSearchRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string ListAggregateResourcesByAdvancedSearchRequest::getSql() const { + return sql_; +} + +void ListAggregateResourcesByAdvancedSearchRequest::setSql(const std::string &sql) { + sql_ = sql; + setParameter(std::string("Sql"), sql); +} + diff --git a/config/src/model/ListAggregateResourcesByAdvancedSearchResult.cc b/config/src/model/ListAggregateResourcesByAdvancedSearchResult.cc new file mode 100644 index 000000000..541dd9226 --- /dev/null +++ b/config/src/model/ListAggregateResourcesByAdvancedSearchResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregateResourcesByAdvancedSearchResult::ListAggregateResourcesByAdvancedSearchResult() : + ServiceResult() +{} + +ListAggregateResourcesByAdvancedSearchResult::ListAggregateResourcesByAdvancedSearchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateResourcesByAdvancedSearchResult::~ListAggregateResourcesByAdvancedSearchResult() +{} + +void ListAggregateResourcesByAdvancedSearchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto queryResultsNode = value["QueryResults"]; + auto queryResultListNode = queryResultsNode["QueryResultList"]; + auto allColumns = queryResultListNode["Columns"]["Columns"]; + for (auto value : allColumns) + queryResults_.queryResultList.columns.push_back(value.asString()); + auto allValues = queryResultListNode["Values"]["Rows"]; + for (auto value : allValues) + queryResults_.queryResultList.values.push_back(value.asString()); + +} + +ListAggregateResourcesByAdvancedSearchResult::QueryResults ListAggregateResourcesByAdvancedSearchResult::getQueryResults()const +{ + return queryResults_; +} + diff --git a/config/src/model/ListAggregatorsRequest.cc b/config/src/model/ListAggregatorsRequest.cc new file mode 100644 index 000000000..e58e555f6 --- /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::Post); +} + +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..305ee40a2 --- /dev/null +++ b/config/src/model/ListCompliancePackTemplatesRequest.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::ListCompliancePackTemplatesRequest; + +ListCompliancePackTemplatesRequest::ListCompliancePackTemplatesRequest() + : RpcServiceRequest("config", "2020-09-07", "ListCompliancePackTemplates") { + setMethod(HttpRequest::Method::Post); +} + +ListCompliancePackTemplatesRequest::~ListCompliancePackTemplatesRequest() {} + +std::string ListCompliancePackTemplatesRequest::getResourceTypes() const { + return resourceTypes_; +} + +void ListCompliancePackTemplatesRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setParameter(std::string("ResourceTypes"), resourceTypes); +} + +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..3c5888481 --- /dev/null +++ b/config/src/model/ListCompliancePackTemplatesResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["Domain"].isNull()) + compliancePackTemplateObject.domain = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["Domain"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["Labels"].isNull()) + compliancePackTemplateObject.labels = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["Labels"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["DeveloperType"].isNull()) + compliancePackTemplateObject.developerType = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["DeveloperType"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["LastUpdate"].isNull()) + compliancePackTemplateObject.lastUpdate = std::stoi(compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["LastUpdate"].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()); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["DeveloperType"].isNull()) + configRulesObject.developerType = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["DeveloperType"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ControlId"].isNull()) + configRulesObject.controlId = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ControlId"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ControlDescription"].isNull()) + configRulesObject.controlDescription = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ControlDescription"].asString(); + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["DefaultEnable"].isNull()) + configRulesObject.defaultEnable = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["DefaultEnable"].asString() == "true"; + if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ResourceTypesScope"].isNull()) + configRulesObject.resourceTypesScope = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ResourceTypesScope"].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..ce69106bf --- /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::Post); +} + +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/DescribeDeliveryChannelsRequest.cc b/config/src/model/ListConfigDeliveryChannelsRequest.cc similarity index 58% rename from config/src/model/DescribeDeliveryChannelsRequest.cc rename to config/src/model/ListConfigDeliveryChannelsRequest.cc index 07a251410..c6c505af8 100644 --- a/config/src/model/DescribeDeliveryChannelsRequest.cc +++ b/config/src/model/ListConfigDeliveryChannelsRequest.cc @@ -14,22 +14,22 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::DescribeDeliveryChannelsRequest; +using AlibabaCloud::Config::Model::ListConfigDeliveryChannelsRequest; -DescribeDeliveryChannelsRequest::DescribeDeliveryChannelsRequest() - : RpcServiceRequest("config", "2019-01-08", "DescribeDeliveryChannels") { +ListConfigDeliveryChannelsRequest::ListConfigDeliveryChannelsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListConfigDeliveryChannels") { setMethod(HttpRequest::Method::Post); } -DescribeDeliveryChannelsRequest::~DescribeDeliveryChannelsRequest() {} +ListConfigDeliveryChannelsRequest::~ListConfigDeliveryChannelsRequest() {} -std::string DescribeDeliveryChannelsRequest::getDeliveryChannelIds() const { +std::string ListConfigDeliveryChannelsRequest::getDeliveryChannelIds() const { return deliveryChannelIds_; } -void DescribeDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) { +void ListConfigDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) { deliveryChannelIds_ = deliveryChannelIds; setParameter(std::string("DeliveryChannelIds"), deliveryChannelIds); } diff --git a/config/src/model/DescribeDeliveryChannelsResult.cc b/config/src/model/ListConfigDeliveryChannelsResult.cc similarity index 80% rename from config/src/model/DescribeDeliveryChannelsResult.cc rename to config/src/model/ListConfigDeliveryChannelsResult.cc index 298aa8acc..1f646bfab 100644 --- a/config/src/model/DescribeDeliveryChannelsResult.cc +++ b/config/src/model/ListConfigDeliveryChannelsResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DescribeDeliveryChannelsResult::DescribeDeliveryChannelsResult() : +ListConfigDeliveryChannelsResult::ListConfigDeliveryChannelsResult() : ServiceResult() {} -DescribeDeliveryChannelsResult::DescribeDeliveryChannelsResult(const std::string &payload) : +ListConfigDeliveryChannelsResult::ListConfigDeliveryChannelsResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeDeliveryChannelsResult::~DescribeDeliveryChannelsResult() +ListConfigDeliveryChannelsResult::~ListConfigDeliveryChannelsResult() {} -void DescribeDeliveryChannelsResult::parse(const std::string &payload) +void ListConfigDeliveryChannelsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -51,28 +51,32 @@ void DescribeDeliveryChannelsResult::parse(const std::string &payload) 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["DeliveryChannelAssumeRoleArn"].isNull()) + deliveryChannelsObject.deliveryChannelAssumeRoleArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull()) + deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].isNull()) + deliveryChannelsObject.oversizedDataOSSTargetArn = valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["Description"].isNull()) + deliveryChannelsObject.description = valueDeliveryChannelsDeliveryChannel["Description"].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(); + if(!valueDeliveryChannelsDeliveryChannel["AccountId"].isNull()) + deliveryChannelsObject.accountId = std::stol(valueDeliveryChannelsDeliveryChannel["AccountId"].asString()); + if(!valueDeliveryChannelsDeliveryChannel["DeliverySnapshotTime"].isNull()) + deliveryChannelsObject.deliverySnapshotTime = valueDeliveryChannelsDeliveryChannel["DeliverySnapshotTime"].asString(); deliveryChannels_.push_back(deliveryChannelsObject); } } -std::vector DescribeDeliveryChannelsResult::getDeliveryChannels()const +std::vector ListConfigDeliveryChannelsResult::getDeliveryChannels()const { return deliveryChannels_; } diff --git a/config/src/model/ListConfigRuleEvaluationResultsRequest.cc b/config/src/model/ListConfigRuleEvaluationResultsRequest.cc new file mode 100644 index 000000000..954f162b2 --- /dev/null +++ b/config/src/model/ListConfigRuleEvaluationResultsRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::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::getRegions() const { + return regions_; +} + +void ListConfigRuleEvaluationResultsRequest::setRegions(const std::string ®ions) { + regions_ = regions; + setParameter(std::string("Regions"), regions); +} + +std::string ListConfigRuleEvaluationResultsRequest::getNextToken() const { + return nextToken_; +} + +void ListConfigRuleEvaluationResultsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +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); +} + +std::string ListConfigRuleEvaluationResultsRequest::getResourceTypes() const { + return resourceTypes_; +} + +void ListConfigRuleEvaluationResultsRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setParameter(std::string("ResourceTypes"), resourceTypes); +} + +std::string ListConfigRuleEvaluationResultsRequest::getResourceGroupIds() const { + return resourceGroupIds_; +} + +void ListConfigRuleEvaluationResultsRequest::setResourceGroupIds(const std::string &resourceGroupIds) { + resourceGroupIds_ = resourceGroupIds; + setParameter(std::string("ResourceGroupIds"), resourceGroupIds); +} + +int ListConfigRuleEvaluationResultsRequest::getMaxResults() const { + return maxResults_; +} + +void ListConfigRuleEvaluationResultsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/config/src/model/ListConfigRuleEvaluationResultsResult.cc b/config/src/model/ListConfigRuleEvaluationResultsResult.cc new file mode 100644 index 000000000..66f880e14 --- /dev/null +++ b/config/src/model/ListConfigRuleEvaluationResultsResult.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; + +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(); + if(!evaluationResultQualifierNode["IgnoreDate"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString(); + evaluationResults_.evaluationResultList.push_back(evaluationResultObject); + } + +} + +ListConfigRuleEvaluationResultsResult::EvaluationResults ListConfigRuleEvaluationResultsResult::getEvaluationResults()const +{ + return evaluationResults_; +} + diff --git a/config/src/model/ListConfigRuleEvaluationStatisticsRequest.cc b/config/src/model/ListConfigRuleEvaluationStatisticsRequest.cc new file mode 100644 index 000000000..5aaa95a5d --- /dev/null +++ b/config/src/model/ListConfigRuleEvaluationStatisticsRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::ListConfigRuleEvaluationStatisticsRequest; + +ListConfigRuleEvaluationStatisticsRequest::ListConfigRuleEvaluationStatisticsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListConfigRuleEvaluationStatistics") { + setMethod(HttpRequest::Method::Post); +} + +ListConfigRuleEvaluationStatisticsRequest::~ListConfigRuleEvaluationStatisticsRequest() {} + diff --git a/config/src/model/ListConfigRuleEvaluationStatisticsResult.cc b/config/src/model/ListConfigRuleEvaluationStatisticsResult.cc new file mode 100644 index 000000000..2e91fd7eb --- /dev/null +++ b/config/src/model/ListConfigRuleEvaluationStatisticsResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListConfigRuleEvaluationStatisticsResult::ListConfigRuleEvaluationStatisticsResult() : + ServiceResult() +{} + +ListConfigRuleEvaluationStatisticsResult::ListConfigRuleEvaluationStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListConfigRuleEvaluationStatisticsResult::~ListConfigRuleEvaluationStatisticsResult() +{} + +void ListConfigRuleEvaluationStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEvaluationResultsNode = value["EvaluationResults"]["EvaluationResultsItem"]; + for (auto valueEvaluationResultsEvaluationResultsItem : allEvaluationResultsNode) + { + EvaluationResultsItem evaluationResultsObject; + if(!valueEvaluationResultsEvaluationResultsItem["AccountId"].isNull()) + evaluationResultsObject.accountId = std::stol(valueEvaluationResultsEvaluationResultsItem["AccountId"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["NonCompliantResourceCnt"].isNull()) + evaluationResultsObject.nonCompliantResourceCnt = std::stoi(valueEvaluationResultsEvaluationResultsItem["NonCompliantResourceCnt"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["TotalResourceCnt"].isNull()) + evaluationResultsObject.totalResourceCnt = std::stoi(valueEvaluationResultsEvaluationResultsItem["TotalResourceCnt"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["NonCompliantRuleCnt"].isNull()) + evaluationResultsObject.nonCompliantRuleCnt = std::stoi(valueEvaluationResultsEvaluationResultsItem["NonCompliantRuleCnt"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["TotalRuleCnt"].isNull()) + evaluationResultsObject.totalRuleCnt = std::stoi(valueEvaluationResultsEvaluationResultsItem["TotalRuleCnt"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["GmtCreate"].isNull()) + evaluationResultsObject.gmtCreate = std::stol(valueEvaluationResultsEvaluationResultsItem["GmtCreate"].asString()); + if(!valueEvaluationResultsEvaluationResultsItem["NonCompliantRuleDetail"].isNull()) + evaluationResultsObject.nonCompliantRuleDetail = valueEvaluationResultsEvaluationResultsItem["NonCompliantRuleDetail"].asString(); + if(!valueEvaluationResultsEvaluationResultsItem["StatisticDate"].isNull()) + evaluationResultsObject.statisticDate = valueEvaluationResultsEvaluationResultsItem["StatisticDate"].asString(); + evaluationResults_.push_back(evaluationResultsObject); + } + +} + +std::vector ListConfigRuleEvaluationStatisticsResult::getEvaluationResults()const +{ + return evaluationResults_; +} + diff --git a/config/src/model/ListConfigRulesRequest.cc b/config/src/model/ListConfigRulesRequest.cc index f1ecf05e5..9531c2369 100644 --- a/config/src/model/ListConfigRulesRequest.cc +++ b/config/src/model/ListConfigRulesRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Config::Model::ListConfigRulesRequest; ListConfigRulesRequest::ListConfigRulesRequest() - : RpcServiceRequest("config", "2019-01-08", "ListConfigRules") { + : RpcServiceRequest("config", "2020-09-07", "ListConfigRules") { setMethod(HttpRequest::Method::Post); } 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_; } @@ -43,15 +34,6 @@ void ListConfigRulesRequest::setFilterInCompliancePack(bool filterInCompliancePa 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_; } @@ -97,14 +79,13 @@ void ListConfigRulesRequest::setCompliancePackId(const std::string &compliancePa setParameter(std::string("CompliancePackId"), compliancePackId); } -ListConfigRulesRequest::Tag ListConfigRulesRequest::getTag() const { - return tag_; +std::string ListConfigRulesRequest::getKeyword() const { + return keyword_; } -void ListConfigRulesRequest::setTag(const ListConfigRulesRequest::Tag &tag) { - tag_ = tag; - setParameter(std::string("Tag") + ".Value", tag.value); - setParameter(std::string("Tag") + ".Key", tag.key); +void ListConfigRulesRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } std::string ListConfigRulesRequest::getComplianceType() const { @@ -116,13 +97,13 @@ void ListConfigRulesRequest::setComplianceType(const std::string &complianceType setParameter(std::string("ComplianceType"), complianceType); } -std::string ListConfigRulesRequest::getConfigRuleSceneId() const { - return configRuleSceneId_; +std::string ListConfigRulesRequest::getResourceTypes() const { + return resourceTypes_; } -void ListConfigRulesRequest::setConfigRuleSceneId(const std::string &configRuleSceneId) { - configRuleSceneId_ = configRuleSceneId; - setParameter(std::string("ConfigRuleSceneId"), configRuleSceneId); +void ListConfigRulesRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setParameter(std::string("ResourceTypes"), resourceTypes); } int ListConfigRulesRequest::getRiskLevel() const { @@ -143,12 +124,12 @@ void ListConfigRulesRequest::setConfigRuleName(const std::string &configRuleName setParameter(std::string("ConfigRuleName"), configRuleName); } -long ListConfigRulesRequest::getMemberId() const { - return memberId_; +std::string ListConfigRulesRequest::getServiceChannel() const { + return serviceChannel_; } -void ListConfigRulesRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); +void ListConfigRulesRequest::setServiceChannel(const std::string &serviceChannel) { + serviceChannel_ = serviceChannel; + setParameter(std::string("ServiceChannel"), serviceChannel); } diff --git a/config/src/model/ListConfigRulesResult.cc b/config/src/model/ListConfigRulesResult.cc index 915e8bed4..c57e38b40 100644 --- a/config/src/model/ListConfigRulesResult.cc +++ b/config/src/model/ListConfigRulesResult.cc @@ -40,18 +40,16 @@ void ListConfigRulesResult::parse(const std::string &payload) 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()) @@ -72,6 +70,10 @@ void ListConfigRulesResult::parse(const std::string &payload) configRuleObject.configRuleName = configRulesNodeConfigRuleListConfigRule["ConfigRuleName"].asString(); if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleId"].isNull()) configRuleObject.configRuleId = configRulesNodeConfigRuleListConfigRule["ConfigRuleId"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["ResourceTypesScope"].isNull()) + configRuleObject.resourceTypesScope = configRulesNodeConfigRuleListConfigRule["ResourceTypesScope"].asString(); + if(!configRulesNodeConfigRuleListConfigRule["ServiceChannel"].isNull()) + configRuleObject.serviceChannel = configRulesNodeConfigRuleListConfigRule["ServiceChannel"].asString(); auto allTagsNode = configRulesNodeConfigRuleListConfigRule["Tags"]["tag"]; for (auto configRulesNodeConfigRuleListConfigRuleTagstag : allTagsNode) { @@ -90,18 +92,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["CompliancePackName"].isNull()) configRuleObject.createBy.compliancePackName = createByNode["CompliancePackName"].asString(); - if(!createByNode["CreatorName"].isNull()) - configRuleObject.createBy.creatorName = createByNode["CreatorName"].asString(); - if(!createByNode["CreatorType"].isNull()) - 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(); configRules_.configRuleList.push_back(configRuleObject); } diff --git a/config/src/model/ListDiscoveredResourcesRequest.cc b/config/src/model/ListDiscoveredResourcesRequest.cc index 45d97228b..996cd948f 100644 --- a/config/src/model/ListDiscoveredResourcesRequest.cc +++ b/config/src/model/ListDiscoveredResourcesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::ListDiscoveredResourcesRequest; ListDiscoveredResourcesRequest::ListDiscoveredResourcesRequest() - : RpcServiceRequest("config", "2019-01-08", "ListDiscoveredResources") { + : RpcServiceRequest("config", "2020-09-07", "ListDiscoveredResources") { setMethod(HttpRequest::Method::Post); } @@ -34,13 +34,13 @@ void ListDiscoveredResourcesRequest::setResourceDeleted(int resourceDeleted) { setParameter(std::string("ResourceDeleted"), std::to_string(resourceDeleted)); } -bool ListDiscoveredResourcesRequest::getMultiAccount() const { - return multiAccount_; +std::string ListDiscoveredResourcesRequest::getResourceId() const { + return resourceId_; } -void ListDiscoveredResourcesRequest::setMultiAccount(bool multiAccount) { - multiAccount_ = multiAccount; - setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +void ListDiscoveredResourcesRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } std::string ListDiscoveredResourcesRequest::getRegions() const { @@ -52,42 +52,6 @@ void ListDiscoveredResourcesRequest::setRegions(const std::string ®ions) { 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_; } @@ -97,12 +61,21 @@ void ListDiscoveredResourcesRequest::setResourceTypes(const std::string &resourc setParameter(std::string("ResourceTypes"), resourceTypes); } -long ListDiscoveredResourcesRequest::getMemberId() const { - return memberId_; +std::string ListDiscoveredResourcesRequest::getNextToken() const { + return nextToken_; } -void ListDiscoveredResourcesRequest::setMemberId(long memberId) { - memberId_ = memberId; - setParameter(std::string("MemberId"), std::to_string(memberId)); +void ListDiscoveredResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListDiscoveredResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void ListDiscoveredResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/config/src/model/ListDiscoveredResourcesResult.cc b/config/src/model/ListDiscoveredResourcesResult.cc index 4dd28dcc4..cfa065a03 100644 --- a/config/src/model/ListDiscoveredResourcesResult.cc +++ b/config/src/model/ListDiscoveredResourcesResult.cc @@ -40,10 +40,10 @@ void ListDiscoveredResourcesResult::parse(const std::string &payload) 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["NextToken"].isNull()) + discoveredResourceProfiles_.nextToken = discoveredResourceProfilesNode["NextToken"].asString(); + if(!discoveredResourceProfilesNode["MaxResults"].isNull()) + discoveredResourceProfiles_.maxResults = std::stoi(discoveredResourceProfilesNode["MaxResults"].asString()); if(!discoveredResourceProfilesNode["TotalCount"].isNull()) discoveredResourceProfiles_.totalCount = std::stoi(discoveredResourceProfilesNode["TotalCount"].asString()); auto allDiscoveredResourceProfileListNode = discoveredResourceProfilesNode["DiscoveredResourceProfileList"]["DiscoveredResourceProfile"]; @@ -68,6 +68,10 @@ void ListDiscoveredResourcesResult::parse(const std::string &payload) discoveredResourceProfileObject.resourceDeleted = std::stoi(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].asString()); if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].isNull()) discoveredResourceProfileObject.resourceStatus = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].asString(); + if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Version"].isNull()) + discoveredResourceProfileObject.version = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Version"].asString()); + if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AvailabilityZone"].isNull()) + discoveredResourceProfileObject.availabilityZone = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AvailabilityZone"].asString(); discoveredResourceProfiles_.discoveredResourceProfileList.push_back(discoveredResourceProfileObject); } diff --git a/config/src/model/ListIntegratedServiceRequest.cc b/config/src/model/ListIntegratedServiceRequest.cc new file mode 100644 index 000000000..dbcead42d --- /dev/null +++ b/config/src/model/ListIntegratedServiceRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::ListIntegratedServiceRequest; + +ListIntegratedServiceRequest::ListIntegratedServiceRequest() + : RpcServiceRequest("config", "2020-09-07", "ListIntegratedService") { + setMethod(HttpRequest::Method::Post); +} + +ListIntegratedServiceRequest::~ListIntegratedServiceRequest() {} + diff --git a/config/src/model/ListIntegratedServiceResult.cc b/config/src/model/ListIntegratedServiceResult.cc new file mode 100644 index 000000000..52e80f218 --- /dev/null +++ b/config/src/model/ListIntegratedServiceResult.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 +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListIntegratedServiceResult::ListIntegratedServiceResult() : + ServiceResult() +{} + +ListIntegratedServiceResult::ListIntegratedServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIntegratedServiceResult::~ListIntegratedServiceResult() +{} + +void ListIntegratedServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["AccountId"].isNull()) + dataObject.accountId = std::stol(valueDatadataItem["AccountId"].asString()); + if(!valueDatadataItem["ServiceName"].isNull()) + dataObject.serviceName = valueDatadataItem["ServiceName"].asString(); + if(!valueDatadataItem["ServiceCode"].isNull()) + dataObject.serviceCode = valueDatadataItem["ServiceCode"].asString(); + if(!valueDatadataItem["Status"].isNull()) + dataObject.status = valueDatadataItem["Status"].asString() == "true"; + data_.push_back(dataObject); + } + +} + +std::vector ListIntegratedServiceResult::getData()const +{ + return data_; +} + diff --git a/config/src/model/ListManagedRulesRequest.cc b/config/src/model/ListManagedRulesRequest.cc new file mode 100644 index 000000000..6979e7899 --- /dev/null +++ b/config/src/model/ListManagedRulesRequest.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::ListManagedRulesRequest; + +ListManagedRulesRequest::ListManagedRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "ListManagedRules") { + setMethod(HttpRequest::Method::Post); +} + +ListManagedRulesRequest::~ListManagedRulesRequest() {} + +std::string ListManagedRulesRequest::getResourceTypes() const { + return resourceTypes_; +} + +void ListManagedRulesRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setParameter(std::string("ResourceTypes"), resourceTypes); +} + +std::string ListManagedRulesRequest::getSupportRemediation() const { + return supportRemediation_; +} + +void ListManagedRulesRequest::setSupportRemediation(const std::string &supportRemediation) { + supportRemediation_ = supportRemediation; + setParameter(std::string("SupportRemediation"), supportRemediation); +} + +int ListManagedRulesRequest::getRiskLevel() const { + return riskLevel_; +} + +void ListManagedRulesRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + +int ListManagedRulesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListManagedRulesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListManagedRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListManagedRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListManagedRulesRequest::getSupportPreviewManagedRule() const { + return supportPreviewManagedRule_; +} + +void ListManagedRulesRequest::setSupportPreviewManagedRule(const std::string &supportPreviewManagedRule) { + supportPreviewManagedRule_ = supportPreviewManagedRule; + setParameter(std::string("SupportPreviewManagedRule"), supportPreviewManagedRule); +} + +std::string ListManagedRulesRequest::getKeyword() const { + return keyword_; +} + +void ListManagedRulesRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + diff --git a/config/src/model/ListManagedRulesResult.cc b/config/src/model/ListManagedRulesResult.cc new file mode 100644 index 000000000..a0d43abe2 --- /dev/null +++ b/config/src/model/ListManagedRulesResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListManagedRulesResult::ListManagedRulesResult() : + ServiceResult() +{} + +ListManagedRulesResult::ListManagedRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListManagedRulesResult::~ListManagedRulesResult() +{} + +void ListManagedRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto managedRulesNode = value["ManagedRules"]; + if(!managedRulesNode["PageSize"].isNull()) + managedRules_.pageSize = std::stoi(managedRulesNode["PageSize"].asString()); + if(!managedRulesNode["PageNumber"].isNull()) + managedRules_.pageNumber = std::stoi(managedRulesNode["PageNumber"].asString()); + if(!managedRulesNode["TotalCount"].isNull()) + managedRules_.totalCount = std::stol(managedRulesNode["TotalCount"].asString()); + auto allManagedRuleListNode = managedRulesNode["ManagedRuleList"]["ManagedRule"]; + for (auto managedRulesNodeManagedRuleListManagedRule : allManagedRuleListNode) + { + ManagedRules::ManagedRule managedRuleObject; + if(!managedRulesNodeManagedRuleListManagedRule["RiskLevel"].isNull()) + managedRuleObject.riskLevel = std::stoi(managedRulesNodeManagedRuleListManagedRule["RiskLevel"].asString()); + if(!managedRulesNodeManagedRuleListManagedRule["Description"].isNull()) + managedRuleObject.description = managedRulesNodeManagedRuleListManagedRule["Description"].asString(); + if(!managedRulesNodeManagedRuleListManagedRule["UseCases"].isNull()) + managedRuleObject.useCases = managedRulesNodeManagedRuleListManagedRule["UseCases"].asString(); + if(!managedRulesNodeManagedRuleListManagedRule["Identifier"].isNull()) + managedRuleObject.identifier = managedRulesNodeManagedRuleListManagedRule["Identifier"].asString(); + if(!managedRulesNodeManagedRuleListManagedRule["ConfigRuleName"].isNull()) + managedRuleObject.configRuleName = managedRulesNodeManagedRuleListManagedRule["ConfigRuleName"].asString(); + if(!managedRulesNodeManagedRuleListManagedRule["ReferenceCount"].isNull()) + managedRuleObject.referenceCount = std::stoi(managedRulesNodeManagedRuleListManagedRule["ReferenceCount"].asString()); + if(!managedRulesNodeManagedRuleListManagedRule["HelpUrls"].isNull()) + managedRuleObject.helpUrls = managedRulesNodeManagedRuleListManagedRule["HelpUrls"].asString(); + if(!managedRulesNodeManagedRuleListManagedRule["SupportPreviewManagedRule"].isNull()) + managedRuleObject.supportPreviewManagedRule = managedRulesNodeManagedRuleListManagedRule["SupportPreviewManagedRule"].asString() == "true"; + if(!managedRulesNodeManagedRuleListManagedRule["RemediationTemplateIdentifier"].isNull()) + managedRuleObject.remediationTemplateIdentifier = managedRulesNodeManagedRuleListManagedRule["RemediationTemplateIdentifier"].asString(); + if(!managedRulesNodeManagedRuleListManagedRule["RemediationTemplateName"].isNull()) + managedRuleObject.remediationTemplateName = managedRulesNodeManagedRuleListManagedRule["RemediationTemplateName"].asString(); + auto scopeNode = value["Scope"]; + auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"]; + for (auto value : allComplianceResourceTypes) + managedRuleObject.scope.complianceResourceTypes.push_back(value.asString()); + auto allLabels = value["Labels"]["Labels"]; + for (auto value : allLabels) + managedRuleObject.labels.push_back(value.asString()); + managedRules_.managedRuleList.push_back(managedRuleObject); + } + +} + +ListManagedRulesResult::ManagedRules ListManagedRulesResult::getManagedRules()const +{ + return managedRules_; +} + diff --git a/config/src/model/ListPreManagedRulesRequest.cc b/config/src/model/ListPreManagedRulesRequest.cc new file mode 100644 index 000000000..4ca12d65f --- /dev/null +++ b/config/src/model/ListPreManagedRulesRequest.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListPreManagedRulesRequest; + +ListPreManagedRulesRequest::ListPreManagedRulesRequest() + : RpcServiceRequest("config", "2020-09-07", "ListPreManagedRules") { + setMethod(HttpRequest::Method::Post); +} + +ListPreManagedRulesRequest::~ListPreManagedRulesRequest() {} + +std::vector ListPreManagedRulesRequest::getResourceTypes() const { + return resourceTypes_; +} + +void ListPreManagedRulesRequest::setResourceTypes(const std::vector &resourceTypes) { + resourceTypes_ = resourceTypes; + for(int dep1 = 0; dep1 != resourceTypes.size(); dep1++) { + setBodyParameter(std::string("ResourceTypes") + "." + std::to_string(dep1 + 1), resourceTypes[dep1]); + } +} + +long ListPreManagedRulesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListPreManagedRulesRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListPreManagedRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListPreManagedRulesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListPreManagedRulesRequest::getResourceTypeFormat() const { + return resourceTypeFormat_; +} + +void ListPreManagedRulesRequest::setResourceTypeFormat(const std::string &resourceTypeFormat) { + resourceTypeFormat_ = resourceTypeFormat; + setBodyParameter(std::string("ResourceTypeFormat"), resourceTypeFormat); +} + diff --git a/config/src/model/ListPreManagedRulesResult.cc b/config/src/model/ListPreManagedRulesResult.cc new file mode 100644 index 000000000..6bc9ee5d7 --- /dev/null +++ b/config/src/model/ListPreManagedRulesResult.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; + +ListPreManagedRulesResult::ListPreManagedRulesResult() : + ServiceResult() +{} + +ListPreManagedRulesResult::ListPreManagedRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPreManagedRulesResult::~ListPreManagedRulesResult() +{} + +void ListPreManagedRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allManagedRulesNode = value["ManagedRules"]["ManagedRule"]; + for (auto valueManagedRulesManagedRule : allManagedRulesNode) + { + ManagedRule managedRulesObject; + if(!valueManagedRulesManagedRule["ResourceType"].isNull()) + managedRulesObject.resourceType = valueManagedRulesManagedRule["ResourceType"].asString(); + if(!valueManagedRulesManagedRule["Description"].isNull()) + managedRulesObject.description = valueManagedRulesManagedRule["Description"].asString(); + if(!valueManagedRulesManagedRule["InputParameters"].isNull()) + managedRulesObject.inputParameters = valueManagedRulesManagedRule["InputParameters"].asString(); + if(!valueManagedRulesManagedRule["OptionalInputParameterDetails"].isNull()) + managedRulesObject.optionalInputParameterDetails = valueManagedRulesManagedRule["OptionalInputParameterDetails"].asString(); + if(!valueManagedRulesManagedRule["Identifier"].isNull()) + managedRulesObject.identifier = valueManagedRulesManagedRule["Identifier"].asString(); + if(!valueManagedRulesManagedRule["ConfigRuleName"].isNull()) + managedRulesObject.configRuleName = valueManagedRulesManagedRule["ConfigRuleName"].asString(); + if(!valueManagedRulesManagedRule["HelpUrls"].isNull()) + managedRulesObject.helpUrls = valueManagedRulesManagedRule["HelpUrls"].asString(); + if(!valueManagedRulesManagedRule["DefaultEnable"].isNull()) + managedRulesObject.defaultEnable = valueManagedRulesManagedRule["DefaultEnable"].asString() == "true"; + if(!valueManagedRulesManagedRule["NonCompliantSample"].isNull()) + managedRulesObject.nonCompliantSample = valueManagedRulesManagedRule["NonCompliantSample"].asString(); + if(!valueManagedRulesManagedRule["CompliantSample"].isNull()) + managedRulesObject.compliantSample = valueManagedRulesManagedRule["CompliantSample"].asString(); + if(!valueManagedRulesManagedRule["CompulsoryInputParameterDetails"].isNull()) + managedRulesObject.compulsoryInputParameterDetails = valueManagedRulesManagedRule["CompulsoryInputParameterDetails"].asString(); + auto allSourceConditions = value["SourceConditions"]["SourceConditions"]; + for (auto value : allSourceConditions) + managedRulesObject.sourceConditions.push_back(value.asString()); + managedRules_.push_back(managedRulesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + +} + +long ListPreManagedRulesResult::getPageSize()const +{ + return pageSize_; +} + +long ListPreManagedRulesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListPreManagedRulesResult::getManagedRules()const +{ + return managedRules_; +} + diff --git a/config/src/model/ListRemediationExecutionsRequest.cc b/config/src/model/ListRemediationExecutionsRequest.cc new file mode 100644 index 000000000..d27118bc7 --- /dev/null +++ b/config/src/model/ListRemediationExecutionsRequest.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::ListRemediationExecutionsRequest; + +ListRemediationExecutionsRequest::ListRemediationExecutionsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListRemediationExecutions") { + setMethod(HttpRequest::Method::Post); +} + +ListRemediationExecutionsRequest::~ListRemediationExecutionsRequest() {} + +std::string ListRemediationExecutionsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void ListRemediationExecutionsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string ListRemediationExecutionsRequest::getExecutionStatus() const { + return executionStatus_; +} + +void ListRemediationExecutionsRequest::setExecutionStatus(const std::string &executionStatus) { + executionStatus_ = executionStatus; + setParameter(std::string("ExecutionStatus"), executionStatus); +} + +std::string ListRemediationExecutionsRequest::getNextToken() const { + return nextToken_; +} + +void ListRemediationExecutionsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +long ListRemediationExecutionsRequest::getMaxResults() const { + return maxResults_; +} + +void ListRemediationExecutionsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/config/src/model/ListRemediationExecutionsResult.cc b/config/src/model/ListRemediationExecutionsResult.cc new file mode 100644 index 000000000..79da3ec51 --- /dev/null +++ b/config/src/model/ListRemediationExecutionsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListRemediationExecutionsResult::ListRemediationExecutionsResult() : + ServiceResult() +{} + +ListRemediationExecutionsResult::ListRemediationExecutionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRemediationExecutionsResult::~ListRemediationExecutionsResult() +{} + +void ListRemediationExecutionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto remediationExecutionDataNode = value["RemediationExecutionData"]; + if(!remediationExecutionDataNode["NextToken"].isNull()) + remediationExecutionData_.nextToken = remediationExecutionDataNode["NextToken"].asString(); + if(!remediationExecutionDataNode["MaxResults"].isNull()) + remediationExecutionData_.maxResults = std::stol(remediationExecutionDataNode["MaxResults"].asString()); + auto allRemediationExecutionsNode = remediationExecutionDataNode["RemediationExecutions"]["RemediationExecutionsItem"]; + for (auto remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem : allRemediationExecutionsNode) + { + RemediationExecutionData::RemediationExecutionsItem remediationExecutionsItemObject; + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionInvocationId"].isNull()) + remediationExecutionsItemObject.executionInvocationId = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionInvocationId"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionStatus"].isNull()) + remediationExecutionsItemObject.executionStatus = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionStatus"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionResourceType"].isNull()) + remediationExecutionsItemObject.executionResourceType = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionResourceType"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionCreateDate"].isNull()) + remediationExecutionsItemObject.executionCreateDate = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionCreateDate"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionStatusMessage"].isNull()) + remediationExecutionsItemObject.executionStatusMessage = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionStatusMessage"].asString(); + if(!remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionResourceIds"].isNull()) + remediationExecutionsItemObject.executionResourceIds = remediationExecutionDataNodeRemediationExecutionsRemediationExecutionsItem["ExecutionResourceIds"].asString(); + remediationExecutionData_.remediationExecutions.push_back(remediationExecutionsItemObject); + } + +} + +ListRemediationExecutionsResult::RemediationExecutionData ListRemediationExecutionsResult::getRemediationExecutionData()const +{ + return remediationExecutionData_; +} + diff --git a/config/src/model/ListRemediationTemplatesRequest.cc b/config/src/model/ListRemediationTemplatesRequest.cc index 03119c152..bda91e26c 100644 --- a/config/src/model/ListRemediationTemplatesRequest.cc +++ b/config/src/model/ListRemediationTemplatesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::ListRemediationTemplatesRequest; ListRemediationTemplatesRequest::ListRemediationTemplatesRequest() - : RpcServiceRequest("config", "2019-01-08", "ListRemediationTemplates") { + : RpcServiceRequest("config", "2020-09-07", "ListRemediationTemplates") { setMethod(HttpRequest::Method::Post); } @@ -43,3 +43,21 @@ void ListRemediationTemplatesRequest::setRemediationType(const std::string &reme setParameter(std::string("RemediationType"), remediationType); } +long ListRemediationTemplatesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListRemediationTemplatesRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListRemediationTemplatesRequest::getPageSize() const { + return pageSize_; +} + +void ListRemediationTemplatesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/config/src/model/ListRemediationTemplatesResult.cc b/config/src/model/ListRemediationTemplatesResult.cc index be5e7cc6f..6702e3693 100644 --- a/config/src/model/ListRemediationTemplatesResult.cc +++ b/config/src/model/ListRemediationTemplatesResult.cc @@ -53,11 +53,34 @@ void ListRemediationTemplatesResult::parse(const std::string &payload) remediationTemplatesObject.templateName = valueRemediationTemplatesRemediationTemplate["TemplateName"].asString(); if(!valueRemediationTemplatesRemediationTemplate["TemplateDefinition"].isNull()) remediationTemplatesObject.templateDefinition = valueRemediationTemplatesRemediationTemplate["TemplateDefinition"].asString(); + if(!valueRemediationTemplatesRemediationTemplate["TemplateDescription"].isNull()) + remediationTemplatesObject.templateDescription = valueRemediationTemplatesRemediationTemplate["TemplateDescription"].asString(); remediationTemplates_.push_back(remediationTemplatesObject); } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); } +std::string ListRemediationTemplatesResult::getTotalCount()const +{ + return totalCount_; +} + +long ListRemediationTemplatesResult::getPageSize()const +{ + return pageSize_; +} + +long ListRemediationTemplatesResult::getPageNumber()const +{ + return pageNumber_; +} + std::vector ListRemediationTemplatesResult::getRemediationTemplates()const { return remediationTemplates_; diff --git a/config/src/model/ListRemediationsRequest.cc b/config/src/model/ListRemediationsRequest.cc new file mode 100644 index 000000000..19565ce00 --- /dev/null +++ b/config/src/model/ListRemediationsRequest.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::ListRemediationsRequest; + +ListRemediationsRequest::ListRemediationsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListRemediations") { + setMethod(HttpRequest::Method::Post); +} + +ListRemediationsRequest::~ListRemediationsRequest() {} + +std::string ListRemediationsRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void ListRemediationsRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +long ListRemediationsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListRemediationsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListRemediationsRequest::getPageSize() const { + return pageSize_; +} + +void ListRemediationsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/config/src/model/ListRemediationsResult.cc b/config/src/model/ListRemediationsResult.cc new file mode 100644 index 000000000..4fa8e424f --- /dev/null +++ b/config/src/model/ListRemediationsResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListRemediationsResult::ListRemediationsResult() : + ServiceResult() +{} + +ListRemediationsResult::ListRemediationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRemediationsResult::~ListRemediationsResult() +{} + +void ListRemediationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRemediationsNode = value["Remediations"]["Remediation"]; + for (auto valueRemediationsRemediation : allRemediationsNode) + { + Remediation remediationsObject; + if(!valueRemediationsRemediation["LastSuccessfulInvocationType"].isNull()) + remediationsObject.lastSuccessfulInvocationType = valueRemediationsRemediation["LastSuccessfulInvocationType"].asString(); + if(!valueRemediationsRemediation["RemediationTemplateId"].isNull()) + remediationsObject.remediationTemplateId = valueRemediationsRemediation["RemediationTemplateId"].asString(); + if(!valueRemediationsRemediation["RemediationDynamicParams"].isNull()) + remediationsObject.remediationDynamicParams = valueRemediationsRemediation["RemediationDynamicParams"].asString(); + if(!valueRemediationsRemediation["RemediationId"].isNull()) + remediationsObject.remediationId = valueRemediationsRemediation["RemediationId"].asString(); + if(!valueRemediationsRemediation["RemediationSourceType"].isNull()) + remediationsObject.remediationSourceType = valueRemediationsRemediation["RemediationSourceType"].asString(); + if(!valueRemediationsRemediation["RemediationType"].isNull()) + remediationsObject.remediationType = valueRemediationsRemediation["RemediationType"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationId"].isNull()) + remediationsObject.lastSuccessfulInvocationId = valueRemediationsRemediation["LastSuccessfulInvocationId"].asString(); + if(!valueRemediationsRemediation["AccountId"].isNull()) + remediationsObject.accountId = std::stol(valueRemediationsRemediation["AccountId"].asString()); + if(!valueRemediationsRemediation["InvokeType"].isNull()) + remediationsObject.invokeType = valueRemediationsRemediation["InvokeType"].asString(); + if(!valueRemediationsRemediation["ConfigRuleId"].isNull()) + remediationsObject.configRuleId = valueRemediationsRemediation["ConfigRuleId"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationTime"].isNull()) + remediationsObject.lastSuccessfulInvocationTime = std::stol(valueRemediationsRemediation["LastSuccessfulInvocationTime"].asString()); + if(!valueRemediationsRemediation["RemediationOriginParams"].isNull()) + remediationsObject.remediationOriginParams = valueRemediationsRemediation["RemediationOriginParams"].asString(); + remediations_.push_back(remediationsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + +} + +std::string ListRemediationsResult::getTotalCount()const +{ + return totalCount_; +} + +long ListRemediationsResult::getPageSize()const +{ + return pageSize_; +} + +long ListRemediationsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListRemediationsResult::getRemediations()const +{ + return remediations_; +} + diff --git a/config/src/model/ListResourceEvaluationResultsRequest.cc b/config/src/model/ListResourceEvaluationResultsRequest.cc new file mode 100644 index 000000000..59d041bb5 --- /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::Post); +} + +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/DescribeEvaluationResultsResult.cc b/config/src/model/ListResourceEvaluationResultsResult.cc similarity index 83% rename from config/src/model/DescribeEvaluationResultsResult.cc rename to config/src/model/ListResourceEvaluationResultsResult.cc index 9729288db..64bbb3f6a 100644 --- a/config/src/model/DescribeEvaluationResultsResult.cc +++ b/config/src/model/ListResourceEvaluationResultsResult.cc @@ -14,38 +14,36 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DescribeEvaluationResultsResult::DescribeEvaluationResultsResult() : +ListResourceEvaluationResultsResult::ListResourceEvaluationResultsResult() : ServiceResult() {} -DescribeEvaluationResultsResult::DescribeEvaluationResultsResult(const std::string &payload) : +ListResourceEvaluationResultsResult::ListResourceEvaluationResultsResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeEvaluationResultsResult::~DescribeEvaluationResultsResult() +ListResourceEvaluationResultsResult::~ListResourceEvaluationResultsResult() {} -void DescribeEvaluationResultsResult::parse(const std::string &payload) +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["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) { @@ -82,12 +80,14 @@ void DescribeEvaluationResultsResult::parse(const std::string &payload) evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString(); if(!evaluationResultQualifierNode["RegionId"].isNull()) evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString(); + if(!evaluationResultQualifierNode["IgnoreDate"].isNull()) + evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString(); evaluationResults_.evaluationResultList.push_back(evaluationResultObject); } } -DescribeEvaluationResultsResult::EvaluationResults DescribeEvaluationResultsResult::getEvaluationResults()const +ListResourceEvaluationResultsResult::EvaluationResults ListResourceEvaluationResultsResult::getEvaluationResults()const { return evaluationResults_; } diff --git a/config/src/model/ListResourceRelationsRequest.cc b/config/src/model/ListResourceRelationsRequest.cc new file mode 100644 index 000000000..2fbb4637b --- /dev/null +++ b/config/src/model/ListResourceRelationsRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListResourceRelationsRequest; + +ListResourceRelationsRequest::ListResourceRelationsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListResourceRelations") { + setMethod(HttpRequest::Method::Post); +} + +ListResourceRelationsRequest::~ListResourceRelationsRequest() {} + +std::string ListResourceRelationsRequest::getTargetResourceType() const { + return targetResourceType_; +} + +void ListResourceRelationsRequest::setTargetResourceType(const std::string &targetResourceType) { + targetResourceType_ = targetResourceType; + setParameter(std::string("TargetResourceType"), targetResourceType); +} + +std::string ListResourceRelationsRequest::getResourceId() const { + return resourceId_; +} + +void ListResourceRelationsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ListResourceRelationsRequest::getTargetResourceId() const { + return targetResourceId_; +} + +void ListResourceRelationsRequest::setTargetResourceId(const std::string &targetResourceId) { + targetResourceId_ = targetResourceId; + setParameter(std::string("TargetResourceId"), targetResourceId); +} + +std::string ListResourceRelationsRequest::getResourceType() const { + return resourceType_; +} + +void ListResourceRelationsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListResourceRelationsRequest::getRelationType() const { + return relationType_; +} + +void ListResourceRelationsRequest::setRelationType(const std::string &relationType) { + relationType_ = relationType; + setParameter(std::string("RelationType"), relationType); +} + +std::string ListResourceRelationsRequest::getNextToken() const { + return nextToken_; +} + +void ListResourceRelationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListResourceRelationsRequest::getMaxResults() const { + return maxResults_; +} + +void ListResourceRelationsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListResourceRelationsRequest::getRegion() const { + return region_; +} + +void ListResourceRelationsRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/config/src/model/ListResourceRelationsResult.cc b/config/src/model/ListResourceRelationsResult.cc new file mode 100644 index 000000000..7e075829d --- /dev/null +++ b/config/src/model/ListResourceRelationsResult.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; + +ListResourceRelationsResult::ListResourceRelationsResult() : + ServiceResult() +{} + +ListResourceRelationsResult::ListResourceRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListResourceRelationsResult::~ListResourceRelationsResult() +{} + +void ListResourceRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceRelationsNode = value["ResourceRelations"]; + if(!resourceRelationsNode["NextToken"].isNull()) + resourceRelations_.nextToken = resourceRelationsNode["NextToken"].asString(); + if(!resourceRelationsNode["MaxResults"].isNull()) + resourceRelations_.maxResults = std::stoi(resourceRelationsNode["MaxResults"].asString()); + if(!resourceRelationsNode["TotalCount"].isNull()) + resourceRelations_.totalCount = std::stoi(resourceRelationsNode["TotalCount"].asString()); + auto allResourceRelationListNode = resourceRelationsNode["ResourceRelationList"]["ResourceRelationListItem"]; + for (auto resourceRelationsNodeResourceRelationListResourceRelationListItem : allResourceRelationListNode) + { + ResourceRelations::ResourceRelationListItem resourceRelationListItemObject; + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].isNull()) + resourceRelationListItemObject.accountId = std::stol(resourceRelationsNodeResourceRelationListResourceRelationListItem["AccountId"].asString()); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceType"].isNull()) + resourceRelationListItemObject.sourceResourceType = resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceType"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceRegionId"].isNull()) + resourceRelationListItemObject.sourceResourceRegionId = resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceRegionId"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceId"].isNull()) + resourceRelationListItemObject.sourceResourceId = resourceRelationsNodeResourceRelationListResourceRelationListItem["SourceResourceId"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["TargetResourceType"].isNull()) + resourceRelationListItemObject.targetResourceType = resourceRelationsNodeResourceRelationListResourceRelationListItem["TargetResourceType"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["TargetResourceId"].isNull()) + resourceRelationListItemObject.targetResourceId = resourceRelationsNodeResourceRelationListResourceRelationListItem["TargetResourceId"].asString(); + if(!resourceRelationsNodeResourceRelationListResourceRelationListItem["RelationType"].isNull()) + resourceRelationListItemObject.relationType = resourceRelationsNodeResourceRelationListResourceRelationListItem["RelationType"].asString(); + resourceRelations_.resourceRelationList.push_back(resourceRelationListItemObject); + } + +} + +ListResourceRelationsResult::ResourceRelations ListResourceRelationsResult::getResourceRelations()const +{ + return resourceRelations_; +} + diff --git a/config/src/model/ListResourcesByAdvancedSearchRequest.cc b/config/src/model/ListResourcesByAdvancedSearchRequest.cc new file mode 100644 index 000000000..adcd6ad3c --- /dev/null +++ b/config/src/model/ListResourcesByAdvancedSearchRequest.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::ListResourcesByAdvancedSearchRequest; + +ListResourcesByAdvancedSearchRequest::ListResourcesByAdvancedSearchRequest() + : RpcServiceRequest("config", "2020-09-07", "ListResourcesByAdvancedSearch") { + setMethod(HttpRequest::Method::Post); +} + +ListResourcesByAdvancedSearchRequest::~ListResourcesByAdvancedSearchRequest() {} + +std::string ListResourcesByAdvancedSearchRequest::getSql() const { + return sql_; +} + +void ListResourcesByAdvancedSearchRequest::setSql(const std::string &sql) { + sql_ = sql; + setParameter(std::string("Sql"), sql); +} + diff --git a/config/src/model/ListResourcesByAdvancedSearchResult.cc b/config/src/model/ListResourcesByAdvancedSearchResult.cc new file mode 100644 index 000000000..5cc729e86 --- /dev/null +++ b/config/src/model/ListResourcesByAdvancedSearchResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListResourcesByAdvancedSearchResult::ListResourcesByAdvancedSearchResult() : + ServiceResult() +{} + +ListResourcesByAdvancedSearchResult::ListResourcesByAdvancedSearchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListResourcesByAdvancedSearchResult::~ListResourcesByAdvancedSearchResult() +{} + +void ListResourcesByAdvancedSearchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto queryResultsNode = value["QueryResults"]; + auto queryResultListNode = queryResultsNode["QueryResultList"]; + auto allColumns = queryResultListNode["Columns"]["Columns"]; + for (auto value : allColumns) + queryResults_.queryResultList.columns.push_back(value.asString()); + auto allValues = queryResultListNode["Values"]["Rows"]; + for (auto value : allValues) + queryResults_.queryResultList.values.push_back(value.asString()); + +} + +ListResourcesByAdvancedSearchResult::QueryResults ListResourcesByAdvancedSearchResult::getQueryResults()const +{ + return queryResults_; +} + diff --git a/config/src/model/ListSupportedProductsRequest.cc b/config/src/model/ListSupportedProductsRequest.cc new file mode 100644 index 000000000..66a2b6f88 --- /dev/null +++ b/config/src/model/ListSupportedProductsRequest.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::ListSupportedProductsRequest; + +ListSupportedProductsRequest::ListSupportedProductsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListSupportedProducts") { + setMethod(HttpRequest::Method::Post); +} + +ListSupportedProductsRequest::~ListSupportedProductsRequest() {} + +std::string ListSupportedProductsRequest::getNextToken() const { + return nextToken_; +} + +void ListSupportedProductsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListSupportedProductsRequest::getMaxResults() const { + return maxResults_; +} + +void ListSupportedProductsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/config/src/model/ListSupportedProductsResult.cc b/config/src/model/ListSupportedProductsResult.cc new file mode 100644 index 000000000..ec8f61305 --- /dev/null +++ b/config/src/model/ListSupportedProductsResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListSupportedProductsResult::ListSupportedProductsResult() : + ServiceResult() +{} + +ListSupportedProductsResult::ListSupportedProductsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSupportedProductsResult::~ListSupportedProductsResult() +{} + +void ListSupportedProductsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProductsNode = value["Products"]["Data"]; + for (auto valueProductsData : allProductsNode) + { + Data productsObject; + if(!valueProductsData["ProductNameEn"].isNull()) + productsObject.productNameEn = valueProductsData["ProductNameEn"].asString(); + if(!valueProductsData["ProductNameZh"].isNull()) + productsObject.productNameZh = valueProductsData["ProductNameZh"].asString(); + if(!valueProductsData["ProductCode"].isNull()) + productsObject.productCode = valueProductsData["ProductCode"].asString(); + auto allResourceTypeListNode = valueProductsData["ResourceTypeList"]["ResourceType"]; + for (auto valueProductsDataResourceTypeListResourceType : allResourceTypeListNode) + { + Data::ResourceType resourceTypeListObject; + if(!valueProductsDataResourceTypeListResourceType["ResourceType"].isNull()) + resourceTypeListObject.resourceType = valueProductsDataResourceTypeListResourceType["ResourceType"].asString(); + if(!valueProductsDataResourceTypeListResourceType["TypeNameEn"].isNull()) + resourceTypeListObject.typeNameEn = valueProductsDataResourceTypeListResourceType["TypeNameEn"].asString(); + if(!valueProductsDataResourceTypeListResourceType["TypeNameZh"].isNull()) + resourceTypeListObject.typeNameZh = valueProductsDataResourceTypeListResourceType["TypeNameZh"].asString(); + if(!valueProductsDataResourceTypeListResourceType["TypePageLink"].isNull()) + resourceTypeListObject.typePageLink = valueProductsDataResourceTypeListResourceType["TypePageLink"].asString(); + productsObject.resourceTypeList.push_back(resourceTypeListObject); + } + products_.push_back(productsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = value["MaxResults"].asString(); + +} + +std::vector ListSupportedProductsResult::getProducts()const +{ + return products_; +} + +std::string ListSupportedProductsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListSupportedProductsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/config/src/model/ListTagResourcesRequest.cc b/config/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..e787f6a6a --- /dev/null +++ b/config/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("config", "2020-09-07", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + +std::string ListTagResourcesRequest::getRegionId() const { + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setBodyParameter(std::string("NextToken"), nextToken); +} + +std::string ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::string &tag) { + tag_ = tag; + setBodyParameter(std::string("Tag"), tag); +} + diff --git a/config/src/model/ListTagResourcesResult.cc b/config/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..3c3edcf3a --- /dev/null +++ b/config/src/model/ListTagResourcesResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + 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/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 index 4cf1634cb..9ca07051d 100644 --- a/config/src/model/PutEvaluationsRequest.cc +++ b/config/src/model/PutEvaluationsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::PutEvaluationsRequest; PutEvaluationsRequest::PutEvaluationsRequest() - : RpcServiceRequest("config", "2019-01-08", "PutEvaluations") { + : RpcServiceRequest("config", "2020-09-07", "PutEvaluations") { setMethod(HttpRequest::Method::Post); } 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/StartAggregateRemediationRequest.cc b/config/src/model/StartAggregateRemediationRequest.cc new file mode 100644 index 000000000..af84b15fd --- /dev/null +++ b/config/src/model/StartAggregateRemediationRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::StartAggregateRemediationRequest; + +StartAggregateRemediationRequest::StartAggregateRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "StartAggregateRemediation") { + setMethod(HttpRequest::Method::Post); +} + +StartAggregateRemediationRequest::~StartAggregateRemediationRequest() {} + +std::string StartAggregateRemediationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void StartAggregateRemediationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string StartAggregateRemediationRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void StartAggregateRemediationRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); +} + +std::string StartAggregateRemediationRequest::getAggregatorId() const { + return aggregatorId_; +} + +void StartAggregateRemediationRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +long StartAggregateRemediationRequest::getResourceAccountId() const { + return resourceAccountId_; +} + +void StartAggregateRemediationRequest::setResourceAccountId(long resourceAccountId) { + resourceAccountId_ = resourceAccountId; + setParameter(std::string("ResourceAccountId"), std::to_string(resourceAccountId)); +} + +std::string StartAggregateRemediationRequest::getRegionId() const { + return regionId_; +} + +void StartAggregateRemediationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string StartAggregateRemediationRequest::getResourceRegionId() const { + return resourceRegionId_; +} + +void StartAggregateRemediationRequest::setResourceRegionId(const std::string &resourceRegionId) { + resourceRegionId_ = resourceRegionId; + setParameter(std::string("ResourceRegionId"), resourceRegionId); +} + +std::string StartAggregateRemediationRequest::getResourceId() const { + return resourceId_; +} + +void StartAggregateRemediationRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string StartAggregateRemediationRequest::getResourceType() const { + return resourceType_; +} + +void StartAggregateRemediationRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/config/src/model/StartAggregateRemediationResult.cc b/config/src/model/StartAggregateRemediationResult.cc new file mode 100644 index 000000000..cae7429e7 --- /dev/null +++ b/config/src/model/StartAggregateRemediationResult.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; + +StartAggregateRemediationResult::StartAggregateRemediationResult() : + ServiceResult() +{} + +StartAggregateRemediationResult::StartAggregateRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartAggregateRemediationResult::~StartAggregateRemediationResult() +{} + +void StartAggregateRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool StartAggregateRemediationResult::getData()const +{ + return data_; +} + diff --git a/config/src/model/StartConfigRuleEvaluationRequest.cc b/config/src/model/StartConfigRuleEvaluationRequest.cc index 3858e126c..b92ec7e15 100644 --- a/config/src/model/StartConfigRuleEvaluationRequest.cc +++ b/config/src/model/StartConfigRuleEvaluationRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::StartConfigRuleEvaluationRequest; StartConfigRuleEvaluationRequest::StartConfigRuleEvaluationRequest() - : RpcServiceRequest("config", "2019-01-08", "StartConfigRuleEvaluation") { + : RpcServiceRequest("config", "2020-09-07", "StartConfigRuleEvaluation") { setMethod(HttpRequest::Method::Post); } @@ -34,15 +34,6 @@ void StartConfigRuleEvaluationRequest::setConfigRuleId(const std::string &config 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_; } @@ -61,12 +52,3 @@ void StartConfigRuleEvaluationRequest::setRevertEvaluation(bool 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 index a03091418..598d3e83f 100644 --- a/config/src/model/StartConfigurationRecorderRequest.cc +++ b/config/src/model/StartConfigurationRecorderRequest.cc @@ -19,18 +19,9 @@ using AlibabaCloud::Config::Model::StartConfigurationRecorderRequest; StartConfigurationRecorderRequest::StartConfigurationRecorderRequest() - : RpcServiceRequest("config", "2019-01-08", "StartConfigurationRecorder") { + : RpcServiceRequest("config", "2020-09-07", "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 index 833ef3ce9..f9bf06ffe 100644 --- a/config/src/model/StartConfigurationRecorderResult.cc +++ b/config/src/model/StartConfigurationRecorderResult.cc @@ -40,14 +40,8 @@ void StartConfigurationRecorderResult::parse(const std::string &payload) 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()); diff --git a/config/src/model/StartRemediationRequest.cc b/config/src/model/StartRemediationRequest.cc new file mode 100644 index 000000000..2fa507e7d --- /dev/null +++ b/config/src/model/StartRemediationRequest.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::StartRemediationRequest; + +StartRemediationRequest::StartRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "StartRemediation") { + setMethod(HttpRequest::Method::Post); +} + +StartRemediationRequest::~StartRemediationRequest() {} + +std::string StartRemediationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void StartRemediationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string StartRemediationRequest::getResourceId() const { + return resourceId_; +} + +void StartRemediationRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string StartRemediationRequest::getResourceType() const { + return resourceType_; +} + +void StartRemediationRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string StartRemediationRequest::getResourceRegionId() const { + return resourceRegionId_; +} + +void StartRemediationRequest::setResourceRegionId(const std::string &resourceRegionId) { + resourceRegionId_ = resourceRegionId; + setParameter(std::string("ResourceRegionId"), resourceRegionId); +} + diff --git a/config/src/model/StartRemediationResult.cc b/config/src/model/StartRemediationResult.cc new file mode 100644 index 000000000..9b323ebac --- /dev/null +++ b/config/src/model/StartRemediationResult.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; + +StartRemediationResult::StartRemediationResult() : + ServiceResult() +{} + +StartRemediationResult::StartRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartRemediationResult::~StartRemediationResult() +{} + +void StartRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool StartRemediationResult::getData()const +{ + return data_; +} + diff --git a/config/src/model/GetSupportedResourceTypesRequest.cc b/config/src/model/StopConfigurationRecorderRequest.cc similarity index 66% rename from config/src/model/GetSupportedResourceTypesRequest.cc rename to config/src/model/StopConfigurationRecorderRequest.cc index bd7639b33..928459ce6 100644 --- a/config/src/model/GetSupportedResourceTypesRequest.cc +++ b/config/src/model/StopConfigurationRecorderRequest.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::GetSupportedResourceTypesRequest; +using AlibabaCloud::Config::Model::StopConfigurationRecorderRequest; -GetSupportedResourceTypesRequest::GetSupportedResourceTypesRequest() - : RpcServiceRequest("config", "2019-01-08", "GetSupportedResourceTypes") { +StopConfigurationRecorderRequest::StopConfigurationRecorderRequest() + : RpcServiceRequest("config", "2020-09-07", "StopConfigurationRecorder") { setMethod(HttpRequest::Method::Post); } -GetSupportedResourceTypesRequest::~GetSupportedResourceTypesRequest() {} +StopConfigurationRecorderRequest::~StopConfigurationRecorderRequest() {} diff --git a/config/src/model/StopConfigurationRecorderResult.cc b/config/src/model/StopConfigurationRecorderResult.cc new file mode 100644 index 000000000..a9c9fcd33 --- /dev/null +++ b/config/src/model/StopConfigurationRecorderResult.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; + +StopConfigurationRecorderResult::StopConfigurationRecorderResult() : + ServiceResult() +{} + +StopConfigurationRecorderResult::StopConfigurationRecorderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopConfigurationRecorderResult::~StopConfigurationRecorderResult() +{} + +void StopConfigurationRecorderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["StopConfigurationRecorderResult"].isNull()) + stopConfigurationRecorderResult_ = value["StopConfigurationRecorderResult"].asString() == "true"; + +} + +bool StopConfigurationRecorderResult::getStopConfigurationRecorderResult()const +{ + return stopConfigurationRecorderResult_; +} + diff --git a/config/src/model/TagResourcesRequest.cc b/config/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..20c5af75e --- /dev/null +++ b/config/src/model/TagResourcesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("config", "2020-09-07", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + +std::string TagResourcesRequest::getRegionId() const { + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::string &tag) { + tag_ = tag; + setBodyParameter(std::string("Tag"), tag); +} + diff --git a/config/src/model/TagResourcesResult.cc b/config/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..20787b1a5 --- /dev/null +++ b/config/src/model/TagResourcesResult.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; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::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/UntagResourcesRequest.cc b/config/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..925622b24 --- /dev/null +++ b/config/src/model/UntagResourcesRequest.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("config", "2020-09-07", "UntagResources") { + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() {} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setBodyParameter(std::string("All"), all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + +std::string UntagResourcesRequest::getRegionId() const { + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; +} + diff --git a/config/src/model/UntagResourcesResult.cc b/config/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..7aafa93e2 --- /dev/null +++ b/config/src/model/UntagResourcesResult.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; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::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/UpdateAggregateCompliancePackRequest.cc b/config/src/model/UpdateAggregateCompliancePackRequest.cc new file mode 100644 index 000000000..638185051 --- /dev/null +++ b/config/src/model/UpdateAggregateCompliancePackRequest.cc @@ -0,0 +1,145 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::UpdateAggregateCompliancePackRequest; + +UpdateAggregateCompliancePackRequest::UpdateAggregateCompliancePackRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateAggregateCompliancePack") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAggregateCompliancePackRequest::~UpdateAggregateCompliancePackRequest() {} + +std::string UpdateAggregateCompliancePackRequest::getTagKeyScope() const { + return tagKeyScope_; +} + +void UpdateAggregateCompliancePackRequest::setTagKeyScope(const std::string &tagKeyScope) { + tagKeyScope_ = tagKeyScope; + setBodyParameter(std::string("TagKeyScope"), tagKeyScope); +} + +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::getTagValueScope() const { + return tagValueScope_; +} + +void UpdateAggregateCompliancePackRequest::setTagValueScope(const std::string &tagValueScope) { + tagValueScope_ = tagValueScope; + setBodyParameter(std::string("TagValueScope"), tagValueScope); +} + +std::string UpdateAggregateCompliancePackRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void UpdateAggregateCompliancePackRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +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)); +} + +std::string UpdateAggregateCompliancePackRequest::getResourceGroupIdsScope() const { + return resourceGroupIdsScope_; +} + +void UpdateAggregateCompliancePackRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { + resourceGroupIdsScope_ = resourceGroupIdsScope; + setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); +} + +std::string UpdateAggregateCompliancePackRequest::getExcludeResourceIdsScope() const { + return excludeResourceIdsScope_; +} + +void UpdateAggregateCompliancePackRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { + excludeResourceIdsScope_ = excludeResourceIdsScope; + setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); +} + 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/UpdateAggregateConfigDeliveryChannelRequest.cc b/config/src/model/UpdateAggregateConfigDeliveryChannelRequest.cc new file mode 100644 index 000000000..080d773ef --- /dev/null +++ b/config/src/model/UpdateAggregateConfigDeliveryChannelRequest.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::UpdateAggregateConfigDeliveryChannelRequest; + +UpdateAggregateConfigDeliveryChannelRequest::UpdateAggregateConfigDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateAggregateConfigDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAggregateConfigDeliveryChannelRequest::~UpdateAggregateConfigDeliveryChannelRequest() {} + +bool UpdateAggregateConfigDeliveryChannelRequest::getNonCompliantNotification() const { + return nonCompliantNotification_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { + nonCompliantNotification_ = nonCompliantNotification; + setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); +} + +std::string UpdateAggregateConfigDeliveryChannelRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool UpdateAggregateConfigDeliveryChannelRequest::getConfigurationSnapshot() const { + return configurationSnapshot_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { + configurationSnapshot_ = configurationSnapshot; + setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); +} + +std::string UpdateAggregateConfigDeliveryChannelRequest::getDescription() const { + return description_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateAggregateConfigDeliveryChannelRequest::getAggregatorId() const { + return aggregatorId_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const { + return deliveryChannelTargetArn_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { + deliveryChannelTargetArn_ = deliveryChannelTargetArn; + setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); +} + +std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const { + return deliveryChannelCondition_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { + deliveryChannelCondition_ = deliveryChannelCondition; + setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); +} + +bool UpdateAggregateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const { + return configurationItemChangeNotification_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { + configurationItemChangeNotification_ = configurationItemChangeNotification; + setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); +} + +std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelName() const { + return deliveryChannelName_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { + deliveryChannelName_ = deliveryChannelName; + setParameter(std::string("DeliveryChannelName"), deliveryChannelName); +} + +std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliverySnapshotTime() const { + return deliverySnapshotTime_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setDeliverySnapshotTime(const std::string &deliverySnapshotTime) { + deliverySnapshotTime_ = deliverySnapshotTime; + setParameter(std::string("DeliverySnapshotTime"), deliverySnapshotTime); +} + +std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelId() const { + return deliveryChannelId_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { + deliveryChannelId_ = deliveryChannelId; + setParameter(std::string("DeliveryChannelId"), deliveryChannelId); +} + +std::string UpdateAggregateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { + return oversizedDataOSSTargetArn_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { + oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; + setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); +} + +long UpdateAggregateConfigDeliveryChannelRequest::getStatus() const { + return status_; +} + +void UpdateAggregateConfigDeliveryChannelRequest::setStatus(long status) { + status_ = status; + setParameter(std::string("Status"), std::to_string(status)); +} + diff --git a/config/src/model/UpdateAggregateConfigDeliveryChannelResult.cc b/config/src/model/UpdateAggregateConfigDeliveryChannelResult.cc new file mode 100644 index 000000000..8670d928c --- /dev/null +++ b/config/src/model/UpdateAggregateConfigDeliveryChannelResult.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; + +UpdateAggregateConfigDeliveryChannelResult::UpdateAggregateConfigDeliveryChannelResult() : + ServiceResult() +{} + +UpdateAggregateConfigDeliveryChannelResult::UpdateAggregateConfigDeliveryChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAggregateConfigDeliveryChannelResult::~UpdateAggregateConfigDeliveryChannelResult() +{} + +void UpdateAggregateConfigDeliveryChannelResult::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(); + +} + +std::string UpdateAggregateConfigDeliveryChannelResult::getDeliveryChannelId()const +{ + return deliveryChannelId_; +} + diff --git a/config/src/model/UpdateAggregateConfigRuleRequest.cc b/config/src/model/UpdateAggregateConfigRuleRequest.cc new file mode 100644 index 000000000..f04a9a27c --- /dev/null +++ b/config/src/model/UpdateAggregateConfigRuleRequest.cc @@ -0,0 +1,200 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::getExcludeAccountIdsScope() const { + return excludeAccountIdsScope_; +} + +void UpdateAggregateConfigRuleRequest::setExcludeAccountIdsScope(const std::string &excludeAccountIdsScope) { + excludeAccountIdsScope_ = excludeAccountIdsScope; + setBodyParameter(std::string("ExcludeAccountIdsScope"), excludeAccountIdsScope); +} + +std::string UpdateAggregateConfigRuleRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void UpdateAggregateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +std::string UpdateAggregateConfigRuleRequest::getExcludeFolderIdsScope() const { + return excludeFolderIdsScope_; +} + +void UpdateAggregateConfigRuleRequest::setExcludeFolderIdsScope(const std::string &excludeFolderIdsScope) { + excludeFolderIdsScope_ = excludeFolderIdsScope; + setBodyParameter(std::string("ExcludeFolderIdsScope"), excludeFolderIdsScope); +} + +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::getTagKeyLogicScope() const { + return tagKeyLogicScope_; +} + +void UpdateAggregateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) { + tagKeyLogicScope_ = tagKeyLogicScope; + setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope); +} + +std::string UpdateAggregateConfigRuleRequest::getMaximumExecutionFrequency() const { + return maximumExecutionFrequency_; +} + +void UpdateAggregateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { + maximumExecutionFrequency_ = maximumExecutionFrequency; + setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); +} + +std::string UpdateAggregateConfigRuleRequest::getFolderIdsScope() const { + return folderIdsScope_; +} + +void UpdateAggregateConfigRuleRequest::setFolderIdsScope(const std::string &folderIdsScope) { + folderIdsScope_ = folderIdsScope; + setBodyParameter(std::string("FolderIdsScope"), folderIdsScope); +} + +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/UpdateAggregateRemediationRequest.cc b/config/src/model/UpdateAggregateRemediationRequest.cc new file mode 100644 index 000000000..87684d14d --- /dev/null +++ b/config/src/model/UpdateAggregateRemediationRequest.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::UpdateAggregateRemediationRequest; + +UpdateAggregateRemediationRequest::UpdateAggregateRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateAggregateRemediation") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAggregateRemediationRequest::~UpdateAggregateRemediationRequest() {} + +std::string UpdateAggregateRemediationRequest::getRemediationType() const { + return remediationType_; +} + +void UpdateAggregateRemediationRequest::setRemediationType(const std::string &remediationType) { + remediationType_ = remediationType; + setBodyParameter(std::string("RemediationType"), remediationType); +} + +std::string UpdateAggregateRemediationRequest::getRemediationId() const { + return remediationId_; +} + +void UpdateAggregateRemediationRequest::setRemediationId(const std::string &remediationId) { + remediationId_ = remediationId; + setBodyParameter(std::string("RemediationId"), remediationId); +} + +std::string UpdateAggregateRemediationRequest::getAggregatorId() const { + return aggregatorId_; +} + +void UpdateAggregateRemediationRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string UpdateAggregateRemediationRequest::getSourceType() const { + return sourceType_; +} + +void UpdateAggregateRemediationRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setBodyParameter(std::string("SourceType"), sourceType); +} + +std::string UpdateAggregateRemediationRequest::getRemediationTemplateId() const { + return remediationTemplateId_; +} + +void UpdateAggregateRemediationRequest::setRemediationTemplateId(const std::string &remediationTemplateId) { + remediationTemplateId_ = remediationTemplateId; + setBodyParameter(std::string("RemediationTemplateId"), remediationTemplateId); +} + +std::string UpdateAggregateRemediationRequest::getParams() const { + return params_; +} + +void UpdateAggregateRemediationRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("Params"), params); +} + +std::string UpdateAggregateRemediationRequest::getInvokeType() const { + return invokeType_; +} + +void UpdateAggregateRemediationRequest::setInvokeType(const std::string &invokeType) { + invokeType_ = invokeType; + setBodyParameter(std::string("InvokeType"), invokeType); +} + diff --git a/config/src/model/UpdateAggregateRemediationResult.cc b/config/src/model/UpdateAggregateRemediationResult.cc new file mode 100644 index 000000000..d45ec5c56 --- /dev/null +++ b/config/src/model/UpdateAggregateRemediationResult.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; + +UpdateAggregateRemediationResult::UpdateAggregateRemediationResult() : + ServiceResult() +{} + +UpdateAggregateRemediationResult::UpdateAggregateRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAggregateRemediationResult::~UpdateAggregateRemediationResult() +{} + +void UpdateAggregateRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RemediationId"].isNull()) + remediationId_ = value["RemediationId"].asString(); + +} + +std::string UpdateAggregateRemediationResult::getRemediationId()const +{ + return remediationId_; +} + 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..873b876f8 --- /dev/null +++ b/config/src/model/UpdateCompliancePackRequest.cc @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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::getTagKeyScope() const { + return tagKeyScope_; +} + +void UpdateCompliancePackRequest::setTagKeyScope(const std::string &tagKeyScope) { + tagKeyScope_ = tagKeyScope; + setBodyParameter(std::string("TagKeyScope"), tagKeyScope); +} + +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::getTagValueScope() const { + return tagValueScope_; +} + +void UpdateCompliancePackRequest::setTagValueScope(const std::string &tagValueScope) { + tagValueScope_ = tagValueScope; + setBodyParameter(std::string("TagValueScope"), tagValueScope); +} + +std::string UpdateCompliancePackRequest::getRegionIdsScope() const { + return regionIdsScope_; +} + +void UpdateCompliancePackRequest::setRegionIdsScope(const std::string ®ionIdsScope) { + regionIdsScope_ = regionIdsScope; + setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); +} + +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)); +} + +std::string UpdateCompliancePackRequest::getResourceGroupIdsScope() const { + return resourceGroupIdsScope_; +} + +void UpdateCompliancePackRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { + resourceGroupIdsScope_ = resourceGroupIdsScope; + setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); +} + +std::string UpdateCompliancePackRequest::getExcludeResourceIdsScope() const { + return excludeResourceIdsScope_; +} + +void UpdateCompliancePackRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { + excludeResourceIdsScope_ = excludeResourceIdsScope; + setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); +} + 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/UpdateConfigDeliveryChannelRequest.cc b/config/src/model/UpdateConfigDeliveryChannelRequest.cc new file mode 100644 index 000000000..7bc16808b --- /dev/null +++ b/config/src/model/UpdateConfigDeliveryChannelRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::UpdateConfigDeliveryChannelRequest; + +UpdateConfigDeliveryChannelRequest::UpdateConfigDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateConfigDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +UpdateConfigDeliveryChannelRequest::~UpdateConfigDeliveryChannelRequest() {} + +bool UpdateConfigDeliveryChannelRequest::getNonCompliantNotification() const { + return nonCompliantNotification_; +} + +void UpdateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { + nonCompliantNotification_ = nonCompliantNotification; + setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); +} + +std::string UpdateConfigDeliveryChannelRequest::getClientToken() const { + return clientToken_; +} + +void UpdateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool UpdateConfigDeliveryChannelRequest::getConfigurationSnapshot() const { + return configurationSnapshot_; +} + +void UpdateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { + configurationSnapshot_ = configurationSnapshot; + setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); +} + +std::string UpdateConfigDeliveryChannelRequest::getDescription() const { + return description_; +} + +void UpdateConfigDeliveryChannelRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const { + return deliveryChannelTargetArn_; +} + +void UpdateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { + deliveryChannelTargetArn_ = deliveryChannelTargetArn; + setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); +} + +std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const { + return deliveryChannelCondition_; +} + +void UpdateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { + deliveryChannelCondition_ = deliveryChannelCondition; + setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); +} + +bool UpdateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const { + return configurationItemChangeNotification_; +} + +void UpdateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { + configurationItemChangeNotification_ = configurationItemChangeNotification; + setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); +} + +std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelName() const { + return deliveryChannelName_; +} + +void UpdateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { + deliveryChannelName_ = deliveryChannelName; + setParameter(std::string("DeliveryChannelName"), deliveryChannelName); +} + +std::string UpdateConfigDeliveryChannelRequest::getDeliverySnapshotTime() const { + return deliverySnapshotTime_; +} + +void UpdateConfigDeliveryChannelRequest::setDeliverySnapshotTime(const std::string &deliverySnapshotTime) { + deliverySnapshotTime_ = deliverySnapshotTime; + setParameter(std::string("DeliverySnapshotTime"), deliverySnapshotTime); +} + +std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelId() const { + return deliveryChannelId_; +} + +void UpdateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { + deliveryChannelId_ = deliveryChannelId; + setParameter(std::string("DeliveryChannelId"), deliveryChannelId); +} + +std::string UpdateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { + return oversizedDataOSSTargetArn_; +} + +void UpdateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { + oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; + setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); +} + +long UpdateConfigDeliveryChannelRequest::getStatus() const { + return status_; +} + +void UpdateConfigDeliveryChannelRequest::setStatus(long status) { + status_ = status; + setParameter(std::string("Status"), std::to_string(status)); +} + diff --git a/config/src/model/UpdateConfigDeliveryChannelResult.cc b/config/src/model/UpdateConfigDeliveryChannelResult.cc new file mode 100644 index 000000000..97da6bca0 --- /dev/null +++ b/config/src/model/UpdateConfigDeliveryChannelResult.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; + +UpdateConfigDeliveryChannelResult::UpdateConfigDeliveryChannelResult() : + ServiceResult() +{} + +UpdateConfigDeliveryChannelResult::UpdateConfigDeliveryChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateConfigDeliveryChannelResult::~UpdateConfigDeliveryChannelResult() +{} + +void UpdateConfigDeliveryChannelResult::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(); + +} + +std::string UpdateConfigDeliveryChannelResult::getDeliveryChannelId()const +{ + return deliveryChannelId_; +} + diff --git a/config/src/model/UpdateConfigRuleRequest.cc b/config/src/model/UpdateConfigRuleRequest.cc new file mode 100644 index 000000000..f1ceeb6fe --- /dev/null +++ b/config/src/model/UpdateConfigRuleRequest.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::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::getTagKeyLogicScope() const { + return tagKeyLogicScope_; +} + +void UpdateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) { + tagKeyLogicScope_ = tagKeyLogicScope; + setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope); +} + +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_; +} + diff --git a/config/src/model/PutConfigurationRecorderRequest.cc b/config/src/model/UpdateConfigurationRecorderRequest.cc similarity index 58% rename from config/src/model/PutConfigurationRecorderRequest.cc rename to config/src/model/UpdateConfigurationRecorderRequest.cc index 0b0f00398..3af98a192 100644 --- a/config/src/model/PutConfigurationRecorderRequest.cc +++ b/config/src/model/UpdateConfigurationRecorderRequest.cc @@ -14,22 +14,22 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::PutConfigurationRecorderRequest; +using AlibabaCloud::Config::Model::UpdateConfigurationRecorderRequest; -PutConfigurationRecorderRequest::PutConfigurationRecorderRequest() - : RpcServiceRequest("config", "2019-01-08", "PutConfigurationRecorder") { +UpdateConfigurationRecorderRequest::UpdateConfigurationRecorderRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateConfigurationRecorder") { setMethod(HttpRequest::Method::Post); } -PutConfigurationRecorderRequest::~PutConfigurationRecorderRequest() {} +UpdateConfigurationRecorderRequest::~UpdateConfigurationRecorderRequest() {} -std::string PutConfigurationRecorderRequest::getResourceTypes() const { +std::string UpdateConfigurationRecorderRequest::getResourceTypes() const { return resourceTypes_; } -void PutConfigurationRecorderRequest::setResourceTypes(const std::string &resourceTypes) { +void UpdateConfigurationRecorderRequest::setResourceTypes(const std::string &resourceTypes) { resourceTypes_ = resourceTypes; setBodyParameter(std::string("ResourceTypes"), resourceTypes); } diff --git a/config/src/model/DescribeConfigurationRecorderResult.cc b/config/src/model/UpdateConfigurationRecorderResult.cc similarity index 57% rename from config/src/model/DescribeConfigurationRecorderResult.cc rename to config/src/model/UpdateConfigurationRecorderResult.cc index e4df26b0b..7e11e9193 100644 --- a/config/src/model/DescribeConfigurationRecorderResult.cc +++ b/config/src/model/UpdateConfigurationRecorderResult.cc @@ -14,47 +14,41 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DescribeConfigurationRecorderResult::DescribeConfigurationRecorderResult() : +UpdateConfigurationRecorderResult::UpdateConfigurationRecorderResult() : ServiceResult() {} -DescribeConfigurationRecorderResult::DescribeConfigurationRecorderResult(const std::string &payload) : +UpdateConfigurationRecorderResult::UpdateConfigurationRecorderResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeConfigurationRecorderResult::~DescribeConfigurationRecorderResult() +UpdateConfigurationRecorderResult::~UpdateConfigurationRecorderResult() {} -void DescribeConfigurationRecorderResult::parse(const std::string &payload) +void UpdateConfigurationRecorderResult::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 +UpdateConfigurationRecorderResult::ConfigurationRecorder UpdateConfigurationRecorderResult::getConfigurationRecorder()const { return configurationRecorder_; } diff --git a/config/src/model/UpdateDeliveryChannelRequest.cc b/config/src/model/UpdateDeliveryChannelRequest.cc new file mode 100644 index 000000000..c0d8136ce --- /dev/null +++ b/config/src/model/UpdateDeliveryChannelRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::UpdateDeliveryChannelRequest; + +UpdateDeliveryChannelRequest::UpdateDeliveryChannelRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +UpdateDeliveryChannelRequest::~UpdateDeliveryChannelRequest() {} + +bool UpdateDeliveryChannelRequest::getNonCompliantNotification() const { + return nonCompliantNotification_; +} + +void UpdateDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { + nonCompliantNotification_ = nonCompliantNotification; + setBodyParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); +} + +std::string UpdateDeliveryChannelRequest::getClientToken() const { + return clientToken_; +} + +void UpdateDeliveryChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +bool UpdateDeliveryChannelRequest::getConfigurationSnapshot() const { + return configurationSnapshot_; +} + +void UpdateDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { + configurationSnapshot_ = configurationSnapshot; + setBodyParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); +} + +std::string UpdateDeliveryChannelRequest::getDescription() const { + return description_; +} + +void UpdateDeliveryChannelRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateDeliveryChannelRequest::getDeliveryChannelTargetArn() const { + return deliveryChannelTargetArn_; +} + +void UpdateDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { + deliveryChannelTargetArn_ = deliveryChannelTargetArn; + setBodyParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); +} + +std::string UpdateDeliveryChannelRequest::getDeliveryChannelCondition() const { + return deliveryChannelCondition_; +} + +void UpdateDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { + deliveryChannelCondition_ = deliveryChannelCondition; + setBodyParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); +} + +bool UpdateDeliveryChannelRequest::getConfigurationItemChangeNotification() const { + return configurationItemChangeNotification_; +} + +void UpdateDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { + configurationItemChangeNotification_ = configurationItemChangeNotification; + setBodyParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); +} + +std::string UpdateDeliveryChannelRequest::getDeliveryChannelAssumeRoleArn() const { + return deliveryChannelAssumeRoleArn_; +} + +void UpdateDeliveryChannelRequest::setDeliveryChannelAssumeRoleArn(const std::string &deliveryChannelAssumeRoleArn) { + deliveryChannelAssumeRoleArn_ = deliveryChannelAssumeRoleArn; + setBodyParameter(std::string("DeliveryChannelAssumeRoleArn"), deliveryChannelAssumeRoleArn); +} + +std::string UpdateDeliveryChannelRequest::getDeliveryChannelName() const { + return deliveryChannelName_; +} + +void UpdateDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { + deliveryChannelName_ = deliveryChannelName; + setBodyParameter(std::string("DeliveryChannelName"), deliveryChannelName); +} + +std::string UpdateDeliveryChannelRequest::getDeliveryChannelId() const { + return deliveryChannelId_; +} + +void UpdateDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { + deliveryChannelId_ = deliveryChannelId; + setBodyParameter(std::string("DeliveryChannelId"), deliveryChannelId); +} + +std::string UpdateDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { + return oversizedDataOSSTargetArn_; +} + +void UpdateDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { + oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; + setBodyParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); +} + +long UpdateDeliveryChannelRequest::getStatus() const { + return status_; +} + +void UpdateDeliveryChannelRequest::setStatus(long status) { + status_ = status; + setBodyParameter(std::string("Status"), std::to_string(status)); +} + diff --git a/config/src/model/UpdateDeliveryChannelResult.cc b/config/src/model/UpdateDeliveryChannelResult.cc new file mode 100644 index 000000000..503eec94d --- /dev/null +++ b/config/src/model/UpdateDeliveryChannelResult.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; + +UpdateDeliveryChannelResult::UpdateDeliveryChannelResult() : + ServiceResult() +{} + +UpdateDeliveryChannelResult::UpdateDeliveryChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDeliveryChannelResult::~UpdateDeliveryChannelResult() +{} + +void UpdateDeliveryChannelResult::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(); + +} + +std::string UpdateDeliveryChannelResult::getDeliveryChannelId()const +{ + return deliveryChannelId_; +} + diff --git a/config/src/model/UpdateIntegratedServiceStatusRequest.cc b/config/src/model/UpdateIntegratedServiceStatusRequest.cc new file mode 100644 index 000000000..5ac9825be --- /dev/null +++ b/config/src/model/UpdateIntegratedServiceStatusRequest.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::UpdateIntegratedServiceStatusRequest; + +UpdateIntegratedServiceStatusRequest::UpdateIntegratedServiceStatusRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateIntegratedServiceStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateIntegratedServiceStatusRequest::~UpdateIntegratedServiceStatusRequest() {} + +std::string UpdateIntegratedServiceStatusRequest::getServiceCode() const { + return serviceCode_; +} + +void UpdateIntegratedServiceStatusRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setBodyParameter(std::string("ServiceCode"), serviceCode); +} + +bool UpdateIntegratedServiceStatusRequest::getStatus() const { + return status_; +} + +void UpdateIntegratedServiceStatusRequest::setStatus(bool status) { + status_ = status; + setBodyParameter(std::string("Status"), status ? "true" : "false"); +} + diff --git a/config/src/model/UpdateIntegratedServiceStatusResult.cc b/config/src/model/UpdateIntegratedServiceStatusResult.cc new file mode 100644 index 000000000..3114dc67d --- /dev/null +++ b/config/src/model/UpdateIntegratedServiceStatusResult.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; + +UpdateIntegratedServiceStatusResult::UpdateIntegratedServiceStatusResult() : + ServiceResult() +{} + +UpdateIntegratedServiceStatusResult::UpdateIntegratedServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateIntegratedServiceStatusResult::~UpdateIntegratedServiceStatusResult() +{} + +void UpdateIntegratedServiceStatusResult::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/UpdateRemediationRequest.cc b/config/src/model/UpdateRemediationRequest.cc new file mode 100644 index 000000000..f79950446 --- /dev/null +++ b/config/src/model/UpdateRemediationRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::UpdateRemediationRequest; + +UpdateRemediationRequest::UpdateRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateRemediation") { + setMethod(HttpRequest::Method::Post); +} + +UpdateRemediationRequest::~UpdateRemediationRequest() {} + +std::string UpdateRemediationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void UpdateRemediationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string UpdateRemediationRequest::getRemediationType() const { + return remediationType_; +} + +void UpdateRemediationRequest::setRemediationType(const std::string &remediationType) { + remediationType_ = remediationType; + setBodyParameter(std::string("RemediationType"), remediationType); +} + +std::string UpdateRemediationRequest::getClientToken() const { + return clientToken_; +} + +void UpdateRemediationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateRemediationRequest::getRemediationId() const { + return remediationId_; +} + +void UpdateRemediationRequest::setRemediationId(const std::string &remediationId) { + remediationId_ = remediationId; + setBodyParameter(std::string("RemediationId"), remediationId); +} + +std::string UpdateRemediationRequest::getSourceType() const { + return sourceType_; +} + +void UpdateRemediationRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setBodyParameter(std::string("SourceType"), sourceType); +} + +std::string UpdateRemediationRequest::getRemediationTemplateId() const { + return remediationTemplateId_; +} + +void UpdateRemediationRequest::setRemediationTemplateId(const std::string &remediationTemplateId) { + remediationTemplateId_ = remediationTemplateId; + setBodyParameter(std::string("RemediationTemplateId"), remediationTemplateId); +} + +std::string UpdateRemediationRequest::getParams() const { + return params_; +} + +void UpdateRemediationRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("Params"), params); +} + +std::string UpdateRemediationRequest::getInvokeType() const { + return invokeType_; +} + +void UpdateRemediationRequest::setInvokeType(const std::string &invokeType) { + invokeType_ = invokeType; + setBodyParameter(std::string("InvokeType"), invokeType); +} + diff --git a/config/src/model/UpdateRemediationResult.cc b/config/src/model/UpdateRemediationResult.cc new file mode 100644 index 000000000..2e97432ed --- /dev/null +++ b/config/src/model/UpdateRemediationResult.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; + +UpdateRemediationResult::UpdateRemediationResult() : + ServiceResult() +{} + +UpdateRemediationResult::UpdateRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRemediationResult::~UpdateRemediationResult() +{} + +void UpdateRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["RemediationId"].isNull()) + remediationId_ = value["RemediationId"].asString(); + +} + +std::string UpdateRemediationResult::getRemediationId()const +{ + return remediationId_; +} + +std::string UpdateRemediationResult::getData()const +{ + return data_; +} +