Class: TencentCloud::Chc::V20230418::CreateMovingWorkOrderRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Chc::V20230418::CreateMovingWorkOrderRequest
- Defined in:
- lib/v20230418/models.rb
Overview
CreateMovingWorkOrder请求参数结构体
Instance Attribute Summary collapse
- #DeviceMovingList ⇒ Object
- #DeviceType ⇒ Object
- #IdcId ⇒ Object
- #Remark ⇒ Object
- #WithPowerOn ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(idcid = nil, devicetype = nil, withpoweron = nil, devicemovinglist = nil, remark = nil) ⇒ CreateMovingWorkOrderRequest
constructor
A new instance of CreateMovingWorkOrderRequest.
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
#DeviceMovingList ⇒ Object
301 302 303 |
# File 'lib/v20230418/models.rb', line 301 def DeviceMovingList @DeviceMovingList end |
#DeviceType ⇒ Object
301 302 303 |
# File 'lib/v20230418/models.rb', line 301 def DeviceType @DeviceType end |
#IdcId ⇒ Object
301 302 303 |
# File 'lib/v20230418/models.rb', line 301 def IdcId @IdcId end |
#Remark ⇒ Object
301 302 303 |
# File 'lib/v20230418/models.rb', line 301 def Remark @Remark end |
#WithPowerOn ⇒ Object
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 |