Class: TencentCloud::Tke::V20180525::ResourceUsage

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

集群资源使用量

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#DetailsObject

Parameters:

  • Name:

    资源类型

  • Usage:

    资源使用量

  • Details:

    资源使用详情



17634
17635
17636
# File 'lib/v20180525/models.rb', line 17634

def Details
  @Details
end

#NameObject

Parameters:

  • Name:

    资源类型

  • Usage:

    资源使用量

  • Details:

    资源使用详情



17634
17635
17636
# File 'lib/v20180525/models.rb', line 17634

def Name
  @Name
end

#UsageObject

Parameters:

  • Name:

    资源类型

  • Usage:

    资源使用量

  • Details:

    资源使用详情



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