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.



15672
15673
15674
15675
15676
# File 'lib/v20180525/models.rb', line 15672

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



15670
15671
15672
# File 'lib/v20180525/models.rb', line 15670

def ClusterId
  @ClusterId
end

#ExternalLabelsObject

Parameters:

  • InstanceId:

    实例ID

  • ClusterId:

    集群ID

  • ExternalLabels:

    新的external_labels



15670
15671
15672
# File 'lib/v20180525/models.rb', line 15670

def ExternalLabels
  @ExternalLabels
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例ID

  • ClusterId:

    集群ID

  • ExternalLabels:

    新的external_labels



15670
15671
15672
# File 'lib/v20180525/models.rb', line 15670

def InstanceId
  @InstanceId
end

Instance Method Details

#deserialize(params) ⇒ Object



15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
# File 'lib/v20180525/models.rb', line 15678

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