Class: TencentCloud::Waf::V20180125::DescribeAttackTypeResponse

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

Overview

DescribeAttackType返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(piechart = nil, requestid = nil) ⇒ DescribeAttackTypeResponse

Returns a new instance of DescribeAttackTypeResponse.



4015
4016
4017
4018
# File 'lib/v20180125/models.rb', line 4015

def initialize(piechart=nil, requestid=nil)
  @Piechart = piechart
  @RequestId = requestid
end

Instance Attribute Details

#PiechartObject

Parameters:

  • Piechart:

    数量

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4013
4014
4015
# File 'lib/v20180125/models.rb', line 4013

def Piechart
  @Piechart
end

#RequestIdObject

Parameters:

  • Piechart:

    数量

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4013
4014
4015
# File 'lib/v20180125/models.rb', line 4013

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
# File 'lib/v20180125/models.rb', line 4020

def deserialize(params)
  unless params['Piechart'].nil?
    @Piechart = []
    params['Piechart'].each do |i|
      piechartitem_tmp = PiechartItem.new
      piechartitem_tmp.deserialize(i)
      @Piechart << piechartitem_tmp
    end
  end
  @RequestId = params['RequestId']
end