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.
1685 1686 1687 1688 1689 1690 |
# File 'lib/v20220501/models.rb', line 1685 def initialize(autoupgrade=nil, =nil, components=nil, maxunavailable=nil) @AutoUpgrade = autoupgrade @UpgradeOptions = @Components = components @MaxUnavailable = maxunavailable end |
Instance Attribute Details
#AutoUpgrade ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1683 1684 1685 |
# File 'lib/v20220501/models.rb', line 1683 def AutoUpgrade @AutoUpgrade end |
#Components ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1683 1684 1685 |
# File 'lib/v20220501/models.rb', line 1683 def Components @Components end |
#MaxUnavailable ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1683 1684 1685 |
# File 'lib/v20220501/models.rb', line 1683 def MaxUnavailable @MaxUnavailable end |
#UpgradeOptions ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1683 1684 1685 |
# File 'lib/v20220501/models.rb', line 1683 def UpgradeOptions @UpgradeOptions end |
Instance Method Details
#deserialize(params) ⇒ Object
1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 |
# File 'lib/v20220501/models.rb', line 1692 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 |