Class: TencentCloud::Tke::V20180525::VirtualNodeSpec
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::VirtualNodeSpec
- Defined in:
- lib/v20180525/models.rb
Overview
超级节点
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(displayname = nil, subnetid = nil, tags = nil, quota = nil) ⇒ VirtualNodeSpec
constructor
A new instance of VirtualNodeSpec.
Constructor Details
#initialize(displayname = nil, subnetid = nil, tags = nil, quota = nil) ⇒ VirtualNodeSpec
Returns a new instance of VirtualNodeSpec.
21680 21681 21682 21683 21684 21685 |
# File 'lib/v20180525/models.rb', line 21680 def initialize(displayname=nil, subnetid=nil, =nil, quota=nil) @DisplayName = displayname @SubnetId = subnetid @Tags = @Quota = quota end |
Instance Attribute Details
#DisplayName ⇒ Object
21678 21679 21680 |
# File 'lib/v20180525/models.rb', line 21678 def DisplayName @DisplayName end |
#Quota ⇒ Object
21678 21679 21680 |
# File 'lib/v20180525/models.rb', line 21678 def Quota @Quota end |
#SubnetId ⇒ Object
21678 21679 21680 |
# File 'lib/v20180525/models.rb', line 21678 def SubnetId @SubnetId end |
#Tags ⇒ Object
21678 21679 21680 |
# File 'lib/v20180525/models.rb', line 21678 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 |
# File 'lib/v20180525/models.rb', line 21687 def deserialize(params) @DisplayName = params['DisplayName'] @SubnetId = params['SubnetId'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end unless params['Quota'].nil? @Quota = SuperNodeResource.new @Quota.deserialize(params['Quota']) end end |