Class: TencentCloud::Tke::V20180525::DescribePrometheusTempResponse

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

Overview

DescribePrometheusTemp返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templates = nil, total = nil, requestid = nil) ⇒ DescribePrometheusTempResponse

Returns a new instance of DescribePrometheusTempResponse.



9504
9505
9506
9507
9508
# File 'lib/v20180525/models.rb', line 9504

def initialize(templates=nil, total=nil, requestid=nil)
  @Templates = templates
  @Total = total
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • Templates:

    模板列表

  • Total:

    总数

  • RequestId:

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



9502
9503
9504
# File 'lib/v20180525/models.rb', line 9502

def RequestId
  @RequestId
end

#TemplatesObject

Parameters:

  • Templates:

    模板列表

  • Total:

    总数

  • RequestId:

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



9502
9503
9504
# File 'lib/v20180525/models.rb', line 9502

def Templates
  @Templates
end

#TotalObject

Parameters:

  • Templates:

    模板列表

  • Total:

    总数

  • RequestId:

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



9502
9503
9504
# File 'lib/v20180525/models.rb', line 9502

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
# File 'lib/v20180525/models.rb', line 9510

def deserialize(params)
  unless params['Templates'].nil?
    @Templates = []
    params['Templates'].each do |i|
      prometheustemp_tmp = PrometheusTemp.new
      prometheustemp_tmp.deserialize(i)
      @Templates << prometheustemp_tmp
    end
  end
  @Total = params['Total']
  @RequestId = params['RequestId']
end