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



10168
10169
10170
10171
10172
# File 'lib/v20180525/models.rb', line 10168

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

Instance Attribute Details

#RequestIdObject



10166
10167
10168
# File 'lib/v20180525/models.rb', line 10166

def RequestId
  @RequestId
end

#TemplatesObject



10166
10167
10168
# File 'lib/v20180525/models.rb', line 10166

def Templates
  @Templates
end

#TotalObject



10166
10167
10168
# File 'lib/v20180525/models.rb', line 10166

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
# File 'lib/v20180525/models.rb', line 10174

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