Class: TencentCloud::Chc::V20230418::Device
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Chc::V20230418::Device
- Defined in:
- lib/v20230418/models.rb
Overview
服务器信息
Instance Attribute Summary collapse
- #AssetId ⇒ Object
- #DeviceType ⇒ Object
- #HardwareMemo ⇒ Object
- #IdcId ⇒ Object
- #IdcName ⇒ Object
- #IdcUnitId ⇒ Object
- #IdcUnitName ⇒ Object
- #Ip ⇒ Object
- #Manufacturer ⇒ Object
- #ModelVersion ⇒ Object
- #OnshelfDate ⇒ Object
- #PositionCode ⇒ Object
- #PowerOnTime ⇒ Object
- #RackId ⇒ Object
- #RackName ⇒ Object
- #ServerTypeId ⇒ Object
- #Sn ⇒ Object
- #Status ⇒ Object
- #SvrIsSpecial ⇒ Object
- #TypeName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sn = nil, modelversion = nil, assetid = nil, svrisspecial = nil, ip = nil, idcname = nil, idcid = nil, idcunitid = nil, idcunitname = nil, rackid = nil, servertypeid = nil, rackname = nil, positioncode = nil, status = nil, powerontime = nil, onshelfdate = nil, devicetype = nil, manufacturer = nil, typename = nil, hardwarememo = nil) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(sn = nil, modelversion = nil, assetid = nil, svrisspecial = nil, ip = nil, idcname = nil, idcid = nil, idcunitid = nil, idcunitname = nil, rackid = nil, servertypeid = nil, rackname = nil, positioncode = nil, status = nil, powerontime = nil, onshelfdate = nil, devicetype = nil, manufacturer = nil, typename = nil, hardwarememo = nil) ⇒ Device
Returns a new instance of Device.
2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 |
# File 'lib/v20230418/models.rb', line 2508 def initialize(sn=nil, modelversion=nil, assetid=nil, svrisspecial=nil, ip=nil, idcname=nil, idcid=nil, idcunitid=nil, idcunitname=nil, rackid=nil, servertypeid=nil, rackname=nil, positioncode=nil, status=nil, powerontime=nil, onshelfdate=nil, devicetype=nil, manufacturer=nil, typename=nil, hardwarememo=nil) @Sn = sn @ModelVersion = modelversion @AssetId = assetid @SvrIsSpecial = svrisspecial @Ip = ip @IdcName = idcname @IdcId = idcid @IdcUnitId = idcunitid @IdcUnitName = idcunitname @RackId = rackid @ServerTypeId = servertypeid @RackName = rackname @PositionCode = positioncode @Status = status @PowerOnTime = powerontime @OnshelfDate = onshelfdate @DeviceType = devicetype @Manufacturer = manufacturer @TypeName = typename @HardwareMemo = hardwarememo end |
Instance Attribute Details
#AssetId ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def AssetId @AssetId end |
#DeviceType ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def DeviceType @DeviceType end |
#HardwareMemo ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def HardwareMemo @HardwareMemo end |
#IdcId ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def IdcId @IdcId end |
#IdcName ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def IdcName @IdcName end |
#IdcUnitId ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def IdcUnitId @IdcUnitId end |
#IdcUnitName ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def IdcUnitName @IdcUnitName end |
#Ip ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def Ip @Ip end |
#Manufacturer ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def Manufacturer @Manufacturer end |
#ModelVersion ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def ModelVersion @ModelVersion end |
#OnshelfDate ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def OnshelfDate @OnshelfDate end |
#PositionCode ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def PositionCode @PositionCode end |
#PowerOnTime ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def PowerOnTime @PowerOnTime end |
#RackId ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def RackId @RackId end |
#RackName ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def RackName @RackName end |
#ServerTypeId ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def ServerTypeId @ServerTypeId end |
#Sn ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def Sn @Sn end |
#Status ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def Status @Status end |
#SvrIsSpecial ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def SvrIsSpecial @SvrIsSpecial end |
#TypeName ⇒ Object
2506 2507 2508 |
# File 'lib/v20230418/models.rb', line 2506 def TypeName @TypeName end |
Instance Method Details
#deserialize(params) ⇒ Object
2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 |
# File 'lib/v20230418/models.rb', line 2531 def deserialize(params) @Sn = params['Sn'] @ModelVersion = params['ModelVersion'] @AssetId = params['AssetId'] @SvrIsSpecial = params['SvrIsSpecial'] @Ip = params['Ip'] @IdcName = params['IdcName'] @IdcId = params['IdcId'] @IdcUnitId = params['IdcUnitId'] @IdcUnitName = params['IdcUnitName'] @RackId = params['RackId'] @ServerTypeId = params['ServerTypeId'] @RackName = params['RackName'] @PositionCode = params['PositionCode'] @Status = params['Status'] @PowerOnTime = params['PowerOnTime'] @OnshelfDate = params['OnshelfDate'] @DeviceType = params['DeviceType'] @Manufacturer = params['Manufacturer'] @TypeName = params['TypeName'] @HardwareMemo = params['HardwareMemo'] end |