Class: TencentCloud::Tke::V20180525::SyncPrometheusTemplateRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::SyncPrometheusTemplateRequest
- Defined in:
- lib/v20180525/models.rb
Overview
SyncPrometheusTemplate请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(templateid = nil, targets = nil) ⇒ SyncPrometheusTemplateRequest
constructor
A new instance of SyncPrometheusTemplateRequest.
Constructor Details
#initialize(templateid = nil, targets = nil) ⇒ SyncPrometheusTemplateRequest
Returns a new instance of SyncPrometheusTemplateRequest.
18469 18470 18471 18472 |
# File 'lib/v20180525/models.rb', line 18469 def initialize(templateid=nil, targets=nil) @TemplateId = templateid @Targets = targets end |
Instance Attribute Details
#Targets ⇒ Object
18467 18468 18469 |
# File 'lib/v20180525/models.rb', line 18467 def Targets @Targets end |
#TemplateId ⇒ Object
18467 18468 18469 |
# File 'lib/v20180525/models.rb', line 18467 def TemplateId @TemplateId end |
Instance Method Details
#deserialize(params) ⇒ Object
18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 |
# File 'lib/v20180525/models.rb', line 18474 def deserialize(params) @TemplateId = params['TemplateId'] unless params['Targets'].nil? @Targets = [] params['Targets'].each do |i| prometheustemplatesynctarget_tmp = PrometheusTemplateSyncTarget.new prometheustemplatesynctarget_tmp.deserialize(i) @Targets << prometheustemplatesynctarget_tmp end end end |