tencentcloud-sdk-thpc 3.0.1094 → 3.0.1118

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: 44160297807e5b6c246e6e01f9fbf41e9724b26d
4
+ data.tar.gz: 5d5dc12608698687f30fdd63d1fd9ab1a42cec42
5
5
  SHA512:
6
- metadata.gz: 7a00b525f119e58c511b58b0e9161456eb31198c06d0c0472b63b2528ab1d370a26539336032138beae5931ddec964291544ac52f1fe824fa19895b951ea84fd
7
- data.tar.gz: 2c870f800020682c78ae5067e87a7b1248b69d89b0b4664db65c025719b967b6b656a69cd3947a13edbc92fb174073ae2c9232788e19e94f3ccb557b01077147
6
+ metadata.gz: df9c7bba495c3369480ec235fcc699f8c779c882ea4ffc41a2a504e67f1f5dd42c0b6f684700a6390ad41dc92482c4301f544bdad7c779438cc4fecdaf94f0c1
7
+ data.tar.gz: e3cb9ffde823109e43bded3ce4e0b2c56dc75146a154595ad4da73aab29c0e466e75199f23170ed9206349c82ec9de0dd64ac626e50fbf213bf0b907f37e312b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1094
1
+ 3.0.1118
@@ -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
@@ -522,6 +590,22 @@ module TencentCloud
522
590
  end
523
591
  end
524
592
 
593
+ # 任务执行命令脚本。
594
+ class CommandItem < TencentCloud::Common::AbstractModel
595
+ # @param Command: 脚本命令
596
+ # @type Command: String
597
+
598
+ attr_accessor :Command
599
+
600
+ def initialize(command=nil)
601
+ @Command = command
602
+ end
603
+
604
+ def deserialize(params)
605
+ @Command = params['Command']
606
+ end
607
+ end
608
+
525
609
  # 计算节点信息。
526
610
  class ComputeNode < TencentCloud::Common::AbstractModel
527
611
  # @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 +1094,38 @@ module TencentCloud
1010
1094
  end
1011
1095
  end
1012
1096
 
1097
+ # DeleteJob请求参数结构体
1098
+ class DeleteJobRequest < TencentCloud::Common::AbstractModel
1099
+ # @param JobId: 作业任务ID
1100
+ # @type JobId: String
1101
+
1102
+ attr_accessor :JobId
1103
+
1104
+ def initialize(jobid=nil)
1105
+ @JobId = jobid
1106
+ end
1107
+
1108
+ def deserialize(params)
1109
+ @JobId = params['JobId']
1110
+ end
1111
+ end
1112
+
1113
+ # DeleteJob返回参数结构体
1114
+ class DeleteJobResponse < TencentCloud::Common::AbstractModel
1115
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1116
+ # @type RequestId: String
1117
+
1118
+ attr_accessor :RequestId
1119
+
1120
+ def initialize(requestid=nil)
1121
+ @RequestId = requestid
1122
+ end
1123
+
1124
+ def deserialize(params)
1125
+ @RequestId = params['RequestId']
1126
+ end
1127
+ end
1128
+
1013
1129
  # DeleteNodes请求参数结构体
1014
1130
  class DeleteNodesRequest < TencentCloud::Common::AbstractModel
1015
1131
  # @param ClusterId: 集群ID。
@@ -1347,6 +1463,146 @@ module TencentCloud
1347
1463
  end
1348
1464
  end
1349
1465
 
1466
+ # DescribeJobSubmitInfo请求参数结构体
1467
+ class DescribeJobSubmitInfoRequest < TencentCloud::Common::AbstractModel
1468
+ # @param JobId: 作业ID
1469
+ # @type JobId: String
1470
+
1471
+ attr_accessor :JobId
1472
+
1473
+ def initialize(jobid=nil)
1474
+ @JobId = jobid
1475
+ end
1476
+
1477
+ def deserialize(params)
1478
+ @JobId = params['JobId']
1479
+ end
1480
+ end
1481
+
1482
+ # DescribeJobSubmitInfo返回参数结构体
1483
+ class DescribeJobSubmitInfoResponse < TencentCloud::Common::AbstractModel
1484
+ # @param ClusterId: 集群ID
1485
+ # @type ClusterId: String
1486
+ # @param QueueName: 队列名称
1487
+ # @type QueueName: String
1488
+ # @param Job: 作业信息
1489
+ # @type Job: :class:`Tencentcloud::Thpc.v20230321.models.Job`
1490
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1491
+ # @type RequestId: String
1492
+
1493
+ attr_accessor :ClusterId, :QueueName, :Job, :RequestId
1494
+
1495
+ def initialize(clusterid=nil, queuename=nil, job=nil, requestid=nil)
1496
+ @ClusterId = clusterid
1497
+ @QueueName = queuename
1498
+ @Job = job
1499
+ @RequestId = requestid
1500
+ end
1501
+
1502
+ def deserialize(params)
1503
+ @ClusterId = params['ClusterId']
1504
+ @QueueName = params['QueueName']
1505
+ unless params['Job'].nil?
1506
+ @Job = Job.new
1507
+ @Job.deserialize(params['Job'])
1508
+ end
1509
+ @RequestId = params['RequestId']
1510
+ end
1511
+ end
1512
+
1513
+ # DescribeJobsOverview请求参数结构体
1514
+ class DescribeJobsOverviewRequest < TencentCloud::Common::AbstractModel
1515
+
1516
+
1517
+ def initialize()
1518
+ end
1519
+
1520
+ def deserialize(params)
1521
+ end
1522
+ end
1523
+
1524
+ # DescribeJobsOverview返回参数结构体
1525
+ class DescribeJobsOverviewResponse < TencentCloud::Common::AbstractModel
1526
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1527
+ # @type RequestId: String
1528
+
1529
+ attr_accessor :RequestId
1530
+
1531
+ def initialize(requestid=nil)
1532
+ @RequestId = requestid
1533
+ end
1534
+
1535
+ def deserialize(params)
1536
+ @RequestId = params['RequestId']
1537
+ end
1538
+ end
1539
+
1540
+ # DescribeJobs请求参数结构体
1541
+ class DescribeJobsRequest < TencentCloud::Common::AbstractModel
1542
+ # @param JobIds: 作业任务ID列表
1543
+ # @type JobIds: Array
1544
+ # @param Filters: 过滤列表
1545
+ # @type Filters: Array
1546
+ # @param Offset: 偏移量,默认为0。 关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
1547
+ # @type Offset: Integer
1548
+ # @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
1549
+ # @type Limit: Integer
1550
+
1551
+ attr_accessor :JobIds, :Filters, :Offset, :Limit
1552
+
1553
+ def initialize(jobids=nil, filters=nil, offset=nil, limit=nil)
1554
+ @JobIds = jobids
1555
+ @Filters = filters
1556
+ @Offset = offset
1557
+ @Limit = limit
1558
+ end
1559
+
1560
+ def deserialize(params)
1561
+ @JobIds = params['JobIds']
1562
+ unless params['Filters'].nil?
1563
+ @Filters = []
1564
+ params['Filters'].each do |i|
1565
+ filter_tmp = Filter.new
1566
+ filter_tmp.deserialize(i)
1567
+ @Filters << filter_tmp
1568
+ end
1569
+ end
1570
+ @Offset = params['Offset']
1571
+ @Limit = params['Limit']
1572
+ end
1573
+ end
1574
+
1575
+ # DescribeJobs返回参数结构体
1576
+ class DescribeJobsResponse < TencentCloud::Common::AbstractModel
1577
+ # @param JobSet: 作业任务概览列表
1578
+ # @type JobSet: Array
1579
+ # @param TotalCount: 符合条件的作业任务数量。
1580
+ # @type TotalCount: Integer
1581
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1582
+ # @type RequestId: String
1583
+
1584
+ attr_accessor :JobSet, :TotalCount, :RequestId
1585
+
1586
+ def initialize(jobset=nil, totalcount=nil, requestid=nil)
1587
+ @JobSet = jobset
1588
+ @TotalCount = totalcount
1589
+ @RequestId = requestid
1590
+ end
1591
+
1592
+ def deserialize(params)
1593
+ unless params['JobSet'].nil?
1594
+ @JobSet = []
1595
+ params['JobSet'].each do |i|
1596
+ jobview_tmp = JobView.new
1597
+ jobview_tmp.deserialize(i)
1598
+ @JobSet << jobview_tmp
1599
+ end
1600
+ end
1601
+ @TotalCount = params['TotalCount']
1602
+ @RequestId = params['RequestId']
1603
+ end
1604
+ end
1605
+
1350
1606
  # DescribeNodes请求参数结构体
1351
1607
  class DescribeNodesRequest < TencentCloud::Common::AbstractModel
1352
1608
  # @param ClusterId: 集群ID。
@@ -1587,6 +1843,26 @@ module TencentCloud
1587
1843
  end
1588
1844
  end
1589
1845
 
1846
+ # 容器配置信息。
1847
+ class Docker < TencentCloud::Common::AbstractModel
1848
+ # @param Image: 容器镜像地址
1849
+ # @type Image: String
1850
+ # @param RunArgs: 容器运行参数
1851
+ # @type RunArgs: Array
1852
+
1853
+ attr_accessor :Image, :RunArgs
1854
+
1855
+ def initialize(image=nil, runargs=nil)
1856
+ @Image = image
1857
+ @RunArgs = runargs
1858
+ end
1859
+
1860
+ def deserialize(params)
1861
+ @Image = params['Image']
1862
+ @RunArgs = params['RunArgs']
1863
+ end
1864
+ end
1865
+
1590
1866
  # 描述了实例的增强服务启用情况与其设置,如云安全,腾讯云可观测平台等实例 Agent
1591
1867
  class EnhancedService < TencentCloud::Common::AbstractModel
1592
1868
  # @param SecurityService: 开启云安全服务。若不指定该参数,则默认开启云安全服务。
@@ -1620,6 +1896,26 @@ module TencentCloud
1620
1896
  end
1621
1897
  end
1622
1898
 
1899
+ # 用户自定义环境变量。
1900
+ class EnvVar < TencentCloud::Common::AbstractModel
1901
+ # @param Name: ENV
1902
+ # @type Name: String
1903
+ # @param Value: test
1904
+ # @type Value: String
1905
+
1906
+ attr_accessor :Name, :Value
1907
+
1908
+ def initialize(name=nil, value=nil)
1909
+ @Name = name
1910
+ @Value = value
1911
+ end
1912
+
1913
+ def deserialize(params)
1914
+ @Name = params['Name']
1915
+ @Value = params['Value']
1916
+ end
1917
+ end
1918
+
1623
1919
  # 弹性扩容节点配置信息。
1624
1920
  class ExpansionNodeConfig < TencentCloud::Common::AbstractModel
1625
1921
  # @param Placement: 扩容实例所在的位置。
@@ -1909,6 +2205,105 @@ module TencentCloud
1909
2205
  end
1910
2206
  end
1911
2207
 
2208
+ # 提交Job作业信息
2209
+ class Job < TencentCloud::Common::AbstractModel
2210
+ # @param Tasks: 任务配置信息。
2211
+ # @type Tasks: Array
2212
+ # @param JobName: 作业名称。
2213
+ # @type JobName: String
2214
+ # @param JobDescription: 作业描述。
2215
+ # @type JobDescription: String
2216
+ # @param Priority: 作业优先级,数值越大,优先级越高,数值范围1~100。
2217
+ # @type Priority: Integer
2218
+ # @param TaskDependencies: 描述任务的依赖关系,DAG有向无环图。
2219
+ # @type TaskDependencies: Array
2220
+
2221
+ attr_accessor :Tasks, :JobName, :JobDescription, :Priority, :TaskDependencies
2222
+
2223
+ def initialize(tasks=nil, jobname=nil, jobdescription=nil, priority=nil, taskdependencies=nil)
2224
+ @Tasks = tasks
2225
+ @JobName = jobname
2226
+ @JobDescription = jobdescription
2227
+ @Priority = priority
2228
+ @TaskDependencies = taskdependencies
2229
+ end
2230
+
2231
+ def deserialize(params)
2232
+ unless params['Tasks'].nil?
2233
+ @Tasks = []
2234
+ params['Tasks'].each do |i|
2235
+ task_tmp = Task.new
2236
+ task_tmp.deserialize(i)
2237
+ @Tasks << task_tmp
2238
+ end
2239
+ end
2240
+ @JobName = params['JobName']
2241
+ @JobDescription = params['JobDescription']
2242
+ @Priority = params['Priority']
2243
+ unless params['TaskDependencies'].nil?
2244
+ @TaskDependencies = []
2245
+ params['TaskDependencies'].each do |i|
2246
+ taskdependence_tmp = TaskDependence.new
2247
+ taskdependence_tmp.deserialize(i)
2248
+ @TaskDependencies << taskdependence_tmp
2249
+ end
2250
+ end
2251
+ end
2252
+ end
2253
+
2254
+ # 作业概览信息
2255
+ class JobView < TencentCloud::Common::AbstractModel
2256
+ # @param JobId: 作业ID
2257
+ # @type JobId: String
2258
+ # @param JobName: 作业名称
2259
+ # @type JobName: String
2260
+ # @param JobDescription: 作业描述
2261
+ # @type JobDescription: String
2262
+ # @param Priority: 作业优先级
2263
+ # @type Priority: Integer
2264
+ # @param JobState: 作业状态,包括CREATED, QUEING, STARTNG, RUNING, TERMINATING, TERMINATED, SUCCESS,
2265
+ # FAILED
2266
+ # @type JobState: String
2267
+ # @param ClusterId: 作业所属集群ID
2268
+ # @type ClusterId: String
2269
+ # @param QueueName: 作业所属队列名称
2270
+ # @type QueueName: String
2271
+ # @param OccupyResources: 完成作业任务所需资源
2272
+ # @type OccupyResources: String
2273
+ # @param CreateTime: 作业任务创建时间
2274
+ # @type CreateTime: String
2275
+ # @param EndTime: 作业任务结束时间
2276
+ # @type EndTime: String
2277
+
2278
+ attr_accessor :JobId, :JobName, :JobDescription, :Priority, :JobState, :ClusterId, :QueueName, :OccupyResources, :CreateTime, :EndTime
2279
+
2280
+ def initialize(jobid=nil, jobname=nil, jobdescription=nil, priority=nil, jobstate=nil, clusterid=nil, queuename=nil, occupyresources=nil, createtime=nil, endtime=nil)
2281
+ @JobId = jobid
2282
+ @JobName = jobname
2283
+ @JobDescription = jobdescription
2284
+ @Priority = priority
2285
+ @JobState = jobstate
2286
+ @ClusterId = clusterid
2287
+ @QueueName = queuename
2288
+ @OccupyResources = occupyresources
2289
+ @CreateTime = createtime
2290
+ @EndTime = endtime
2291
+ end
2292
+
2293
+ def deserialize(params)
2294
+ @JobId = params['JobId']
2295
+ @JobName = params['JobName']
2296
+ @JobDescription = params['JobDescription']
2297
+ @Priority = params['Priority']
2298
+ @JobState = params['JobState']
2299
+ @ClusterId = params['ClusterId']
2300
+ @QueueName = params['QueueName']
2301
+ @OccupyResources = params['OccupyResources']
2302
+ @CreateTime = params['CreateTime']
2303
+ @EndTime = params['EndTime']
2304
+ end
2305
+ end
2306
+
1912
2307
  # 登录节点信息。
1913
2308
  class LoginNode < TencentCloud::Common::AbstractModel
1914
2309
  # @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 +2721,26 @@ module TencentCloud
2326
2721
  end
2327
2722
  end
2328
2723
 
2724
+ # 输出重定向配置
2725
+ class OutputRedirect < TencentCloud::Common::AbstractModel
2726
+ # @param Driver: 输出driver类型
2727
+ # @type Driver: String
2728
+ # @param Options: 重定向配置参数
2729
+ # @type Options: Array
2730
+
2731
+ attr_accessor :Driver, :Options
2732
+
2733
+ def initialize(driver=nil, options=nil)
2734
+ @Driver = driver
2735
+ @Options = options
2736
+ end
2737
+
2738
+ def deserialize(params)
2739
+ @Driver = params['Driver']
2740
+ @Options = params['Options']
2741
+ end
2742
+ end
2743
+
2329
2744
  # 描述了实例的抽象位置
2330
2745
  class Placement < TencentCloud::Common::AbstractModel
2331
2746
  # @param Zone: 实例所属的可用区名称。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。
@@ -2968,6 +3383,30 @@ module TencentCloud
2968
3383
  end
2969
3384
  end
2970
3385
 
3386
+ # 存储目录挂载配置。
3387
+ class StorageMount < TencentCloud::Common::AbstractModel
3388
+ # @param Source: 挂载源
3389
+ # @type Source: String
3390
+ # @param Target: 目标挂载位置
3391
+ # @type Target: String
3392
+ # @param StorageType: 挂载的存储类型,目前仅支持:local
3393
+ # @type StorageType: String
3394
+
3395
+ attr_accessor :Source, :Target, :StorageType
3396
+
3397
+ def initialize(source=nil, target=nil, storagetype=nil)
3398
+ @Source = source
3399
+ @Target = target
3400
+ @StorageType = storagetype
3401
+ end
3402
+
3403
+ def deserialize(params)
3404
+ @Source = params['Source']
3405
+ @Target = params['Target']
3406
+ @StorageType = params['StorageType']
3407
+ end
3408
+ end
3409
+
2971
3410
  # 描述集群文件系统选项
2972
3411
  class StorageOption < TencentCloud::Common::AbstractModel
2973
3412
  # @param CFSOptions: 集群挂载CFS文件系统选项。
@@ -3058,6 +3497,33 @@ module TencentCloud
3058
3497
  end
3059
3498
  end
3060
3499
 
3500
+ # SubmitJob请求参数结构体
3501
+ class SubmitJobRequest < TencentCloud::Common::AbstractModel
3502
+
3503
+
3504
+ def initialize()
3505
+ end
3506
+
3507
+ def deserialize(params)
3508
+ end
3509
+ end
3510
+
3511
+ # SubmitJob返回参数结构体
3512
+ class SubmitJobResponse < TencentCloud::Common::AbstractModel
3513
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3514
+ # @type RequestId: String
3515
+
3516
+ attr_accessor :RequestId
3517
+
3518
+ def initialize(requestid=nil)
3519
+ @RequestId = requestid
3520
+ end
3521
+
3522
+ def deserialize(params)
3523
+ @RequestId = params['RequestId']
3524
+ end
3525
+ end
3526
+
3061
3527
  # 描述了操作系统所在块设备即系统盘的信息
3062
3528
  class SystemDisk < TencentCloud::Common::AbstractModel
3063
3529
  # @param DiskType: 系统盘类型。系统盘类型限制详见存储概述。取值范围:
@@ -3132,6 +3598,89 @@ module TencentCloud
3132
3598
  end
3133
3599
  end
3134
3600
 
3601
+ # 作业任务配置信息。
3602
+ class Task < TencentCloud::Common::AbstractModel
3603
+ # @param Application: 作业任务的应用环境配置信息。
3604
+ # @type Application: :class:`Tencentcloud::Thpc.v20230321.models.Application`
3605
+ # @param TaskName: 作业任务名称。
3606
+ # @type TaskName: String
3607
+ # @param TaskInstanceNum: 作业任务所需的节点数/副本数。
3608
+ # @type TaskInstanceNum: Integer
3609
+ # @param Timeout: 任务超时时间(单位:秒)。
3610
+ # @type Timeout: Integer
3611
+
3612
+ attr_accessor :Application, :TaskName, :TaskInstanceNum, :Timeout
3613
+
3614
+ def initialize(application=nil, taskname=nil, taskinstancenum=nil, timeout=nil)
3615
+ @Application = application
3616
+ @TaskName = taskname
3617
+ @TaskInstanceNum = taskinstancenum
3618
+ @Timeout = timeout
3619
+ end
3620
+
3621
+ def deserialize(params)
3622
+ unless params['Application'].nil?
3623
+ @Application = Application.new
3624
+ @Application.deserialize(params['Application'])
3625
+ end
3626
+ @TaskName = params['TaskName']
3627
+ @TaskInstanceNum = params['TaskInstanceNum']
3628
+ @Timeout = params['Timeout']
3629
+ end
3630
+ end
3631
+
3632
+ # 任务的依赖关系。
3633
+ class TaskDependence < TencentCloud::Common::AbstractModel
3634
+ # @param StartTask: 依赖关系的起点任务名称。
3635
+ # @type StartTask: String
3636
+ # @param EndTask: 依赖关系的终点任务名称。
3637
+ # @type EndTask: String
3638
+
3639
+ attr_accessor :StartTask, :EndTask
3640
+
3641
+ def initialize(starttask=nil, endtask=nil)
3642
+ @StartTask = starttask
3643
+ @EndTask = endtask
3644
+ end
3645
+
3646
+ def deserialize(params)
3647
+ @StartTask = params['StartTask']
3648
+ @EndTask = params['EndTask']
3649
+ end
3650
+ end
3651
+
3652
+ # TerminateJob请求参数结构体
3653
+ class TerminateJobRequest < TencentCloud::Common::AbstractModel
3654
+ # @param JobId: 作业任务ID
3655
+ # @type JobId: String
3656
+
3657
+ attr_accessor :JobId
3658
+
3659
+ def initialize(jobid=nil)
3660
+ @JobId = jobid
3661
+ end
3662
+
3663
+ def deserialize(params)
3664
+ @JobId = params['JobId']
3665
+ end
3666
+ end
3667
+
3668
+ # TerminateJob返回参数结构体
3669
+ class TerminateJobResponse < TencentCloud::Common::AbstractModel
3670
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3671
+ # @type RequestId: String
3672
+
3673
+ attr_accessor :RequestId
3674
+
3675
+ def initialize(requestid=nil)
3676
+ @RequestId = requestid
3677
+ end
3678
+
3679
+ def deserialize(params)
3680
+ @RequestId = params['RequestId']
3681
+ end
3682
+ end
3683
+
3135
3684
  # TerminateWorkspaces请求参数结构体
3136
3685
  class TerminateWorkspacesRequest < TencentCloud::Common::AbstractModel
3137
3686
  # @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.1118
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-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common