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.



9657
9658
9659
9660
9661
# File 'lib/v20180525/models.rb', line 9657

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。



9655
9656
9657
# File 'lib/v20180525/models.rb', line 9655

def RequestId
  @RequestId
end

#TemplatesObject

Parameters:

  • Templates:

    模板列表

  • Total:

    总数

  • RequestId:

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



9655
9656
9657
# File 'lib/v20180525/models.rb', line 9655

def Templates
  @Templates
end

#TotalObject

Parameters:

  • Templates:

    模板列表

  • Total:

    总数

  • RequestId:

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



9655
9656
9657
# File 'lib/v20180525/models.rb', line 9655

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
# File 'lib/v20180525/models.rb', line 9663

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