Class: TencentCloud::Tke::V20220501::MachineUpgradeSettings
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20220501::MachineUpgradeSettings
- Defined in:
- lib/v20220501/models.rb
Overview
托管节点池自动升级配置
Instance Attribute Summary collapse
-
#AutoUpgrade ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Components ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#MaxUnavailable ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#UpgradeOptions ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(autoupgrade = nil, upgradeoptions = nil, components = nil, maxunavailable = nil) ⇒ MachineUpgradeSettings
constructor
A new instance of MachineUpgradeSettings.
Constructor Details
#initialize(autoupgrade = nil, upgradeoptions = nil, components = nil, maxunavailable = nil) ⇒ MachineUpgradeSettings
Returns a new instance of MachineUpgradeSettings.
1874 1875 1876 1877 1878 1879 |
# File 'lib/v20220501/models.rb', line 1874 def initialize(autoupgrade=nil, =nil, components=nil, maxunavailable=nil) @AutoUpgrade = autoupgrade @UpgradeOptions = @Components = components @MaxUnavailable = maxunavailable end |
Instance Attribute Details
#AutoUpgrade ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1872 1873 1874 |
# File 'lib/v20220501/models.rb', line 1872 def AutoUpgrade @AutoUpgrade end |
#Components ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1872 1873 1874 |
# File 'lib/v20220501/models.rb', line 1872 def Components @Components end |
#MaxUnavailable ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1872 1873 1874 |
# File 'lib/v20220501/models.rb', line 1872 def MaxUnavailable @MaxUnavailable end |
#UpgradeOptions ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1872 1873 1874 |
# File 'lib/v20220501/models.rb', line 1872 def UpgradeOptions @UpgradeOptions end |
Instance Method Details
#deserialize(params) ⇒ Object
1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'lib/v20220501/models.rb', line 1881 def deserialize(params) @AutoUpgrade = params['AutoUpgrade'] unless params['UpgradeOptions'].nil? @UpgradeOptions = AutoUpgradeOptions.new @UpgradeOptions.deserialize(params['UpgradeOptions']) end @Components = params['Components'] unless params['MaxUnavailable'].nil? @MaxUnavailable = IntOrString.new @MaxUnavailable.deserialize(params['MaxUnavailable']) end end |