Class: TencentCloud::Tke::V20180525::DeletePrometheusTemplateSyncRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

DeletePrometheusTemplateSync请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#TargetsObject

Parameters:

  • TemplateId:

    模板id

  • Targets:

    取消同步的对象列表



4984
4985
4986
# File 'lib/v20180525/models.rb', line 4984

def Targets
  @Targets
end

#TemplateIdObject

Parameters:

  • TemplateId:

    模板id

  • Targets:

    取消同步的对象列表



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