Class: TencentCloud::Cfw::V20190904::DescribeSwitchListsResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfw::V20190904::DescribeSwitchListsResponse
- Defined in:
- lib/v20190904/models.rb
Overview
DescribeSwitchLists返回参数结构体
Instance Attribute Summary collapse
- #AreaLists ⇒ Object
- #Data ⇒ Object
- #OffNum ⇒ Object
- #OnNum ⇒ Object
- #RequestId ⇒ Object
- #Total ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(total = nil, data = nil, arealists = nil, onnum = nil, offnum = nil, requestid = nil) ⇒ DescribeSwitchListsResponse
constructor
A new instance of DescribeSwitchListsResponse.
Constructor Details
#initialize(total = nil, data = nil, arealists = nil, onnum = nil, offnum = nil, requestid = nil) ⇒ DescribeSwitchListsResponse
Returns a new instance of DescribeSwitchListsResponse.
5498 5499 5500 5501 5502 5503 5504 5505 |
# File 'lib/v20190904/models.rb', line 5498 def initialize(total=nil, data=nil, arealists=nil, onnum=nil, offnum=nil, requestid=nil) @Total = total @Data = data @AreaLists = arealists @OnNum = onnum @OffNum = offnum @RequestId = requestid end |
Instance Attribute Details
#AreaLists ⇒ Object
5496 5497 5498 |
# File 'lib/v20190904/models.rb', line 5496 def AreaLists @AreaLists end |
#Data ⇒ Object
5496 5497 5498 |
# File 'lib/v20190904/models.rb', line 5496 def Data @Data end |
#OffNum ⇒ Object
5496 5497 5498 |
# File 'lib/v20190904/models.rb', line 5496 def OffNum @OffNum end |
#OnNum ⇒ Object
5496 5497 5498 |
# File 'lib/v20190904/models.rb', line 5496 def OnNum @OnNum end |
#RequestId ⇒ Object
5496 5497 5498 |
# File 'lib/v20190904/models.rb', line 5496 def RequestId @RequestId end |
#Total ⇒ Object
5496 5497 5498 |
# File 'lib/v20190904/models.rb', line 5496 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 |
# File 'lib/v20190904/models.rb', line 5507 def deserialize(params) @Total = params['Total'] unless params['Data'].nil? @Data = [] params['Data'].each do |i| switchlistsdata_tmp = SwitchListsData.new switchlistsdata_tmp.deserialize(i) @Data << switchlistsdata_tmp end end @AreaLists = params['AreaLists'] @OnNum = params['OnNum'] @OffNum = params['OffNum'] @RequestId = params['RequestId'] end |