Class: TencentCloud::Dayu::V20180709::DescribeDDoSAttackIPRegionMapResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180709/models.rb

Overview

DescribeDDoSAttackIPRegionMap返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#NationCountObject

Parameters:

  • NationCount:

    全球地域分布数据

  • ProvinceCount:

    国内省份地域分布数据

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



3373
3374
3375
# File 'lib/v20180709/models.rb', line 3373

def NationCount
  @NationCount
end

#ProvinceCountObject

Parameters:

  • NationCount:

    全球地域分布数据

  • ProvinceCount:

    国内省份地域分布数据

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



3373
3374
3375
# File 'lib/v20180709/models.rb', line 3373

def ProvinceCount
  @ProvinceCount
end

#RequestIdObject

Parameters:

  • NationCount:

    全球地域分布数据

  • ProvinceCount:

    国内省份地域分布数据

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



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