tencentcloud-sdk-batch 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4347 @@
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 Batch
19
+ module V20170312
20
+ # 计算环境的创建或销毁活动
21
+ class Activity < TencentCloud::Common::AbstractModel
22
+ # @param ActivityId: 活动ID
23
+ # @type ActivityId: String
24
+ # @param ComputeNodeId: 计算节点ID
25
+ # @type ComputeNodeId: String
26
+ # @param ComputeNodeActivityType: 计算节点活动类型,创建或者销毁
27
+ # @type ComputeNodeActivityType: String
28
+ # @param EnvId: 计算环境ID
29
+ # @type EnvId: String
30
+ # @param Cause: 起因
31
+ # @type Cause: String
32
+ # @param ActivityState: 活动状态
33
+ # @type ActivityState: String
34
+ # @param StateReason: 状态原因
35
+ # @type StateReason: String
36
+ # @param StartTime: 活动开始时间
37
+ # @type StartTime: String
38
+ # @param EndTime: 活动结束时间
39
+ # 注意:此字段可能返回 null,表示取不到有效值。
40
+ # @type EndTime: String
41
+ # @param InstanceId: 云服务器实例ID
42
+ # 注意:此字段可能返回 null,表示取不到有效值。
43
+ # @type InstanceId: String
44
+
45
+ attr_accessor :ActivityId, :ComputeNodeId, :ComputeNodeActivityType, :EnvId, :Cause, :ActivityState, :StateReason, :StartTime, :EndTime, :InstanceId
46
+
47
+ def initialize(activityid=nil, computenodeid=nil, computenodeactivitytype=nil, envid=nil, cause=nil, activitystate=nil, statereason=nil, starttime=nil, endtime=nil, instanceid=nil)
48
+ @ActivityId = activityid
49
+ @ComputeNodeId = computenodeid
50
+ @ComputeNodeActivityType = computenodeactivitytype
51
+ @EnvId = envid
52
+ @Cause = cause
53
+ @ActivityState = activitystate
54
+ @StateReason = statereason
55
+ @StartTime = starttime
56
+ @EndTime = endtime
57
+ @InstanceId = instanceid
58
+ end
59
+
60
+ def deserialize(params)
61
+ @ActivityId = params['ActivityId']
62
+ @ComputeNodeId = params['ComputeNodeId']
63
+ @ComputeNodeActivityType = params['ComputeNodeActivityType']
64
+ @EnvId = params['EnvId']
65
+ @Cause = params['Cause']
66
+ @ActivityState = params['ActivityState']
67
+ @StateReason = params['StateReason']
68
+ @StartTime = params['StartTime']
69
+ @EndTime = params['EndTime']
70
+ @InstanceId = params['InstanceId']
71
+ end
72
+ end
73
+
74
+ # agent运行模式
75
+ class AgentRunningMode < TencentCloud::Common::AbstractModel
76
+ # @param Scene: 场景类型,支持WINDOWS
77
+ # @type Scene: String
78
+ # @param User: 运行Agent的User
79
+ # @type User: String
80
+ # @param Session: 运行Agent的Session
81
+ # @type Session: String
82
+
83
+ attr_accessor :Scene, :User, :Session
84
+
85
+ def initialize(scene=nil, user=nil, session=nil)
86
+ @Scene = scene
87
+ @User = user
88
+ @Session = session
89
+ end
90
+
91
+ def deserialize(params)
92
+ @Scene = params['Scene']
93
+ @User = params['User']
94
+ @Session = params['Session']
95
+ end
96
+ end
97
+
98
+ # 计算环境
99
+ class AnonymousComputeEnv < TencentCloud::Common::AbstractModel
100
+ # @param EnvType: 计算环境管理类型
101
+ # @type EnvType: String
102
+ # @param EnvData: 计算环境具体参数
103
+ # @type EnvData: :class:`Tencentcloud::Batch.v20170312.models.EnvData`
104
+ # @param MountDataDisks: 数据盘挂载选项
105
+ # @type MountDataDisks: Array
106
+ # @param AgentRunningMode: agent运行模式,适用于Windows系统
107
+ # @type AgentRunningMode: :class:`Tencentcloud::Batch.v20170312.models.AgentRunningMode`
108
+
109
+ attr_accessor :EnvType, :EnvData, :MountDataDisks, :AgentRunningMode
110
+
111
+ def initialize(envtype=nil, envdata=nil, mountdatadisks=nil, agentrunningmode=nil)
112
+ @EnvType = envtype
113
+ @EnvData = envdata
114
+ @MountDataDisks = mountdatadisks
115
+ @AgentRunningMode = agentrunningmode
116
+ end
117
+
118
+ def deserialize(params)
119
+ @EnvType = params['EnvType']
120
+ unless params['EnvData'].nil?
121
+ @EnvData = EnvData.new
122
+ @EnvData.deserialize(params['EnvData'])
123
+ end
124
+ unless params['MountDataDisks'].nil?
125
+ @MountDataDisks = []
126
+ params['MountDataDisks'].each do |i|
127
+ mountdatadisk_tmp = MountDataDisk.new
128
+ mountdatadisk_tmp.deserialize(i)
129
+ @MountDataDisks << mountdatadisk_tmp
130
+ end
131
+ end
132
+ unless params['AgentRunningMode'].nil?
133
+ @AgentRunningMode = AgentRunningMode.new
134
+ @AgentRunningMode.deserialize(params['AgentRunningMode'])
135
+ end
136
+ end
137
+ end
138
+
139
+ # 应用程序信息
140
+ class Application < TencentCloud::Common::AbstractModel
141
+ # @param Command: 任务执行命令
142
+ # @type Command: String
143
+ # @param DeliveryForm: 应用程序的交付方式,包括PACKAGE、LOCAL 两种取值,分别指远程存储的软件包、计算环境本地。
144
+ # @type DeliveryForm: String
145
+ # @param PackagePath: 应用程序软件包的远程存储路径
146
+ # @type PackagePath: String
147
+ # @param Docker: 应用使用Docker的相关配置。在使用Docker配置的情况下,DeliveryForm 为 LOCAL 表示直接使用Docker镜像内部的应用软件,通过Docker方式运行;DeliveryForm 为 PACKAGE,表示将远程应用包注入到Docker镜像后,通过Docker方式运行。为避免Docker不同版本的兼容性问题,Docker安装包及相关依赖由Batch统一负责,对于已安装Docker的自定义镜像,请卸载后再使用Docker特性。
148
+ # @type Docker: :class:`Tencentcloud::Batch.v20170312.models.Docker`
149
+
150
+ attr_accessor :Command, :DeliveryForm, :PackagePath, :Docker
151
+
152
+ def initialize(command=nil, deliveryform=nil, packagepath=nil, docker=nil)
153
+ @Command = command
154
+ @DeliveryForm = deliveryform
155
+ @PackagePath = packagepath
156
+ @Docker = docker
157
+ end
158
+
159
+ def deserialize(params)
160
+ @Command = params['Command']
161
+ @DeliveryForm = params['DeliveryForm']
162
+ @PackagePath = params['PackagePath']
163
+ unless params['Docker'].nil?
164
+ @Docker = Docker.new
165
+ @Docker.deserialize(params['Docker'])
166
+ end
167
+ end
168
+ end
169
+
170
+ # AttachInstances请求参数结构体
171
+ class AttachInstancesRequest < TencentCloud::Common::AbstractModel
172
+ # @param EnvId: 计算环境ID
173
+ # @type EnvId: String
174
+ # @param Instances: 加入计算环境实例列表
175
+ # @type Instances: Array
176
+
177
+ attr_accessor :EnvId, :Instances
178
+
179
+ def initialize(envid=nil, instances=nil)
180
+ @EnvId = envid
181
+ @Instances = instances
182
+ end
183
+
184
+ def deserialize(params)
185
+ @EnvId = params['EnvId']
186
+ unless params['Instances'].nil?
187
+ @Instances = []
188
+ params['Instances'].each do |i|
189
+ instance_tmp = Instance.new
190
+ instance_tmp.deserialize(i)
191
+ @Instances << instance_tmp
192
+ end
193
+ end
194
+ end
195
+ end
196
+
197
+ # AttachInstances返回参数结构体
198
+ class AttachInstancesResponse < TencentCloud::Common::AbstractModel
199
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
200
+ # @type RequestId: String
201
+
202
+ attr_accessor :RequestId
203
+
204
+ def initialize(requestid=nil)
205
+ @RequestId = requestid
206
+ end
207
+
208
+ def deserialize(params)
209
+ @RequestId = params['RequestId']
210
+ end
211
+ end
212
+
213
+ # 授权认证信息
214
+ class Authentication < TencentCloud::Common::AbstractModel
215
+ # @param Scene: 授权场景,例如COS
216
+ # @type Scene: String
217
+ # @param SecretId: SecretId
218
+ # @type SecretId: String
219
+ # @param SecretKey: SecretKey
220
+ # @type SecretKey: String
221
+
222
+ attr_accessor :Scene, :SecretId, :SecretKey
223
+
224
+ def initialize(scene=nil, secretid=nil, secretkey=nil)
225
+ @Scene = scene
226
+ @SecretId = secretid
227
+ @SecretKey = secretkey
228
+ end
229
+
230
+ def deserialize(params)
231
+ @Scene = params['Scene']
232
+ @SecretId = params['SecretId']
233
+ @SecretKey = params['SecretKey']
234
+ end
235
+ end
236
+
237
+ # 计算环境创建信息。
238
+ class ComputeEnvCreateInfo < TencentCloud::Common::AbstractModel
239
+ # @param EnvId: 计算环境 ID
240
+ # @type EnvId: String
241
+ # @param EnvName: 计算环境名称
242
+ # 注意:此字段可能返回 null,表示取不到有效值。
243
+ # @type EnvName: String
244
+ # @param EnvDescription: 计算环境描述
245
+ # 注意:此字段可能返回 null,表示取不到有效值。
246
+ # @type EnvDescription: String
247
+ # @param EnvType: 计算环境类型,仅支持“MANAGED”类型
248
+ # @type EnvType: String
249
+ # @param EnvData: 计算环境参数
250
+ # @type EnvData: :class:`Tencentcloud::Batch.v20170312.models.EnvData`
251
+ # @param MountDataDisks: 数据盘挂载选项
252
+ # 注意:此字段可能返回 null,表示取不到有效值。
253
+ # @type MountDataDisks: Array
254
+ # @param InputMappings: 输入映射
255
+ # 注意:此字段可能返回 null,表示取不到有效值。
256
+ # @type InputMappings: Array
257
+ # @param Authentications: 授权信息
258
+ # 注意:此字段可能返回 null,表示取不到有效值。
259
+ # @type Authentications: Array
260
+ # @param Notifications: 通知信息
261
+ # 注意:此字段可能返回 null,表示取不到有效值。
262
+ # @type Notifications: Array
263
+ # @param DesiredComputeNodeCount: 计算节点期望个数
264
+ # @type DesiredComputeNodeCount: Integer
265
+ # @param Tags: 计算环境标签列表
266
+ # 注意:此字段可能返回 null,表示取不到有效值。
267
+ # @type Tags: Array
268
+
269
+ attr_accessor :EnvId, :EnvName, :EnvDescription, :EnvType, :EnvData, :MountDataDisks, :InputMappings, :Authentications, :Notifications, :DesiredComputeNodeCount, :Tags
270
+
271
+ def initialize(envid=nil, envname=nil, envdescription=nil, envtype=nil, envdata=nil, mountdatadisks=nil, inputmappings=nil, authentications=nil, notifications=nil, desiredcomputenodecount=nil, tags=nil)
272
+ @EnvId = envid
273
+ @EnvName = envname
274
+ @EnvDescription = envdescription
275
+ @EnvType = envtype
276
+ @EnvData = envdata
277
+ @MountDataDisks = mountdatadisks
278
+ @InputMappings = inputmappings
279
+ @Authentications = authentications
280
+ @Notifications = notifications
281
+ @DesiredComputeNodeCount = desiredcomputenodecount
282
+ @Tags = tags
283
+ end
284
+
285
+ def deserialize(params)
286
+ @EnvId = params['EnvId']
287
+ @EnvName = params['EnvName']
288
+ @EnvDescription = params['EnvDescription']
289
+ @EnvType = params['EnvType']
290
+ unless params['EnvData'].nil?
291
+ @EnvData = EnvData.new
292
+ @EnvData.deserialize(params['EnvData'])
293
+ end
294
+ unless params['MountDataDisks'].nil?
295
+ @MountDataDisks = []
296
+ params['MountDataDisks'].each do |i|
297
+ mountdatadisk_tmp = MountDataDisk.new
298
+ mountdatadisk_tmp.deserialize(i)
299
+ @MountDataDisks << mountdatadisk_tmp
300
+ end
301
+ end
302
+ unless params['InputMappings'].nil?
303
+ @InputMappings = []
304
+ params['InputMappings'].each do |i|
305
+ inputmapping_tmp = InputMapping.new
306
+ inputmapping_tmp.deserialize(i)
307
+ @InputMappings << inputmapping_tmp
308
+ end
309
+ end
310
+ unless params['Authentications'].nil?
311
+ @Authentications = []
312
+ params['Authentications'].each do |i|
313
+ authentication_tmp = Authentication.new
314
+ authentication_tmp.deserialize(i)
315
+ @Authentications << authentication_tmp
316
+ end
317
+ end
318
+ unless params['Notifications'].nil?
319
+ @Notifications = []
320
+ params['Notifications'].each do |i|
321
+ notification_tmp = Notification.new
322
+ notification_tmp.deserialize(i)
323
+ @Notifications << notification_tmp
324
+ end
325
+ end
326
+ @DesiredComputeNodeCount = params['DesiredComputeNodeCount']
327
+ unless params['Tags'].nil?
328
+ @Tags = []
329
+ params['Tags'].each do |i|
330
+ tag_tmp = Tag.new
331
+ tag_tmp.deserialize(i)
332
+ @Tags << tag_tmp
333
+ end
334
+ end
335
+ end
336
+ end
337
+
338
+ # 计算环境属性数据
339
+ class ComputeEnvData < TencentCloud::Common::AbstractModel
340
+ # @param InstanceTypes: CVM实例类型列表
341
+ # @type InstanceTypes: Array
342
+
343
+ attr_accessor :InstanceTypes
344
+
345
+ def initialize(instancetypes=nil)
346
+ @InstanceTypes = instancetypes
347
+ end
348
+
349
+ def deserialize(params)
350
+ @InstanceTypes = params['InstanceTypes']
351
+ end
352
+ end
353
+
354
+ # 计算环境信息
355
+ class ComputeEnvView < TencentCloud::Common::AbstractModel
356
+ # @param EnvId: 计算环境ID
357
+ # @type EnvId: String
358
+ # @param EnvName: 计算环境名称
359
+ # @type EnvName: String
360
+ # @param Placement: 位置信息
361
+ # @type Placement: :class:`Tencentcloud::Batch.v20170312.models.Placement`
362
+ # @param CreateTime: 创建时间
363
+ # @type CreateTime: String
364
+ # @param ComputeNodeMetrics: 计算节点统计指标
365
+ # @type ComputeNodeMetrics: :class:`Tencentcloud::Batch.v20170312.models.ComputeNodeMetrics`
366
+ # @param EnvType: 计算环境类型
367
+ # @type EnvType: String
368
+ # @param DesiredComputeNodeCount: 计算节点期望个数
369
+ # @type DesiredComputeNodeCount: Integer
370
+ # @param ResourceType: 计算环境资源类型,当前为CVM和CPM(黑石)
371
+ # @type ResourceType: String
372
+ # @param NextAction: 下一步动作
373
+ # @type NextAction: String
374
+ # @param AttachedComputeNodeCount: 用户添加到计算环境中的计算节点个数
375
+ # @type AttachedComputeNodeCount: Integer
376
+ # @param Tags: 计算环境绑定的标签列表。
377
+ # 注意:此字段可能返回 null,表示取不到有效值。
378
+ # @type Tags: Array
379
+
380
+ attr_accessor :EnvId, :EnvName, :Placement, :CreateTime, :ComputeNodeMetrics, :EnvType, :DesiredComputeNodeCount, :ResourceType, :NextAction, :AttachedComputeNodeCount, :Tags
381
+
382
+ def initialize(envid=nil, envname=nil, placement=nil, createtime=nil, computenodemetrics=nil, envtype=nil, desiredcomputenodecount=nil, resourcetype=nil, nextaction=nil, attachedcomputenodecount=nil, tags=nil)
383
+ @EnvId = envid
384
+ @EnvName = envname
385
+ @Placement = placement
386
+ @CreateTime = createtime
387
+ @ComputeNodeMetrics = computenodemetrics
388
+ @EnvType = envtype
389
+ @DesiredComputeNodeCount = desiredcomputenodecount
390
+ @ResourceType = resourcetype
391
+ @NextAction = nextaction
392
+ @AttachedComputeNodeCount = attachedcomputenodecount
393
+ @Tags = tags
394
+ end
395
+
396
+ def deserialize(params)
397
+ @EnvId = params['EnvId']
398
+ @EnvName = params['EnvName']
399
+ unless params['Placement'].nil?
400
+ @Placement = Placement.new
401
+ @Placement.deserialize(params['Placement'])
402
+ end
403
+ @CreateTime = params['CreateTime']
404
+ unless params['ComputeNodeMetrics'].nil?
405
+ @ComputeNodeMetrics = ComputeNodeMetrics.new
406
+ @ComputeNodeMetrics.deserialize(params['ComputeNodeMetrics'])
407
+ end
408
+ @EnvType = params['EnvType']
409
+ @DesiredComputeNodeCount = params['DesiredComputeNodeCount']
410
+ @ResourceType = params['ResourceType']
411
+ @NextAction = params['NextAction']
412
+ @AttachedComputeNodeCount = params['AttachedComputeNodeCount']
413
+ unless params['Tags'].nil?
414
+ @Tags = []
415
+ params['Tags'].each do |i|
416
+ tag_tmp = Tag.new
417
+ tag_tmp.deserialize(i)
418
+ @Tags << tag_tmp
419
+ end
420
+ end
421
+ end
422
+ end
423
+
424
+ # 计算节点
425
+ class ComputeNode < TencentCloud::Common::AbstractModel
426
+ # @param ComputeNodeId: 计算节点ID
427
+ # @type ComputeNodeId: String
428
+ # @param ComputeNodeInstanceId: 计算节点实例ID,对于CVM场景,即为CVM的InstanceId
429
+ # @type ComputeNodeInstanceId: String
430
+ # @param ComputeNodeState: 计算节点状态
431
+ # @type ComputeNodeState: String
432
+ # @param Cpu: CPU核数
433
+ # @type Cpu: Integer
434
+ # @param Mem: 内存容量,单位GiB
435
+ # @type Mem: Integer
436
+ # @param ResourceCreatedTime: 资源创建完成时间
437
+ # @type ResourceCreatedTime: String
438
+ # @param TaskInstanceNumAvailable: 计算节点运行 TaskInstance 可用容量。0表示计算节点忙碌。
439
+ # @type TaskInstanceNumAvailable: Integer
440
+ # @param AgentVersion: Batch Agent 版本
441
+ # @type AgentVersion: String
442
+ # @param PrivateIpAddresses: 实例内网IP
443
+ # @type PrivateIpAddresses: Array
444
+ # @param PublicIpAddresses: 实例公网IP
445
+ # @type PublicIpAddresses: Array
446
+ # @param ResourceType: 计算环境资源类型,当前为CVM和CPM(黑石)
447
+ # @type ResourceType: String
448
+ # @param ResourceOrigin: 计算环境资源来源。<br>BATCH_CREATED:由批量计算创建的实例资源。<br>
449
+ # USER_ATTACHED:用户添加到计算环境中的实例资源。
450
+ # @type ResourceOrigin: String
451
+
452
+ attr_accessor :ComputeNodeId, :ComputeNodeInstanceId, :ComputeNodeState, :Cpu, :Mem, :ResourceCreatedTime, :TaskInstanceNumAvailable, :AgentVersion, :PrivateIpAddresses, :PublicIpAddresses, :ResourceType, :ResourceOrigin
453
+
454
+ def initialize(computenodeid=nil, computenodeinstanceid=nil, computenodestate=nil, cpu=nil, mem=nil, resourcecreatedtime=nil, taskinstancenumavailable=nil, agentversion=nil, privateipaddresses=nil, publicipaddresses=nil, resourcetype=nil, resourceorigin=nil)
455
+ @ComputeNodeId = computenodeid
456
+ @ComputeNodeInstanceId = computenodeinstanceid
457
+ @ComputeNodeState = computenodestate
458
+ @Cpu = cpu
459
+ @Mem = mem
460
+ @ResourceCreatedTime = resourcecreatedtime
461
+ @TaskInstanceNumAvailable = taskinstancenumavailable
462
+ @AgentVersion = agentversion
463
+ @PrivateIpAddresses = privateipaddresses
464
+ @PublicIpAddresses = publicipaddresses
465
+ @ResourceType = resourcetype
466
+ @ResourceOrigin = resourceorigin
467
+ end
468
+
469
+ def deserialize(params)
470
+ @ComputeNodeId = params['ComputeNodeId']
471
+ @ComputeNodeInstanceId = params['ComputeNodeInstanceId']
472
+ @ComputeNodeState = params['ComputeNodeState']
473
+ @Cpu = params['Cpu']
474
+ @Mem = params['Mem']
475
+ @ResourceCreatedTime = params['ResourceCreatedTime']
476
+ @TaskInstanceNumAvailable = params['TaskInstanceNumAvailable']
477
+ @AgentVersion = params['AgentVersion']
478
+ @PrivateIpAddresses = params['PrivateIpAddresses']
479
+ @PublicIpAddresses = params['PublicIpAddresses']
480
+ @ResourceType = params['ResourceType']
481
+ @ResourceOrigin = params['ResourceOrigin']
482
+ end
483
+ end
484
+
485
+ # 计算节点统计指标
486
+ class ComputeNodeMetrics < TencentCloud::Common::AbstractModel
487
+ # @param SubmittedCount: 已经完成提交的计算节点数量
488
+ # @type SubmittedCount: Integer
489
+ # @param CreatingCount: 创建中的计算节点数量
490
+ # @type CreatingCount: Integer
491
+ # @param CreationFailedCount: 创建失败的计算节点数量
492
+ # @type CreationFailedCount: Integer
493
+ # @param CreatedCount: 完成创建的计算节点数量
494
+ # @type CreatedCount: Integer
495
+ # @param RunningCount: 运行中的计算节点数量
496
+ # @type RunningCount: Integer
497
+ # @param DeletingCount: 销毁中的计算节点数量
498
+ # @type DeletingCount: Integer
499
+ # @param AbnormalCount: 异常的计算节点数量
500
+ # @type AbnormalCount: Integer
501
+
502
+ attr_accessor :SubmittedCount, :CreatingCount, :CreationFailedCount, :CreatedCount, :RunningCount, :DeletingCount, :AbnormalCount
503
+
504
+ def initialize(submittedcount=nil, creatingcount=nil, creationfailedcount=nil, createdcount=nil, runningcount=nil, deletingcount=nil, abnormalcount=nil)
505
+ @SubmittedCount = submittedcount
506
+ @CreatingCount = creatingcount
507
+ @CreationFailedCount = creationfailedcount
508
+ @CreatedCount = createdcount
509
+ @RunningCount = runningcount
510
+ @DeletingCount = deletingcount
511
+ @AbnormalCount = abnormalcount
512
+ end
513
+
514
+ def deserialize(params)
515
+ @SubmittedCount = params['SubmittedCount']
516
+ @CreatingCount = params['CreatingCount']
517
+ @CreationFailedCount = params['CreationFailedCount']
518
+ @CreatedCount = params['CreatedCount']
519
+ @RunningCount = params['RunningCount']
520
+ @DeletingCount = params['DeletingCount']
521
+ @AbnormalCount = params['AbnormalCount']
522
+ end
523
+ end
524
+
525
+ # 黑石私有网络
526
+ class CpmVirtualPrivateCloud < TencentCloud::Common::AbstractModel
527
+ # @param VpcId: 黑石私有网络ID
528
+ # @type VpcId: String
529
+ # @param SubnetId: 黑石子网ID
530
+ # @type SubnetId: String
531
+
532
+ attr_accessor :VpcId, :SubnetId
533
+
534
+ def initialize(vpcid=nil, subnetid=nil)
535
+ @VpcId = vpcid
536
+ @SubnetId = subnetid
537
+ end
538
+
539
+ def deserialize(params)
540
+ @VpcId = params['VpcId']
541
+ @SubnetId = params['SubnetId']
542
+ end
543
+ end
544
+
545
+ # CreateComputeEnv请求参数结构体
546
+ class CreateComputeEnvRequest < TencentCloud::Common::AbstractModel
547
+ # @param ComputeEnv: 计算环境信息
548
+ # @type ComputeEnv: :class:`Tencentcloud::Batch.v20170312.models.NamedComputeEnv`
549
+ # @param Placement: 位置信息
550
+ # @type Placement: :class:`Tencentcloud::Batch.v20170312.models.Placement`
551
+ # @param ClientToken: 用于保证请求幂等性的字符串。该字符串由用户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
552
+ # @type ClientToken: String
553
+
554
+ attr_accessor :ComputeEnv, :Placement, :ClientToken
555
+
556
+ def initialize(computeenv=nil, placement=nil, clienttoken=nil)
557
+ @ComputeEnv = computeenv
558
+ @Placement = placement
559
+ @ClientToken = clienttoken
560
+ end
561
+
562
+ def deserialize(params)
563
+ unless params['ComputeEnv'].nil?
564
+ @ComputeEnv = NamedComputeEnv.new
565
+ @ComputeEnv.deserialize(params['ComputeEnv'])
566
+ end
567
+ unless params['Placement'].nil?
568
+ @Placement = Placement.new
569
+ @Placement.deserialize(params['Placement'])
570
+ end
571
+ @ClientToken = params['ClientToken']
572
+ end
573
+ end
574
+
575
+ # CreateComputeEnv返回参数结构体
576
+ class CreateComputeEnvResponse < TencentCloud::Common::AbstractModel
577
+ # @param EnvId: 计算环境ID
578
+ # @type EnvId: String
579
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
580
+ # @type RequestId: String
581
+
582
+ attr_accessor :EnvId, :RequestId
583
+
584
+ def initialize(envid=nil, requestid=nil)
585
+ @EnvId = envid
586
+ @RequestId = requestid
587
+ end
588
+
589
+ def deserialize(params)
590
+ @EnvId = params['EnvId']
591
+ @RequestId = params['RequestId']
592
+ end
593
+ end
594
+
595
+ # CreateCpmComputeEnv请求参数结构体
596
+ class CreateCpmComputeEnvRequest < TencentCloud::Common::AbstractModel
597
+ # @param ComputeEnv: 计算环境信息
598
+ # @type ComputeEnv: :class:`Tencentcloud::Batch.v20170312.models.NamedCpmComputeEnv`
599
+ # @param Placement: 位置信息
600
+ # @type Placement: :class:`Tencentcloud::Batch.v20170312.models.Placement`
601
+ # @param ClientToken: 用于保证请求幂等性的字符串。该字符串由用户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
602
+ # @type ClientToken: String
603
+
604
+ attr_accessor :ComputeEnv, :Placement, :ClientToken
605
+
606
+ def initialize(computeenv=nil, placement=nil, clienttoken=nil)
607
+ @ComputeEnv = computeenv
608
+ @Placement = placement
609
+ @ClientToken = clienttoken
610
+ end
611
+
612
+ def deserialize(params)
613
+ unless params['ComputeEnv'].nil?
614
+ @ComputeEnv = NamedCpmComputeEnv.new
615
+ @ComputeEnv.deserialize(params['ComputeEnv'])
616
+ end
617
+ unless params['Placement'].nil?
618
+ @Placement = Placement.new
619
+ @Placement.deserialize(params['Placement'])
620
+ end
621
+ @ClientToken = params['ClientToken']
622
+ end
623
+ end
624
+
625
+ # CreateCpmComputeEnv返回参数结构体
626
+ class CreateCpmComputeEnvResponse < TencentCloud::Common::AbstractModel
627
+ # @param EnvId: 计算环境ID
628
+ # @type EnvId: String
629
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
630
+ # @type RequestId: String
631
+
632
+ attr_accessor :EnvId, :RequestId
633
+
634
+ def initialize(envid=nil, requestid=nil)
635
+ @EnvId = envid
636
+ @RequestId = requestid
637
+ end
638
+
639
+ def deserialize(params)
640
+ @EnvId = params['EnvId']
641
+ @RequestId = params['RequestId']
642
+ end
643
+ end
644
+
645
+ # CreateTaskTemplate请求参数结构体
646
+ class CreateTaskTemplateRequest < TencentCloud::Common::AbstractModel
647
+ # @param TaskTemplateName: 任务模板名称
648
+ # @type TaskTemplateName: String
649
+ # @param TaskTemplateInfo: 任务模板内容,参数要求与任务一致
650
+ # @type TaskTemplateInfo: :class:`Tencentcloud::Batch.v20170312.models.Task`
651
+ # @param TaskTemplateDescription: 任务模板描述
652
+ # @type TaskTemplateDescription: String
653
+ # @param Tags: 标签列表。通过指定该参数可以支持绑定标签到任务模板。每个任务模板最多绑定10个标签。
654
+ # @type Tags: Array
655
+
656
+ attr_accessor :TaskTemplateName, :TaskTemplateInfo, :TaskTemplateDescription, :Tags
657
+
658
+ def initialize(tasktemplatename=nil, tasktemplateinfo=nil, tasktemplatedescription=nil, tags=nil)
659
+ @TaskTemplateName = tasktemplatename
660
+ @TaskTemplateInfo = tasktemplateinfo
661
+ @TaskTemplateDescription = tasktemplatedescription
662
+ @Tags = tags
663
+ end
664
+
665
+ def deserialize(params)
666
+ @TaskTemplateName = params['TaskTemplateName']
667
+ unless params['TaskTemplateInfo'].nil?
668
+ @TaskTemplateInfo = Task.new
669
+ @TaskTemplateInfo.deserialize(params['TaskTemplateInfo'])
670
+ end
671
+ @TaskTemplateDescription = params['TaskTemplateDescription']
672
+ unless params['Tags'].nil?
673
+ @Tags = []
674
+ params['Tags'].each do |i|
675
+ tag_tmp = Tag.new
676
+ tag_tmp.deserialize(i)
677
+ @Tags << tag_tmp
678
+ end
679
+ end
680
+ end
681
+ end
682
+
683
+ # CreateTaskTemplate返回参数结构体
684
+ class CreateTaskTemplateResponse < TencentCloud::Common::AbstractModel
685
+ # @param TaskTemplateId: 任务模板ID
686
+ # @type TaskTemplateId: String
687
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
688
+ # @type RequestId: String
689
+
690
+ attr_accessor :TaskTemplateId, :RequestId
691
+
692
+ def initialize(tasktemplateid=nil, requestid=nil)
693
+ @TaskTemplateId = tasktemplateid
694
+ @RequestId = requestid
695
+ end
696
+
697
+ def deserialize(params)
698
+ @TaskTemplateId = params['TaskTemplateId']
699
+ @RequestId = params['RequestId']
700
+ end
701
+ end
702
+
703
+ # 描述了数据盘的信息
704
+ class DataDisk < TencentCloud::Common::AbstractModel
705
+ # @param DiskSize: 数据盘大小,单位:GB。最小调整步长为10G,不同数据盘类型取值范围不同,具体限制详见:[存储概述](https://cloud.tencent.com/document/product/213/4952)。默认值为0,表示不购买数据盘。更多限制详见产品文档。
706
+ # @type DiskSize: Integer
707
+ # @param DiskType: 数据盘类型。数据盘类型限制详见[存储概述](https://cloud.tencent.com/document/product/213/4952)。取值范围:<br><li>LOCAL_BASIC:本地硬盘<br><li>LOCAL_SSD:本地SSD硬盘<br><li>LOCAL_NVME:本地NVME硬盘,与InstanceType强相关,不支持指定<br><li>LOCAL_PRO:本地HDD硬盘,与InstanceType强相关,不支持指定<br><li>CLOUD_BASIC:普通云硬盘<br><li>CLOUD_PREMIUM:高性能云硬盘<br><li>CLOUD_SSD:SSD云硬盘<br><li>CLOUD_HSSD:增强型SSD云硬盘<br><li>CLOUD_TSSD:极速型SSD云硬盘<br><br>默认取值:LOCAL_BASIC。<br><br>该参数对`ResizeInstanceDisk`接口无效。
708
+ # @type DiskType: String
709
+ # @param DiskId: 数据盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID,暂时不支持该参数。
710
+ # @type DiskId: String
711
+ # @param DeleteWithInstance: 数据盘是否随子机销毁。取值范围:
712
+ # <li>TRUE:子机销毁时,销毁数据盘,只支持按小时后付费云盘
713
+ # <li>FALSE:子机销毁时,保留数据盘<br>
714
+ # 默认取值:TRUE<br>
715
+ # 该参数目前仅用于 `RunInstances` 接口。
716
+ # 注意:此字段可能返回 null,表示取不到有效值。
717
+ # @type DeleteWithInstance: Boolean
718
+ # @param SnapshotId: 数据盘快照ID。选择的数据盘快照大小需小于数据盘大小。
719
+ # 注意:此字段可能返回 null,表示取不到有效值。
720
+ # @type SnapshotId: String
721
+ # @param Encrypt: 数据盘是加密。取值范围:
722
+ # <li>TRUE:加密
723
+ # <li>FALSE:不加密<br>
724
+ # 默认取值:FALSE<br>
725
+ # 该参数目前仅用于 `RunInstances` 接口。
726
+ # 注意:此字段可能返回 null,表示取不到有效值。
727
+ # @type Encrypt: Boolean
728
+ # @param KmsKeyId: 自定义CMK对应的ID,取值为UUID或者类似kms-abcd1234。用于加密云盘。
729
+
730
+ # 该参数目前仅用于 `RunInstances` 接口。
731
+ # 注意:此字段可能返回 null,表示取不到有效值。
732
+ # @type KmsKeyId: String
733
+ # @param ThroughputPerformance: 云硬盘性能,单位:MB/s
734
+ # 注意:此字段可能返回 null,表示取不到有效值。
735
+ # @type ThroughputPerformance: Integer
736
+ # @param CdcId: 所属的独享集群ID。
737
+ # 注意:此字段可能返回 null,表示取不到有效值。
738
+ # @type CdcId: String
739
+
740
+ attr_accessor :DiskSize, :DiskType, :DiskId, :DeleteWithInstance, :SnapshotId, :Encrypt, :KmsKeyId, :ThroughputPerformance, :CdcId
741
+
742
+ def initialize(disksize=nil, disktype=nil, diskid=nil, deletewithinstance=nil, snapshotid=nil, encrypt=nil, kmskeyid=nil, throughputperformance=nil, cdcid=nil)
743
+ @DiskSize = disksize
744
+ @DiskType = disktype
745
+ @DiskId = diskid
746
+ @DeleteWithInstance = deletewithinstance
747
+ @SnapshotId = snapshotid
748
+ @Encrypt = encrypt
749
+ @KmsKeyId = kmskeyid
750
+ @ThroughputPerformance = throughputperformance
751
+ @CdcId = cdcid
752
+ end
753
+
754
+ def deserialize(params)
755
+ @DiskSize = params['DiskSize']
756
+ @DiskType = params['DiskType']
757
+ @DiskId = params['DiskId']
758
+ @DeleteWithInstance = params['DeleteWithInstance']
759
+ @SnapshotId = params['SnapshotId']
760
+ @Encrypt = params['Encrypt']
761
+ @KmsKeyId = params['KmsKeyId']
762
+ @ThroughputPerformance = params['ThroughputPerformance']
763
+ @CdcId = params['CdcId']
764
+ end
765
+ end
766
+
767
+ # DeleteComputeEnv请求参数结构体
768
+ class DeleteComputeEnvRequest < TencentCloud::Common::AbstractModel
769
+ # @param EnvId: 计算环境ID
770
+ # @type EnvId: String
771
+
772
+ attr_accessor :EnvId
773
+
774
+ def initialize(envid=nil)
775
+ @EnvId = envid
776
+ end
777
+
778
+ def deserialize(params)
779
+ @EnvId = params['EnvId']
780
+ end
781
+ end
782
+
783
+ # DeleteComputeEnv返回参数结构体
784
+ class DeleteComputeEnvResponse < TencentCloud::Common::AbstractModel
785
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
786
+ # @type RequestId: String
787
+
788
+ attr_accessor :RequestId
789
+
790
+ def initialize(requestid=nil)
791
+ @RequestId = requestid
792
+ end
793
+
794
+ def deserialize(params)
795
+ @RequestId = params['RequestId']
796
+ end
797
+ end
798
+
799
+ # DeleteJob请求参数结构体
800
+ class DeleteJobRequest < TencentCloud::Common::AbstractModel
801
+ # @param JobId: 作业ID
802
+ # @type JobId: String
803
+
804
+ attr_accessor :JobId
805
+
806
+ def initialize(jobid=nil)
807
+ @JobId = jobid
808
+ end
809
+
810
+ def deserialize(params)
811
+ @JobId = params['JobId']
812
+ end
813
+ end
814
+
815
+ # DeleteJob返回参数结构体
816
+ class DeleteJobResponse < TencentCloud::Common::AbstractModel
817
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
818
+ # @type RequestId: String
819
+
820
+ attr_accessor :RequestId
821
+
822
+ def initialize(requestid=nil)
823
+ @RequestId = requestid
824
+ end
825
+
826
+ def deserialize(params)
827
+ @RequestId = params['RequestId']
828
+ end
829
+ end
830
+
831
+ # DeleteTaskTemplates请求参数结构体
832
+ class DeleteTaskTemplatesRequest < TencentCloud::Common::AbstractModel
833
+ # @param TaskTemplateIds: 用于删除任务模板信息
834
+ # @type TaskTemplateIds: Array
835
+
836
+ attr_accessor :TaskTemplateIds
837
+
838
+ def initialize(tasktemplateids=nil)
839
+ @TaskTemplateIds = tasktemplateids
840
+ end
841
+
842
+ def deserialize(params)
843
+ @TaskTemplateIds = params['TaskTemplateIds']
844
+ end
845
+ end
846
+
847
+ # DeleteTaskTemplates返回参数结构体
848
+ class DeleteTaskTemplatesResponse < TencentCloud::Common::AbstractModel
849
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
850
+ # @type RequestId: String
851
+
852
+ attr_accessor :RequestId
853
+
854
+ def initialize(requestid=nil)
855
+ @RequestId = requestid
856
+ end
857
+
858
+ def deserialize(params)
859
+ @RequestId = params['RequestId']
860
+ end
861
+ end
862
+
863
+ # 依赖关系
864
+ class Dependence < TencentCloud::Common::AbstractModel
865
+ # @param StartTask: 依赖关系的起点任务名称
866
+ # @type StartTask: String
867
+ # @param EndTask: 依赖关系的终点任务名称
868
+ # @type EndTask: String
869
+
870
+ attr_accessor :StartTask, :EndTask
871
+
872
+ def initialize(starttask=nil, endtask=nil)
873
+ @StartTask = starttask
874
+ @EndTask = endtask
875
+ end
876
+
877
+ def deserialize(params)
878
+ @StartTask = params['StartTask']
879
+ @EndTask = params['EndTask']
880
+ end
881
+ end
882
+
883
+ # DescribeAvailableCvmInstanceTypes请求参数结构体
884
+ class DescribeAvailableCvmInstanceTypesRequest < TencentCloud::Common::AbstractModel
885
+ # @param Filters: 过滤条件。
886
+ # <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
887
+ # <li> instance-family String - 是否必填:否 -(过滤条件)按照机型系列过滤。实例机型系列形如:S1、I1、M1等。</li>
888
+ # @type Filters: Array
889
+
890
+ attr_accessor :Filters
891
+
892
+ def initialize(filters=nil)
893
+ @Filters = filters
894
+ end
895
+
896
+ def deserialize(params)
897
+ unless params['Filters'].nil?
898
+ @Filters = []
899
+ params['Filters'].each do |i|
900
+ filter_tmp = Filter.new
901
+ filter_tmp.deserialize(i)
902
+ @Filters << filter_tmp
903
+ end
904
+ end
905
+ end
906
+ end
907
+
908
+ # DescribeAvailableCvmInstanceTypes返回参数结构体
909
+ class DescribeAvailableCvmInstanceTypesResponse < TencentCloud::Common::AbstractModel
910
+ # @param InstanceTypeConfigSet: 机型配置数组
911
+ # @type InstanceTypeConfigSet: Array
912
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
913
+ # @type RequestId: String
914
+
915
+ attr_accessor :InstanceTypeConfigSet, :RequestId
916
+
917
+ def initialize(instancetypeconfigset=nil, requestid=nil)
918
+ @InstanceTypeConfigSet = instancetypeconfigset
919
+ @RequestId = requestid
920
+ end
921
+
922
+ def deserialize(params)
923
+ unless params['InstanceTypeConfigSet'].nil?
924
+ @InstanceTypeConfigSet = []
925
+ params['InstanceTypeConfigSet'].each do |i|
926
+ instancetypeconfig_tmp = InstanceTypeConfig.new
927
+ instancetypeconfig_tmp.deserialize(i)
928
+ @InstanceTypeConfigSet << instancetypeconfig_tmp
929
+ end
930
+ end
931
+ @RequestId = params['RequestId']
932
+ end
933
+ end
934
+
935
+ # DescribeComputeEnvActivities请求参数结构体
936
+ class DescribeComputeEnvActivitiesRequest < TencentCloud::Common::AbstractModel
937
+ # @param EnvId: 计算环境ID
938
+ # @type EnvId: String
939
+ # @param Offset: 偏移量
940
+ # @type Offset: Integer
941
+ # @param Limit: 返回数量
942
+ # @type Limit: Integer
943
+ # @param Filters: 过滤条件
944
+ # <li> compute-node-id - String - 是否必填:否 -(过滤条件)按照计算节点ID过滤。</li>
945
+ # @type Filters: :class:`Tencentcloud::Batch.v20170312.models.Filter`
946
+
947
+ attr_accessor :EnvId, :Offset, :Limit, :Filters
948
+
949
+ def initialize(envid=nil, offset=nil, limit=nil, filters=nil)
950
+ @EnvId = envid
951
+ @Offset = offset
952
+ @Limit = limit
953
+ @Filters = filters
954
+ end
955
+
956
+ def deserialize(params)
957
+ @EnvId = params['EnvId']
958
+ @Offset = params['Offset']
959
+ @Limit = params['Limit']
960
+ unless params['Filters'].nil?
961
+ @Filters = Filter.new
962
+ @Filters.deserialize(params['Filters'])
963
+ end
964
+ end
965
+ end
966
+
967
+ # DescribeComputeEnvActivities返回参数结构体
968
+ class DescribeComputeEnvActivitiesResponse < TencentCloud::Common::AbstractModel
969
+ # @param ActivitySet: 计算环境中的活动列表
970
+ # @type ActivitySet: Array
971
+ # @param TotalCount: 活动数量
972
+ # @type TotalCount: Integer
973
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
974
+ # @type RequestId: String
975
+
976
+ attr_accessor :ActivitySet, :TotalCount, :RequestId
977
+
978
+ def initialize(activityset=nil, totalcount=nil, requestid=nil)
979
+ @ActivitySet = activityset
980
+ @TotalCount = totalcount
981
+ @RequestId = requestid
982
+ end
983
+
984
+ def deserialize(params)
985
+ unless params['ActivitySet'].nil?
986
+ @ActivitySet = []
987
+ params['ActivitySet'].each do |i|
988
+ activity_tmp = Activity.new
989
+ activity_tmp.deserialize(i)
990
+ @ActivitySet << activity_tmp
991
+ end
992
+ end
993
+ @TotalCount = params['TotalCount']
994
+ @RequestId = params['RequestId']
995
+ end
996
+ end
997
+
998
+ # DescribeComputeEnvCreateInfo请求参数结构体
999
+ class DescribeComputeEnvCreateInfoRequest < TencentCloud::Common::AbstractModel
1000
+ # @param EnvId: 计算环境ID
1001
+ # @type EnvId: String
1002
+
1003
+ attr_accessor :EnvId
1004
+
1005
+ def initialize(envid=nil)
1006
+ @EnvId = envid
1007
+ end
1008
+
1009
+ def deserialize(params)
1010
+ @EnvId = params['EnvId']
1011
+ end
1012
+ end
1013
+
1014
+ # DescribeComputeEnvCreateInfo返回参数结构体
1015
+ class DescribeComputeEnvCreateInfoResponse < TencentCloud::Common::AbstractModel
1016
+ # @param EnvId: 计算环境 ID
1017
+ # @type EnvId: String
1018
+ # @param EnvName: 计算环境名称
1019
+ # @type EnvName: String
1020
+ # @param EnvDescription: 计算环境描述
1021
+ # 注意:此字段可能返回 null,表示取不到有效值。
1022
+ # @type EnvDescription: String
1023
+ # @param EnvType: 计算环境类型,仅支持“MANAGED”类型
1024
+ # @type EnvType: String
1025
+ # @param EnvData: 计算环境参数
1026
+ # @type EnvData: :class:`Tencentcloud::Batch.v20170312.models.EnvData`
1027
+ # @param MountDataDisks: 数据盘挂载选项
1028
+ # @type MountDataDisks: Array
1029
+ # @param InputMappings: 输入映射
1030
+ # @type InputMappings: Array
1031
+ # @param Authentications: 授权信息
1032
+ # @type Authentications: Array
1033
+ # @param Notifications: 通知信息
1034
+ # @type Notifications: Array
1035
+ # @param DesiredComputeNodeCount: 计算节点期望个数
1036
+ # @type DesiredComputeNodeCount: Integer
1037
+ # @param Tags: 计算环境绑定的标签列表
1038
+ # 注意:此字段可能返回 null,表示取不到有效值。
1039
+ # @type Tags: Array
1040
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1041
+ # @type RequestId: String
1042
+
1043
+ attr_accessor :EnvId, :EnvName, :EnvDescription, :EnvType, :EnvData, :MountDataDisks, :InputMappings, :Authentications, :Notifications, :DesiredComputeNodeCount, :Tags, :RequestId
1044
+
1045
+ def initialize(envid=nil, envname=nil, envdescription=nil, envtype=nil, envdata=nil, mountdatadisks=nil, inputmappings=nil, authentications=nil, notifications=nil, desiredcomputenodecount=nil, tags=nil, requestid=nil)
1046
+ @EnvId = envid
1047
+ @EnvName = envname
1048
+ @EnvDescription = envdescription
1049
+ @EnvType = envtype
1050
+ @EnvData = envdata
1051
+ @MountDataDisks = mountdatadisks
1052
+ @InputMappings = inputmappings
1053
+ @Authentications = authentications
1054
+ @Notifications = notifications
1055
+ @DesiredComputeNodeCount = desiredcomputenodecount
1056
+ @Tags = tags
1057
+ @RequestId = requestid
1058
+ end
1059
+
1060
+ def deserialize(params)
1061
+ @EnvId = params['EnvId']
1062
+ @EnvName = params['EnvName']
1063
+ @EnvDescription = params['EnvDescription']
1064
+ @EnvType = params['EnvType']
1065
+ unless params['EnvData'].nil?
1066
+ @EnvData = EnvData.new
1067
+ @EnvData.deserialize(params['EnvData'])
1068
+ end
1069
+ unless params['MountDataDisks'].nil?
1070
+ @MountDataDisks = []
1071
+ params['MountDataDisks'].each do |i|
1072
+ mountdatadisk_tmp = MountDataDisk.new
1073
+ mountdatadisk_tmp.deserialize(i)
1074
+ @MountDataDisks << mountdatadisk_tmp
1075
+ end
1076
+ end
1077
+ unless params['InputMappings'].nil?
1078
+ @InputMappings = []
1079
+ params['InputMappings'].each do |i|
1080
+ inputmapping_tmp = InputMapping.new
1081
+ inputmapping_tmp.deserialize(i)
1082
+ @InputMappings << inputmapping_tmp
1083
+ end
1084
+ end
1085
+ unless params['Authentications'].nil?
1086
+ @Authentications = []
1087
+ params['Authentications'].each do |i|
1088
+ authentication_tmp = Authentication.new
1089
+ authentication_tmp.deserialize(i)
1090
+ @Authentications << authentication_tmp
1091
+ end
1092
+ end
1093
+ unless params['Notifications'].nil?
1094
+ @Notifications = []
1095
+ params['Notifications'].each do |i|
1096
+ notification_tmp = Notification.new
1097
+ notification_tmp.deserialize(i)
1098
+ @Notifications << notification_tmp
1099
+ end
1100
+ end
1101
+ @DesiredComputeNodeCount = params['DesiredComputeNodeCount']
1102
+ unless params['Tags'].nil?
1103
+ @Tags = []
1104
+ params['Tags'].each do |i|
1105
+ tag_tmp = Tag.new
1106
+ tag_tmp.deserialize(i)
1107
+ @Tags << tag_tmp
1108
+ end
1109
+ end
1110
+ @RequestId = params['RequestId']
1111
+ end
1112
+ end
1113
+
1114
+ # DescribeComputeEnvCreateInfos请求参数结构体
1115
+ class DescribeComputeEnvCreateInfosRequest < TencentCloud::Common::AbstractModel
1116
+ # @param EnvIds: 计算环境ID列表,与Filters参数不能同时指定。
1117
+ # @type EnvIds: Array
1118
+ # @param Filters: 过滤条件
1119
+ # <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
1120
+ # <li> env-id - String - 是否必填:否 -(过滤条件)按照计算环境ID过滤。</li>
1121
+ # <li> env-name - String - 是否必填:否 -(过滤条件)按照计算环境名称过滤。</li>
1122
+ # 与EnvIds参数不能同时指定。
1123
+ # @type Filters: Array
1124
+ # @param Offset: 偏移量
1125
+ # @type Offset: Integer
1126
+ # @param Limit: 返回数量
1127
+ # @type Limit: Integer
1128
+
1129
+ attr_accessor :EnvIds, :Filters, :Offset, :Limit
1130
+
1131
+ def initialize(envids=nil, filters=nil, offset=nil, limit=nil)
1132
+ @EnvIds = envids
1133
+ @Filters = filters
1134
+ @Offset = offset
1135
+ @Limit = limit
1136
+ end
1137
+
1138
+ def deserialize(params)
1139
+ @EnvIds = params['EnvIds']
1140
+ unless params['Filters'].nil?
1141
+ @Filters = []
1142
+ params['Filters'].each do |i|
1143
+ filter_tmp = Filter.new
1144
+ filter_tmp.deserialize(i)
1145
+ @Filters << filter_tmp
1146
+ end
1147
+ end
1148
+ @Offset = params['Offset']
1149
+ @Limit = params['Limit']
1150
+ end
1151
+ end
1152
+
1153
+ # DescribeComputeEnvCreateInfos返回参数结构体
1154
+ class DescribeComputeEnvCreateInfosResponse < TencentCloud::Common::AbstractModel
1155
+ # @param TotalCount: 计算环境数量
1156
+ # @type TotalCount: Integer
1157
+ # @param ComputeEnvCreateInfoSet: 计算环境创建信息列表
1158
+ # @type ComputeEnvCreateInfoSet: Array
1159
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1160
+ # @type RequestId: String
1161
+
1162
+ attr_accessor :TotalCount, :ComputeEnvCreateInfoSet, :RequestId
1163
+
1164
+ def initialize(totalcount=nil, computeenvcreateinfoset=nil, requestid=nil)
1165
+ @TotalCount = totalcount
1166
+ @ComputeEnvCreateInfoSet = computeenvcreateinfoset
1167
+ @RequestId = requestid
1168
+ end
1169
+
1170
+ def deserialize(params)
1171
+ @TotalCount = params['TotalCount']
1172
+ unless params['ComputeEnvCreateInfoSet'].nil?
1173
+ @ComputeEnvCreateInfoSet = []
1174
+ params['ComputeEnvCreateInfoSet'].each do |i|
1175
+ computeenvcreateinfo_tmp = ComputeEnvCreateInfo.new
1176
+ computeenvcreateinfo_tmp.deserialize(i)
1177
+ @ComputeEnvCreateInfoSet << computeenvcreateinfo_tmp
1178
+ end
1179
+ end
1180
+ @RequestId = params['RequestId']
1181
+ end
1182
+ end
1183
+
1184
+ # DescribeComputeEnv请求参数结构体
1185
+ class DescribeComputeEnvRequest < TencentCloud::Common::AbstractModel
1186
+ # @param EnvId: 计算环境ID
1187
+ # @type EnvId: String
1188
+
1189
+ attr_accessor :EnvId
1190
+
1191
+ def initialize(envid=nil)
1192
+ @EnvId = envid
1193
+ end
1194
+
1195
+ def deserialize(params)
1196
+ @EnvId = params['EnvId']
1197
+ end
1198
+ end
1199
+
1200
+ # DescribeComputeEnv返回参数结构体
1201
+ class DescribeComputeEnvResponse < TencentCloud::Common::AbstractModel
1202
+ # @param EnvId: 计算环境ID
1203
+ # @type EnvId: String
1204
+ # @param EnvName: 计算环境名称
1205
+ # @type EnvName: String
1206
+ # @param Placement: 位置信息
1207
+ # @type Placement: :class:`Tencentcloud::Batch.v20170312.models.Placement`
1208
+ # @param CreateTime: 计算环境创建时间
1209
+ # @type CreateTime: String
1210
+ # @param ComputeNodeSet: 计算节点列表信息
1211
+ # @type ComputeNodeSet: Array
1212
+ # @param ComputeNodeMetrics: 计算节点统计指标
1213
+ # @type ComputeNodeMetrics: :class:`Tencentcloud::Batch.v20170312.models.ComputeNodeMetrics`
1214
+ # @param DesiredComputeNodeCount: 计算节点期望个数
1215
+ # @type DesiredComputeNodeCount: Integer
1216
+ # @param EnvType: 计算环境类型
1217
+ # @type EnvType: String
1218
+ # @param ResourceType: 计算环境资源类型,当前为CVM和CPM(黑石)
1219
+ # @type ResourceType: String
1220
+ # @param NextAction: 下一步动作
1221
+ # @type NextAction: String
1222
+ # @param AttachedComputeNodeCount: 用户添加到计算环境中的计算节点个数
1223
+ # @type AttachedComputeNodeCount: Integer
1224
+ # @param Tags: 计算环境绑定的标签列表。
1225
+ # 注意:此字段可能返回 null,表示取不到有效值。
1226
+ # @type Tags: Array
1227
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1228
+ # @type RequestId: String
1229
+
1230
+ attr_accessor :EnvId, :EnvName, :Placement, :CreateTime, :ComputeNodeSet, :ComputeNodeMetrics, :DesiredComputeNodeCount, :EnvType, :ResourceType, :NextAction, :AttachedComputeNodeCount, :Tags, :RequestId
1231
+
1232
+ def initialize(envid=nil, envname=nil, placement=nil, createtime=nil, computenodeset=nil, computenodemetrics=nil, desiredcomputenodecount=nil, envtype=nil, resourcetype=nil, nextaction=nil, attachedcomputenodecount=nil, tags=nil, requestid=nil)
1233
+ @EnvId = envid
1234
+ @EnvName = envname
1235
+ @Placement = placement
1236
+ @CreateTime = createtime
1237
+ @ComputeNodeSet = computenodeset
1238
+ @ComputeNodeMetrics = computenodemetrics
1239
+ @DesiredComputeNodeCount = desiredcomputenodecount
1240
+ @EnvType = envtype
1241
+ @ResourceType = resourcetype
1242
+ @NextAction = nextaction
1243
+ @AttachedComputeNodeCount = attachedcomputenodecount
1244
+ @Tags = tags
1245
+ @RequestId = requestid
1246
+ end
1247
+
1248
+ def deserialize(params)
1249
+ @EnvId = params['EnvId']
1250
+ @EnvName = params['EnvName']
1251
+ unless params['Placement'].nil?
1252
+ @Placement = Placement.new
1253
+ @Placement.deserialize(params['Placement'])
1254
+ end
1255
+ @CreateTime = params['CreateTime']
1256
+ unless params['ComputeNodeSet'].nil?
1257
+ @ComputeNodeSet = []
1258
+ params['ComputeNodeSet'].each do |i|
1259
+ computenode_tmp = ComputeNode.new
1260
+ computenode_tmp.deserialize(i)
1261
+ @ComputeNodeSet << computenode_tmp
1262
+ end
1263
+ end
1264
+ unless params['ComputeNodeMetrics'].nil?
1265
+ @ComputeNodeMetrics = ComputeNodeMetrics.new
1266
+ @ComputeNodeMetrics.deserialize(params['ComputeNodeMetrics'])
1267
+ end
1268
+ @DesiredComputeNodeCount = params['DesiredComputeNodeCount']
1269
+ @EnvType = params['EnvType']
1270
+ @ResourceType = params['ResourceType']
1271
+ @NextAction = params['NextAction']
1272
+ @AttachedComputeNodeCount = params['AttachedComputeNodeCount']
1273
+ unless params['Tags'].nil?
1274
+ @Tags = []
1275
+ params['Tags'].each do |i|
1276
+ tag_tmp = Tag.new
1277
+ tag_tmp.deserialize(i)
1278
+ @Tags << tag_tmp
1279
+ end
1280
+ end
1281
+ @RequestId = params['RequestId']
1282
+ end
1283
+ end
1284
+
1285
+ # DescribeComputeEnvs请求参数结构体
1286
+ class DescribeComputeEnvsRequest < TencentCloud::Common::AbstractModel
1287
+ # @param EnvIds: 计算环境ID列表,与Filters参数不能同时指定。
1288
+ # @type EnvIds: Array
1289
+ # @param Filters: 过滤条件
1290
+ # <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
1291
+ # <li> env-id - String - 是否必填:否 -(过滤条件)按照计算环境ID过滤。</li>
1292
+ # <li> env-name - String - 是否必填:否 -(过滤条件)按照计算环境名称过滤。</li>
1293
+ # <li> resource-type - String - 是否必填:否 -(过滤条件)按照计算资源类型过滤,取值CVM或者CPM(黑石)。</li>
1294
+ # <li> tag-key - String - 是否必填:否 -(过滤条件)按照标签键进行过滤。</li>
1295
+ # <li>tag-value - String - 是否必填:否 -(过滤条件)按照标签值进行过滤。</li>
1296
+ # <li>tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。</li>
1297
+ # 与EnvIds参数不能同时指定。
1298
+ # @type Filters: Array
1299
+ # @param Offset: 偏移量
1300
+ # @type Offset: Integer
1301
+ # @param Limit: 返回数量
1302
+ # @type Limit: Integer
1303
+
1304
+ attr_accessor :EnvIds, :Filters, :Offset, :Limit
1305
+
1306
+ def initialize(envids=nil, filters=nil, offset=nil, limit=nil)
1307
+ @EnvIds = envids
1308
+ @Filters = filters
1309
+ @Offset = offset
1310
+ @Limit = limit
1311
+ end
1312
+
1313
+ def deserialize(params)
1314
+ @EnvIds = params['EnvIds']
1315
+ unless params['Filters'].nil?
1316
+ @Filters = []
1317
+ params['Filters'].each do |i|
1318
+ filter_tmp = Filter.new
1319
+ filter_tmp.deserialize(i)
1320
+ @Filters << filter_tmp
1321
+ end
1322
+ end
1323
+ @Offset = params['Offset']
1324
+ @Limit = params['Limit']
1325
+ end
1326
+ end
1327
+
1328
+ # DescribeComputeEnvs返回参数结构体
1329
+ class DescribeComputeEnvsResponse < TencentCloud::Common::AbstractModel
1330
+ # @param ComputeEnvSet: 计算环境列表
1331
+ # @type ComputeEnvSet: Array
1332
+ # @param TotalCount: 计算环境数量
1333
+ # @type TotalCount: Integer
1334
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1335
+ # @type RequestId: String
1336
+
1337
+ attr_accessor :ComputeEnvSet, :TotalCount, :RequestId
1338
+
1339
+ def initialize(computeenvset=nil, totalcount=nil, requestid=nil)
1340
+ @ComputeEnvSet = computeenvset
1341
+ @TotalCount = totalcount
1342
+ @RequestId = requestid
1343
+ end
1344
+
1345
+ def deserialize(params)
1346
+ unless params['ComputeEnvSet'].nil?
1347
+ @ComputeEnvSet = []
1348
+ params['ComputeEnvSet'].each do |i|
1349
+ computeenvview_tmp = ComputeEnvView.new
1350
+ computeenvview_tmp.deserialize(i)
1351
+ @ComputeEnvSet << computeenvview_tmp
1352
+ end
1353
+ end
1354
+ @TotalCount = params['TotalCount']
1355
+ @RequestId = params['RequestId']
1356
+ end
1357
+ end
1358
+
1359
+ # DescribeCpmOsInfo请求参数结构体
1360
+ class DescribeCpmOsInfoRequest < TencentCloud::Common::AbstractModel
1361
+ # @param DeviceClassCode: 黑石设备类型代号。 可以从[DescribeDeviceClass](https://cloud.tencent.com/document/api/386/32911)查询设备类型列表。
1362
+ # @type DeviceClassCode: String
1363
+
1364
+ attr_accessor :DeviceClassCode
1365
+
1366
+ def initialize(deviceclasscode=nil)
1367
+ @DeviceClassCode = deviceclasscode
1368
+ end
1369
+
1370
+ def deserialize(params)
1371
+ @DeviceClassCode = params['DeviceClassCode']
1372
+ end
1373
+ end
1374
+
1375
+ # DescribeCpmOsInfo返回参数结构体
1376
+ class DescribeCpmOsInfoResponse < TencentCloud::Common::AbstractModel
1377
+ # @param OsInfoSet: 操作系统信息列表。
1378
+ # @type OsInfoSet: Array
1379
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1380
+ # @type RequestId: String
1381
+
1382
+ attr_accessor :OsInfoSet, :RequestId
1383
+
1384
+ def initialize(osinfoset=nil, requestid=nil)
1385
+ @OsInfoSet = osinfoset
1386
+ @RequestId = requestid
1387
+ end
1388
+
1389
+ def deserialize(params)
1390
+ unless params['OsInfoSet'].nil?
1391
+ @OsInfoSet = []
1392
+ params['OsInfoSet'].each do |i|
1393
+ osinfo_tmp = OsInfo.new
1394
+ osinfo_tmp.deserialize(i)
1395
+ @OsInfoSet << osinfo_tmp
1396
+ end
1397
+ end
1398
+ @RequestId = params['RequestId']
1399
+ end
1400
+ end
1401
+
1402
+ # DescribeCvmZoneInstanceConfigInfos请求参数结构体
1403
+ class DescribeCvmZoneInstanceConfigInfosRequest < TencentCloud::Common::AbstractModel
1404
+ # @param Filters: 过滤条件。
1405
+ # <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
1406
+ # <li> instance-family String - 是否必填:否 -(过滤条件)按照机型系列过滤。实例机型系列形如:S1、I1、M1等。</li>
1407
+ # <li> instance-type - String - 是否必填:否 - (过滤条件)按照机型过滤。</li>
1408
+ # <li> instance-charge-type - String - 是否必填:否 -(过滤条件)按照实例计费模式过滤。 ( POSTPAID_BY_HOUR:表示后付费,即按量计费机型 | SPOTPAID:表示竞价付费机型。 ) </li>
1409
+ # @type Filters: Array
1410
+
1411
+ attr_accessor :Filters
1412
+
1413
+ def initialize(filters=nil)
1414
+ @Filters = filters
1415
+ end
1416
+
1417
+ def deserialize(params)
1418
+ unless params['Filters'].nil?
1419
+ @Filters = []
1420
+ params['Filters'].each do |i|
1421
+ filter_tmp = Filter.new
1422
+ filter_tmp.deserialize(i)
1423
+ @Filters << filter_tmp
1424
+ end
1425
+ end
1426
+ end
1427
+ end
1428
+
1429
+ # DescribeCvmZoneInstanceConfigInfos返回参数结构体
1430
+ class DescribeCvmZoneInstanceConfigInfosResponse < TencentCloud::Common::AbstractModel
1431
+ # @param InstanceTypeQuotaSet: 可用区机型配置列表。
1432
+ # @type InstanceTypeQuotaSet: Array
1433
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1434
+ # @type RequestId: String
1435
+
1436
+ attr_accessor :InstanceTypeQuotaSet, :RequestId
1437
+
1438
+ def initialize(instancetypequotaset=nil, requestid=nil)
1439
+ @InstanceTypeQuotaSet = instancetypequotaset
1440
+ @RequestId = requestid
1441
+ end
1442
+
1443
+ def deserialize(params)
1444
+ unless params['InstanceTypeQuotaSet'].nil?
1445
+ @InstanceTypeQuotaSet = []
1446
+ params['InstanceTypeQuotaSet'].each do |i|
1447
+ instancetypequotaitem_tmp = InstanceTypeQuotaItem.new
1448
+ instancetypequotaitem_tmp.deserialize(i)
1449
+ @InstanceTypeQuotaSet << instancetypequotaitem_tmp
1450
+ end
1451
+ end
1452
+ @RequestId = params['RequestId']
1453
+ end
1454
+ end
1455
+
1456
+ # DescribeInstanceCategories请求参数结构体
1457
+ class DescribeInstanceCategoriesRequest < TencentCloud::Common::AbstractModel
1458
+
1459
+
1460
+ def initialize()
1461
+ end
1462
+
1463
+ def deserialize(params)
1464
+ end
1465
+ end
1466
+
1467
+ # DescribeInstanceCategories返回参数结构体
1468
+ class DescribeInstanceCategoriesResponse < TencentCloud::Common::AbstractModel
1469
+ # @param InstanceCategorySet: CVM实例分类列表
1470
+ # @type InstanceCategorySet: Array
1471
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1472
+ # @type RequestId: String
1473
+
1474
+ attr_accessor :InstanceCategorySet, :RequestId
1475
+
1476
+ def initialize(instancecategoryset=nil, requestid=nil)
1477
+ @InstanceCategorySet = instancecategoryset
1478
+ @RequestId = requestid
1479
+ end
1480
+
1481
+ def deserialize(params)
1482
+ unless params['InstanceCategorySet'].nil?
1483
+ @InstanceCategorySet = []
1484
+ params['InstanceCategorySet'].each do |i|
1485
+ instancecategoryitem_tmp = InstanceCategoryItem.new
1486
+ instancecategoryitem_tmp.deserialize(i)
1487
+ @InstanceCategorySet << instancecategoryitem_tmp
1488
+ end
1489
+ end
1490
+ @RequestId = params['RequestId']
1491
+ end
1492
+ end
1493
+
1494
+ # DescribeJob请求参数结构体
1495
+ class DescribeJobRequest < TencentCloud::Common::AbstractModel
1496
+ # @param JobId: 作业标识
1497
+ # @type JobId: String
1498
+
1499
+ attr_accessor :JobId
1500
+
1501
+ def initialize(jobid=nil)
1502
+ @JobId = jobid
1503
+ end
1504
+
1505
+ def deserialize(params)
1506
+ @JobId = params['JobId']
1507
+ end
1508
+ end
1509
+
1510
+ # DescribeJob返回参数结构体
1511
+ class DescribeJobResponse < TencentCloud::Common::AbstractModel
1512
+ # @param JobId: 作业ID
1513
+ # @type JobId: String
1514
+ # @param JobName: 作业名称
1515
+ # @type JobName: String
1516
+ # @param Zone: 可用区信息
1517
+ # @type Zone: String
1518
+ # @param Priority: 作业优先级
1519
+ # @type Priority: Integer
1520
+ # @param JobState: 作业状态
1521
+ # @type JobState: String
1522
+ # @param CreateTime: 创建时间
1523
+ # @type CreateTime: String
1524
+ # @param EndTime: 结束时间
1525
+ # @type EndTime: String
1526
+ # @param TaskSet: 任务视图信息
1527
+ # @type TaskSet: Array
1528
+ # @param DependenceSet: 任务间依赖信息
1529
+ # @type DependenceSet: Array
1530
+ # @param TaskMetrics: 任务统计指标
1531
+ # @type TaskMetrics: :class:`Tencentcloud::Batch.v20170312.models.TaskMetrics`
1532
+ # @param TaskInstanceMetrics: 任务实例统计指标
1533
+ # @type TaskInstanceMetrics: :class:`Tencentcloud::Batch.v20170312.models.TaskInstanceMetrics`
1534
+ # @param StateReason: 作业失败原因
1535
+ # @type StateReason: String
1536
+ # @param Tags: 作业绑定的标签列表。
1537
+ # 注意:此字段可能返回 null,表示取不到有效值。
1538
+ # @type Tags: Array
1539
+ # @param NextAction: 下一步动作
1540
+ # 注意:此字段可能返回 null,表示取不到有效值。
1541
+ # @type NextAction: String
1542
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1543
+ # @type RequestId: String
1544
+
1545
+ attr_accessor :JobId, :JobName, :Zone, :Priority, :JobState, :CreateTime, :EndTime, :TaskSet, :DependenceSet, :TaskMetrics, :TaskInstanceMetrics, :StateReason, :Tags, :NextAction, :RequestId
1546
+
1547
+ def initialize(jobid=nil, jobname=nil, zone=nil, priority=nil, jobstate=nil, createtime=nil, endtime=nil, taskset=nil, dependenceset=nil, taskmetrics=nil, taskinstancemetrics=nil, statereason=nil, tags=nil, nextaction=nil, requestid=nil)
1548
+ @JobId = jobid
1549
+ @JobName = jobname
1550
+ @Zone = zone
1551
+ @Priority = priority
1552
+ @JobState = jobstate
1553
+ @CreateTime = createtime
1554
+ @EndTime = endtime
1555
+ @TaskSet = taskset
1556
+ @DependenceSet = dependenceset
1557
+ @TaskMetrics = taskmetrics
1558
+ @TaskInstanceMetrics = taskinstancemetrics
1559
+ @StateReason = statereason
1560
+ @Tags = tags
1561
+ @NextAction = nextaction
1562
+ @RequestId = requestid
1563
+ end
1564
+
1565
+ def deserialize(params)
1566
+ @JobId = params['JobId']
1567
+ @JobName = params['JobName']
1568
+ @Zone = params['Zone']
1569
+ @Priority = params['Priority']
1570
+ @JobState = params['JobState']
1571
+ @CreateTime = params['CreateTime']
1572
+ @EndTime = params['EndTime']
1573
+ unless params['TaskSet'].nil?
1574
+ @TaskSet = []
1575
+ params['TaskSet'].each do |i|
1576
+ taskview_tmp = TaskView.new
1577
+ taskview_tmp.deserialize(i)
1578
+ @TaskSet << taskview_tmp
1579
+ end
1580
+ end
1581
+ unless params['DependenceSet'].nil?
1582
+ @DependenceSet = []
1583
+ params['DependenceSet'].each do |i|
1584
+ dependence_tmp = Dependence.new
1585
+ dependence_tmp.deserialize(i)
1586
+ @DependenceSet << dependence_tmp
1587
+ end
1588
+ end
1589
+ unless params['TaskMetrics'].nil?
1590
+ @TaskMetrics = TaskMetrics.new
1591
+ @TaskMetrics.deserialize(params['TaskMetrics'])
1592
+ end
1593
+ unless params['TaskInstanceMetrics'].nil?
1594
+ @TaskInstanceMetrics = TaskInstanceMetrics.new
1595
+ @TaskInstanceMetrics.deserialize(params['TaskInstanceMetrics'])
1596
+ end
1597
+ @StateReason = params['StateReason']
1598
+ unless params['Tags'].nil?
1599
+ @Tags = []
1600
+ params['Tags'].each do |i|
1601
+ tag_tmp = Tag.new
1602
+ tag_tmp.deserialize(i)
1603
+ @Tags << tag_tmp
1604
+ end
1605
+ end
1606
+ @NextAction = params['NextAction']
1607
+ @RequestId = params['RequestId']
1608
+ end
1609
+ end
1610
+
1611
+ # DescribeJobSubmitInfo请求参数结构体
1612
+ class DescribeJobSubmitInfoRequest < TencentCloud::Common::AbstractModel
1613
+ # @param JobId: 作业ID
1614
+ # @type JobId: String
1615
+
1616
+ attr_accessor :JobId
1617
+
1618
+ def initialize(jobid=nil)
1619
+ @JobId = jobid
1620
+ end
1621
+
1622
+ def deserialize(params)
1623
+ @JobId = params['JobId']
1624
+ end
1625
+ end
1626
+
1627
+ # DescribeJobSubmitInfo返回参数结构体
1628
+ class DescribeJobSubmitInfoResponse < TencentCloud::Common::AbstractModel
1629
+ # @param JobId: 作业ID
1630
+ # @type JobId: String
1631
+ # @param JobName: 作业名称
1632
+ # @type JobName: String
1633
+ # @param JobDescription: 作业描述
1634
+ # @type JobDescription: String
1635
+ # @param Priority: 作业优先级,任务(Task)和任务实例(TaskInstance)会继承作业优先级
1636
+ # @type Priority: Integer
1637
+ # @param Tasks: 任务信息
1638
+ # @type Tasks: Array
1639
+ # @param Dependences: 依赖信息
1640
+ # @type Dependences: Array
1641
+ # @param Tags: 作业绑定的标签列表。
1642
+ # 注意:此字段可能返回 null,表示取不到有效值。
1643
+ # @type Tags: Array
1644
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1645
+ # @type RequestId: String
1646
+
1647
+ attr_accessor :JobId, :JobName, :JobDescription, :Priority, :Tasks, :Dependences, :Tags, :RequestId
1648
+
1649
+ def initialize(jobid=nil, jobname=nil, jobdescription=nil, priority=nil, tasks=nil, dependences=nil, tags=nil, requestid=nil)
1650
+ @JobId = jobid
1651
+ @JobName = jobname
1652
+ @JobDescription = jobdescription
1653
+ @Priority = priority
1654
+ @Tasks = tasks
1655
+ @Dependences = dependences
1656
+ @Tags = tags
1657
+ @RequestId = requestid
1658
+ end
1659
+
1660
+ def deserialize(params)
1661
+ @JobId = params['JobId']
1662
+ @JobName = params['JobName']
1663
+ @JobDescription = params['JobDescription']
1664
+ @Priority = params['Priority']
1665
+ unless params['Tasks'].nil?
1666
+ @Tasks = []
1667
+ params['Tasks'].each do |i|
1668
+ task_tmp = Task.new
1669
+ task_tmp.deserialize(i)
1670
+ @Tasks << task_tmp
1671
+ end
1672
+ end
1673
+ unless params['Dependences'].nil?
1674
+ @Dependences = []
1675
+ params['Dependences'].each do |i|
1676
+ dependence_tmp = Dependence.new
1677
+ dependence_tmp.deserialize(i)
1678
+ @Dependences << dependence_tmp
1679
+ end
1680
+ end
1681
+ unless params['Tags'].nil?
1682
+ @Tags = []
1683
+ params['Tags'].each do |i|
1684
+ tag_tmp = Tag.new
1685
+ tag_tmp.deserialize(i)
1686
+ @Tags << tag_tmp
1687
+ end
1688
+ end
1689
+ @RequestId = params['RequestId']
1690
+ end
1691
+ end
1692
+
1693
+ # DescribeJobs请求参数结构体
1694
+ class DescribeJobsRequest < TencentCloud::Common::AbstractModel
1695
+ # @param JobIds: 作业ID列表,与Filters参数不能同时指定。
1696
+ # @type JobIds: Array
1697
+ # @param Filters: 过滤条件
1698
+ # <li> job-id - String - 是否必填:否 -(过滤条件)按照作业ID过滤。</li>
1699
+ # <li> job-name - String - 是否必填:否 -(过滤条件)按照作业名称过滤。</li>
1700
+ # <li> job-state - String - 是否必填:否 -(过滤条件)按照作业状态过滤。</li>
1701
+ # <li> zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。</li>
1702
+ # <li> tag-key - String - 是否必填:否 -(过滤条件)按照标签键进行过滤。</li>
1703
+ # <li> tag-value - String - 是否必填:否 -(过滤条件)按照标签值进行过滤。</li>
1704
+ # <li> tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。</li>
1705
+ # 与JobIds参数不能同时指定。
1706
+ # @type Filters: Array
1707
+ # @param Offset: 偏移量
1708
+ # @type Offset: Integer
1709
+ # @param Limit: 返回数量
1710
+ # @type Limit: Integer
1711
+
1712
+ attr_accessor :JobIds, :Filters, :Offset, :Limit
1713
+
1714
+ def initialize(jobids=nil, filters=nil, offset=nil, limit=nil)
1715
+ @JobIds = jobids
1716
+ @Filters = filters
1717
+ @Offset = offset
1718
+ @Limit = limit
1719
+ end
1720
+
1721
+ def deserialize(params)
1722
+ @JobIds = params['JobIds']
1723
+ unless params['Filters'].nil?
1724
+ @Filters = []
1725
+ params['Filters'].each do |i|
1726
+ filter_tmp = Filter.new
1727
+ filter_tmp.deserialize(i)
1728
+ @Filters << filter_tmp
1729
+ end
1730
+ end
1731
+ @Offset = params['Offset']
1732
+ @Limit = params['Limit']
1733
+ end
1734
+ end
1735
+
1736
+ # DescribeJobs返回参数结构体
1737
+ class DescribeJobsResponse < TencentCloud::Common::AbstractModel
1738
+ # @param JobSet: 作业列表
1739
+ # @type JobSet: Array
1740
+ # @param TotalCount: 符合条件的作业数量
1741
+ # @type TotalCount: Integer
1742
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1743
+ # @type RequestId: String
1744
+
1745
+ attr_accessor :JobSet, :TotalCount, :RequestId
1746
+
1747
+ def initialize(jobset=nil, totalcount=nil, requestid=nil)
1748
+ @JobSet = jobset
1749
+ @TotalCount = totalcount
1750
+ @RequestId = requestid
1751
+ end
1752
+
1753
+ def deserialize(params)
1754
+ unless params['JobSet'].nil?
1755
+ @JobSet = []
1756
+ params['JobSet'].each do |i|
1757
+ jobview_tmp = JobView.new
1758
+ jobview_tmp.deserialize(i)
1759
+ @JobSet << jobview_tmp
1760
+ end
1761
+ end
1762
+ @TotalCount = params['TotalCount']
1763
+ @RequestId = params['RequestId']
1764
+ end
1765
+ end
1766
+
1767
+ # DescribeTaskLogs请求参数结构体
1768
+ class DescribeTaskLogsRequest < TencentCloud::Common::AbstractModel
1769
+ # @param JobId: 作业ID
1770
+ # @type JobId: String
1771
+ # @param TaskName: 任务名称
1772
+ # @type TaskName: String
1773
+ # @param TaskInstanceIndexes: 任务实例集合
1774
+ # @type TaskInstanceIndexes: Array
1775
+ # @param Offset: 起始任务实例
1776
+ # @type Offset: Integer
1777
+ # @param Limit: 最大任务实例数
1778
+ # @type Limit: Integer
1779
+
1780
+ attr_accessor :JobId, :TaskName, :TaskInstanceIndexes, :Offset, :Limit
1781
+
1782
+ def initialize(jobid=nil, taskname=nil, taskinstanceindexes=nil, offset=nil, limit=nil)
1783
+ @JobId = jobid
1784
+ @TaskName = taskname
1785
+ @TaskInstanceIndexes = taskinstanceindexes
1786
+ @Offset = offset
1787
+ @Limit = limit
1788
+ end
1789
+
1790
+ def deserialize(params)
1791
+ @JobId = params['JobId']
1792
+ @TaskName = params['TaskName']
1793
+ @TaskInstanceIndexes = params['TaskInstanceIndexes']
1794
+ @Offset = params['Offset']
1795
+ @Limit = params['Limit']
1796
+ end
1797
+ end
1798
+
1799
+ # DescribeTaskLogs返回参数结构体
1800
+ class DescribeTaskLogsResponse < TencentCloud::Common::AbstractModel
1801
+ # @param TotalCount: 任务实例总数
1802
+ # @type TotalCount: Integer
1803
+ # @param TaskInstanceLogSet: 任务实例日志详情集合
1804
+ # @type TaskInstanceLogSet: Array
1805
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1806
+ # @type RequestId: String
1807
+
1808
+ attr_accessor :TotalCount, :TaskInstanceLogSet, :RequestId
1809
+
1810
+ def initialize(totalcount=nil, taskinstancelogset=nil, requestid=nil)
1811
+ @TotalCount = totalcount
1812
+ @TaskInstanceLogSet = taskinstancelogset
1813
+ @RequestId = requestid
1814
+ end
1815
+
1816
+ def deserialize(params)
1817
+ @TotalCount = params['TotalCount']
1818
+ unless params['TaskInstanceLogSet'].nil?
1819
+ @TaskInstanceLogSet = []
1820
+ params['TaskInstanceLogSet'].each do |i|
1821
+ taskinstancelog_tmp = TaskInstanceLog.new
1822
+ taskinstancelog_tmp.deserialize(i)
1823
+ @TaskInstanceLogSet << taskinstancelog_tmp
1824
+ end
1825
+ end
1826
+ @RequestId = params['RequestId']
1827
+ end
1828
+ end
1829
+
1830
+ # DescribeTask请求参数结构体
1831
+ class DescribeTaskRequest < TencentCloud::Common::AbstractModel
1832
+ # @param JobId: 作业ID
1833
+ # @type JobId: String
1834
+ # @param TaskName: 任务名称
1835
+ # @type TaskName: String
1836
+ # @param Offset: 偏移量
1837
+ # @type Offset: Integer
1838
+ # @param Limit: 返回数量。默认取值100,最大取值1000。
1839
+ # @type Limit: Integer
1840
+ # @param Filters: 过滤条件,详情如下:
1841
+ # <li> task-instance-type - String - 是否必填: 否 - 按照任务实例状态进行过滤(SUBMITTED:已提交;PENDING:等待中;RUNNABLE:可运行;STARTING:启动中;RUNNING:运行中;SUCCEED:成功;FAILED:失败;FAILED_INTERRUPTED:失败后保留实例)。</li>
1842
+ # @type Filters: Array
1843
+
1844
+ attr_accessor :JobId, :TaskName, :Offset, :Limit, :Filters
1845
+
1846
+ def initialize(jobid=nil, taskname=nil, offset=nil, limit=nil, filters=nil)
1847
+ @JobId = jobid
1848
+ @TaskName = taskname
1849
+ @Offset = offset
1850
+ @Limit = limit
1851
+ @Filters = filters
1852
+ end
1853
+
1854
+ def deserialize(params)
1855
+ @JobId = params['JobId']
1856
+ @TaskName = params['TaskName']
1857
+ @Offset = params['Offset']
1858
+ @Limit = params['Limit']
1859
+ unless params['Filters'].nil?
1860
+ @Filters = []
1861
+ params['Filters'].each do |i|
1862
+ filter_tmp = Filter.new
1863
+ filter_tmp.deserialize(i)
1864
+ @Filters << filter_tmp
1865
+ end
1866
+ end
1867
+ end
1868
+ end
1869
+
1870
+ # DescribeTask返回参数结构体
1871
+ class DescribeTaskResponse < TencentCloud::Common::AbstractModel
1872
+ # @param JobId: 作业ID
1873
+ # @type JobId: String
1874
+ # @param TaskName: 任务名称
1875
+ # @type TaskName: String
1876
+ # @param TaskState: 任务状态
1877
+ # @type TaskState: String
1878
+ # @param CreateTime: 创建时间
1879
+ # @type CreateTime: String
1880
+ # @param EndTime: 结束时间
1881
+ # @type EndTime: String
1882
+ # @param TaskInstanceTotalCount: 任务实例总数
1883
+ # @type TaskInstanceTotalCount: Integer
1884
+ # @param TaskInstanceSet: 任务实例信息
1885
+ # @type TaskInstanceSet: Array
1886
+ # @param TaskInstanceMetrics: 任务实例统计指标
1887
+ # @type TaskInstanceMetrics: :class:`Tencentcloud::Batch.v20170312.models.TaskInstanceMetrics`
1888
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1889
+ # @type RequestId: String
1890
+
1891
+ attr_accessor :JobId, :TaskName, :TaskState, :CreateTime, :EndTime, :TaskInstanceTotalCount, :TaskInstanceSet, :TaskInstanceMetrics, :RequestId
1892
+
1893
+ def initialize(jobid=nil, taskname=nil, taskstate=nil, createtime=nil, endtime=nil, taskinstancetotalcount=nil, taskinstanceset=nil, taskinstancemetrics=nil, requestid=nil)
1894
+ @JobId = jobid
1895
+ @TaskName = taskname
1896
+ @TaskState = taskstate
1897
+ @CreateTime = createtime
1898
+ @EndTime = endtime
1899
+ @TaskInstanceTotalCount = taskinstancetotalcount
1900
+ @TaskInstanceSet = taskinstanceset
1901
+ @TaskInstanceMetrics = taskinstancemetrics
1902
+ @RequestId = requestid
1903
+ end
1904
+
1905
+ def deserialize(params)
1906
+ @JobId = params['JobId']
1907
+ @TaskName = params['TaskName']
1908
+ @TaskState = params['TaskState']
1909
+ @CreateTime = params['CreateTime']
1910
+ @EndTime = params['EndTime']
1911
+ @TaskInstanceTotalCount = params['TaskInstanceTotalCount']
1912
+ unless params['TaskInstanceSet'].nil?
1913
+ @TaskInstanceSet = []
1914
+ params['TaskInstanceSet'].each do |i|
1915
+ taskinstanceview_tmp = TaskInstanceView.new
1916
+ taskinstanceview_tmp.deserialize(i)
1917
+ @TaskInstanceSet << taskinstanceview_tmp
1918
+ end
1919
+ end
1920
+ unless params['TaskInstanceMetrics'].nil?
1921
+ @TaskInstanceMetrics = TaskInstanceMetrics.new
1922
+ @TaskInstanceMetrics.deserialize(params['TaskInstanceMetrics'])
1923
+ end
1924
+ @RequestId = params['RequestId']
1925
+ end
1926
+ end
1927
+
1928
+ # DescribeTaskTemplates请求参数结构体
1929
+ class DescribeTaskTemplatesRequest < TencentCloud::Common::AbstractModel
1930
+ # @param TaskTemplateIds: 任务模板ID列表,与Filters参数不能同时指定。
1931
+ # @type TaskTemplateIds: Array
1932
+ # @param Filters: 过滤条件
1933
+ # <li> task-template-name - String - 是否必填:否 -(过滤条件)按照任务模板名称过滤。</li>
1934
+ # <li> tag-key - String - 是否必填:否 -(过滤条件)按照标签键进行过滤。</li>
1935
+ # <li> tag-value - String - 是否必填:否 -(过滤条件)按照标签值进行过滤。</li>
1936
+ # <li> tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。</li>
1937
+ # 与TaskTemplateIds参数不能同时指定。
1938
+ # @type Filters: Array
1939
+ # @param Offset: 偏移量
1940
+ # @type Offset: Integer
1941
+ # @param Limit: 返回数量
1942
+ # @type Limit: Integer
1943
+
1944
+ attr_accessor :TaskTemplateIds, :Filters, :Offset, :Limit
1945
+
1946
+ def initialize(tasktemplateids=nil, filters=nil, offset=nil, limit=nil)
1947
+ @TaskTemplateIds = tasktemplateids
1948
+ @Filters = filters
1949
+ @Offset = offset
1950
+ @Limit = limit
1951
+ end
1952
+
1953
+ def deserialize(params)
1954
+ @TaskTemplateIds = params['TaskTemplateIds']
1955
+ unless params['Filters'].nil?
1956
+ @Filters = []
1957
+ params['Filters'].each do |i|
1958
+ filter_tmp = Filter.new
1959
+ filter_tmp.deserialize(i)
1960
+ @Filters << filter_tmp
1961
+ end
1962
+ end
1963
+ @Offset = params['Offset']
1964
+ @Limit = params['Limit']
1965
+ end
1966
+ end
1967
+
1968
+ # DescribeTaskTemplates返回参数结构体
1969
+ class DescribeTaskTemplatesResponse < TencentCloud::Common::AbstractModel
1970
+ # @param TaskTemplateSet: 任务模板列表
1971
+ # @type TaskTemplateSet: Array
1972
+ # @param TotalCount: 任务模板数量
1973
+ # @type TotalCount: Integer
1974
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1975
+ # @type RequestId: String
1976
+
1977
+ attr_accessor :TaskTemplateSet, :TotalCount, :RequestId
1978
+
1979
+ def initialize(tasktemplateset=nil, totalcount=nil, requestid=nil)
1980
+ @TaskTemplateSet = tasktemplateset
1981
+ @TotalCount = totalcount
1982
+ @RequestId = requestid
1983
+ end
1984
+
1985
+ def deserialize(params)
1986
+ unless params['TaskTemplateSet'].nil?
1987
+ @TaskTemplateSet = []
1988
+ params['TaskTemplateSet'].each do |i|
1989
+ tasktemplateview_tmp = TaskTemplateView.new
1990
+ tasktemplateview_tmp.deserialize(i)
1991
+ @TaskTemplateSet << tasktemplateview_tmp
1992
+ end
1993
+ end
1994
+ @TotalCount = params['TotalCount']
1995
+ @RequestId = params['RequestId']
1996
+ end
1997
+ end
1998
+
1999
+ # DetachInstances请求参数结构体
2000
+ class DetachInstancesRequest < TencentCloud::Common::AbstractModel
2001
+ # @param EnvId: 计算环境ID
2002
+ # @type EnvId: String
2003
+ # @param InstanceIds: 实例ID列表
2004
+ # @type InstanceIds: Array
2005
+
2006
+ attr_accessor :EnvId, :InstanceIds
2007
+
2008
+ def initialize(envid=nil, instanceids=nil)
2009
+ @EnvId = envid
2010
+ @InstanceIds = instanceids
2011
+ end
2012
+
2013
+ def deserialize(params)
2014
+ @EnvId = params['EnvId']
2015
+ @InstanceIds = params['InstanceIds']
2016
+ end
2017
+ end
2018
+
2019
+ # DetachInstances返回参数结构体
2020
+ class DetachInstancesResponse < TencentCloud::Common::AbstractModel
2021
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2022
+ # @type RequestId: String
2023
+
2024
+ attr_accessor :RequestId
2025
+
2026
+ def initialize(requestid=nil)
2027
+ @RequestId = requestid
2028
+ end
2029
+
2030
+ def deserialize(params)
2031
+ @RequestId = params['RequestId']
2032
+ end
2033
+ end
2034
+
2035
+ # Docker容器信息
2036
+ class Docker < TencentCloud::Common::AbstractModel
2037
+ # @param User: Docker Hub 用户名或 Tencent Registry 用户名
2038
+ # @type User: String
2039
+ # @param Password: Docker Hub 密码或 Tencent Registry 密码
2040
+ # @type Password: String
2041
+ # @param Image: Docker Hub填写“[user/repo]:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/[namespace/repo]:[tag]”
2042
+ # @type Image: String
2043
+ # @param Server: Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”
2044
+ # @type Server: String
2045
+
2046
+ attr_accessor :User, :Password, :Image, :Server
2047
+
2048
+ def initialize(user=nil, password=nil, image=nil, server=nil)
2049
+ @User = user
2050
+ @Password = password
2051
+ @Image = image
2052
+ @Server = server
2053
+ end
2054
+
2055
+ def deserialize(params)
2056
+ @User = params['User']
2057
+ @Password = params['Password']
2058
+ @Image = params['Image']
2059
+ @Server = params['Server']
2060
+ end
2061
+ end
2062
+
2063
+ # 描述了实例的增强服务启用情况与其设置,如云安全,云监控等实例 Agent
2064
+ class EnhancedService < TencentCloud::Common::AbstractModel
2065
+ # @param SecurityService: 开启云安全服务。若不指定该参数,则默认开启云安全服务。
2066
+ # @type SecurityService: :class:`Tencentcloud::Batch.v20170312.models.RunSecurityServiceEnabled`
2067
+ # @param MonitorService: 开启云监控服务。若不指定该参数,则默认开启云监控服务。
2068
+ # @type MonitorService: :class:`Tencentcloud::Batch.v20170312.models.RunMonitorServiceEnabled`
2069
+ # @param AutomationService: 开启云自动化助手服务。若不指定该参数,则默认不开启云自动化助手服务。
2070
+ # @type AutomationService: :class:`Tencentcloud::Batch.v20170312.models.RunAutomationServiceEnabled`
2071
+
2072
+ attr_accessor :SecurityService, :MonitorService, :AutomationService
2073
+
2074
+ def initialize(securityservice=nil, monitorservice=nil, automationservice=nil)
2075
+ @SecurityService = securityservice
2076
+ @MonitorService = monitorservice
2077
+ @AutomationService = automationservice
2078
+ end
2079
+
2080
+ def deserialize(params)
2081
+ unless params['SecurityService'].nil?
2082
+ @SecurityService = RunSecurityServiceEnabled.new
2083
+ @SecurityService.deserialize(params['SecurityService'])
2084
+ end
2085
+ unless params['MonitorService'].nil?
2086
+ @MonitorService = RunMonitorServiceEnabled.new
2087
+ @MonitorService.deserialize(params['MonitorService'])
2088
+ end
2089
+ unless params['AutomationService'].nil?
2090
+ @AutomationService = RunAutomationServiceEnabled.new
2091
+ @AutomationService.deserialize(params['AutomationService'])
2092
+ end
2093
+ end
2094
+ end
2095
+
2096
+ # 计算环境数据
2097
+ class EnvData < TencentCloud::Common::AbstractModel
2098
+ # @param InstanceType: CVM实例类型,不能与InstanceTypes和InstanceTypeOptions同时出现。
2099
+ # @type InstanceType: String
2100
+ # @param ImageId: CVM镜像ID
2101
+ # @type ImageId: String
2102
+ # @param SystemDisk: 实例系统盘配置信息
2103
+ # @type SystemDisk: :class:`Tencentcloud::Batch.v20170312.models.SystemDisk`
2104
+ # @param DataDisks: 实例数据盘配置信息
2105
+ # @type DataDisks: Array
2106
+ # @param VirtualPrivateCloud: 私有网络相关信息配置,与Zones和VirtualPrivateClouds不能同时指定。
2107
+ # @type VirtualPrivateCloud: :class:`Tencentcloud::Batch.v20170312.models.VirtualPrivateCloud`
2108
+ # @param InternetAccessible: 公网带宽相关信息设置
2109
+ # @type InternetAccessible: :class:`Tencentcloud::Batch.v20170312.models.InternetAccessible`
2110
+ # @param InstanceName: CVM实例显示名称
2111
+ # @type InstanceName: String
2112
+ # @param LoginSettings: 实例登录设置
2113
+ # @type LoginSettings: :class:`Tencentcloud::Batch.v20170312.models.LoginSettings`
2114
+ # @param SecurityGroupIds: 实例所属安全组
2115
+ # @type SecurityGroupIds: Array
2116
+ # @param EnhancedService: 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。
2117
+ # @type EnhancedService: :class:`Tencentcloud::Batch.v20170312.models.EnhancedService`
2118
+ # @param InstanceChargeType: CVM实例计费类型<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。
2119
+ # @type InstanceChargeType: String
2120
+ # @param InstanceMarketOptions: 实例的市场相关选项,如竞价实例相关参数
2121
+ # @type InstanceMarketOptions: :class:`Tencentcloud::Batch.v20170312.models.InstanceMarketOptionsRequest`
2122
+ # @param InstanceTypes: CVM实例类型列表,不能与InstanceType和InstanceTypeOptions同时出现。指定该字段后,计算节点按照机型先后顺序依次尝试创建,直到实例创建成功,结束遍历过程。最多支持10个机型。
2123
+ # @type InstanceTypes: Array
2124
+ # @param InstanceTypeOptions: CVM实例机型配置。不能与InstanceType和InstanceTypes同时出现。
2125
+ # @type InstanceTypeOptions: :class:`Tencentcloud::Batch.v20170312.models.InstanceTypeOptions`
2126
+ # @param Zones: 可用区列表,支持跨可用区创建CVM实例。与VirtualPrivateCloud和VirtualPrivateClouds不能同时指定。
2127
+ # @type Zones: Array
2128
+ # @param VirtualPrivateClouds: 私有网络列表,支持跨私有网络创建CVM实例。与VirtualPrivateCloud和Zones不能同时指定。
2129
+ # @type VirtualPrivateClouds: Array
2130
+
2131
+ attr_accessor :InstanceType, :ImageId, :SystemDisk, :DataDisks, :VirtualPrivateCloud, :InternetAccessible, :InstanceName, :LoginSettings, :SecurityGroupIds, :EnhancedService, :InstanceChargeType, :InstanceMarketOptions, :InstanceTypes, :InstanceTypeOptions, :Zones, :VirtualPrivateClouds
2132
+
2133
+ def initialize(instancetype=nil, imageid=nil, systemdisk=nil, datadisks=nil, virtualprivatecloud=nil, internetaccessible=nil, instancename=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, instancechargetype=nil, instancemarketoptions=nil, instancetypes=nil, instancetypeoptions=nil, zones=nil, virtualprivateclouds=nil)
2134
+ @InstanceType = instancetype
2135
+ @ImageId = imageid
2136
+ @SystemDisk = systemdisk
2137
+ @DataDisks = datadisks
2138
+ @VirtualPrivateCloud = virtualprivatecloud
2139
+ @InternetAccessible = internetaccessible
2140
+ @InstanceName = instancename
2141
+ @LoginSettings = loginsettings
2142
+ @SecurityGroupIds = securitygroupids
2143
+ @EnhancedService = enhancedservice
2144
+ @InstanceChargeType = instancechargetype
2145
+ @InstanceMarketOptions = instancemarketoptions
2146
+ @InstanceTypes = instancetypes
2147
+ @InstanceTypeOptions = instancetypeoptions
2148
+ @Zones = zones
2149
+ @VirtualPrivateClouds = virtualprivateclouds
2150
+ end
2151
+
2152
+ def deserialize(params)
2153
+ @InstanceType = params['InstanceType']
2154
+ @ImageId = params['ImageId']
2155
+ unless params['SystemDisk'].nil?
2156
+ @SystemDisk = SystemDisk.new
2157
+ @SystemDisk.deserialize(params['SystemDisk'])
2158
+ end
2159
+ unless params['DataDisks'].nil?
2160
+ @DataDisks = []
2161
+ params['DataDisks'].each do |i|
2162
+ datadisk_tmp = DataDisk.new
2163
+ datadisk_tmp.deserialize(i)
2164
+ @DataDisks << datadisk_tmp
2165
+ end
2166
+ end
2167
+ unless params['VirtualPrivateCloud'].nil?
2168
+ @VirtualPrivateCloud = VirtualPrivateCloud.new
2169
+ @VirtualPrivateCloud.deserialize(params['VirtualPrivateCloud'])
2170
+ end
2171
+ unless params['InternetAccessible'].nil?
2172
+ @InternetAccessible = InternetAccessible.new
2173
+ @InternetAccessible.deserialize(params['InternetAccessible'])
2174
+ end
2175
+ @InstanceName = params['InstanceName']
2176
+ unless params['LoginSettings'].nil?
2177
+ @LoginSettings = LoginSettings.new
2178
+ @LoginSettings.deserialize(params['LoginSettings'])
2179
+ end
2180
+ @SecurityGroupIds = params['SecurityGroupIds']
2181
+ unless params['EnhancedService'].nil?
2182
+ @EnhancedService = EnhancedService.new
2183
+ @EnhancedService.deserialize(params['EnhancedService'])
2184
+ end
2185
+ @InstanceChargeType = params['InstanceChargeType']
2186
+ unless params['InstanceMarketOptions'].nil?
2187
+ @InstanceMarketOptions = InstanceMarketOptionsRequest.new
2188
+ @InstanceMarketOptions.deserialize(params['InstanceMarketOptions'])
2189
+ end
2190
+ @InstanceTypes = params['InstanceTypes']
2191
+ unless params['InstanceTypeOptions'].nil?
2192
+ @InstanceTypeOptions = InstanceTypeOptions.new
2193
+ @InstanceTypeOptions.deserialize(params['InstanceTypeOptions'])
2194
+ end
2195
+ @Zones = params['Zones']
2196
+ unless params['VirtualPrivateClouds'].nil?
2197
+ @VirtualPrivateClouds = []
2198
+ params['VirtualPrivateClouds'].each do |i|
2199
+ virtualprivatecloud_tmp = VirtualPrivateCloud.new
2200
+ virtualprivatecloud_tmp.deserialize(i)
2201
+ @VirtualPrivateClouds << virtualprivatecloud_tmp
2202
+ end
2203
+ end
2204
+ end
2205
+ end
2206
+
2207
+ # 黑石计算环境数据
2208
+ class EnvDataCpm < TencentCloud::Common::AbstractModel
2209
+ # @param Zones: 黑石可用区名称列表。如ap-guangzhou-bls-1, 可通过黑石接口[DescribeRegions]( https://cloud.tencent.com/document/api/386/33564)接口获取。不是Batch可用区名称。目前仅支持一个可用区名称。
2210
+ # @type Zones: Array
2211
+ # @param InstanceTypes: 购买的机型ID。通过黑石接口[DescribeDeviceClass]( https://cloud.tencent.com/document/api/386/32911)查询设备型号,获取机型信息。
2212
+ # @type InstanceTypes: Array
2213
+ # @param TimeUnit: 购买时长单位,取值:m(月)。
2214
+ # @type TimeUnit: String
2215
+ # @param TimeSpan: 购买时长。
2216
+ # @type TimeSpan: Integer
2217
+ # @param RaidId: RAID类型ID。通过黑石接口[DescribeDeviceClassPartition]( https://cloud.tencent.com/document/api/386/32910)查询机型RAID方式以及系统盘大小,获取RAID信息。
2218
+ # @type RaidId: Integer
2219
+ # @param OsTypeId: 部署服务器的操作系统ID。通过批量计算接口DescribeCpmOsInfo查询操作系统信息。
2220
+ # @type OsTypeId: Integer
2221
+ # @param VirtualPrivateClouds: 黑石VPC列表,目前仅支持一个VPC。
2222
+ # @type VirtualPrivateClouds: Array
2223
+ # @param NeedSecurityAgent: 是否安装安全Agent,取值:1(安装) 0(不安装),默认取值0。
2224
+ # @type NeedSecurityAgent: Integer
2225
+ # @param NeedMonitorAgent: 是否安装监控Agent,取值:1(安装) 0(不安装),默认取值0。
2226
+ # @type NeedMonitorAgent: Integer
2227
+ # @param AutoRenewFlag: 自动续费标志位,取值:1(自动续费) 0(不自动续费),默认取值0。
2228
+ # @type AutoRenewFlag: Integer
2229
+ # @param IsZoning: 数据盘是否格式化,取值:1(格式化) 0(不格式化),默认取值为1。
2230
+ # @type IsZoning: Integer
2231
+ # @param FileSystem: 指定数据盘的文件系统格式,当前支持 ext4和xfs选项, 默认为ext4。 参数适用于数据盘和Linux, 且在IsZoning为1时生效。
2232
+ # @type FileSystem: String
2233
+ # @param Password: 设置Linux root或Windows Administrator的密码。若不设置此参数,默认情况下会随机生成密码,并以站内信方式通知到用户。
2234
+ # @type Password: String
2235
+ # @param ApplyEip: 是否分配弹性公网IP,取值:1(分配) 0(不分配),默认取值0。
2236
+ # @type ApplyEip: Integer
2237
+ # @param EipPayMode: 弹性公网IP计费模式,取值:flow(按流量计费) bandwidth(按带宽计费),默认取值flow。
2238
+ # @type EipPayMode: String
2239
+ # @param EipBandwidth: 弹性公网IP带宽限制,单位Mb。
2240
+ # @type EipBandwidth: Integer
2241
+ # @param ImageId: 自定义镜像ID,取值生效时用自定义镜像部署物理机。
2242
+ # @type ImageId: String
2243
+ # @param SysRootSpace: 系统盘根分区大小,单位为G,默认取值10G。通过黑石接口[DescribeDeviceClassPartition]( https://cloud.tencent.com/document/api/386/32910)查询机型RAID方式以及系统盘大小,获取根分区信息。
2244
+ # @type SysRootSpace: Integer
2245
+ # @param SysDataSpace: /data分区大小,单位为G。如果系统盘还有剩余大小,会分配给/data分区。(特殊情况:如果剩余空间不足10G,并且没有指定/data分区,则剩余空间会分配给Root分区)。
2246
+ # @type SysDataSpace: Integer
2247
+ # @param HyperThreading: 是否开启超线程,取值:1(开启) 0(关闭),默认取值1。
2248
+ # @type HyperThreading: Integer
2249
+ # @param LanIps: 指定的内网IP列表,不指定时自动分配。
2250
+ # @type LanIps: Array
2251
+
2252
+ attr_accessor :Zones, :InstanceTypes, :TimeUnit, :TimeSpan, :RaidId, :OsTypeId, :VirtualPrivateClouds, :NeedSecurityAgent, :NeedMonitorAgent, :AutoRenewFlag, :IsZoning, :FileSystem, :Password, :ApplyEip, :EipPayMode, :EipBandwidth, :ImageId, :SysRootSpace, :SysDataSpace, :HyperThreading, :LanIps
2253
+
2254
+ def initialize(zones=nil, instancetypes=nil, timeunit=nil, timespan=nil, raidid=nil, ostypeid=nil, virtualprivateclouds=nil, needsecurityagent=nil, needmonitoragent=nil, autorenewflag=nil, iszoning=nil, filesystem=nil, password=nil, applyeip=nil, eippaymode=nil, eipbandwidth=nil, imageid=nil, sysrootspace=nil, sysdataspace=nil, hyperthreading=nil, lanips=nil)
2255
+ @Zones = zones
2256
+ @InstanceTypes = instancetypes
2257
+ @TimeUnit = timeunit
2258
+ @TimeSpan = timespan
2259
+ @RaidId = raidid
2260
+ @OsTypeId = ostypeid
2261
+ @VirtualPrivateClouds = virtualprivateclouds
2262
+ @NeedSecurityAgent = needsecurityagent
2263
+ @NeedMonitorAgent = needmonitoragent
2264
+ @AutoRenewFlag = autorenewflag
2265
+ @IsZoning = iszoning
2266
+ @FileSystem = filesystem
2267
+ @Password = password
2268
+ @ApplyEip = applyeip
2269
+ @EipPayMode = eippaymode
2270
+ @EipBandwidth = eipbandwidth
2271
+ @ImageId = imageid
2272
+ @SysRootSpace = sysrootspace
2273
+ @SysDataSpace = sysdataspace
2274
+ @HyperThreading = hyperthreading
2275
+ @LanIps = lanips
2276
+ end
2277
+
2278
+ def deserialize(params)
2279
+ @Zones = params['Zones']
2280
+ @InstanceTypes = params['InstanceTypes']
2281
+ @TimeUnit = params['TimeUnit']
2282
+ @TimeSpan = params['TimeSpan']
2283
+ @RaidId = params['RaidId']
2284
+ @OsTypeId = params['OsTypeId']
2285
+ unless params['VirtualPrivateClouds'].nil?
2286
+ @VirtualPrivateClouds = []
2287
+ params['VirtualPrivateClouds'].each do |i|
2288
+ cpmvirtualprivatecloud_tmp = CpmVirtualPrivateCloud.new
2289
+ cpmvirtualprivatecloud_tmp.deserialize(i)
2290
+ @VirtualPrivateClouds << cpmvirtualprivatecloud_tmp
2291
+ end
2292
+ end
2293
+ @NeedSecurityAgent = params['NeedSecurityAgent']
2294
+ @NeedMonitorAgent = params['NeedMonitorAgent']
2295
+ @AutoRenewFlag = params['AutoRenewFlag']
2296
+ @IsZoning = params['IsZoning']
2297
+ @FileSystem = params['FileSystem']
2298
+ @Password = params['Password']
2299
+ @ApplyEip = params['ApplyEip']
2300
+ @EipPayMode = params['EipPayMode']
2301
+ @EipBandwidth = params['EipBandwidth']
2302
+ @ImageId = params['ImageId']
2303
+ @SysRootSpace = params['SysRootSpace']
2304
+ @SysDataSpace = params['SysDataSpace']
2305
+ @HyperThreading = params['HyperThreading']
2306
+ @LanIps = params['LanIps']
2307
+ end
2308
+ end
2309
+
2310
+ # 环境变量
2311
+ class EnvVar < TencentCloud::Common::AbstractModel
2312
+ # @param Name: 环境变量名称
2313
+ # @type Name: String
2314
+ # @param Value: 环境变量取值
2315
+ # @type Value: String
2316
+
2317
+ attr_accessor :Name, :Value
2318
+
2319
+ def initialize(name=nil, value=nil)
2320
+ @Name = name
2321
+ @Value = value
2322
+ end
2323
+
2324
+ def deserialize(params)
2325
+ @Name = params['Name']
2326
+ @Value = params['Value']
2327
+ end
2328
+ end
2329
+
2330
+ # 事件配置
2331
+ class EventConfig < TencentCloud::Common::AbstractModel
2332
+ # @param EventName: 事件类型,包括:<br/><li>“JOB_RUNNING”:作业运行,适用于"SubmitJob"。</li><li>“JOB_SUCCEED”:作业成功,适用于"SubmitJob"。</li><li>“JOB_FAILED”:作业失败,适用于"SubmitJob"。</li><li>“JOB_FAILED_INTERRUPTED”:作业失败,保留实例,适用于"SubmitJob"。</li><li>“TASK_RUNNING”:任务运行,适用于"SubmitJob"。</li><li>“TASK_SUCCEED”:任务成功,适用于"SubmitJob"。</li><li>“TASK_FAILED”:任务失败,适用于"SubmitJob"。</li><li>“TASK_FAILED_INTERRUPTED”:任务失败,保留实例,适用于"SubmitJob"。</li><li>“TASK_INSTANCE_RUNNING”:任务实例运行,适用于"SubmitJob"。</li><li>“TASK_INSTANCE_SUCCEED”:任务实例成功,适用于"SubmitJob"。</li><li>“TASK_INSTANCE_FAILED”:任务实例失败,适用于"SubmitJob"。</li><li>“TASK_INSTANCE_FAILED_INTERRUPTED”:任务实例失败,保留实例,适用于"SubmitJob"。</li><li>“COMPUTE_ENV_CREATED”:计算环境已创建,适用于"CreateComputeEnv"。</li><li>“COMPUTE_ENV_DELETED”:计算环境已删除,适用于"CreateComputeEnv"。</li><li>“COMPUTE_NODE_CREATED”:计算节点已创建,适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_CREATION_FAILED”:计算节点创建失败,适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_RUNNING”:计算节点运行中,适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_ABNORMAL”:计算节点异常,适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_DELETING”:计算节点已删除,适用于"CreateComputeEnv"和"SubmitJob"。</li>
2333
+ # @type EventName: String
2334
+ # @param EventVars: 自定义键值对
2335
+ # @type EventVars: Array
2336
+
2337
+ attr_accessor :EventName, :EventVars
2338
+
2339
+ def initialize(eventname=nil, eventvars=nil)
2340
+ @EventName = eventname
2341
+ @EventVars = eventvars
2342
+ end
2343
+
2344
+ def deserialize(params)
2345
+ @EventName = params['EventName']
2346
+ unless params['EventVars'].nil?
2347
+ @EventVars = []
2348
+ params['EventVars'].each do |i|
2349
+ eventvar_tmp = EventVar.new
2350
+ eventvar_tmp.deserialize(i)
2351
+ @EventVars << eventvar_tmp
2352
+ end
2353
+ end
2354
+ end
2355
+ end
2356
+
2357
+ # 自定义键值对
2358
+ class EventVar < TencentCloud::Common::AbstractModel
2359
+ # @param Name: 自定义键
2360
+ # @type Name: String
2361
+ # @param Value: 自定义值
2362
+ # @type Value: String
2363
+
2364
+ attr_accessor :Name, :Value
2365
+
2366
+ def initialize(name=nil, value=nil)
2367
+ @Name = name
2368
+ @Value = value
2369
+ end
2370
+
2371
+ def deserialize(params)
2372
+ @Name = params['Name']
2373
+ @Value = params['Value']
2374
+ end
2375
+ end
2376
+
2377
+ # 扩展数据
2378
+ class Externals < TencentCloud::Common::AbstractModel
2379
+ # @param ReleaseAddress: 释放地址
2380
+ # 注意:此字段可能返回 null,表示取不到有效值。
2381
+ # @type ReleaseAddress: Boolean
2382
+ # @param UnsupportNetworks: 不支持的网络类型,取值范围:<br><li>BASIC:基础网络<br><li>VPC1.0:私有网络VPC1.0
2383
+ # 注意:此字段可能返回 null,表示取不到有效值。
2384
+ # @type UnsupportNetworks: Array
2385
+ # @param StorageBlockAttr: HDD本地存储属性
2386
+ # 注意:此字段可能返回 null,表示取不到有效值。
2387
+ # @type StorageBlockAttr: :class:`Tencentcloud::Batch.v20170312.models.StorageBlock`
2388
+
2389
+ attr_accessor :ReleaseAddress, :UnsupportNetworks, :StorageBlockAttr
2390
+
2391
+ def initialize(releaseaddress=nil, unsupportnetworks=nil, storageblockattr=nil)
2392
+ @ReleaseAddress = releaseaddress
2393
+ @UnsupportNetworks = unsupportnetworks
2394
+ @StorageBlockAttr = storageblockattr
2395
+ end
2396
+
2397
+ def deserialize(params)
2398
+ @ReleaseAddress = params['ReleaseAddress']
2399
+ @UnsupportNetworks = params['UnsupportNetworks']
2400
+ unless params['StorageBlockAttr'].nil?
2401
+ @StorageBlockAttr = StorageBlock.new
2402
+ @StorageBlockAttr.deserialize(params['StorageBlockAttr'])
2403
+ end
2404
+ end
2405
+ end
2406
+
2407
+ # >描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
2408
+ # > * 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。
2409
+ # > * 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。
2410
+ # >
2411
+ # > 以[DescribeInstances](https://cloud.tencent.com/document/api/213/15728)接口的`Filter`为例。若我们需要查询可用区(`zone`)为广州一区 ***并且*** 实例计费模式(`instance-charge-type`)为包年包月 ***或者*** 按量计费的实例时,可如下实现:
2412
+ # ```
2413
+ # Filters.0.Name=zone
2414
+ # &Filters.0.Values.0=ap-guangzhou-1
2415
+ # &Filters.1.Name=instance-charge-type
2416
+ # &Filters.1.Values.0=PREPAID
2417
+ # &Filters.1.Values.1=POSTPAID_BY_HOUR
2418
+ # ```
2419
+ class Filter < TencentCloud::Common::AbstractModel
2420
+ # @param Name: 需要过滤的字段。
2421
+ # @type Name: String
2422
+ # @param Values: 字段的过滤值。
2423
+ # @type Values: Array
2424
+
2425
+ attr_accessor :Name, :Values
2426
+
2427
+ def initialize(name=nil, values=nil)
2428
+ @Name = name
2429
+ @Values = values
2430
+ end
2431
+
2432
+ def deserialize(params)
2433
+ @Name = params['Name']
2434
+ @Values = params['Values']
2435
+ end
2436
+ end
2437
+
2438
+ # 输入映射
2439
+ class InputMapping < TencentCloud::Common::AbstractModel
2440
+ # @param SourcePath: 源端路径
2441
+ # @type SourcePath: String
2442
+ # @param DestinationPath: 目的端路径
2443
+ # @type DestinationPath: String
2444
+ # @param MountOptionParameter: 挂载配置项参数
2445
+ # @type MountOptionParameter: String
2446
+
2447
+ attr_accessor :SourcePath, :DestinationPath, :MountOptionParameter
2448
+
2449
+ def initialize(sourcepath=nil, destinationpath=nil, mountoptionparameter=nil)
2450
+ @SourcePath = sourcepath
2451
+ @DestinationPath = destinationpath
2452
+ @MountOptionParameter = mountoptionparameter
2453
+ end
2454
+
2455
+ def deserialize(params)
2456
+ @SourcePath = params['SourcePath']
2457
+ @DestinationPath = params['DestinationPath']
2458
+ @MountOptionParameter = params['MountOptionParameter']
2459
+ end
2460
+ end
2461
+
2462
+ # 描述实例的信息
2463
+ class Instance < TencentCloud::Common::AbstractModel
2464
+ # @param InstanceId: 实例ID
2465
+ # @type InstanceId: String
2466
+ # @param ImageId: 镜像ID
2467
+ # @type ImageId: String
2468
+ # @param LoginSettings: 实例登录设置。
2469
+ # @type LoginSettings: :class:`Tencentcloud::Batch.v20170312.models.LoginSettings`
2470
+
2471
+ attr_accessor :InstanceId, :ImageId, :LoginSettings
2472
+
2473
+ def initialize(instanceid=nil, imageid=nil, loginsettings=nil)
2474
+ @InstanceId = instanceid
2475
+ @ImageId = imageid
2476
+ @LoginSettings = loginsettings
2477
+ end
2478
+
2479
+ def deserialize(params)
2480
+ @InstanceId = params['InstanceId']
2481
+ @ImageId = params['ImageId']
2482
+ unless params['LoginSettings'].nil?
2483
+ @LoginSettings = LoginSettings.new
2484
+ @LoginSettings.deserialize(params['LoginSettings'])
2485
+ end
2486
+ end
2487
+ end
2488
+
2489
+ # 实例分类列表
2490
+ class InstanceCategoryItem < TencentCloud::Common::AbstractModel
2491
+ # @param InstanceCategory: 实例类型名
2492
+ # @type InstanceCategory: String
2493
+ # @param InstanceFamilySet: 实例族列表
2494
+ # @type InstanceFamilySet: Array
2495
+
2496
+ attr_accessor :InstanceCategory, :InstanceFamilySet
2497
+
2498
+ def initialize(instancecategory=nil, instancefamilyset=nil)
2499
+ @InstanceCategory = instancecategory
2500
+ @InstanceFamilySet = instancefamilyset
2501
+ end
2502
+
2503
+ def deserialize(params)
2504
+ @InstanceCategory = params['InstanceCategory']
2505
+ @InstanceFamilySet = params['InstanceFamilySet']
2506
+ end
2507
+ end
2508
+
2509
+ # 竞价请求相关选项
2510
+ class InstanceMarketOptionsRequest < TencentCloud::Common::AbstractModel
2511
+ # @param SpotOptions: 竞价相关选项
2512
+ # @type SpotOptions: :class:`Tencentcloud::Batch.v20170312.models.SpotMarketOptions`
2513
+ # @param MarketType: 市场选项类型,当前只支持取值:spot
2514
+ # @type MarketType: String
2515
+
2516
+ attr_accessor :SpotOptions, :MarketType
2517
+
2518
+ def initialize(spotoptions=nil, markettype=nil)
2519
+ @SpotOptions = spotoptions
2520
+ @MarketType = markettype
2521
+ end
2522
+
2523
+ def deserialize(params)
2524
+ unless params['SpotOptions'].nil?
2525
+ @SpotOptions = SpotMarketOptions.new
2526
+ @SpotOptions.deserialize(params['SpotOptions'])
2527
+ end
2528
+ @MarketType = params['MarketType']
2529
+ end
2530
+ end
2531
+
2532
+ # 批量计算可用的InstanceTypeConfig信息
2533
+ class InstanceTypeConfig < TencentCloud::Common::AbstractModel
2534
+ # @param Mem: 内存容量,单位:`GB`。
2535
+ # @type Mem: Integer
2536
+ # @param Cpu: CPU核数,单位:核。
2537
+ # @type Cpu: Integer
2538
+ # @param InstanceType: 实例机型。
2539
+ # @type InstanceType: String
2540
+ # @param Zone: 可用区。
2541
+ # @type Zone: String
2542
+ # @param InstanceFamily: 实例机型系列。
2543
+ # @type InstanceFamily: String
2544
+
2545
+ attr_accessor :Mem, :Cpu, :InstanceType, :Zone, :InstanceFamily
2546
+
2547
+ def initialize(mem=nil, cpu=nil, instancetype=nil, zone=nil, instancefamily=nil)
2548
+ @Mem = mem
2549
+ @Cpu = cpu
2550
+ @InstanceType = instancetype
2551
+ @Zone = zone
2552
+ @InstanceFamily = instancefamily
2553
+ end
2554
+
2555
+ def deserialize(params)
2556
+ @Mem = params['Mem']
2557
+ @Cpu = params['Cpu']
2558
+ @InstanceType = params['InstanceType']
2559
+ @Zone = params['Zone']
2560
+ @InstanceFamily = params['InstanceFamily']
2561
+ end
2562
+ end
2563
+
2564
+ # 实例机型配置。
2565
+ class InstanceTypeOptions < TencentCloud::Common::AbstractModel
2566
+ # @param CPU: CPU核数。
2567
+ # @type CPU: Integer
2568
+ # @param Memory: 内存值,单位GB。
2569
+ # @type Memory: Integer
2570
+ # @param InstanceCategories: 实例机型类别,可选参数:“ALL”、“GENERAL”、“GENERAL_2”、“GENERAL_3”、“COMPUTE”、“COMPUTE_2”和“COMPUTE_3”。默认值“ALL”。
2571
+ # @type InstanceCategories: Array
2572
+
2573
+ attr_accessor :CPU, :Memory, :InstanceCategories
2574
+
2575
+ def initialize(cpu=nil, memory=nil, instancecategories=nil)
2576
+ @CPU = cpu
2577
+ @Memory = memory
2578
+ @InstanceCategories = instancecategories
2579
+ end
2580
+
2581
+ def deserialize(params)
2582
+ @CPU = params['CPU']
2583
+ @Memory = params['Memory']
2584
+ @InstanceCategories = params['InstanceCategories']
2585
+ end
2586
+ end
2587
+
2588
+ # 描述实例机型配额信息。
2589
+ class InstanceTypeQuotaItem < TencentCloud::Common::AbstractModel
2590
+ # @param Zone: 可用区。
2591
+ # @type Zone: String
2592
+ # @param InstanceType: 实例机型。
2593
+ # @type InstanceType: String
2594
+ # @param InstanceChargeType: 实例计费模式。取值范围: <br><li>PREPAID:表示预付费,即包年包月<br><li>POSTPAID_BY_HOUR:表示后付费,即按量计费<br><li>CDHPAID:表示[CDH](https://cloud.tencent.com/document/product/416)付费,即只对CDH计费,不对CDH上的实例计费。<br><li>`SPOTPAID`:表示竞价实例付费。
2595
+ # @type InstanceChargeType: String
2596
+ # @param NetworkCard: 网卡类型,例如:25代表25G网卡
2597
+ # @type NetworkCard: Integer
2598
+ # @param Externals: 扩展属性。
2599
+ # 注意:此字段可能返回 null,表示取不到有效值。
2600
+ # @type Externals: :class:`Tencentcloud::Batch.v20170312.models.Externals`
2601
+ # @param Cpu: 实例的CPU核数,单位:核。
2602
+ # @type Cpu: Integer
2603
+ # @param Memory: 实例内存容量,单位:`GB`。
2604
+ # @type Memory: Integer
2605
+ # @param InstanceFamily: 实例机型系列。
2606
+ # @type InstanceFamily: String
2607
+ # @param TypeName: 机型名称。
2608
+ # @type TypeName: String
2609
+ # @param LocalDiskTypeList: 本地磁盘规格列表。当该参数返回为空值时,表示当前情况下无法创建本地盘。
2610
+ # @type LocalDiskTypeList: Array
2611
+ # @param Status: 实例是否售卖。取值范围: <br><li>SELL:表示实例可购买<br><li>SOLD_OUT:表示实例已售罄。
2612
+ # @type Status: String
2613
+ # @param Price: 实例的售卖价格。
2614
+ # @type Price: :class:`Tencentcloud::Batch.v20170312.models.ItemPrice`
2615
+ # @param SoldOutReason: 售罄原因。
2616
+ # 注意:此字段可能返回 null,表示取不到有效值。
2617
+ # @type SoldOutReason: String
2618
+ # @param InstanceBandwidth: 内网带宽,单位Gbps。
2619
+ # @type InstanceBandwidth: Float
2620
+ # @param InstancePps: 网络收发包能力,单位万PPS。
2621
+ # @type InstancePps: Integer
2622
+ # @param StorageBlockAmount: 本地存储块数量。
2623
+ # @type StorageBlockAmount: Integer
2624
+ # @param CpuType: 处理器型号。
2625
+ # @type CpuType: String
2626
+ # @param Gpu: 实例的GPU数量。
2627
+ # @type Gpu: Integer
2628
+ # @param Fpga: 实例的FPGA数量。
2629
+ # @type Fpga: Integer
2630
+ # @param Remark: 实例备注信息。
2631
+ # @type Remark: String
2632
+
2633
+ attr_accessor :Zone, :InstanceType, :InstanceChargeType, :NetworkCard, :Externals, :Cpu, :Memory, :InstanceFamily, :TypeName, :LocalDiskTypeList, :Status, :Price, :SoldOutReason, :InstanceBandwidth, :InstancePps, :StorageBlockAmount, :CpuType, :Gpu, :Fpga, :Remark
2634
+
2635
+ def initialize(zone=nil, instancetype=nil, instancechargetype=nil, networkcard=nil, externals=nil, cpu=nil, memory=nil, instancefamily=nil, typename=nil, localdisktypelist=nil, status=nil, price=nil, soldoutreason=nil, instancebandwidth=nil, instancepps=nil, storageblockamount=nil, cputype=nil, gpu=nil, fpga=nil, remark=nil)
2636
+ @Zone = zone
2637
+ @InstanceType = instancetype
2638
+ @InstanceChargeType = instancechargetype
2639
+ @NetworkCard = networkcard
2640
+ @Externals = externals
2641
+ @Cpu = cpu
2642
+ @Memory = memory
2643
+ @InstanceFamily = instancefamily
2644
+ @TypeName = typename
2645
+ @LocalDiskTypeList = localdisktypelist
2646
+ @Status = status
2647
+ @Price = price
2648
+ @SoldOutReason = soldoutreason
2649
+ @InstanceBandwidth = instancebandwidth
2650
+ @InstancePps = instancepps
2651
+ @StorageBlockAmount = storageblockamount
2652
+ @CpuType = cputype
2653
+ @Gpu = gpu
2654
+ @Fpga = fpga
2655
+ @Remark = remark
2656
+ end
2657
+
2658
+ def deserialize(params)
2659
+ @Zone = params['Zone']
2660
+ @InstanceType = params['InstanceType']
2661
+ @InstanceChargeType = params['InstanceChargeType']
2662
+ @NetworkCard = params['NetworkCard']
2663
+ unless params['Externals'].nil?
2664
+ @Externals = Externals.new
2665
+ @Externals.deserialize(params['Externals'])
2666
+ end
2667
+ @Cpu = params['Cpu']
2668
+ @Memory = params['Memory']
2669
+ @InstanceFamily = params['InstanceFamily']
2670
+ @TypeName = params['TypeName']
2671
+ unless params['LocalDiskTypeList'].nil?
2672
+ @LocalDiskTypeList = []
2673
+ params['LocalDiskTypeList'].each do |i|
2674
+ localdisktype_tmp = LocalDiskType.new
2675
+ localdisktype_tmp.deserialize(i)
2676
+ @LocalDiskTypeList << localdisktype_tmp
2677
+ end
2678
+ end
2679
+ @Status = params['Status']
2680
+ unless params['Price'].nil?
2681
+ @Price = ItemPrice.new
2682
+ @Price.deserialize(params['Price'])
2683
+ end
2684
+ @SoldOutReason = params['SoldOutReason']
2685
+ @InstanceBandwidth = params['InstanceBandwidth']
2686
+ @InstancePps = params['InstancePps']
2687
+ @StorageBlockAmount = params['StorageBlockAmount']
2688
+ @CpuType = params['CpuType']
2689
+ @Gpu = params['Gpu']
2690
+ @Fpga = params['Fpga']
2691
+ @Remark = params['Remark']
2692
+ end
2693
+ end
2694
+
2695
+ # 描述了实例的公网可访问性,声明了实例的公网使用计费模式,最大带宽等
2696
+ class InternetAccessible < TencentCloud::Common::AbstractModel
2697
+ # @param InternetChargeType: 网络计费类型。取值范围:<br><li>BANDWIDTH_PREPAID:预付费按带宽结算<br><li>TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费<br><li>BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费<br><li>BANDWIDTH_PACKAGE:带宽包用户<br>默认取值:非带宽包用户默认与子机付费类型保持一致。
2698
+ # @type InternetChargeType: String
2699
+ # @param InternetMaxBandwidthOut: 公网出带宽上限,单位:Mbps。默认值:0Mbps。不同机型带宽上限范围不一致,具体限制详见[购买网络带宽](https://cloud.tencent.com/document/product/213/12523)。
2700
+ # @type InternetMaxBandwidthOut: Integer
2701
+ # @param PublicIpAssigned: 是否分配公网IP。取值范围:<br><li>TRUE:表示分配公网IP<br><li>FALSE:表示不分配公网IP<br><br>当公网带宽大于0Mbps时,可自由选择开通与否,默认开通公网IP;当公网带宽为0,则不允许分配公网IP。该参数仅在RunInstances接口中作为入参使用。
2702
+ # @type PublicIpAssigned: Boolean
2703
+ # @param BandwidthPackageId: 带宽包ID。可通过[`DescribeBandwidthPackages`](https://cloud.tencent.com/document/api/215/19209)接口返回值中的`BandwidthPackageId`获取。该参数仅在RunInstances接口中作为入参使用。
2704
+ # @type BandwidthPackageId: String
2705
+
2706
+ attr_accessor :InternetChargeType, :InternetMaxBandwidthOut, :PublicIpAssigned, :BandwidthPackageId
2707
+
2708
+ def initialize(internetchargetype=nil, internetmaxbandwidthout=nil, publicipassigned=nil, bandwidthpackageid=nil)
2709
+ @InternetChargeType = internetchargetype
2710
+ @InternetMaxBandwidthOut = internetmaxbandwidthout
2711
+ @PublicIpAssigned = publicipassigned
2712
+ @BandwidthPackageId = bandwidthpackageid
2713
+ end
2714
+
2715
+ def deserialize(params)
2716
+ @InternetChargeType = params['InternetChargeType']
2717
+ @InternetMaxBandwidthOut = params['InternetMaxBandwidthOut']
2718
+ @PublicIpAssigned = params['PublicIpAssigned']
2719
+ @BandwidthPackageId = params['BandwidthPackageId']
2720
+ end
2721
+ end
2722
+
2723
+ # 描述了单项的价格信息
2724
+ class ItemPrice < TencentCloud::Common::AbstractModel
2725
+ # @param UnitPrice: 后续合计费用的原价,后付费模式使用,单位:元。<br><li>如返回了其他时间区间项,如UnitPriceSecondStep,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
2726
+ # 注意:此字段可能返回 null,表示取不到有效值。
2727
+ # @type UnitPrice: Float
2728
+ # @param ChargeUnit: 后续计价单元,后付费模式使用,可取值范围: <br><li>HOUR:表示计价单元是按每小时来计算。当前涉及该计价单元的场景有:实例按小时后付费(POSTPAID_BY_HOUR)、带宽按小时后付费(BANDWIDTH_POSTPAID_BY_HOUR):<br><li>GB:表示计价单元是按每GB来计算。当前涉及该计价单元的场景有:流量按小时后付费(TRAFFIC_POSTPAID_BY_HOUR)。
2729
+ # 注意:此字段可能返回 null,表示取不到有效值。
2730
+ # @type ChargeUnit: String
2731
+ # @param OriginalPrice: 预支合计费用的原价,预付费模式使用,单位:元。
2732
+ # 注意:此字段可能返回 null,表示取不到有效值。
2733
+ # @type OriginalPrice: Float
2734
+ # @param DiscountPrice: 预支合计费用的折扣价,预付费模式使用,单位:元。
2735
+ # 注意:此字段可能返回 null,表示取不到有效值。
2736
+ # @type DiscountPrice: Float
2737
+ # @param Discount: 折扣,如20.0代表2折。
2738
+ # 注意:此字段可能返回 null,表示取不到有效值。
2739
+ # @type Discount: Float
2740
+ # @param UnitPriceDiscount: 后续合计费用的折扣价,后付费模式使用,单位:元<br><li>如返回了其他时间区间项,如UnitPriceDiscountSecondStep,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
2741
+ # 注意:此字段可能返回 null,表示取不到有效值。
2742
+ # @type UnitPriceDiscount: Float
2743
+ # @param UnitPriceSecondStep: 使用时间区间在(96, 360)小时的后续合计费用的原价,后付费模式使用,单位:元。
2744
+ # 注意:此字段可能返回 null,表示取不到有效值。
2745
+ # @type UnitPriceSecondStep: Float
2746
+ # @param UnitPriceDiscountSecondStep: 使用时间区间在(96, 360)小时的后续合计费用的折扣价,后付费模式使用,单位:元
2747
+ # 注意:此字段可能返回 null,表示取不到有效值。
2748
+ # @type UnitPriceDiscountSecondStep: Float
2749
+ # @param UnitPriceThirdStep: 使用时间区间在(360, ∞)小时的后续合计费用的原价,后付费模式使用,单位:元。
2750
+ # 注意:此字段可能返回 null,表示取不到有效值。
2751
+ # @type UnitPriceThirdStep: Float
2752
+ # @param UnitPriceDiscountThirdStep: 使用时间区间在(360, ∞)小时的后续合计费用的折扣价,后付费模式使用,单位:元
2753
+ # 注意:此字段可能返回 null,表示取不到有效值。
2754
+ # @type UnitPriceDiscountThirdStep: Float
2755
+ # @param OriginalPriceThreeYear: 预支三年合计费用的原价,预付费模式使用,单位:元。
2756
+ # 注意:此字段可能返回 null,表示取不到有效值。
2757
+ # 注意:此字段可能返回 null,表示取不到有效值。
2758
+ # @type OriginalPriceThreeYear: Float
2759
+ # @param DiscountPriceThreeYear: 预支三年合计费用的折扣价,预付费模式使用,单位:元。
2760
+ # 注意:此字段可能返回 null,表示取不到有效值。
2761
+ # 注意:此字段可能返回 null,表示取不到有效值。
2762
+ # @type DiscountPriceThreeYear: Float
2763
+ # @param DiscountThreeYear: 预支三年应用的折扣,如20.0代表2折。
2764
+ # 注意:此字段可能返回 null,表示取不到有效值。
2765
+ # 注意:此字段可能返回 null,表示取不到有效值。
2766
+ # @type DiscountThreeYear: Float
2767
+ # @param OriginalPriceFiveYear: 预支五年合计费用的原价,预付费模式使用,单位:元。
2768
+ # 注意:此字段可能返回 null,表示取不到有效值。
2769
+ # 注意:此字段可能返回 null,表示取不到有效值。
2770
+ # @type OriginalPriceFiveYear: Float
2771
+ # @param DiscountPriceFiveYear: 预支五年合计费用的折扣价,预付费模式使用,单位:元。
2772
+ # 注意:此字段可能返回 null,表示取不到有效值。
2773
+ # 注意:此字段可能返回 null,表示取不到有效值。
2774
+ # @type DiscountPriceFiveYear: Float
2775
+ # @param DiscountFiveYear: 预支五年应用的折扣,如20.0代表2折。
2776
+ # 注意:此字段可能返回 null,表示取不到有效值。
2777
+ # 注意:此字段可能返回 null,表示取不到有效值。
2778
+ # @type DiscountFiveYear: Float
2779
+ # @param OriginalPriceOneYear: 预支一年合计费用的原价,预付费模式使用,单位:元。
2780
+ # 注意:此字段可能返回 null,表示取不到有效值。
2781
+ # 注意:此字段可能返回 null,表示取不到有效值。
2782
+ # @type OriginalPriceOneYear: Float
2783
+ # @param DiscountPriceOneYear: 预支一年合计费用的折扣价,预付费模式使用,单位:元。
2784
+ # 注意:此字段可能返回 null,表示取不到有效值。
2785
+ # 注意:此字段可能返回 null,表示取不到有效值。
2786
+ # @type DiscountPriceOneYear: Float
2787
+ # @param DiscountOneYear: 预支一年应用的折扣,如20.0代表2折。
2788
+ # 注意:此字段可能返回 null,表示取不到有效值。
2789
+ # 注意:此字段可能返回 null,表示取不到有效值。
2790
+ # @type DiscountOneYear: Float
2791
+
2792
+ attr_accessor :UnitPrice, :ChargeUnit, :OriginalPrice, :DiscountPrice, :Discount, :UnitPriceDiscount, :UnitPriceSecondStep, :UnitPriceDiscountSecondStep, :UnitPriceThirdStep, :UnitPriceDiscountThirdStep, :OriginalPriceThreeYear, :DiscountPriceThreeYear, :DiscountThreeYear, :OriginalPriceFiveYear, :DiscountPriceFiveYear, :DiscountFiveYear, :OriginalPriceOneYear, :DiscountPriceOneYear, :DiscountOneYear
2793
+
2794
+ def initialize(unitprice=nil, chargeunit=nil, originalprice=nil, discountprice=nil, discount=nil, unitpricediscount=nil, unitpricesecondstep=nil, unitpricediscountsecondstep=nil, unitpricethirdstep=nil, unitpricediscountthirdstep=nil, originalpricethreeyear=nil, discountpricethreeyear=nil, discountthreeyear=nil, originalpricefiveyear=nil, discountpricefiveyear=nil, discountfiveyear=nil, originalpriceoneyear=nil, discountpriceoneyear=nil, discountoneyear=nil)
2795
+ @UnitPrice = unitprice
2796
+ @ChargeUnit = chargeunit
2797
+ @OriginalPrice = originalprice
2798
+ @DiscountPrice = discountprice
2799
+ @Discount = discount
2800
+ @UnitPriceDiscount = unitpricediscount
2801
+ @UnitPriceSecondStep = unitpricesecondstep
2802
+ @UnitPriceDiscountSecondStep = unitpricediscountsecondstep
2803
+ @UnitPriceThirdStep = unitpricethirdstep
2804
+ @UnitPriceDiscountThirdStep = unitpricediscountthirdstep
2805
+ @OriginalPriceThreeYear = originalpricethreeyear
2806
+ @DiscountPriceThreeYear = discountpricethreeyear
2807
+ @DiscountThreeYear = discountthreeyear
2808
+ @OriginalPriceFiveYear = originalpricefiveyear
2809
+ @DiscountPriceFiveYear = discountpricefiveyear
2810
+ @DiscountFiveYear = discountfiveyear
2811
+ @OriginalPriceOneYear = originalpriceoneyear
2812
+ @DiscountPriceOneYear = discountpriceoneyear
2813
+ @DiscountOneYear = discountoneyear
2814
+ end
2815
+
2816
+ def deserialize(params)
2817
+ @UnitPrice = params['UnitPrice']
2818
+ @ChargeUnit = params['ChargeUnit']
2819
+ @OriginalPrice = params['OriginalPrice']
2820
+ @DiscountPrice = params['DiscountPrice']
2821
+ @Discount = params['Discount']
2822
+ @UnitPriceDiscount = params['UnitPriceDiscount']
2823
+ @UnitPriceSecondStep = params['UnitPriceSecondStep']
2824
+ @UnitPriceDiscountSecondStep = params['UnitPriceDiscountSecondStep']
2825
+ @UnitPriceThirdStep = params['UnitPriceThirdStep']
2826
+ @UnitPriceDiscountThirdStep = params['UnitPriceDiscountThirdStep']
2827
+ @OriginalPriceThreeYear = params['OriginalPriceThreeYear']
2828
+ @DiscountPriceThreeYear = params['DiscountPriceThreeYear']
2829
+ @DiscountThreeYear = params['DiscountThreeYear']
2830
+ @OriginalPriceFiveYear = params['OriginalPriceFiveYear']
2831
+ @DiscountPriceFiveYear = params['DiscountPriceFiveYear']
2832
+ @DiscountFiveYear = params['DiscountFiveYear']
2833
+ @OriginalPriceOneYear = params['OriginalPriceOneYear']
2834
+ @DiscountPriceOneYear = params['DiscountPriceOneYear']
2835
+ @DiscountOneYear = params['DiscountOneYear']
2836
+ end
2837
+ end
2838
+
2839
+ # 作业
2840
+ class Job < TencentCloud::Common::AbstractModel
2841
+ # @param Tasks: 任务信息
2842
+ # @type Tasks: Array
2843
+ # @param JobName: 作业名称
2844
+ # @type JobName: String
2845
+ # @param JobDescription: 作业描述
2846
+ # @type JobDescription: String
2847
+ # @param Priority: 作业优先级,任务(Task)和任务实例(TaskInstance)会继承作业优先级
2848
+ # @type Priority: Integer
2849
+ # @param Dependences: 依赖信息
2850
+ # @type Dependences: Array
2851
+ # @param Notifications: 通知信息
2852
+ # @type Notifications: Array
2853
+ # @param TaskExecutionDependOn: 对于存在依赖关系的任务中,后序任务执行对于前序任务的依赖条件。取值范围包括 PRE_TASK_SUCCEED,PRE_TASK_AT_LEAST_PARTLY_SUCCEED,PRE_TASK_FINISHED,默认值为PRE_TASK_SUCCEED。
2854
+ # @type TaskExecutionDependOn: String
2855
+ # @param StateIfCreateCvmFailed: 表示创建 CVM 失败按照何种策略处理。取值范围包括 FAILED,RUNNABLE。FAILED 表示创建 CVM 失败按照一次执行失败处理,RUNNABLE 表示创建 CVM 失败按照继续等待处理。默认值为FAILED。StateIfCreateCvmFailed对于提交的指定计算环境的作业无效。
2856
+ # @type StateIfCreateCvmFailed: String
2857
+ # @param Tags: 标签列表。通过指定该参数可以支持绑定标签到作业。每个作业最多绑定10个标签。
2858
+ # @type Tags: Array
2859
+
2860
+ attr_accessor :Tasks, :JobName, :JobDescription, :Priority, :Dependences, :Notifications, :TaskExecutionDependOn, :StateIfCreateCvmFailed, :Tags
2861
+
2862
+ def initialize(tasks=nil, jobname=nil, jobdescription=nil, priority=nil, dependences=nil, notifications=nil, taskexecutiondependon=nil, stateifcreatecvmfailed=nil, tags=nil)
2863
+ @Tasks = tasks
2864
+ @JobName = jobname
2865
+ @JobDescription = jobdescription
2866
+ @Priority = priority
2867
+ @Dependences = dependences
2868
+ @Notifications = notifications
2869
+ @TaskExecutionDependOn = taskexecutiondependon
2870
+ @StateIfCreateCvmFailed = stateifcreatecvmfailed
2871
+ @Tags = tags
2872
+ end
2873
+
2874
+ def deserialize(params)
2875
+ unless params['Tasks'].nil?
2876
+ @Tasks = []
2877
+ params['Tasks'].each do |i|
2878
+ task_tmp = Task.new
2879
+ task_tmp.deserialize(i)
2880
+ @Tasks << task_tmp
2881
+ end
2882
+ end
2883
+ @JobName = params['JobName']
2884
+ @JobDescription = params['JobDescription']
2885
+ @Priority = params['Priority']
2886
+ unless params['Dependences'].nil?
2887
+ @Dependences = []
2888
+ params['Dependences'].each do |i|
2889
+ dependence_tmp = Dependence.new
2890
+ dependence_tmp.deserialize(i)
2891
+ @Dependences << dependence_tmp
2892
+ end
2893
+ end
2894
+ unless params['Notifications'].nil?
2895
+ @Notifications = []
2896
+ params['Notifications'].each do |i|
2897
+ notification_tmp = Notification.new
2898
+ notification_tmp.deserialize(i)
2899
+ @Notifications << notification_tmp
2900
+ end
2901
+ end
2902
+ @TaskExecutionDependOn = params['TaskExecutionDependOn']
2903
+ @StateIfCreateCvmFailed = params['StateIfCreateCvmFailed']
2904
+ unless params['Tags'].nil?
2905
+ @Tags = []
2906
+ params['Tags'].each do |i|
2907
+ tag_tmp = Tag.new
2908
+ tag_tmp.deserialize(i)
2909
+ @Tags << tag_tmp
2910
+ end
2911
+ end
2912
+ end
2913
+ end
2914
+
2915
+ # 作业信息
2916
+ class JobView < TencentCloud::Common::AbstractModel
2917
+ # @param JobId: 作业ID
2918
+ # @type JobId: String
2919
+ # @param JobName: 作业名称
2920
+ # @type JobName: String
2921
+ # @param JobState: 作业状态
2922
+ # @type JobState: String
2923
+ # @param Priority: 作业优先级
2924
+ # @type Priority: Integer
2925
+ # @param Placement: 位置信息
2926
+ # 注意:此字段可能返回 null,表示取不到有效值。
2927
+ # @type Placement: :class:`Tencentcloud::Batch.v20170312.models.Placement`
2928
+ # @param CreateTime: 创建时间
2929
+ # @type CreateTime: String
2930
+ # @param EndTime: 结束时间
2931
+ # 注意:此字段可能返回 null,表示取不到有效值。
2932
+ # @type EndTime: String
2933
+ # @param TaskMetrics: 任务统计指标
2934
+ # @type TaskMetrics: :class:`Tencentcloud::Batch.v20170312.models.TaskMetrics`
2935
+ # @param Tags: 作业绑定的标签列表。
2936
+ # 注意:此字段可能返回 null,表示取不到有效值。
2937
+ # @type Tags: Array
2938
+
2939
+ attr_accessor :JobId, :JobName, :JobState, :Priority, :Placement, :CreateTime, :EndTime, :TaskMetrics, :Tags
2940
+
2941
+ def initialize(jobid=nil, jobname=nil, jobstate=nil, priority=nil, placement=nil, createtime=nil, endtime=nil, taskmetrics=nil, tags=nil)
2942
+ @JobId = jobid
2943
+ @JobName = jobname
2944
+ @JobState = jobstate
2945
+ @Priority = priority
2946
+ @Placement = placement
2947
+ @CreateTime = createtime
2948
+ @EndTime = endtime
2949
+ @TaskMetrics = taskmetrics
2950
+ @Tags = tags
2951
+ end
2952
+
2953
+ def deserialize(params)
2954
+ @JobId = params['JobId']
2955
+ @JobName = params['JobName']
2956
+ @JobState = params['JobState']
2957
+ @Priority = params['Priority']
2958
+ unless params['Placement'].nil?
2959
+ @Placement = Placement.new
2960
+ @Placement.deserialize(params['Placement'])
2961
+ end
2962
+ @CreateTime = params['CreateTime']
2963
+ @EndTime = params['EndTime']
2964
+ unless params['TaskMetrics'].nil?
2965
+ @TaskMetrics = TaskMetrics.new
2966
+ @TaskMetrics.deserialize(params['TaskMetrics'])
2967
+ end
2968
+ unless params['Tags'].nil?
2969
+ @Tags = []
2970
+ params['Tags'].each do |i|
2971
+ tag_tmp = Tag.new
2972
+ tag_tmp.deserialize(i)
2973
+ @Tags << tag_tmp
2974
+ end
2975
+ end
2976
+ end
2977
+ end
2978
+
2979
+ # 本地磁盘规格
2980
+ class LocalDiskType < TencentCloud::Common::AbstractModel
2981
+ # @param Type: 本地磁盘类型。
2982
+ # @type Type: String
2983
+ # @param PartitionType: 本地磁盘属性。
2984
+ # @type PartitionType: String
2985
+ # @param MinSize: 本地磁盘最小值。
2986
+ # @type MinSize: Integer
2987
+ # @param MaxSize: 本地磁盘最大值。
2988
+ # @type MaxSize: Integer
2989
+ # @param Required: 购买时本地盘是否为必选。取值范围:<br><li>REQUIRED:表示必选<br><li>OPTIONAL:表示可选。
2990
+ # @type Required: String
2991
+
2992
+ attr_accessor :Type, :PartitionType, :MinSize, :MaxSize, :Required
2993
+
2994
+ def initialize(type=nil, partitiontype=nil, minsize=nil, maxsize=nil, required=nil)
2995
+ @Type = type
2996
+ @PartitionType = partitiontype
2997
+ @MinSize = minsize
2998
+ @MaxSize = maxsize
2999
+ @Required = required
3000
+ end
3001
+
3002
+ def deserialize(params)
3003
+ @Type = params['Type']
3004
+ @PartitionType = params['PartitionType']
3005
+ @MinSize = params['MinSize']
3006
+ @MaxSize = params['MaxSize']
3007
+ @Required = params['Required']
3008
+ end
3009
+ end
3010
+
3011
+ # 描述了实例登录相关配置与信息。
3012
+ class LoginSettings < TencentCloud::Common::AbstractModel
3013
+ # @param Password: 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到16位,至少包括两项[a-z,A-Z]、[0-9] 和 [( ) ` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? \/ ]中的特殊符号。<br><li>Windows实例密码必须12到16位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) ` ~ ! @ # $ % ^ & * - + = { } [ ] : ; ' , . ? \/]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
3014
+ # @type Password: String
3015
+ # @param KeyIds: 密钥ID列表。关联密钥后,就可以通过对应的私钥来访问实例;KeyId可通过接口DescribeKeyPairs获取,密钥与密码不能同时指定,同时Windows操作系统不支持指定密钥。当前仅支持购买的时候指定一个密钥。
3016
+ # @type KeyIds: Array
3017
+ # @param KeepImageLogin: 保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为TRUE。取值范围:<br><li>TRUE:表示保持镜像的登录设置<br><li>FALSE:表示不保持镜像的登录设置<br><br>默认取值:FALSE。
3018
+ # @type KeepImageLogin: String
3019
+
3020
+ attr_accessor :Password, :KeyIds, :KeepImageLogin
3021
+
3022
+ def initialize(password=nil, keyids=nil, keepimagelogin=nil)
3023
+ @Password = password
3024
+ @KeyIds = keyids
3025
+ @KeepImageLogin = keepimagelogin
3026
+ end
3027
+
3028
+ def deserialize(params)
3029
+ @Password = params['Password']
3030
+ @KeyIds = params['KeyIds']
3031
+ @KeepImageLogin = params['KeepImageLogin']
3032
+ end
3033
+ end
3034
+
3035
+ # ModifyComputeEnv请求参数结构体
3036
+ class ModifyComputeEnvRequest < TencentCloud::Common::AbstractModel
3037
+ # @param EnvId: 计算环境ID
3038
+ # @type EnvId: String
3039
+ # @param DesiredComputeNodeCount: 计算节点期望个数
3040
+ # @type DesiredComputeNodeCount: Integer
3041
+ # @param EnvName: 计算环境名称
3042
+ # @type EnvName: String
3043
+ # @param EnvDescription: 计算环境描述
3044
+ # @type EnvDescription: String
3045
+ # @param EnvData: 计算环境属性数据
3046
+ # @type EnvData: :class:`Tencentcloud::Batch.v20170312.models.ComputeEnvData`
3047
+
3048
+ attr_accessor :EnvId, :DesiredComputeNodeCount, :EnvName, :EnvDescription, :EnvData
3049
+
3050
+ def initialize(envid=nil, desiredcomputenodecount=nil, envname=nil, envdescription=nil, envdata=nil)
3051
+ @EnvId = envid
3052
+ @DesiredComputeNodeCount = desiredcomputenodecount
3053
+ @EnvName = envname
3054
+ @EnvDescription = envdescription
3055
+ @EnvData = envdata
3056
+ end
3057
+
3058
+ def deserialize(params)
3059
+ @EnvId = params['EnvId']
3060
+ @DesiredComputeNodeCount = params['DesiredComputeNodeCount']
3061
+ @EnvName = params['EnvName']
3062
+ @EnvDescription = params['EnvDescription']
3063
+ unless params['EnvData'].nil?
3064
+ @EnvData = ComputeEnvData.new
3065
+ @EnvData.deserialize(params['EnvData'])
3066
+ end
3067
+ end
3068
+ end
3069
+
3070
+ # ModifyComputeEnv返回参数结构体
3071
+ class ModifyComputeEnvResponse < TencentCloud::Common::AbstractModel
3072
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3073
+ # @type RequestId: String
3074
+
3075
+ attr_accessor :RequestId
3076
+
3077
+ def initialize(requestid=nil)
3078
+ @RequestId = requestid
3079
+ end
3080
+
3081
+ def deserialize(params)
3082
+ @RequestId = params['RequestId']
3083
+ end
3084
+ end
3085
+
3086
+ # ModifyTaskTemplate请求参数结构体
3087
+ class ModifyTaskTemplateRequest < TencentCloud::Common::AbstractModel
3088
+ # @param TaskTemplateId: 任务模板ID
3089
+ # @type TaskTemplateId: String
3090
+ # @param TaskTemplateName: 任务模板名称
3091
+ # @type TaskTemplateName: String
3092
+ # @param TaskTemplateDescription: 任务模板描述
3093
+ # @type TaskTemplateDescription: String
3094
+ # @param TaskTemplateInfo: 任务模板信息
3095
+ # @type TaskTemplateInfo: :class:`Tencentcloud::Batch.v20170312.models.Task`
3096
+
3097
+ attr_accessor :TaskTemplateId, :TaskTemplateName, :TaskTemplateDescription, :TaskTemplateInfo
3098
+
3099
+ def initialize(tasktemplateid=nil, tasktemplatename=nil, tasktemplatedescription=nil, tasktemplateinfo=nil)
3100
+ @TaskTemplateId = tasktemplateid
3101
+ @TaskTemplateName = tasktemplatename
3102
+ @TaskTemplateDescription = tasktemplatedescription
3103
+ @TaskTemplateInfo = tasktemplateinfo
3104
+ end
3105
+
3106
+ def deserialize(params)
3107
+ @TaskTemplateId = params['TaskTemplateId']
3108
+ @TaskTemplateName = params['TaskTemplateName']
3109
+ @TaskTemplateDescription = params['TaskTemplateDescription']
3110
+ unless params['TaskTemplateInfo'].nil?
3111
+ @TaskTemplateInfo = Task.new
3112
+ @TaskTemplateInfo.deserialize(params['TaskTemplateInfo'])
3113
+ end
3114
+ end
3115
+ end
3116
+
3117
+ # ModifyTaskTemplate返回参数结构体
3118
+ class ModifyTaskTemplateResponse < TencentCloud::Common::AbstractModel
3119
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3120
+ # @type RequestId: String
3121
+
3122
+ attr_accessor :RequestId
3123
+
3124
+ def initialize(requestid=nil)
3125
+ @RequestId = requestid
3126
+ end
3127
+
3128
+ def deserialize(params)
3129
+ @RequestId = params['RequestId']
3130
+ end
3131
+ end
3132
+
3133
+ # 数据盘挂载选项
3134
+ class MountDataDisk < TencentCloud::Common::AbstractModel
3135
+ # @param LocalPath: 挂载点,Linux系统合法路径,或Windows系统盘符,比如"H:\\"
3136
+ # @type LocalPath: String
3137
+ # @param FileSystemType: 文件系统类型,Linux系统下支持"EXT3"和"EXT4"两种,默认"EXT3";Windows系统下仅支持"NTFS"
3138
+ # @type FileSystemType: String
3139
+
3140
+ attr_accessor :LocalPath, :FileSystemType
3141
+
3142
+ def initialize(localpath=nil, filesystemtype=nil)
3143
+ @LocalPath = localpath
3144
+ @FileSystemType = filesystemtype
3145
+ end
3146
+
3147
+ def deserialize(params)
3148
+ @LocalPath = params['LocalPath']
3149
+ @FileSystemType = params['FileSystemType']
3150
+ end
3151
+ end
3152
+
3153
+ # 计算环境
3154
+ class NamedComputeEnv < TencentCloud::Common::AbstractModel
3155
+ # @param EnvName: 计算环境名称
3156
+ # @type EnvName: String
3157
+ # @param DesiredComputeNodeCount: 计算节点期望个数
3158
+ # @type DesiredComputeNodeCount: Integer
3159
+ # @param EnvDescription: 计算环境描述
3160
+ # @type EnvDescription: String
3161
+ # @param EnvType: 计算环境管理类型
3162
+ # @type EnvType: String
3163
+ # @param EnvData: 计算环境具体参数
3164
+ # @type EnvData: :class:`Tencentcloud::Batch.v20170312.models.EnvData`
3165
+ # @param MountDataDisks: 数据盘挂载选项
3166
+ # @type MountDataDisks: Array
3167
+ # @param Authentications: 授权信息
3168
+ # @type Authentications: Array
3169
+ # @param InputMappings: 输入映射信息
3170
+ # @type InputMappings: Array
3171
+ # @param AgentRunningMode: agent运行模式,适用于Windows系统
3172
+ # @type AgentRunningMode: :class:`Tencentcloud::Batch.v20170312.models.AgentRunningMode`
3173
+ # @param Notifications: 通知信息
3174
+ # @type Notifications: :class:`Tencentcloud::Batch.v20170312.models.Notification`
3175
+ # @param ActionIfComputeNodeInactive: 非活跃节点处理策略,默认“RECREATE”,即对于实例创建失败或异常退还的计算节点,定期重新创建实例资源。
3176
+ # @type ActionIfComputeNodeInactive: String
3177
+ # @param ResourceMaxRetryCount: 对于实例创建失败或异常退还的计算节点,定期重新创建实例资源的最大重试次数,最大值11,如果不设置的话,系统会设置一个默认值,当前为7
3178
+ # @type ResourceMaxRetryCount: Integer
3179
+ # @param Tags: 标签列表。通过指定该参数可以支持绑定标签到计算环境。每个计算环境最多绑定10个标签。
3180
+ # @type Tags: Array
3181
+
3182
+ attr_accessor :EnvName, :DesiredComputeNodeCount, :EnvDescription, :EnvType, :EnvData, :MountDataDisks, :Authentications, :InputMappings, :AgentRunningMode, :Notifications, :ActionIfComputeNodeInactive, :ResourceMaxRetryCount, :Tags
3183
+
3184
+ def initialize(envname=nil, desiredcomputenodecount=nil, envdescription=nil, envtype=nil, envdata=nil, mountdatadisks=nil, authentications=nil, inputmappings=nil, agentrunningmode=nil, notifications=nil, actionifcomputenodeinactive=nil, resourcemaxretrycount=nil, tags=nil)
3185
+ @EnvName = envname
3186
+ @DesiredComputeNodeCount = desiredcomputenodecount
3187
+ @EnvDescription = envdescription
3188
+ @EnvType = envtype
3189
+ @EnvData = envdata
3190
+ @MountDataDisks = mountdatadisks
3191
+ @Authentications = authentications
3192
+ @InputMappings = inputmappings
3193
+ @AgentRunningMode = agentrunningmode
3194
+ @Notifications = notifications
3195
+ @ActionIfComputeNodeInactive = actionifcomputenodeinactive
3196
+ @ResourceMaxRetryCount = resourcemaxretrycount
3197
+ @Tags = tags
3198
+ end
3199
+
3200
+ def deserialize(params)
3201
+ @EnvName = params['EnvName']
3202
+ @DesiredComputeNodeCount = params['DesiredComputeNodeCount']
3203
+ @EnvDescription = params['EnvDescription']
3204
+ @EnvType = params['EnvType']
3205
+ unless params['EnvData'].nil?
3206
+ @EnvData = EnvData.new
3207
+ @EnvData.deserialize(params['EnvData'])
3208
+ end
3209
+ unless params['MountDataDisks'].nil?
3210
+ @MountDataDisks = []
3211
+ params['MountDataDisks'].each do |i|
3212
+ mountdatadisk_tmp = MountDataDisk.new
3213
+ mountdatadisk_tmp.deserialize(i)
3214
+ @MountDataDisks << mountdatadisk_tmp
3215
+ end
3216
+ end
3217
+ unless params['Authentications'].nil?
3218
+ @Authentications = []
3219
+ params['Authentications'].each do |i|
3220
+ authentication_tmp = Authentication.new
3221
+ authentication_tmp.deserialize(i)
3222
+ @Authentications << authentication_tmp
3223
+ end
3224
+ end
3225
+ unless params['InputMappings'].nil?
3226
+ @InputMappings = []
3227
+ params['InputMappings'].each do |i|
3228
+ inputmapping_tmp = InputMapping.new
3229
+ inputmapping_tmp.deserialize(i)
3230
+ @InputMappings << inputmapping_tmp
3231
+ end
3232
+ end
3233
+ unless params['AgentRunningMode'].nil?
3234
+ @AgentRunningMode = AgentRunningMode.new
3235
+ @AgentRunningMode.deserialize(params['AgentRunningMode'])
3236
+ end
3237
+ unless params['Notifications'].nil?
3238
+ @Notifications = Notification.new
3239
+ @Notifications.deserialize(params['Notifications'])
3240
+ end
3241
+ @ActionIfComputeNodeInactive = params['ActionIfComputeNodeInactive']
3242
+ @ResourceMaxRetryCount = params['ResourceMaxRetryCount']
3243
+ unless params['Tags'].nil?
3244
+ @Tags = []
3245
+ params['Tags'].each do |i|
3246
+ tag_tmp = Tag.new
3247
+ tag_tmp.deserialize(i)
3248
+ @Tags << tag_tmp
3249
+ end
3250
+ end
3251
+ end
3252
+ end
3253
+
3254
+ # 黑石计算环境
3255
+ class NamedCpmComputeEnv < TencentCloud::Common::AbstractModel
3256
+ # @param EnvName: 计算环境名称
3257
+ # @type EnvName: String
3258
+ # @param EnvData: 计算环境具体参数
3259
+ # @type EnvData: :class:`Tencentcloud::Batch.v20170312.models.EnvDataCpm`
3260
+ # @param DesiredComputeNodeCount: 计算节点期望个数
3261
+ # @type DesiredComputeNodeCount: Integer
3262
+ # @param EnvDescription: 计算环境描述
3263
+ # @type EnvDescription: String
3264
+ # @param EnvType: 计算环境管理类型, 取值MANAGED。
3265
+ # @type EnvType: String
3266
+ # @param Authentications: 授权信息
3267
+ # @type Authentications: Array
3268
+ # @param InputMappings: 输入映射信息
3269
+ # @type InputMappings: Array
3270
+ # @param Notifications: 通知信息
3271
+ # @type Notifications: :class:`Tencentcloud::Batch.v20170312.models.Notification`
3272
+ # @param ActionIfComputeNodeInactive: 非活跃节点处理策略,默认“RECREATE”,即对于实例创建失败或异常退还的计算节点,定期重新创建实例资源。
3273
+ # @type ActionIfComputeNodeInactive: String
3274
+ # @param ResourceMaxRetryCount: 对于实例创建失败或异常退还的计算节点,定期重新创建实例资源的最大重试次数,最大值11,如果不设置的话,系统会设置一个默认值,当前为7
3275
+ # @type ResourceMaxRetryCount: Integer
3276
+ # @param Tags: 标签列表。通过指定该参数可以支持绑定标签到黑石计算环境。每个黑石计算环境最多绑定10个标签。
3277
+ # @type Tags: Array
3278
+
3279
+ attr_accessor :EnvName, :EnvData, :DesiredComputeNodeCount, :EnvDescription, :EnvType, :Authentications, :InputMappings, :Notifications, :ActionIfComputeNodeInactive, :ResourceMaxRetryCount, :Tags
3280
+
3281
+ def initialize(envname=nil, envdata=nil, desiredcomputenodecount=nil, envdescription=nil, envtype=nil, authentications=nil, inputmappings=nil, notifications=nil, actionifcomputenodeinactive=nil, resourcemaxretrycount=nil, tags=nil)
3282
+ @EnvName = envname
3283
+ @EnvData = envdata
3284
+ @DesiredComputeNodeCount = desiredcomputenodecount
3285
+ @EnvDescription = envdescription
3286
+ @EnvType = envtype
3287
+ @Authentications = authentications
3288
+ @InputMappings = inputmappings
3289
+ @Notifications = notifications
3290
+ @ActionIfComputeNodeInactive = actionifcomputenodeinactive
3291
+ @ResourceMaxRetryCount = resourcemaxretrycount
3292
+ @Tags = tags
3293
+ end
3294
+
3295
+ def deserialize(params)
3296
+ @EnvName = params['EnvName']
3297
+ unless params['EnvData'].nil?
3298
+ @EnvData = EnvDataCpm.new
3299
+ @EnvData.deserialize(params['EnvData'])
3300
+ end
3301
+ @DesiredComputeNodeCount = params['DesiredComputeNodeCount']
3302
+ @EnvDescription = params['EnvDescription']
3303
+ @EnvType = params['EnvType']
3304
+ unless params['Authentications'].nil?
3305
+ @Authentications = []
3306
+ params['Authentications'].each do |i|
3307
+ authentication_tmp = Authentication.new
3308
+ authentication_tmp.deserialize(i)
3309
+ @Authentications << authentication_tmp
3310
+ end
3311
+ end
3312
+ unless params['InputMappings'].nil?
3313
+ @InputMappings = []
3314
+ params['InputMappings'].each do |i|
3315
+ inputmapping_tmp = InputMapping.new
3316
+ inputmapping_tmp.deserialize(i)
3317
+ @InputMappings << inputmapping_tmp
3318
+ end
3319
+ end
3320
+ unless params['Notifications'].nil?
3321
+ @Notifications = Notification.new
3322
+ @Notifications.deserialize(params['Notifications'])
3323
+ end
3324
+ @ActionIfComputeNodeInactive = params['ActionIfComputeNodeInactive']
3325
+ @ResourceMaxRetryCount = params['ResourceMaxRetryCount']
3326
+ unless params['Tags'].nil?
3327
+ @Tags = []
3328
+ params['Tags'].each do |i|
3329
+ tag_tmp = Tag.new
3330
+ tag_tmp.deserialize(i)
3331
+ @Tags << tag_tmp
3332
+ end
3333
+ end
3334
+ end
3335
+ end
3336
+
3337
+ # 通知信息
3338
+ class Notification < TencentCloud::Common::AbstractModel
3339
+ # @param TopicName: CMQ主题名字,要求主题名有效且关联订阅
3340
+ # @type TopicName: String
3341
+ # @param EventConfigs: 事件配置
3342
+ # @type EventConfigs: Array
3343
+
3344
+ attr_accessor :TopicName, :EventConfigs
3345
+
3346
+ def initialize(topicname=nil, eventconfigs=nil)
3347
+ @TopicName = topicname
3348
+ @EventConfigs = eventconfigs
3349
+ end
3350
+
3351
+ def deserialize(params)
3352
+ @TopicName = params['TopicName']
3353
+ unless params['EventConfigs'].nil?
3354
+ @EventConfigs = []
3355
+ params['EventConfigs'].each do |i|
3356
+ eventconfig_tmp = EventConfig.new
3357
+ eventconfig_tmp.deserialize(i)
3358
+ @EventConfigs << eventconfig_tmp
3359
+ end
3360
+ end
3361
+ end
3362
+ end
3363
+
3364
+ # 操作系统类型
3365
+ class OsInfo < TencentCloud::Common::AbstractModel
3366
+ # @param OsTypeId: 操作系统ID。
3367
+ # @type OsTypeId: Integer
3368
+ # @param OsName: 操作系统名称。
3369
+ # @type OsName: String
3370
+ # @param OsDescription: 操作系统名称描述。
3371
+ # @type OsDescription: String
3372
+ # @param OsEnglishDescription: 操作系统英文名称。
3373
+ # @type OsEnglishDescription: String
3374
+ # @param OsClass: 操作系统的分类,如CentOs Debian。
3375
+ # @type OsClass: String
3376
+ # @param ImageTag: 标识镜像分类。public:公共镜像; private: 专属镜像。
3377
+ # @type ImageTag: String
3378
+ # @param MaxPartitionSize: 操作系统,ext4文件下所支持的最大的磁盘大小。单位为T。
3379
+ # @type MaxPartitionSize: Integer
3380
+
3381
+ attr_accessor :OsTypeId, :OsName, :OsDescription, :OsEnglishDescription, :OsClass, :ImageTag, :MaxPartitionSize
3382
+
3383
+ def initialize(ostypeid=nil, osname=nil, osdescription=nil, osenglishdescription=nil, osclass=nil, imagetag=nil, maxpartitionsize=nil)
3384
+ @OsTypeId = ostypeid
3385
+ @OsName = osname
3386
+ @OsDescription = osdescription
3387
+ @OsEnglishDescription = osenglishdescription
3388
+ @OsClass = osclass
3389
+ @ImageTag = imagetag
3390
+ @MaxPartitionSize = maxpartitionsize
3391
+ end
3392
+
3393
+ def deserialize(params)
3394
+ @OsTypeId = params['OsTypeId']
3395
+ @OsName = params['OsName']
3396
+ @OsDescription = params['OsDescription']
3397
+ @OsEnglishDescription = params['OsEnglishDescription']
3398
+ @OsClass = params['OsClass']
3399
+ @ImageTag = params['ImageTag']
3400
+ @MaxPartitionSize = params['MaxPartitionSize']
3401
+ end
3402
+ end
3403
+
3404
+ # 输出映射
3405
+ class OutputMapping < TencentCloud::Common::AbstractModel
3406
+ # @param SourcePath: 源端路径
3407
+ # @type SourcePath: String
3408
+ # @param DestinationPath: 目的端路径
3409
+ # @type DestinationPath: String
3410
+
3411
+ attr_accessor :SourcePath, :DestinationPath
3412
+
3413
+ def initialize(sourcepath=nil, destinationpath=nil)
3414
+ @SourcePath = sourcepath
3415
+ @DestinationPath = destinationpath
3416
+ end
3417
+
3418
+ def deserialize(params)
3419
+ @SourcePath = params['SourcePath']
3420
+ @DestinationPath = params['DestinationPath']
3421
+ end
3422
+ end
3423
+
3424
+ # 输出映射配置
3425
+ class OutputMappingConfig < TencentCloud::Common::AbstractModel
3426
+ # @param Scene: 存储类型,仅支持COS
3427
+ # @type Scene: String
3428
+ # @param WorkerNum: 并行worker数量
3429
+ # @type WorkerNum: Integer
3430
+ # @param WorkerPartSize: worker分块大小,单位MB
3431
+ # @type WorkerPartSize: Integer
3432
+
3433
+ attr_accessor :Scene, :WorkerNum, :WorkerPartSize
3434
+
3435
+ def initialize(scene=nil, workernum=nil, workerpartsize=nil)
3436
+ @Scene = scene
3437
+ @WorkerNum = workernum
3438
+ @WorkerPartSize = workerpartsize
3439
+ end
3440
+
3441
+ def deserialize(params)
3442
+ @Scene = params['Scene']
3443
+ @WorkerNum = params['WorkerNum']
3444
+ @WorkerPartSize = params['WorkerPartSize']
3445
+ end
3446
+ end
3447
+
3448
+ # 描述了实例的抽象位置,包括其所在的可用区,所属的项目,宿主机(仅CDH产品可用),母机ip等
3449
+ class Placement < TencentCloud::Common::AbstractModel
3450
+ # @param Zone: 实例所属的可用区ID。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。
3451
+ # @type Zone: String
3452
+ # @param ProjectId: 实例所属项目ID。该参数可以通过调用 [DescribeProject](/document/api/378/4400) 的返回值中的 projectId 字段来获取。不填为默认项目。
3453
+ # @type ProjectId: Integer
3454
+ # @param HostIds: 实例所属的专用宿主机ID列表,仅用于入参。如果您有购买专用宿主机并且指定了该参数,则您购买的实例就会随机的部署在这些专用宿主机上。
3455
+ # @type HostIds: Array
3456
+ # @param HostIps: 指定母机ip生产子机
3457
+ # @type HostIps: Array
3458
+ # @param HostId: 实例所属的专用宿主机ID,仅用于出参。
3459
+ # @type HostId: String
3460
+
3461
+ attr_accessor :Zone, :ProjectId, :HostIds, :HostIps, :HostId
3462
+
3463
+ def initialize(zone=nil, projectid=nil, hostids=nil, hostips=nil, hostid=nil)
3464
+ @Zone = zone
3465
+ @ProjectId = projectid
3466
+ @HostIds = hostids
3467
+ @HostIps = hostips
3468
+ @HostId = hostid
3469
+ end
3470
+
3471
+ def deserialize(params)
3472
+ @Zone = params['Zone']
3473
+ @ProjectId = params['ProjectId']
3474
+ @HostIds = params['HostIds']
3475
+ @HostIps = params['HostIps']
3476
+ @HostId = params['HostId']
3477
+ end
3478
+ end
3479
+
3480
+ # 重定向信息
3481
+ class RedirectInfo < TencentCloud::Common::AbstractModel
3482
+ # @param StdoutRedirectPath: 标准输出重定向路径
3483
+ # @type StdoutRedirectPath: String
3484
+ # @param StderrRedirectPath: 标准错误重定向路径
3485
+ # @type StderrRedirectPath: String
3486
+ # @param StdoutRedirectFileName: 标准输出重定向文件名,支持三个占位符${BATCH_JOB_ID}、${BATCH_TASK_NAME}、${BATCH_TASK_INSTANCE_INDEX}
3487
+ # @type StdoutRedirectFileName: String
3488
+ # @param StderrRedirectFileName: 标准错误重定向文件名,支持三个占位符${BATCH_JOB_ID}、${BATCH_TASK_NAME}、${BATCH_TASK_INSTANCE_INDEX}
3489
+ # @type StderrRedirectFileName: String
3490
+
3491
+ attr_accessor :StdoutRedirectPath, :StderrRedirectPath, :StdoutRedirectFileName, :StderrRedirectFileName
3492
+
3493
+ def initialize(stdoutredirectpath=nil, stderrredirectpath=nil, stdoutredirectfilename=nil, stderrredirectfilename=nil)
3494
+ @StdoutRedirectPath = stdoutredirectpath
3495
+ @StderrRedirectPath = stderrredirectpath
3496
+ @StdoutRedirectFileName = stdoutredirectfilename
3497
+ @StderrRedirectFileName = stderrredirectfilename
3498
+ end
3499
+
3500
+ def deserialize(params)
3501
+ @StdoutRedirectPath = params['StdoutRedirectPath']
3502
+ @StderrRedirectPath = params['StderrRedirectPath']
3503
+ @StdoutRedirectFileName = params['StdoutRedirectFileName']
3504
+ @StderrRedirectFileName = params['StderrRedirectFileName']
3505
+ end
3506
+ end
3507
+
3508
+ # 本地重定向信息
3509
+ class RedirectLocalInfo < TencentCloud::Common::AbstractModel
3510
+ # @param StdoutLocalPath: 标准输出重定向本地路径
3511
+ # @type StdoutLocalPath: String
3512
+ # @param StderrLocalPath: 标准错误重定向本地路径
3513
+ # @type StderrLocalPath: String
3514
+ # @param StdoutLocalFileName: 标准输出重定向本地文件名,支持三个占位符${BATCH_JOB_ID}、${BATCH_TASK_NAME}、${BATCH_TASK_INSTANCE_INDEX}
3515
+ # @type StdoutLocalFileName: String
3516
+ # @param StderrLocalFileName: 标准错误重定向本地文件名,支持三个占位符${BATCH_JOB_ID}、${BATCH_TASK_NAME}、${BATCH_TASK_INSTANCE_INDEX}
3517
+ # @type StderrLocalFileName: String
3518
+
3519
+ attr_accessor :StdoutLocalPath, :StderrLocalPath, :StdoutLocalFileName, :StderrLocalFileName
3520
+
3521
+ def initialize(stdoutlocalpath=nil, stderrlocalpath=nil, stdoutlocalfilename=nil, stderrlocalfilename=nil)
3522
+ @StdoutLocalPath = stdoutlocalpath
3523
+ @StderrLocalPath = stderrlocalpath
3524
+ @StdoutLocalFileName = stdoutlocalfilename
3525
+ @StderrLocalFileName = stderrlocalfilename
3526
+ end
3527
+
3528
+ def deserialize(params)
3529
+ @StdoutLocalPath = params['StdoutLocalPath']
3530
+ @StderrLocalPath = params['StderrLocalPath']
3531
+ @StdoutLocalFileName = params['StdoutLocalFileName']
3532
+ @StderrLocalFileName = params['StderrLocalFileName']
3533
+ end
3534
+ end
3535
+
3536
+ # RetryJobs请求参数结构体
3537
+ class RetryJobsRequest < TencentCloud::Common::AbstractModel
3538
+ # @param JobIds: 作业ID列表。
3539
+ # @type JobIds: Array
3540
+
3541
+ attr_accessor :JobIds
3542
+
3543
+ def initialize(jobids=nil)
3544
+ @JobIds = jobids
3545
+ end
3546
+
3547
+ def deserialize(params)
3548
+ @JobIds = params['JobIds']
3549
+ end
3550
+ end
3551
+
3552
+ # RetryJobs返回参数结构体
3553
+ class RetryJobsResponse < TencentCloud::Common::AbstractModel
3554
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3555
+ # @type RequestId: String
3556
+
3557
+ attr_accessor :RequestId
3558
+
3559
+ def initialize(requestid=nil)
3560
+ @RequestId = requestid
3561
+ end
3562
+
3563
+ def deserialize(params)
3564
+ @RequestId = params['RequestId']
3565
+ end
3566
+ end
3567
+
3568
+ # 描述了 “云自动化助手” 服务相关的信息
3569
+ class RunAutomationServiceEnabled < TencentCloud::Common::AbstractModel
3570
+ # @param Enabled: 是否开启云自动化助手。取值范围:<br><li>TRUE:表示开启云自动化助手服务<br><li>FALSE:表示不开启云自动化助手服务<br><br>默认取值:FALSE。
3571
+ # @type Enabled: Boolean
3572
+
3573
+ attr_accessor :Enabled
3574
+
3575
+ def initialize(enabled=nil)
3576
+ @Enabled = enabled
3577
+ end
3578
+
3579
+ def deserialize(params)
3580
+ @Enabled = params['Enabled']
3581
+ end
3582
+ end
3583
+
3584
+ # 描述了 “云监控” 服务相关的信息
3585
+ class RunMonitorServiceEnabled < TencentCloud::Common::AbstractModel
3586
+ # @param Enabled: 是否开启[云监控](/document/product/248)服务。取值范围:<br><li>TRUE:表示开启云监控服务<br><li>FALSE:表示不开启云监控服务<br><br>默认取值:TRUE。
3587
+ # @type Enabled: Boolean
3588
+
3589
+ attr_accessor :Enabled
3590
+
3591
+ def initialize(enabled=nil)
3592
+ @Enabled = enabled
3593
+ end
3594
+
3595
+ def deserialize(params)
3596
+ @Enabled = params['Enabled']
3597
+ end
3598
+ end
3599
+
3600
+ # 描述了 “云安全” 服务相关的信息
3601
+ class RunSecurityServiceEnabled < TencentCloud::Common::AbstractModel
3602
+ # @param Enabled: 是否开启[云安全](/document/product/296)服务。取值范围:<br><li>TRUE:表示开启云安全服务<br><li>FALSE:表示不开启云安全服务<br><br>默认取值:TRUE。
3603
+ # @type Enabled: Boolean
3604
+
3605
+ attr_accessor :Enabled
3606
+
3607
+ def initialize(enabled=nil)
3608
+ @Enabled = enabled
3609
+ end
3610
+
3611
+ def deserialize(params)
3612
+ @Enabled = params['Enabled']
3613
+ end
3614
+ end
3615
+
3616
+ # 竞价相关选项
3617
+ class SpotMarketOptions < TencentCloud::Common::AbstractModel
3618
+ # @param MaxPrice: 竞价出价
3619
+ # @type MaxPrice: String
3620
+ # @param SpotInstanceType: 竞价请求类型,当前仅支持类型:one-time
3621
+ # @type SpotInstanceType: String
3622
+
3623
+ attr_accessor :MaxPrice, :SpotInstanceType
3624
+
3625
+ def initialize(maxprice=nil, spotinstancetype=nil)
3626
+ @MaxPrice = maxprice
3627
+ @SpotInstanceType = spotinstancetype
3628
+ end
3629
+
3630
+ def deserialize(params)
3631
+ @MaxPrice = params['MaxPrice']
3632
+ @SpotInstanceType = params['SpotInstanceType']
3633
+ end
3634
+ end
3635
+
3636
+ # HDD的本地存储信息
3637
+ class StorageBlock < TencentCloud::Common::AbstractModel
3638
+ # @param Type: HDD本地存储类型,值为:LOCAL_PRO.
3639
+ # 注意:此字段可能返回 null,表示取不到有效值。
3640
+ # @type Type: String
3641
+ # @param MinSize: HDD本地存储的最小容量
3642
+ # 注意:此字段可能返回 null,表示取不到有效值。
3643
+ # @type MinSize: Integer
3644
+ # @param MaxSize: HDD本地存储的最大容量
3645
+ # 注意:此字段可能返回 null,表示取不到有效值。
3646
+ # @type MaxSize: Integer
3647
+
3648
+ attr_accessor :Type, :MinSize, :MaxSize
3649
+
3650
+ def initialize(type=nil, minsize=nil, maxsize=nil)
3651
+ @Type = type
3652
+ @MinSize = minsize
3653
+ @MaxSize = maxsize
3654
+ end
3655
+
3656
+ def deserialize(params)
3657
+ @Type = params['Type']
3658
+ @MinSize = params['MinSize']
3659
+ @MaxSize = params['MaxSize']
3660
+ end
3661
+ end
3662
+
3663
+ # SubmitJob请求参数结构体
3664
+ class SubmitJobRequest < TencentCloud::Common::AbstractModel
3665
+ # @param Placement: 作业所提交的位置信息。通过该参数可以指定作业关联CVM所属可用区等信息。
3666
+ # @type Placement: :class:`Tencentcloud::Batch.v20170312.models.Placement`
3667
+ # @param Job: 作业信息
3668
+ # @type Job: :class:`Tencentcloud::Batch.v20170312.models.Job`
3669
+ # @param ClientToken: 用于保证请求幂等性的字符串。该字符串由用户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
3670
+ # @type ClientToken: String
3671
+
3672
+ attr_accessor :Placement, :Job, :ClientToken
3673
+
3674
+ def initialize(placement=nil, job=nil, clienttoken=nil)
3675
+ @Placement = placement
3676
+ @Job = job
3677
+ @ClientToken = clienttoken
3678
+ end
3679
+
3680
+ def deserialize(params)
3681
+ unless params['Placement'].nil?
3682
+ @Placement = Placement.new
3683
+ @Placement.deserialize(params['Placement'])
3684
+ end
3685
+ unless params['Job'].nil?
3686
+ @Job = Job.new
3687
+ @Job.deserialize(params['Job'])
3688
+ end
3689
+ @ClientToken = params['ClientToken']
3690
+ end
3691
+ end
3692
+
3693
+ # SubmitJob返回参数结构体
3694
+ class SubmitJobResponse < TencentCloud::Common::AbstractModel
3695
+ # @param JobId: 当通过本接口来提交作业时会返回该参数,表示一个作业ID。返回作业ID列表并不代表作业解析/运行成功,可根据 DescribeJob 接口查询其状态。
3696
+ # @type JobId: String
3697
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3698
+ # @type RequestId: String
3699
+
3700
+ attr_accessor :JobId, :RequestId
3701
+
3702
+ def initialize(jobid=nil, requestid=nil)
3703
+ @JobId = jobid
3704
+ @RequestId = requestid
3705
+ end
3706
+
3707
+ def deserialize(params)
3708
+ @JobId = params['JobId']
3709
+ @RequestId = params['RequestId']
3710
+ end
3711
+ end
3712
+
3713
+ # 描述了操作系统所在块设备即系统盘的信息
3714
+ class SystemDisk < TencentCloud::Common::AbstractModel
3715
+ # @param DiskType: 系统盘类型。系统盘类型限制详见[存储概述](https://cloud.tencent.com/document/product/213/4952)。取值范围:<br><li>LOCAL_BASIC:本地硬盘<br><li>LOCAL_SSD:本地SSD硬盘<br><li>CLOUD_BASIC:普通云硬盘<br><li>CLOUD_SSD:SSD云硬盘<br><li>CLOUD_PREMIUM:高性能云硬盘<br><br>默认取值:当前有库存的硬盘类型。
3716
+ # @type DiskType: String
3717
+ # @param DiskId: 系统盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID。暂时不支持该参数。
3718
+ # @type DiskId: String
3719
+ # @param DiskSize: 系统盘大小,单位:GB。默认值为 50
3720
+ # @type DiskSize: Integer
3721
+ # @param CdcId: 所属的独享集群ID。
3722
+ # @type CdcId: String
3723
+
3724
+ attr_accessor :DiskType, :DiskId, :DiskSize, :CdcId
3725
+
3726
+ def initialize(disktype=nil, diskid=nil, disksize=nil, cdcid=nil)
3727
+ @DiskType = disktype
3728
+ @DiskId = diskid
3729
+ @DiskSize = disksize
3730
+ @CdcId = cdcid
3731
+ end
3732
+
3733
+ def deserialize(params)
3734
+ @DiskType = params['DiskType']
3735
+ @DiskId = params['DiskId']
3736
+ @DiskSize = params['DiskSize']
3737
+ @CdcId = params['CdcId']
3738
+ end
3739
+ end
3740
+
3741
+ # 标签。
3742
+ class Tag < TencentCloud::Common::AbstractModel
3743
+ # @param Key: 标签键。
3744
+ # 注意:此字段可能返回 null,表示取不到有效值。
3745
+ # @type Key: String
3746
+ # @param Value: 标签值。
3747
+ # 注意:此字段可能返回 null,表示取不到有效值。
3748
+ # @type Value: String
3749
+
3750
+ attr_accessor :Key, :Value
3751
+
3752
+ def initialize(key=nil, value=nil)
3753
+ @Key = key
3754
+ @Value = value
3755
+ end
3756
+
3757
+ def deserialize(params)
3758
+ @Key = params['Key']
3759
+ @Value = params['Value']
3760
+ end
3761
+ end
3762
+
3763
+ # 任务
3764
+ class Task < TencentCloud::Common::AbstractModel
3765
+ # @param Application: 应用程序信息
3766
+ # @type Application: :class:`Tencentcloud::Batch.v20170312.models.Application`
3767
+ # @param TaskName: 任务名称,在一个作业内部唯一
3768
+ # @type TaskName: String
3769
+ # @param TaskInstanceNum: 任务实例运行个数
3770
+ # @type TaskInstanceNum: Integer
3771
+ # @param ComputeEnv: 运行环境信息,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
3772
+ # @type ComputeEnv: :class:`Tencentcloud::Batch.v20170312.models.AnonymousComputeEnv`
3773
+ # @param EnvId: 计算环境ID,ComputeEnv 和 EnvId 必须指定一个(且只有一个)参数。
3774
+ # @type EnvId: String
3775
+ # @param RedirectInfo: 重定向信息
3776
+ # @type RedirectInfo: :class:`Tencentcloud::Batch.v20170312.models.RedirectInfo`
3777
+ # @param RedirectLocalInfo: 重定向本地信息
3778
+ # @type RedirectLocalInfo: :class:`Tencentcloud::Batch.v20170312.models.RedirectLocalInfo`
3779
+ # @param InputMappings: 输入映射
3780
+ # @type InputMappings: Array
3781
+ # @param OutputMappings: 输出映射
3782
+ # @type OutputMappings: Array
3783
+ # @param OutputMappingConfigs: 输出映射配置
3784
+ # @type OutputMappingConfigs: Array
3785
+ # @param EnvVars: 自定义环境变量
3786
+ # @type EnvVars: Array
3787
+ # @param Authentications: 授权信息
3788
+ # @type Authentications: Array
3789
+ # @param FailedAction: TaskInstance失败后处理方式,取值包括TERMINATE(默认)、INTERRUPT、FAST_INTERRUPT。
3790
+ # @type FailedAction: String
3791
+ # @param MaxRetryCount: 任务失败后的最大重试次数,默认为0
3792
+ # @type MaxRetryCount: Integer
3793
+ # @param Timeout: 任务启动后的超时时间,单位秒,默认为86400秒
3794
+ # @type Timeout: Integer
3795
+ # @param MaxConcurrentNum: 任务最大并发数限制,默认没有限制。
3796
+ # @type MaxConcurrentNum: Integer
3797
+ # @param RestartComputeNode: 任务完成后,重启计算节点。适用于指定计算环境执行任务。
3798
+ # @type RestartComputeNode: Boolean
3799
+ # @param ResourceMaxRetryCount: 启动任务过程中,创建计算资源如CVM失败后的最大重试次数,默认为0。
3800
+ # @type ResourceMaxRetryCount: Integer
3801
+
3802
+ attr_accessor :Application, :TaskName, :TaskInstanceNum, :ComputeEnv, :EnvId, :RedirectInfo, :RedirectLocalInfo, :InputMappings, :OutputMappings, :OutputMappingConfigs, :EnvVars, :Authentications, :FailedAction, :MaxRetryCount, :Timeout, :MaxConcurrentNum, :RestartComputeNode, :ResourceMaxRetryCount
3803
+
3804
+ def initialize(application=nil, taskname=nil, taskinstancenum=nil, computeenv=nil, envid=nil, redirectinfo=nil, redirectlocalinfo=nil, inputmappings=nil, outputmappings=nil, outputmappingconfigs=nil, envvars=nil, authentications=nil, failedaction=nil, maxretrycount=nil, timeout=nil, maxconcurrentnum=nil, restartcomputenode=nil, resourcemaxretrycount=nil)
3805
+ @Application = application
3806
+ @TaskName = taskname
3807
+ @TaskInstanceNum = taskinstancenum
3808
+ @ComputeEnv = computeenv
3809
+ @EnvId = envid
3810
+ @RedirectInfo = redirectinfo
3811
+ @RedirectLocalInfo = redirectlocalinfo
3812
+ @InputMappings = inputmappings
3813
+ @OutputMappings = outputmappings
3814
+ @OutputMappingConfigs = outputmappingconfigs
3815
+ @EnvVars = envvars
3816
+ @Authentications = authentications
3817
+ @FailedAction = failedaction
3818
+ @MaxRetryCount = maxretrycount
3819
+ @Timeout = timeout
3820
+ @MaxConcurrentNum = maxconcurrentnum
3821
+ @RestartComputeNode = restartcomputenode
3822
+ @ResourceMaxRetryCount = resourcemaxretrycount
3823
+ end
3824
+
3825
+ def deserialize(params)
3826
+ unless params['Application'].nil?
3827
+ @Application = Application.new
3828
+ @Application.deserialize(params['Application'])
3829
+ end
3830
+ @TaskName = params['TaskName']
3831
+ @TaskInstanceNum = params['TaskInstanceNum']
3832
+ unless params['ComputeEnv'].nil?
3833
+ @ComputeEnv = AnonymousComputeEnv.new
3834
+ @ComputeEnv.deserialize(params['ComputeEnv'])
3835
+ end
3836
+ @EnvId = params['EnvId']
3837
+ unless params['RedirectInfo'].nil?
3838
+ @RedirectInfo = RedirectInfo.new
3839
+ @RedirectInfo.deserialize(params['RedirectInfo'])
3840
+ end
3841
+ unless params['RedirectLocalInfo'].nil?
3842
+ @RedirectLocalInfo = RedirectLocalInfo.new
3843
+ @RedirectLocalInfo.deserialize(params['RedirectLocalInfo'])
3844
+ end
3845
+ unless params['InputMappings'].nil?
3846
+ @InputMappings = []
3847
+ params['InputMappings'].each do |i|
3848
+ inputmapping_tmp = InputMapping.new
3849
+ inputmapping_tmp.deserialize(i)
3850
+ @InputMappings << inputmapping_tmp
3851
+ end
3852
+ end
3853
+ unless params['OutputMappings'].nil?
3854
+ @OutputMappings = []
3855
+ params['OutputMappings'].each do |i|
3856
+ outputmapping_tmp = OutputMapping.new
3857
+ outputmapping_tmp.deserialize(i)
3858
+ @OutputMappings << outputmapping_tmp
3859
+ end
3860
+ end
3861
+ unless params['OutputMappingConfigs'].nil?
3862
+ @OutputMappingConfigs = []
3863
+ params['OutputMappingConfigs'].each do |i|
3864
+ outputmappingconfig_tmp = OutputMappingConfig.new
3865
+ outputmappingconfig_tmp.deserialize(i)
3866
+ @OutputMappingConfigs << outputmappingconfig_tmp
3867
+ end
3868
+ end
3869
+ unless params['EnvVars'].nil?
3870
+ @EnvVars = []
3871
+ params['EnvVars'].each do |i|
3872
+ envvar_tmp = EnvVar.new
3873
+ envvar_tmp.deserialize(i)
3874
+ @EnvVars << envvar_tmp
3875
+ end
3876
+ end
3877
+ unless params['Authentications'].nil?
3878
+ @Authentications = []
3879
+ params['Authentications'].each do |i|
3880
+ authentication_tmp = Authentication.new
3881
+ authentication_tmp.deserialize(i)
3882
+ @Authentications << authentication_tmp
3883
+ end
3884
+ end
3885
+ @FailedAction = params['FailedAction']
3886
+ @MaxRetryCount = params['MaxRetryCount']
3887
+ @Timeout = params['Timeout']
3888
+ @MaxConcurrentNum = params['MaxConcurrentNum']
3889
+ @RestartComputeNode = params['RestartComputeNode']
3890
+ @ResourceMaxRetryCount = params['ResourceMaxRetryCount']
3891
+ end
3892
+ end
3893
+
3894
+ # 任务实例日志详情。
3895
+ class TaskInstanceLog < TencentCloud::Common::AbstractModel
3896
+ # @param TaskInstanceIndex: 任务实例
3897
+ # @type TaskInstanceIndex: Integer
3898
+ # @param StdoutLog: 标准输出日志(Base64编码,解码后最大日志长度2048字节)
3899
+ # 注意:此字段可能返回 null,表示取不到有效值。
3900
+ # @type StdoutLog: String
3901
+ # @param StderrLog: 标准错误日志(Base64编码,解码后最大日志长度2048字节)
3902
+ # 注意:此字段可能返回 null,表示取不到有效值。
3903
+ # @type StderrLog: String
3904
+ # @param StdoutRedirectPath: 标准输出重定向路径
3905
+ # 注意:此字段可能返回 null,表示取不到有效值。
3906
+ # @type StdoutRedirectPath: String
3907
+ # @param StderrRedirectPath: 标准错误重定向路径
3908
+ # 注意:此字段可能返回 null,表示取不到有效值。
3909
+ # @type StderrRedirectPath: String
3910
+ # @param StdoutRedirectFileName: 标准输出重定向文件名
3911
+ # 注意:此字段可能返回 null,表示取不到有效值。
3912
+ # @type StdoutRedirectFileName: String
3913
+ # @param StderrRedirectFileName: 标准错误重定向文件名
3914
+ # 注意:此字段可能返回 null,表示取不到有效值。
3915
+ # @type StderrRedirectFileName: String
3916
+
3917
+ attr_accessor :TaskInstanceIndex, :StdoutLog, :StderrLog, :StdoutRedirectPath, :StderrRedirectPath, :StdoutRedirectFileName, :StderrRedirectFileName
3918
+
3919
+ def initialize(taskinstanceindex=nil, stdoutlog=nil, stderrlog=nil, stdoutredirectpath=nil, stderrredirectpath=nil, stdoutredirectfilename=nil, stderrredirectfilename=nil)
3920
+ @TaskInstanceIndex = taskinstanceindex
3921
+ @StdoutLog = stdoutlog
3922
+ @StderrLog = stderrlog
3923
+ @StdoutRedirectPath = stdoutredirectpath
3924
+ @StderrRedirectPath = stderrredirectpath
3925
+ @StdoutRedirectFileName = stdoutredirectfilename
3926
+ @StderrRedirectFileName = stderrredirectfilename
3927
+ end
3928
+
3929
+ def deserialize(params)
3930
+ @TaskInstanceIndex = params['TaskInstanceIndex']
3931
+ @StdoutLog = params['StdoutLog']
3932
+ @StderrLog = params['StderrLog']
3933
+ @StdoutRedirectPath = params['StdoutRedirectPath']
3934
+ @StderrRedirectPath = params['StderrRedirectPath']
3935
+ @StdoutRedirectFileName = params['StdoutRedirectFileName']
3936
+ @StderrRedirectFileName = params['StderrRedirectFileName']
3937
+ end
3938
+ end
3939
+
3940
+ # 任务实例统计指标
3941
+ class TaskInstanceMetrics < TencentCloud::Common::AbstractModel
3942
+ # @param SubmittedCount: Submitted个数
3943
+ # @type SubmittedCount: Integer
3944
+ # @param PendingCount: Pending个数
3945
+ # @type PendingCount: Integer
3946
+ # @param RunnableCount: Runnable个数
3947
+ # @type RunnableCount: Integer
3948
+ # @param StartingCount: Starting个数
3949
+ # @type StartingCount: Integer
3950
+ # @param RunningCount: Running个数
3951
+ # @type RunningCount: Integer
3952
+ # @param SucceedCount: Succeed个数
3953
+ # @type SucceedCount: Integer
3954
+ # @param FailedInterruptedCount: FailedInterrupted个数
3955
+ # @type FailedInterruptedCount: Integer
3956
+ # @param FailedCount: Failed个数
3957
+ # @type FailedCount: Integer
3958
+
3959
+ attr_accessor :SubmittedCount, :PendingCount, :RunnableCount, :StartingCount, :RunningCount, :SucceedCount, :FailedInterruptedCount, :FailedCount
3960
+
3961
+ def initialize(submittedcount=nil, pendingcount=nil, runnablecount=nil, startingcount=nil, runningcount=nil, succeedcount=nil, failedinterruptedcount=nil, failedcount=nil)
3962
+ @SubmittedCount = submittedcount
3963
+ @PendingCount = pendingcount
3964
+ @RunnableCount = runnablecount
3965
+ @StartingCount = startingcount
3966
+ @RunningCount = runningcount
3967
+ @SucceedCount = succeedcount
3968
+ @FailedInterruptedCount = failedinterruptedcount
3969
+ @FailedCount = failedcount
3970
+ end
3971
+
3972
+ def deserialize(params)
3973
+ @SubmittedCount = params['SubmittedCount']
3974
+ @PendingCount = params['PendingCount']
3975
+ @RunnableCount = params['RunnableCount']
3976
+ @StartingCount = params['StartingCount']
3977
+ @RunningCount = params['RunningCount']
3978
+ @SucceedCount = params['SucceedCount']
3979
+ @FailedInterruptedCount = params['FailedInterruptedCount']
3980
+ @FailedCount = params['FailedCount']
3981
+ end
3982
+ end
3983
+
3984
+ # 任务实例视图信息
3985
+ class TaskInstanceView < TencentCloud::Common::AbstractModel
3986
+ # @param TaskInstanceIndex: 任务实例索引
3987
+ # @type TaskInstanceIndex: Integer
3988
+ # @param TaskInstanceState: 任务实例状态
3989
+ # @type TaskInstanceState: String
3990
+ # @param ExitCode: 应用程序执行结束的exit code
3991
+ # 注意:此字段可能返回 null,表示取不到有效值。
3992
+ # @type ExitCode: Integer
3993
+ # @param StateReason: 任务实例状态原因,任务实例失败时,会记录失败原因
3994
+ # @type StateReason: String
3995
+ # @param ComputeNodeInstanceId: 任务实例运行时所在计算节点(例如CVM)的InstanceId。任务实例未运行或者完结时,本字段为空。任务实例重试时,本字段会随之变化
3996
+ # 注意:此字段可能返回 null,表示取不到有效值。
3997
+ # @type ComputeNodeInstanceId: String
3998
+ # @param CreateTime: 创建时间
3999
+ # @type CreateTime: String
4000
+ # @param LaunchTime: 启动时间
4001
+ # 注意:此字段可能返回 null,表示取不到有效值。
4002
+ # @type LaunchTime: String
4003
+ # @param RunningTime: 开始运行时间
4004
+ # 注意:此字段可能返回 null,表示取不到有效值。
4005
+ # @type RunningTime: String
4006
+ # @param EndTime: 结束时间
4007
+ # 注意:此字段可能返回 null,表示取不到有效值。
4008
+ # @type EndTime: String
4009
+ # @param RedirectInfo: 重定向信息
4010
+ # @type RedirectInfo: :class:`Tencentcloud::Batch.v20170312.models.RedirectInfo`
4011
+ # @param StateDetailedReason: 任务实例状态原因详情,任务实例失败时,会记录失败原因
4012
+ # @type StateDetailedReason: String
4013
+
4014
+ attr_accessor :TaskInstanceIndex, :TaskInstanceState, :ExitCode, :StateReason, :ComputeNodeInstanceId, :CreateTime, :LaunchTime, :RunningTime, :EndTime, :RedirectInfo, :StateDetailedReason
4015
+
4016
+ def initialize(taskinstanceindex=nil, taskinstancestate=nil, exitcode=nil, statereason=nil, computenodeinstanceid=nil, createtime=nil, launchtime=nil, runningtime=nil, endtime=nil, redirectinfo=nil, statedetailedreason=nil)
4017
+ @TaskInstanceIndex = taskinstanceindex
4018
+ @TaskInstanceState = taskinstancestate
4019
+ @ExitCode = exitcode
4020
+ @StateReason = statereason
4021
+ @ComputeNodeInstanceId = computenodeinstanceid
4022
+ @CreateTime = createtime
4023
+ @LaunchTime = launchtime
4024
+ @RunningTime = runningtime
4025
+ @EndTime = endtime
4026
+ @RedirectInfo = redirectinfo
4027
+ @StateDetailedReason = statedetailedreason
4028
+ end
4029
+
4030
+ def deserialize(params)
4031
+ @TaskInstanceIndex = params['TaskInstanceIndex']
4032
+ @TaskInstanceState = params['TaskInstanceState']
4033
+ @ExitCode = params['ExitCode']
4034
+ @StateReason = params['StateReason']
4035
+ @ComputeNodeInstanceId = params['ComputeNodeInstanceId']
4036
+ @CreateTime = params['CreateTime']
4037
+ @LaunchTime = params['LaunchTime']
4038
+ @RunningTime = params['RunningTime']
4039
+ @EndTime = params['EndTime']
4040
+ unless params['RedirectInfo'].nil?
4041
+ @RedirectInfo = RedirectInfo.new
4042
+ @RedirectInfo.deserialize(params['RedirectInfo'])
4043
+ end
4044
+ @StateDetailedReason = params['StateDetailedReason']
4045
+ end
4046
+ end
4047
+
4048
+ # 任务统计指标
4049
+ class TaskMetrics < TencentCloud::Common::AbstractModel
4050
+ # @param SubmittedCount: Submitted个数
4051
+ # @type SubmittedCount: Integer
4052
+ # @param PendingCount: Pending个数
4053
+ # @type PendingCount: Integer
4054
+ # @param RunnableCount: Runnable个数
4055
+ # @type RunnableCount: Integer
4056
+ # @param StartingCount: Starting个数
4057
+ # @type StartingCount: Integer
4058
+ # @param RunningCount: Running个数
4059
+ # @type RunningCount: Integer
4060
+ # @param SucceedCount: Succeed个数
4061
+ # @type SucceedCount: Integer
4062
+ # @param FailedInterruptedCount: FailedInterrupted个数
4063
+ # @type FailedInterruptedCount: Integer
4064
+ # @param FailedCount: Failed个数
4065
+ # @type FailedCount: Integer
4066
+
4067
+ attr_accessor :SubmittedCount, :PendingCount, :RunnableCount, :StartingCount, :RunningCount, :SucceedCount, :FailedInterruptedCount, :FailedCount
4068
+
4069
+ def initialize(submittedcount=nil, pendingcount=nil, runnablecount=nil, startingcount=nil, runningcount=nil, succeedcount=nil, failedinterruptedcount=nil, failedcount=nil)
4070
+ @SubmittedCount = submittedcount
4071
+ @PendingCount = pendingcount
4072
+ @RunnableCount = runnablecount
4073
+ @StartingCount = startingcount
4074
+ @RunningCount = runningcount
4075
+ @SucceedCount = succeedcount
4076
+ @FailedInterruptedCount = failedinterruptedcount
4077
+ @FailedCount = failedcount
4078
+ end
4079
+
4080
+ def deserialize(params)
4081
+ @SubmittedCount = params['SubmittedCount']
4082
+ @PendingCount = params['PendingCount']
4083
+ @RunnableCount = params['RunnableCount']
4084
+ @StartingCount = params['StartingCount']
4085
+ @RunningCount = params['RunningCount']
4086
+ @SucceedCount = params['SucceedCount']
4087
+ @FailedInterruptedCount = params['FailedInterruptedCount']
4088
+ @FailedCount = params['FailedCount']
4089
+ end
4090
+ end
4091
+
4092
+ # 任务模板信息
4093
+ class TaskTemplateView < TencentCloud::Common::AbstractModel
4094
+ # @param TaskTemplateId: 任务模板ID
4095
+ # @type TaskTemplateId: String
4096
+ # @param TaskTemplateName: 任务模板名称
4097
+ # @type TaskTemplateName: String
4098
+ # @param TaskTemplateDescription: 任务模板描述
4099
+ # @type TaskTemplateDescription: String
4100
+ # @param TaskTemplateInfo: 任务模板信息
4101
+ # @type TaskTemplateInfo: :class:`Tencentcloud::Batch.v20170312.models.Task`
4102
+ # @param CreateTime: 创建时间
4103
+ # @type CreateTime: String
4104
+ # @param Tags: 任务模板绑定的标签列表。
4105
+ # 注意:此字段可能返回 null,表示取不到有效值。
4106
+ # @type Tags: Array
4107
+
4108
+ attr_accessor :TaskTemplateId, :TaskTemplateName, :TaskTemplateDescription, :TaskTemplateInfo, :CreateTime, :Tags
4109
+
4110
+ def initialize(tasktemplateid=nil, tasktemplatename=nil, tasktemplatedescription=nil, tasktemplateinfo=nil, createtime=nil, tags=nil)
4111
+ @TaskTemplateId = tasktemplateid
4112
+ @TaskTemplateName = tasktemplatename
4113
+ @TaskTemplateDescription = tasktemplatedescription
4114
+ @TaskTemplateInfo = tasktemplateinfo
4115
+ @CreateTime = createtime
4116
+ @Tags = tags
4117
+ end
4118
+
4119
+ def deserialize(params)
4120
+ @TaskTemplateId = params['TaskTemplateId']
4121
+ @TaskTemplateName = params['TaskTemplateName']
4122
+ @TaskTemplateDescription = params['TaskTemplateDescription']
4123
+ unless params['TaskTemplateInfo'].nil?
4124
+ @TaskTemplateInfo = Task.new
4125
+ @TaskTemplateInfo.deserialize(params['TaskTemplateInfo'])
4126
+ end
4127
+ @CreateTime = params['CreateTime']
4128
+ unless params['Tags'].nil?
4129
+ @Tags = []
4130
+ params['Tags'].each do |i|
4131
+ tag_tmp = Tag.new
4132
+ tag_tmp.deserialize(i)
4133
+ @Tags << tag_tmp
4134
+ end
4135
+ end
4136
+ end
4137
+ end
4138
+
4139
+ # 任务视图信息
4140
+ class TaskView < TencentCloud::Common::AbstractModel
4141
+ # @param TaskName: 任务名称
4142
+ # @type TaskName: String
4143
+ # @param TaskState: 任务状态
4144
+ # @type TaskState: String
4145
+ # @param CreateTime: 开始时间
4146
+ # @type CreateTime: String
4147
+ # @param EndTime: 结束时间
4148
+ # 注意:此字段可能返回 null,表示取不到有效值。
4149
+ # @type EndTime: String
4150
+
4151
+ attr_accessor :TaskName, :TaskState, :CreateTime, :EndTime
4152
+
4153
+ def initialize(taskname=nil, taskstate=nil, createtime=nil, endtime=nil)
4154
+ @TaskName = taskname
4155
+ @TaskState = taskstate
4156
+ @CreateTime = createtime
4157
+ @EndTime = endtime
4158
+ end
4159
+
4160
+ def deserialize(params)
4161
+ @TaskName = params['TaskName']
4162
+ @TaskState = params['TaskState']
4163
+ @CreateTime = params['CreateTime']
4164
+ @EndTime = params['EndTime']
4165
+ end
4166
+ end
4167
+
4168
+ # TerminateComputeNode请求参数结构体
4169
+ class TerminateComputeNodeRequest < TencentCloud::Common::AbstractModel
4170
+ # @param EnvId: 计算环境ID
4171
+ # @type EnvId: String
4172
+ # @param ComputeNodeId: 计算节点ID
4173
+ # @type ComputeNodeId: String
4174
+
4175
+ attr_accessor :EnvId, :ComputeNodeId
4176
+
4177
+ def initialize(envid=nil, computenodeid=nil)
4178
+ @EnvId = envid
4179
+ @ComputeNodeId = computenodeid
4180
+ end
4181
+
4182
+ def deserialize(params)
4183
+ @EnvId = params['EnvId']
4184
+ @ComputeNodeId = params['ComputeNodeId']
4185
+ end
4186
+ end
4187
+
4188
+ # TerminateComputeNode返回参数结构体
4189
+ class TerminateComputeNodeResponse < TencentCloud::Common::AbstractModel
4190
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4191
+ # @type RequestId: String
4192
+
4193
+ attr_accessor :RequestId
4194
+
4195
+ def initialize(requestid=nil)
4196
+ @RequestId = requestid
4197
+ end
4198
+
4199
+ def deserialize(params)
4200
+ @RequestId = params['RequestId']
4201
+ end
4202
+ end
4203
+
4204
+ # TerminateComputeNodes请求参数结构体
4205
+ class TerminateComputeNodesRequest < TencentCloud::Common::AbstractModel
4206
+ # @param EnvId: 计算环境ID
4207
+ # @type EnvId: String
4208
+ # @param ComputeNodeIds: 计算节点ID列表
4209
+ # @type ComputeNodeIds: Array
4210
+
4211
+ attr_accessor :EnvId, :ComputeNodeIds
4212
+
4213
+ def initialize(envid=nil, computenodeids=nil)
4214
+ @EnvId = envid
4215
+ @ComputeNodeIds = computenodeids
4216
+ end
4217
+
4218
+ def deserialize(params)
4219
+ @EnvId = params['EnvId']
4220
+ @ComputeNodeIds = params['ComputeNodeIds']
4221
+ end
4222
+ end
4223
+
4224
+ # TerminateComputeNodes返回参数结构体
4225
+ class TerminateComputeNodesResponse < TencentCloud::Common::AbstractModel
4226
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4227
+ # @type RequestId: String
4228
+
4229
+ attr_accessor :RequestId
4230
+
4231
+ def initialize(requestid=nil)
4232
+ @RequestId = requestid
4233
+ end
4234
+
4235
+ def deserialize(params)
4236
+ @RequestId = params['RequestId']
4237
+ end
4238
+ end
4239
+
4240
+ # TerminateJob请求参数结构体
4241
+ class TerminateJobRequest < TencentCloud::Common::AbstractModel
4242
+ # @param JobId: 作业ID
4243
+ # @type JobId: String
4244
+
4245
+ attr_accessor :JobId
4246
+
4247
+ def initialize(jobid=nil)
4248
+ @JobId = jobid
4249
+ end
4250
+
4251
+ def deserialize(params)
4252
+ @JobId = params['JobId']
4253
+ end
4254
+ end
4255
+
4256
+ # TerminateJob返回参数结构体
4257
+ class TerminateJobResponse < TencentCloud::Common::AbstractModel
4258
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4259
+ # @type RequestId: String
4260
+
4261
+ attr_accessor :RequestId
4262
+
4263
+ def initialize(requestid=nil)
4264
+ @RequestId = requestid
4265
+ end
4266
+
4267
+ def deserialize(params)
4268
+ @RequestId = params['RequestId']
4269
+ end
4270
+ end
4271
+
4272
+ # TerminateTaskInstance请求参数结构体
4273
+ class TerminateTaskInstanceRequest < TencentCloud::Common::AbstractModel
4274
+ # @param JobId: 作业ID
4275
+ # @type JobId: String
4276
+ # @param TaskName: 任务名称
4277
+ # @type TaskName: String
4278
+ # @param TaskInstanceIndex: 任务实例索引
4279
+ # @type TaskInstanceIndex: Integer
4280
+
4281
+ attr_accessor :JobId, :TaskName, :TaskInstanceIndex
4282
+
4283
+ def initialize(jobid=nil, taskname=nil, taskinstanceindex=nil)
4284
+ @JobId = jobid
4285
+ @TaskName = taskname
4286
+ @TaskInstanceIndex = taskinstanceindex
4287
+ end
4288
+
4289
+ def deserialize(params)
4290
+ @JobId = params['JobId']
4291
+ @TaskName = params['TaskName']
4292
+ @TaskInstanceIndex = params['TaskInstanceIndex']
4293
+ end
4294
+ end
4295
+
4296
+ # TerminateTaskInstance返回参数结构体
4297
+ class TerminateTaskInstanceResponse < TencentCloud::Common::AbstractModel
4298
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4299
+ # @type RequestId: String
4300
+
4301
+ attr_accessor :RequestId
4302
+
4303
+ def initialize(requestid=nil)
4304
+ @RequestId = requestid
4305
+ end
4306
+
4307
+ def deserialize(params)
4308
+ @RequestId = params['RequestId']
4309
+ end
4310
+ end
4311
+
4312
+ # 描述了VPC相关信息,包括子网,IP信息等
4313
+ class VirtualPrivateCloud < TencentCloud::Common::AbstractModel
4314
+ # @param VpcId: 私有网络ID,形如`vpc-xxx`。有效的VpcId可通过登录[控制台](https://console.cloud.tencent.com/vpc/vpc?rid=1)查询;也可以调用接口 [DescribeVpcEx](/document/api/215/1372) ,从接口返回中的`unVpcId`字段获取。若在创建子机时VpcId与SubnetId同时传入`DEFAULT`,则强制使用默认vpc网络。
4315
+ # @type VpcId: String
4316
+ # @param SubnetId: 私有网络子网ID,形如`subnet-xxx`。有效的私有网络子网ID可通过登录[控制台](https://console.cloud.tencent.com/vpc/subnet?rid=1)查询;也可以调用接口 [DescribeSubnets](/document/api/215/15784) ,从接口返回中的`unSubnetId`字段获取。若在创建子机时SubnetId与VpcId同时传入`DEFAULT`,则强制使用默认vpc网络。
4317
+ # @type SubnetId: String
4318
+ # @param AsVpcGateway: 是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<br><li>TRUE:表示用作公网网关<br><li>FALSE:表示不作为公网网关<br><br>默认取值:FALSE。
4319
+ # @type AsVpcGateway: Boolean
4320
+ # @param PrivateIpAddresses: 私有网络子网 IP 数组,在创建实例、修改实例vpc属性操作中可使用此参数。当前仅批量创建多台实例时支持传入相同子网的多个 IP。
4321
+ # @type PrivateIpAddresses: Array
4322
+ # @param Ipv6AddressCount: 为弹性网卡指定随机生成的 IPv6 地址数量。
4323
+ # @type Ipv6AddressCount: Integer
4324
+
4325
+ attr_accessor :VpcId, :SubnetId, :AsVpcGateway, :PrivateIpAddresses, :Ipv6AddressCount
4326
+
4327
+ def initialize(vpcid=nil, subnetid=nil, asvpcgateway=nil, privateipaddresses=nil, ipv6addresscount=nil)
4328
+ @VpcId = vpcid
4329
+ @SubnetId = subnetid
4330
+ @AsVpcGateway = asvpcgateway
4331
+ @PrivateIpAddresses = privateipaddresses
4332
+ @Ipv6AddressCount = ipv6addresscount
4333
+ end
4334
+
4335
+ def deserialize(params)
4336
+ @VpcId = params['VpcId']
4337
+ @SubnetId = params['SubnetId']
4338
+ @AsVpcGateway = params['AsVpcGateway']
4339
+ @PrivateIpAddresses = params['PrivateIpAddresses']
4340
+ @Ipv6AddressCount = params['Ipv6AddressCount']
4341
+ end
4342
+ end
4343
+
4344
+ end
4345
+ end
4346
+ end
4347
+