tencentcloud-sdk-thpc 3.0.1094 → 3.0.1132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b779f5e006c4b9ef0d01659b55a70262377144ac
4
- data.tar.gz: 20fd14543d44d7e0312b73717f914371b3a1a7e0
3
+ metadata.gz: db1e8e24c19b53eb77cc6d06978e6e1195234d71
4
+ data.tar.gz: 5b277d8850485e6a4a843b6aac4e098e5c913ff7
5
5
  SHA512:
6
- metadata.gz: 7a00b525f119e58c511b58b0e9161456eb31198c06d0c0472b63b2528ab1d370a26539336032138beae5931ddec964291544ac52f1fe824fa19895b951ea84fd
7
- data.tar.gz: 2c870f800020682c78ae5067e87a7b1248b69d89b0b4664db65c025719b967b6b656a69cd3947a13edbc92fb174073ae2c9232788e19e94f3ccb557b01077147
6
+ metadata.gz: 26c22612fdc8ccfe326d7c6ef261083c6357c29e7dbb874b7a5f889b1d9dbe1de09241efecfe39eef7a11de951723044f2a2d76ba0a9bcbbf6f4746b7ff494a3
7
+ data.tar.gz: 2ddf32565e5126374dd23daffbc7ac6a7e54d064e57185b7e783a58ac135564fc76316a5037c06e5e19aa21fa6c67eacdc384f3b808a3df69b2ae1336fc57404
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1094
1
+ 3.0.1132
@@ -225,6 +225,30 @@ module TencentCloud
225
225
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
226
226
  end
227
227
 
228
+ # 本接口 (DeleteJob) 用于删除一个作业任务。
229
+
230
+ # @param request: Request instance for DeleteJob.
231
+ # @type request: :class:`Tencentcloud::thpc::V20230321::DeleteJobRequest`
232
+ # @rtype: :class:`Tencentcloud::thpc::V20230321::DeleteJobResponse`
233
+ def DeleteJob(request)
234
+ body = send_request('DeleteJob', request.serialize)
235
+ response = JSON.parse(body)
236
+ if response['Response'].key?('Error') == false
237
+ model = DeleteJobResponse.new
238
+ model.deserialize(response['Response'])
239
+ model
240
+ else
241
+ code = response['Response']['Error']['Code']
242
+ message = response['Response']['Error']['Message']
243
+ reqid = response['Response']['RequestId']
244
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
245
+ end
246
+ rescue TencentCloud::Common::TencentCloudSDKException => e
247
+ raise e
248
+ rescue StandardError => e
249
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
250
+ end
251
+
228
252
  # 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
229
253
 
230
254
  # @param request: Request instance for DeleteNodes.
@@ -396,6 +420,78 @@ module TencentCloud
396
420
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
397
421
  end
398
422
 
423
+ # 本接口用于查询作业的提交信息。
424
+
425
+ # @param request: Request instance for DescribeJobSubmitInfo.
426
+ # @type request: :class:`Tencentcloud::thpc::V20230321::DescribeJobSubmitInfoRequest`
427
+ # @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeJobSubmitInfoResponse`
428
+ def DescribeJobSubmitInfo(request)
429
+ body = send_request('DescribeJobSubmitInfo', request.serialize)
430
+ response = JSON.parse(body)
431
+ if response['Response'].key?('Error') == false
432
+ model = DescribeJobSubmitInfoResponse.new
433
+ model.deserialize(response['Response'])
434
+ model
435
+ else
436
+ code = response['Response']['Error']['Code']
437
+ message = response['Response']['Error']['Message']
438
+ reqid = response['Response']['RequestId']
439
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
440
+ end
441
+ rescue TencentCloud::Common::TencentCloudSDKException => e
442
+ raise e
443
+ rescue StandardError => e
444
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
445
+ end
446
+
447
+ # 本接口 (DescribeJobs) 用于查询作业任务列表信息。
448
+
449
+ # @param request: Request instance for DescribeJobs.
450
+ # @type request: :class:`Tencentcloud::thpc::V20230321::DescribeJobsRequest`
451
+ # @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeJobsResponse`
452
+ def DescribeJobs(request)
453
+ body = send_request('DescribeJobs', request.serialize)
454
+ response = JSON.parse(body)
455
+ if response['Response'].key?('Error') == false
456
+ model = DescribeJobsResponse.new
457
+ model.deserialize(response['Response'])
458
+ model
459
+ else
460
+ code = response['Response']['Error']['Code']
461
+ message = response['Response']['Error']['Message']
462
+ reqid = response['Response']['RequestId']
463
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
464
+ end
465
+ rescue TencentCloud::Common::TencentCloudSDKException => e
466
+ raise e
467
+ rescue StandardError => e
468
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
469
+ end
470
+
471
+ # 本接口 (DescribeJobs) 用于查询作业任务列表信息。
472
+
473
+ # @param request: Request instance for DescribeJobsOverview.
474
+ # @type request: :class:`Tencentcloud::thpc::V20230321::DescribeJobsOverviewRequest`
475
+ # @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeJobsOverviewResponse`
476
+ def DescribeJobsOverview(request)
477
+ body = send_request('DescribeJobsOverview', request.serialize)
478
+ response = JSON.parse(body)
479
+ if response['Response'].key?('Error') == false
480
+ model = DescribeJobsOverviewResponse.new
481
+ model.deserialize(response['Response'])
482
+ model
483
+ else
484
+ code = response['Response']['Error']['Code']
485
+ message = response['Response']['Error']['Message']
486
+ reqid = response['Response']['RequestId']
487
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
488
+ end
489
+ rescue TencentCloud::Common::TencentCloudSDKException => e
490
+ raise e
491
+ rescue StandardError => e
492
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
493
+ end
494
+
399
495
  # 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
400
496
 
401
497
  # @param request: Request instance for DescribeNodes.
@@ -588,6 +684,54 @@ module TencentCloud
588
684
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
589
685
  end
590
686
 
687
+ # 本接口 (SubmitJob) 用于提交一个作业任务。
688
+
689
+ # @param request: Request instance for SubmitJob.
690
+ # @type request: :class:`Tencentcloud::thpc::V20230321::SubmitJobRequest`
691
+ # @rtype: :class:`Tencentcloud::thpc::V20230321::SubmitJobResponse`
692
+ def SubmitJob(request)
693
+ body = send_request('SubmitJob', request.serialize)
694
+ response = JSON.parse(body)
695
+ if response['Response'].key?('Error') == false
696
+ model = SubmitJobResponse.new
697
+ model.deserialize(response['Response'])
698
+ model
699
+ else
700
+ code = response['Response']['Error']['Code']
701
+ message = response['Response']['Error']['Message']
702
+ reqid = response['Response']['RequestId']
703
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
704
+ end
705
+ rescue TencentCloud::Common::TencentCloudSDKException => e
706
+ raise e
707
+ rescue StandardError => e
708
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
709
+ end
710
+
711
+ # 本接口 (TerminateJob) 用于终止一个作业任务。
712
+
713
+ # @param request: Request instance for TerminateJob.
714
+ # @type request: :class:`Tencentcloud::thpc::V20230321::TerminateJobRequest`
715
+ # @rtype: :class:`Tencentcloud::thpc::V20230321::TerminateJobResponse`
716
+ def TerminateJob(request)
717
+ body = send_request('TerminateJob', request.serialize)
718
+ response = JSON.parse(body)
719
+ if response['Response'].key?('Error') == false
720
+ model = TerminateJobResponse.new
721
+ model.deserialize(response['Response'])
722
+ model
723
+ else
724
+ code = response['Response']['Error']['Code']
725
+ message = response['Response']['Error']['Message']
726
+ reqid = response['Response']['RequestId']
727
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
728
+ end
729
+ rescue TencentCloud::Common::TencentCloudSDKException => e
730
+ raise e
731
+ rescue StandardError => e
732
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
733
+ end
734
+
591
735
  # 本接口 (TerminateWorkspaces) 用于主动退还工作空间。
592
736
 
593
737
  # @param request: Request instance for TerminateWorkspaces.
@@ -235,6 +235,74 @@ module TencentCloud
235
235
  end
236
236
  end
237
237
 
238
+ # 任务的应用环境配置信息。
239
+ class Application < TencentCloud::Common::AbstractModel
240
+ # @param Commands: 待执行脚本命令。
241
+ # @type Commands: Array
242
+ # @param StorageMounts: 存储目录挂载配置。
243
+ # @type StorageMounts: Array
244
+ # @param EnvVars: 用户自定义环境变量。
245
+ # @type EnvVars: Array
246
+ # @param Docker: 容器配置信息。
247
+ # @type Docker: :class:`Tencentcloud::Thpc.v20230321.models.Docker`
248
+ # @param OutputRedirect: 无
249
+ # @type OutputRedirect: :class:`Tencentcloud::Thpc.v20230321.models.OutputRedirect`
250
+ # @param JobType: 表示所选训练框架,支持可选参数
251
+
252
+ # - PyTorch:表示提交PyTorch训练作业
253
+ # - Custom:表示用户自定义作业
254
+
255
+ # 默认参数为:Custom
256
+ # @type JobType: String
257
+
258
+ attr_accessor :Commands, :StorageMounts, :EnvVars, :Docker, :OutputRedirect, :JobType
259
+
260
+ def initialize(commands=nil, storagemounts=nil, envvars=nil, docker=nil, outputredirect=nil, jobtype=nil)
261
+ @Commands = commands
262
+ @StorageMounts = storagemounts
263
+ @EnvVars = envvars
264
+ @Docker = docker
265
+ @OutputRedirect = outputredirect
266
+ @JobType = jobtype
267
+ end
268
+
269
+ def deserialize(params)
270
+ unless params['Commands'].nil?
271
+ @Commands = []
272
+ params['Commands'].each do |i|
273
+ commanditem_tmp = CommandItem.new
274
+ commanditem_tmp.deserialize(i)
275
+ @Commands << commanditem_tmp
276
+ end
277
+ end
278
+ unless params['StorageMounts'].nil?
279
+ @StorageMounts = []
280
+ params['StorageMounts'].each do |i|
281
+ storagemount_tmp = StorageMount.new
282
+ storagemount_tmp.deserialize(i)
283
+ @StorageMounts << storagemount_tmp
284
+ end
285
+ end
286
+ unless params['EnvVars'].nil?
287
+ @EnvVars = []
288
+ params['EnvVars'].each do |i|
289
+ envvar_tmp = EnvVar.new
290
+ envvar_tmp.deserialize(i)
291
+ @EnvVars << envvar_tmp
292
+ end
293
+ end
294
+ unless params['Docker'].nil?
295
+ @Docker = Docker.new
296
+ @Docker.deserialize(params['Docker'])
297
+ end
298
+ unless params['OutputRedirect'].nil?
299
+ @OutputRedirect = OutputRedirect.new
300
+ @OutputRedirect.deserialize(params['OutputRedirect'])
301
+ end
302
+ @JobType = params['JobType']
303
+ end
304
+ end
305
+
238
306
  # AttachNodes请求参数结构体
239
307
  class AttachNodesRequest < TencentCloud::Common::AbstractModel
240
308
  # @param ClusterId: 集群id
@@ -290,28 +358,30 @@ module TencentCloud
290
358
  # @type LocalPath: String
291
359
  # @param RemotePath: 文件系统远程挂载ip及路径。
292
360
  # @type RemotePath: String
293
- # @param Protocol: 文件系统协议类型,默认值NFS 3.0。
294
- # <li>NFS 3.0
295
- # <li>NFS 4.0
296
- # <li>TURBO
361
+ # @param Protocol: 文件系统协议类型。
362
+ # <li>NFS 3.0</li>
363
+ # <li>NFS 4.0</li>
364
+ # <li>TURBO</li>
297
365
  # @type Protocol: String
298
366
  # @param StorageType: 文件系统存储类型,默认值SD;其中 SD 为通用标准型标准型存储, HP为通用性能型存储, TB为turbo标准型, TP 为turbo性能型。
299
367
  # @type StorageType: String
300
368
  # @param MountOption: 文件系统挂载挂载命令参数选项。
301
-
302
369
  # - NFS 3.0默认值:vers=3,nolock,proto=tcp,noresvport
303
370
  # - NFS 4.0默认值:vers=4.0,noresvport
304
371
  # - TURBO默认值:user_xattr
305
372
  # @type MountOption: String
373
+ # @param FileSystemId: 文件系统ID 文件系统ID通过调用接口[DescribeCfsFileSystems](https://cloud.tencent.com/document/product/582/38170)获取。
374
+ # @type FileSystemId: String
306
375
 
307
- attr_accessor :LocalPath, :RemotePath, :Protocol, :StorageType, :MountOption
376
+ attr_accessor :LocalPath, :RemotePath, :Protocol, :StorageType, :MountOption, :FileSystemId
308
377
 
309
- def initialize(localpath=nil, remotepath=nil, protocol=nil, storagetype=nil, mountoption=nil)
378
+ def initialize(localpath=nil, remotepath=nil, protocol=nil, storagetype=nil, mountoption=nil, filesystemid=nil)
310
379
  @LocalPath = localpath
311
380
  @RemotePath = remotepath
312
381
  @Protocol = protocol
313
382
  @StorageType = storagetype
314
383
  @MountOption = mountoption
384
+ @FileSystemId = filesystemid
315
385
  end
316
386
 
317
387
  def deserialize(params)
@@ -320,6 +390,7 @@ module TencentCloud
320
390
  @Protocol = params['Protocol']
321
391
  @StorageType = params['StorageType']
322
392
  @MountOption = params['MountOption']
393
+ @FileSystemId = params['FileSystemId']
323
394
  end
324
395
  end
325
396
 
@@ -522,6 +593,22 @@ module TencentCloud
522
593
  end
523
594
  end
524
595
 
596
+ # 任务执行命令脚本。
597
+ class CommandItem < TencentCloud::Common::AbstractModel
598
+ # @param Command: 脚本命令
599
+ # @type Command: String
600
+
601
+ attr_accessor :Command
602
+
603
+ def initialize(command=nil)
604
+ @Command = command
605
+ end
606
+
607
+ def deserialize(params)
608
+ @Command = params['Command']
609
+ end
610
+ end
611
+
525
612
  # 计算节点信息。
526
613
  class ComputeNode < TencentCloud::Common::AbstractModel
527
614
  # @param InstanceChargeType: 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:按小时后付费</li><li>SPOTPAID:竞价付费</li>默认值:POSTPAID_BY_HOUR。
@@ -1010,6 +1097,38 @@ module TencentCloud
1010
1097
  end
1011
1098
  end
1012
1099
 
1100
+ # DeleteJob请求参数结构体
1101
+ class DeleteJobRequest < TencentCloud::Common::AbstractModel
1102
+ # @param JobId: 作业任务ID
1103
+ # @type JobId: String
1104
+
1105
+ attr_accessor :JobId
1106
+
1107
+ def initialize(jobid=nil)
1108
+ @JobId = jobid
1109
+ end
1110
+
1111
+ def deserialize(params)
1112
+ @JobId = params['JobId']
1113
+ end
1114
+ end
1115
+
1116
+ # DeleteJob返回参数结构体
1117
+ class DeleteJobResponse < TencentCloud::Common::AbstractModel
1118
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1119
+ # @type RequestId: String
1120
+
1121
+ attr_accessor :RequestId
1122
+
1123
+ def initialize(requestid=nil)
1124
+ @RequestId = requestid
1125
+ end
1126
+
1127
+ def deserialize(params)
1128
+ @RequestId = params['RequestId']
1129
+ end
1130
+ end
1131
+
1013
1132
  # DeleteNodes请求参数结构体
1014
1133
  class DeleteNodesRequest < TencentCloud::Common::AbstractModel
1015
1134
  # @param ClusterId: 集群ID。
@@ -1347,6 +1466,146 @@ module TencentCloud
1347
1466
  end
1348
1467
  end
1349
1468
 
1469
+ # DescribeJobSubmitInfo请求参数结构体
1470
+ class DescribeJobSubmitInfoRequest < TencentCloud::Common::AbstractModel
1471
+ # @param JobId: 作业ID
1472
+ # @type JobId: String
1473
+
1474
+ attr_accessor :JobId
1475
+
1476
+ def initialize(jobid=nil)
1477
+ @JobId = jobid
1478
+ end
1479
+
1480
+ def deserialize(params)
1481
+ @JobId = params['JobId']
1482
+ end
1483
+ end
1484
+
1485
+ # DescribeJobSubmitInfo返回参数结构体
1486
+ class DescribeJobSubmitInfoResponse < TencentCloud::Common::AbstractModel
1487
+ # @param ClusterId: 集群ID
1488
+ # @type ClusterId: String
1489
+ # @param QueueName: 队列名称
1490
+ # @type QueueName: String
1491
+ # @param Job: 作业信息
1492
+ # @type Job: :class:`Tencentcloud::Thpc.v20230321.models.Job`
1493
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1494
+ # @type RequestId: String
1495
+
1496
+ attr_accessor :ClusterId, :QueueName, :Job, :RequestId
1497
+
1498
+ def initialize(clusterid=nil, queuename=nil, job=nil, requestid=nil)
1499
+ @ClusterId = clusterid
1500
+ @QueueName = queuename
1501
+ @Job = job
1502
+ @RequestId = requestid
1503
+ end
1504
+
1505
+ def deserialize(params)
1506
+ @ClusterId = params['ClusterId']
1507
+ @QueueName = params['QueueName']
1508
+ unless params['Job'].nil?
1509
+ @Job = Job.new
1510
+ @Job.deserialize(params['Job'])
1511
+ end
1512
+ @RequestId = params['RequestId']
1513
+ end
1514
+ end
1515
+
1516
+ # DescribeJobsOverview请求参数结构体
1517
+ class DescribeJobsOverviewRequest < TencentCloud::Common::AbstractModel
1518
+
1519
+
1520
+ def initialize()
1521
+ end
1522
+
1523
+ def deserialize(params)
1524
+ end
1525
+ end
1526
+
1527
+ # DescribeJobsOverview返回参数结构体
1528
+ class DescribeJobsOverviewResponse < TencentCloud::Common::AbstractModel
1529
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1530
+ # @type RequestId: String
1531
+
1532
+ attr_accessor :RequestId
1533
+
1534
+ def initialize(requestid=nil)
1535
+ @RequestId = requestid
1536
+ end
1537
+
1538
+ def deserialize(params)
1539
+ @RequestId = params['RequestId']
1540
+ end
1541
+ end
1542
+
1543
+ # DescribeJobs请求参数结构体
1544
+ class DescribeJobsRequest < TencentCloud::Common::AbstractModel
1545
+ # @param JobIds: 作业任务ID列表
1546
+ # @type JobIds: Array
1547
+ # @param Filters: 过滤列表
1548
+ # @type Filters: Array
1549
+ # @param Offset: 偏移量,默认为0。 关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
1550
+ # @type Offset: Integer
1551
+ # @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
1552
+ # @type Limit: Integer
1553
+
1554
+ attr_accessor :JobIds, :Filters, :Offset, :Limit
1555
+
1556
+ def initialize(jobids=nil, filters=nil, offset=nil, limit=nil)
1557
+ @JobIds = jobids
1558
+ @Filters = filters
1559
+ @Offset = offset
1560
+ @Limit = limit
1561
+ end
1562
+
1563
+ def deserialize(params)
1564
+ @JobIds = params['JobIds']
1565
+ unless params['Filters'].nil?
1566
+ @Filters = []
1567
+ params['Filters'].each do |i|
1568
+ filter_tmp = Filter.new
1569
+ filter_tmp.deserialize(i)
1570
+ @Filters << filter_tmp
1571
+ end
1572
+ end
1573
+ @Offset = params['Offset']
1574
+ @Limit = params['Limit']
1575
+ end
1576
+ end
1577
+
1578
+ # DescribeJobs返回参数结构体
1579
+ class DescribeJobsResponse < TencentCloud::Common::AbstractModel
1580
+ # @param JobSet: 作业任务概览列表
1581
+ # @type JobSet: Array
1582
+ # @param TotalCount: 符合条件的作业任务数量。
1583
+ # @type TotalCount: Integer
1584
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1585
+ # @type RequestId: String
1586
+
1587
+ attr_accessor :JobSet, :TotalCount, :RequestId
1588
+
1589
+ def initialize(jobset=nil, totalcount=nil, requestid=nil)
1590
+ @JobSet = jobset
1591
+ @TotalCount = totalcount
1592
+ @RequestId = requestid
1593
+ end
1594
+
1595
+ def deserialize(params)
1596
+ unless params['JobSet'].nil?
1597
+ @JobSet = []
1598
+ params['JobSet'].each do |i|
1599
+ jobview_tmp = JobView.new
1600
+ jobview_tmp.deserialize(i)
1601
+ @JobSet << jobview_tmp
1602
+ end
1603
+ end
1604
+ @TotalCount = params['TotalCount']
1605
+ @RequestId = params['RequestId']
1606
+ end
1607
+ end
1608
+
1350
1609
  # DescribeNodes请求参数结构体
1351
1610
  class DescribeNodesRequest < TencentCloud::Common::AbstractModel
1352
1611
  # @param ClusterId: 集群ID。
@@ -1587,6 +1846,26 @@ module TencentCloud
1587
1846
  end
1588
1847
  end
1589
1848
 
1849
+ # 容器配置信息。
1850
+ class Docker < TencentCloud::Common::AbstractModel
1851
+ # @param Image: 容器镜像地址
1852
+ # @type Image: String
1853
+ # @param RunArgs: 容器运行参数
1854
+ # @type RunArgs: Array
1855
+
1856
+ attr_accessor :Image, :RunArgs
1857
+
1858
+ def initialize(image=nil, runargs=nil)
1859
+ @Image = image
1860
+ @RunArgs = runargs
1861
+ end
1862
+
1863
+ def deserialize(params)
1864
+ @Image = params['Image']
1865
+ @RunArgs = params['RunArgs']
1866
+ end
1867
+ end
1868
+
1590
1869
  # 描述了实例的增强服务启用情况与其设置,如云安全,腾讯云可观测平台等实例 Agent
1591
1870
  class EnhancedService < TencentCloud::Common::AbstractModel
1592
1871
  # @param SecurityService: 开启云安全服务。若不指定该参数,则默认开启云安全服务。
@@ -1620,6 +1899,26 @@ module TencentCloud
1620
1899
  end
1621
1900
  end
1622
1901
 
1902
+ # 用户自定义环境变量。
1903
+ class EnvVar < TencentCloud::Common::AbstractModel
1904
+ # @param Name: ENV
1905
+ # @type Name: String
1906
+ # @param Value: test
1907
+ # @type Value: String
1908
+
1909
+ attr_accessor :Name, :Value
1910
+
1911
+ def initialize(name=nil, value=nil)
1912
+ @Name = name
1913
+ @Value = value
1914
+ end
1915
+
1916
+ def deserialize(params)
1917
+ @Name = params['Name']
1918
+ @Value = params['Value']
1919
+ end
1920
+ end
1921
+
1623
1922
  # 弹性扩容节点配置信息。
1624
1923
  class ExpansionNodeConfig < TencentCloud::Common::AbstractModel
1625
1924
  # @param Placement: 扩容实例所在的位置。
@@ -1909,6 +2208,105 @@ module TencentCloud
1909
2208
  end
1910
2209
  end
1911
2210
 
2211
+ # 提交Job作业信息
2212
+ class Job < TencentCloud::Common::AbstractModel
2213
+ # @param Tasks: 任务配置信息。
2214
+ # @type Tasks: Array
2215
+ # @param JobName: 作业名称。
2216
+ # @type JobName: String
2217
+ # @param JobDescription: 作业描述。
2218
+ # @type JobDescription: String
2219
+ # @param Priority: 作业优先级,数值越大,优先级越高,数值范围1~100。
2220
+ # @type Priority: Integer
2221
+ # @param TaskDependencies: 描述任务的依赖关系,DAG有向无环图。
2222
+ # @type TaskDependencies: Array
2223
+
2224
+ attr_accessor :Tasks, :JobName, :JobDescription, :Priority, :TaskDependencies
2225
+
2226
+ def initialize(tasks=nil, jobname=nil, jobdescription=nil, priority=nil, taskdependencies=nil)
2227
+ @Tasks = tasks
2228
+ @JobName = jobname
2229
+ @JobDescription = jobdescription
2230
+ @Priority = priority
2231
+ @TaskDependencies = taskdependencies
2232
+ end
2233
+
2234
+ def deserialize(params)
2235
+ unless params['Tasks'].nil?
2236
+ @Tasks = []
2237
+ params['Tasks'].each do |i|
2238
+ task_tmp = Task.new
2239
+ task_tmp.deserialize(i)
2240
+ @Tasks << task_tmp
2241
+ end
2242
+ end
2243
+ @JobName = params['JobName']
2244
+ @JobDescription = params['JobDescription']
2245
+ @Priority = params['Priority']
2246
+ unless params['TaskDependencies'].nil?
2247
+ @TaskDependencies = []
2248
+ params['TaskDependencies'].each do |i|
2249
+ taskdependence_tmp = TaskDependence.new
2250
+ taskdependence_tmp.deserialize(i)
2251
+ @TaskDependencies << taskdependence_tmp
2252
+ end
2253
+ end
2254
+ end
2255
+ end
2256
+
2257
+ # 作业概览信息
2258
+ class JobView < TencentCloud::Common::AbstractModel
2259
+ # @param JobId: 作业ID
2260
+ # @type JobId: String
2261
+ # @param JobName: 作业名称
2262
+ # @type JobName: String
2263
+ # @param JobDescription: 作业描述
2264
+ # @type JobDescription: String
2265
+ # @param Priority: 作业优先级
2266
+ # @type Priority: Integer
2267
+ # @param JobState: 作业状态,包括CREATED, QUEING, STARTNG, RUNING, TERMINATING, TERMINATED, SUCCESS,
2268
+ # FAILED
2269
+ # @type JobState: String
2270
+ # @param ClusterId: 作业所属集群ID
2271
+ # @type ClusterId: String
2272
+ # @param QueueName: 作业所属队列名称
2273
+ # @type QueueName: String
2274
+ # @param OccupyResources: 完成作业任务所需资源
2275
+ # @type OccupyResources: String
2276
+ # @param CreateTime: 作业任务创建时间
2277
+ # @type CreateTime: String
2278
+ # @param EndTime: 作业任务结束时间
2279
+ # @type EndTime: String
2280
+
2281
+ attr_accessor :JobId, :JobName, :JobDescription, :Priority, :JobState, :ClusterId, :QueueName, :OccupyResources, :CreateTime, :EndTime
2282
+
2283
+ def initialize(jobid=nil, jobname=nil, jobdescription=nil, priority=nil, jobstate=nil, clusterid=nil, queuename=nil, occupyresources=nil, createtime=nil, endtime=nil)
2284
+ @JobId = jobid
2285
+ @JobName = jobname
2286
+ @JobDescription = jobdescription
2287
+ @Priority = priority
2288
+ @JobState = jobstate
2289
+ @ClusterId = clusterid
2290
+ @QueueName = queuename
2291
+ @OccupyResources = occupyresources
2292
+ @CreateTime = createtime
2293
+ @EndTime = endtime
2294
+ end
2295
+
2296
+ def deserialize(params)
2297
+ @JobId = params['JobId']
2298
+ @JobName = params['JobName']
2299
+ @JobDescription = params['JobDescription']
2300
+ @Priority = params['Priority']
2301
+ @JobState = params['JobState']
2302
+ @ClusterId = params['ClusterId']
2303
+ @QueueName = params['QueueName']
2304
+ @OccupyResources = params['OccupyResources']
2305
+ @CreateTime = params['CreateTime']
2306
+ @EndTime = params['EndTime']
2307
+ end
2308
+ end
2309
+
1912
2310
  # 登录节点信息。
1913
2311
  class LoginNode < TencentCloud::Common::AbstractModel
1914
2312
  # @param InstanceChargeType: 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月</li><br><li>POSTPAID_BY_HOUR:按小时后付费</li><br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。</li>
@@ -2326,6 +2724,26 @@ module TencentCloud
2326
2724
  end
2327
2725
  end
2328
2726
 
2727
+ # 输出重定向配置
2728
+ class OutputRedirect < TencentCloud::Common::AbstractModel
2729
+ # @param Driver: 输出driver类型
2730
+ # @type Driver: String
2731
+ # @param Options: 重定向配置参数
2732
+ # @type Options: Array
2733
+
2734
+ attr_accessor :Driver, :Options
2735
+
2736
+ def initialize(driver=nil, options=nil)
2737
+ @Driver = driver
2738
+ @Options = options
2739
+ end
2740
+
2741
+ def deserialize(params)
2742
+ @Driver = params['Driver']
2743
+ @Options = params['Options']
2744
+ end
2745
+ end
2746
+
2329
2747
  # 描述了实例的抽象位置
2330
2748
  class Placement < TencentCloud::Common::AbstractModel
2331
2749
  # @param Zone: 实例所属的可用区名称。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。
@@ -2968,6 +3386,30 @@ module TencentCloud
2968
3386
  end
2969
3387
  end
2970
3388
 
3389
+ # 存储目录挂载配置。
3390
+ class StorageMount < TencentCloud::Common::AbstractModel
3391
+ # @param Source: 挂载源
3392
+ # @type Source: String
3393
+ # @param Target: 目标挂载位置
3394
+ # @type Target: String
3395
+ # @param StorageType: 挂载的存储类型,目前仅支持:local
3396
+ # @type StorageType: String
3397
+
3398
+ attr_accessor :Source, :Target, :StorageType
3399
+
3400
+ def initialize(source=nil, target=nil, storagetype=nil)
3401
+ @Source = source
3402
+ @Target = target
3403
+ @StorageType = storagetype
3404
+ end
3405
+
3406
+ def deserialize(params)
3407
+ @Source = params['Source']
3408
+ @Target = params['Target']
3409
+ @StorageType = params['StorageType']
3410
+ end
3411
+ end
3412
+
2971
3413
  # 描述集群文件系统选项
2972
3414
  class StorageOption < TencentCloud::Common::AbstractModel
2973
3415
  # @param CFSOptions: 集群挂载CFS文件系统选项。
@@ -3058,6 +3500,33 @@ module TencentCloud
3058
3500
  end
3059
3501
  end
3060
3502
 
3503
+ # SubmitJob请求参数结构体
3504
+ class SubmitJobRequest < TencentCloud::Common::AbstractModel
3505
+
3506
+
3507
+ def initialize()
3508
+ end
3509
+
3510
+ def deserialize(params)
3511
+ end
3512
+ end
3513
+
3514
+ # SubmitJob返回参数结构体
3515
+ class SubmitJobResponse < TencentCloud::Common::AbstractModel
3516
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3517
+ # @type RequestId: String
3518
+
3519
+ attr_accessor :RequestId
3520
+
3521
+ def initialize(requestid=nil)
3522
+ @RequestId = requestid
3523
+ end
3524
+
3525
+ def deserialize(params)
3526
+ @RequestId = params['RequestId']
3527
+ end
3528
+ end
3529
+
3061
3530
  # 描述了操作系统所在块设备即系统盘的信息
3062
3531
  class SystemDisk < TencentCloud::Common::AbstractModel
3063
3532
  # @param DiskType: 系统盘类型。系统盘类型限制详见存储概述。取值范围:
@@ -3132,6 +3601,89 @@ module TencentCloud
3132
3601
  end
3133
3602
  end
3134
3603
 
3604
+ # 作业任务配置信息。
3605
+ class Task < TencentCloud::Common::AbstractModel
3606
+ # @param Application: 作业任务的应用环境配置信息。
3607
+ # @type Application: :class:`Tencentcloud::Thpc.v20230321.models.Application`
3608
+ # @param TaskName: 作业任务名称。
3609
+ # @type TaskName: String
3610
+ # @param TaskInstanceNum: 作业任务所需的节点数/副本数。
3611
+ # @type TaskInstanceNum: Integer
3612
+ # @param Timeout: 任务超时时间(单位:秒)。
3613
+ # @type Timeout: Integer
3614
+
3615
+ attr_accessor :Application, :TaskName, :TaskInstanceNum, :Timeout
3616
+
3617
+ def initialize(application=nil, taskname=nil, taskinstancenum=nil, timeout=nil)
3618
+ @Application = application
3619
+ @TaskName = taskname
3620
+ @TaskInstanceNum = taskinstancenum
3621
+ @Timeout = timeout
3622
+ end
3623
+
3624
+ def deserialize(params)
3625
+ unless params['Application'].nil?
3626
+ @Application = Application.new
3627
+ @Application.deserialize(params['Application'])
3628
+ end
3629
+ @TaskName = params['TaskName']
3630
+ @TaskInstanceNum = params['TaskInstanceNum']
3631
+ @Timeout = params['Timeout']
3632
+ end
3633
+ end
3634
+
3635
+ # 任务的依赖关系。
3636
+ class TaskDependence < TencentCloud::Common::AbstractModel
3637
+ # @param StartTask: 依赖关系的起点任务名称。
3638
+ # @type StartTask: String
3639
+ # @param EndTask: 依赖关系的终点任务名称。
3640
+ # @type EndTask: String
3641
+
3642
+ attr_accessor :StartTask, :EndTask
3643
+
3644
+ def initialize(starttask=nil, endtask=nil)
3645
+ @StartTask = starttask
3646
+ @EndTask = endtask
3647
+ end
3648
+
3649
+ def deserialize(params)
3650
+ @StartTask = params['StartTask']
3651
+ @EndTask = params['EndTask']
3652
+ end
3653
+ end
3654
+
3655
+ # TerminateJob请求参数结构体
3656
+ class TerminateJobRequest < TencentCloud::Common::AbstractModel
3657
+ # @param JobId: 作业任务ID
3658
+ # @type JobId: String
3659
+
3660
+ attr_accessor :JobId
3661
+
3662
+ def initialize(jobid=nil)
3663
+ @JobId = jobid
3664
+ end
3665
+
3666
+ def deserialize(params)
3667
+ @JobId = params['JobId']
3668
+ end
3669
+ end
3670
+
3671
+ # TerminateJob返回参数结构体
3672
+ class TerminateJobResponse < TencentCloud::Common::AbstractModel
3673
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3674
+ # @type RequestId: String
3675
+
3676
+ attr_accessor :RequestId
3677
+
3678
+ def initialize(requestid=nil)
3679
+ @RequestId = requestid
3680
+ end
3681
+
3682
+ def deserialize(params)
3683
+ @RequestId = params['RequestId']
3684
+ end
3685
+ end
3686
+
3135
3687
  # TerminateWorkspaces请求参数结构体
3136
3688
  class TerminateWorkspacesRequest < TencentCloud::Common::AbstractModel
3137
3689
  # @param SpaceIds: 工作空间ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-thpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1094
4
+ version: 3.0.1132
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-05 00:00:00.000000000 Z
11
+ date: 2025-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common