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.
1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 |
# File 'lib/v20220501/models.rb', line 1883 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
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def Annotations @Annotations end |
#ClusterId ⇒ Object
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def DeletionProtection @DeletionProtection end |
#Labels ⇒ Object
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def Labels @Labels end |
#Name ⇒ Object
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def Name @Name end |
#Native ⇒ Object
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def Native @Native end |
#NodePoolId ⇒ Object
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def NodePoolId @NodePoolId end |
#Tags ⇒ Object
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def Tags @Tags end |
#Taints ⇒ Object
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def Taints @Taints end |
#Unschedulable ⇒ Object
1881 1882 1883 |
# File 'lib/v20220501/models.rb', line 1881 def Unschedulable @Unschedulable end |
Instance Method Details
#deserialize(params) ⇒ Object
1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 |
# File 'lib/v20220501/models.rb', line 1896 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 |