Class: TencentCloud::Tke::V20220501::ModifyNodePoolRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20220501::ModifyNodePoolRequest
- Defined in:
- lib/v20220501/models.rb
Overview
ModifyNodePool请求参数结构体
Instance Attribute Summary collapse
- #Annotations ⇒ Object
- #ClusterId ⇒ Object
- #DeletionProtection ⇒ Object
- #Labels ⇒ Object
- #Name ⇒ Object
- #Native ⇒ Object
- #NodePoolId ⇒ Object
- #Tags ⇒ Object
- #Taints ⇒ Object
- #Unschedulable ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, nodepoolid = nil, name = nil, labels = nil, taints = nil, tags = nil, deletionprotection = nil, unschedulable = nil, native = nil, annotations = nil) ⇒ ModifyNodePoolRequest
constructor
A new instance of ModifyNodePoolRequest.
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, =nil, deletionprotection=nil, unschedulable=nil, native=nil, annotations=nil) @ClusterId = clusterid @NodePoolId = nodepoolid @Name = name @Labels = labels @Taints = taints @Tags = @DeletionProtection = deletionprotection @Unschedulable = unschedulable @Native = native @Annotations = annotations end |
Instance Attribute Details
#Annotations ⇒ Object
1823 1824 1825 |
# File 'lib/v20220501/models.rb', line 1823 def Annotations @Annotations end |
#ClusterId ⇒ Object
1823 1824 1825 |
# File 'lib/v20220501/models.rb', line 1823 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
1823 1824 1825 |
# File 'lib/v20220501/models.rb', line 1823 def DeletionProtection @DeletionProtection end |
#Labels ⇒ Object
1823 1824 1825 |
# File 'lib/v20220501/models.rb', line 1823 def Labels @Labels end |
#Name ⇒ Object
1823 1824 1825 |
# File 'lib/v20220501/models.rb', line 1823 def Name @Name end |
#Native ⇒ Object
1823 1824 1825 |
# File 'lib/v20220501/models.rb', line 1823 def Native @Native end |
#NodePoolId ⇒ Object
1823 1824 1825 |
# File 'lib/v20220501/models.rb', line 1823 def NodePoolId @NodePoolId end |
#Tags ⇒ Object
1823 1824 1825 |
# File 'lib/v20220501/models.rb', line 1823 def Tags @Tags end |
#Taints ⇒ Object
1823 1824 1825 |
# File 'lib/v20220501/models.rb', line 1823 def Taints @Taints end |
#Unschedulable ⇒ Object
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.new .deserialize(i) @Tags << 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 |