Class: TencentCloud::Dayu::V20180709::DescribeDDoSAttackIPRegionMapResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dayu::V20180709::DescribeDDoSAttackIPRegionMapResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeDDoSAttackIPRegionMap返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(nationcount = nil, provincecount = nil, requestid = nil) ⇒ DescribeDDoSAttackIPRegionMapResponse
constructor
A new instance of DescribeDDoSAttackIPRegionMapResponse.
Constructor Details
#initialize(nationcount = nil, provincecount = nil, requestid = nil) ⇒ DescribeDDoSAttackIPRegionMapResponse
Returns a new instance of DescribeDDoSAttackIPRegionMapResponse.
3375 3376 3377 3378 3379 |
# File 'lib/v20180709/models.rb', line 3375 def initialize(nationcount=nil, provincecount=nil, requestid=nil) @NationCount = nationcount @ProvinceCount = provincecount @RequestId = requestid end |
Instance Attribute Details
#NationCount ⇒ Object
3373 3374 3375 |
# File 'lib/v20180709/models.rb', line 3373 def NationCount @NationCount end |
#ProvinceCount ⇒ Object
3373 3374 3375 |
# File 'lib/v20180709/models.rb', line 3373 def ProvinceCount @ProvinceCount end |
#RequestId ⇒ Object
3373 3374 3375 |
# File 'lib/v20180709/models.rb', line 3373 def RequestId @RequestId end |
Instance Method Details
#deserialize(params) ⇒ Object
3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 |
# File 'lib/v20180709/models.rb', line 3381 def deserialize(params) unless params['NationCount'].nil? @NationCount = [] params['NationCount'].each do |i| keyvaluerecord_tmp = KeyValueRecord.new keyvaluerecord_tmp.deserialize(i) @NationCount << keyvaluerecord_tmp end end unless params['ProvinceCount'].nil? @ProvinceCount = [] params['ProvinceCount'].each do |i| keyvaluerecord_tmp = KeyValueRecord.new keyvaluerecord_tmp.deserialize(i) @ProvinceCount << keyvaluerecord_tmp end end @RequestId = params['RequestId'] end |