Class: TencentCloud::Tke::V20180525::DeletePrometheusTempSyncRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DeletePrometheusTempSyncRequest
- Defined in:
- lib/v20180525/models.rb
Overview
DeletePrometheusTempSync请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(templateid = nil, targets = nil) ⇒ DeletePrometheusTempSyncRequest
constructor
A new instance of DeletePrometheusTempSyncRequest.
Constructor Details
#initialize(templateid = nil, targets = nil) ⇒ DeletePrometheusTempSyncRequest
Returns a new instance of DeletePrometheusTempSyncRequest.
4911 4912 4913 4914 |
# File 'lib/v20180525/models.rb', line 4911 def initialize(templateid=nil, targets=nil) @TemplateId = templateid @Targets = targets end |
Instance Attribute Details
#Targets ⇒ Object
4909 4910 4911 |
# File 'lib/v20180525/models.rb', line 4909 def Targets @Targets end |
#TemplateId ⇒ Object
4909 4910 4911 |
# File 'lib/v20180525/models.rb', line 4909 def TemplateId @TemplateId end |
Instance Method Details
#deserialize(params) ⇒ Object
4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 |
# File 'lib/v20180525/models.rb', line 4916 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 |