Class: TencentCloud::Cdb::V20170320::CreateAuditRuleRequest

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

Overview

CreateAuditRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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



2468
2469
2470
2471
2472
2473
# File 'lib/v20170320/models.rb', line 2468

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

Instance Attribute Details

#AuditAllObject



2466
2467
2468
# File 'lib/v20170320/models.rb', line 2466

def AuditAll
  @AuditAll
end

#DescriptionObject



2466
2467
2468
# File 'lib/v20170320/models.rb', line 2466

def Description
  @Description
end

#RuleFiltersObject



2466
2467
2468
# File 'lib/v20170320/models.rb', line 2466

def RuleFilters
  @RuleFilters
end

#RuleNameObject



2466
2467
2468
# File 'lib/v20170320/models.rb', line 2466

def RuleName
  @RuleName
end

Instance Method Details

#deserialize(params) ⇒ Object



2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
# File 'lib/v20170320/models.rb', line 2475

def deserialize(params)
  @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