Class: TencentCloud::Wedata::V20210820::RuleTemplatePage

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

Overview

RuleTemplatePage 结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, items = nil) ⇒ RuleTemplatePage

Returns a new instance of RuleTemplatePage.



29206
29207
29208
29209
# File 'lib/v20210820/models.rb', line 29206

def initialize(totalcount=nil, items=nil)
  @TotalCount = totalcount
  @Items = items
end

Instance Attribute Details

#ItemsObject

Parameters:

  • TotalCount:

    记录数

  • Items:

    模版列表



29204
29205
29206
# File 'lib/v20210820/models.rb', line 29204

def Items
  @Items
end

#TotalCountObject

Parameters:

  • TotalCount:

    记录数

  • Items:

    模版列表



29204
29205
29206
# File 'lib/v20210820/models.rb', line 29204

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
# File 'lib/v20210820/models.rb', line 29211

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      ruletemplate_tmp = RuleTemplate.new
      ruletemplate_tmp.deserialize(i)
      @Items << ruletemplate_tmp
    end
  end
end