Class: TencentCloud::Cdb::V20170320::ModifyAuditRuleRequest

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

Overview

ModifyAuditRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ruleid = nil, rulename = nil, description = nil, rulefilters = nil, auditall = nil) ⇒ ModifyAuditRuleRequest



10252
10253
10254
10255
10256
10257
10258
# File 'lib/v20170320/models.rb', line 10252

def initialize(ruleid=nil, rulename=nil, description=nil, rulefilters=nil, auditall=nil)
  @RuleId = ruleid
  @RuleName = rulename
  @Description = description
  @RuleFilters = rulefilters
  @AuditAll = auditall
end

Instance Attribute Details

#AuditAllObject



10250
10251
10252
# File 'lib/v20170320/models.rb', line 10250

def AuditAll
  @AuditAll
end

#DescriptionObject



10250
10251
10252
# File 'lib/v20170320/models.rb', line 10250

def Description
  @Description
end

#RuleFiltersObject



10250
10251
10252
# File 'lib/v20170320/models.rb', line 10250

def RuleFilters
  @RuleFilters
end

#RuleIdObject



10250
10251
10252
# File 'lib/v20170320/models.rb', line 10250

def RuleId
  @RuleId
end

#RuleNameObject



10250
10251
10252
# File 'lib/v20170320/models.rb', line 10250

def RuleName
  @RuleName
end

Instance Method Details

#deserialize(params) ⇒ Object



10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
# File 'lib/v20170320/models.rb', line 10260

def deserialize(params)
  @RuleId = params['RuleId']
  @RuleName = params['RuleName']
  @Description = params['Description']
  unless params['RuleFilters'].nil?
    @RuleFilters = []
    params['RuleFilters'].each do |i|
      auditfilter_tmp = AuditFilter.new
      auditfilter_tmp.deserialize(i)
      @RuleFilters << auditfilter_tmp
    end
  end
  @AuditAll = params['AuditAll']
end