Class: TencentCloud::Dayu::V20180709::DescribeDDoSAttackSourceResponse

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

Overview

DescribeDDoSAttackSource返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, attacksourcelist = nil, requestid = nil) ⇒ DescribeDDoSAttackSourceResponse

Returns a new instance of DescribeDDoSAttackSourceResponse.



3453
3454
3455
3456
3457
# File 'lib/v20180709/models.rb', line 3453

def initialize(total=nil, attacksourcelist=nil, requestid=nil)
  @Total = total
  @AttackSourceList = attacksourcelist
  @RequestId = requestid
end

Instance Attribute Details

#AttackSourceListObject

Parameters:

  • Total:

    总攻击源条数

  • AttackSourceList:

    攻击源列表

  • RequestId:

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



3451
3452
3453
# File 'lib/v20180709/models.rb', line 3451

def AttackSourceList
  @AttackSourceList
end

#RequestIdObject

Parameters:

  • Total:

    总攻击源条数

  • AttackSourceList:

    攻击源列表

  • RequestId:

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



3451
3452
3453
# File 'lib/v20180709/models.rb', line 3451

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Total:

    总攻击源条数

  • AttackSourceList:

    攻击源列表

  • RequestId:

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



3451
3452
3453
# File 'lib/v20180709/models.rb', line 3451

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
# File 'lib/v20180709/models.rb', line 3459

def deserialize(params)
  @Total = params['Total']
  unless params['AttackSourceList'].nil?
    @AttackSourceList = []
    params['AttackSourceList'].each do |i|
      ddosattacksourcerecord_tmp = DDoSAttackSourceRecord.new
      ddosattacksourcerecord_tmp.deserialize(i)
      @AttackSourceList << ddosattacksourcerecord_tmp
    end
  end
  @RequestId = params['RequestId']
end