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.
9679 9680 9681 9682 9683 |
# File 'lib/v20180525/models.rb', line 9679 def initialize(templates=nil, total=nil, requestid=nil) @Templates = templates @Total = total @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
9677 9678 9679 |
# File 'lib/v20180525/models.rb', line 9677 def RequestId @RequestId end |
#Templates ⇒ Object
9677 9678 9679 |
# File 'lib/v20180525/models.rb', line 9677 def Templates @Templates end |
#Total ⇒ Object
9677 9678 9679 |
# File 'lib/v20180525/models.rb', line 9677 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 |
# File 'lib/v20180525/models.rb', line 9685 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 |