Class: TencentCloud::Tke::V20180525::SyncPrometheusTempRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::SyncPrometheusTempRequest
- Defined in:
- lib/v20180525/models.rb
Overview
SyncPrometheusTemp请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(templateid = nil, targets = nil) ⇒ SyncPrometheusTempRequest
constructor
A new instance of SyncPrometheusTempRequest.
Constructor Details
#initialize(templateid = nil, targets = nil) ⇒ SyncPrometheusTempRequest
Returns a new instance of SyncPrometheusTempRequest.
18426 18427 18428 18429 |
# File 'lib/v20180525/models.rb', line 18426 def initialize(templateid=nil, targets=nil) @TemplateId = templateid @Targets = targets end |
Instance Attribute Details
#Targets ⇒ Object
18424 18425 18426 |
# File 'lib/v20180525/models.rb', line 18424 def Targets @Targets end |
#TemplateId ⇒ Object
18424 18425 18426 |
# File 'lib/v20180525/models.rb', line 18424 def TemplateId @TemplateId end |
Instance Method Details
#deserialize(params) ⇒ Object
18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 |
# File 'lib/v20180525/models.rb', line 18431 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 |