tencentcloud-sdk-thpc 3.0.1203 → 3.0.1206
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/v20220401/models.rb +65 -75
- data/lib/v20230321/client.rb +24 -0
- data/lib/v20230321/models.rb +127 -103
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5a204b3c6e1cdf2f8e2b93f79b8e6b35888a833
|
|
4
|
+
data.tar.gz: 5d82df42d90794ef37791813f4febf68acfda560
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: acf9a20ed162804bccaa5e0e935592c369a57d888ea44dc3f6c3e62cdb8d3c30e873d3716a9b27897c254e9ceb5beaac8b472e3f0fd28b1fcfaa2e485dea5881
|
|
7
|
+
data.tar.gz: a4f2fac8c9a8bafda8ad22124a7817617071796ded9ce6193197a5d45b41517450ac4091f9ab7896eabed30fc73bb722f22274f341275cd545c2c97cff714706
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1206
|
data/lib/v20220401/models.rb
CHANGED
|
@@ -58,49 +58,43 @@ module TencentCloud
|
|
|
58
58
|
|
|
59
59
|
# AddNodes请求参数结构体
|
|
60
60
|
class AddNodesRequest < TencentCloud::Common::AbstractModel
|
|
61
|
-
# @param Placement:
|
|
61
|
+
# @param Placement: <p>集群中实例所在的位置。</p>
|
|
62
62
|
# @type Placement: :class:`Tencentcloud::Thpc.v20220401.models.Placement`
|
|
63
|
-
# @param ClusterId:
|
|
63
|
+
# @param ClusterId: <p>集群ID。</p>
|
|
64
64
|
# @type ClusterId: String
|
|
65
|
-
# @param VirtualPrivateCloud:
|
|
65
|
+
# @param VirtualPrivateCloud: <p>私有网络相关信息配置。</p>
|
|
66
66
|
# @type VirtualPrivateCloud: :class:`Tencentcloud::Thpc.v20220401.models.VirtualPrivateCloud`
|
|
67
|
-
# @param Count:
|
|
67
|
+
# @param Count: <p>添加节点数量。</p>
|
|
68
68
|
# @type Count: Integer
|
|
69
|
-
# @param ImageId:
|
|
69
|
+
# @param ImageId: <p>指定有效的<a href="https://cloud.tencent.com/document/product/213/4940">镜像</a>ID,格式形如<code>img-xxx</code>。目前仅支持公有镜像和特定自定义镜像。</p>
|
|
70
70
|
# @type ImageId: String
|
|
71
|
-
# @param InstanceChargeType:
|
|
71
|
+
# @param InstanceChargeType: <p>节点<a href="https://cloud.tencent.com/document/product/213/2180">计费类型</a>。<br><li>PREPAID:预付费,即包年包月</li><br><li>POSTPAID_BY_HOUR:按小时后付费</li><br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。</li></p>
|
|
72
72
|
# @type InstanceChargeType: String
|
|
73
|
-
# @param InstanceChargePrepaid:
|
|
73
|
+
# @param InstanceChargePrepaid: <p>预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。</p>
|
|
74
74
|
# @type InstanceChargePrepaid: :class:`Tencentcloud::Thpc.v20220401.models.InstanceChargePrepaid`
|
|
75
|
-
# @param InstanceType:
|
|
75
|
+
# @param InstanceType: <p>节点机型。不同实例机型指定了不同的资源规格。<br><li>具体取值可通过调用接口<a href="https://cloud.tencent.com/document/api/213/15749">DescribeInstanceTypeConfigs</a>来获得最新的规格表或参见<a href="https://cloud.tencent.com/document/product/213/11518">实例规格</a>描述。</li></p>
|
|
76
76
|
# @type InstanceType: String
|
|
77
|
-
# @param SystemDisk:
|
|
77
|
+
# @param SystemDisk: <p>节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。</p>
|
|
78
78
|
# @type SystemDisk: Array
|
|
79
|
-
# @param DataDisks:
|
|
79
|
+
# @param DataDisks: <p>节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。</p>
|
|
80
80
|
# @type DataDisks: Array
|
|
81
|
-
# @param InternetAccessible:
|
|
81
|
+
# @param InternetAccessible: <p>公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。</p>
|
|
82
82
|
# @type InternetAccessible: :class:`Tencentcloud::Thpc.v20220401.models.InternetAccessible`
|
|
83
|
-
# @param InstanceName:
|
|
84
|
-
# 不指定节点显示名称则默认显示‘未命名’。
|
|
85
|
-
# 最多支持60个字符。
|
|
83
|
+
# @param InstanceName: <p>节点显示名称。<br>不指定节点显示名称则默认显示‘未命名’。<br>最多支持60个字符。</p>
|
|
86
84
|
# @type InstanceName: String
|
|
87
|
-
# @param LoginSettings:
|
|
85
|
+
# @param LoginSettings: <p>集群登录设置。</p>
|
|
88
86
|
# @type LoginSettings: :class:`Tencentcloud::Thpc.v20220401.models.LoginSettings`
|
|
89
|
-
# @param SecurityGroupIds:
|
|
87
|
+
# @param SecurityGroupIds: <p>集群中实例所属安全组。该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
|
|
90
88
|
# @type SecurityGroupIds: Array
|
|
91
|
-
# @param ClientToken:
|
|
89
|
+
# @param ClientToken: <p>用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。</p>
|
|
92
90
|
# @type ClientToken: String
|
|
93
|
-
# @param QueueName:
|
|
91
|
+
# @param QueueName: <p>队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。</li></p>
|
|
94
92
|
# @type QueueName: String
|
|
95
|
-
# @param NodeRole:
|
|
93
|
+
# @param NodeRole: <p>添加节点角色。默认值:Compute<br><li>Compute:计算节点。</li><br><li>Login:登录节点。</li></p>
|
|
96
94
|
# @type NodeRole: String
|
|
97
|
-
# @param DryRun:
|
|
98
|
-
# true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
|
|
99
|
-
# 如果检查不通过,则返回对应错误码;
|
|
100
|
-
# 如果检查通过,则返回RequestId.
|
|
101
|
-
# false(默认):发送正常请求,通过检查后直接创建实例
|
|
95
|
+
# @param DryRun: <p>是否只预检此次请求。<br>true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。<br>如果检查不通过,则返回对应错误码;<br>如果检查通过,则返回RequestId.<br>false(默认):发送正常请求,通过检查后直接创建实例</p>
|
|
102
96
|
# @type DryRun: Boolean
|
|
103
|
-
# @param NodeType:
|
|
97
|
+
# @param NodeType: <p>添加节点类型。默认取值:STATIC。<li>STATIC:静态节点,不会参与弹性伸缩流程。</li><li>DYNAMIC:弹性节点,会被弹性缩容的节点。管控节点和登录节点不支持此参数。</li></p>
|
|
104
98
|
# @type NodeType: String
|
|
105
99
|
|
|
106
100
|
attr_accessor :Placement, :ClusterId, :VirtualPrivateCloud, :Count, :ImageId, :InstanceChargeType, :InstanceChargePrepaid, :InstanceType, :SystemDisk, :DataDisks, :InternetAccessible, :InstanceName, :LoginSettings, :SecurityGroupIds, :ClientToken, :QueueName, :NodeRole, :DryRun, :NodeType
|
|
@@ -590,47 +584,43 @@ module TencentCloud
|
|
|
590
584
|
|
|
591
585
|
# CreateCluster请求参数结构体
|
|
592
586
|
class CreateClusterRequest < TencentCloud::Common::AbstractModel
|
|
593
|
-
# @param Placement:
|
|
587
|
+
# @param Placement: <p>集群中实例所在的位置。</p>
|
|
594
588
|
# @type Placement: :class:`Tencentcloud::Thpc.v20220401.models.Placement`
|
|
595
|
-
# @param ManagerNode:
|
|
589
|
+
# @param ManagerNode: <p>指定管理节点。</p>
|
|
596
590
|
# @type ManagerNode: :class:`Tencentcloud::Thpc.v20220401.models.ManagerNode`
|
|
597
|
-
# @param ManagerNodeCount:
|
|
591
|
+
# @param ManagerNodeCount: <p>指定管理节点的数量。默认取值:1。取值范围:1~2。</p>
|
|
598
592
|
# @type ManagerNodeCount: Integer
|
|
599
|
-
# @param ComputeNode:
|
|
593
|
+
# @param ComputeNode: <p>指定计算节点。</p>
|
|
600
594
|
# @type ComputeNode: :class:`Tencentcloud::Thpc.v20220401.models.ComputeNode`
|
|
601
|
-
# @param ComputeNodeCount:
|
|
595
|
+
# @param ComputeNodeCount: <p>指定计算节点的数量。默认取值:0。</p>
|
|
602
596
|
# @type ComputeNodeCount: Integer
|
|
603
|
-
# @param SchedulerType:
|
|
597
|
+
# @param SchedulerType: <p>调度器类型。默认取值:SLURM。<br><li>SLURM:SLURM调度器。</li></p>
|
|
604
598
|
# @type SchedulerType: String
|
|
605
|
-
# @param ImageId:
|
|
599
|
+
# @param ImageId: <p>指定有效的<a href="https://cloud.tencent.com/document/product/213/4940">镜像</a>ID,格式形如<code>img-xxx</code>。目前支持部分公有镜像和自定义镜像。</p>
|
|
606
600
|
# @type ImageId: String
|
|
607
|
-
# @param VirtualPrivateCloud:
|
|
601
|
+
# @param VirtualPrivateCloud: <p>私有网络相关信息配置。</p>
|
|
608
602
|
# @type VirtualPrivateCloud: :class:`Tencentcloud::Thpc.v20220401.models.VirtualPrivateCloud`
|
|
609
|
-
# @param LoginSettings:
|
|
603
|
+
# @param LoginSettings: <p>集群登录设置。</p>
|
|
610
604
|
# @type LoginSettings: :class:`Tencentcloud::Thpc.v20220401.models.LoginSettings`
|
|
611
|
-
# @param SecurityGroupIds:
|
|
605
|
+
# @param SecurityGroupIds: <p>集群中实例所属安全组。该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
|
|
612
606
|
# @type SecurityGroupIds: Array
|
|
613
|
-
# @param ClientToken:
|
|
607
|
+
# @param ClientToken: <p>用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。</p>
|
|
614
608
|
# @type ClientToken: String
|
|
615
|
-
# @param DryRun:
|
|
616
|
-
# true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
|
|
617
|
-
# 如果检查不通过,则返回对应错误码;
|
|
618
|
-
# 如果检查通过,则返回RequestId.
|
|
619
|
-
# false(默认):发送正常请求,通过检查后直接创建实例
|
|
609
|
+
# @param DryRun: <p>是否只预检此次请求。<br>true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。<br>如果检查不通过,则返回对应错误码;<br>如果检查通过,则返回RequestId.<br>false(默认):发送正常请求,通过检查后直接创建实例</p>
|
|
620
610
|
# @type DryRun: Boolean
|
|
621
|
-
# @param AccountType:
|
|
611
|
+
# @param AccountType: <p>域名字服务类型。默认取值:NIS。<li>NIS:NIS域名字服务。</li></p>
|
|
622
612
|
# @type AccountType: String
|
|
623
|
-
# @param ClusterName:
|
|
613
|
+
# @param ClusterName: <p>集群显示名称。</p>
|
|
624
614
|
# @type ClusterName: String
|
|
625
|
-
# @param StorageOption:
|
|
615
|
+
# @param StorageOption: <p>集群存储选项</p>
|
|
626
616
|
# @type StorageOption: :class:`Tencentcloud::Thpc.v20220401.models.StorageOption`
|
|
627
|
-
# @param LoginNode:
|
|
617
|
+
# @param LoginNode: <p>指定登录节点。</p>
|
|
628
618
|
# @type LoginNode: :class:`Tencentcloud::Thpc.v20220401.models.LoginNode`
|
|
629
|
-
# @param LoginNodeCount:
|
|
619
|
+
# @param LoginNodeCount: <p>指定登录节点的数量。默认取值:0。取值范围:0~10。</p>
|
|
630
620
|
# @type LoginNodeCount: Integer
|
|
631
|
-
# @param Tags:
|
|
621
|
+
# @param Tags: <p>创建集群时同时绑定的标签对说明。</p>
|
|
632
622
|
# @type Tags: Array
|
|
633
|
-
# @param AutoScalingType:
|
|
623
|
+
# @param AutoScalingType: <p>弹性伸缩类型。<br><li>AS:集群自动扩缩容由<a href="https://cloud.tencent.com/document/product/377/3154">弹性伸缩</a>产品实现。</li><br><li>THPC_AS:集群自动扩缩容由THPC产品内部实现。</li></p>
|
|
634
624
|
# @type AutoScalingType: String
|
|
635
625
|
|
|
636
626
|
attr_accessor :Placement, :ManagerNode, :ManagerNodeCount, :ComputeNode, :ComputeNodeCount, :SchedulerType, :ImageId, :VirtualPrivateCloud, :LoginSettings, :SecurityGroupIds, :ClientToken, :DryRun, :AccountType, :ClusterName, :StorageOption, :LoginNode, :LoginNodeCount, :Tags, :AutoScalingType
|
|
@@ -710,7 +700,7 @@ module TencentCloud
|
|
|
710
700
|
|
|
711
701
|
# CreateCluster返回参数结构体
|
|
712
702
|
class CreateClusterResponse < TencentCloud::Common::AbstractModel
|
|
713
|
-
# @param ClusterId:
|
|
703
|
+
# @param ClusterId: <p>集群ID。</p>
|
|
714
704
|
# @type ClusterId: String
|
|
715
705
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
716
706
|
# @type RequestId: String
|
|
@@ -945,11 +935,11 @@ module TencentCloud
|
|
|
945
935
|
|
|
946
936
|
# DescribeClusterActivities请求参数结构体
|
|
947
937
|
class DescribeClusterActivitiesRequest < TencentCloud::Common::AbstractModel
|
|
948
|
-
# @param ClusterId:
|
|
938
|
+
# @param ClusterId: <p>集群ID。通过该参数指定需要查询活动历史记录的集群。</p>
|
|
949
939
|
# @type ClusterId: String
|
|
950
|
-
# @param Offset:
|
|
940
|
+
# @param Offset: <p>偏移量,默认为0。关于<code>Offset</code>的更进一步介绍请参考 API <a href="https://cloud.tencent.com/document/api/213/15688">简介</a>中的相关小节。</p>
|
|
951
941
|
# @type Offset: Integer
|
|
952
|
-
# @param Limit:
|
|
942
|
+
# @param Limit: <p>返回数量,默认为20,最大值为100。关于<code>Limit</code>的更进一步介绍请参考 API <a href="https://cloud.tencent.com/document/api/213/15688">简介</a>中的相关小节。</p>
|
|
953
943
|
# @type Limit: Integer
|
|
954
944
|
|
|
955
945
|
attr_accessor :ClusterId, :Offset, :Limit
|
|
@@ -969,9 +959,9 @@ module TencentCloud
|
|
|
969
959
|
|
|
970
960
|
# DescribeClusterActivities返回参数结构体
|
|
971
961
|
class DescribeClusterActivitiesResponse < TencentCloud::Common::AbstractModel
|
|
972
|
-
# @param ClusterActivitySet:
|
|
962
|
+
# @param ClusterActivitySet: <p>集群活动历史记录列表。</p>
|
|
973
963
|
# @type ClusterActivitySet: Array
|
|
974
|
-
# @param TotalCount:
|
|
964
|
+
# @param TotalCount: <p>集群活动历史记录数量。</p>
|
|
975
965
|
# @type TotalCount: Integer
|
|
976
966
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
977
967
|
# @type RequestId: String
|
|
@@ -1717,30 +1707,32 @@ module TencentCloud
|
|
|
1717
1707
|
|
|
1718
1708
|
# 扩容队列配置。
|
|
1719
1709
|
class QueueConfig < TencentCloud::Common::AbstractModel
|
|
1720
|
-
# @param QueueName:
|
|
1710
|
+
# @param QueueName: <p>队列名称。</p>
|
|
1721
1711
|
# @type QueueName: String
|
|
1722
|
-
# @param MinSize:
|
|
1712
|
+
# @param MinSize: <p>队列中弹性节点数量最小值。取值范围0~200。</p>
|
|
1723
1713
|
# @type MinSize: Integer
|
|
1724
|
-
# @param MaxSize:
|
|
1714
|
+
# @param MaxSize: <p>队列中弹性节点数量最大值。取值范围0~200。</p>
|
|
1725
1715
|
# @type MaxSize: Integer
|
|
1726
|
-
# @param EnableAutoExpansion:
|
|
1716
|
+
# @param EnableAutoExpansion: <p>是否开启自动扩容。</p>
|
|
1727
1717
|
# @type EnableAutoExpansion: Boolean
|
|
1728
|
-
# @param EnableAutoShrink:
|
|
1718
|
+
# @param EnableAutoShrink: <p>是否开启自动缩容。</p>
|
|
1729
1719
|
# @type EnableAutoShrink: Boolean
|
|
1730
|
-
# @param ImageId:
|
|
1720
|
+
# @param ImageId: <p>指定有效的<a href="https://cloud.tencent.com/document/product/213/4940">镜像</a>ID,格式形如<code>img-xxx</code>。目前仅支持公有镜和特定自定义镜像。</p>
|
|
1731
1721
|
# @type ImageId: String
|
|
1732
|
-
# @param SystemDisk:
|
|
1722
|
+
# @param SystemDisk: <p>节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。</p>
|
|
1733
1723
|
# @type SystemDisk: :class:`Tencentcloud::Thpc.v20220401.models.SystemDisk`
|
|
1734
|
-
# @param DataDisks:
|
|
1724
|
+
# @param DataDisks: <p>节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。</p>
|
|
1735
1725
|
# @type DataDisks: Array
|
|
1736
|
-
# @param InternetAccessible:
|
|
1726
|
+
# @param InternetAccessible: <p>公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。</p>
|
|
1737
1727
|
# @type InternetAccessible: :class:`Tencentcloud::Thpc.v20220401.models.InternetAccessible`
|
|
1738
|
-
# @param ExpansionNodeConfigs:
|
|
1728
|
+
# @param ExpansionNodeConfigs: <p>扩容节点配置信息。</p>
|
|
1739
1729
|
# @type ExpansionNodeConfigs: Array
|
|
1730
|
+
# @param LaunchTemplateIds: <p>扩容实例模板,可以在cvm侧进行设置</p>
|
|
1731
|
+
# @type LaunchTemplateIds: Array
|
|
1740
1732
|
|
|
1741
|
-
attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ImageId, :SystemDisk, :DataDisks, :InternetAccessible, :ExpansionNodeConfigs
|
|
1733
|
+
attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ImageId, :SystemDisk, :DataDisks, :InternetAccessible, :ExpansionNodeConfigs, :LaunchTemplateIds
|
|
1742
1734
|
|
|
1743
|
-
def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, imageid=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, expansionnodeconfigs=nil)
|
|
1735
|
+
def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, imageid=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, expansionnodeconfigs=nil, launchtemplateids=nil)
|
|
1744
1736
|
@QueueName = queuename
|
|
1745
1737
|
@MinSize = minsize
|
|
1746
1738
|
@MaxSize = maxsize
|
|
@@ -1751,6 +1743,7 @@ module TencentCloud
|
|
|
1751
1743
|
@DataDisks = datadisks
|
|
1752
1744
|
@InternetAccessible = internetaccessible
|
|
1753
1745
|
@ExpansionNodeConfigs = expansionnodeconfigs
|
|
1746
|
+
@LaunchTemplateIds = launchtemplateids
|
|
1754
1747
|
end
|
|
1755
1748
|
|
|
1756
1749
|
def deserialize(params)
|
|
@@ -1784,6 +1777,7 @@ module TencentCloud
|
|
|
1784
1777
|
@ExpansionNodeConfigs << expansionnodeconfig_tmp
|
|
1785
1778
|
end
|
|
1786
1779
|
end
|
|
1780
|
+
@LaunchTemplateIds = params['LaunchTemplateIds']
|
|
1787
1781
|
end
|
|
1788
1782
|
end
|
|
1789
1783
|
|
|
@@ -1848,19 +1842,15 @@ module TencentCloud
|
|
|
1848
1842
|
|
|
1849
1843
|
# SetAutoScalingConfiguration请求参数结构体
|
|
1850
1844
|
class SetAutoScalingConfigurationRequest < TencentCloud::Common::AbstractModel
|
|
1851
|
-
# @param ClusterId:
|
|
1845
|
+
# @param ClusterId: <p>集群ID。</p>
|
|
1852
1846
|
# @type ClusterId: String
|
|
1853
|
-
# @param ExpansionBusyTime:
|
|
1847
|
+
# @param ExpansionBusyTime: <p>任务连续等待时间,队列的任务处于连续等待的时间。单位秒。默认值120。</p>
|
|
1854
1848
|
# @type ExpansionBusyTime: Integer
|
|
1855
|
-
# @param ShrinkIdleTime:
|
|
1849
|
+
# @param ShrinkIdleTime: <p>节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。单位秒。默认值300。</p>
|
|
1856
1850
|
# @type ShrinkIdleTime: Integer
|
|
1857
|
-
# @param QueueConfigs:
|
|
1851
|
+
# @param QueueConfigs: <p>扩容队列配置列表。</p>
|
|
1858
1852
|
# @type QueueConfigs: Array
|
|
1859
|
-
# @param DryRun:
|
|
1860
|
-
# true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。
|
|
1861
|
-
# 如果检查不通过,则返回对应错误码;
|
|
1862
|
-
# 如果检查通过,则返回RequestId。
|
|
1863
|
-
# false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。
|
|
1853
|
+
# @param DryRun: <p>是否只预检此次请求。<br>true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。<br>如果检查不通过,则返回对应错误码;<br>如果检查通过,则返回RequestId。<br>false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。</p>
|
|
1864
1854
|
# @type DryRun: Boolean
|
|
1865
1855
|
|
|
1866
1856
|
attr_accessor :ClusterId, :ExpansionBusyTime, :ShrinkIdleTime, :QueueConfigs, :DryRun
|
data/lib/v20230321/client.rb
CHANGED
|
@@ -636,6 +636,30 @@ module TencentCloud
|
|
|
636
636
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
637
637
|
end
|
|
638
638
|
|
|
639
|
+
# 本接口用于修改节点属性
|
|
640
|
+
|
|
641
|
+
# @param request: Request instance for ModifyNodeAttribute.
|
|
642
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::ModifyNodeAttributeRequest`
|
|
643
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::ModifyNodeAttributeResponse`
|
|
644
|
+
def ModifyNodeAttribute(request)
|
|
645
|
+
body = send_request('ModifyNodeAttribute', request.serialize)
|
|
646
|
+
response = JSON.parse(body)
|
|
647
|
+
if response['Response'].key?('Error') == false
|
|
648
|
+
model = ModifyNodeAttributeResponse.new
|
|
649
|
+
model.deserialize(response['Response'])
|
|
650
|
+
model
|
|
651
|
+
else
|
|
652
|
+
code = response['Response']['Error']['Code']
|
|
653
|
+
message = response['Response']['Error']['Message']
|
|
654
|
+
reqid = response['Response']['RequestId']
|
|
655
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
656
|
+
end
|
|
657
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
658
|
+
raise e
|
|
659
|
+
rescue StandardError => e
|
|
660
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
661
|
+
end
|
|
662
|
+
|
|
639
663
|
# 本接口 (ModifyWorkspacesAttribute) 用于修改工作空间的属性(目前只支持修改工作空间的名称)。
|
|
640
664
|
|
|
641
665
|
# @param request: Request instance for ModifyWorkspacesAttribute.
|
data/lib/v20230321/models.rb
CHANGED
|
@@ -58,53 +58,47 @@ module TencentCloud
|
|
|
58
58
|
|
|
59
59
|
# AddNodes请求参数结构体
|
|
60
60
|
class AddNodesRequest < TencentCloud::Common::AbstractModel
|
|
61
|
-
# @param Placement:
|
|
61
|
+
# @param Placement: <p>集群中实例所在的位置。</p>
|
|
62
62
|
# @type Placement: :class:`Tencentcloud::Thpc.v20230321.models.Placement`
|
|
63
|
-
# @param ClusterId:
|
|
63
|
+
# @param ClusterId: <p>集群ID。</p>
|
|
64
64
|
# @type ClusterId: String
|
|
65
|
-
# @param VirtualPrivateCloud:
|
|
65
|
+
# @param VirtualPrivateCloud: <p>私有网络相关信息配置。</p>
|
|
66
66
|
# @type VirtualPrivateCloud: :class:`Tencentcloud::Thpc.v20230321.models.VirtualPrivateCloud`
|
|
67
|
-
# @param Count:
|
|
67
|
+
# @param Count: <p>添加节点数量。</p>
|
|
68
68
|
# @type Count: Integer
|
|
69
|
-
# @param ImageId:
|
|
69
|
+
# @param ImageId: <p>指定有效的<a href="https://cloud.tencent.com/document/product/213/4940">镜像</a>ID,格式形如<code>img-xxx</code>。目前支持部分公有镜像和自定义镜像。公共镜像请参考<a href="https://cloud.tencent.com/document/product/1527/64818#.E9.95.9C.E5.83.8F">镜像限制</a></p>
|
|
70
70
|
# @type ImageId: String
|
|
71
|
-
# @param InstanceChargeType:
|
|
71
|
+
# @param InstanceChargeType: <p>节点<a href="https://cloud.tencent.com/document/product/213/2180">计费类型</a>。<br><li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:按小时后付费</li><li>SPOTPAID:竞价付费</li>默认值:POSTPAID_BY_HOUR。</p>
|
|
72
72
|
# @type InstanceChargeType: String
|
|
73
|
-
# @param InstanceChargePrepaid:
|
|
73
|
+
# @param InstanceChargePrepaid: <p>预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。</p>
|
|
74
74
|
# @type InstanceChargePrepaid: :class:`Tencentcloud::Thpc.v20230321.models.InstanceChargePrepaid`
|
|
75
|
-
# @param InstanceType:
|
|
75
|
+
# @param InstanceType: <p>节点机型。不同实例机型指定了不同的资源规格。<br><li>具体取值可通过调用接口<a href="https://cloud.tencent.com/document/api/213/15749">DescribeInstanceTypeConfigs</a>来获得最新的规格表或参见<a href="https://cloud.tencent.com/document/product/213/11518">实例规格</a>描述。</li></p>
|
|
76
76
|
# @type InstanceType: String
|
|
77
|
-
# @param SystemDisk:
|
|
77
|
+
# @param SystemDisk: <p>节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。</p>
|
|
78
78
|
# @type SystemDisk: :class:`Tencentcloud::Thpc.v20230321.models.SystemDisk`
|
|
79
|
-
# @param DataDisks:
|
|
79
|
+
# @param DataDisks: <p>节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。</p>
|
|
80
80
|
# @type DataDisks: Array
|
|
81
|
-
# @param InternetAccessible:
|
|
81
|
+
# @param InternetAccessible: <p>公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。</p>
|
|
82
82
|
# @type InternetAccessible: :class:`Tencentcloud::Thpc.v20230321.models.InternetAccessible`
|
|
83
|
-
# @param InstanceName:
|
|
84
|
-
# 不指定节点显示名称则默认显示‘未命名’。
|
|
85
|
-
# 最多支持60个字符。
|
|
83
|
+
# @param InstanceName: <p>节点显示名称。<br>不指定节点显示名称则默认显示‘未命名’。<br>最多支持60个字符。</p>
|
|
86
84
|
# @type InstanceName: String
|
|
87
|
-
# @param LoginSettings:
|
|
85
|
+
# @param LoginSettings: <p>集群登录设置。</p>
|
|
88
86
|
# @type LoginSettings: :class:`Tencentcloud::Thpc.v20230321.models.LoginSettings`
|
|
89
|
-
# @param SecurityGroupIds:
|
|
87
|
+
# @param SecurityGroupIds: <p>集群中实例所属安全组。该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
|
|
90
88
|
# @type SecurityGroupIds: Array
|
|
91
|
-
# @param ClientToken:
|
|
89
|
+
# @param ClientToken: <p>用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。</p>
|
|
92
90
|
# @type ClientToken: String
|
|
93
|
-
# @param QueueName:
|
|
91
|
+
# @param QueueName: <p>队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。</li></p>
|
|
94
92
|
# @type QueueName: String
|
|
95
|
-
# @param NodeRole:
|
|
93
|
+
# @param NodeRole: <p>添加节点角色。默认值:Compute<br><li>Compute:计算节点。</li><li>Login:登录节点。</li></p>
|
|
96
94
|
# @type NodeRole: String
|
|
97
|
-
# @param DryRun:
|
|
98
|
-
# true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
|
|
99
|
-
# 如果检查不通过,则返回对应错误码;
|
|
100
|
-
# 如果检查通过,则返回RequestId.
|
|
101
|
-
# false(默认):发送正常请求,通过检查后直接创建实例
|
|
95
|
+
# @param DryRun: <p>是否只预检此次请求。<br>true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。<br>如果检查不通过,则返回对应错误码;<br>如果检查通过,则返回RequestId.<br>false(默认):发送正常请求,通过检查后直接创建实例</p>
|
|
102
96
|
# @type DryRun: Boolean
|
|
103
|
-
# @param NodeType:
|
|
97
|
+
# @param NodeType: <p>添加节点类型。默认取值:STATIC。<li>STATIC:静态节点,不会参与弹性伸缩流程。</li><li>DYNAMIC:弹性节点,会被弹性缩容的节点。管控节点和登录节点不支持此参数。</li></p>
|
|
104
98
|
# @type NodeType: String
|
|
105
|
-
# @param ProjectId:
|
|
99
|
+
# @param ProjectId: <p>实例所属项目ID。该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/651/78725">DescribeProject</a> 的返回值中的 projectId 字段来获取。不填为默认项目。</p>
|
|
106
100
|
# @type ProjectId: Integer
|
|
107
|
-
# @param ResourceType:
|
|
101
|
+
# @param ResourceType: <p>要新增节点的资源类型。<li>CVM:CVM实例类型资源</li><li>WORKSPACE:工作空间类型实例资源</li>默认值:CVM。</p>
|
|
108
102
|
# @type ResourceType: String
|
|
109
103
|
|
|
110
104
|
attr_accessor :Placement, :ClusterId, :VirtualPrivateCloud, :Count, :ImageId, :InstanceChargeType, :InstanceChargePrepaid, :InstanceType, :SystemDisk, :DataDisks, :InternetAccessible, :InstanceName, :LoginSettings, :SecurityGroupIds, :ClientToken, :QueueName, :NodeRole, :DryRun, :NodeType, :ProjectId, :ResourceType
|
|
@@ -715,56 +709,49 @@ module TencentCloud
|
|
|
715
709
|
|
|
716
710
|
# CreateCluster请求参数结构体
|
|
717
711
|
class CreateClusterRequest < TencentCloud::Common::AbstractModel
|
|
718
|
-
# @param Placement:
|
|
712
|
+
# @param Placement: <p>集群中实例所在的位置。</p>
|
|
719
713
|
# @type Placement: :class:`Tencentcloud::Thpc.v20230321.models.Placement`
|
|
720
|
-
# @param ManagerNode:
|
|
714
|
+
# @param ManagerNode: <p>指定管理节点。</p>
|
|
721
715
|
# @type ManagerNode: :class:`Tencentcloud::Thpc.v20230321.models.ManagerNode`
|
|
722
|
-
# @param ManagerNodeCount:
|
|
716
|
+
# @param ManagerNodeCount: <p>指定管理节点的数量。默认取值:1。取值范围:1~2。</p>
|
|
723
717
|
# @type ManagerNodeCount: Integer
|
|
724
|
-
# @param ComputeNode:
|
|
718
|
+
# @param ComputeNode: <p>指定计算节点。</p>
|
|
725
719
|
# @type ComputeNode: :class:`Tencentcloud::Thpc.v20230321.models.ComputeNode`
|
|
726
|
-
# @param ComputeNodeCount:
|
|
720
|
+
# @param ComputeNodeCount: <p>指定计算节点的数量。默认取值:0。</p>
|
|
727
721
|
# @type ComputeNodeCount: Integer
|
|
728
|
-
# @param SchedulerType:
|
|
722
|
+
# @param SchedulerType: <p>调度器类型。默认取值:SLURM。<li>SLURM:SLURM调度器。</li></p>
|
|
729
723
|
# @type SchedulerType: String
|
|
730
|
-
# @param SchedulerVersion:
|
|
731
|
-
# 各调度器支持的集群版本:
|
|
732
|
-
# <li>SLURM:21.08.8、23.11.7</li>
|
|
724
|
+
# @param SchedulerVersion: <p>创建调度器的版本号,可填写版本号为“latest” 和 各调度器支持的版本号;如果是"latest", 则代表创建的是平台当前支持的该类型调度器最新版本。如果不填写,默认创建的是“latest”版本调度器<br>各调度器支持的集群版本:</p><li>SLURM:21.08.8、23.11.7</li>
|
|
733
725
|
# @type SchedulerVersion: String
|
|
734
|
-
# @param ImageId:
|
|
726
|
+
# @param ImageId: <p>指定有效的<a href="https://cloud.tencent.com/document/product/213/4940">镜像</a>ID,格式形如<code>img-xxx</code>。目前支持部分公有镜像和自定义镜像。公共镜像请参考<a href="https://cloud.tencent.com/document/product/1527/64818#.E9.95.9C.E5.83.8F">镜像限制</a></p>
|
|
735
727
|
# @type ImageId: String
|
|
736
|
-
# @param VirtualPrivateCloud:
|
|
728
|
+
# @param VirtualPrivateCloud: <p>私有网络相关信息配置。</p>
|
|
737
729
|
# @type VirtualPrivateCloud: :class:`Tencentcloud::Thpc.v20230321.models.VirtualPrivateCloud`
|
|
738
|
-
# @param LoginSettings:
|
|
730
|
+
# @param LoginSettings: <p>集群登录设置。</p>
|
|
739
731
|
# @type LoginSettings: :class:`Tencentcloud::Thpc.v20230321.models.LoginSettings`
|
|
740
|
-
# @param SecurityGroupIds:
|
|
732
|
+
# @param SecurityGroupIds: <p>集群中实例所属安全组。该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
|
|
741
733
|
# @type SecurityGroupIds: Array
|
|
742
|
-
# @param ClientToken:
|
|
734
|
+
# @param ClientToken: <p>用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。</p>
|
|
743
735
|
# @type ClientToken: String
|
|
744
|
-
# @param DryRun:
|
|
745
|
-
# true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
|
|
746
|
-
# 如果检查不通过,则返回对应错误码;
|
|
747
|
-
# 如果检查通过,则返回RequestId.
|
|
748
|
-
# false(默认):发送正常请求,通过检查后直接创建实例
|
|
736
|
+
# @param DryRun: <p>是否只预检此次请求。<br>true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。<br>如果检查不通过,则返回对应错误码;<br>如果检查通过,则返回RequestId.<br>false(默认):发送正常请求,通过检查后直接创建实例</p>
|
|
749
737
|
# @type DryRun: Boolean
|
|
750
|
-
# @param AccountType:
|
|
751
|
-
# <li>NIS:NIS域名字服务。</li>
|
|
738
|
+
# @param AccountType: <p>域名字服务类型。默认取值:NIS。</p><li>NIS:NIS域名字服务。</li>
|
|
752
739
|
# @type AccountType: String
|
|
753
|
-
# @param ClusterName:
|
|
740
|
+
# @param ClusterName: <p>集群显示名称。</p>
|
|
754
741
|
# @type ClusterName: String
|
|
755
|
-
# @param StorageOption:
|
|
742
|
+
# @param StorageOption: <p>集群存储选项</p>
|
|
756
743
|
# @type StorageOption: :class:`Tencentcloud::Thpc.v20230321.models.StorageOption`
|
|
757
|
-
# @param LoginNode:
|
|
744
|
+
# @param LoginNode: <p>指定登录节点。</p>
|
|
758
745
|
# @type LoginNode: :class:`Tencentcloud::Thpc.v20230321.models.LoginNode`
|
|
759
|
-
# @param LoginNodeCount:
|
|
746
|
+
# @param LoginNodeCount: <p>指定登录节点的数量。默认取值:0。取值范围:0~10。</p>
|
|
760
747
|
# @type LoginNodeCount: Integer
|
|
761
|
-
# @param Tags:
|
|
748
|
+
# @param Tags: <p>创建集群时同时绑定的标签对说明。</p>
|
|
762
749
|
# @type Tags: Array
|
|
763
|
-
# @param AutoScalingType:
|
|
750
|
+
# @param AutoScalingType: <p>弹性伸缩类型。默认值:THPC_AS</p>
|
|
764
751
|
# @type AutoScalingType: String
|
|
765
|
-
# @param InitNodeScripts:
|
|
752
|
+
# @param InitNodeScripts: <p>节点初始化脚本信息列表。</p>
|
|
766
753
|
# @type InitNodeScripts: Array
|
|
767
|
-
# @param HpcClusterId:
|
|
754
|
+
# @param HpcClusterId: <p>高性能计算集群ID。若创建的实例为高性能计算实例,需指定实例放置的集群,否则不可指定。</p>
|
|
768
755
|
# @type HpcClusterId: String
|
|
769
756
|
|
|
770
757
|
attr_accessor :Placement, :ManagerNode, :ManagerNodeCount, :ComputeNode, :ComputeNodeCount, :SchedulerType, :SchedulerVersion, :ImageId, :VirtualPrivateCloud, :LoginSettings, :SecurityGroupIds, :ClientToken, :DryRun, :AccountType, :ClusterName, :StorageOption, :LoginNode, :LoginNodeCount, :Tags, :AutoScalingType, :InitNodeScripts, :HpcClusterId
|
|
@@ -857,7 +844,7 @@ module TencentCloud
|
|
|
857
844
|
|
|
858
845
|
# CreateCluster返回参数结构体
|
|
859
846
|
class CreateClusterResponse < TencentCloud::Common::AbstractModel
|
|
860
|
-
# @param ClusterId:
|
|
847
|
+
# @param ClusterId: <p>集群ID。</p>
|
|
861
848
|
# @type ClusterId: String
|
|
862
849
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
863
850
|
# @type RequestId: String
|
|
@@ -1281,11 +1268,11 @@ module TencentCloud
|
|
|
1281
1268
|
|
|
1282
1269
|
# DescribeClusterActivities请求参数结构体
|
|
1283
1270
|
class DescribeClusterActivitiesRequest < TencentCloud::Common::AbstractModel
|
|
1284
|
-
# @param ClusterId:
|
|
1271
|
+
# @param ClusterId: <p>集群ID。通过该参数指定需要查询活动历史记录的集群。</p>
|
|
1285
1272
|
# @type ClusterId: String
|
|
1286
|
-
# @param Offset:
|
|
1273
|
+
# @param Offset: <p>偏移量,默认为0。关于<code>Offset</code>的更进一步介绍请参考 API <a href="https://cloud.tencent.com/document/api/213/15688">简介</a>中的相关小节。</p>
|
|
1287
1274
|
# @type Offset: Integer
|
|
1288
|
-
# @param Limit:
|
|
1275
|
+
# @param Limit: <p>返回数量,默认为20,最大值为100。关于<code>Limit</code>的更进一步介绍请参考 API <a href="https://cloud.tencent.com/document/api/213/15688">简介</a>中的相关小节。</p>
|
|
1289
1276
|
# @type Limit: Integer
|
|
1290
1277
|
|
|
1291
1278
|
attr_accessor :ClusterId, :Offset, :Limit
|
|
@@ -1305,9 +1292,9 @@ module TencentCloud
|
|
|
1305
1292
|
|
|
1306
1293
|
# DescribeClusterActivities返回参数结构体
|
|
1307
1294
|
class DescribeClusterActivitiesResponse < TencentCloud::Common::AbstractModel
|
|
1308
|
-
# @param ClusterActivitySet:
|
|
1295
|
+
# @param ClusterActivitySet: <p>集群活动历史记录列表。</p>
|
|
1309
1296
|
# @type ClusterActivitySet: Array
|
|
1310
|
-
# @param TotalCount:
|
|
1297
|
+
# @param TotalCount: <p>集群活动历史记录数量。</p>
|
|
1311
1298
|
# @type TotalCount: Integer
|
|
1312
1299
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1313
1300
|
# @type RequestId: String
|
|
@@ -1769,13 +1756,13 @@ module TencentCloud
|
|
|
1769
1756
|
|
|
1770
1757
|
# DescribeWorkspaces请求参数结构体
|
|
1771
1758
|
class DescribeWorkspacesRequest < TencentCloud::Common::AbstractModel
|
|
1772
|
-
# @param SpaceIds:
|
|
1759
|
+
# @param SpaceIds: <p>集群ID列表。通过该参数可以指定需要查询信息的集群列表。<br>如果您不指定该参数,则返回Limit数量以内的集群信息。</p>
|
|
1773
1760
|
# @type SpaceIds: Array
|
|
1774
|
-
# @param Offset:
|
|
1761
|
+
# @param Offset: <p>偏移量,默认为0。关于<code>Offset</code>的更进一步介绍请参考 API <a href="https://cloud.tencent.com/document/api/213/15688">简介</a>中的相关小节。</p>
|
|
1775
1762
|
# @type Offset: Integer
|
|
1776
|
-
# @param Limit:
|
|
1763
|
+
# @param Limit: <p>返回数量,默认为20,最大值为100。关于<code>Limit</code>的更进一步介绍请参考 API <a href="https://cloud.tencent.com/document/api/213/15688">简介</a>中的相关小节。</p>
|
|
1777
1764
|
# @type Limit: Integer
|
|
1778
|
-
# @param Filters: <ul> <li> <strong>zone</strong> <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>space-id</strong> <p style="padding-left: 30px;">按照【<strong>工作空间实例ID</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>cvm-instance-id</strong> <p style="padding-left: 30px;">按照【<strong>CVM实例ID</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>space-state</strong> <p style="padding-left: 30px;">按照【<strong>工作空间状态</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>space-name</strong> <p style="padding-left: 30px;">按照【<strong>工作空间别名</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>space-charge-type</strong> <p style="padding-left: 30px;">按照【<strong>工作空间实例付费模式</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>tag-key</strong> <p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>tag-value</strong> <p style="padding-left: 30px;">按照【<strong>标签值</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> </ul> <p style="padding-left: 30px;"
|
|
1765
|
+
# @param Filters: <ul> <li> <strong>zone</strong> <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>space-id</strong> <p style="padding-left: 30px;">按照【<strong>工作空间实例ID</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>cvm-instance-id</strong> <p style="padding-left: 30px;">按照【<strong>CVM实例ID</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>space-state</strong> <p style="padding-left: 30px;">按照【<strong>工作空间状态</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>space-name</strong> <p style="padding-left: 30px;">按照【<strong>工作空间别名</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>space-charge-type</strong> <p style="padding-left: 30px;">按照【<strong>工作空间实例付费模式</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>tag-key</strong> <p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> <li> <strong>tag-value</strong> <p style="padding-left: 30px;">按照【<strong>标签值</strong>】进行过滤</p> <p style="padding-left: 30px;">类型:String</p> <p style="padding-left: 30px;">必选:否</p></li> </ul> <p style="padding-left: 30px;">每次请求的<code>Filters</code>的上限为10,<code>Filter.Values</code>的上限为5。</p>
|
|
1779
1766
|
# @type Filters: Array
|
|
1780
1767
|
|
|
1781
1768
|
attr_accessor :SpaceIds, :Offset, :Limit, :Filters
|
|
@@ -1804,9 +1791,9 @@ module TencentCloud
|
|
|
1804
1791
|
|
|
1805
1792
|
# DescribeWorkspaces返回参数结构体
|
|
1806
1793
|
class DescribeWorkspacesResponse < TencentCloud::Common::AbstractModel
|
|
1807
|
-
# @param SpaceSet:
|
|
1794
|
+
# @param SpaceSet: <p>集群概览信息列表</p>
|
|
1808
1795
|
# @type SpaceSet: Array
|
|
1809
|
-
# @param TotalCount:
|
|
1796
|
+
# @param TotalCount: <p>集群数量</p>
|
|
1810
1797
|
# @type TotalCount: Integer
|
|
1811
1798
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1812
1799
|
# @type RequestId: String
|
|
@@ -2596,6 +2583,50 @@ module TencentCloud
|
|
|
2596
2583
|
end
|
|
2597
2584
|
end
|
|
2598
2585
|
|
|
2586
|
+
# ModifyNodeAttribute请求参数结构体
|
|
2587
|
+
class ModifyNodeAttributeRequest < TencentCloud::Common::AbstractModel
|
|
2588
|
+
# @param NodeId: <p>节点ID,节点ID通过调用接口 <a href="https://cloud.tencent.com/document/api/1527/89569">DescribeNodes</a>获取。</p>
|
|
2589
|
+
# @type NodeId: String
|
|
2590
|
+
# @param NodeName: <p>节点别名</p>
|
|
2591
|
+
# @type NodeName: String
|
|
2592
|
+
# @param NodeAllocateState: <p>资源的分配状态: - IDLE: 资源空闲 - ISOLATE: 资源隔离</p>
|
|
2593
|
+
# @type NodeAllocateState: String
|
|
2594
|
+
# @param QueueName: <p>目标队列名</p>
|
|
2595
|
+
# @type QueueName: String
|
|
2596
|
+
|
|
2597
|
+
attr_accessor :NodeId, :NodeName, :NodeAllocateState, :QueueName
|
|
2598
|
+
|
|
2599
|
+
def initialize(nodeid=nil, nodename=nil, nodeallocatestate=nil, queuename=nil)
|
|
2600
|
+
@NodeId = nodeid
|
|
2601
|
+
@NodeName = nodename
|
|
2602
|
+
@NodeAllocateState = nodeallocatestate
|
|
2603
|
+
@QueueName = queuename
|
|
2604
|
+
end
|
|
2605
|
+
|
|
2606
|
+
def deserialize(params)
|
|
2607
|
+
@NodeId = params['NodeId']
|
|
2608
|
+
@NodeName = params['NodeName']
|
|
2609
|
+
@NodeAllocateState = params['NodeAllocateState']
|
|
2610
|
+
@QueueName = params['QueueName']
|
|
2611
|
+
end
|
|
2612
|
+
end
|
|
2613
|
+
|
|
2614
|
+
# ModifyNodeAttribute返回参数结构体
|
|
2615
|
+
class ModifyNodeAttributeResponse < TencentCloud::Common::AbstractModel
|
|
2616
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2617
|
+
# @type RequestId: String
|
|
2618
|
+
|
|
2619
|
+
attr_accessor :RequestId
|
|
2620
|
+
|
|
2621
|
+
def initialize(requestid=nil)
|
|
2622
|
+
@RequestId = requestid
|
|
2623
|
+
end
|
|
2624
|
+
|
|
2625
|
+
def deserialize(params)
|
|
2626
|
+
@RequestId = params['RequestId']
|
|
2627
|
+
end
|
|
2628
|
+
end
|
|
2629
|
+
|
|
2599
2630
|
# ModifyWorkspacesAttribute请求参数结构体
|
|
2600
2631
|
class ModifyWorkspacesAttributeRequest < TencentCloud::Common::AbstractModel
|
|
2601
2632
|
# @param SpaceIds: 工作空间列表
|
|
@@ -2827,51 +2858,46 @@ module TencentCloud
|
|
|
2827
2858
|
|
|
2828
2859
|
# 扩容队列配置。
|
|
2829
2860
|
class QueueConfig < TencentCloud::Common::AbstractModel
|
|
2830
|
-
# @param QueueName:
|
|
2861
|
+
# @param QueueName: <p>队列名称。</p>
|
|
2831
2862
|
# @type QueueName: String
|
|
2832
|
-
# @param MinSize:
|
|
2863
|
+
# @param MinSize: <p>队列中弹性节点数量最小值。默认值:0。取值范围:0~200。</p>
|
|
2833
2864
|
# @type MinSize: Integer
|
|
2834
|
-
# @param MaxSize:
|
|
2865
|
+
# @param MaxSize: <p>队列中弹性节点数量最大值。默认值:10。取值范围:0~200。</p>
|
|
2835
2866
|
# @type MaxSize: Integer
|
|
2836
|
-
# @param EnableAutoExpansion:
|
|
2867
|
+
# @param EnableAutoExpansion: <p>是否开启自动扩容。</p>
|
|
2837
2868
|
# @type EnableAutoExpansion: Boolean
|
|
2838
|
-
# @param EnableAutoShrink:
|
|
2869
|
+
# @param EnableAutoShrink: <p>是否开启自动缩容。</p>
|
|
2839
2870
|
# @type EnableAutoShrink: Boolean
|
|
2840
|
-
# @param ImageId:
|
|
2871
|
+
# @param ImageId: <p>指定有效的<a href="https://cloud.tencent.com/document/product/213/4940">镜像</a>ID,格式形如<code>img-xxx</code>。目前仅支持公有镜和特定自定义镜像。</p>
|
|
2841
2872
|
# @type ImageId: String
|
|
2842
|
-
# @param SystemDisk:
|
|
2873
|
+
# @param SystemDisk: <p>节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。</p>
|
|
2843
2874
|
# @type SystemDisk: :class:`Tencentcloud::Thpc.v20230321.models.SystemDisk`
|
|
2844
|
-
# @param DataDisks:
|
|
2875
|
+
# @param DataDisks: <p>节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。</p>
|
|
2845
2876
|
# @type DataDisks: Array
|
|
2846
|
-
# @param InternetAccessible:
|
|
2877
|
+
# @param InternetAccessible: <p>公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。</p>
|
|
2847
2878
|
# @type InternetAccessible: :class:`Tencentcloud::Thpc.v20230321.models.InternetAccessible`
|
|
2848
|
-
# @param ExpansionNodeConfigs:
|
|
2879
|
+
# @param ExpansionNodeConfigs: <p>扩容节点配置信息。</p>
|
|
2849
2880
|
# @type ExpansionNodeConfigs: Array
|
|
2850
|
-
# @param DesiredIdleNodeCapacity:
|
|
2881
|
+
# @param DesiredIdleNodeCapacity: <p>队列中期望的空闲节点数量(包含弹性节点和静态节点)。默认值:0。队列中,处于空闲状态的节点小于此值,集群会扩容弹性节点;处于空闲状态的节点大于此值,集群会缩容弹性节点。</p>
|
|
2851
2882
|
# @type DesiredIdleNodeCapacity: Integer
|
|
2852
|
-
# @param DesiredNodeCount:
|
|
2883
|
+
# @param DesiredNodeCount: <p>队列中期望的总节点数。</p>
|
|
2853
2884
|
# @type DesiredNodeCount: Integer
|
|
2854
|
-
# @param ScaleOutRatio:
|
|
2855
|
-
# 如果扩容比例为50,那么每轮只会扩容当前作业负载所需的50%数量的节点。
|
|
2885
|
+
# @param ScaleOutRatio: <p>扩容比例。默认值:100。取值范围:1~100。<br>如果扩容比例为50,那么每轮只会扩容当前作业负载所需的50%数量的节点。</p>
|
|
2856
2886
|
# @type ScaleOutRatio: Integer
|
|
2857
|
-
# @param ScaleOutNodeThreshold:
|
|
2858
|
-
# 当作业负载需要扩容节点数量大于此值,当前扩容轮次按照ScaleOutRatio配置的比例进行扩容。当作业负载需要扩容节点数量小于此值,当前扩容轮次扩容当前作业负载所需数量的节点。
|
|
2859
|
-
# 此参数配合ScaleOutRatio参数进行使用,用于比例扩容场景下,在作业负载所需节点数量较小时,加快收敛速度。
|
|
2887
|
+
# @param ScaleOutNodeThreshold: <p>比例扩容阈值。默认值:0。取值范围:0~200。<br>当作业负载需要扩容节点数量大于此值,当前扩容轮次按照ScaleOutRatio配置的比例进行扩容。当作业负载需要扩容节点数量小于此值,当前扩容轮次扩容当前作业负载所需数量的节点。<br>此参数配合ScaleOutRatio参数进行使用,用于比例扩容场景下,在作业负载所需节点数量较小时,加快收敛速度。</p>
|
|
2860
2888
|
# @type ScaleOutNodeThreshold: Integer
|
|
2861
|
-
# @param MaxNodesPerCycle:
|
|
2889
|
+
# @param MaxNodesPerCycle: <p>每轮扩容最大节点个数。默认值:100。取值范围:1~100。</p>
|
|
2862
2890
|
# @type MaxNodesPerCycle: Integer
|
|
2863
|
-
# @param ScaleUpMemRatio:
|
|
2864
|
-
# 针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,
|
|
2865
|
-
|
|
2866
|
-
# - 当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。
|
|
2867
|
-
# - 当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。
|
|
2891
|
+
# @param ScaleUpMemRatio: <p>扩容过程中,作业的内存在匹配实例机型时增大比例(不会影响作业提交的内存大小,只影响匹配计算过程)。<br><br>针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,</p><ul><li>当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。</li><li>当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。</li></ul>
|
|
2868
2892
|
# @type ScaleUpMemRatio: Integer
|
|
2869
|
-
# @param EnhancedService:
|
|
2893
|
+
# @param EnhancedService: <p>增强服务。通过该参数可以指定是否开启云安全、腾讯云可观测平台等服务。若不指定该参数,则默认开启腾讯云可观测平台、云安全服务、自动化助手服务。</p>
|
|
2870
2894
|
# @type EnhancedService: :class:`Tencentcloud::Thpc.v20230321.models.EnhancedService`
|
|
2895
|
+
# @param LaunchTemplateIds: <p>扩容实例模板,可以在cvm侧进行设置</p>
|
|
2896
|
+
# @type LaunchTemplateIds: Array
|
|
2871
2897
|
|
|
2872
|
-
attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ImageId, :SystemDisk, :DataDisks, :InternetAccessible, :ExpansionNodeConfigs, :DesiredIdleNodeCapacity, :DesiredNodeCount, :ScaleOutRatio, :ScaleOutNodeThreshold, :MaxNodesPerCycle, :ScaleUpMemRatio, :EnhancedService
|
|
2898
|
+
attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ImageId, :SystemDisk, :DataDisks, :InternetAccessible, :ExpansionNodeConfigs, :DesiredIdleNodeCapacity, :DesiredNodeCount, :ScaleOutRatio, :ScaleOutNodeThreshold, :MaxNodesPerCycle, :ScaleUpMemRatio, :EnhancedService, :LaunchTemplateIds
|
|
2873
2899
|
|
|
2874
|
-
def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, imageid=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, expansionnodeconfigs=nil, desiredidlenodecapacity=nil, desirednodecount=nil, scaleoutratio=nil, scaleoutnodethreshold=nil, maxnodespercycle=nil, scaleupmemratio=nil, enhancedservice=nil)
|
|
2900
|
+
def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, imageid=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, expansionnodeconfigs=nil, desiredidlenodecapacity=nil, desirednodecount=nil, scaleoutratio=nil, scaleoutnodethreshold=nil, maxnodespercycle=nil, scaleupmemratio=nil, enhancedservice=nil, launchtemplateids=nil)
|
|
2875
2901
|
@QueueName = queuename
|
|
2876
2902
|
@MinSize = minsize
|
|
2877
2903
|
@MaxSize = maxsize
|
|
@@ -2889,6 +2915,7 @@ module TencentCloud
|
|
|
2889
2915
|
@MaxNodesPerCycle = maxnodespercycle
|
|
2890
2916
|
@ScaleUpMemRatio = scaleupmemratio
|
|
2891
2917
|
@EnhancedService = enhancedservice
|
|
2918
|
+
@LaunchTemplateIds = launchtemplateids
|
|
2892
2919
|
end
|
|
2893
2920
|
|
|
2894
2921
|
def deserialize(params)
|
|
@@ -2932,6 +2959,7 @@ module TencentCloud
|
|
|
2932
2959
|
@EnhancedService = EnhancedService.new
|
|
2933
2960
|
@EnhancedService.deserialize(params['EnhancedService'])
|
|
2934
2961
|
end
|
|
2962
|
+
@LaunchTemplateIds = params['LaunchTemplateIds']
|
|
2935
2963
|
end
|
|
2936
2964
|
end
|
|
2937
2965
|
|
|
@@ -3075,19 +3103,15 @@ module TencentCloud
|
|
|
3075
3103
|
|
|
3076
3104
|
# SetAutoScalingConfiguration请求参数结构体
|
|
3077
3105
|
class SetAutoScalingConfigurationRequest < TencentCloud::Common::AbstractModel
|
|
3078
|
-
# @param ClusterId:
|
|
3106
|
+
# @param ClusterId: <p>集群ID。</p>
|
|
3079
3107
|
# @type ClusterId: String
|
|
3080
|
-
# @param ExpansionBusyTime:
|
|
3108
|
+
# @param ExpansionBusyTime: <p>任务连续等待时间,队列的任务处于连续等待的时间。单位秒。默认值120。</p>
|
|
3081
3109
|
# @type ExpansionBusyTime: Integer
|
|
3082
|
-
# @param ShrinkIdleTime:
|
|
3110
|
+
# @param ShrinkIdleTime: <p>节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。单位秒。默认值300。</p>
|
|
3083
3111
|
# @type ShrinkIdleTime: Integer
|
|
3084
|
-
# @param QueueConfigs:
|
|
3112
|
+
# @param QueueConfigs: <p>扩容队列配置列表。</p>
|
|
3085
3113
|
# @type QueueConfigs: Array
|
|
3086
|
-
# @param DryRun:
|
|
3087
|
-
# true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。
|
|
3088
|
-
# 如果检查不通过,则返回对应错误码;
|
|
3089
|
-
# 如果检查通过,则返回RequestId。
|
|
3090
|
-
# false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。
|
|
3114
|
+
# @param DryRun: <p>是否只预检此次请求。<br>true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。<br>如果检查不通过,则返回对应错误码;<br>如果检查通过,则返回RequestId。<br>false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。</p>
|
|
3091
3115
|
# @type DryRun: Boolean
|
|
3092
3116
|
|
|
3093
3117
|
attr_accessor :ClusterId, :ExpansionBusyTime, :ShrinkIdleTime, :QueueConfigs, :DryRun
|
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.1206
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|