Class: TencentCloud::Tke::V20180525::DeletePrometheusTemplateSyncRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DeletePrometheusTemplateSyncRequest
- Defined in:
- lib/v20180525/models.rb
Overview
DeletePrometheusTemplateSync请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(templateid = nil, targets = nil) ⇒ DeletePrometheusTemplateSyncRequest
constructor
A new instance of DeletePrometheusTemplateSyncRequest.
Constructor Details
#initialize(templateid = nil, targets = nil) ⇒ DeletePrometheusTemplateSyncRequest
Returns a new instance of DeletePrometheusTemplateSyncRequest.
4986 4987 4988 4989 |
# File 'lib/v20180525/models.rb', line 4986 def initialize(templateid=nil, targets=nil) @TemplateId = templateid @Targets = targets end |
Instance Attribute Details
#Targets ⇒ Object
4984 4985 4986 |
# File 'lib/v20180525/models.rb', line 4984 def Targets @Targets end |
#TemplateId ⇒ Object
4984 4985 4986 |
# File 'lib/v20180525/models.rb', line 4984 def TemplateId @TemplateId end |
Instance Method Details
#deserialize(params) ⇒ Object
4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 |
# File 'lib/v20180525/models.rb', line 4991 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 |