Class: TencentCloud::Yunjing::V20180228::DescribeAttackLogsResponse

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

Overview

DescribeAttackLogs返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attacklogs = nil, totalcount = nil, requestid = nil) ⇒ DescribeAttackLogsResponse

Returns a new instance of DescribeAttackLogsResponse.



1718
1719
1720
1721
1722
# File 'lib/v20180228/models.rb', line 1718

def initialize(attacklogs=nil, totalcount=nil, requestid=nil)
  @AttackLogs = attacklogs
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#AttackLogsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AttackLogs:

    日志列表

  • TotalCount:

    总条数

  • RequestId:

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



1716
1717
1718
# File 'lib/v20180228/models.rb', line 1716

def AttackLogs
  @AttackLogs
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AttackLogs:

    日志列表

  • TotalCount:

    总条数

  • RequestId:

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



1716
1717
1718
# File 'lib/v20180228/models.rb', line 1716

def RequestId
  @RequestId
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AttackLogs:

    日志列表

  • TotalCount:

    总条数

  • RequestId:

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



1716
1717
1718
# File 'lib/v20180228/models.rb', line 1716

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
# File 'lib/v20180228/models.rb', line 1724

def deserialize(params)
  unless params['AttackLogs'].nil?
    @AttackLogs = []
    params['AttackLogs'].each do |i|
      defendattacklog_tmp = DefendAttackLog.new
      defendattacklog_tmp.deserialize(i)
      @AttackLogs << defendattacklog_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end