Class: TencentCloud::Cdb::V20170320::ModifyAuditRuleTemplatesRequest

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20170320/models.rb

Overview

ModifyAuditRuleTemplates请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ruletemplateids = nil, rulefilters = nil, ruletemplatename = nil, description = nil, alarmlevel = nil, alarmpolicy = nil) ⇒ ModifyAuditRuleTemplatesRequest



10309
10310
10311
10312
10313
10314
10315
10316
# File 'lib/v20170320/models.rb', line 10309

def initialize(ruletemplateids=nil, rulefilters=nil, ruletemplatename=nil, description=nil, alarmlevel=nil, alarmpolicy=nil)
  @RuleTemplateIds = ruletemplateids
  @RuleFilters = rulefilters
  @RuleTemplateName = ruletemplatename
  @Description = description
  @AlarmLevel = alarmlevel
  @AlarmPolicy = alarmpolicy
end

Instance Attribute Details

#AlarmLevelObject



10307
10308
10309
# File 'lib/v20170320/models.rb', line 10307

def AlarmLevel
  @AlarmLevel
end

#AlarmPolicyObject



10307
10308
10309
# File 'lib/v20170320/models.rb', line 10307

def AlarmPolicy
  @AlarmPolicy
end

#DescriptionObject



10307
10308
10309
# File 'lib/v20170320/models.rb', line 10307

def Description
  @Description
end

#RuleFiltersObject



10307
10308
10309
# File 'lib/v20170320/models.rb', line 10307

def RuleFilters
  @RuleFilters
end

#RuleTemplateIdsObject



10307
10308
10309
# File 'lib/v20170320/models.rb', line 10307

def RuleTemplateIds
  @RuleTemplateIds
end

#RuleTemplateNameObject



10307
10308
10309
# File 'lib/v20170320/models.rb', line 10307

def RuleTemplateName
  @RuleTemplateName
end

Instance Method Details

#deserialize(params) ⇒ Object



10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
# File 'lib/v20170320/models.rb', line 10318

def deserialize(params)
  @RuleTemplateIds = params['RuleTemplateIds']
  unless params['RuleFilters'].nil?
    @RuleFilters = []
    params['RuleFilters'].each do |i|
      rulefilters_tmp = RuleFilters.new
      rulefilters_tmp.deserialize(i)
      @RuleFilters << rulefilters_tmp
    end
  end
  @RuleTemplateName = params['RuleTemplateName']
  @Description = params['Description']
  @AlarmLevel = params['AlarmLevel']
  @AlarmPolicy = params['AlarmPolicy']
end