Class: TencentCloud::Tke::V20180525::DeletePrometheusTempSyncRequest

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

Overview

DeletePrometheusTempSync请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#TargetsObject

Parameters:

  • TemplateId:

    模板id

  • Targets:

    取消同步的对象列表



4909
4910
4911
# File 'lib/v20180525/models.rb', line 4909

def Targets
  @Targets
end

#TemplateIdObject

Parameters:

  • TemplateId:

    模板id

  • Targets:

    取消同步的对象列表



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