Class: TencentCloud::Waf::V20180125::SessionData

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

Overview

参数包装

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(res = nil) ⇒ SessionData

Returns a new instance of SessionData.



12375
12376
12377
# File 'lib/v20180125/models.rb', line 12375

def initialize(res=nil)
  @Res = res
end

Instance Attribute Details

#ResObject

Parameters:

  • Res:

    session定义



12373
12374
12375
# File 'lib/v20180125/models.rb', line 12373

def Res
  @Res
end

Instance Method Details

#deserialize(params) ⇒ Object



12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
# File 'lib/v20180125/models.rb', line 12379

def deserialize(params)
  unless params['Res'].nil?
    @Res = []
    params['Res'].each do |i|
      sessionitem_tmp = SessionItem.new
      sessionitem_tmp.deserialize(i)
      @Res << sessionitem_tmp
    end
  end
end