tencentcloud-sdk-thpc 3.0.1160 → 3.0.1161
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/tencentcloud-sdk-thpc.rb +3 -3
- data/lib/v20230321/client.rb +24 -0
- data/lib/v20230321/models.rb +105 -10
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f26d974eecd9ab4ee24078b066504515759765b
|
|
4
|
+
data.tar.gz: f9d8d6b8eaa633cbf16c50ba6d9518c2e6d6f4e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bd0fcc5df6375febb7f0630baecd2d3889cd42619803853c8c669e879becc1d1f6cf738cf21fec9b59d97edb14436beddd78e82acbbc74b838502b53b2d8e2a
|
|
7
|
+
data.tar.gz: 5cdb5664f2bd139756d0d8aed84df58b9ab44fc2b11173f0095656c7020be1e1c5be50600f53a31b668ab6e63ae55a088d3d9c454135bc90220bf6695eee56da
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1161
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
require 'tencentcloud-sdk-common'
|
|
4
4
|
|
|
5
|
+
require_relative 'v20220401/client'
|
|
6
|
+
require_relative 'v20220401/models'
|
|
7
|
+
|
|
5
8
|
require_relative 'v20230321/client'
|
|
6
9
|
require_relative 'v20230321/models'
|
|
7
10
|
|
|
8
11
|
require_relative 'v20211109/client'
|
|
9
12
|
require_relative 'v20211109/models'
|
|
10
13
|
|
|
11
|
-
require_relative 'v20220401/client'
|
|
12
|
-
require_relative 'v20220401/models'
|
|
13
|
-
|
|
14
14
|
module TencentCloud
|
|
15
15
|
module Thpc
|
|
16
16
|
end
|
data/lib/v20230321/client.rb
CHANGED
|
@@ -588,6 +588,30 @@ module TencentCloud
|
|
|
588
588
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
589
589
|
end
|
|
590
590
|
|
|
591
|
+
# 修改集群删除保护状态
|
|
592
|
+
|
|
593
|
+
# @param request: Request instance for ModifyClusterDeletionProtection.
|
|
594
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::ModifyClusterDeletionProtectionRequest`
|
|
595
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::ModifyClusterDeletionProtectionResponse`
|
|
596
|
+
def ModifyClusterDeletionProtection(request)
|
|
597
|
+
body = send_request('ModifyClusterDeletionProtection', request.serialize)
|
|
598
|
+
response = JSON.parse(body)
|
|
599
|
+
if response['Response'].key?('Error') == false
|
|
600
|
+
model = ModifyClusterDeletionProtectionResponse.new
|
|
601
|
+
model.deserialize(response['Response'])
|
|
602
|
+
model
|
|
603
|
+
else
|
|
604
|
+
code = response['Response']['Error']['Code']
|
|
605
|
+
message = response['Response']['Error']['Message']
|
|
606
|
+
reqid = response['Response']['RequestId']
|
|
607
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
608
|
+
end
|
|
609
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
610
|
+
raise e
|
|
611
|
+
rescue StandardError => e
|
|
612
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
613
|
+
end
|
|
614
|
+
|
|
591
615
|
# 本接口 (ModifyInitNodeScripts) 用于修改节点初始化脚本。
|
|
592
616
|
|
|
593
617
|
# @param request: Request instance for ModifyInitNodeScripts.
|
data/lib/v20230321/models.rb
CHANGED
|
@@ -254,16 +254,27 @@ module TencentCloud
|
|
|
254
254
|
|
|
255
255
|
# 默认参数为:Custom
|
|
256
256
|
# @type JobType: String
|
|
257
|
+
# @param TaskType: 表示所选训练框架,支持可选参数
|
|
257
258
|
|
|
258
|
-
|
|
259
|
+
# - PyTorch:表示提交PyTorch训练作业
|
|
260
|
+
# - Custom:表示用户自定义作业
|
|
261
|
+
|
|
262
|
+
# 默认参数为:Custom
|
|
263
|
+
# @type TaskType: String
|
|
259
264
|
|
|
260
|
-
|
|
265
|
+
attr_accessor :Commands, :StorageMounts, :EnvVars, :Docker, :OutputRedirect, :JobType, :TaskType
|
|
266
|
+
extend Gem::Deprecate
|
|
267
|
+
deprecate :JobType, :none, 2025, 10
|
|
268
|
+
deprecate :JobType=, :none, 2025, 10
|
|
269
|
+
|
|
270
|
+
def initialize(commands=nil, storagemounts=nil, envvars=nil, docker=nil, outputredirect=nil, jobtype=nil, tasktype=nil)
|
|
261
271
|
@Commands = commands
|
|
262
272
|
@StorageMounts = storagemounts
|
|
263
273
|
@EnvVars = envvars
|
|
264
274
|
@Docker = docker
|
|
265
275
|
@OutputRedirect = outputredirect
|
|
266
276
|
@JobType = jobtype
|
|
277
|
+
@TaskType = tasktype
|
|
267
278
|
end
|
|
268
279
|
|
|
269
280
|
def deserialize(params)
|
|
@@ -300,6 +311,7 @@ module TencentCloud
|
|
|
300
311
|
@OutputRedirect.deserialize(params['OutputRedirect'])
|
|
301
312
|
end
|
|
302
313
|
@JobType = params['JobType']
|
|
314
|
+
@TaskType = params['TaskType']
|
|
303
315
|
end
|
|
304
316
|
end
|
|
305
317
|
|
|
@@ -527,10 +539,15 @@ module TencentCloud
|
|
|
527
539
|
# @type VpcId: String
|
|
528
540
|
# @param ClusterType: 集群类型
|
|
529
541
|
# @type ClusterType: String
|
|
542
|
+
# @param DeletionProtection: 集群销毁保护开关状态,当前支持参数:
|
|
543
|
+
|
|
544
|
+
# - ON: 集群销毁保护打开
|
|
545
|
+
# - OFF: 集群销毁保护关闭
|
|
546
|
+
# @type DeletionProtection: String
|
|
530
547
|
|
|
531
|
-
attr_accessor :ClusterId, :ClusterStatus, :ClusterName, :Placement, :CreateTime, :SchedulerType, :SchedulerVersion, :ComputeNodeCount, :ComputeNodeSet, :ManagerNodeCount, :ManagerNodeSet, :LoginNodeSet, :LoginNodeCount, :AutoScalingType, :VpcId, :ClusterType
|
|
548
|
+
attr_accessor :ClusterId, :ClusterStatus, :ClusterName, :Placement, :CreateTime, :SchedulerType, :SchedulerVersion, :ComputeNodeCount, :ComputeNodeSet, :ManagerNodeCount, :ManagerNodeSet, :LoginNodeSet, :LoginNodeCount, :AutoScalingType, :VpcId, :ClusterType, :DeletionProtection
|
|
532
549
|
|
|
533
|
-
def initialize(clusterid=nil, clusterstatus=nil, clustername=nil, placement=nil, createtime=nil, schedulertype=nil, schedulerversion=nil, computenodecount=nil, computenodeset=nil, managernodecount=nil, managernodeset=nil, loginnodeset=nil, loginnodecount=nil, autoscalingtype=nil, vpcid=nil, clustertype=nil)
|
|
550
|
+
def initialize(clusterid=nil, clusterstatus=nil, clustername=nil, placement=nil, createtime=nil, schedulertype=nil, schedulerversion=nil, computenodecount=nil, computenodeset=nil, managernodecount=nil, managernodeset=nil, loginnodeset=nil, loginnodecount=nil, autoscalingtype=nil, vpcid=nil, clustertype=nil, deletionprotection=nil)
|
|
534
551
|
@ClusterId = clusterid
|
|
535
552
|
@ClusterStatus = clusterstatus
|
|
536
553
|
@ClusterName = clustername
|
|
@@ -547,6 +564,7 @@ module TencentCloud
|
|
|
547
564
|
@AutoScalingType = autoscalingtype
|
|
548
565
|
@VpcId = vpcid
|
|
549
566
|
@ClusterType = clustertype
|
|
567
|
+
@DeletionProtection = deletionprotection
|
|
550
568
|
end
|
|
551
569
|
|
|
552
570
|
def deserialize(params)
|
|
@@ -590,6 +608,7 @@ module TencentCloud
|
|
|
590
608
|
@AutoScalingType = params['AutoScalingType']
|
|
591
609
|
@VpcId = params['VpcId']
|
|
592
610
|
@ClusterType = params['ClusterType']
|
|
611
|
+
@DeletionProtection = params['DeletionProtection']
|
|
593
612
|
end
|
|
594
613
|
end
|
|
595
614
|
|
|
@@ -1515,27 +1534,44 @@ module TencentCloud
|
|
|
1515
1534
|
|
|
1516
1535
|
# DescribeJobsOverview请求参数结构体
|
|
1517
1536
|
class DescribeJobsOverviewRequest < TencentCloud::Common::AbstractModel
|
|
1537
|
+
# @param ClusterId: 集群ID
|
|
1538
|
+
# @type ClusterId: String
|
|
1518
1539
|
|
|
1540
|
+
attr_accessor :ClusterId
|
|
1519
1541
|
|
|
1520
|
-
def initialize()
|
|
1542
|
+
def initialize(clusterid=nil)
|
|
1543
|
+
@ClusterId = clusterid
|
|
1521
1544
|
end
|
|
1522
1545
|
|
|
1523
1546
|
def deserialize(params)
|
|
1547
|
+
@ClusterId = params['ClusterId']
|
|
1524
1548
|
end
|
|
1525
1549
|
end
|
|
1526
1550
|
|
|
1527
1551
|
# DescribeJobsOverview返回参数结构体
|
|
1528
1552
|
class DescribeJobsOverviewResponse < TencentCloud::Common::AbstractModel
|
|
1553
|
+
# @param JobTotal: 作业任务数量
|
|
1554
|
+
# @type JobTotal: Integer
|
|
1555
|
+
# @param QueuingJobTotal: 排队中的作业任务数量
|
|
1556
|
+
# @type QueuingJobTotal: Integer
|
|
1557
|
+
# @param RunningJobTotal: 运行中的作业数量
|
|
1558
|
+
# @type RunningJobTotal: Integer
|
|
1529
1559
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1530
1560
|
# @type RequestId: String
|
|
1531
1561
|
|
|
1532
|
-
attr_accessor :RequestId
|
|
1562
|
+
attr_accessor :JobTotal, :QueuingJobTotal, :RunningJobTotal, :RequestId
|
|
1533
1563
|
|
|
1534
|
-
def initialize(requestid=nil)
|
|
1564
|
+
def initialize(jobtotal=nil, queuingjobtotal=nil, runningjobtotal=nil, requestid=nil)
|
|
1565
|
+
@JobTotal = jobtotal
|
|
1566
|
+
@QueuingJobTotal = queuingjobtotal
|
|
1567
|
+
@RunningJobTotal = runningjobtotal
|
|
1535
1568
|
@RequestId = requestid
|
|
1536
1569
|
end
|
|
1537
1570
|
|
|
1538
1571
|
def deserialize(params)
|
|
1572
|
+
@JobTotal = params['JobTotal']
|
|
1573
|
+
@QueuingJobTotal = params['QueuingJobTotal']
|
|
1574
|
+
@RunningJobTotal = params['RunningJobTotal']
|
|
1539
1575
|
@RequestId = params['RequestId']
|
|
1540
1576
|
end
|
|
1541
1577
|
end
|
|
@@ -2489,6 +2525,43 @@ module TencentCloud
|
|
|
2489
2525
|
end
|
|
2490
2526
|
end
|
|
2491
2527
|
|
|
2528
|
+
# ModifyClusterDeletionProtection请求参数结构体
|
|
2529
|
+
class ModifyClusterDeletionProtectionRequest < TencentCloud::Common::AbstractModel
|
|
2530
|
+
# @param ClusterId: 集群ID。
|
|
2531
|
+
# @type ClusterId: String
|
|
2532
|
+
# @param DeletionProtection: 集群删除保护开关。
|
|
2533
|
+
# 可选值:<li>OFF:关闭集群删除保护。</li><li>ON:打开集群删除保护。</li>
|
|
2534
|
+
# @type DeletionProtection: String
|
|
2535
|
+
|
|
2536
|
+
attr_accessor :ClusterId, :DeletionProtection
|
|
2537
|
+
|
|
2538
|
+
def initialize(clusterid=nil, deletionprotection=nil)
|
|
2539
|
+
@ClusterId = clusterid
|
|
2540
|
+
@DeletionProtection = deletionprotection
|
|
2541
|
+
end
|
|
2542
|
+
|
|
2543
|
+
def deserialize(params)
|
|
2544
|
+
@ClusterId = params['ClusterId']
|
|
2545
|
+
@DeletionProtection = params['DeletionProtection']
|
|
2546
|
+
end
|
|
2547
|
+
end
|
|
2548
|
+
|
|
2549
|
+
# ModifyClusterDeletionProtection返回参数结构体
|
|
2550
|
+
class ModifyClusterDeletionProtectionResponse < TencentCloud::Common::AbstractModel
|
|
2551
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2552
|
+
# @type RequestId: String
|
|
2553
|
+
|
|
2554
|
+
attr_accessor :RequestId
|
|
2555
|
+
|
|
2556
|
+
def initialize(requestid=nil)
|
|
2557
|
+
@RequestId = requestid
|
|
2558
|
+
end
|
|
2559
|
+
|
|
2560
|
+
def deserialize(params)
|
|
2561
|
+
@RequestId = params['RequestId']
|
|
2562
|
+
end
|
|
2563
|
+
end
|
|
2564
|
+
|
|
2492
2565
|
# ModifyInitNodeScripts请求参数结构体
|
|
2493
2566
|
class ModifyInitNodeScriptsRequest < TencentCloud::Common::AbstractModel
|
|
2494
2567
|
# @param ClusterId: 集群ID。
|
|
@@ -3502,27 +3575,49 @@ module TencentCloud
|
|
|
3502
3575
|
|
|
3503
3576
|
# SubmitJob请求参数结构体
|
|
3504
3577
|
class SubmitJobRequest < TencentCloud::Common::AbstractModel
|
|
3578
|
+
# @param ClusterId: 集群id
|
|
3579
|
+
# @type ClusterId: String
|
|
3580
|
+
# @param Job: 作业任务参数配置
|
|
3581
|
+
# @type Job: :class:`Tencentcloud::Thpc.v20230321.models.Job`
|
|
3582
|
+
# @param QueueName: 队列名称。不指定则为默认队列:
|
|
3583
|
+
# SLURM默认队列为:compute。
|
|
3584
|
+
# SGE默认队列为:all.q。
|
|
3585
|
+
# @type QueueName: String
|
|
3505
3586
|
|
|
3587
|
+
attr_accessor :ClusterId, :Job, :QueueName
|
|
3506
3588
|
|
|
3507
|
-
def initialize()
|
|
3589
|
+
def initialize(clusterid=nil, job=nil, queuename=nil)
|
|
3590
|
+
@ClusterId = clusterid
|
|
3591
|
+
@Job = job
|
|
3592
|
+
@QueueName = queuename
|
|
3508
3593
|
end
|
|
3509
3594
|
|
|
3510
3595
|
def deserialize(params)
|
|
3596
|
+
@ClusterId = params['ClusterId']
|
|
3597
|
+
unless params['Job'].nil?
|
|
3598
|
+
@Job = Job.new
|
|
3599
|
+
@Job.deserialize(params['Job'])
|
|
3600
|
+
end
|
|
3601
|
+
@QueueName = params['QueueName']
|
|
3511
3602
|
end
|
|
3512
3603
|
end
|
|
3513
3604
|
|
|
3514
3605
|
# SubmitJob返回参数结构体
|
|
3515
3606
|
class SubmitJobResponse < TencentCloud::Common::AbstractModel
|
|
3607
|
+
# @param JobId: 作业任务ID
|
|
3608
|
+
# @type JobId: String
|
|
3516
3609
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3517
3610
|
# @type RequestId: String
|
|
3518
3611
|
|
|
3519
|
-
attr_accessor :RequestId
|
|
3612
|
+
attr_accessor :JobId, :RequestId
|
|
3520
3613
|
|
|
3521
|
-
def initialize(requestid=nil)
|
|
3614
|
+
def initialize(jobid=nil, requestid=nil)
|
|
3615
|
+
@JobId = jobid
|
|
3522
3616
|
@RequestId = requestid
|
|
3523
3617
|
end
|
|
3524
3618
|
|
|
3525
3619
|
def deserialize(params)
|
|
3620
|
+
@JobId = params['JobId']
|
|
3526
3621
|
@RequestId = params['RequestId']
|
|
3527
3622
|
end
|
|
3528
3623
|
end
|
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.
|
|
4
|
+
version: 3.0.1161
|
|
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-
|
|
11
|
+
date: 2025-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,13 +33,13 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/v20230321/models.rb
|
|
37
|
-
- lib/v20230321/client.rb
|
|
38
|
-
- lib/tencentcloud-sdk-thpc.rb
|
|
39
|
-
- lib/v20211109/models.rb
|
|
40
|
-
- lib/v20211109/client.rb
|
|
41
|
-
- lib/v20220401/models.rb
|
|
42
36
|
- lib/v20220401/client.rb
|
|
37
|
+
- lib/v20220401/models.rb
|
|
38
|
+
- lib/v20211109/client.rb
|
|
39
|
+
- lib/v20211109/models.rb
|
|
40
|
+
- lib/tencentcloud-sdk-thpc.rb
|
|
41
|
+
- lib/v20230321/client.rb
|
|
42
|
+
- lib/v20230321/models.rb
|
|
43
43
|
- lib/VERSION
|
|
44
44
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
45
45
|
licenses:
|