Class: TencentCloud::Chc::V20230418::RackUsage
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Chc::V20230418::RackUsage
- Defined in:
- lib/v20230418/models.rb
Overview
机架用量
Instance Attribute Summary collapse
- #RackId ⇒ Object
- #RackShortName ⇒ Object
- #TotalNum ⇒ Object
- #UnusedNum ⇒ Object
- #UsedNum ⇒ Object
- #UsedRate ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rackid = nil, usednum = nil, unusednum = nil, rackshortname = nil, totalnum = nil, usedrate = nil) ⇒ RackUsage
constructor
A new instance of RackUsage.
Constructor Details
#initialize(rackid = nil, usednum = nil, unusednum = nil, rackshortname = nil, totalnum = nil, usedrate = nil) ⇒ RackUsage
Returns a new instance of RackUsage.
3734 3735 3736 3737 3738 3739 3740 3741 |
# File 'lib/v20230418/models.rb', line 3734 def initialize(rackid=nil, usednum=nil, unusednum=nil, rackshortname=nil, totalnum=nil, usedrate=nil) @RackId = rackid @UsedNum = usednum @UnusedNum = unusednum @RackShortName = rackshortname @TotalNum = totalnum @UsedRate = usedrate end |
Instance Attribute Details
#RackId ⇒ Object
3732 3733 3734 |
# File 'lib/v20230418/models.rb', line 3732 def RackId @RackId end |
#RackShortName ⇒ Object
3732 3733 3734 |
# File 'lib/v20230418/models.rb', line 3732 def RackShortName @RackShortName end |
#TotalNum ⇒ Object
3732 3733 3734 |
# File 'lib/v20230418/models.rb', line 3732 def TotalNum @TotalNum end |
#UnusedNum ⇒ Object
3732 3733 3734 |
# File 'lib/v20230418/models.rb', line 3732 def UnusedNum @UnusedNum end |
#UsedNum ⇒ Object
3732 3733 3734 |
# File 'lib/v20230418/models.rb', line 3732 def UsedNum @UsedNum end |
#UsedRate ⇒ Object
3732 3733 3734 |
# File 'lib/v20230418/models.rb', line 3732 def UsedRate @UsedRate end |
Instance Method Details
#deserialize(params) ⇒ Object
3743 3744 3745 3746 3747 3748 3749 3750 |
# File 'lib/v20230418/models.rb', line 3743 def deserialize(params) @RackId = params['RackId'] @UsedNum = params['UsedNum'] @UnusedNum = params['UnusedNum'] @RackShortName = params['RackShortName'] @TotalNum = params['TotalNum'] @UsedRate = params['UsedRate'] end |