Class: TencentCloud::Chc::V20230418::CreatePowerOffWorkOrderRequest

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

Overview

CreatePowerOffWorkOrder请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(idcid = nil, devicetype = nil, ispoweroffconfirm = nil, devicesnlist = nil, poweroffconfirminfo = nil, remark = nil) ⇒ CreatePowerOffWorkOrderRequest

Returns a new instance of CreatePowerOffWorkOrderRequest.



499
500
501
502
503
504
505
506
# File 'lib/v20230418/models.rb', line 499

def initialize(idcid=nil, devicetype=nil, ispoweroffconfirm=nil, devicesnlist=nil, poweroffconfirminfo=nil, remark=nil)
  @IdcId = idcid
  @DeviceType = devicetype
  @IsPowerOffConfirm = ispoweroffconfirm
  @DeviceSnList = devicesnlist
  @PowerOffConfirmInfo = poweroffconfirminfo
  @Remark = remark
end

Instance Attribute Details

#DeviceSnListObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • IsPowerOffConfirm:

    关电确认,1.授权时关电 2.关电前需要确认

  • DeviceSnList:

    设备sn列表

  • PowerOffConfirmInfo:

    关电前需要确认时必填

  • Remark:

    备注



497
498
499
# File 'lib/v20230418/models.rb', line 497

def DeviceSnList
  @DeviceSnList
end

#DeviceTypeObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • IsPowerOffConfirm:

    关电确认,1.授权时关电 2.关电前需要确认

  • DeviceSnList:

    设备sn列表

  • PowerOffConfirmInfo:

    关电前需要确认时必填

  • Remark:

    备注



497
498
499
# File 'lib/v20230418/models.rb', line 497

def DeviceType
  @DeviceType
end

#IdcIdObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • IsPowerOffConfirm:

    关电确认,1.授权时关电 2.关电前需要确认

  • DeviceSnList:

    设备sn列表

  • PowerOffConfirmInfo:

    关电前需要确认时必填

  • Remark:

    备注



497
498
499
# File 'lib/v20230418/models.rb', line 497

def IdcId
  @IdcId
end

#IsPowerOffConfirmObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • IsPowerOffConfirm:

    关电确认,1.授权时关电 2.关电前需要确认

  • DeviceSnList:

    设备sn列表

  • PowerOffConfirmInfo:

    关电前需要确认时必填

  • Remark:

    备注



497
498
499
# File 'lib/v20230418/models.rb', line 497

def IsPowerOffConfirm
  @IsPowerOffConfirm
end

#PowerOffConfirmInfoObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • IsPowerOffConfirm:

    关电确认,1.授权时关电 2.关电前需要确认

  • DeviceSnList:

    设备sn列表

  • PowerOffConfirmInfo:

    关电前需要确认时必填

  • Remark:

    备注



497
498
499
# File 'lib/v20230418/models.rb', line 497

def PowerOffConfirmInfo
  @PowerOffConfirmInfo
end

#RemarkObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • IsPowerOffConfirm:

    关电确认,1.授权时关电 2.关电前需要确认

  • DeviceSnList:

    设备sn列表

  • PowerOffConfirmInfo:

    关电前需要确认时必填

  • Remark:

    备注



497
498
499
# File 'lib/v20230418/models.rb', line 497

def Remark
  @Remark
end

Instance Method Details

#deserialize(params) ⇒ Object



508
509
510
511
512
513
514
515
516
517
518
# File 'lib/v20230418/models.rb', line 508

def deserialize(params)
  @IdcId = params['IdcId']
  @DeviceType = params['DeviceType']
  @IsPowerOffConfirm = params['IsPowerOffConfirm']
  @DeviceSnList = params['DeviceSnList']
  unless params['PowerOffConfirmInfo'].nil?
    @PowerOffConfirmInfo = PowerOffConfirm.new
    @PowerOffConfirmInfo.deserialize(params['PowerOffConfirmInfo'])
  end
  @Remark = params['Remark']
end