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.
4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/v20190904/models.rb', line 4746 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
4744 4745 4746 |
# File 'lib/v20190904/models.rb', line 4744 def AreaLists @AreaLists end |
#Data ⇒ Object
4744 4745 4746 |
# File 'lib/v20190904/models.rb', line 4744 def Data @Data end |
#OffNum ⇒ Object
4744 4745 4746 |
# File 'lib/v20190904/models.rb', line 4744 def OffNum @OffNum end |
#OnNum ⇒ Object
4744 4745 4746 |
# File 'lib/v20190904/models.rb', line 4744 def OnNum @OnNum end |
#RequestId ⇒ Object
4744 4745 4746 |
# File 'lib/v20190904/models.rb', line 4744 def RequestId @RequestId end |
#Total ⇒ Object
4744 4745 4746 |
# File 'lib/v20190904/models.rb', line 4744 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 |
# File 'lib/v20190904/models.rb', line 4755 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 |