Class: TencentCloud::Chc::V20230418::RackUsage

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

Overview

机架用量

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#RackIdObject

Parameters:

  • RackId:

    机架ID

  • UsedNum:

    已使用的机位数量

  • UnusedNum:

    空闲机位数量

  • RackShortName:

    机架简称

  • TotalNum:

    机位总数

  • UsedRate:

    机位使用率



3732
3733
3734
# File 'lib/v20230418/models.rb', line 3732

def RackId
  @RackId
end

#RackShortNameObject

Parameters:

  • RackId:

    机架ID

  • UsedNum:

    已使用的机位数量

  • UnusedNum:

    空闲机位数量

  • RackShortName:

    机架简称

  • TotalNum:

    机位总数

  • UsedRate:

    机位使用率



3732
3733
3734
# File 'lib/v20230418/models.rb', line 3732

def RackShortName
  @RackShortName
end

#TotalNumObject

Parameters:

  • RackId:

    机架ID

  • UsedNum:

    已使用的机位数量

  • UnusedNum:

    空闲机位数量

  • RackShortName:

    机架简称

  • TotalNum:

    机位总数

  • UsedRate:

    机位使用率



3732
3733
3734
# File 'lib/v20230418/models.rb', line 3732

def TotalNum
  @TotalNum
end

#UnusedNumObject

Parameters:

  • RackId:

    机架ID

  • UsedNum:

    已使用的机位数量

  • UnusedNum:

    空闲机位数量

  • RackShortName:

    机架简称

  • TotalNum:

    机位总数

  • UsedRate:

    机位使用率



3732
3733
3734
# File 'lib/v20230418/models.rb', line 3732

def UnusedNum
  @UnusedNum
end

#UsedNumObject

Parameters:

  • RackId:

    机架ID

  • UsedNum:

    已使用的机位数量

  • UnusedNum:

    空闲机位数量

  • RackShortName:

    机架简称

  • TotalNum:

    机位总数

  • UsedRate:

    机位使用率



3732
3733
3734
# File 'lib/v20230418/models.rb', line 3732

def UsedNum
  @UsedNum
end

#UsedRateObject

Parameters:

  • RackId:

    机架ID

  • UsedNum:

    已使用的机位数量

  • UnusedNum:

    空闲机位数量

  • RackShortName:

    机架简称

  • TotalNum:

    机位总数

  • UsedRate:

    机位使用率



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