Class: TencentCloud::Tke::V20180525::ResourceUsage
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::ResourceUsage
- Defined in:
- lib/v20180525/models.rb
Overview
集群资源使用量
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, usage = nil, details = nil) ⇒ ResourceUsage
constructor
A new instance of ResourceUsage.
Constructor Details
#initialize(name = nil, usage = nil, details = nil) ⇒ ResourceUsage
Returns a new instance of ResourceUsage.
17636 17637 17638 17639 17640 |
# File 'lib/v20180525/models.rb', line 17636 def initialize(name=nil, usage=nil, details=nil) @Name = name @Usage = usage @Details = details end |
Instance Attribute Details
#Details ⇒ Object
17634 17635 17636 |
# File 'lib/v20180525/models.rb', line 17634 def Details @Details end |
#Name ⇒ Object
17634 17635 17636 |
# File 'lib/v20180525/models.rb', line 17634 def Name @Name end |
#Usage ⇒ Object
17634 17635 17636 |
# File 'lib/v20180525/models.rb', line 17634 def Usage @Usage end |
Instance Method Details
#deserialize(params) ⇒ Object
17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 |
# File 'lib/v20180525/models.rb', line 17642 def deserialize(params) @Name = params['Name'] @Usage = params['Usage'] unless params['Details'].nil? @Details = [] params['Details'].each do |i| resourceusagedetail_tmp = ResourceUsageDetail.new resourceusagedetail_tmp.deserialize(i) @Details << resourceusagedetail_tmp end end end |