tencentcloud-sdk-chc 3.0.1026

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3896 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Chc
19
+ module V20230418
20
+ # 已通过设备型号评估的型号信息
21
+ class AvailableModelVersion < TencentCloud::Common::AbstractModel
22
+ # @param ModelVersion: 带有版本号的设备型号
23
+ # @type ModelVersion: String
24
+ # @param DevHeight: 设备高度
25
+ # @type DevHeight: String
26
+ # @param DeviceType: 设备类型,server 服务器,netDevice 网络设备
27
+ # @type DeviceType: String
28
+
29
+ attr_accessor :ModelVersion, :DevHeight, :DeviceType
30
+
31
+ def initialize(modelversion=nil, devheight=nil, devicetype=nil)
32
+ @ModelVersion = modelversion
33
+ @DevHeight = devheight
34
+ @DeviceType = devicetype
35
+ end
36
+
37
+ def deserialize(params)
38
+ @ModelVersion = params['ModelVersion']
39
+ @DevHeight = params['DevHeight']
40
+ @DeviceType = params['DeviceType']
41
+ end
42
+ end
43
+
44
+ # 围笼
45
+ class Cage < TencentCloud::Common::AbstractModel
46
+ # @param CageName: 围笼名称
47
+ # @type CageName: String
48
+ # @param CheckerSet: 围笼审核人账号ID
49
+ # @type CheckerSet: Array
50
+
51
+ attr_accessor :CageName, :CheckerSet
52
+
53
+ def initialize(cagename=nil, checkerset=nil)
54
+ @CageName = cagename
55
+ @CheckerSet = checkerset
56
+ end
57
+
58
+ def deserialize(params)
59
+ @CageName = params['CageName']
60
+ @CheckerSet = params['CheckerSet']
61
+ end
62
+ end
63
+
64
+ # 园区信息
65
+ class Campus < TencentCloud::Common::AbstractModel
66
+ # @param CampusId: 园区ID
67
+ # @type CampusId: Integer
68
+ # @param CampusName: 园区名称
69
+ # @type CampusName: String
70
+
71
+ attr_accessor :CampusId, :CampusName
72
+
73
+ def initialize(campusid=nil, campusname=nil)
74
+ @CampusId = campusid
75
+ @CampusName = campusname
76
+ end
77
+
78
+ def deserialize(params)
79
+ @CampusId = params['CampusId']
80
+ @CampusName = params['CampusName']
81
+ end
82
+ end
83
+
84
+ # 通用服务的基本信息
85
+ class CommonServiceBaseInfo < TencentCloud::Common::AbstractModel
86
+ # @param IdcName: 机房名称
87
+ # @type IdcName: String
88
+ # @param ContactName: 业务联系人
89
+ # @type ContactName: String
90
+ # @param ContactPhone: 联系人电话
91
+ # @type ContactPhone: String
92
+ # @param Instructions: 操作说明
93
+ # @type Instructions: String
94
+ # @param ServiceLevel: 1 、2 、3 分别代表 L1、L2、L3
95
+ # @type ServiceLevel: Integer
96
+ # @param PreAuthorization: 操作预授权
97
+ # @type PreAuthorization: Boolean
98
+
99
+ attr_accessor :IdcName, :ContactName, :ContactPhone, :Instructions, :ServiceLevel, :PreAuthorization
100
+
101
+ def initialize(idcname=nil, contactname=nil, contactphone=nil, instructions=nil, servicelevel=nil, preauthorization=nil)
102
+ @IdcName = idcname
103
+ @ContactName = contactname
104
+ @ContactPhone = contactphone
105
+ @Instructions = instructions
106
+ @ServiceLevel = servicelevel
107
+ @PreAuthorization = preauthorization
108
+ end
109
+
110
+ def deserialize(params)
111
+ @IdcName = params['IdcName']
112
+ @ContactName = params['ContactName']
113
+ @ContactPhone = params['ContactPhone']
114
+ @Instructions = params['Instructions']
115
+ @ServiceLevel = params['ServiceLevel']
116
+ @PreAuthorization = params['PreAuthorization']
117
+ end
118
+ end
119
+
120
+ # ConfirmCommonServiceWorkOrder请求参数结构体
121
+ class ConfirmCommonServiceWorkOrderRequest < TencentCloud::Common::AbstractModel
122
+ # @param OrderId: 工单ID
123
+ # @type OrderId: String
124
+
125
+ attr_accessor :OrderId
126
+
127
+ def initialize(orderid=nil)
128
+ @OrderId = orderid
129
+ end
130
+
131
+ def deserialize(params)
132
+ @OrderId = params['OrderId']
133
+ end
134
+ end
135
+
136
+ # ConfirmCommonServiceWorkOrder返回参数结构体
137
+ class ConfirmCommonServiceWorkOrderResponse < TencentCloud::Common::AbstractModel
138
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
139
+ # @type RequestId: String
140
+
141
+ attr_accessor :RequestId
142
+
143
+ def initialize(requestid=nil)
144
+ @RequestId = requestid
145
+ end
146
+
147
+ def deserialize(params)
148
+ @RequestId = params['RequestId']
149
+ end
150
+ end
151
+
152
+ # CreateCommonServiceWorkOrder请求参数结构体
153
+ class CreateCommonServiceWorkOrderRequest < TencentCloud::Common::AbstractModel
154
+ # @param DevicePositionSet: 设备及位置信息列表
155
+ # @type DevicePositionSet: Array
156
+ # @param ServiceLevel: 服务级别,只支持传入 1、2、3,分别对应 L1、L2、L3
157
+ # @type ServiceLevel: Integer
158
+ # @param PreAuthorization: 操作预授权
159
+ # @type PreAuthorization: Boolean
160
+ # @param ContactName: 业务联系人
161
+ # @type ContactName: String
162
+ # @param ContactPhone: 联系人电话
163
+ # @type ContactPhone: String
164
+ # @param DeviceType: 设备类型 server 服务器,netDevice 网络设备
165
+ # @type DeviceType: String
166
+ # @param Instructions: 操作说明
167
+ # @type Instructions: String
168
+
169
+ attr_accessor :DevicePositionSet, :ServiceLevel, :PreAuthorization, :ContactName, :ContactPhone, :DeviceType, :Instructions
170
+
171
+ def initialize(devicepositionset=nil, servicelevel=nil, preauthorization=nil, contactname=nil, contactphone=nil, devicetype=nil, instructions=nil)
172
+ @DevicePositionSet = devicepositionset
173
+ @ServiceLevel = servicelevel
174
+ @PreAuthorization = preauthorization
175
+ @ContactName = contactname
176
+ @ContactPhone = contactphone
177
+ @DeviceType = devicetype
178
+ @Instructions = instructions
179
+ end
180
+
181
+ def deserialize(params)
182
+ unless params['DevicePositionSet'].nil?
183
+ @DevicePositionSet = []
184
+ params['DevicePositionSet'].each do |i|
185
+ deviceposition_tmp = DevicePosition.new
186
+ deviceposition_tmp.deserialize(i)
187
+ @DevicePositionSet << deviceposition_tmp
188
+ end
189
+ end
190
+ @ServiceLevel = params['ServiceLevel']
191
+ @PreAuthorization = params['PreAuthorization']
192
+ @ContactName = params['ContactName']
193
+ @ContactPhone = params['ContactPhone']
194
+ @DeviceType = params['DeviceType']
195
+ @Instructions = params['Instructions']
196
+ end
197
+ end
198
+
199
+ # CreateCommonServiceWorkOrder返回参数结构体
200
+ class CreateCommonServiceWorkOrderResponse < TencentCloud::Common::AbstractModel
201
+ # @param WorkOrderSet: 创建的工单信息
202
+ # @type WorkOrderSet: Array
203
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
204
+ # @type RequestId: String
205
+
206
+ attr_accessor :WorkOrderSet, :RequestId
207
+
208
+ def initialize(workorderset=nil, requestid=nil)
209
+ @WorkOrderSet = workorderset
210
+ @RequestId = requestid
211
+ end
212
+
213
+ def deserialize(params)
214
+ unless params['WorkOrderSet'].nil?
215
+ @WorkOrderSet = []
216
+ params['WorkOrderSet'].each do |i|
217
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
218
+ workordertinyinfo_tmp.deserialize(i)
219
+ @WorkOrderSet << workordertinyinfo_tmp
220
+ end
221
+ end
222
+ @RequestId = params['RequestId']
223
+ end
224
+ end
225
+
226
+ # CreateModelEvaluationWorkOrder请求参数结构体
227
+ class CreateModelEvaluationWorkOrderRequest < TencentCloud::Common::AbstractModel
228
+ # @param ModelSet: 设备名称及型号
229
+ # @type ModelSet: Array
230
+ # @param CampusId: 园区ID
231
+ # @type CampusId: Integer
232
+ # @param DeviceType: 只支持传入 server 和 netDevice
233
+ # @type DeviceType: String
234
+ # @param Remark: 备注
235
+ # @type Remark: String
236
+
237
+ attr_accessor :ModelSet, :CampusId, :DeviceType, :Remark
238
+
239
+ def initialize(modelset=nil, campusid=nil, devicetype=nil, remark=nil)
240
+ @ModelSet = modelset
241
+ @CampusId = campusid
242
+ @DeviceType = devicetype
243
+ @Remark = remark
244
+ end
245
+
246
+ def deserialize(params)
247
+ unless params['ModelSet'].nil?
248
+ @ModelSet = []
249
+ params['ModelSet'].each do |i|
250
+ modelversion_tmp = ModelVersion.new
251
+ modelversion_tmp.deserialize(i)
252
+ @ModelSet << modelversion_tmp
253
+ end
254
+ end
255
+ @CampusId = params['CampusId']
256
+ @DeviceType = params['DeviceType']
257
+ @Remark = params['Remark']
258
+ end
259
+ end
260
+
261
+ # CreateModelEvaluationWorkOrder返回参数结构体
262
+ class CreateModelEvaluationWorkOrderResponse < TencentCloud::Common::AbstractModel
263
+ # @param WorkOrderSet: 创建的工单信息
264
+ # @type WorkOrderSet: Array
265
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
266
+ # @type RequestId: String
267
+
268
+ attr_accessor :WorkOrderSet, :RequestId
269
+
270
+ def initialize(workorderset=nil, requestid=nil)
271
+ @WorkOrderSet = workorderset
272
+ @RequestId = requestid
273
+ end
274
+
275
+ def deserialize(params)
276
+ unless params['WorkOrderSet'].nil?
277
+ @WorkOrderSet = []
278
+ params['WorkOrderSet'].each do |i|
279
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
280
+ workordertinyinfo_tmp.deserialize(i)
281
+ @WorkOrderSet << workordertinyinfo_tmp
282
+ end
283
+ end
284
+ @RequestId = params['RequestId']
285
+ end
286
+ end
287
+
288
+ # CreateMovingWorkOrder请求参数结构体
289
+ class CreateMovingWorkOrderRequest < TencentCloud::Common::AbstractModel
290
+ # @param IdcId: 机房id
291
+ # @type IdcId: Integer
292
+ # @param DeviceType: 设备类型,server, netDevice
293
+ # @type DeviceType: String
294
+ # @param WithPowerOn: 上架后是否开电
295
+ # @type WithPowerOn: Boolean
296
+ # @param DeviceMovingList: 设备搬迁信息列表
297
+ # @type DeviceMovingList: Array
298
+ # @param Remark: 备注
299
+ # @type Remark: String
300
+
301
+ attr_accessor :IdcId, :DeviceType, :WithPowerOn, :DeviceMovingList, :Remark
302
+
303
+ def initialize(idcid=nil, devicetype=nil, withpoweron=nil, devicemovinglist=nil, remark=nil)
304
+ @IdcId = idcid
305
+ @DeviceType = devicetype
306
+ @WithPowerOn = withpoweron
307
+ @DeviceMovingList = devicemovinglist
308
+ @Remark = remark
309
+ end
310
+
311
+ def deserialize(params)
312
+ @IdcId = params['IdcId']
313
+ @DeviceType = params['DeviceType']
314
+ @WithPowerOn = params['WithPowerOn']
315
+ unless params['DeviceMovingList'].nil?
316
+ @DeviceMovingList = []
317
+ params['DeviceMovingList'].each do |i|
318
+ devicerackon_tmp = DeviceRackOn.new
319
+ devicerackon_tmp.deserialize(i)
320
+ @DeviceMovingList << devicerackon_tmp
321
+ end
322
+ end
323
+ @Remark = params['Remark']
324
+ end
325
+ end
326
+
327
+ # CreateMovingWorkOrder返回参数结构体
328
+ class CreateMovingWorkOrderResponse < TencentCloud::Common::AbstractModel
329
+ # @param WorkOrderSet: 创建的工单信息
330
+ # @type WorkOrderSet: Array
331
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
332
+ # @type RequestId: String
333
+
334
+ attr_accessor :WorkOrderSet, :RequestId
335
+
336
+ def initialize(workorderset=nil, requestid=nil)
337
+ @WorkOrderSet = workorderset
338
+ @RequestId = requestid
339
+ end
340
+
341
+ def deserialize(params)
342
+ unless params['WorkOrderSet'].nil?
343
+ @WorkOrderSet = []
344
+ params['WorkOrderSet'].each do |i|
345
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
346
+ workordertinyinfo_tmp.deserialize(i)
347
+ @WorkOrderSet << workordertinyinfo_tmp
348
+ end
349
+ end
350
+ @RequestId = params['RequestId']
351
+ end
352
+ end
353
+
354
+ # CreateNetDeviceModel请求参数结构体
355
+ class CreateNetDeviceModelRequest < TencentCloud::Common::AbstractModel
356
+ # @param ModelDetail: 网络设备型号
357
+ # @type ModelDetail: :class:`Tencentcloud::Chc.v20230418.models.NetDeviceModel`
358
+
359
+ attr_accessor :ModelDetail
360
+
361
+ def initialize(modeldetail=nil)
362
+ @ModelDetail = modeldetail
363
+ end
364
+
365
+ def deserialize(params)
366
+ unless params['ModelDetail'].nil?
367
+ @ModelDetail = NetDeviceModel.new
368
+ @ModelDetail.deserialize(params['ModelDetail'])
369
+ end
370
+ end
371
+ end
372
+
373
+ # CreateNetDeviceModel返回参数结构体
374
+ class CreateNetDeviceModelResponse < TencentCloud::Common::AbstractModel
375
+ # @param DevModel: 型号名称
376
+ # @type DevModel: String
377
+ # @param Version: 版本号
378
+ # @type Version: String
379
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
380
+ # @type RequestId: String
381
+
382
+ attr_accessor :DevModel, :Version, :RequestId
383
+
384
+ def initialize(devmodel=nil, version=nil, requestid=nil)
385
+ @DevModel = devmodel
386
+ @Version = version
387
+ @RequestId = requestid
388
+ end
389
+
390
+ def deserialize(params)
391
+ @DevModel = params['DevModel']
392
+ @Version = params['Version']
393
+ @RequestId = params['RequestId']
394
+ end
395
+ end
396
+
397
+ # CreatePersonnelVisitWorkOrder请求参数结构体
398
+ class CreatePersonnelVisitWorkOrderRequest < TencentCloud::Common::AbstractModel
399
+ # @param PersonnelSet: 到访人员信息
400
+ # @type PersonnelSet: Array
401
+ # @param IdcId: 机房 ID
402
+ # @type IdcId: Integer
403
+ # @param IdcUnitIdSet: 机房管理单元列表
404
+ # @type IdcUnitIdSet: Array
405
+ # @param EnterStartTime: 到访开始时间
406
+ # @type EnterStartTime: String
407
+ # @param EnterEndTime: 到访结束时间
408
+ # @type EnterEndTime: String
409
+ # @param VisitReason: 到访原因,映射关系:IT_OPERATION IT运维 OTHER 其他
410
+ # @type VisitReason: Array
411
+ # @param VisitRemark: 到访说明
412
+ # @type VisitRemark: String
413
+
414
+ attr_accessor :PersonnelSet, :IdcId, :IdcUnitIdSet, :EnterStartTime, :EnterEndTime, :VisitReason, :VisitRemark
415
+
416
+ def initialize(personnelset=nil, idcid=nil, idcunitidset=nil, enterstarttime=nil, enterendtime=nil, visitreason=nil, visitremark=nil)
417
+ @PersonnelSet = personnelset
418
+ @IdcId = idcid
419
+ @IdcUnitIdSet = idcunitidset
420
+ @EnterStartTime = enterstarttime
421
+ @EnterEndTime = enterendtime
422
+ @VisitReason = visitreason
423
+ @VisitRemark = visitremark
424
+ end
425
+
426
+ def deserialize(params)
427
+ unless params['PersonnelSet'].nil?
428
+ @PersonnelSet = []
429
+ params['PersonnelSet'].each do |i|
430
+ personnel_tmp = Personnel.new
431
+ personnel_tmp.deserialize(i)
432
+ @PersonnelSet << personnel_tmp
433
+ end
434
+ end
435
+ @IdcId = params['IdcId']
436
+ @IdcUnitIdSet = params['IdcUnitIdSet']
437
+ @EnterStartTime = params['EnterStartTime']
438
+ @EnterEndTime = params['EnterEndTime']
439
+ @VisitReason = params['VisitReason']
440
+ @VisitRemark = params['VisitRemark']
441
+ end
442
+ end
443
+
444
+ # CreatePersonnelVisitWorkOrder返回参数结构体
445
+ class CreatePersonnelVisitWorkOrderResponse < TencentCloud::Common::AbstractModel
446
+ # @param WorkOrderSet: 创建的工单信息
447
+ # @type WorkOrderSet: Array
448
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
449
+ # @type RequestId: String
450
+
451
+ attr_accessor :WorkOrderSet, :RequestId
452
+
453
+ def initialize(workorderset=nil, requestid=nil)
454
+ @WorkOrderSet = workorderset
455
+ @RequestId = requestid
456
+ end
457
+
458
+ def deserialize(params)
459
+ unless params['WorkOrderSet'].nil?
460
+ @WorkOrderSet = []
461
+ params['WorkOrderSet'].each do |i|
462
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
463
+ workordertinyinfo_tmp.deserialize(i)
464
+ @WorkOrderSet << workordertinyinfo_tmp
465
+ end
466
+ end
467
+ @RequestId = params['RequestId']
468
+ end
469
+ end
470
+
471
+ # CreatePowerOffWorkOrder请求参数结构体
472
+ class CreatePowerOffWorkOrderRequest < TencentCloud::Common::AbstractModel
473
+ # @param IdcId: 机房id
474
+ # @type IdcId: Integer
475
+ # @param DeviceType: 设备类型,server, netDevice
476
+ # @type DeviceType: String
477
+ # @param IsPowerOffConfirm: 关电确认,1.授权时关电 2.关电前需要确认
478
+ # @type IsPowerOffConfirm: String
479
+ # @param DeviceSnList: 设备sn列表
480
+ # @type DeviceSnList: Array
481
+ # @param PowerOffConfirmInfo: 关电前需要确认时必填
482
+ # @type PowerOffConfirmInfo: :class:`Tencentcloud::Chc.v20230418.models.PowerOffConfirm`
483
+ # @param Remark: 备注
484
+ # @type Remark: String
485
+
486
+ attr_accessor :IdcId, :DeviceType, :IsPowerOffConfirm, :DeviceSnList, :PowerOffConfirmInfo, :Remark
487
+
488
+ def initialize(idcid=nil, devicetype=nil, ispoweroffconfirm=nil, devicesnlist=nil, poweroffconfirminfo=nil, remark=nil)
489
+ @IdcId = idcid
490
+ @DeviceType = devicetype
491
+ @IsPowerOffConfirm = ispoweroffconfirm
492
+ @DeviceSnList = devicesnlist
493
+ @PowerOffConfirmInfo = poweroffconfirminfo
494
+ @Remark = remark
495
+ end
496
+
497
+ def deserialize(params)
498
+ @IdcId = params['IdcId']
499
+ @DeviceType = params['DeviceType']
500
+ @IsPowerOffConfirm = params['IsPowerOffConfirm']
501
+ @DeviceSnList = params['DeviceSnList']
502
+ unless params['PowerOffConfirmInfo'].nil?
503
+ @PowerOffConfirmInfo = PowerOffConfirm.new
504
+ @PowerOffConfirmInfo.deserialize(params['PowerOffConfirmInfo'])
505
+ end
506
+ @Remark = params['Remark']
507
+ end
508
+ end
509
+
510
+ # CreatePowerOffWorkOrder返回参数结构体
511
+ class CreatePowerOffWorkOrderResponse < TencentCloud::Common::AbstractModel
512
+ # @param WorkOrderSet: 创建的工单信息
513
+ # @type WorkOrderSet: Array
514
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
515
+ # @type RequestId: String
516
+
517
+ attr_accessor :WorkOrderSet, :RequestId
518
+
519
+ def initialize(workorderset=nil, requestid=nil)
520
+ @WorkOrderSet = workorderset
521
+ @RequestId = requestid
522
+ end
523
+
524
+ def deserialize(params)
525
+ unless params['WorkOrderSet'].nil?
526
+ @WorkOrderSet = []
527
+ params['WorkOrderSet'].each do |i|
528
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
529
+ workordertinyinfo_tmp.deserialize(i)
530
+ @WorkOrderSet << workordertinyinfo_tmp
531
+ end
532
+ end
533
+ @RequestId = params['RequestId']
534
+ end
535
+ end
536
+
537
+ # CreatePowerOnWorkOrder请求参数结构体
538
+ class CreatePowerOnWorkOrderRequest < TencentCloud::Common::AbstractModel
539
+ # @param IdcId: 机房id
540
+ # @type IdcId: Integer
541
+ # @param DeviceType: 设备类型,server, netDevice
542
+ # @type DeviceType: String
543
+ # @param DeviceSnList: 设备sn列表
544
+ # @type DeviceSnList: Array
545
+
546
+ attr_accessor :IdcId, :DeviceType, :DeviceSnList
547
+
548
+ def initialize(idcid=nil, devicetype=nil, devicesnlist=nil)
549
+ @IdcId = idcid
550
+ @DeviceType = devicetype
551
+ @DeviceSnList = devicesnlist
552
+ end
553
+
554
+ def deserialize(params)
555
+ @IdcId = params['IdcId']
556
+ @DeviceType = params['DeviceType']
557
+ @DeviceSnList = params['DeviceSnList']
558
+ end
559
+ end
560
+
561
+ # CreatePowerOnWorkOrder返回参数结构体
562
+ class CreatePowerOnWorkOrderResponse < TencentCloud::Common::AbstractModel
563
+ # @param WorkOrderSet: 创建的工单信息
564
+ # @type WorkOrderSet: Array
565
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
566
+ # @type RequestId: String
567
+
568
+ attr_accessor :WorkOrderSet, :RequestId
569
+
570
+ def initialize(workorderset=nil, requestid=nil)
571
+ @WorkOrderSet = workorderset
572
+ @RequestId = requestid
573
+ end
574
+
575
+ def deserialize(params)
576
+ unless params['WorkOrderSet'].nil?
577
+ @WorkOrderSet = []
578
+ params['WorkOrderSet'].each do |i|
579
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
580
+ workordertinyinfo_tmp.deserialize(i)
581
+ @WorkOrderSet << workordertinyinfo_tmp
582
+ end
583
+ end
584
+ @RequestId = params['RequestId']
585
+ end
586
+ end
587
+
588
+ # CreateQuitWorkOrder请求参数结构体
589
+ class CreateQuitWorkOrderRequest < TencentCloud::Common::AbstractModel
590
+ # @param IdcId: 机房id
591
+ # @type IdcId: Integer
592
+ # @param DeviceType: 设备类型,server, netDevice, otherDevice
593
+ # @type DeviceType: String
594
+ # @param StuffOption: 下架选择 1.自行解决 2.由腾讯IDC负责 3.不涉及下架,如:其他设备退出
595
+ # @type StuffOption: String
596
+ # @param IsPowerOffConfirm: 关电确认 1.授权时关电 2.关电前需要确认
597
+ # @type IsPowerOffConfirm: String
598
+ # @param DeviceSnList: 设备sn列表
599
+ # @type DeviceSnList: Array
600
+ # @param HandoverMethod: 交接方式 1.物流上门收货 2.客户上门自提
601
+ # @type HandoverMethod: String
602
+ # @param SelfOperationInfo: 自行解决必填
603
+ # @type SelfOperationInfo: :class:`Tencentcloud::Chc.v20230418.models.SelfOperation`
604
+ # @param PowerOffConfirmInfo: 关电前需要确认时必填
605
+ # @type PowerOffConfirmInfo: :class:`Tencentcloud::Chc.v20230418.models.PowerOffConfirm`
606
+ # @param Remark: 备注
607
+ # @type Remark: String
608
+ # @param LogisticsReceipt: 物流上门收货必传
609
+ # @type LogisticsReceipt: :class:`Tencentcloud::Chc.v20230418.models.LogisticsReceipt`
610
+ # @param CustomerReceipt: 客户上门自提必传
611
+ # @type CustomerReceipt: :class:`Tencentcloud::Chc.v20230418.models.CustomerReceipt`
612
+
613
+ attr_accessor :IdcId, :DeviceType, :StuffOption, :IsPowerOffConfirm, :DeviceSnList, :HandoverMethod, :SelfOperationInfo, :PowerOffConfirmInfo, :Remark, :LogisticsReceipt, :CustomerReceipt
614
+
615
+ def initialize(idcid=nil, devicetype=nil, stuffoption=nil, ispoweroffconfirm=nil, devicesnlist=nil, handovermethod=nil, selfoperationinfo=nil, poweroffconfirminfo=nil, remark=nil, logisticsreceipt=nil, customerreceipt=nil)
616
+ @IdcId = idcid
617
+ @DeviceType = devicetype
618
+ @StuffOption = stuffoption
619
+ @IsPowerOffConfirm = ispoweroffconfirm
620
+ @DeviceSnList = devicesnlist
621
+ @HandoverMethod = handovermethod
622
+ @SelfOperationInfo = selfoperationinfo
623
+ @PowerOffConfirmInfo = poweroffconfirminfo
624
+ @Remark = remark
625
+ @LogisticsReceipt = logisticsreceipt
626
+ @CustomerReceipt = customerreceipt
627
+ end
628
+
629
+ def deserialize(params)
630
+ @IdcId = params['IdcId']
631
+ @DeviceType = params['DeviceType']
632
+ @StuffOption = params['StuffOption']
633
+ @IsPowerOffConfirm = params['IsPowerOffConfirm']
634
+ @DeviceSnList = params['DeviceSnList']
635
+ @HandoverMethod = params['HandoverMethod']
636
+ unless params['SelfOperationInfo'].nil?
637
+ @SelfOperationInfo = SelfOperation.new
638
+ @SelfOperationInfo.deserialize(params['SelfOperationInfo'])
639
+ end
640
+ unless params['PowerOffConfirmInfo'].nil?
641
+ @PowerOffConfirmInfo = PowerOffConfirm.new
642
+ @PowerOffConfirmInfo.deserialize(params['PowerOffConfirmInfo'])
643
+ end
644
+ @Remark = params['Remark']
645
+ unless params['LogisticsReceipt'].nil?
646
+ @LogisticsReceipt = LogisticsReceipt.new
647
+ @LogisticsReceipt.deserialize(params['LogisticsReceipt'])
648
+ end
649
+ unless params['CustomerReceipt'].nil?
650
+ @CustomerReceipt = CustomerReceipt.new
651
+ @CustomerReceipt.deserialize(params['CustomerReceipt'])
652
+ end
653
+ end
654
+ end
655
+
656
+ # CreateQuitWorkOrder返回参数结构体
657
+ class CreateQuitWorkOrderResponse < TencentCloud::Common::AbstractModel
658
+ # @param WorkOrderSet: 创建的工单信息
659
+ # @type WorkOrderSet: Array
660
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
661
+ # @type RequestId: String
662
+
663
+ attr_accessor :WorkOrderSet, :RequestId
664
+
665
+ def initialize(workorderset=nil, requestid=nil)
666
+ @WorkOrderSet = workorderset
667
+ @RequestId = requestid
668
+ end
669
+
670
+ def deserialize(params)
671
+ unless params['WorkOrderSet'].nil?
672
+ @WorkOrderSet = []
673
+ params['WorkOrderSet'].each do |i|
674
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
675
+ workordertinyinfo_tmp.deserialize(i)
676
+ @WorkOrderSet << workordertinyinfo_tmp
677
+ end
678
+ end
679
+ @RequestId = params['RequestId']
680
+ end
681
+ end
682
+
683
+ # CreateRackOffWorkOrder请求参数结构体
684
+ class CreateRackOffWorkOrderRequest < TencentCloud::Common::AbstractModel
685
+ # @param IdcId: 机房id
686
+ # @type IdcId: Integer
687
+ # @param DeviceType: 设备类型,server, netDevice
688
+ # @type DeviceType: String
689
+ # @param StuffOption: 下架人员 1.自行解决 2.由腾讯IDC负责
690
+ # @type StuffOption: String
691
+ # @param IsPowerOffConfirm: 关电确认 1.授权时关电 2.关电前需要确认
692
+ # @type IsPowerOffConfirm: String
693
+ # @param DeviceSnList: 设备sn列表
694
+ # @type DeviceSnList: Array
695
+ # @param SelfOperationInfo: 自行解决必填
696
+ # @type SelfOperationInfo: :class:`Tencentcloud::Chc.v20230418.models.SelfOperation`
697
+ # @param PowerOffConfirmInfo: 关电前需要确认时必填
698
+ # @type PowerOffConfirmInfo: :class:`Tencentcloud::Chc.v20230418.models.PowerOffConfirm`
699
+ # @param Remark: 备注
700
+ # @type Remark: String
701
+
702
+ attr_accessor :IdcId, :DeviceType, :StuffOption, :IsPowerOffConfirm, :DeviceSnList, :SelfOperationInfo, :PowerOffConfirmInfo, :Remark
703
+
704
+ def initialize(idcid=nil, devicetype=nil, stuffoption=nil, ispoweroffconfirm=nil, devicesnlist=nil, selfoperationinfo=nil, poweroffconfirminfo=nil, remark=nil)
705
+ @IdcId = idcid
706
+ @DeviceType = devicetype
707
+ @StuffOption = stuffoption
708
+ @IsPowerOffConfirm = ispoweroffconfirm
709
+ @DeviceSnList = devicesnlist
710
+ @SelfOperationInfo = selfoperationinfo
711
+ @PowerOffConfirmInfo = poweroffconfirminfo
712
+ @Remark = remark
713
+ end
714
+
715
+ def deserialize(params)
716
+ @IdcId = params['IdcId']
717
+ @DeviceType = params['DeviceType']
718
+ @StuffOption = params['StuffOption']
719
+ @IsPowerOffConfirm = params['IsPowerOffConfirm']
720
+ @DeviceSnList = params['DeviceSnList']
721
+ unless params['SelfOperationInfo'].nil?
722
+ @SelfOperationInfo = SelfOperation.new
723
+ @SelfOperationInfo.deserialize(params['SelfOperationInfo'])
724
+ end
725
+ unless params['PowerOffConfirmInfo'].nil?
726
+ @PowerOffConfirmInfo = PowerOffConfirm.new
727
+ @PowerOffConfirmInfo.deserialize(params['PowerOffConfirmInfo'])
728
+ end
729
+ @Remark = params['Remark']
730
+ end
731
+ end
732
+
733
+ # CreateRackOffWorkOrder返回参数结构体
734
+ class CreateRackOffWorkOrderResponse < TencentCloud::Common::AbstractModel
735
+ # @param WorkOrderSet: 创建的工单信息
736
+ # @type WorkOrderSet: Array
737
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
738
+ # @type RequestId: String
739
+
740
+ attr_accessor :WorkOrderSet, :RequestId
741
+
742
+ def initialize(workorderset=nil, requestid=nil)
743
+ @WorkOrderSet = workorderset
744
+ @RequestId = requestid
745
+ end
746
+
747
+ def deserialize(params)
748
+ unless params['WorkOrderSet'].nil?
749
+ @WorkOrderSet = []
750
+ params['WorkOrderSet'].each do |i|
751
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
752
+ workordertinyinfo_tmp.deserialize(i)
753
+ @WorkOrderSet << workordertinyinfo_tmp
754
+ end
755
+ end
756
+ @RequestId = params['RequestId']
757
+ end
758
+ end
759
+
760
+ # CreateRackOnWorkOrder请求参数结构体
761
+ class CreateRackOnWorkOrderRequest < TencentCloud::Common::AbstractModel
762
+ # @param IdcId: 机房id
763
+ # @type IdcId: Integer
764
+ # @param DeviceType: 设备类型,server, netDevice
765
+ # @type DeviceType: String
766
+ # @param StuffOption: 上架人员 1.自行解决 2.由腾讯IDC负责
767
+ # @type StuffOption: String
768
+ # @param WithPowerOn: 上架后是否开电
769
+ # @type WithPowerOn: Boolean
770
+ # @param DeviceRackOnList: 服务器收货列表
771
+ # @type DeviceRackOnList: Array
772
+ # @param SelfOperationInfo: 自行解决必填
773
+ # @type SelfOperationInfo: :class:`Tencentcloud::Chc.v20230418.models.SelfOperation`
774
+
775
+ attr_accessor :IdcId, :DeviceType, :StuffOption, :WithPowerOn, :DeviceRackOnList, :SelfOperationInfo
776
+
777
+ def initialize(idcid=nil, devicetype=nil, stuffoption=nil, withpoweron=nil, devicerackonlist=nil, selfoperationinfo=nil)
778
+ @IdcId = idcid
779
+ @DeviceType = devicetype
780
+ @StuffOption = stuffoption
781
+ @WithPowerOn = withpoweron
782
+ @DeviceRackOnList = devicerackonlist
783
+ @SelfOperationInfo = selfoperationinfo
784
+ end
785
+
786
+ def deserialize(params)
787
+ @IdcId = params['IdcId']
788
+ @DeviceType = params['DeviceType']
789
+ @StuffOption = params['StuffOption']
790
+ @WithPowerOn = params['WithPowerOn']
791
+ unless params['DeviceRackOnList'].nil?
792
+ @DeviceRackOnList = []
793
+ params['DeviceRackOnList'].each do |i|
794
+ devicerackon_tmp = DeviceRackOn.new
795
+ devicerackon_tmp.deserialize(i)
796
+ @DeviceRackOnList << devicerackon_tmp
797
+ end
798
+ end
799
+ unless params['SelfOperationInfo'].nil?
800
+ @SelfOperationInfo = SelfOperation.new
801
+ @SelfOperationInfo.deserialize(params['SelfOperationInfo'])
802
+ end
803
+ end
804
+ end
805
+
806
+ # CreateRackOnWorkOrder返回参数结构体
807
+ class CreateRackOnWorkOrderResponse < TencentCloud::Common::AbstractModel
808
+ # @param WorkOrderSet: 创建的工单信息
809
+ # @type WorkOrderSet: Array
810
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
811
+ # @type RequestId: String
812
+
813
+ attr_accessor :WorkOrderSet, :RequestId
814
+
815
+ def initialize(workorderset=nil, requestid=nil)
816
+ @WorkOrderSet = workorderset
817
+ @RequestId = requestid
818
+ end
819
+
820
+ def deserialize(params)
821
+ unless params['WorkOrderSet'].nil?
822
+ @WorkOrderSet = []
823
+ params['WorkOrderSet'].each do |i|
824
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
825
+ workordertinyinfo_tmp.deserialize(i)
826
+ @WorkOrderSet << workordertinyinfo_tmp
827
+ end
828
+ end
829
+ @RequestId = params['RequestId']
830
+ end
831
+ end
832
+
833
+ # CreateReceivingWorkOrder请求参数结构体
834
+ class CreateReceivingWorkOrderRequest < TencentCloud::Common::AbstractModel
835
+ # @param IdcId: 机房id
836
+ # @type IdcId: Integer
837
+ # @param DeviceType: 设备类型,server, netDevice, wire, otherDevice
838
+ # @type DeviceType: String
839
+ # @param EntryTime: 进入时间
840
+ # @type EntryTime: String
841
+ # @param ReceivingOperation: 1.收货-仅核对外包装完整和数量,不开箱 2.验收-开箱核对型号SN一致
842
+ # @type ReceivingOperation: String
843
+ # @param IsExpressDelivery: 是否快递寄件
844
+ # @type IsExpressDelivery: Boolean
845
+ # @param ExpressInfo: 快递寄件信息,快递寄件必填
846
+ # @type ExpressInfo: :class:`Tencentcloud::Chc.v20230418.models.ExpressDelivery`
847
+ # @param Remark: 备注
848
+ # @type Remark: String
849
+ # @param ServerDeviceList: 服务器收货列表
850
+ # @type ServerDeviceList: Array
851
+ # @param NetDeviceList: 网络设备收货列表
852
+ # @type NetDeviceList: Array
853
+ # @param WireDeviceList: 线材收货列表
854
+ # @type WireDeviceList: Array
855
+ # @param OtherDeviceList: 其他设备收货列表
856
+ # @type OtherDeviceList: Array
857
+
858
+ attr_accessor :IdcId, :DeviceType, :EntryTime, :ReceivingOperation, :IsExpressDelivery, :ExpressInfo, :Remark, :ServerDeviceList, :NetDeviceList, :WireDeviceList, :OtherDeviceList
859
+
860
+ def initialize(idcid=nil, devicetype=nil, entrytime=nil, receivingoperation=nil, isexpressdelivery=nil, expressinfo=nil, remark=nil, serverdevicelist=nil, netdevicelist=nil, wiredevicelist=nil, otherdevicelist=nil)
861
+ @IdcId = idcid
862
+ @DeviceType = devicetype
863
+ @EntryTime = entrytime
864
+ @ReceivingOperation = receivingoperation
865
+ @IsExpressDelivery = isexpressdelivery
866
+ @ExpressInfo = expressinfo
867
+ @Remark = remark
868
+ @ServerDeviceList = serverdevicelist
869
+ @NetDeviceList = netdevicelist
870
+ @WireDeviceList = wiredevicelist
871
+ @OtherDeviceList = otherdevicelist
872
+ end
873
+
874
+ def deserialize(params)
875
+ @IdcId = params['IdcId']
876
+ @DeviceType = params['DeviceType']
877
+ @EntryTime = params['EntryTime']
878
+ @ReceivingOperation = params['ReceivingOperation']
879
+ @IsExpressDelivery = params['IsExpressDelivery']
880
+ unless params['ExpressInfo'].nil?
881
+ @ExpressInfo = ExpressDelivery.new
882
+ @ExpressInfo.deserialize(params['ExpressInfo'])
883
+ end
884
+ @Remark = params['Remark']
885
+ unless params['ServerDeviceList'].nil?
886
+ @ServerDeviceList = []
887
+ params['ServerDeviceList'].each do |i|
888
+ serverreceivinginfo_tmp = ServerReceivingInfo.new
889
+ serverreceivinginfo_tmp.deserialize(i)
890
+ @ServerDeviceList << serverreceivinginfo_tmp
891
+ end
892
+ end
893
+ unless params['NetDeviceList'].nil?
894
+ @NetDeviceList = []
895
+ params['NetDeviceList'].each do |i|
896
+ netreceivinginfo_tmp = NetReceivingInfo.new
897
+ netreceivinginfo_tmp.deserialize(i)
898
+ @NetDeviceList << netreceivinginfo_tmp
899
+ end
900
+ end
901
+ unless params['WireDeviceList'].nil?
902
+ @WireDeviceList = []
903
+ params['WireDeviceList'].each do |i|
904
+ wirereceivinginfo_tmp = WireReceivingInfo.new
905
+ wirereceivinginfo_tmp.deserialize(i)
906
+ @WireDeviceList << wirereceivinginfo_tmp
907
+ end
908
+ end
909
+ unless params['OtherDeviceList'].nil?
910
+ @OtherDeviceList = []
911
+ params['OtherDeviceList'].each do |i|
912
+ otherdevreceivinginfo_tmp = OtherDevReceivingInfo.new
913
+ otherdevreceivinginfo_tmp.deserialize(i)
914
+ @OtherDeviceList << otherdevreceivinginfo_tmp
915
+ end
916
+ end
917
+ end
918
+ end
919
+
920
+ # CreateReceivingWorkOrder返回参数结构体
921
+ class CreateReceivingWorkOrderResponse < TencentCloud::Common::AbstractModel
922
+ # @param WorkOrderSet: 创建的工单信息
923
+ # @type WorkOrderSet: Array
924
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
925
+ # @type RequestId: String
926
+
927
+ attr_accessor :WorkOrderSet, :RequestId
928
+
929
+ def initialize(workorderset=nil, requestid=nil)
930
+ @WorkOrderSet = workorderset
931
+ @RequestId = requestid
932
+ end
933
+
934
+ def deserialize(params)
935
+ unless params['WorkOrderSet'].nil?
936
+ @WorkOrderSet = []
937
+ params['WorkOrderSet'].each do |i|
938
+ workordertinyinfo_tmp = WorkOrderTinyInfo.new
939
+ workordertinyinfo_tmp.deserialize(i)
940
+ @WorkOrderSet << workordertinyinfo_tmp
941
+ end
942
+ end
943
+ @RequestId = params['RequestId']
944
+ end
945
+ end
946
+
947
+ # CreateServerModel请求参数结构体
948
+ class CreateServerModelRequest < TencentCloud::Common::AbstractModel
949
+ # @param ModelDetail: 设备型号详情
950
+ # @type ModelDetail: :class:`Tencentcloud::Chc.v20230418.models.ServerModel`
951
+
952
+ attr_accessor :ModelDetail
953
+
954
+ def initialize(modeldetail=nil)
955
+ @ModelDetail = modeldetail
956
+ end
957
+
958
+ def deserialize(params)
959
+ unless params['ModelDetail'].nil?
960
+ @ModelDetail = ServerModel.new
961
+ @ModelDetail.deserialize(params['ModelDetail'])
962
+ end
963
+ end
964
+ end
965
+
966
+ # CreateServerModel返回参数结构体
967
+ class CreateServerModelResponse < TencentCloud::Common::AbstractModel
968
+ # @param DevModel: 型号名称
969
+ # @type DevModel: String
970
+ # @param Version: 版本
971
+ # @type Version: String
972
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
973
+ # @type RequestId: String
974
+
975
+ attr_accessor :DevModel, :Version, :RequestId
976
+
977
+ def initialize(devmodel=nil, version=nil, requestid=nil)
978
+ @DevModel = devmodel
979
+ @Version = version
980
+ @RequestId = requestid
981
+ end
982
+
983
+ def deserialize(params)
984
+ @DevModel = params['DevModel']
985
+ @Version = params['Version']
986
+ @RequestId = params['RequestId']
987
+ end
988
+ end
989
+
990
+ # 客户信息
991
+ class CustomerInfo < TencentCloud::Common::AbstractModel
992
+ # @param CustomerName: 公司全称
993
+ # @type CustomerName: String
994
+ # @param ShortCustomerName: 公司简称
995
+ # @type ShortCustomerName: String
996
+ # @param WholeFlag: 是否全托管用户
997
+ # @type WholeFlag: Boolean
998
+
999
+ attr_accessor :CustomerName, :ShortCustomerName, :WholeFlag
1000
+
1001
+ def initialize(customername=nil, shortcustomername=nil, wholeflag=nil)
1002
+ @CustomerName = customername
1003
+ @ShortCustomerName = shortcustomername
1004
+ @WholeFlag = wholeflag
1005
+ end
1006
+
1007
+ def deserialize(params)
1008
+ @CustomerName = params['CustomerName']
1009
+ @ShortCustomerName = params['ShortCustomerName']
1010
+ @WholeFlag = params['WholeFlag']
1011
+ end
1012
+ end
1013
+
1014
+ # 客户上门自提信息
1015
+ class CustomerReceipt < TencentCloud::Common::AbstractModel
1016
+ # @param PickUpStuff: 自提人员姓名
1017
+ # @type PickUpStuff: String
1018
+ # @param PickUpStuffContact: 自提人电话
1019
+ # @type PickUpStuffContact: String
1020
+ # @param PickUpStuffIDCard: 自提人身份证号
1021
+ # @type PickUpStuffIDCard: String
1022
+ # @param PickUpTime: 自提时间
1023
+ # @type PickUpTime: String
1024
+
1025
+ attr_accessor :PickUpStuff, :PickUpStuffContact, :PickUpStuffIDCard, :PickUpTime
1026
+
1027
+ def initialize(pickupstuff=nil, pickupstuffcontact=nil, pickupstuffidcard=nil, pickuptime=nil)
1028
+ @PickUpStuff = pickupstuff
1029
+ @PickUpStuffContact = pickupstuffcontact
1030
+ @PickUpStuffIDCard = pickupstuffidcard
1031
+ @PickUpTime = pickuptime
1032
+ end
1033
+
1034
+ def deserialize(params)
1035
+ @PickUpStuff = params['PickUpStuff']
1036
+ @PickUpStuffContact = params['PickUpStuffContact']
1037
+ @PickUpStuffIDCard = params['PickUpStuffIDCard']
1038
+ @PickUpTime = params['PickUpTime']
1039
+ end
1040
+ end
1041
+
1042
+ # DescribeAvailableModelList请求参数结构体
1043
+ class DescribeAvailableModelListRequest < TencentCloud::Common::AbstractModel
1044
+ # @param IdcId: 机房ID
1045
+ # @type IdcId: Integer
1046
+ # @param DeviceType: server 服务器,netDevice 网络设备
1047
+ # @type DeviceType: String
1048
+
1049
+ attr_accessor :IdcId, :DeviceType
1050
+
1051
+ def initialize(idcid=nil, devicetype=nil)
1052
+ @IdcId = idcid
1053
+ @DeviceType = devicetype
1054
+ end
1055
+
1056
+ def deserialize(params)
1057
+ @IdcId = params['IdcId']
1058
+ @DeviceType = params['DeviceType']
1059
+ end
1060
+ end
1061
+
1062
+ # DescribeAvailableModelList返回参数结构体
1063
+ class DescribeAvailableModelListResponse < TencentCloud::Common::AbstractModel
1064
+ # @param ModelVersionSet: 机房内可用的设备型号及版本列表
1065
+ # @type ModelVersionSet: Array
1066
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1067
+ # @type RequestId: String
1068
+
1069
+ attr_accessor :ModelVersionSet, :RequestId
1070
+
1071
+ def initialize(modelversionset=nil, requestid=nil)
1072
+ @ModelVersionSet = modelversionset
1073
+ @RequestId = requestid
1074
+ end
1075
+
1076
+ def deserialize(params)
1077
+ unless params['ModelVersionSet'].nil?
1078
+ @ModelVersionSet = []
1079
+ params['ModelVersionSet'].each do |i|
1080
+ availablemodelversion_tmp = AvailableModelVersion.new
1081
+ availablemodelversion_tmp.deserialize(i)
1082
+ @ModelVersionSet << availablemodelversion_tmp
1083
+ end
1084
+ end
1085
+ @RequestId = params['RequestId']
1086
+ end
1087
+ end
1088
+
1089
+ # DescribeCampusList请求参数结构体
1090
+ class DescribeCampusListRequest < TencentCloud::Common::AbstractModel
1091
+
1092
+
1093
+ def initialize()
1094
+ end
1095
+
1096
+ def deserialize(params)
1097
+ end
1098
+ end
1099
+
1100
+ # DescribeCampusList返回参数结构体
1101
+ class DescribeCampusListResponse < TencentCloud::Common::AbstractModel
1102
+ # @param CampusSet: 客户可操作的园区列表
1103
+ # @type CampusSet: Array
1104
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1105
+ # @type RequestId: String
1106
+
1107
+ attr_accessor :CampusSet, :RequestId
1108
+
1109
+ def initialize(campusset=nil, requestid=nil)
1110
+ @CampusSet = campusset
1111
+ @RequestId = requestid
1112
+ end
1113
+
1114
+ def deserialize(params)
1115
+ unless params['CampusSet'].nil?
1116
+ @CampusSet = []
1117
+ params['CampusSet'].each do |i|
1118
+ campus_tmp = Campus.new
1119
+ campus_tmp.deserialize(i)
1120
+ @CampusSet << campus_tmp
1121
+ end
1122
+ end
1123
+ @RequestId = params['RequestId']
1124
+ end
1125
+ end
1126
+
1127
+ # DescribeCommonServiceWorkOrderDetail请求参数结构体
1128
+ class DescribeCommonServiceWorkOrderDetailRequest < TencentCloud::Common::AbstractModel
1129
+ # @param OrderId: 工单ID
1130
+ # @type OrderId: String
1131
+
1132
+ attr_accessor :OrderId
1133
+
1134
+ def initialize(orderid=nil)
1135
+ @OrderId = orderid
1136
+ end
1137
+
1138
+ def deserialize(params)
1139
+ @OrderId = params['OrderId']
1140
+ end
1141
+ end
1142
+
1143
+ # DescribeCommonServiceWorkOrderDetail返回参数结构体
1144
+ class DescribeCommonServiceWorkOrderDetailResponse < TencentCloud::Common::AbstractModel
1145
+ # @param StepSet: 进度
1146
+ # @type StepSet: Array
1147
+ # @param BaseInfo: 基本信息
1148
+ # @type BaseInfo: :class:`Tencentcloud::Chc.v20230418.models.CommonServiceBaseInfo`
1149
+ # @param DeviceSet: 设备信息
1150
+ # @type DeviceSet: Array
1151
+ # @param OrderStatus: 工单状态
1152
+ # @type OrderStatus: String
1153
+ # @param RejectReason: 拒绝原因
1154
+ # @type RejectReason: String
1155
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1156
+ # @type RequestId: String
1157
+
1158
+ attr_accessor :StepSet, :BaseInfo, :DeviceSet, :OrderStatus, :RejectReason, :RequestId
1159
+
1160
+ def initialize(stepset=nil, baseinfo=nil, deviceset=nil, orderstatus=nil, rejectreason=nil, requestid=nil)
1161
+ @StepSet = stepset
1162
+ @BaseInfo = baseinfo
1163
+ @DeviceSet = deviceset
1164
+ @OrderStatus = orderstatus
1165
+ @RejectReason = rejectreason
1166
+ @RequestId = requestid
1167
+ end
1168
+
1169
+ def deserialize(params)
1170
+ unless params['StepSet'].nil?
1171
+ @StepSet = []
1172
+ params['StepSet'].each do |i|
1173
+ orderstep_tmp = OrderStep.new
1174
+ orderstep_tmp.deserialize(i)
1175
+ @StepSet << orderstep_tmp
1176
+ end
1177
+ end
1178
+ unless params['BaseInfo'].nil?
1179
+ @BaseInfo = CommonServiceBaseInfo.new
1180
+ @BaseInfo.deserialize(params['BaseInfo'])
1181
+ end
1182
+ unless params['DeviceSet'].nil?
1183
+ @DeviceSet = []
1184
+ params['DeviceSet'].each do |i|
1185
+ deviceposition_tmp = DevicePosition.new
1186
+ deviceposition_tmp.deserialize(i)
1187
+ @DeviceSet << deviceposition_tmp
1188
+ end
1189
+ end
1190
+ @OrderStatus = params['OrderStatus']
1191
+ @RejectReason = params['RejectReason']
1192
+ @RequestId = params['RequestId']
1193
+ end
1194
+ end
1195
+
1196
+ # DescribeCustomerInfo请求参数结构体
1197
+ class DescribeCustomerInfoRequest < TencentCloud::Common::AbstractModel
1198
+
1199
+
1200
+ def initialize()
1201
+ end
1202
+
1203
+ def deserialize(params)
1204
+ end
1205
+ end
1206
+
1207
+ # DescribeCustomerInfo返回参数结构体
1208
+ class DescribeCustomerInfoResponse < TencentCloud::Common::AbstractModel
1209
+ # @param CustomerInfo: 客户信息
1210
+ # @type CustomerInfo: :class:`Tencentcloud::Chc.v20230418.models.CustomerInfo`
1211
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1212
+ # @type RequestId: String
1213
+
1214
+ attr_accessor :CustomerInfo, :RequestId
1215
+
1216
+ def initialize(customerinfo=nil, requestid=nil)
1217
+ @CustomerInfo = customerinfo
1218
+ @RequestId = requestid
1219
+ end
1220
+
1221
+ def deserialize(params)
1222
+ unless params['CustomerInfo'].nil?
1223
+ @CustomerInfo = CustomerInfo.new
1224
+ @CustomerInfo.deserialize(params['CustomerInfo'])
1225
+ end
1226
+ @RequestId = params['RequestId']
1227
+ end
1228
+ end
1229
+
1230
+ # DescribeDeviceList请求参数结构体
1231
+ class DescribeDeviceListRequest < TencentCloud::Common::AbstractModel
1232
+ # @param DeviceType: 设备类型 server 服务器,netDevice 网络设备,otherDevice 其他设备
1233
+ # @type DeviceType: String
1234
+ # @param Filters: <li><strong>rack-id</strong></li> <p style="padding-left: 30px;">按照【<strong>机架ID</strong>】进行过滤。例如:15082。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"></p> <li><strong> sn</strong></li> <p style="padding-left: 30px;">按照【<strong>设备 SN 码</strong>】进行过滤,设备 SN 例如:TEN948P004。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong> idc-id</strong></li> <p style="padding-left: 30px;">按照【<strong>机房ID</strong>】进行过滤,机房ID例如:159。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>idc-unit-id </strong></li> <p style="padding-left: 30px;">按照【<strong>机房管理单元ID</strong>】进行过滤,机房管理ID例如:568。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>server-type-id</strong></li> <p style="padding-left: 30px;">按照【<strong>机器子类型</strong>】进行过滤,只包含以下几种:1:服务器, 2:Twins主机, 3:Twins子机,5:虚拟机, 6:2U4S主机, 7:2U4S子机,8 Rack主机,9 Rack子机,例如: 1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1235
+ # <li><strong>status</strong></li> <p style="padding-left: 30px;">按照【<strong>设备状态</strong>】进行过滤,操作状态只包含:POWER_ON 设备开电,POWER_OFF 设备关电,RACK_OFF 未上架,MOVING 搬迁中 。例如: POWER_OFF。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1236
+ # <li><strong>svr-is-special</strong></li> <p style="padding-left: 30px;">按照【<strong>是否</strong>】进行过滤,支持 0:自有,1 租用。例如: 1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1237
+ # @type Filters: Array
1238
+ # @param Offset: 偏移量,默认为0
1239
+ # @type Offset: Integer
1240
+ # @param Limit: 返回数量,默认为20,最大值为1000
1241
+ # @type Limit: Integer
1242
+ # @param DstService: 传入目标服务,返回允许进行此服务的设备列表;可以和Filters一起使用。允许的值:('rackOn', 'powerOn', 'powerOff', 'rackOff', 'quit', 'moving','netDeviceCommon', 'serverCommon')
1243
+ # @type DstService: String
1244
+
1245
+ attr_accessor :DeviceType, :Filters, :Offset, :Limit, :DstService
1246
+
1247
+ def initialize(devicetype=nil, filters=nil, offset=nil, limit=nil, dstservice=nil)
1248
+ @DeviceType = devicetype
1249
+ @Filters = filters
1250
+ @Offset = offset
1251
+ @Limit = limit
1252
+ @DstService = dstservice
1253
+ end
1254
+
1255
+ def deserialize(params)
1256
+ @DeviceType = params['DeviceType']
1257
+ unless params['Filters'].nil?
1258
+ @Filters = []
1259
+ params['Filters'].each do |i|
1260
+ filter_tmp = Filter.new
1261
+ filter_tmp.deserialize(i)
1262
+ @Filters << filter_tmp
1263
+ end
1264
+ end
1265
+ @Offset = params['Offset']
1266
+ @Limit = params['Limit']
1267
+ @DstService = params['DstService']
1268
+ end
1269
+ end
1270
+
1271
+ # DescribeDeviceList返回参数结构体
1272
+ class DescribeDeviceListResponse < TencentCloud::Common::AbstractModel
1273
+ # @param Total: 总数
1274
+ # @type Total: Integer
1275
+ # @param DeviceSet: 服务器列表
1276
+ # @type DeviceSet: Array
1277
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1278
+ # @type RequestId: String
1279
+
1280
+ attr_accessor :Total, :DeviceSet, :RequestId
1281
+
1282
+ def initialize(total=nil, deviceset=nil, requestid=nil)
1283
+ @Total = total
1284
+ @DeviceSet = deviceset
1285
+ @RequestId = requestid
1286
+ end
1287
+
1288
+ def deserialize(params)
1289
+ @Total = params['Total']
1290
+ unless params['DeviceSet'].nil?
1291
+ @DeviceSet = []
1292
+ params['DeviceSet'].each do |i|
1293
+ device_tmp = Device.new
1294
+ device_tmp.deserialize(i)
1295
+ @DeviceSet << device_tmp
1296
+ end
1297
+ end
1298
+ @RequestId = params['RequestId']
1299
+ end
1300
+ end
1301
+
1302
+ # DescribeDeviceWorkOrderDetail请求参数结构体
1303
+ class DescribeDeviceWorkOrderDetailRequest < TencentCloud::Common::AbstractModel
1304
+ # @param OrderId: 工单ID
1305
+ # @type OrderId: String
1306
+
1307
+ attr_accessor :OrderId
1308
+
1309
+ def initialize(orderid=nil)
1310
+ @OrderId = orderid
1311
+ end
1312
+
1313
+ def deserialize(params)
1314
+ @OrderId = params['OrderId']
1315
+ end
1316
+ end
1317
+
1318
+ # DescribeDeviceWorkOrderDetail返回参数结构体
1319
+ class DescribeDeviceWorkOrderDetailResponse < TencentCloud::Common::AbstractModel
1320
+ # @param OrderId: 工单ID
1321
+ # @type OrderId: String
1322
+ # @param ServiceType: 服务类型
1323
+ # @type ServiceType: String
1324
+ # @param OrderType: 工单类型
1325
+ # @type OrderType: String
1326
+ # @param OrderStatus: 工单状态
1327
+ # @type OrderStatus: String
1328
+ # @param StepSet: 工单流程状态
1329
+ # @type StepSet: Array
1330
+ # @param DeviceSet: 工单设备信息
1331
+ # @type DeviceSet: Array
1332
+ # @param BaseInfo: 工单的入参信息
1333
+ # @type BaseInfo: :class:`Tencentcloud::Chc.v20230418.models.DeviceOrderBaseInfo`
1334
+ # @param RejectReason: 工单的拒绝原因,工单状态为reject的时候返回
1335
+ # @type RejectReason: String
1336
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1337
+ # @type RequestId: String
1338
+
1339
+ attr_accessor :OrderId, :ServiceType, :OrderType, :OrderStatus, :StepSet, :DeviceSet, :BaseInfo, :RejectReason, :RequestId
1340
+
1341
+ def initialize(orderid=nil, servicetype=nil, ordertype=nil, orderstatus=nil, stepset=nil, deviceset=nil, baseinfo=nil, rejectreason=nil, requestid=nil)
1342
+ @OrderId = orderid
1343
+ @ServiceType = servicetype
1344
+ @OrderType = ordertype
1345
+ @OrderStatus = orderstatus
1346
+ @StepSet = stepset
1347
+ @DeviceSet = deviceset
1348
+ @BaseInfo = baseinfo
1349
+ @RejectReason = rejectreason
1350
+ @RequestId = requestid
1351
+ end
1352
+
1353
+ def deserialize(params)
1354
+ @OrderId = params['OrderId']
1355
+ @ServiceType = params['ServiceType']
1356
+ @OrderType = params['OrderType']
1357
+ @OrderStatus = params['OrderStatus']
1358
+ unless params['StepSet'].nil?
1359
+ @StepSet = []
1360
+ params['StepSet'].each do |i|
1361
+ orderstep_tmp = OrderStep.new
1362
+ orderstep_tmp.deserialize(i)
1363
+ @StepSet << orderstep_tmp
1364
+ end
1365
+ end
1366
+ unless params['DeviceSet'].nil?
1367
+ @DeviceSet = []
1368
+ params['DeviceSet'].each do |i|
1369
+ devicehistory_tmp = DeviceHistory.new
1370
+ devicehistory_tmp.deserialize(i)
1371
+ @DeviceSet << devicehistory_tmp
1372
+ end
1373
+ end
1374
+ unless params['BaseInfo'].nil?
1375
+ @BaseInfo = DeviceOrderBaseInfo.new
1376
+ @BaseInfo.deserialize(params['BaseInfo'])
1377
+ end
1378
+ @RejectReason = params['RejectReason']
1379
+ @RequestId = params['RequestId']
1380
+ end
1381
+ end
1382
+
1383
+ # DescribeIdcUnitAssetDetail请求参数结构体
1384
+ class DescribeIdcUnitAssetDetailRequest < TencentCloud::Common::AbstractModel
1385
+ # @param IdcUnitId: 机房管理单元ID
1386
+ # @type IdcUnitId: Integer
1387
+
1388
+ attr_accessor :IdcUnitId
1389
+
1390
+ def initialize(idcunitid=nil)
1391
+ @IdcUnitId = idcunitid
1392
+ end
1393
+
1394
+ def deserialize(params)
1395
+ @IdcUnitId = params['IdcUnitId']
1396
+ end
1397
+ end
1398
+
1399
+ # DescribeIdcUnitAssetDetail返回参数结构体
1400
+ class DescribeIdcUnitAssetDetailResponse < TencentCloud::Common::AbstractModel
1401
+ # @param IdcUnitDetail: 机房管理单元详情
1402
+ # @type IdcUnitDetail: :class:`Tencentcloud::Chc.v20230418.models.IdcUnitInfo`
1403
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1404
+ # @type RequestId: String
1405
+
1406
+ attr_accessor :IdcUnitDetail, :RequestId
1407
+
1408
+ def initialize(idcunitdetail=nil, requestid=nil)
1409
+ @IdcUnitDetail = idcunitdetail
1410
+ @RequestId = requestid
1411
+ end
1412
+
1413
+ def deserialize(params)
1414
+ unless params['IdcUnitDetail'].nil?
1415
+ @IdcUnitDetail = IdcUnitInfo.new
1416
+ @IdcUnitDetail.deserialize(params['IdcUnitDetail'])
1417
+ end
1418
+ @RequestId = params['RequestId']
1419
+ end
1420
+ end
1421
+
1422
+ # DescribeIdcUnitDetail请求参数结构体
1423
+ class DescribeIdcUnitDetailRequest < TencentCloud::Common::AbstractModel
1424
+ # @param IdcUnitId: 机房管理单元ID
1425
+ # @type IdcUnitId: Integer
1426
+
1427
+ attr_accessor :IdcUnitId
1428
+
1429
+ def initialize(idcunitid=nil)
1430
+ @IdcUnitId = idcunitid
1431
+ end
1432
+
1433
+ def deserialize(params)
1434
+ @IdcUnitId = params['IdcUnitId']
1435
+ end
1436
+ end
1437
+
1438
+ # DescribeIdcUnitDetail返回参数结构体
1439
+ class DescribeIdcUnitDetailResponse < TencentCloud::Common::AbstractModel
1440
+ # @param IdcUnitDetail: 机房管理单元详情
1441
+ # @type IdcUnitDetail: :class:`Tencentcloud::Chc.v20230418.models.IdcUnitInfo`
1442
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1443
+ # @type RequestId: String
1444
+
1445
+ attr_accessor :IdcUnitDetail, :RequestId
1446
+
1447
+ def initialize(idcunitdetail=nil, requestid=nil)
1448
+ @IdcUnitDetail = idcunitdetail
1449
+ @RequestId = requestid
1450
+ end
1451
+
1452
+ def deserialize(params)
1453
+ unless params['IdcUnitDetail'].nil?
1454
+ @IdcUnitDetail = IdcUnitInfo.new
1455
+ @IdcUnitDetail.deserialize(params['IdcUnitDetail'])
1456
+ end
1457
+ @RequestId = params['RequestId']
1458
+ end
1459
+ end
1460
+
1461
+ # DescribeIdcs请求参数结构体
1462
+ class DescribeIdcsRequest < TencentCloud::Common::AbstractModel
1463
+
1464
+
1465
+ def initialize()
1466
+ end
1467
+
1468
+ def deserialize(params)
1469
+ end
1470
+ end
1471
+
1472
+ # DescribeIdcs返回参数结构体
1473
+ class DescribeIdcsResponse < TencentCloud::Common::AbstractModel
1474
+ # @param IdcSet: 机房管理单元列表
1475
+ # @type IdcSet: Array
1476
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1477
+ # @type RequestId: String
1478
+
1479
+ attr_accessor :IdcSet, :RequestId
1480
+
1481
+ def initialize(idcset=nil, requestid=nil)
1482
+ @IdcSet = idcset
1483
+ @RequestId = requestid
1484
+ end
1485
+
1486
+ def deserialize(params)
1487
+ unless params['IdcSet'].nil?
1488
+ @IdcSet = []
1489
+ params['IdcSet'].each do |i|
1490
+ idc_tmp = Idc.new
1491
+ idc_tmp.deserialize(i)
1492
+ @IdcSet << idc_tmp
1493
+ end
1494
+ end
1495
+ @RequestId = params['RequestId']
1496
+ end
1497
+ end
1498
+
1499
+ # DescribeModelEvaluationWorkOrderDetail请求参数结构体
1500
+ class DescribeModelEvaluationWorkOrderDetailRequest < TencentCloud::Common::AbstractModel
1501
+ # @param OrderId: 工单ID
1502
+ # @type OrderId: String
1503
+
1504
+ attr_accessor :OrderId
1505
+
1506
+ def initialize(orderid=nil)
1507
+ @OrderId = orderid
1508
+ end
1509
+
1510
+ def deserialize(params)
1511
+ @OrderId = params['OrderId']
1512
+ end
1513
+ end
1514
+
1515
+ # DescribeModelEvaluationWorkOrderDetail返回参数结构体
1516
+ class DescribeModelEvaluationWorkOrderDetailResponse < TencentCloud::Common::AbstractModel
1517
+ # @param StepSet: 工单进度
1518
+ # @type StepSet: Array
1519
+ # @param BaseInfo: 工单详情
1520
+ # @type BaseInfo: :class:`Tencentcloud::Chc.v20230418.models.ModelEvaluationBaseInfo`
1521
+ # @param NetDeviceModelSet: 评估中的网络设备型号详情
1522
+ # @type NetDeviceModelSet: Array
1523
+ # @param ServerModelSet: 评估中的服务器型号详情
1524
+ # @type ServerModelSet: Array
1525
+ # @param OrderStatus: 订单状态, process 处理中 ,reject 已拒绝 ,finish 已完成,exception 异常
1526
+ # @type OrderStatus: String
1527
+ # @param RejectReason: 工单拒绝原因
1528
+ # @type RejectReason: String
1529
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1530
+ # @type RequestId: String
1531
+
1532
+ attr_accessor :StepSet, :BaseInfo, :NetDeviceModelSet, :ServerModelSet, :OrderStatus, :RejectReason, :RequestId
1533
+
1534
+ def initialize(stepset=nil, baseinfo=nil, netdevicemodelset=nil, servermodelset=nil, orderstatus=nil, rejectreason=nil, requestid=nil)
1535
+ @StepSet = stepset
1536
+ @BaseInfo = baseinfo
1537
+ @NetDeviceModelSet = netdevicemodelset
1538
+ @ServerModelSet = servermodelset
1539
+ @OrderStatus = orderstatus
1540
+ @RejectReason = rejectreason
1541
+ @RequestId = requestid
1542
+ end
1543
+
1544
+ def deserialize(params)
1545
+ unless params['StepSet'].nil?
1546
+ @StepSet = []
1547
+ params['StepSet'].each do |i|
1548
+ orderstep_tmp = OrderStep.new
1549
+ orderstep_tmp.deserialize(i)
1550
+ @StepSet << orderstep_tmp
1551
+ end
1552
+ end
1553
+ unless params['BaseInfo'].nil?
1554
+ @BaseInfo = ModelEvaluationBaseInfo.new
1555
+ @BaseInfo.deserialize(params['BaseInfo'])
1556
+ end
1557
+ unless params['NetDeviceModelSet'].nil?
1558
+ @NetDeviceModelSet = []
1559
+ params['NetDeviceModelSet'].each do |i|
1560
+ modelversiondetail_tmp = ModelVersionDetail.new
1561
+ modelversiondetail_tmp.deserialize(i)
1562
+ @NetDeviceModelSet << modelversiondetail_tmp
1563
+ end
1564
+ end
1565
+ unless params['ServerModelSet'].nil?
1566
+ @ServerModelSet = []
1567
+ params['ServerModelSet'].each do |i|
1568
+ modelversiondetail_tmp = ModelVersionDetail.new
1569
+ modelversiondetail_tmp.deserialize(i)
1570
+ @ServerModelSet << modelversiondetail_tmp
1571
+ end
1572
+ end
1573
+ @OrderStatus = params['OrderStatus']
1574
+ @RejectReason = params['RejectReason']
1575
+ @RequestId = params['RequestId']
1576
+ end
1577
+ end
1578
+
1579
+ # DescribeModel请求参数结构体
1580
+ class DescribeModelRequest < TencentCloud::Common::AbstractModel
1581
+ # @param DevModel: 服务器设备型号
1582
+ # @type DevModel: String
1583
+ # @param CampusId: 园区ID
1584
+ # @type CampusId: Integer
1585
+ # @param DeviceType: 设备类型,服务器传入 server,网络设备传入 netDevice
1586
+ # @type DeviceType: String
1587
+ # @param Checked: 是否只返回已评估的版本
1588
+ # @type Checked: Boolean
1589
+
1590
+ attr_accessor :DevModel, :CampusId, :DeviceType, :Checked
1591
+
1592
+ def initialize(devmodel=nil, campusid=nil, devicetype=nil, checked=nil)
1593
+ @DevModel = devmodel
1594
+ @CampusId = campusid
1595
+ @DeviceType = devicetype
1596
+ @Checked = checked
1597
+ end
1598
+
1599
+ def deserialize(params)
1600
+ @DevModel = params['DevModel']
1601
+ @CampusId = params['CampusId']
1602
+ @DeviceType = params['DeviceType']
1603
+ @Checked = params['Checked']
1604
+ end
1605
+ end
1606
+
1607
+ # DescribeModel返回参数结构体
1608
+ class DescribeModelResponse < TencentCloud::Common::AbstractModel
1609
+ # @param ModelSet: 设备型号详情
1610
+ # @type ModelSet: Array
1611
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1612
+ # @type RequestId: String
1613
+
1614
+ attr_accessor :ModelSet, :RequestId
1615
+
1616
+ def initialize(modelset=nil, requestid=nil)
1617
+ @ModelSet = modelset
1618
+ @RequestId = requestid
1619
+ end
1620
+
1621
+ def deserialize(params)
1622
+ unless params['ModelSet'].nil?
1623
+ @ModelSet = []
1624
+ params['ModelSet'].each do |i|
1625
+ modelversiondetail_tmp = ModelVersionDetail.new
1626
+ modelversiondetail_tmp.deserialize(i)
1627
+ @ModelSet << modelversiondetail_tmp
1628
+ end
1629
+ end
1630
+ @RequestId = params['RequestId']
1631
+ end
1632
+ end
1633
+
1634
+ # DescribeModelTemplate请求参数结构体
1635
+ class DescribeModelTemplateRequest < TencentCloud::Common::AbstractModel
1636
+ # @param DeviceType: 型号类型,只支持传入 server 和 netDevice
1637
+ # @type DeviceType: String
1638
+
1639
+ attr_accessor :DeviceType
1640
+
1641
+ def initialize(devicetype=nil)
1642
+ @DeviceType = devicetype
1643
+ end
1644
+
1645
+ def deserialize(params)
1646
+ @DeviceType = params['DeviceType']
1647
+ end
1648
+ end
1649
+
1650
+ # DescribeModelTemplate返回参数结构体
1651
+ class DescribeModelTemplateResponse < TencentCloud::Common::AbstractModel
1652
+ # @param TemplateDetail: 该型号模板的选项列表
1653
+ # @type TemplateDetail: Array
1654
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1655
+ # @type RequestId: String
1656
+
1657
+ attr_accessor :TemplateDetail, :RequestId
1658
+
1659
+ def initialize(templatedetail=nil, requestid=nil)
1660
+ @TemplateDetail = templatedetail
1661
+ @RequestId = requestid
1662
+ end
1663
+
1664
+ def deserialize(params)
1665
+ unless params['TemplateDetail'].nil?
1666
+ @TemplateDetail = []
1667
+ params['TemplateDetail'].each do |i|
1668
+ templateoption_tmp = TemplateOption.new
1669
+ templateoption_tmp.deserialize(i)
1670
+ @TemplateDetail << templateoption_tmp
1671
+ end
1672
+ end
1673
+ @RequestId = params['RequestId']
1674
+ end
1675
+ end
1676
+
1677
+ # DescribeModelVersionList请求参数结构体
1678
+ class DescribeModelVersionListRequest < TencentCloud::Common::AbstractModel
1679
+ # @param DeviceType: 型号类型,只支持传入 netDevice 和 server
1680
+ # @type DeviceType: String
1681
+ # @param Filters: model-name 型号名称 类型:String 必选:否
1682
+ # @type Filters: Array
1683
+ # @param Checked: 是否已评估
1684
+ # @type Checked: Boolean
1685
+ # @param CampusId: 园区ID,当 Checked 参数传 True 时,该参数必须传值
1686
+ # @type CampusId: Integer
1687
+
1688
+ attr_accessor :DeviceType, :Filters, :Checked, :CampusId
1689
+
1690
+ def initialize(devicetype=nil, filters=nil, checked=nil, campusid=nil)
1691
+ @DeviceType = devicetype
1692
+ @Filters = filters
1693
+ @Checked = checked
1694
+ @CampusId = campusid
1695
+ end
1696
+
1697
+ def deserialize(params)
1698
+ @DeviceType = params['DeviceType']
1699
+ unless params['Filters'].nil?
1700
+ @Filters = []
1701
+ params['Filters'].each do |i|
1702
+ filter_tmp = Filter.new
1703
+ filter_tmp.deserialize(i)
1704
+ @Filters << filter_tmp
1705
+ end
1706
+ end
1707
+ @Checked = params['Checked']
1708
+ @CampusId = params['CampusId']
1709
+ end
1710
+ end
1711
+
1712
+ # DescribeModelVersionList返回参数结构体
1713
+ class DescribeModelVersionListResponse < TencentCloud::Common::AbstractModel
1714
+ # @param ModelVersionSet: 型号和对应的版本数量
1715
+ # @type ModelVersionSet: Array
1716
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1717
+ # @type RequestId: String
1718
+
1719
+ attr_accessor :ModelVersionSet, :RequestId
1720
+
1721
+ def initialize(modelversionset=nil, requestid=nil)
1722
+ @ModelVersionSet = modelversionset
1723
+ @RequestId = requestid
1724
+ end
1725
+
1726
+ def deserialize(params)
1727
+ unless params['ModelVersionSet'].nil?
1728
+ @ModelVersionSet = []
1729
+ params['ModelVersionSet'].each do |i|
1730
+ modelversioncount_tmp = ModelVersionCount.new
1731
+ modelversioncount_tmp.deserialize(i)
1732
+ @ModelVersionSet << modelversioncount_tmp
1733
+ end
1734
+ end
1735
+ @RequestId = params['RequestId']
1736
+ end
1737
+ end
1738
+
1739
+ # DescribePersonnelVisitWorkOrderDetail请求参数结构体
1740
+ class DescribePersonnelVisitWorkOrderDetailRequest < TencentCloud::Common::AbstractModel
1741
+ # @param OrderId: 工单ID
1742
+ # @type OrderId: String
1743
+
1744
+ attr_accessor :OrderId
1745
+
1746
+ def initialize(orderid=nil)
1747
+ @OrderId = orderid
1748
+ end
1749
+
1750
+ def deserialize(params)
1751
+ @OrderId = params['OrderId']
1752
+ end
1753
+ end
1754
+
1755
+ # DescribePersonnelVisitWorkOrderDetail返回参数结构体
1756
+ class DescribePersonnelVisitWorkOrderDetailResponse < TencentCloud::Common::AbstractModel
1757
+ # @param StepSet: 工单进度
1758
+ # @type StepSet: Array
1759
+ # @param BaseInfo: 工单详情
1760
+ # @type BaseInfo: :class:`Tencentcloud::Chc.v20230418.models.PersonnelVisitBaseInfo`
1761
+ # @param PersonnelSet: 到访人员详情
1762
+ # @type PersonnelSet: Array
1763
+ # @param OrderStatus: 工单状态 订单状态, processing 处理中 ,reject 已拒绝 ,finish 已完成,exception 异常
1764
+ # @type OrderStatus: String
1765
+ # @param RejectReason: 拒绝原因
1766
+ # @type RejectReason: String
1767
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1768
+ # @type RequestId: String
1769
+
1770
+ attr_accessor :StepSet, :BaseInfo, :PersonnelSet, :OrderStatus, :RejectReason, :RequestId
1771
+
1772
+ def initialize(stepset=nil, baseinfo=nil, personnelset=nil, orderstatus=nil, rejectreason=nil, requestid=nil)
1773
+ @StepSet = stepset
1774
+ @BaseInfo = baseinfo
1775
+ @PersonnelSet = personnelset
1776
+ @OrderStatus = orderstatus
1777
+ @RejectReason = rejectreason
1778
+ @RequestId = requestid
1779
+ end
1780
+
1781
+ def deserialize(params)
1782
+ unless params['StepSet'].nil?
1783
+ @StepSet = []
1784
+ params['StepSet'].each do |i|
1785
+ orderstep_tmp = OrderStep.new
1786
+ orderstep_tmp.deserialize(i)
1787
+ @StepSet << orderstep_tmp
1788
+ end
1789
+ end
1790
+ unless params['BaseInfo'].nil?
1791
+ @BaseInfo = PersonnelVisitBaseInfo.new
1792
+ @BaseInfo.deserialize(params['BaseInfo'])
1793
+ end
1794
+ unless params['PersonnelSet'].nil?
1795
+ @PersonnelSet = []
1796
+ params['PersonnelSet'].each do |i|
1797
+ personnel_tmp = Personnel.new
1798
+ personnel_tmp.deserialize(i)
1799
+ @PersonnelSet << personnel_tmp
1800
+ end
1801
+ end
1802
+ @OrderStatus = params['OrderStatus']
1803
+ @RejectReason = params['RejectReason']
1804
+ @RequestId = params['RequestId']
1805
+ end
1806
+ end
1807
+
1808
+ # DescribePositionStatusSummary请求参数结构体
1809
+ class DescribePositionStatusSummaryRequest < TencentCloud::Common::AbstractModel
1810
+ # @param Filters: <li><strong>rack-id</strong></li> <p style="padding-left: 30px;">按照【<strong>机架ID</strong>】进行过滤。例如:15082。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"></p> <li><strong> rack-name</strong></li> <p style="padding-left: 30px;">按照【<strong>机架名称</strong>】进行过滤,机架名称例如:M301-E10。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong> idc-id</strong></li> <p style="padding-left: 30px;">按照【<strong>机房ID</strong>】进行过滤,机房ID例如:159。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>idc-unit-id </strong></li> <p style="padding-left: 30px;">按照【<strong>机房管理单元ID</strong>】进行过滤,机房管理ID例如:568。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>position-status</strong></li> <p style="padding-left: 30px;">按照【<strong>机位状态</strong>】进行过滤,机位状态只包含以下四种:机位状态,0 空闲,1 已用,2 不可用,3 预占用,4 预留,例如: 0。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>op-status</strong></li> <p style="padding-left: 30px;">按照【<strong>操作状态</strong>】进行过滤,操作状态只包含两种:FINISH 操作完成,PENDING 操作中,例如: PENDING。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1811
+ # @type Filters: Array
1812
+
1813
+ attr_accessor :Filters
1814
+
1815
+ def initialize(filters=nil)
1816
+ @Filters = filters
1817
+ end
1818
+
1819
+ def deserialize(params)
1820
+ unless params['Filters'].nil?
1821
+ @Filters = []
1822
+ params['Filters'].each do |i|
1823
+ filter_tmp = Filter.new
1824
+ filter_tmp.deserialize(i)
1825
+ @Filters << filter_tmp
1826
+ end
1827
+ end
1828
+ end
1829
+ end
1830
+
1831
+ # DescribePositionStatusSummary返回参数结构体
1832
+ class DescribePositionStatusSummaryResponse < TencentCloud::Common::AbstractModel
1833
+ # @param Total: 总数
1834
+ # @type Total: Integer
1835
+ # @param StatusCountSet: 状态及对应数量
1836
+ # @type StatusCountSet: Array
1837
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1838
+ # @type RequestId: String
1839
+
1840
+ attr_accessor :Total, :StatusCountSet, :RequestId
1841
+
1842
+ def initialize(total=nil, statuscountset=nil, requestid=nil)
1843
+ @Total = total
1844
+ @StatusCountSet = statuscountset
1845
+ @RequestId = requestid
1846
+ end
1847
+
1848
+ def deserialize(params)
1849
+ @Total = params['Total']
1850
+ unless params['StatusCountSet'].nil?
1851
+ @StatusCountSet = []
1852
+ params['StatusCountSet'].each do |i|
1853
+ positionstatusitem_tmp = PositionStatusItem.new
1854
+ positionstatusitem_tmp.deserialize(i)
1855
+ @StatusCountSet << positionstatusitem_tmp
1856
+ end
1857
+ end
1858
+ @RequestId = params['RequestId']
1859
+ end
1860
+ end
1861
+
1862
+ # DescribePositions请求参数结构体
1863
+ class DescribePositionsRequest < TencentCloud::Common::AbstractModel
1864
+ # @param Offset: 偏移量,默认为0。关于Offset的更进一步介绍请参考 API 简介中的相关小节。
1865
+ # @type Offset: Integer
1866
+ # @param Limit: 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API 简介中的相关小节。
1867
+ # @type Limit: Integer
1868
+ # @param Filters: <li><strong>rack-id</strong></li> <p style="padding-left: 30px;">按照【<strong>机架ID</strong>】进行过滤。例如:15082。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"></p> <li><strong> rack-name</strong></li> <p style="padding-left: 30px;">按照【<strong>机架名称</strong>】进行过滤,机架名称例如:M301-E10。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong> idc-id</strong></li> <p style="padding-left: 30px;">按照【<strong>机房ID</strong>】进行过滤,机房ID例如:159。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>idc-unit-id </strong></li> <p style="padding-left: 30px;">按照【<strong>机房管理单元ID</strong>】进行过滤,机房管理ID例如:568。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>position-status</strong></li> <p style="padding-left: 30px;">按照【<strong>机位状态</strong>】进行过滤,机位状态只包含以下四种:机位状态,0 空闲,1 已用,2 不可用,3 预占用,4 预留,例如: 0。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1869
+ # <li><strong>op-status</strong></li> <p style="padding-left: 30px;">按照【<strong>操作状态</strong>】进行过滤,操作状态只包含两种:FINISH 操作完成,PENDING 操作中,例如: PENDING。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1870
+ # @type Filters: Array
1871
+
1872
+ attr_accessor :Offset, :Limit, :Filters
1873
+
1874
+ def initialize(offset=nil, limit=nil, filters=nil)
1875
+ @Offset = offset
1876
+ @Limit = limit
1877
+ @Filters = filters
1878
+ end
1879
+
1880
+ def deserialize(params)
1881
+ @Offset = params['Offset']
1882
+ @Limit = params['Limit']
1883
+ unless params['Filters'].nil?
1884
+ @Filters = []
1885
+ params['Filters'].each do |i|
1886
+ filter_tmp = Filter.new
1887
+ filter_tmp.deserialize(i)
1888
+ @Filters << filter_tmp
1889
+ end
1890
+ end
1891
+ end
1892
+ end
1893
+
1894
+ # DescribePositions返回参数结构体
1895
+ class DescribePositionsResponse < TencentCloud::Common::AbstractModel
1896
+ # @param PositionSet: 客户拥有的机位列表
1897
+ # @type PositionSet: Array
1898
+ # @param Total: 总数
1899
+ # @type Total: Integer
1900
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1901
+ # @type RequestId: String
1902
+
1903
+ attr_accessor :PositionSet, :Total, :RequestId
1904
+
1905
+ def initialize(positionset=nil, total=nil, requestid=nil)
1906
+ @PositionSet = positionset
1907
+ @Total = total
1908
+ @RequestId = requestid
1909
+ end
1910
+
1911
+ def deserialize(params)
1912
+ unless params['PositionSet'].nil?
1913
+ @PositionSet = []
1914
+ params['PositionSet'].each do |i|
1915
+ position_tmp = Position.new
1916
+ position_tmp.deserialize(i)
1917
+ @PositionSet << position_tmp
1918
+ end
1919
+ end
1920
+ @Total = params['Total']
1921
+ @RequestId = params['RequestId']
1922
+ end
1923
+ end
1924
+
1925
+ # DescribeRacksDistribution请求参数结构体
1926
+ class DescribeRacksDistributionRequest < TencentCloud::Common::AbstractModel
1927
+ # @param IdcUnitId: 机房管理单元ID
1928
+ # @type IdcUnitId: Integer
1929
+
1930
+ attr_accessor :IdcUnitId
1931
+
1932
+ def initialize(idcunitid=nil)
1933
+ @IdcUnitId = idcunitid
1934
+ end
1935
+
1936
+ def deserialize(params)
1937
+ @IdcUnitId = params['IdcUnitId']
1938
+ end
1939
+ end
1940
+
1941
+ # DescribeRacksDistribution返回参数结构体
1942
+ class DescribeRacksDistributionResponse < TencentCloud::Common::AbstractModel
1943
+ # @param DistributionSet: 机架的用量分布
1944
+ # @type DistributionSet: Array
1945
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1946
+ # @type RequestId: String
1947
+
1948
+ attr_accessor :DistributionSet, :RequestId
1949
+
1950
+ def initialize(distributionset=nil, requestid=nil)
1951
+ @DistributionSet = distributionset
1952
+ @RequestId = requestid
1953
+ end
1954
+
1955
+ def deserialize(params)
1956
+ unless params['DistributionSet'].nil?
1957
+ @DistributionSet = []
1958
+ params['DistributionSet'].each do |i|
1959
+ distribution_tmp = Distribution.new
1960
+ distribution_tmp.deserialize(i)
1961
+ @DistributionSet << distribution_tmp
1962
+ end
1963
+ end
1964
+ @RequestId = params['RequestId']
1965
+ end
1966
+ end
1967
+
1968
+ # DescribeRacks请求参数结构体
1969
+ class DescribeRacksRequest < TencentCloud::Common::AbstractModel
1970
+ # @param Offset: 偏移量,默认为0。关于Offset的更进一步介绍请参考 API 简介中的相关小节。
1971
+ # @type Offset: Integer
1972
+ # @param Limit: 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API 简介中的相关小节。
1973
+ # @type Limit: Integer
1974
+ # @param Filters: 过滤条件
1975
+
1976
+ # rack-id
1977
+ # 按照机架id进行过滤。
1978
+ # 类型:String
1979
+ # 必选:否
1980
+
1981
+ # rack-name
1982
+ # 按照机架名称进行过滤。
1983
+ # 类型:String
1984
+ # 必选:否
1985
+
1986
+ # idc-id
1987
+ # 按照机房id进行过滤。
1988
+ # 类型:String
1989
+ # 必选:否
1990
+
1991
+ # idc-unit-id
1992
+ # 按照机房管理单元id过滤
1993
+ # 类型: String
1994
+ # 必选: 否
1995
+
1996
+ # is-power-on
1997
+ # 按照是否开电进行过滤,支持传入 0 和 1。1 代表开电,0 代表关电
1998
+ # 类型: String
1999
+ # 必选: 否
2000
+
2001
+ # hosting-type
2002
+ # 按照托管类型进行过滤。支持传入 CUSTOMER_MIX 代表客户混合,CUSTOMER_ONLY 代表客户独享 ,NOT_INIT 代表未初始化
2003
+ # 类型: String
2004
+ # 必选: 否
2005
+
2006
+ # @type Filters: Array
2007
+ # @param DstService: 传入目标服务,返回允许进行此服务的机架列表;可以和Filters一起使用。允许的值:('rackPowerOn', 'rackPowerOff')
2008
+ # @type DstService: String
2009
+
2010
+ attr_accessor :Offset, :Limit, :Filters, :DstService
2011
+
2012
+ def initialize(offset=nil, limit=nil, filters=nil, dstservice=nil)
2013
+ @Offset = offset
2014
+ @Limit = limit
2015
+ @Filters = filters
2016
+ @DstService = dstservice
2017
+ end
2018
+
2019
+ def deserialize(params)
2020
+ @Offset = params['Offset']
2021
+ @Limit = params['Limit']
2022
+ unless params['Filters'].nil?
2023
+ @Filters = []
2024
+ params['Filters'].each do |i|
2025
+ filter_tmp = Filter.new
2026
+ filter_tmp.deserialize(i)
2027
+ @Filters << filter_tmp
2028
+ end
2029
+ end
2030
+ @DstService = params['DstService']
2031
+ end
2032
+ end
2033
+
2034
+ # DescribeRacks返回参数结构体
2035
+ class DescribeRacksResponse < TencentCloud::Common::AbstractModel
2036
+ # @param RackSet: 客户拥有的机架列表
2037
+ # @type RackSet: Array
2038
+ # @param Total: 总数
2039
+ # @type Total: Integer
2040
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2041
+ # @type RequestId: String
2042
+
2043
+ attr_accessor :RackSet, :Total, :RequestId
2044
+
2045
+ def initialize(rackset=nil, total=nil, requestid=nil)
2046
+ @RackSet = rackset
2047
+ @Total = total
2048
+ @RequestId = requestid
2049
+ end
2050
+
2051
+ def deserialize(params)
2052
+ unless params['RackSet'].nil?
2053
+ @RackSet = []
2054
+ params['RackSet'].each do |i|
2055
+ rack_tmp = Rack.new
2056
+ rack_tmp.deserialize(i)
2057
+ @RackSet << rack_tmp
2058
+ end
2059
+ end
2060
+ @Total = params['Total']
2061
+ @RequestId = params['RequestId']
2062
+ end
2063
+ end
2064
+
2065
+ # DescribeResourceUsage请求参数结构体
2066
+ class DescribeResourceUsageRequest < TencentCloud::Common::AbstractModel
2067
+ # @param Filters: 过滤条件
2068
+ # @type Filters: Array
2069
+
2070
+ attr_accessor :Filters
2071
+
2072
+ def initialize(filters=nil)
2073
+ @Filters = filters
2074
+ end
2075
+
2076
+ def deserialize(params)
2077
+ unless params['Filters'].nil?
2078
+ @Filters = []
2079
+ params['Filters'].each do |i|
2080
+ filter_tmp = Filter.new
2081
+ filter_tmp.deserialize(i)
2082
+ @Filters << filter_tmp
2083
+ end
2084
+ end
2085
+ end
2086
+ end
2087
+
2088
+ # DescribeResourceUsage返回参数结构体
2089
+ class DescribeResourceUsageResponse < TencentCloud::Common::AbstractModel
2090
+ # @param HostingServerCount: 托管服务器数量
2091
+ # @type HostingServerCount: Integer
2092
+ # @param RentServerCount: 租用服务器数量
2093
+ # @type RentServerCount: Integer
2094
+ # @param NetDeviceCount: 网络设备数量
2095
+ # @type NetDeviceCount: Integer
2096
+ # @param RackTotalCount: 机架总数
2097
+ # @type RackTotalCount: Integer
2098
+ # @param RackPowerOnCount: 开电机架总数
2099
+ # @type RackPowerOnCount: Integer
2100
+ # @param PositionUsedCount: 机位使用数量
2101
+ # @type PositionUsedCount: Integer
2102
+ # @param PositionTotalCount: 机位总数
2103
+ # @type PositionTotalCount: Integer
2104
+ # @param RackPowerOnRate: 机架开电率,保留一位小数
2105
+ # @type RackPowerOnRate: String
2106
+ # @param PositionUsedRate: 机位使用率,
2107
+ # @type PositionUsedRate: String
2108
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2109
+ # @type RequestId: String
2110
+
2111
+ attr_accessor :HostingServerCount, :RentServerCount, :NetDeviceCount, :RackTotalCount, :RackPowerOnCount, :PositionUsedCount, :PositionTotalCount, :RackPowerOnRate, :PositionUsedRate, :RequestId
2112
+
2113
+ def initialize(hostingservercount=nil, rentservercount=nil, netdevicecount=nil, racktotalcount=nil, rackpoweroncount=nil, positionusedcount=nil, positiontotalcount=nil, rackpoweronrate=nil, positionusedrate=nil, requestid=nil)
2114
+ @HostingServerCount = hostingservercount
2115
+ @RentServerCount = rentservercount
2116
+ @NetDeviceCount = netdevicecount
2117
+ @RackTotalCount = racktotalcount
2118
+ @RackPowerOnCount = rackpoweroncount
2119
+ @PositionUsedCount = positionusedcount
2120
+ @PositionTotalCount = positiontotalcount
2121
+ @RackPowerOnRate = rackpoweronrate
2122
+ @PositionUsedRate = positionusedrate
2123
+ @RequestId = requestid
2124
+ end
2125
+
2126
+ def deserialize(params)
2127
+ @HostingServerCount = params['HostingServerCount']
2128
+ @RentServerCount = params['RentServerCount']
2129
+ @NetDeviceCount = params['NetDeviceCount']
2130
+ @RackTotalCount = params['RackTotalCount']
2131
+ @RackPowerOnCount = params['RackPowerOnCount']
2132
+ @PositionUsedCount = params['PositionUsedCount']
2133
+ @PositionTotalCount = params['PositionTotalCount']
2134
+ @RackPowerOnRate = params['RackPowerOnRate']
2135
+ @PositionUsedRate = params['PositionUsedRate']
2136
+ @RequestId = params['RequestId']
2137
+ end
2138
+ end
2139
+
2140
+ # DescribeWorkOrderList请求参数结构体
2141
+ class DescribeWorkOrderListRequest < TencentCloud::Common::AbstractModel
2142
+ # @param Filters: 过滤条件。支持:service-type、order-type、order-status、order-id
2143
+ # @type Filters: Array
2144
+ # @param SnList: 通过sn过滤工单,上限10个
2145
+ # @type SnList: Array
2146
+ # @param Offset: 起始
2147
+ # @type Offset: Integer
2148
+ # @param Limit: 长度
2149
+ # @type Limit: Integer
2150
+
2151
+ attr_accessor :Filters, :SnList, :Offset, :Limit
2152
+
2153
+ def initialize(filters=nil, snlist=nil, offset=nil, limit=nil)
2154
+ @Filters = filters
2155
+ @SnList = snlist
2156
+ @Offset = offset
2157
+ @Limit = limit
2158
+ end
2159
+
2160
+ def deserialize(params)
2161
+ unless params['Filters'].nil?
2162
+ @Filters = []
2163
+ params['Filters'].each do |i|
2164
+ filter_tmp = Filter.new
2165
+ filter_tmp.deserialize(i)
2166
+ @Filters << filter_tmp
2167
+ end
2168
+ end
2169
+ @SnList = params['SnList']
2170
+ @Offset = params['Offset']
2171
+ @Limit = params['Limit']
2172
+ end
2173
+ end
2174
+
2175
+ # DescribeWorkOrderList返回参数结构体
2176
+ class DescribeWorkOrderListResponse < TencentCloud::Common::AbstractModel
2177
+ # @param TotalCount: 总数
2178
+ # @type TotalCount: Integer
2179
+ # @param WorkOrderSet: 查询结果
2180
+ # @type WorkOrderSet: Array
2181
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2182
+ # @type RequestId: String
2183
+
2184
+ attr_accessor :TotalCount, :WorkOrderSet, :RequestId
2185
+
2186
+ def initialize(totalcount=nil, workorderset=nil, requestid=nil)
2187
+ @TotalCount = totalcount
2188
+ @WorkOrderSet = workorderset
2189
+ @RequestId = requestid
2190
+ end
2191
+
2192
+ def deserialize(params)
2193
+ @TotalCount = params['TotalCount']
2194
+ unless params['WorkOrderSet'].nil?
2195
+ @WorkOrderSet = []
2196
+ params['WorkOrderSet'].each do |i|
2197
+ workorderdata_tmp = WorkOrderData.new
2198
+ workorderdata_tmp.deserialize(i)
2199
+ @WorkOrderSet << workorderdata_tmp
2200
+ end
2201
+ end
2202
+ @RequestId = params['RequestId']
2203
+ end
2204
+ end
2205
+
2206
+ # DescribeWorkOrderStatistics请求参数结构体
2207
+ class DescribeWorkOrderStatisticsRequest < TencentCloud::Common::AbstractModel
2208
+
2209
+
2210
+ def initialize()
2211
+ end
2212
+
2213
+ def deserialize(params)
2214
+ end
2215
+ end
2216
+
2217
+ # DescribeWorkOrderStatistics返回参数结构体
2218
+ class DescribeWorkOrderStatisticsResponse < TencentCloud::Common::AbstractModel
2219
+ # @param TotalNum: 总工单数量
2220
+ # @type TotalNum: Integer
2221
+ # @param ProcessingNum: 进行中的工单数量
2222
+ # @type ProcessingNum: Integer
2223
+ # @param ConfirmingNum: 待确认的工单数量
2224
+ # @type ConfirmingNum: Integer
2225
+ # @param FinishNum: 完成的工单数量
2226
+ # @type FinishNum: Integer
2227
+ # @param RejectNum: 拒绝的工单数量
2228
+ # @type RejectNum: Integer
2229
+ # @param ExceptionNum: 异常的工单数量
2230
+ # @type ExceptionNum: Integer
2231
+ # @param CancelNum: 客户取消的工单数量
2232
+ # @type CancelNum: Integer
2233
+ # @param CheckingNum: 围笼进出审核的工单数量
2234
+ # @type CheckingNum: Integer
2235
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2236
+ # @type RequestId: String
2237
+
2238
+ attr_accessor :TotalNum, :ProcessingNum, :ConfirmingNum, :FinishNum, :RejectNum, :ExceptionNum, :CancelNum, :CheckingNum, :RequestId
2239
+
2240
+ def initialize(totalnum=nil, processingnum=nil, confirmingnum=nil, finishnum=nil, rejectnum=nil, exceptionnum=nil, cancelnum=nil, checkingnum=nil, requestid=nil)
2241
+ @TotalNum = totalnum
2242
+ @ProcessingNum = processingnum
2243
+ @ConfirmingNum = confirmingnum
2244
+ @FinishNum = finishnum
2245
+ @RejectNum = rejectnum
2246
+ @ExceptionNum = exceptionnum
2247
+ @CancelNum = cancelnum
2248
+ @CheckingNum = checkingnum
2249
+ @RequestId = requestid
2250
+ end
2251
+
2252
+ def deserialize(params)
2253
+ @TotalNum = params['TotalNum']
2254
+ @ProcessingNum = params['ProcessingNum']
2255
+ @ConfirmingNum = params['ConfirmingNum']
2256
+ @FinishNum = params['FinishNum']
2257
+ @RejectNum = params['RejectNum']
2258
+ @ExceptionNum = params['ExceptionNum']
2259
+ @CancelNum = params['CancelNum']
2260
+ @CheckingNum = params['CheckingNum']
2261
+ @RequestId = params['RequestId']
2262
+ end
2263
+ end
2264
+
2265
+ # DescribeWorkOrderTypes请求参数结构体
2266
+ class DescribeWorkOrderTypesRequest < TencentCloud::Common::AbstractModel
2267
+
2268
+
2269
+ def initialize()
2270
+ end
2271
+
2272
+ def deserialize(params)
2273
+ end
2274
+ end
2275
+
2276
+ # DescribeWorkOrderTypes返回参数结构体
2277
+ class DescribeWorkOrderTypesResponse < TencentCloud::Common::AbstractModel
2278
+ # @param CollectedWorkOderTypeSet: 已收藏的工单类型列表
2279
+ # @type CollectedWorkOderTypeSet: Array
2280
+ # @param WorkOrderFamilySet: 全部工单类型列表
2281
+ # @type WorkOrderFamilySet: Array
2282
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2283
+ # @type RequestId: String
2284
+
2285
+ attr_accessor :CollectedWorkOderTypeSet, :WorkOrderFamilySet, :RequestId
2286
+
2287
+ def initialize(collectedworkodertypeset=nil, workorderfamilyset=nil, requestid=nil)
2288
+ @CollectedWorkOderTypeSet = collectedworkodertypeset
2289
+ @WorkOrderFamilySet = workorderfamilyset
2290
+ @RequestId = requestid
2291
+ end
2292
+
2293
+ def deserialize(params)
2294
+ unless params['CollectedWorkOderTypeSet'].nil?
2295
+ @CollectedWorkOderTypeSet = []
2296
+ params['CollectedWorkOderTypeSet'].each do |i|
2297
+ workordertypedetail_tmp = WorkOrderTypeDetail.new
2298
+ workordertypedetail_tmp.deserialize(i)
2299
+ @CollectedWorkOderTypeSet << workordertypedetail_tmp
2300
+ end
2301
+ end
2302
+ unless params['WorkOrderFamilySet'].nil?
2303
+ @WorkOrderFamilySet = []
2304
+ params['WorkOrderFamilySet'].each do |i|
2305
+ workorderfamilydetail_tmp = WorkOrderFamilyDetail.new
2306
+ workorderfamilydetail_tmp.deserialize(i)
2307
+ @WorkOrderFamilySet << workorderfamilydetail_tmp
2308
+ end
2309
+ end
2310
+ @RequestId = params['RequestId']
2311
+ end
2312
+ end
2313
+
2314
+ # 服务器信息
2315
+ class Device < TencentCloud::Common::AbstractModel
2316
+ # @param Sn: 设备 SN 码
2317
+ # @type Sn: String
2318
+ # @param ModelVersion: 设备型号版本
2319
+ # @type ModelVersion: String
2320
+ # @param AssetId: 设备固资号。只有设备类型为服务器时才返回
2321
+ # @type AssetId: String
2322
+ # @param SvrIsSpecial: 0 自有,1 租用。只有设备类型为服务器时才返回
2323
+ # @type SvrIsSpecial: Integer
2324
+ # @param Ip: IP。
2325
+ # @type Ip: String
2326
+ # @param IdcName: 设备所属的机房名称
2327
+ # @type IdcName: String
2328
+ # @param IdcId: 设备所属的机房ID
2329
+ # @type IdcId: Integer
2330
+ # @param IdcUnitId: 设备所属的机房管理单元ID
2331
+ # @type IdcUnitId: Integer
2332
+ # @param IdcUnitName: 设备所属的机房管理单元名称
2333
+ # @type IdcUnitName: String
2334
+ # @param RackId: 已上架设备所在的机架ID,未上架设备不返回
2335
+ # @type RackId: Integer
2336
+ # @param ServerTypeId: 服务器类型, 1 代表服务器, 7 代表 2U4S。只有设备类型为服务器时才返回
2337
+ # @type ServerTypeId: Integer
2338
+ # @param RackName: 已上架设备所在的机架名称,未上架设备不返回
2339
+ # @type RackName: String
2340
+ # @param PositionCode: 已上架设备所在的机位编号,未上架设备不返回。只有设备类型为服务器时才返回
2341
+ # @type PositionCode: Integer
2342
+ # @param Status: 设备状态:POWER_ON 已开电 POWER_OFF 未开电 RACK_OFF 未上架 MOVING 搬迁中
2343
+ # @type Status: String
2344
+ # @param PowerOnTime: 设备最近一次的开电时间,YYYY-MM-DD 格式。
2345
+ # @type PowerOnTime: String
2346
+ # @param OnshelfDate: 设备最近一次的上架时间,YYYY-MM-DD 格式。
2347
+ # @type OnshelfDate: String
2348
+ # @param DeviceType: 设备类型 server 服务器,netDevice 网络设备
2349
+ # @type DeviceType: String
2350
+ # @param Manufacturer: 厂商
2351
+ # @type Manufacturer: String
2352
+ # @param TypeName: 其他设备-设备子类型
2353
+ # @type TypeName: String
2354
+ # @param HardwareMemo: 硬件备注
2355
+ # @type HardwareMemo: String
2356
+
2357
+ attr_accessor :Sn, :ModelVersion, :AssetId, :SvrIsSpecial, :Ip, :IdcName, :IdcId, :IdcUnitId, :IdcUnitName, :RackId, :ServerTypeId, :RackName, :PositionCode, :Status, :PowerOnTime, :OnshelfDate, :DeviceType, :Manufacturer, :TypeName, :HardwareMemo
2358
+
2359
+ 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)
2360
+ @Sn = sn
2361
+ @ModelVersion = modelversion
2362
+ @AssetId = assetid
2363
+ @SvrIsSpecial = svrisspecial
2364
+ @Ip = ip
2365
+ @IdcName = idcname
2366
+ @IdcId = idcid
2367
+ @IdcUnitId = idcunitid
2368
+ @IdcUnitName = idcunitname
2369
+ @RackId = rackid
2370
+ @ServerTypeId = servertypeid
2371
+ @RackName = rackname
2372
+ @PositionCode = positioncode
2373
+ @Status = status
2374
+ @PowerOnTime = powerontime
2375
+ @OnshelfDate = onshelfdate
2376
+ @DeviceType = devicetype
2377
+ @Manufacturer = manufacturer
2378
+ @TypeName = typename
2379
+ @HardwareMemo = hardwarememo
2380
+ end
2381
+
2382
+ def deserialize(params)
2383
+ @Sn = params['Sn']
2384
+ @ModelVersion = params['ModelVersion']
2385
+ @AssetId = params['AssetId']
2386
+ @SvrIsSpecial = params['SvrIsSpecial']
2387
+ @Ip = params['Ip']
2388
+ @IdcName = params['IdcName']
2389
+ @IdcId = params['IdcId']
2390
+ @IdcUnitId = params['IdcUnitId']
2391
+ @IdcUnitName = params['IdcUnitName']
2392
+ @RackId = params['RackId']
2393
+ @ServerTypeId = params['ServerTypeId']
2394
+ @RackName = params['RackName']
2395
+ @PositionCode = params['PositionCode']
2396
+ @Status = params['Status']
2397
+ @PowerOnTime = params['PowerOnTime']
2398
+ @OnshelfDate = params['OnshelfDate']
2399
+ @DeviceType = params['DeviceType']
2400
+ @Manufacturer = params['Manufacturer']
2401
+ @TypeName = params['TypeName']
2402
+ @HardwareMemo = params['HardwareMemo']
2403
+ end
2404
+ end
2405
+
2406
+ # 工单的设备信息
2407
+ class DeviceHistory < TencentCloud::Common::AbstractModel
2408
+ # @param Sn: 设备sn
2409
+ # @type Sn: String
2410
+ # @param DeviceType: 设备类型
2411
+ # @type DeviceType: String
2412
+ # @param RackName: 机架名
2413
+ # @type RackName: String
2414
+ # @param PositionCode: 机位号
2415
+ # @type PositionCode: Integer
2416
+ # @param IdcId: 机房id
2417
+ # @type IdcId: Integer
2418
+ # @param IdcName: 机房名称
2419
+ # @type IdcName: String
2420
+ # @param IdcUnitId: 机房管理单元id
2421
+ # @type IdcUnitId: Integer
2422
+ # @param IdcUnitName: 机房管理单元名称
2423
+ # @type IdcUnitName: String
2424
+ # @param AssetId: 固资号
2425
+ # @type AssetId: String
2426
+ # @param ModelVersion: 设备型号-版本,只有收货单详情返回
2427
+ # @type ModelVersion: String
2428
+ # @param DeviceHeight: 设备高度,只有收货单详情返回
2429
+ # @type DeviceHeight: String
2430
+ # @param Need10GbSlot: 需要万兆机位,只有收货单详情返回
2431
+ # @type Need10GbSlot: String
2432
+ # @param NeedDCPower: 需要直流电,只有收货单详情返回
2433
+ # @type NeedDCPower: String
2434
+ # @param NeedExtranet: 需要外网,只有收货单详情返回
2435
+ # @type NeedExtranet: String
2436
+ # @param NeedVirtualization: 需要虚拟化,只有收货单详情返回
2437
+ # @type NeedVirtualization: String
2438
+ # @param Manufacturer: 厂商,只有收货单详情返回
2439
+ # @type Manufacturer: String
2440
+ # @param HardwareMemo: 硬件备注
2441
+ # @type HardwareMemo: String
2442
+ # @param DstRackName: 目标机架
2443
+ # @type DstRackName: String
2444
+ # @param DstPositionCode: 目标机位
2445
+ # @type DstPositionCode: String
2446
+ # @param DstIp: 目标ip
2447
+ # @type DstIp: String
2448
+ # @param TypeName: 设备子类型, 其他设备/线材用
2449
+ # @type TypeName: String
2450
+ # @param Quantity: 线材-数量,只有收货单详情返回
2451
+ # @type Quantity: Integer
2452
+ # @param Unit: 计量单位,,只有收货单详情返回,'箱', '卷', '套'
2453
+ # @type Unit: String
2454
+ # @param ReceiptNumber: 线材-收货凭证号,只有收货单详情返回
2455
+ # @type ReceiptNumber: String
2456
+
2457
+ attr_accessor :Sn, :DeviceType, :RackName, :PositionCode, :IdcId, :IdcName, :IdcUnitId, :IdcUnitName, :AssetId, :ModelVersion, :DeviceHeight, :Need10GbSlot, :NeedDCPower, :NeedExtranet, :NeedVirtualization, :Manufacturer, :HardwareMemo, :DstRackName, :DstPositionCode, :DstIp, :TypeName, :Quantity, :Unit, :ReceiptNumber
2458
+
2459
+ def initialize(sn=nil, devicetype=nil, rackname=nil, positioncode=nil, idcid=nil, idcname=nil, idcunitid=nil, idcunitname=nil, assetid=nil, modelversion=nil, deviceheight=nil, need10gbslot=nil, needdcpower=nil, needextranet=nil, needvirtualization=nil, manufacturer=nil, hardwarememo=nil, dstrackname=nil, dstpositioncode=nil, dstip=nil, typename=nil, quantity=nil, unit=nil, receiptnumber=nil)
2460
+ @Sn = sn
2461
+ @DeviceType = devicetype
2462
+ @RackName = rackname
2463
+ @PositionCode = positioncode
2464
+ @IdcId = idcid
2465
+ @IdcName = idcname
2466
+ @IdcUnitId = idcunitid
2467
+ @IdcUnitName = idcunitname
2468
+ @AssetId = assetid
2469
+ @ModelVersion = modelversion
2470
+ @DeviceHeight = deviceheight
2471
+ @Need10GbSlot = need10gbslot
2472
+ @NeedDCPower = needdcpower
2473
+ @NeedExtranet = needextranet
2474
+ @NeedVirtualization = needvirtualization
2475
+ @Manufacturer = manufacturer
2476
+ @HardwareMemo = hardwarememo
2477
+ @DstRackName = dstrackname
2478
+ @DstPositionCode = dstpositioncode
2479
+ @DstIp = dstip
2480
+ @TypeName = typename
2481
+ @Quantity = quantity
2482
+ @Unit = unit
2483
+ @ReceiptNumber = receiptnumber
2484
+ end
2485
+
2486
+ def deserialize(params)
2487
+ @Sn = params['Sn']
2488
+ @DeviceType = params['DeviceType']
2489
+ @RackName = params['RackName']
2490
+ @PositionCode = params['PositionCode']
2491
+ @IdcId = params['IdcId']
2492
+ @IdcName = params['IdcName']
2493
+ @IdcUnitId = params['IdcUnitId']
2494
+ @IdcUnitName = params['IdcUnitName']
2495
+ @AssetId = params['AssetId']
2496
+ @ModelVersion = params['ModelVersion']
2497
+ @DeviceHeight = params['DeviceHeight']
2498
+ @Need10GbSlot = params['Need10GbSlot']
2499
+ @NeedDCPower = params['NeedDCPower']
2500
+ @NeedExtranet = params['NeedExtranet']
2501
+ @NeedVirtualization = params['NeedVirtualization']
2502
+ @Manufacturer = params['Manufacturer']
2503
+ @HardwareMemo = params['HardwareMemo']
2504
+ @DstRackName = params['DstRackName']
2505
+ @DstPositionCode = params['DstPositionCode']
2506
+ @DstIp = params['DstIp']
2507
+ @TypeName = params['TypeName']
2508
+ @Quantity = params['Quantity']
2509
+ @Unit = params['Unit']
2510
+ @ReceiptNumber = params['ReceiptNumber']
2511
+ end
2512
+ end
2513
+
2514
+ # 设备类工单的基础历史入参信息
2515
+ class DeviceOrderBaseInfo < TencentCloud::Common::AbstractModel
2516
+ # @param IdcId: 机房id
2517
+ # @type IdcId: Integer
2518
+ # @param IdcName: 机房名称
2519
+ # 注意:此字段可能返回 null,表示取不到有效值。
2520
+ # @type IdcName: String
2521
+ # @param DeviceType: 设备类型
2522
+ # @type DeviceType: String
2523
+ # @param Remark: 备注
2524
+ # @type Remark: String
2525
+ # @param ReceivingOperation: 1.收货-仅核对外包装完整和数量,不开箱 2.验收-开箱核对型号SN一致
2526
+ # @type ReceivingOperation: String
2527
+ # @param EntryTime: 设备收货-进入时间
2528
+ # @type EntryTime: String
2529
+ # @param IsExpressDelivery: 设备收货-是否快递寄件
2530
+ # @type IsExpressDelivery: Boolean
2531
+ # @param ExpressInfo: 设备收货-快递寄件信息
2532
+ # @type ExpressInfo: :class:`Tencentcloud::Chc.v20230418.models.ExpressDelivery`
2533
+ # @param StuffOption: 上/下架人员 1.自行解决 2.由腾讯IDC负责
2534
+ # @type StuffOption: String
2535
+ # @param SelfOperationInfo: 上/下架自行解决信息
2536
+ # @type SelfOperationInfo: :class:`Tencentcloud::Chc.v20230418.models.SelfOperation`
2537
+ # @param WithPowerOn: 上架后开电
2538
+ # @type WithPowerOn: Boolean
2539
+ # @param IsPowerOffConfirm: 关电确认 1.授权时关电 2.关电前需要确认
2540
+ # @type IsPowerOffConfirm: String
2541
+ # @param PowerOffConfirmInfo: 关电前需要确认信息
2542
+ # @type PowerOffConfirmInfo: :class:`Tencentcloud::Chc.v20230418.models.PowerOffConfirm`
2543
+ # @param HandoverMethod: 退出交接方式 1.物流上门收货 2.客户上门自提
2544
+ # @type HandoverMethod: String
2545
+ # @param CustomerReceipt: 客户上门自提信息
2546
+ # @type CustomerReceipt: :class:`Tencentcloud::Chc.v20230418.models.CustomerReceipt`
2547
+ # @param LogisticsReceipt: 物流上门收货信息
2548
+ # @type LogisticsReceipt: :class:`Tencentcloud::Chc.v20230418.models.LogisticsReceipt`
2549
+
2550
+ attr_accessor :IdcId, :IdcName, :DeviceType, :Remark, :ReceivingOperation, :EntryTime, :IsExpressDelivery, :ExpressInfo, :StuffOption, :SelfOperationInfo, :WithPowerOn, :IsPowerOffConfirm, :PowerOffConfirmInfo, :HandoverMethod, :CustomerReceipt, :LogisticsReceipt
2551
+
2552
+ def initialize(idcid=nil, idcname=nil, devicetype=nil, remark=nil, receivingoperation=nil, entrytime=nil, isexpressdelivery=nil, expressinfo=nil, stuffoption=nil, selfoperationinfo=nil, withpoweron=nil, ispoweroffconfirm=nil, poweroffconfirminfo=nil, handovermethod=nil, customerreceipt=nil, logisticsreceipt=nil)
2553
+ @IdcId = idcid
2554
+ @IdcName = idcname
2555
+ @DeviceType = devicetype
2556
+ @Remark = remark
2557
+ @ReceivingOperation = receivingoperation
2558
+ @EntryTime = entrytime
2559
+ @IsExpressDelivery = isexpressdelivery
2560
+ @ExpressInfo = expressinfo
2561
+ @StuffOption = stuffoption
2562
+ @SelfOperationInfo = selfoperationinfo
2563
+ @WithPowerOn = withpoweron
2564
+ @IsPowerOffConfirm = ispoweroffconfirm
2565
+ @PowerOffConfirmInfo = poweroffconfirminfo
2566
+ @HandoverMethod = handovermethod
2567
+ @CustomerReceipt = customerreceipt
2568
+ @LogisticsReceipt = logisticsreceipt
2569
+ end
2570
+
2571
+ def deserialize(params)
2572
+ @IdcId = params['IdcId']
2573
+ @IdcName = params['IdcName']
2574
+ @DeviceType = params['DeviceType']
2575
+ @Remark = params['Remark']
2576
+ @ReceivingOperation = params['ReceivingOperation']
2577
+ @EntryTime = params['EntryTime']
2578
+ @IsExpressDelivery = params['IsExpressDelivery']
2579
+ unless params['ExpressInfo'].nil?
2580
+ @ExpressInfo = ExpressDelivery.new
2581
+ @ExpressInfo.deserialize(params['ExpressInfo'])
2582
+ end
2583
+ @StuffOption = params['StuffOption']
2584
+ unless params['SelfOperationInfo'].nil?
2585
+ @SelfOperationInfo = SelfOperation.new
2586
+ @SelfOperationInfo.deserialize(params['SelfOperationInfo'])
2587
+ end
2588
+ @WithPowerOn = params['WithPowerOn']
2589
+ @IsPowerOffConfirm = params['IsPowerOffConfirm']
2590
+ unless params['PowerOffConfirmInfo'].nil?
2591
+ @PowerOffConfirmInfo = PowerOffConfirm.new
2592
+ @PowerOffConfirmInfo.deserialize(params['PowerOffConfirmInfo'])
2593
+ end
2594
+ @HandoverMethod = params['HandoverMethod']
2595
+ unless params['CustomerReceipt'].nil?
2596
+ @CustomerReceipt = CustomerReceipt.new
2597
+ @CustomerReceipt.deserialize(params['CustomerReceipt'])
2598
+ end
2599
+ unless params['LogisticsReceipt'].nil?
2600
+ @LogisticsReceipt = LogisticsReceipt.new
2601
+ @LogisticsReceipt.deserialize(params['LogisticsReceipt'])
2602
+ end
2603
+ end
2604
+ end
2605
+
2606
+ # 设备及位置信息
2607
+ class DevicePosition < TencentCloud::Common::AbstractModel
2608
+ # @param Sn: 设备SN
2609
+ # @type Sn: String
2610
+ # @param RackName: 机架名称
2611
+ # @type RackName: String
2612
+ # @param IdcUnitId: 机房管理单元ID
2613
+ # @type IdcUnitId: Integer
2614
+ # @param IdcName: 机房名称
2615
+ # @type IdcName: String
2616
+ # @param IdcUnitName: 机房管理单元名称
2617
+ # @type IdcUnitName: String
2618
+ # @param AssetId: 设备固资。只有服务器设备才需要这个值
2619
+ # @type AssetId: String
2620
+ # @param PositionCode: 机位编号,只有服务器设备才需要传这个值
2621
+ # @type PositionCode: Integer
2622
+ # @param DeviceType: server 代表服务器,netDevice 代表网络设备
2623
+ # @type DeviceType: String
2624
+
2625
+ attr_accessor :Sn, :RackName, :IdcUnitId, :IdcName, :IdcUnitName, :AssetId, :PositionCode, :DeviceType
2626
+
2627
+ def initialize(sn=nil, rackname=nil, idcunitid=nil, idcname=nil, idcunitname=nil, assetid=nil, positioncode=nil, devicetype=nil)
2628
+ @Sn = sn
2629
+ @RackName = rackname
2630
+ @IdcUnitId = idcunitid
2631
+ @IdcName = idcname
2632
+ @IdcUnitName = idcunitname
2633
+ @AssetId = assetid
2634
+ @PositionCode = positioncode
2635
+ @DeviceType = devicetype
2636
+ end
2637
+
2638
+ def deserialize(params)
2639
+ @Sn = params['Sn']
2640
+ @RackName = params['RackName']
2641
+ @IdcUnitId = params['IdcUnitId']
2642
+ @IdcName = params['IdcName']
2643
+ @IdcUnitName = params['IdcUnitName']
2644
+ @AssetId = params['AssetId']
2645
+ @PositionCode = params['PositionCode']
2646
+ @DeviceType = params['DeviceType']
2647
+ end
2648
+ end
2649
+
2650
+ # 设备上架信息
2651
+ class DeviceRackOn < TencentCloud::Common::AbstractModel
2652
+ # @param DeviceSn: 设备sn
2653
+ # @type DeviceSn: String
2654
+ # @param DstRackName: 目标机架
2655
+ # @type DstRackName: String
2656
+ # @param DstPositionCode: 目标机位,服务器必传,网络设备不用传
2657
+ # @type DstPositionCode: String
2658
+ # @param DstIp: 设备ip
2659
+ # @type DstIp: String
2660
+
2661
+ attr_accessor :DeviceSn, :DstRackName, :DstPositionCode, :DstIp
2662
+
2663
+ def initialize(devicesn=nil, dstrackname=nil, dstpositioncode=nil, dstip=nil)
2664
+ @DeviceSn = devicesn
2665
+ @DstRackName = dstrackname
2666
+ @DstPositionCode = dstpositioncode
2667
+ @DstIp = dstip
2668
+ end
2669
+
2670
+ def deserialize(params)
2671
+ @DeviceSn = params['DeviceSn']
2672
+ @DstRackName = params['DstRackName']
2673
+ @DstPositionCode = params['DstPositionCode']
2674
+ @DstIp = params['DstIp']
2675
+ end
2676
+ end
2677
+
2678
+ # 机架用量分布
2679
+ class Distribution < TencentCloud::Common::AbstractModel
2680
+ # @param RackNumber: 机架编号
2681
+ # @type RackNumber: String
2682
+ # @param RackUsageSet: 机架的用量分布
2683
+ # @type RackUsageSet: Array
2684
+
2685
+ attr_accessor :RackNumber, :RackUsageSet
2686
+
2687
+ def initialize(racknumber=nil, rackusageset=nil)
2688
+ @RackNumber = racknumber
2689
+ @RackUsageSet = rackusageset
2690
+ end
2691
+
2692
+ def deserialize(params)
2693
+ @RackNumber = params['RackNumber']
2694
+ unless params['RackUsageSet'].nil?
2695
+ @RackUsageSet = []
2696
+ params['RackUsageSet'].each do |i|
2697
+ rackusage_tmp = RackUsage.new
2698
+ rackusage_tmp.deserialize(i)
2699
+ @RackUsageSet << rackusage_tmp
2700
+ end
2701
+ end
2702
+ end
2703
+ end
2704
+
2705
+ # 快递寄件信息,快递寄件必填
2706
+ class ExpressDelivery < TencentCloud::Common::AbstractModel
2707
+ # @param LogisticsCompany: 物流公司
2708
+ # @type LogisticsCompany: String
2709
+ # @param ExpressNumber: 快递单号
2710
+ # @type ExpressNumber: String
2711
+
2712
+ attr_accessor :LogisticsCompany, :ExpressNumber
2713
+
2714
+ def initialize(logisticscompany=nil, expressnumber=nil)
2715
+ @LogisticsCompany = logisticscompany
2716
+ @ExpressNumber = expressnumber
2717
+ end
2718
+
2719
+ def deserialize(params)
2720
+ @LogisticsCompany = params['LogisticsCompany']
2721
+ @ExpressNumber = params['ExpressNumber']
2722
+ end
2723
+ end
2724
+
2725
+ # 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
2726
+
2727
+ # 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
2728
+ # 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
2729
+ class Filter < TencentCloud::Common::AbstractModel
2730
+ # @param Name: 需要过滤的字段。
2731
+ # @type Name: String
2732
+ # @param Values: 字段的过滤值。
2733
+ # @type Values: Array
2734
+
2735
+ attr_accessor :Name, :Values
2736
+
2737
+ def initialize(name=nil, values=nil)
2738
+ @Name = name
2739
+ @Values = values
2740
+ end
2741
+
2742
+ def deserialize(params)
2743
+ @Name = params['Name']
2744
+ @Values = params['Values']
2745
+ end
2746
+ end
2747
+
2748
+ # 机房信息
2749
+ class Idc < TencentCloud::Common::AbstractModel
2750
+ # @param IdcName: 机房名称
2751
+ # @type IdcName: String
2752
+ # @param IdcId: 机房ID
2753
+ # @type IdcId: Integer
2754
+ # @param IdcUnitSet: 机房管理单元详情列表
2755
+ # @type IdcUnitSet: Array
2756
+
2757
+ attr_accessor :IdcName, :IdcId, :IdcUnitSet
2758
+
2759
+ def initialize(idcname=nil, idcid=nil, idcunitset=nil)
2760
+ @IdcName = idcname
2761
+ @IdcId = idcid
2762
+ @IdcUnitSet = idcunitset
2763
+ end
2764
+
2765
+ def deserialize(params)
2766
+ @IdcName = params['IdcName']
2767
+ @IdcId = params['IdcId']
2768
+ unless params['IdcUnitSet'].nil?
2769
+ @IdcUnitSet = []
2770
+ params['IdcUnitSet'].each do |i|
2771
+ idcunit_tmp = IdcUnit.new
2772
+ idcunit_tmp.deserialize(i)
2773
+ @IdcUnitSet << idcunit_tmp
2774
+ end
2775
+ end
2776
+ end
2777
+ end
2778
+
2779
+ # 机房管理单元
2780
+ class IdcUnit < TencentCloud::Common::AbstractModel
2781
+ # @param IdcUnitId: 机房管理单元 ID
2782
+ # @type IdcUnitId: Integer
2783
+ # @param IdcUnitName: 机房管理单元名称
2784
+ # @type IdcUnitName: String
2785
+ # @param CageSet: 围笼列表
2786
+ # @type CageSet: Array
2787
+
2788
+ attr_accessor :IdcUnitId, :IdcUnitName, :CageSet
2789
+
2790
+ def initialize(idcunitid=nil, idcunitname=nil, cageset=nil)
2791
+ @IdcUnitId = idcunitid
2792
+ @IdcUnitName = idcunitname
2793
+ @CageSet = cageset
2794
+ end
2795
+
2796
+ def deserialize(params)
2797
+ @IdcUnitId = params['IdcUnitId']
2798
+ @IdcUnitName = params['IdcUnitName']
2799
+ unless params['CageSet'].nil?
2800
+ @CageSet = []
2801
+ params['CageSet'].each do |i|
2802
+ cage_tmp = Cage.new
2803
+ cage_tmp.deserialize(i)
2804
+ @CageSet << cage_tmp
2805
+ end
2806
+ end
2807
+ end
2808
+ end
2809
+
2810
+ # 机房管理单元
2811
+ class IdcUnitInfo < TencentCloud::Common::AbstractModel
2812
+ # @param Address: 机房管理单元地址
2813
+ # @type Address: String
2814
+ # @param Operator: 机房经理
2815
+ # @type Operator: String
2816
+ # @param TelNumber: 联系电话
2817
+ # @type TelNumber: String
2818
+ # @param AssetManager: 资产管理员
2819
+ # @type AssetManager: String
2820
+ # @param AssetManagerTelNumber: 资产管理员电话
2821
+ # @type AssetManagerTelNumber: String
2822
+
2823
+ attr_accessor :Address, :Operator, :TelNumber, :AssetManager, :AssetManagerTelNumber
2824
+
2825
+ def initialize(address=nil, operator=nil, telnumber=nil, assetmanager=nil, assetmanagertelnumber=nil)
2826
+ @Address = address
2827
+ @Operator = operator
2828
+ @TelNumber = telnumber
2829
+ @AssetManager = assetmanager
2830
+ @AssetManagerTelNumber = assetmanagertelnumber
2831
+ end
2832
+
2833
+ def deserialize(params)
2834
+ @Address = params['Address']
2835
+ @Operator = params['Operator']
2836
+ @TelNumber = params['TelNumber']
2837
+ @AssetManager = params['AssetManager']
2838
+ @AssetManagerTelNumber = params['AssetManagerTelNumber']
2839
+ end
2840
+ end
2841
+
2842
+ # 物流上门收货信息
2843
+ class LogisticsReceipt < TencentCloud::Common::AbstractModel
2844
+ # @param LogisticsArrivalTime: 物流预计上门时间
2845
+ # @type LogisticsArrivalTime: String
2846
+ # @param LogisticsCompany: 物流公司名称
2847
+ # @type LogisticsCompany: String
2848
+ # @param LogisticsStuff: 物流联系人
2849
+ # @type LogisticsStuff: String
2850
+ # @param LogisticsStuffContact: 物流电话
2851
+ # @type LogisticsStuffContact: String
2852
+ # @param ReceiverContact: 收货人电话
2853
+ # @type ReceiverContact: String
2854
+ # @param ReceiverName: 收货人姓名
2855
+ # @type ReceiverName: String
2856
+ # @param ShippingAddress: 收货地址
2857
+ # @type ShippingAddress: String
2858
+
2859
+ attr_accessor :LogisticsArrivalTime, :LogisticsCompany, :LogisticsStuff, :LogisticsStuffContact, :ReceiverContact, :ReceiverName, :ShippingAddress
2860
+
2861
+ def initialize(logisticsarrivaltime=nil, logisticscompany=nil, logisticsstuff=nil, logisticsstuffcontact=nil, receivercontact=nil, receivername=nil, shippingaddress=nil)
2862
+ @LogisticsArrivalTime = logisticsarrivaltime
2863
+ @LogisticsCompany = logisticscompany
2864
+ @LogisticsStuff = logisticsstuff
2865
+ @LogisticsStuffContact = logisticsstuffcontact
2866
+ @ReceiverContact = receivercontact
2867
+ @ReceiverName = receivername
2868
+ @ShippingAddress = shippingaddress
2869
+ end
2870
+
2871
+ def deserialize(params)
2872
+ @LogisticsArrivalTime = params['LogisticsArrivalTime']
2873
+ @LogisticsCompany = params['LogisticsCompany']
2874
+ @LogisticsStuff = params['LogisticsStuff']
2875
+ @LogisticsStuffContact = params['LogisticsStuffContact']
2876
+ @ReceiverContact = params['ReceiverContact']
2877
+ @ReceiverName = params['ReceiverName']
2878
+ @ShippingAddress = params['ShippingAddress']
2879
+ end
2880
+ end
2881
+
2882
+ # 设备评估工单基本信息
2883
+ class ModelEvaluationBaseInfo < TencentCloud::Common::AbstractModel
2884
+ # @param CustomerName: 客户名称
2885
+ # @type CustomerName: String
2886
+ # @param DeviceType: server 服务器 netDevice 网络设备
2887
+ # @type DeviceType: String
2888
+ # @param CampusName: 园区名称
2889
+ # @type CampusName: String
2890
+ # @param Remark: 备注
2891
+ # @type Remark: String
2892
+
2893
+ attr_accessor :CustomerName, :DeviceType, :CampusName, :Remark
2894
+
2895
+ def initialize(customername=nil, devicetype=nil, campusname=nil, remark=nil)
2896
+ @CustomerName = customername
2897
+ @DeviceType = devicetype
2898
+ @CampusName = campusname
2899
+ @Remark = remark
2900
+ end
2901
+
2902
+ def deserialize(params)
2903
+ @CustomerName = params['CustomerName']
2904
+ @DeviceType = params['DeviceType']
2905
+ @CampusName = params['CampusName']
2906
+ @Remark = params['Remark']
2907
+ end
2908
+ end
2909
+
2910
+ # 型号以及版本号
2911
+ class ModelVersion < TencentCloud::Common::AbstractModel
2912
+ # @param DevModel: 型号名称
2913
+ # @type DevModel: String
2914
+ # @param Version: 版本
2915
+ # @type Version: String
2916
+
2917
+ attr_accessor :DevModel, :Version
2918
+
2919
+ def initialize(devmodel=nil, version=nil)
2920
+ @DevModel = devmodel
2921
+ @Version = version
2922
+ end
2923
+
2924
+ def deserialize(params)
2925
+ @DevModel = params['DevModel']
2926
+ @Version = params['Version']
2927
+ end
2928
+ end
2929
+
2930
+ # 型号和对应的版本数量
2931
+ class ModelVersionCount < TencentCloud::Common::AbstractModel
2932
+ # @param DevModel: 型号名称
2933
+ # @type DevModel: String
2934
+ # @param VersionCount: 版本数量
2935
+ # @type VersionCount: Integer
2936
+
2937
+ attr_accessor :DevModel, :VersionCount
2938
+
2939
+ def initialize(devmodel=nil, versioncount=nil)
2940
+ @DevModel = devmodel
2941
+ @VersionCount = versioncount
2942
+ end
2943
+
2944
+ def deserialize(params)
2945
+ @DevModel = params['DevModel']
2946
+ @VersionCount = params['VersionCount']
2947
+ end
2948
+ end
2949
+
2950
+ # 带有园区评估记录的型号详情
2951
+ class ModelVersionDetail < TencentCloud::Common::AbstractModel
2952
+ # @param Version: 版本号
2953
+ # @type Version: String
2954
+ # @param CheckResult: 0 代表在当前园区没评估过,1 代表完全满足IDC准入标准 2 代表存在托管风险 3 代表不满足IDC准入标准
2955
+ # @type CheckResult: Integer
2956
+ # @param OptionSet: 型号各个配置项的详情
2957
+ # @type OptionSet: Array
2958
+ # @param ModelVersion: 设备型号名称及版本
2959
+ # @type ModelVersion: String
2960
+
2961
+ attr_accessor :Version, :CheckResult, :OptionSet, :ModelVersion
2962
+
2963
+ def initialize(version=nil, checkresult=nil, optionset=nil, modelversion=nil)
2964
+ @Version = version
2965
+ @CheckResult = checkresult
2966
+ @OptionSet = optionset
2967
+ @ModelVersion = modelversion
2968
+ end
2969
+
2970
+ def deserialize(params)
2971
+ @Version = params['Version']
2972
+ @CheckResult = params['CheckResult']
2973
+ unless params['OptionSet'].nil?
2974
+ @OptionSet = []
2975
+ params['OptionSet'].each do |i|
2976
+ templateoption_tmp = TemplateOption.new
2977
+ templateoption_tmp.deserialize(i)
2978
+ @OptionSet << templateoption_tmp
2979
+ end
2980
+ end
2981
+ @ModelVersion = params['ModelVersion']
2982
+ end
2983
+ end
2984
+
2985
+ # ModifyWorkOrderTypeCollectFlag请求参数结构体
2986
+ class ModifyWorkOrderTypeCollectFlagRequest < TencentCloud::Common::AbstractModel
2987
+ # @param WorkOrderType: 工单类型的唯一英文标识
2988
+ # @type WorkOrderType: String
2989
+
2990
+ attr_accessor :WorkOrderType
2991
+
2992
+ def initialize(workordertype=nil)
2993
+ @WorkOrderType = workordertype
2994
+ end
2995
+
2996
+ def deserialize(params)
2997
+ @WorkOrderType = params['WorkOrderType']
2998
+ end
2999
+ end
3000
+
3001
+ # ModifyWorkOrderTypeCollectFlag返回参数结构体
3002
+ class ModifyWorkOrderTypeCollectFlagResponse < TencentCloud::Common::AbstractModel
3003
+ # @param CurrentCollectFlag: 工单类型当前的收藏状态
3004
+ # @type CurrentCollectFlag: Boolean
3005
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3006
+ # @type RequestId: String
3007
+
3008
+ attr_accessor :CurrentCollectFlag, :RequestId
3009
+
3010
+ def initialize(currentcollectflag=nil, requestid=nil)
3011
+ @CurrentCollectFlag = currentcollectflag
3012
+ @RequestId = requestid
3013
+ end
3014
+
3015
+ def deserialize(params)
3016
+ @CurrentCollectFlag = params['CurrentCollectFlag']
3017
+ @RequestId = params['RequestId']
3018
+ end
3019
+ end
3020
+
3021
+ # 网络设备型号详情
3022
+ class NetDeviceModel < TencentCloud::Common::AbstractModel
3023
+ # @param Version: 版本号
3024
+ # @type Version: String
3025
+ # @param ModelVersion: 型号和版本的组合名称
3026
+ # @type ModelVersion: String
3027
+ # @param DevModel: 型号名
3028
+ # @type DevModel: String
3029
+ # @param DevWidth: 宽度
3030
+ # @type DevWidth: String
3031
+ # @param DevDepth: 深度
3032
+ # @type DevDepth: String
3033
+ # @param DevWeight: 重量
3034
+ # @type DevWeight: String
3035
+ # @param MountEar: 是否携带挂耳
3036
+ # @type MountEar: String
3037
+ # @param AccordCCC: 是否符合CCC认证
3038
+ # @type AccordCCC: String
3039
+ # @param PassNetwork: 是否通过入网许可认证
3040
+ # @type PassNetwork: String
3041
+ # @param PowerportType: 电源接口型号
3042
+ # @type PowerportType: String
3043
+ # @param PowerModule: 电源模块
3044
+ # @type PowerModule: String
3045
+ # @param PowermoduleNum: 电源模块数量
3046
+ # @type PowermoduleNum: String
3047
+ # @param PowermodulePosition: 电源模块位置
3048
+ # @type PowermodulePosition: String
3049
+ # @param HighVoltageAdapt: 高压直流自适应
3050
+ # @type HighVoltageAdapt: String
3051
+ # @param PowerEnergy: 实际工作功耗(W)
3052
+ # @type PowerEnergy: String
3053
+ # @param InwindPosition: 进风口位置
3054
+ # @type InwindPosition: String
3055
+ # @param OutwindPosition: 出风口位置
3056
+ # @type OutwindPosition: String
3057
+ # @param BusinessPortPosition: 业务端口位置
3058
+ # @type BusinessPortPosition: String
3059
+ # @param LineManager: 带有理线器
3060
+ # @type LineManager: String
3061
+ # @param CheckResult: 0 代表在当前园区没评估过,1 代表完全满足IDC准入标准 2 代表存在托管风险 3 代表不满足IDC准入标准
3062
+ # @type CheckResult: Integer
3063
+ # @param DevHeight: 设备高度
3064
+ # @type DevHeight: String
3065
+
3066
+ attr_accessor :Version, :ModelVersion, :DevModel, :DevWidth, :DevDepth, :DevWeight, :MountEar, :AccordCCC, :PassNetwork, :PowerportType, :PowerModule, :PowermoduleNum, :PowermodulePosition, :HighVoltageAdapt, :PowerEnergy, :InwindPosition, :OutwindPosition, :BusinessPortPosition, :LineManager, :CheckResult, :DevHeight
3067
+
3068
+ def initialize(version=nil, modelversion=nil, devmodel=nil, devwidth=nil, devdepth=nil, devweight=nil, mountear=nil, accordccc=nil, passnetwork=nil, powerporttype=nil, powermodule=nil, powermodulenum=nil, powermoduleposition=nil, highvoltageadapt=nil, powerenergy=nil, inwindposition=nil, outwindposition=nil, businessportposition=nil, linemanager=nil, checkresult=nil, devheight=nil)
3069
+ @Version = version
3070
+ @ModelVersion = modelversion
3071
+ @DevModel = devmodel
3072
+ @DevWidth = devwidth
3073
+ @DevDepth = devdepth
3074
+ @DevWeight = devweight
3075
+ @MountEar = mountear
3076
+ @AccordCCC = accordccc
3077
+ @PassNetwork = passnetwork
3078
+ @PowerportType = powerporttype
3079
+ @PowerModule = powermodule
3080
+ @PowermoduleNum = powermodulenum
3081
+ @PowermodulePosition = powermoduleposition
3082
+ @HighVoltageAdapt = highvoltageadapt
3083
+ @PowerEnergy = powerenergy
3084
+ @InwindPosition = inwindposition
3085
+ @OutwindPosition = outwindposition
3086
+ @BusinessPortPosition = businessportposition
3087
+ @LineManager = linemanager
3088
+ @CheckResult = checkresult
3089
+ @DevHeight = devheight
3090
+ end
3091
+
3092
+ def deserialize(params)
3093
+ @Version = params['Version']
3094
+ @ModelVersion = params['ModelVersion']
3095
+ @DevModel = params['DevModel']
3096
+ @DevWidth = params['DevWidth']
3097
+ @DevDepth = params['DevDepth']
3098
+ @DevWeight = params['DevWeight']
3099
+ @MountEar = params['MountEar']
3100
+ @AccordCCC = params['AccordCCC']
3101
+ @PassNetwork = params['PassNetwork']
3102
+ @PowerportType = params['PowerportType']
3103
+ @PowerModule = params['PowerModule']
3104
+ @PowermoduleNum = params['PowermoduleNum']
3105
+ @PowermodulePosition = params['PowermodulePosition']
3106
+ @HighVoltageAdapt = params['HighVoltageAdapt']
3107
+ @PowerEnergy = params['PowerEnergy']
3108
+ @InwindPosition = params['InwindPosition']
3109
+ @OutwindPosition = params['OutwindPosition']
3110
+ @BusinessPortPosition = params['BusinessPortPosition']
3111
+ @LineManager = params['LineManager']
3112
+ @CheckResult = params['CheckResult']
3113
+ @DevHeight = params['DevHeight']
3114
+ end
3115
+ end
3116
+
3117
+ # 网络设备收货详情
3118
+ class NetReceivingInfo < TencentCloud::Common::AbstractModel
3119
+ # @param DeviceSn: 设备sn
3120
+ # @type DeviceSn: String
3121
+ # @param ModelVersion: 设备型号-版本
3122
+ # @type ModelVersion: String
3123
+ # @param HardwareMemo: 硬件备注
3124
+ # @type HardwareMemo: String
3125
+ # @param Manufacturer: 厂商
3126
+ # @type Manufacturer: String
3127
+
3128
+ attr_accessor :DeviceSn, :ModelVersion, :HardwareMemo, :Manufacturer
3129
+
3130
+ def initialize(devicesn=nil, modelversion=nil, hardwarememo=nil, manufacturer=nil)
3131
+ @DeviceSn = devicesn
3132
+ @ModelVersion = modelversion
3133
+ @HardwareMemo = hardwarememo
3134
+ @Manufacturer = manufacturer
3135
+ end
3136
+
3137
+ def deserialize(params)
3138
+ @DeviceSn = params['DeviceSn']
3139
+ @ModelVersion = params['ModelVersion']
3140
+ @HardwareMemo = params['HardwareMemo']
3141
+ @Manufacturer = params['Manufacturer']
3142
+ end
3143
+ end
3144
+
3145
+ # 型号选项下拉框中的选项值
3146
+ class OptionValueItem < TencentCloud::Common::AbstractModel
3147
+ # @param OptionValue: 选项的值
3148
+ # @type OptionValue: String
3149
+ # @param Selected: 是否默认选中
3150
+ # @type Selected: Boolean
3151
+
3152
+ attr_accessor :OptionValue, :Selected
3153
+
3154
+ def initialize(optionvalue=nil, selected=nil)
3155
+ @OptionValue = optionvalue
3156
+ @Selected = selected
3157
+ end
3158
+
3159
+ def deserialize(params)
3160
+ @OptionValue = params['OptionValue']
3161
+ @Selected = params['Selected']
3162
+ end
3163
+ end
3164
+
3165
+ # 工单详情中的工单流程步骤
3166
+ class OrderStep < TencentCloud::Common::AbstractModel
3167
+ # @param StepName: 步骤名
3168
+ # @type StepName: String
3169
+ # @param OwnerName: 处理人
3170
+ # @type OwnerName: String
3171
+ # @param FinishTime: 完成时间
3172
+ # @type FinishTime: String
3173
+ # @param StepStatus: 此步骤状态
3174
+ # @type StepStatus: String
3175
+
3176
+ attr_accessor :StepName, :OwnerName, :FinishTime, :StepStatus
3177
+
3178
+ def initialize(stepname=nil, ownername=nil, finishtime=nil, stepstatus=nil)
3179
+ @StepName = stepname
3180
+ @OwnerName = ownername
3181
+ @FinishTime = finishtime
3182
+ @StepStatus = stepstatus
3183
+ end
3184
+
3185
+ def deserialize(params)
3186
+ @StepName = params['StepName']
3187
+ @OwnerName = params['OwnerName']
3188
+ @FinishTime = params['FinishTime']
3189
+ @StepStatus = params['StepStatus']
3190
+ end
3191
+ end
3192
+
3193
+ # 其他设备收货信息
3194
+ class OtherDevReceivingInfo < TencentCloud::Common::AbstractModel
3195
+ # @param DeviceSn: 设备sn
3196
+ # @type DeviceSn: String
3197
+ # @param TypeName: 'USB', '移动硬盘', '网络设备板卡', '网络设备模块', '服务器硬盘', '服务器内存', '其他'
3198
+ # @type TypeName: String
3199
+ # @param Manufacturer: 厂商
3200
+ # @type Manufacturer: String
3201
+ # @param HardwareMemo: 硬件备注
3202
+ # @type HardwareMemo: String
3203
+
3204
+ attr_accessor :DeviceSn, :TypeName, :Manufacturer, :HardwareMemo
3205
+
3206
+ def initialize(devicesn=nil, typename=nil, manufacturer=nil, hardwarememo=nil)
3207
+ @DeviceSn = devicesn
3208
+ @TypeName = typename
3209
+ @Manufacturer = manufacturer
3210
+ @HardwareMemo = hardwarememo
3211
+ end
3212
+
3213
+ def deserialize(params)
3214
+ @DeviceSn = params['DeviceSn']
3215
+ @TypeName = params['TypeName']
3216
+ @Manufacturer = params['Manufacturer']
3217
+ @HardwareMemo = params['HardwareMemo']
3218
+ end
3219
+ end
3220
+
3221
+ # 到访人员
3222
+ class Personnel < TencentCloud::Common::AbstractModel
3223
+ # @param IDCardNumber: 证件号码
3224
+ # 注意:此字段可能返回 null,表示取不到有效值。
3225
+ # @type IDCardNumber: String
3226
+ # @param IDCardType: 证件类型。对应关系如下:IDENTITY_CARD: 身份证,
3227
+ # HONG_KONG_AND_MACAO_PASS: 港澳通行证',
3228
+ # PASSPORT: 护照,
3229
+ # DRIVING_LICENSE: 驾照,
3230
+ # OTHER: 其他
3231
+ # 注意:此字段可能返回 null,表示取不到有效值。
3232
+ # @type IDCardType: String
3233
+ # @param Company: 公司名称
3234
+ # 注意:此字段可能返回 null,表示取不到有效值。
3235
+ # @type Company: String
3236
+ # @param LanguageType: 语言。对应关系:ENGLISH: 英文, CHINESE: 中文
3237
+ # 注意:此字段可能返回 null,表示取不到有效值。
3238
+ # @type LanguageType: String
3239
+ # @param Name: 姓名
3240
+ # 注意:此字段可能返回 null,表示取不到有效值。
3241
+ # @type Name: String
3242
+ # @param TelNumber: 电话
3243
+ # 注意:此字段可能返回 null,表示取不到有效值。
3244
+ # @type TelNumber: String
3245
+ # @param Position: 职位
3246
+ # 注意:此字段可能返回 null,表示取不到有效值。
3247
+ # @type Position: String
3248
+ # @param Wechat: 微信
3249
+ # 注意:此字段可能返回 null,表示取不到有效值。
3250
+ # @type Wechat: String
3251
+ # @param Email: 邮箱
3252
+ # 注意:此字段可能返回 null,表示取不到有效值。
3253
+ # @type Email: String
3254
+
3255
+ attr_accessor :IDCardNumber, :IDCardType, :Company, :LanguageType, :Name, :TelNumber, :Position, :Wechat, :Email
3256
+
3257
+ def initialize(idcardnumber=nil, idcardtype=nil, company=nil, languagetype=nil, name=nil, telnumber=nil, position=nil, wechat=nil, email=nil)
3258
+ @IDCardNumber = idcardnumber
3259
+ @IDCardType = idcardtype
3260
+ @Company = company
3261
+ @LanguageType = languagetype
3262
+ @Name = name
3263
+ @TelNumber = telnumber
3264
+ @Position = position
3265
+ @Wechat = wechat
3266
+ @Email = email
3267
+ end
3268
+
3269
+ def deserialize(params)
3270
+ @IDCardNumber = params['IDCardNumber']
3271
+ @IDCardType = params['IDCardType']
3272
+ @Company = params['Company']
3273
+ @LanguageType = params['LanguageType']
3274
+ @Name = params['Name']
3275
+ @TelNumber = params['TelNumber']
3276
+ @Position = params['Position']
3277
+ @Wechat = params['Wechat']
3278
+ @Email = params['Email']
3279
+ end
3280
+ end
3281
+
3282
+ # 人员到访工单基本信息
3283
+ class PersonnelVisitBaseInfo < TencentCloud::Common::AbstractModel
3284
+ # @param IdcName: 机房名称
3285
+ # @type IdcName: String
3286
+ # @param VisitReason: 到访原因。到访原因,映射关系:DEVICE_MAINTENANCE 设备维护 DEVICE_MOVE 设备收货上下架 CHECK 盘点 OTHER 其他
3287
+ # @type VisitReason: Array
3288
+ # @param VisitRemark: 到访原因
3289
+ # @type VisitRemark: String
3290
+ # @param EnterStartTime: 到访结束时间
3291
+ # @type EnterStartTime: String
3292
+ # @param EnterEndTime: 到访开始时间
3293
+ # @type EnterEndTime: String
3294
+ # @param IdcUnitNameList: 机房管理单元列表
3295
+ # @type IdcUnitNameList: Array
3296
+
3297
+ attr_accessor :IdcName, :VisitReason, :VisitRemark, :EnterStartTime, :EnterEndTime, :IdcUnitNameList
3298
+
3299
+ def initialize(idcname=nil, visitreason=nil, visitremark=nil, enterstarttime=nil, enterendtime=nil, idcunitnamelist=nil)
3300
+ @IdcName = idcname
3301
+ @VisitReason = visitreason
3302
+ @VisitRemark = visitremark
3303
+ @EnterStartTime = enterstarttime
3304
+ @EnterEndTime = enterendtime
3305
+ @IdcUnitNameList = idcunitnamelist
3306
+ end
3307
+
3308
+ def deserialize(params)
3309
+ @IdcName = params['IdcName']
3310
+ @VisitReason = params['VisitReason']
3311
+ @VisitRemark = params['VisitRemark']
3312
+ @EnterStartTime = params['EnterStartTime']
3313
+ @EnterEndTime = params['EnterEndTime']
3314
+ @IdcUnitNameList = params['IdcUnitNameList']
3315
+ end
3316
+ end
3317
+
3318
+ # 机位信息
3319
+ class Position < TencentCloud::Common::AbstractModel
3320
+ # @param PositionId: 机位ID
3321
+ # @type PositionId: Integer
3322
+ # @param Height: 机位高度
3323
+ # @type Height: Integer
3324
+ # @param PositionCode: 机位编号
3325
+ # @type PositionCode: String
3326
+ # @param PositionStatus: 机位状态,0 空闲,1 已用,2 不可用,3 预占用,4 预留
3327
+ # @type PositionStatus: Integer
3328
+ # @param PlanDeviceType: 设备规划类型ID
3329
+ # @type PlanDeviceType: Integer
3330
+ # @param IdcUnitId: 机位所属的机房管理单元ID
3331
+ # @type IdcUnitId: Integer
3332
+ # @param RackId: 机位所属的机架ID
3333
+ # @type RackId: Integer
3334
+ # @param RackName: 机位所属的机架名称
3335
+ # @type RackName: String
3336
+ # @param IdcUnitName: 机位所属的机房管理单元名称
3337
+ # @type IdcUnitName: String
3338
+ # @param IdcName: 机位所属的机房名称
3339
+ # @type IdcName: String
3340
+ # @param IdcId: 机位所属的机房ID
3341
+ # @type IdcId: Integer
3342
+ # @param Sn: 机位上如果有设备,该字段代表设备的 SN 码,如果是空闲机位,不返回该字段。
3343
+ # @type Sn: String
3344
+ # @param AssetId: 机位上如果有设备,该字段代表设备的固资号,如果是空闲机位,不返回该字段。
3345
+ # @type AssetId: String
3346
+ # @param ModelVersion: 机位上如果有设备,该字段代表设备的设备型号加版本号,如果是空闲机位,不返回该字段。
3347
+ # @type ModelVersion: String
3348
+
3349
+ attr_accessor :PositionId, :Height, :PositionCode, :PositionStatus, :PlanDeviceType, :IdcUnitId, :RackId, :RackName, :IdcUnitName, :IdcName, :IdcId, :Sn, :AssetId, :ModelVersion
3350
+
3351
+ def initialize(positionid=nil, height=nil, positioncode=nil, positionstatus=nil, plandevicetype=nil, idcunitid=nil, rackid=nil, rackname=nil, idcunitname=nil, idcname=nil, idcid=nil, sn=nil, assetid=nil, modelversion=nil)
3352
+ @PositionId = positionid
3353
+ @Height = height
3354
+ @PositionCode = positioncode
3355
+ @PositionStatus = positionstatus
3356
+ @PlanDeviceType = plandevicetype
3357
+ @IdcUnitId = idcunitid
3358
+ @RackId = rackid
3359
+ @RackName = rackname
3360
+ @IdcUnitName = idcunitname
3361
+ @IdcName = idcname
3362
+ @IdcId = idcid
3363
+ @Sn = sn
3364
+ @AssetId = assetid
3365
+ @ModelVersion = modelversion
3366
+ end
3367
+
3368
+ def deserialize(params)
3369
+ @PositionId = params['PositionId']
3370
+ @Height = params['Height']
3371
+ @PositionCode = params['PositionCode']
3372
+ @PositionStatus = params['PositionStatus']
3373
+ @PlanDeviceType = params['PlanDeviceType']
3374
+ @IdcUnitId = params['IdcUnitId']
3375
+ @RackId = params['RackId']
3376
+ @RackName = params['RackName']
3377
+ @IdcUnitName = params['IdcUnitName']
3378
+ @IdcName = params['IdcName']
3379
+ @IdcId = params['IdcId']
3380
+ @Sn = params['Sn']
3381
+ @AssetId = params['AssetId']
3382
+ @ModelVersion = params['ModelVersion']
3383
+ end
3384
+ end
3385
+
3386
+ # 机位状态及对应的数量
3387
+ class PositionStatusItem < TencentCloud::Common::AbstractModel
3388
+ # @param PositionStatus: 状态值
3389
+ # @type PositionStatus: Integer
3390
+ # @param Count: 对应的机位数量
3391
+ # @type Count: Integer
3392
+
3393
+ attr_accessor :PositionStatus, :Count
3394
+
3395
+ def initialize(positionstatus=nil, count=nil)
3396
+ @PositionStatus = positionstatus
3397
+ @Count = count
3398
+ end
3399
+
3400
+ def deserialize(params)
3401
+ @PositionStatus = params['PositionStatus']
3402
+ @Count = params['Count']
3403
+ end
3404
+ end
3405
+
3406
+ # 关电确认信息
3407
+ class PowerOffConfirm < TencentCloud::Common::AbstractModel
3408
+ # @param ConfirmContact: 联系人
3409
+ # @type ConfirmContact: String
3410
+ # @param ConfirmContactNumber: 联系人电话
3411
+ # @type ConfirmContactNumber: String
3412
+
3413
+ attr_accessor :ConfirmContact, :ConfirmContactNumber
3414
+
3415
+ def initialize(confirmcontact=nil, confirmcontactnumber=nil)
3416
+ @ConfirmContact = confirmcontact
3417
+ @ConfirmContactNumber = confirmcontactnumber
3418
+ end
3419
+
3420
+ def deserialize(params)
3421
+ @ConfirmContact = params['ConfirmContact']
3422
+ @ConfirmContactNumber = params['ConfirmContactNumber']
3423
+ end
3424
+ end
3425
+
3426
+ # 机架的信息
3427
+ class Rack < TencentCloud::Common::AbstractModel
3428
+ # @param RackName: 机架名称
3429
+ # @type RackName: String
3430
+ # @param IdcUnitId: 机架所属的机房管理单元ID
3431
+ # @type IdcUnitId: Integer
3432
+ # @param IdcUnitName: 机架所属的机房管理单元名称
3433
+ # @type IdcUnitName: String
3434
+ # @param IdcName: 机架所属的机房名称
3435
+ # @type IdcName: String
3436
+ # @param IdcId: 机架所属的机房ID
3437
+ # @type IdcId: Integer
3438
+ # @param RackId: 机架ID
3439
+ # @type RackId: Integer
3440
+ # @param IsPowerOn: 是否开电
3441
+ # @type IsPowerOn: Boolean
3442
+ # @param RackOpenTime: 机架最近一次开电时间,YYYY-MM-DD 格式
3443
+ # @type RackOpenTime: String
3444
+ # @param HostingType: 托管类型
3445
+ # @type HostingType: String
3446
+
3447
+ attr_accessor :RackName, :IdcUnitId, :IdcUnitName, :IdcName, :IdcId, :RackId, :IsPowerOn, :RackOpenTime, :HostingType
3448
+
3449
+ def initialize(rackname=nil, idcunitid=nil, idcunitname=nil, idcname=nil, idcid=nil, rackid=nil, ispoweron=nil, rackopentime=nil, hostingtype=nil)
3450
+ @RackName = rackname
3451
+ @IdcUnitId = idcunitid
3452
+ @IdcUnitName = idcunitname
3453
+ @IdcName = idcname
3454
+ @IdcId = idcid
3455
+ @RackId = rackid
3456
+ @IsPowerOn = ispoweron
3457
+ @RackOpenTime = rackopentime
3458
+ @HostingType = hostingtype
3459
+ end
3460
+
3461
+ def deserialize(params)
3462
+ @RackName = params['RackName']
3463
+ @IdcUnitId = params['IdcUnitId']
3464
+ @IdcUnitName = params['IdcUnitName']
3465
+ @IdcName = params['IdcName']
3466
+ @IdcId = params['IdcId']
3467
+ @RackId = params['RackId']
3468
+ @IsPowerOn = params['IsPowerOn']
3469
+ @RackOpenTime = params['RackOpenTime']
3470
+ @HostingType = params['HostingType']
3471
+ end
3472
+ end
3473
+
3474
+ # 机架用量
3475
+ class RackUsage < TencentCloud::Common::AbstractModel
3476
+ # @param RackId: 机架ID
3477
+ # @type RackId: Integer
3478
+ # @param UsedNum: 已使用的机位数量
3479
+ # @type UsedNum: Integer
3480
+ # @param UnusedNum: 空闲机位数量
3481
+ # @type UnusedNum: Integer
3482
+ # @param RackShortName: 机架简称
3483
+ # @type RackShortName: String
3484
+ # @param TotalNum: 机位总数
3485
+ # @type TotalNum: Integer
3486
+ # @param UsedRate: 机位使用率
3487
+ # @type UsedRate: Float
3488
+
3489
+ attr_accessor :RackId, :UsedNum, :UnusedNum, :RackShortName, :TotalNum, :UsedRate
3490
+
3491
+ def initialize(rackid=nil, usednum=nil, unusednum=nil, rackshortname=nil, totalnum=nil, usedrate=nil)
3492
+ @RackId = rackid
3493
+ @UsedNum = usednum
3494
+ @UnusedNum = unusednum
3495
+ @RackShortName = rackshortname
3496
+ @TotalNum = totalnum
3497
+ @UsedRate = usedrate
3498
+ end
3499
+
3500
+ def deserialize(params)
3501
+ @RackId = params['RackId']
3502
+ @UsedNum = params['UsedNum']
3503
+ @UnusedNum = params['UnusedNum']
3504
+ @RackShortName = params['RackShortName']
3505
+ @TotalNum = params['TotalNum']
3506
+ @UsedRate = params['UsedRate']
3507
+ end
3508
+ end
3509
+
3510
+ # 客户自行上门信息
3511
+ class SelfOperation < TencentCloud::Common::AbstractModel
3512
+ # @param StuffContact: 联系人员电话
3513
+ # 注意:此字段可能返回 null,表示取不到有效值。
3514
+ # @type StuffContact: String
3515
+ # @param StuffIDCard: 身份证号
3516
+ # 注意:此字段可能返回 null,表示取不到有效值。
3517
+ # @type StuffIDCard: String
3518
+ # @param StuffName: 人员姓名
3519
+ # 注意:此字段可能返回 null,表示取不到有效值。
3520
+ # @type StuffName: String
3521
+ # @param OperationTime: 上门时间
3522
+ # 注意:此字段可能返回 null,表示取不到有效值。
3523
+ # @type OperationTime: String
3524
+
3525
+ attr_accessor :StuffContact, :StuffIDCard, :StuffName, :OperationTime
3526
+
3527
+ def initialize(stuffcontact=nil, stuffidcard=nil, stuffname=nil, operationtime=nil)
3528
+ @StuffContact = stuffcontact
3529
+ @StuffIDCard = stuffidcard
3530
+ @StuffName = stuffname
3531
+ @OperationTime = operationtime
3532
+ end
3533
+
3534
+ def deserialize(params)
3535
+ @StuffContact = params['StuffContact']
3536
+ @StuffIDCard = params['StuffIDCard']
3537
+ @StuffName = params['StuffName']
3538
+ @OperationTime = params['OperationTime']
3539
+ end
3540
+ end
3541
+
3542
+ # 服务器设备型号
3543
+ class ServerModel < TencentCloud::Common::AbstractModel
3544
+ # @param DevModel: 型号名称
3545
+ # @type DevModel: String
3546
+ # @param DevNode: 节点数
3547
+ # @type DevNode: String
3548
+ # @param DevHeight: 设备高度
3549
+ # @type DevHeight: String
3550
+ # @param PowerEnergy: 功耗
3551
+ # @type PowerEnergy: String
3552
+ # @param PowerportType: 电源接口型号
3553
+ # @type PowerportType: String
3554
+ # @param PowermoduleNum: 电源模块数量
3555
+ # @type PowermoduleNum: String
3556
+ # @param InwindPosition: 进风口位置
3557
+ # @type InwindPosition: String
3558
+ # @param OutwindPosition: 出风口位置
3559
+ # @type OutwindPosition: String
3560
+ # @param NetportPosition: 网卡接口位置
3561
+ # @type NetportPosition: String
3562
+ # @param DevWidth: 宽度
3563
+ # @type DevWidth: String
3564
+ # @param DevDepth: 深度
3565
+ # @type DevDepth: String
3566
+ # @param DevWeight: 重量
3567
+ # @type DevWeight: String
3568
+ # @param PowerModule: 电源模块
3569
+ # @type PowerModule: String
3570
+ # @param PowermodulePosition: 电源模块位置
3571
+ # @type PowermodulePosition: String
3572
+ # @param NetportType: 网络接口类型
3573
+ # @type NetportType: String
3574
+ # @param NetSpeed: 网卡速率
3575
+ # @type NetSpeed: String
3576
+ # @param CheckResult: 0 代表在当前园区没评估过,1 代表完全满足IDC准入标准 2 代表存在托管风险 3 代表不满足IDC准入标准
3577
+ # @type CheckResult: Integer
3578
+ # @param Version: 版本号
3579
+ # @type Version: String
3580
+ # @param ModelVersion: 型号和版本的组合名称
3581
+ # @type ModelVersion: String
3582
+
3583
+ attr_accessor :DevModel, :DevNode, :DevHeight, :PowerEnergy, :PowerportType, :PowermoduleNum, :InwindPosition, :OutwindPosition, :NetportPosition, :DevWidth, :DevDepth, :DevWeight, :PowerModule, :PowermodulePosition, :NetportType, :NetSpeed, :CheckResult, :Version, :ModelVersion
3584
+
3585
+ def initialize(devmodel=nil, devnode=nil, devheight=nil, powerenergy=nil, powerporttype=nil, powermodulenum=nil, inwindposition=nil, outwindposition=nil, netportposition=nil, devwidth=nil, devdepth=nil, devweight=nil, powermodule=nil, powermoduleposition=nil, netporttype=nil, netspeed=nil, checkresult=nil, version=nil, modelversion=nil)
3586
+ @DevModel = devmodel
3587
+ @DevNode = devnode
3588
+ @DevHeight = devheight
3589
+ @PowerEnergy = powerenergy
3590
+ @PowerportType = powerporttype
3591
+ @PowermoduleNum = powermodulenum
3592
+ @InwindPosition = inwindposition
3593
+ @OutwindPosition = outwindposition
3594
+ @NetportPosition = netportposition
3595
+ @DevWidth = devwidth
3596
+ @DevDepth = devdepth
3597
+ @DevWeight = devweight
3598
+ @PowerModule = powermodule
3599
+ @PowermodulePosition = powermoduleposition
3600
+ @NetportType = netporttype
3601
+ @NetSpeed = netspeed
3602
+ @CheckResult = checkresult
3603
+ @Version = version
3604
+ @ModelVersion = modelversion
3605
+ end
3606
+
3607
+ def deserialize(params)
3608
+ @DevModel = params['DevModel']
3609
+ @DevNode = params['DevNode']
3610
+ @DevHeight = params['DevHeight']
3611
+ @PowerEnergy = params['PowerEnergy']
3612
+ @PowerportType = params['PowerportType']
3613
+ @PowermoduleNum = params['PowermoduleNum']
3614
+ @InwindPosition = params['InwindPosition']
3615
+ @OutwindPosition = params['OutwindPosition']
3616
+ @NetportPosition = params['NetportPosition']
3617
+ @DevWidth = params['DevWidth']
3618
+ @DevDepth = params['DevDepth']
3619
+ @DevWeight = params['DevWeight']
3620
+ @PowerModule = params['PowerModule']
3621
+ @PowermodulePosition = params['PowermodulePosition']
3622
+ @NetportType = params['NetportType']
3623
+ @NetSpeed = params['NetSpeed']
3624
+ @CheckResult = params['CheckResult']
3625
+ @Version = params['Version']
3626
+ @ModelVersion = params['ModelVersion']
3627
+ end
3628
+ end
3629
+
3630
+ # 服务器收货信息
3631
+ class ServerReceivingInfo < TencentCloud::Common::AbstractModel
3632
+ # @param DeviceSn: 设备sn
3633
+ # @type DeviceSn: String
3634
+ # @param ModelVersion: 设备型号-版本
3635
+ # @type ModelVersion: String
3636
+ # @param Need10GbSlot: 需要万兆机位
3637
+ # @type Need10GbSlot: String
3638
+ # @param NeedDCPower: 需要直流电
3639
+ # @type NeedDCPower: String
3640
+ # @param NeedExtranet: 需要外网
3641
+ # @type NeedExtranet: String
3642
+ # @param NeedVirtualization: 需要虚拟化
3643
+ # @type NeedVirtualization: String
3644
+ # @param HardwareMemo: 硬件备注
3645
+ # @type HardwareMemo: String
3646
+
3647
+ attr_accessor :DeviceSn, :ModelVersion, :Need10GbSlot, :NeedDCPower, :NeedExtranet, :NeedVirtualization, :HardwareMemo
3648
+
3649
+ def initialize(devicesn=nil, modelversion=nil, need10gbslot=nil, needdcpower=nil, needextranet=nil, needvirtualization=nil, hardwarememo=nil)
3650
+ @DeviceSn = devicesn
3651
+ @ModelVersion = modelversion
3652
+ @Need10GbSlot = need10gbslot
3653
+ @NeedDCPower = needdcpower
3654
+ @NeedExtranet = needextranet
3655
+ @NeedVirtualization = needvirtualization
3656
+ @HardwareMemo = hardwarememo
3657
+ end
3658
+
3659
+ def deserialize(params)
3660
+ @DeviceSn = params['DeviceSn']
3661
+ @ModelVersion = params['ModelVersion']
3662
+ @Need10GbSlot = params['Need10GbSlot']
3663
+ @NeedDCPower = params['NeedDCPower']
3664
+ @NeedExtranet = params['NeedExtranet']
3665
+ @NeedVirtualization = params['NeedVirtualization']
3666
+ @HardwareMemo = params['HardwareMemo']
3667
+ end
3668
+ end
3669
+
3670
+ # 型号模板的选项
3671
+ class TemplateOption < TencentCloud::Common::AbstractModel
3672
+ # @param OptionName: 选项名称
3673
+ # @type OptionName: String
3674
+ # @param Standard: 腾讯的标准
3675
+ # @type Standard: String
3676
+ # @param StandardInfo: 腾讯标准的展示字段
3677
+ # @type StandardInfo: String
3678
+ # @param OptionKey: 选项的唯一标识
3679
+ # @type OptionKey: String
3680
+ # @param InputType: 输入的类型
3681
+ # @type InputType: String
3682
+ # @param ValueType: 输入值的类型
3683
+ # @type ValueType: String
3684
+ # @param CompareType: 是否符合腾讯标准的比较方式,-- 为不做比较
3685
+ # @type CompareType: String
3686
+ # @param OptionValueSet: 下拉列表中填充的选项值
3687
+ # @type OptionValueSet: Array
3688
+ # @param InputHint: 输入框中的占位的提示符
3689
+ # @type InputHint: String
3690
+ # @param InputInfo: 输入框下方的提示文案
3691
+ # @type InputInfo: String
3692
+ # @param OptionValue: 客户写入的值
3693
+ # @type OptionValue: String
3694
+
3695
+ attr_accessor :OptionName, :Standard, :StandardInfo, :OptionKey, :InputType, :ValueType, :CompareType, :OptionValueSet, :InputHint, :InputInfo, :OptionValue
3696
+
3697
+ def initialize(optionname=nil, standard=nil, standardinfo=nil, optionkey=nil, inputtype=nil, valuetype=nil, comparetype=nil, optionvalueset=nil, inputhint=nil, inputinfo=nil, optionvalue=nil)
3698
+ @OptionName = optionname
3699
+ @Standard = standard
3700
+ @StandardInfo = standardinfo
3701
+ @OptionKey = optionkey
3702
+ @InputType = inputtype
3703
+ @ValueType = valuetype
3704
+ @CompareType = comparetype
3705
+ @OptionValueSet = optionvalueset
3706
+ @InputHint = inputhint
3707
+ @InputInfo = inputinfo
3708
+ @OptionValue = optionvalue
3709
+ end
3710
+
3711
+ def deserialize(params)
3712
+ @OptionName = params['OptionName']
3713
+ @Standard = params['Standard']
3714
+ @StandardInfo = params['StandardInfo']
3715
+ @OptionKey = params['OptionKey']
3716
+ @InputType = params['InputType']
3717
+ @ValueType = params['ValueType']
3718
+ @CompareType = params['CompareType']
3719
+ unless params['OptionValueSet'].nil?
3720
+ @OptionValueSet = []
3721
+ params['OptionValueSet'].each do |i|
3722
+ optionvalueitem_tmp = OptionValueItem.new
3723
+ optionvalueitem_tmp.deserialize(i)
3724
+ @OptionValueSet << optionvalueitem_tmp
3725
+ end
3726
+ end
3727
+ @InputHint = params['InputHint']
3728
+ @InputInfo = params['InputInfo']
3729
+ @OptionValue = params['OptionValue']
3730
+ end
3731
+ end
3732
+
3733
+ # 线材收货信息
3734
+ class WireReceivingInfo < TencentCloud::Common::AbstractModel
3735
+ # @param TypeName: '光纤', '网线', '电源线'
3736
+ # @type TypeName: String
3737
+ # @param Quantity: 数量
3738
+ # @type Quantity: Integer
3739
+ # @param Unit: '箱', '卷', '套'
3740
+ # @type Unit: String
3741
+ # @param ReceiptNumber: 收货凭证号
3742
+ # @type ReceiptNumber: String
3743
+ # @param HardwareMemo: 硬件备注
3744
+ # @type HardwareMemo: String
3745
+
3746
+ attr_accessor :TypeName, :Quantity, :Unit, :ReceiptNumber, :HardwareMemo
3747
+
3748
+ def initialize(typename=nil, quantity=nil, unit=nil, receiptnumber=nil, hardwarememo=nil)
3749
+ @TypeName = typename
3750
+ @Quantity = quantity
3751
+ @Unit = unit
3752
+ @ReceiptNumber = receiptnumber
3753
+ @HardwareMemo = hardwarememo
3754
+ end
3755
+
3756
+ def deserialize(params)
3757
+ @TypeName = params['TypeName']
3758
+ @Quantity = params['Quantity']
3759
+ @Unit = params['Unit']
3760
+ @ReceiptNumber = params['ReceiptNumber']
3761
+ @HardwareMemo = params['HardwareMemo']
3762
+ end
3763
+ end
3764
+
3765
+ # 工单的常用信息返回
3766
+ class WorkOrderData < TencentCloud::Common::AbstractModel
3767
+ # @param WorkOrderId: 工单号
3768
+ # @type WorkOrderId: String
3769
+ # @param ServiceType: 服务类型,一个服务可能会产生多个工单
3770
+ # @type ServiceType: String
3771
+ # @param OrderType: 工单类型
3772
+ # @type OrderType: String
3773
+ # @param OrderStatus: 工单状态
3774
+ # @type OrderStatus: String
3775
+ # @param Creator: 工单创建人
3776
+ # @type Creator: String
3777
+ # @param CreateTime: 工单创建时间
3778
+ # @type CreateTime: String
3779
+ # @param FinishTime: 工单完成时间
3780
+ # 注意:此字段可能返回 null,表示取不到有效值。
3781
+ # @type FinishTime: String
3782
+
3783
+ attr_accessor :WorkOrderId, :ServiceType, :OrderType, :OrderStatus, :Creator, :CreateTime, :FinishTime
3784
+
3785
+ def initialize(workorderid=nil, servicetype=nil, ordertype=nil, orderstatus=nil, creator=nil, createtime=nil, finishtime=nil)
3786
+ @WorkOrderId = workorderid
3787
+ @ServiceType = servicetype
3788
+ @OrderType = ordertype
3789
+ @OrderStatus = orderstatus
3790
+ @Creator = creator
3791
+ @CreateTime = createtime
3792
+ @FinishTime = finishtime
3793
+ end
3794
+
3795
+ def deserialize(params)
3796
+ @WorkOrderId = params['WorkOrderId']
3797
+ @ServiceType = params['ServiceType']
3798
+ @OrderType = params['OrderType']
3799
+ @OrderStatus = params['OrderStatus']
3800
+ @Creator = params['Creator']
3801
+ @CreateTime = params['CreateTime']
3802
+ @FinishTime = params['FinishTime']
3803
+ end
3804
+ end
3805
+
3806
+ # 带有分类的工单类型列表
3807
+ class WorkOrderFamilyDetail < TencentCloud::Common::AbstractModel
3808
+ # @param WorkOrderFamily: 工单类型大类的名称
3809
+ # @type WorkOrderFamily: String
3810
+ # @param WorkOrderTypeSet: 工单类型详情列表
3811
+ # @type WorkOrderTypeSet: Array
3812
+
3813
+ attr_accessor :WorkOrderFamily, :WorkOrderTypeSet
3814
+
3815
+ def initialize(workorderfamily=nil, workordertypeset=nil)
3816
+ @WorkOrderFamily = workorderfamily
3817
+ @WorkOrderTypeSet = workordertypeset
3818
+ end
3819
+
3820
+ def deserialize(params)
3821
+ @WorkOrderFamily = params['WorkOrderFamily']
3822
+ unless params['WorkOrderTypeSet'].nil?
3823
+ @WorkOrderTypeSet = []
3824
+ params['WorkOrderTypeSet'].each do |i|
3825
+ workordertypedetail_tmp = WorkOrderTypeDetail.new
3826
+ workordertypedetail_tmp.deserialize(i)
3827
+ @WorkOrderTypeSet << workordertypedetail_tmp
3828
+ end
3829
+ end
3830
+ end
3831
+ end
3832
+
3833
+ # 工单信息的简要,一般用于工单创建的返回
3834
+ class WorkOrderTinyInfo < TencentCloud::Common::AbstractModel
3835
+ # @param WorkOrderId: 工单id
3836
+ # @type WorkOrderId: String
3837
+ # @param ServiceType: 服务类型,一个服务可能会产生多个工单
3838
+ # @type ServiceType: String
3839
+ # @param OrderType: 工单类型
3840
+ # @type OrderType: String
3841
+
3842
+ attr_accessor :WorkOrderId, :ServiceType, :OrderType
3843
+
3844
+ def initialize(workorderid=nil, servicetype=nil, ordertype=nil)
3845
+ @WorkOrderId = workorderid
3846
+ @ServiceType = servicetype
3847
+ @OrderType = ordertype
3848
+ end
3849
+
3850
+ def deserialize(params)
3851
+ @WorkOrderId = params['WorkOrderId']
3852
+ @ServiceType = params['ServiceType']
3853
+ @OrderType = params['OrderType']
3854
+ end
3855
+ end
3856
+
3857
+ # 工单类型详情
3858
+ class WorkOrderTypeDetail < TencentCloud::Common::AbstractModel
3859
+ # @param WorkOrderFamily: 工单类型所属的大类
3860
+ # @type WorkOrderFamily: String
3861
+ # @param WorkOrderName: 工单类型名称
3862
+ # @type WorkOrderName: String
3863
+ # @param WorkOrderType: 工单类型的唯一英文标识
3864
+ # @type WorkOrderType: String
3865
+ # @param WorkOrderDescription: 工单类型简述
3866
+ # @type WorkOrderDescription: String
3867
+ # @param CollectFlag: 是否被收藏
3868
+ # @type CollectFlag: Boolean
3869
+ # @param SlaMessage: 服务时效
3870
+ # @type SlaMessage: String
3871
+
3872
+ attr_accessor :WorkOrderFamily, :WorkOrderName, :WorkOrderType, :WorkOrderDescription, :CollectFlag, :SlaMessage
3873
+
3874
+ def initialize(workorderfamily=nil, workordername=nil, workordertype=nil, workorderdescription=nil, collectflag=nil, slamessage=nil)
3875
+ @WorkOrderFamily = workorderfamily
3876
+ @WorkOrderName = workordername
3877
+ @WorkOrderType = workordertype
3878
+ @WorkOrderDescription = workorderdescription
3879
+ @CollectFlag = collectflag
3880
+ @SlaMessage = slamessage
3881
+ end
3882
+
3883
+ def deserialize(params)
3884
+ @WorkOrderFamily = params['WorkOrderFamily']
3885
+ @WorkOrderName = params['WorkOrderName']
3886
+ @WorkOrderType = params['WorkOrderType']
3887
+ @WorkOrderDescription = params['WorkOrderDescription']
3888
+ @CollectFlag = params['CollectFlag']
3889
+ @SlaMessage = params['SlaMessage']
3890
+ end
3891
+ end
3892
+
3893
+ end
3894
+ end
3895
+ end
3896
+