Class: TencentCloud::Monitor::V20180724::DescribePrometheusTempResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::DescribePrometheusTempResponse
- Defined in:
- lib/v20180724/models.rb
Overview
DescribePrometheusTemp返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(templates = nil, total = nil, requestid = nil) ⇒ DescribePrometheusTempResponse
constructor
A new instance of DescribePrometheusTempResponse.
Constructor Details
#initialize(templates = nil, total = nil, requestid = nil) ⇒ DescribePrometheusTempResponse
Returns a new instance of DescribePrometheusTempResponse.
9336 9337 9338 9339 9340 |
# File 'lib/v20180724/models.rb', line 9336 def initialize(templates=nil, total=nil, requestid=nil) @Templates = templates @Total = total @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
9334 9335 9336 |
# File 'lib/v20180724/models.rb', line 9334 def RequestId @RequestId end |
#Templates ⇒ Object
9334 9335 9336 |
# File 'lib/v20180724/models.rb', line 9334 def Templates @Templates end |
#Total ⇒ Object
9334 9335 9336 |
# File 'lib/v20180724/models.rb', line 9334 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 |
# File 'lib/v20180724/models.rb', line 9342 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 |