Class: TencentCloud::Tke::V20180525::DescribePrometheusTemplatesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribePrometheusTemplatesResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribePrometheusTemplates返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(templates = nil, total = nil, requestid = nil) ⇒ DescribePrometheusTemplatesResponse
constructor
A new instance of DescribePrometheusTemplatesResponse.
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
#RequestId ⇒ Object
10319 10320 10321 |
# File 'lib/v20180525/models.rb', line 10319 def RequestId @RequestId end |
#Templates ⇒ Object
10319 10320 10321 |
# File 'lib/v20180525/models.rb', line 10319 def Templates @Templates end |
#Total ⇒ Object
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 |