Class: TencentCloud::Cws::V20180312::DescribeVulsResponse

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

Overview

DescribeVuls返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, vuls = nil, requestid = nil) ⇒ DescribeVulsResponse

Returns a new instance of DescribeVulsResponse.



737
738
739
740
741
# File 'lib/v20180312/models.rb', line 737

def initialize(totalcount=nil, vuls=nil, requestid=nil)
  @TotalCount = totalcount
  @Vuls = vuls
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    漏洞数量。

  • Vuls:

    漏洞信息列表。

  • RequestId:

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



735
736
737
# File 'lib/v20180312/models.rb', line 735

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    漏洞数量。

  • Vuls:

    漏洞信息列表。

  • RequestId:

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



735
736
737
# File 'lib/v20180312/models.rb', line 735

def TotalCount
  @TotalCount
end

#VulsObject

Parameters:

  • TotalCount:

    漏洞数量。

  • Vuls:

    漏洞信息列表。

  • RequestId:

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



735
736
737
# File 'lib/v20180312/models.rb', line 735

def Vuls
  @Vuls
end

Instance Method Details

#deserialize(params) ⇒ Object



743
744
745
746
747
748
749
750
751
752
753
754
# File 'lib/v20180312/models.rb', line 743

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Vuls'].nil?
    @Vuls = []
    params['Vuls'].each do |i|
      vul_tmp = Vul.new
      vul_tmp.deserialize(i)
      @Vuls << vul_tmp
    end
  end
  @RequestId = params['RequestId']
end