Class: TencentCloud::Tke::V20180525::ModifyPrometheusAgentExternalLabelsRequest

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

Overview

ModifyPrometheusAgentExternalLabels请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, clusterid = nil, externallabels = nil) ⇒ ModifyPrometheusAgentExternalLabelsRequest

Returns a new instance of ModifyPrometheusAgentExternalLabelsRequest.



14726
14727
14728
14729
14730
# File 'lib/v20180525/models.rb', line 14726

def initialize(instanceid=nil, clusterid=nil, externallabels=nil)
  @InstanceId = instanceid
  @ClusterId = clusterid
  @ExternalLabels = externallabels
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • InstanceId:

    实例ID

  • ClusterId:

    集群ID

  • ExternalLabels:

    新的external_labels



14724
14725
14726
# File 'lib/v20180525/models.rb', line 14724

def ClusterId
  @ClusterId
end

#ExternalLabelsObject

Parameters:

  • InstanceId:

    实例ID

  • ClusterId:

    集群ID

  • ExternalLabels:

    新的external_labels



14724
14725
14726
# File 'lib/v20180525/models.rb', line 14724

def ExternalLabels
  @ExternalLabels
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例ID

  • ClusterId:

    集群ID

  • ExternalLabels:

    新的external_labels



14724
14725
14726
# File 'lib/v20180525/models.rb', line 14724

def InstanceId
  @InstanceId
end

Instance Method Details

#deserialize(params) ⇒ Object



14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
# File 'lib/v20180525/models.rb', line 14732

def deserialize(params)
  @InstanceId = params['InstanceId']
  @ClusterId = params['ClusterId']
  unless params['ExternalLabels'].nil?
    @ExternalLabels = []
    params['ExternalLabels'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @ExternalLabels << label_tmp
    end
  end
end