Class: TencentCloud::Cdn::V20180606::ListTopDDoSDataResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::ListTopDDoSDataResponse
- Defined in:
- lib/v20180606/models.rb
Overview
ListTopDDoSData返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(data = nil, ipdata = nil, requestid = nil) ⇒ ListTopDDoSDataResponse
constructor
A new instance of ListTopDDoSDataResponse.
Constructor Details
#initialize(data = nil, ipdata = nil, requestid = nil) ⇒ ListTopDDoSDataResponse
Returns a new instance of ListTopDDoSDataResponse.
9106 9107 9108 9109 9110 |
# File 'lib/v20180606/models.rb', line 9106 def initialize(data=nil, ipdata=nil, requestid=nil) @Data = data @IPData = ipdata @RequestId = requestid end |
Instance Attribute Details
#Data ⇒ Object
9104 9105 9106 |
# File 'lib/v20180606/models.rb', line 9104 def Data @Data end |
#IPData ⇒ Object
9104 9105 9106 |
# File 'lib/v20180606/models.rb', line 9104 def IPData @IPData end |
#RequestId ⇒ Object
9104 9105 9106 |
# File 'lib/v20180606/models.rb', line 9104 def RequestId @RequestId end |
Instance Method Details
#deserialize(params) ⇒ Object
9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 |
# File 'lib/v20180606/models.rb', line 9112 def deserialize(params) unless params['Data'].nil? @Data = [] params['Data'].each do |i| ddostopdata_tmp = DDoSTopData.new ddostopdata_tmp.deserialize(i) @Data << ddostopdata_tmp end end unless params['IPData'].nil? @IPData = [] params['IPData'].each do |i| ddosattackiptopdata_tmp = DDoSAttackIPTopData.new ddosattackiptopdata_tmp.deserialize(i) @IPData << ddosattackiptopdata_tmp end end @RequestId = params['RequestId'] end |