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.
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
#RequestId ⇒ Object
9655 9656 9657 |
# File 'lib/v20180525/models.rb', line 9655 def RequestId @RequestId end |
#Templates ⇒ Object
9655 9656 9657 |
# File 'lib/v20180525/models.rb', line 9655 def Templates @Templates end |
#Total ⇒ Object
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 |