Class: TencentCloud::Tke::V20180525::CheckInstancesUpgradeAbleRequest

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

Overview

CheckInstancesUpgradeAble请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, instanceids = nil, upgradetype = nil, offset = nil, limit = nil, filter = nil) ⇒ CheckInstancesUpgradeAbleRequest

Returns a new instance of CheckInstancesUpgradeAbleRequest.



771
772
773
774
775
776
777
778
# File 'lib/v20180525/models.rb', line 771

def initialize(clusterid=nil, instanceids=nil, upgradetype=nil, offset=nil, limit=nil, filter=nil)
  @ClusterId = clusterid
  @InstanceIds = instanceids
  @UpgradeType = upgradetype
  @Offset = offset
  @Limit = limit
  @Filter = filter
end

Instance Attribute Details

#ClusterIdObject

  • Name 为 ip 时,Value 为待查询节点 ip

  • Name 为 hostname 时,Value 为待查询节点名称

  • Name 为 label 时,Value 为待查询 K8S 节点 label

  • Name 为 instanceId 时,Value 为 待查询节点 id



769
770
771
# File 'lib/v20180525/models.rb', line 769

def ClusterId
  @ClusterId
end

#FilterObject

  • Name 为 ip 时,Value 为待查询节点 ip

  • Name 为 hostname 时,Value 为待查询节点名称

  • Name 为 label 时,Value 为待查询 K8S 节点 label

  • Name 为 instanceId 时,Value 为 待查询节点 id



769
770
771
# File 'lib/v20180525/models.rb', line 769

def Filter
  @Filter
end

#InstanceIdsObject

  • Name 为 ip 时,Value 为待查询节点 ip

  • Name 为 hostname 时,Value 为待查询节点名称

  • Name 为 label 时,Value 为待查询 K8S 节点 label

  • Name 为 instanceId 时,Value 为 待查询节点 id



769
770
771
# File 'lib/v20180525/models.rb', line 769

def InstanceIds
  @InstanceIds
end

#LimitObject

  • Name 为 ip 时,Value 为待查询节点 ip

  • Name 为 hostname 时,Value 为待查询节点名称

  • Name 为 label 时,Value 为待查询 K8S 节点 label

  • Name 为 instanceId 时,Value 为 待查询节点 id



769
770
771
# File 'lib/v20180525/models.rb', line 769

def Limit
  @Limit
end

#OffsetObject

  • Name 为 ip 时,Value 为待查询节点 ip

  • Name 为 hostname 时,Value 为待查询节点名称

  • Name 为 label 时,Value 为待查询 K8S 节点 label

  • Name 为 instanceId 时,Value 为 待查询节点 id



769
770
771
# File 'lib/v20180525/models.rb', line 769

def Offset
  @Offset
end

#UpgradeTypeObject

  • Name 为 ip 时,Value 为待查询节点 ip

  • Name 为 hostname 时,Value 为待查询节点名称

  • Name 为 label 时,Value 为待查询 K8S 节点 label

  • Name 为 instanceId 时,Value 为 待查询节点 id



769
770
771
# File 'lib/v20180525/models.rb', line 769

def UpgradeType
  @UpgradeType
end

Instance Method Details

#deserialize(params) ⇒ Object



780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
# File 'lib/v20180525/models.rb', line 780

def deserialize(params)
  @ClusterId = params['ClusterId']
  @InstanceIds = params['InstanceIds']
  @UpgradeType = params['UpgradeType']
  @Offset = params['Offset']
  @Limit = params['Limit']
  unless params['Filter'].nil?
    @Filter = []
    params['Filter'].each do |i|
      filter_tmp = Filter.new
      filter_tmp.deserialize(i)
      @Filter << filter_tmp
    end
  end
end