Class: TencentCloud::Tke::V20220501::ModifyNodePoolRequest

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

Overview

ModifyNodePool请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, nodepoolid = nil, name = nil, labels = nil, taints = nil, tags = nil, deletionprotection = nil, unschedulable = nil, native = nil, annotations = nil) ⇒ ModifyNodePoolRequest

Returns a new instance of ModifyNodePoolRequest.



1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
# File 'lib/v20220501/models.rb', line 1825

def initialize(clusterid=nil, nodepoolid=nil, name=nil, labels=nil, taints=nil, tags=nil, deletionprotection=nil, unschedulable=nil, native=nil, annotations=nil)
  @ClusterId = clusterid
  @NodePoolId = nodepoolid
  @Name = name
  @Labels = labels
  @Taints = taints
  @Tags = tags
  @DeletionProtection = deletionprotection
  @Unschedulable = unschedulable
  @Native = native
  @Annotations = annotations
end

Instance Attribute Details

#AnnotationsObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def Annotations
  @Annotations
end

#ClusterIdObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def ClusterId
  @ClusterId
end

#DeletionProtectionObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def DeletionProtection
  @DeletionProtection
end

#LabelsObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def Labels
  @Labels
end

#NameObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def Name
  @Name
end

#NativeObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def Native
  @Native
end

#NodePoolIdObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def NodePoolId
  @NodePoolId
end

#TagsObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def Tags
  @Tags
end

#TaintsObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def Taints
  @Taints
end

#UnschedulableObject

Parameters:

  • ClusterId:

    集群 ID

  • NodePoolId:

    节点池 ID

  • Name:

    节点池名称

  • Labels:

    节点 Labels

  • Taints:

    节点污点

  • Tags:

    节点标签

  • DeletionProtection:

    是否开启删除保护

  • Unschedulable:

    节点是否不可调度

  • Native:

    原生节点池更新参数

  • Annotations:

    节点 Annotation 列表



1823
1824
1825
# File 'lib/v20220501/models.rb', line 1823

def Unschedulable
  @Unschedulable
end

Instance Method Details

#deserialize(params) ⇒ Object



1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
# File 'lib/v20220501/models.rb', line 1838

def deserialize(params)
  @ClusterId = params['ClusterId']
  @NodePoolId = params['NodePoolId']
  @Name = params['Name']
  unless params['Labels'].nil?
    @Labels = []
    params['Labels'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @Labels << label_tmp
    end
  end
  unless params['Taints'].nil?
    @Taints = []
    params['Taints'].each do |i|
      taint_tmp = Taint.new
      taint_tmp.deserialize(i)
      @Taints << taint_tmp
    end
  end
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tagspecification_tmp = TagSpecification.new
      tagspecification_tmp.deserialize(i)
      @Tags << tagspecification_tmp
    end
  end
  @DeletionProtection = params['DeletionProtection']
  @Unschedulable = params['Unschedulable']
  unless params['Native'].nil?
    @Native = UpdateNativeNodePoolParam.new
    @Native.deserialize(params['Native'])
  end
  unless params['Annotations'].nil?
    @Annotations = []
    params['Annotations'].each do |i|
      annotation_tmp = Annotation.new
      annotation_tmp.deserialize(i)
      @Annotations << annotation_tmp
    end
  end
end