Class: TencentCloud::Tke::V20180525::DescribePrometheusTemplatesResponse

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

Overview

DescribePrometheusTemplates返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribePrometheusTemplatesResponse.



10321
10322
10323
10324
10325
# File 'lib/v20180525/models.rb', line 10321

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。



10319
10320
10321
# File 'lib/v20180525/models.rb', line 10319

def RequestId
  @RequestId
end

#TemplatesObject

Parameters:

  • Templates:

    模板列表

  • Total:

    总数

  • RequestId:

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



10319
10320
10321
# File 'lib/v20180525/models.rb', line 10319

def Templates
  @Templates
end

#TotalObject

Parameters:

  • Templates:

    模板列表

  • Total:

    总数

  • RequestId:

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



10319
10320
10321
# File 'lib/v20180525/models.rb', line 10319

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
# File 'lib/v20180525/models.rb', line 10327

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