Support event type in timeline of resource properties.
This commit is contained in:
@@ -31,21 +31,21 @@ ConfigClient::ConfigClient(const Credentials &credentials, const ClientConfigura
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "config");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "Config");
|
||||
}
|
||||
|
||||
ConfigClient::ConfigClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "config");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "Config");
|
||||
}
|
||||
|
||||
ConfigClient::ConfigClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "config");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "Config");
|
||||
}
|
||||
|
||||
ConfigClient::~ConfigClient()
|
||||
|
||||
@@ -58,6 +58,8 @@ void DescribeConfigRuleResult::parse(const std::string &payload)
|
||||
configRule_.modifiedTimestamp = std::stol(configRuleNode["ModifiedTimestamp"].asString());
|
||||
if(!configRuleNode["RiskLevel"].isNull())
|
||||
configRule_.riskLevel = std::stoi(configRuleNode["RiskLevel"].asString());
|
||||
if(!configRuleNode["MaximumExecutionFrequency"].isNull())
|
||||
configRule_.maximumExecutionFrequency = configRuleNode["MaximumExecutionFrequency"].asString();
|
||||
auto createByNode = configRuleNode["CreateBy"];
|
||||
if(!createByNode["CreatorType"].isNull())
|
||||
configRule_.createBy.creatorType = createByNode["CreatorType"].asString();
|
||||
|
||||
@@ -74,6 +74,8 @@ void GetResourceConfigurationTimelineResult::parse(const std::string &payload)
|
||||
configurationListItemObject.resourceType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].asString();
|
||||
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].isNull())
|
||||
configurationListItemObject.tags = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].asString();
|
||||
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].isNull())
|
||||
configurationListItemObject.resourceEventType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].asString();
|
||||
resourceConfigurationTimeline_.configurationList.push_back(configurationListItemObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,17 +60,6 @@ void ListConfigRulesRequest::setConfigRuleState(const std::string& configRuleSta
|
||||
setParameter("ConfigRuleState", configRuleState);
|
||||
}
|
||||
|
||||
int ListConfigRulesRequest::getRiskLevel()const
|
||||
{
|
||||
return riskLevel_;
|
||||
}
|
||||
|
||||
void ListConfigRulesRequest::setRiskLevel(int riskLevel)
|
||||
{
|
||||
riskLevel_ = riskLevel;
|
||||
setParameter("RiskLevel", std::to_string(riskLevel));
|
||||
}
|
||||
|
||||
int ListConfigRulesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -104,6 +93,28 @@ void ListConfigRulesRequest::setComplianceType(const std::string& complianceType
|
||||
setParameter("ComplianceType", complianceType);
|
||||
}
|
||||
|
||||
std::string ListConfigRulesRequest::getConfigRuleSceneId()const
|
||||
{
|
||||
return configRuleSceneId_;
|
||||
}
|
||||
|
||||
void ListConfigRulesRequest::setConfigRuleSceneId(const std::string& configRuleSceneId)
|
||||
{
|
||||
configRuleSceneId_ = configRuleSceneId;
|
||||
setParameter("ConfigRuleSceneId", configRuleSceneId);
|
||||
}
|
||||
|
||||
int ListConfigRulesRequest::getRiskLevel()const
|
||||
{
|
||||
return riskLevel_;
|
||||
}
|
||||
|
||||
void ListConfigRulesRequest::setRiskLevel(int riskLevel)
|
||||
{
|
||||
riskLevel_ = riskLevel;
|
||||
setParameter("RiskLevel", std::to_string(riskLevel));
|
||||
}
|
||||
|
||||
long ListConfigRulesRequest::getMemberId()const
|
||||
{
|
||||
return memberId_;
|
||||
|
||||
Reference in New Issue
Block a user