Class: TencentCloud::Emr::V20190103::PreferredSchedulingTerm
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Emr::V20190103::PreferredSchedulingTerm
- Defined in:
- lib/v20190103/models.rb
Overview
Pod容忍调度节点选择项
Instance Attribute Summary collapse
-
#Preference ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Weight ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(weight = nil, preference = nil) ⇒ PreferredSchedulingTerm
constructor
A new instance of PreferredSchedulingTerm.
Constructor Details
#initialize(weight = nil, preference = nil) ⇒ PreferredSchedulingTerm
Returns a new instance of PreferredSchedulingTerm.
11626 11627 11628 11629 |
# File 'lib/v20190103/models.rb', line 11626 def initialize(weight=nil, preference=nil) @Weight = weight @Preference = preference end |
Instance Attribute Details
#Preference ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11624 11625 11626 |
# File 'lib/v20190103/models.rb', line 11624 def Preference @Preference end |
#Weight ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11624 11625 11626 |
# File 'lib/v20190103/models.rb', line 11624 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
11631 11632 11633 11634 11635 11636 11637 |
# File 'lib/v20190103/models.rb', line 11631 def deserialize(params) @Weight = params['Weight'] unless params['Preference'].nil? @Preference = NodeSelectorTerm.new @Preference.deserialize(params['Preference']) end end |