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
4945 4946 4947 4948 4949 4950 4951 4952 |
# File 'lib/v20190904/models.rb', line 4945 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
4943 4944 4945 |
# File 'lib/v20190904/models.rb', line 4943 def AreaLists @AreaLists end |
#Data ⇒ Object
4943 4944 4945 |
# File 'lib/v20190904/models.rb', line 4943 def Data @Data end |
#OffNum ⇒ Object
4943 4944 4945 |
# File 'lib/v20190904/models.rb', line 4943 def OffNum @OffNum end |
#OnNum ⇒ Object
4943 4944 4945 |
# File 'lib/v20190904/models.rb', line 4943 def OnNum @OnNum end |
#RequestId ⇒ Object
4943 4944 4945 |
# File 'lib/v20190904/models.rb', line 4943 def RequestId @RequestId end |
#Total ⇒ Object
4943 4944 4945 |
# File 'lib/v20190904/models.rb', line 4943 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 |
# File 'lib/v20190904/models.rb', line 4954 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 |