Class: TencentCloud::Chc::V20230418::CreateMovingWorkOrderRequest

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

Overview

CreateMovingWorkOrder请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(idcid = nil, devicetype = nil, withpoweron = nil, devicemovinglist = nil, remark = nil) ⇒ CreateMovingWorkOrderRequest

Returns a new instance of CreateMovingWorkOrderRequest.



303
304
305
306
307
308
309
# File 'lib/v20230418/models.rb', line 303

def initialize(idcid=nil, devicetype=nil, withpoweron=nil, devicemovinglist=nil, remark=nil)
  @IdcId = idcid
  @DeviceType = devicetype
  @WithPowerOn = withpoweron
  @DeviceMovingList = devicemovinglist
  @Remark = remark
end

Instance Attribute Details

#DeviceMovingListObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • WithPowerOn:

    上架后是否开电

  • DeviceMovingList:

    设备搬迁信息列表

  • Remark:

    备注



301
302
303
# File 'lib/v20230418/models.rb', line 301

def DeviceMovingList
  @DeviceMovingList
end

#DeviceTypeObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • WithPowerOn:

    上架后是否开电

  • DeviceMovingList:

    设备搬迁信息列表

  • Remark:

    备注



301
302
303
# File 'lib/v20230418/models.rb', line 301

def DeviceType
  @DeviceType
end

#IdcIdObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • WithPowerOn:

    上架后是否开电

  • DeviceMovingList:

    设备搬迁信息列表

  • Remark:

    备注



301
302
303
# File 'lib/v20230418/models.rb', line 301

def IdcId
  @IdcId
end

#RemarkObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • WithPowerOn:

    上架后是否开电

  • DeviceMovingList:

    设备搬迁信息列表

  • Remark:

    备注



301
302
303
# File 'lib/v20230418/models.rb', line 301

def Remark
  @Remark
end

#WithPowerOnObject

Parameters:

  • IdcId:

    机房id

  • DeviceType:

    设备类型,server, netDevice

  • WithPowerOn:

    上架后是否开电

  • DeviceMovingList:

    设备搬迁信息列表

  • Remark:

    备注



301
302
303
# File 'lib/v20230418/models.rb', line 301

def WithPowerOn
  @WithPowerOn
end

Instance Method Details

#deserialize(params) ⇒ Object



311
312
313
314
315
316
317
318
319
320
321
322
323
324
# File 'lib/v20230418/models.rb', line 311

def deserialize(params)
  @IdcId = params['IdcId']
  @DeviceType = params['DeviceType']
  @WithPowerOn = params['WithPowerOn']
  unless params['DeviceMovingList'].nil?
    @DeviceMovingList = []
    params['DeviceMovingList'].each do |i|
      devicerackon_tmp = DeviceRackOn.new
      devicerackon_tmp.deserialize(i)
      @DeviceMovingList << devicerackon_tmp
    end
  end
  @Remark = params['Remark']
end