tencentcloud-sdk-python-thpc 3.0.1175__py2.py3-none-any.whl → 3.0.1207__py2.py3-none-any.whl

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.
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1175'
17
+ __version__ = '3.0.1207'
@@ -107,11 +107,11 @@ class AddNodesRequest(AbstractModel):
107
107
  :type Count: int
108
108
  :param _ImageId: 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜像和特定自定义镜像。
109
109
  :type ImageId: str
110
- :param _InstanceChargeType: 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。
110
+ :param _InstanceChargeType: 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:按小时后付费</li><li>SPOTPAID:竞价付费</li>默认值:POSTPAID_BY_HOUR。
111
111
  :type InstanceChargeType: str
112
112
  :param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
113
113
  :type InstanceChargePrepaid: :class:`tencentcloud.thpc.v20230321.models.InstanceChargePrepaid`
114
- :param _InstanceType: 节点机型。不同实例机型指定了不同的资源规格。<br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。
114
+ :param _InstanceType: 节点机型。不同实例机型指定了不同的资源规格。<br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。</li>
115
115
  :type InstanceType: str
116
116
  :param _SystemDisk: 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
117
117
  :type SystemDisk: :class:`tencentcloud.thpc.v20230321.models.SystemDisk`
@@ -129,10 +129,10 @@ class AddNodesRequest(AbstractModel):
129
129
  :type SecurityGroupIds: list of str
130
130
  :param _ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
131
131
  :type ClientToken: str
132
- :param _QueueName: 队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。<li>SGE默认队列为:all.q。
132
+ :param _QueueName: 队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。</li><li>SGE默认队列为:all.q。</li>
133
133
 
134
134
  :type QueueName: str
135
- :param _NodeRole: 添加节点角色。默认值:Compute<br><li>Compute:计算节点。<br><li>Login:登录节点。
135
+ :param _NodeRole: 添加节点角色。默认值:Compute<br><li>Compute:计算节点。</li><li>Login:登录节点。</li>
136
136
  :type NodeRole: str
137
137
  :param _DryRun: 是否只预检此次请求。
138
138
  true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
@@ -140,10 +140,12 @@ true:发送检查请求,不会创建实例。检查项包括是否填写了
140
140
  如果检查通过,则返回RequestId.
141
141
  false(默认):发送正常请求,通过检查后直接创建实例
142
142
  :type DryRun: bool
143
- :param _NodeType: 添加节点类型。默认取值:STATIC。<li>STATIC:静态节点,不会参与弹性伸缩流程。<li>DYNAMIC:弹性节点,会被弹性缩容的节点。管控节点和登录节点不支持此参数。
143
+ :param _NodeType: 添加节点类型。默认取值:STATIC。<li>STATIC:静态节点,不会参与弹性伸缩流程。</li><li>DYNAMIC:弹性节点,会被弹性缩容的节点。管控节点和登录节点不支持此参数。</li>
144
144
  :type NodeType: str
145
145
  :param _ProjectId: 实例所属项目ID。该参数可以通过调用 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 的返回值中的 projectId 字段来获取。不填为默认项目。
146
146
  :type ProjectId: int
147
+ :param _ResourceType: 要新增节点的资源类型。<li>CVM:CVM实例类型资源</li><li>WORKSPACE:工作空间类型实例资源</li>默认值:CVM。
148
+ :type ResourceType: str
147
149
  """
148
150
  self._Placement = None
149
151
  self._ClusterId = None
@@ -165,6 +167,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
165
167
  self._DryRun = None
166
168
  self._NodeType = None
167
169
  self._ProjectId = None
170
+ self._ResourceType = None
168
171
 
169
172
  @property
170
173
  def Placement(self):
@@ -326,6 +329,14 @@ false(默认):发送正常请求,通过检查后直接创建实例
326
329
  def ProjectId(self, ProjectId):
327
330
  self._ProjectId = ProjectId
328
331
 
332
+ @property
333
+ def ResourceType(self):
334
+ return self._ResourceType
335
+
336
+ @ResourceType.setter
337
+ def ResourceType(self, ResourceType):
338
+ self._ResourceType = ResourceType
339
+
329
340
 
330
341
  def _deserialize(self, params):
331
342
  if params.get("Placement") is not None:
@@ -365,6 +376,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
365
376
  self._DryRun = params.get("DryRun")
366
377
  self._NodeType = params.get("NodeType")
367
378
  self._ProjectId = params.get("ProjectId")
379
+ self._ResourceType = params.get("ResourceType")
368
380
  memeber_set = set(params.keys())
369
381
  for name, value in vars(self).items():
370
382
  property_name = name[1:]
@@ -470,6 +482,114 @@ class AddQueueResponse(AbstractModel):
470
482
  self._RequestId = params.get("RequestId")
471
483
 
472
484
 
485
+ class AttachNodesRequest(AbstractModel):
486
+ """AttachNodes请求参数结构体
487
+
488
+ """
489
+
490
+ def __init__(self):
491
+ r"""
492
+ :param _ClusterId: 集群id
493
+ :type ClusterId: str
494
+ :param _ResourceSet: 节点的资源类型。<li>CVM:CVM实例类型资源</li><li>WORKSPACE:工作空间类型实例资源</li>默认值:CVM。
495
+ :type ResourceSet: list of str
496
+ :param _QueueName: 队列名称。不指定则为默认队列:
497
+ SLURM默认队列为:compute。
498
+ SGE默认队列为:all.q。
499
+ :type QueueName: str
500
+ :param _ImageId: 指定有效的镜像ID,格式形如img-xxx。目前仅支持公有镜像和特定自定义镜像。如不指定,则该字段是默认镜像。
501
+ :type ImageId: str
502
+ :param _ResourceType: 要新增节点的资源类型。<li>CVM:CVM实例类型资源</li><li>WORKSPACE:工作空间类型实例资源</li>默认值:CVM。
503
+ :type ResourceType: str
504
+ """
505
+ self._ClusterId = None
506
+ self._ResourceSet = None
507
+ self._QueueName = None
508
+ self._ImageId = None
509
+ self._ResourceType = None
510
+
511
+ @property
512
+ def ClusterId(self):
513
+ return self._ClusterId
514
+
515
+ @ClusterId.setter
516
+ def ClusterId(self, ClusterId):
517
+ self._ClusterId = ClusterId
518
+
519
+ @property
520
+ def ResourceSet(self):
521
+ return self._ResourceSet
522
+
523
+ @ResourceSet.setter
524
+ def ResourceSet(self, ResourceSet):
525
+ self._ResourceSet = ResourceSet
526
+
527
+ @property
528
+ def QueueName(self):
529
+ return self._QueueName
530
+
531
+ @QueueName.setter
532
+ def QueueName(self, QueueName):
533
+ self._QueueName = QueueName
534
+
535
+ @property
536
+ def ImageId(self):
537
+ return self._ImageId
538
+
539
+ @ImageId.setter
540
+ def ImageId(self, ImageId):
541
+ self._ImageId = ImageId
542
+
543
+ @property
544
+ def ResourceType(self):
545
+ return self._ResourceType
546
+
547
+ @ResourceType.setter
548
+ def ResourceType(self, ResourceType):
549
+ self._ResourceType = ResourceType
550
+
551
+
552
+ def _deserialize(self, params):
553
+ self._ClusterId = params.get("ClusterId")
554
+ self._ResourceSet = params.get("ResourceSet")
555
+ self._QueueName = params.get("QueueName")
556
+ self._ImageId = params.get("ImageId")
557
+ self._ResourceType = params.get("ResourceType")
558
+ memeber_set = set(params.keys())
559
+ for name, value in vars(self).items():
560
+ property_name = name[1:]
561
+ if property_name in memeber_set:
562
+ memeber_set.remove(property_name)
563
+ if len(memeber_set) > 0:
564
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
565
+
566
+
567
+
568
+ class AttachNodesResponse(AbstractModel):
569
+ """AttachNodes返回参数结构体
570
+
571
+ """
572
+
573
+ def __init__(self):
574
+ r"""
575
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
576
+ :type RequestId: str
577
+ """
578
+ self._RequestId = None
579
+
580
+ @property
581
+ def RequestId(self):
582
+ return self._RequestId
583
+
584
+ @RequestId.setter
585
+ def RequestId(self, RequestId):
586
+ self._RequestId = RequestId
587
+
588
+
589
+ def _deserialize(self, params):
590
+ self._RequestId = params.get("RequestId")
591
+
592
+
473
593
  class CFSOption(AbstractModel):
474
594
  """描述CFS文件系统版本和挂载信息
475
595
 
@@ -814,7 +934,7 @@ class ClusterOverview(AbstractModel):
814
934
  r"""
815
935
  :param _ClusterId: 集群ID。
816
936
  :type ClusterId: str
817
- :param _ClusterStatus: 集群状态。取值范围:<br><li>PENDING:创建中<br><li>INITING:初始化中<br><li>INIT_FAILED:初始化失败<br><li>RUNNING:运行中<br><li>TERMINATING:销毁中
937
+ :param _ClusterStatus: 集群状态。取值范围:<li>PENDING:创建中</li><li>INITING:初始化中</li><li>INIT_FAILED:初始化失败</li><li>RUNNING:运行中</li><li>TERMINATING:销毁中</li>
818
938
  :type ClusterStatus: str
819
939
  :param _ClusterName: 集群名称。
820
940
  :type ClusterName: str
@@ -824,6 +944,9 @@ class ClusterOverview(AbstractModel):
824
944
  :type CreateTime: str
825
945
  :param _SchedulerType: 集群调度器。
826
946
  :type SchedulerType: str
947
+ :param _SchedulerVersion: 集群调度器版本。
948
+ 注意:此字段可能返回 null,表示取不到有效值。
949
+ :type SchedulerVersion: str
827
950
  :param _ComputeNodeCount: 计算节点数量。
828
951
  :type ComputeNodeCount: int
829
952
  :param _ComputeNodeSet: 计算节点概览。
@@ -836,7 +959,7 @@ class ClusterOverview(AbstractModel):
836
959
  :type LoginNodeSet: list of LoginNodeOverview
837
960
  :param _LoginNodeCount: 登录节点数量。
838
961
  :type LoginNodeCount: int
839
- :param _AutoScalingType: 弹性伸缩类型。<br><li>THPC_AS:集群自动扩缩容由THPC产品内部实现。<br><li>AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
962
+ :param _AutoScalingType: 弹性伸缩类型。取值范围:<li>THPC_AS:集群自动扩缩容由THPC产品内部实现。</li><li>AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。</li>
840
963
  :type AutoScalingType: str
841
964
  :param _VpcId: 集群所属私有网络ID。
842
965
  :type VpcId: str
@@ -847,6 +970,7 @@ class ClusterOverview(AbstractModel):
847
970
  self._Placement = None
848
971
  self._CreateTime = None
849
972
  self._SchedulerType = None
973
+ self._SchedulerVersion = None
850
974
  self._ComputeNodeCount = None
851
975
  self._ComputeNodeSet = None
852
976
  self._ManagerNodeCount = None
@@ -904,6 +1028,14 @@ class ClusterOverview(AbstractModel):
904
1028
  def SchedulerType(self, SchedulerType):
905
1029
  self._SchedulerType = SchedulerType
906
1030
 
1031
+ @property
1032
+ def SchedulerVersion(self):
1033
+ return self._SchedulerVersion
1034
+
1035
+ @SchedulerVersion.setter
1036
+ def SchedulerVersion(self, SchedulerVersion):
1037
+ self._SchedulerVersion = SchedulerVersion
1038
+
907
1039
  @property
908
1040
  def ComputeNodeCount(self):
909
1041
  return self._ComputeNodeCount
@@ -978,6 +1110,7 @@ class ClusterOverview(AbstractModel):
978
1110
  self._Placement._deserialize(params.get("Placement"))
979
1111
  self._CreateTime = params.get("CreateTime")
980
1112
  self._SchedulerType = params.get("SchedulerType")
1113
+ self._SchedulerVersion = params.get("SchedulerVersion")
981
1114
  self._ComputeNodeCount = params.get("ComputeNodeCount")
982
1115
  if params.get("ComputeNodeSet") is not None:
983
1116
  self._ComputeNodeSet = []
@@ -1018,12 +1151,11 @@ class ComputeNode(AbstractModel):
1018
1151
 
1019
1152
  def __init__(self):
1020
1153
  r"""
1021
- :param _InstanceChargeType: 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。
1154
+ :param _InstanceChargeType: 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:按小时后付费</li><li>SPOTPAID:竞价付费</li>默认值:POSTPAID_BY_HOUR。
1022
1155
  :type InstanceChargeType: str
1023
1156
  :param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
1024
1157
  :type InstanceChargePrepaid: :class:`tencentcloud.thpc.v20230321.models.InstanceChargePrepaid`
1025
- :param _InstanceType: 节点机型。不同实例机型指定了不同的资源规格。
1026
- <br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。
1158
+ :param _InstanceType: 节点机型。不同实例机型指定了不同的资源规格。<li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。</li>
1027
1159
  :type InstanceType: str
1028
1160
  :param _SystemDisk: 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
1029
1161
  :type SystemDisk: :class:`tencentcloud.thpc.v20230321.models.SystemDisk`
@@ -1031,12 +1163,13 @@ class ComputeNode(AbstractModel):
1031
1163
  :type DataDisks: list of DataDisk
1032
1164
  :param _InternetAccessible: 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。
1033
1165
  :type InternetAccessible: :class:`tencentcloud.thpc.v20230321.models.InternetAccessible`
1034
- :param _InstanceName: 节点显示名称。<br><li>
1035
- 不指定节点显示名称则默认显示‘未命名’。
1036
- 最多支持60个字符。
1166
+ :param _InstanceName: 节点显示名称。<li>不指定节点显示名称则默认显示‘未命名’。
1167
+ 最多支持60个字符。</li>
1037
1168
  :type InstanceName: str
1038
1169
  :param _ProjectId: 实例所属项目ID。该参数可以通过调用 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 的返回值中的 projectId 字段来获取。不填为默认项目。
1039
1170
  :type ProjectId: int
1171
+ :param _ResourceType: 实例资源类型,默认是CVM资源
1172
+ :type ResourceType: str
1040
1173
  """
1041
1174
  self._InstanceChargeType = None
1042
1175
  self._InstanceChargePrepaid = None
@@ -1046,6 +1179,7 @@ class ComputeNode(AbstractModel):
1046
1179
  self._InternetAccessible = None
1047
1180
  self._InstanceName = None
1048
1181
  self._ProjectId = None
1182
+ self._ResourceType = None
1049
1183
 
1050
1184
  @property
1051
1185
  def InstanceChargeType(self):
@@ -1111,6 +1245,14 @@ class ComputeNode(AbstractModel):
1111
1245
  def ProjectId(self, ProjectId):
1112
1246
  self._ProjectId = ProjectId
1113
1247
 
1248
+ @property
1249
+ def ResourceType(self):
1250
+ return self._ResourceType
1251
+
1252
+ @ResourceType.setter
1253
+ def ResourceType(self, ResourceType):
1254
+ self._ResourceType = ResourceType
1255
+
1114
1256
 
1115
1257
  def _deserialize(self, params):
1116
1258
  self._InstanceChargeType = params.get("InstanceChargeType")
@@ -1132,6 +1274,7 @@ class ComputeNode(AbstractModel):
1132
1274
  self._InternetAccessible._deserialize(params.get("InternetAccessible"))
1133
1275
  self._InstanceName = params.get("InstanceName")
1134
1276
  self._ProjectId = params.get("ProjectId")
1277
+ self._ResourceType = params.get("ResourceType")
1135
1278
  memeber_set = set(params.keys())
1136
1279
  for name, value in vars(self).items():
1137
1280
  property_name = name[1:]
@@ -1193,8 +1336,13 @@ class CreateClusterRequest(AbstractModel):
1193
1336
  :type ComputeNode: :class:`tencentcloud.thpc.v20230321.models.ComputeNode`
1194
1337
  :param _ComputeNodeCount: 指定计算节点的数量。默认取值:0。
1195
1338
  :type ComputeNodeCount: int
1196
- :param _SchedulerType: 调度器类型。默认取值:SLURM。<br><li>SGE:SGE调度器。<br><li>SLURM:SLURM调度器。
1339
+ :param _SchedulerType: 调度器类型。默认取值:SLURM。<li>SGE:SGE调度器。</li><li>SLURM:SLURM调度器。</li>
1197
1340
  :type SchedulerType: str
1341
+ :param _SchedulerVersion: 创建调度器的版本号,可填写版本号为“latest” 和 各调度器支持的版本号;如果是"latest", 则代表创建的是平台当前支持的该类型调度器最新版本。如果不填写,默认创建的是“latest”版本调度器
1342
+ 各调度器支持的集群版本:
1343
+ <li>SLURM:21.08.8、23.11.7</li>
1344
+ <li>SGE: 8.1.9</li>
1345
+ :type SchedulerVersion: str
1198
1346
  :param _ImageId: 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。
1199
1347
  :type ImageId: str
1200
1348
  :param _VirtualPrivateCloud: 私有网络相关信息配置。
@@ -1212,7 +1360,7 @@ true:发送检查请求,不会创建实例。检查项包括是否填写了
1212
1360
  false(默认):发送正常请求,通过检查后直接创建实例
1213
1361
  :type DryRun: bool
1214
1362
  :param _AccountType: 域名字服务类型。默认取值:NIS。
1215
- <li>NIS:NIS域名字服务。
1363
+ <li>NIS:NIS域名字服务。</li>
1216
1364
  :type AccountType: str
1217
1365
  :param _ClusterName: 集群显示名称。
1218
1366
  :type ClusterName: str
@@ -1224,7 +1372,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
1224
1372
  :type LoginNodeCount: int
1225
1373
  :param _Tags: 创建集群时同时绑定的标签对说明。
1226
1374
  :type Tags: list of Tag
1227
- :param _AutoScalingType: 弹性伸缩类型。默认值:THPC_AS<br><li>THPC_AS:集群自动扩缩容由THPC产品内部实现。<br><li>AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
1375
+ :param _AutoScalingType: 弹性伸缩类型。默认值:THPC_AS<li>THPC_AS:集群自动扩缩容由THPC产品内部实现。</li><li>AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。</li>
1228
1376
  :type AutoScalingType: str
1229
1377
  :param _InitNodeScripts: 节点初始化脚本信息列表。
1230
1378
  :type InitNodeScripts: list of NodeScript
@@ -1237,6 +1385,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
1237
1385
  self._ComputeNode = None
1238
1386
  self._ComputeNodeCount = None
1239
1387
  self._SchedulerType = None
1388
+ self._SchedulerVersion = None
1240
1389
  self._ImageId = None
1241
1390
  self._VirtualPrivateCloud = None
1242
1391
  self._LoginSettings = None
@@ -1301,6 +1450,14 @@ false(默认):发送正常请求,通过检查后直接创建实例
1301
1450
  def SchedulerType(self, SchedulerType):
1302
1451
  self._SchedulerType = SchedulerType
1303
1452
 
1453
+ @property
1454
+ def SchedulerVersion(self):
1455
+ return self._SchedulerVersion
1456
+
1457
+ @SchedulerVersion.setter
1458
+ def SchedulerVersion(self, SchedulerVersion):
1459
+ self._SchedulerVersion = SchedulerVersion
1460
+
1304
1461
  @property
1305
1462
  def ImageId(self):
1306
1463
  return self._ImageId
@@ -1435,6 +1592,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
1435
1592
  self._ComputeNode._deserialize(params.get("ComputeNode"))
1436
1593
  self._ComputeNodeCount = params.get("ComputeNodeCount")
1437
1594
  self._SchedulerType = params.get("SchedulerType")
1595
+ self._SchedulerVersion = params.get("SchedulerVersion")
1438
1596
  self._ImageId = params.get("ImageId")
1439
1597
  if params.get("VirtualPrivateCloud") is not None:
1440
1598
  self._VirtualPrivateCloud = VirtualPrivateCloud()
@@ -2321,7 +2479,24 @@ class DescribeNodesRequest(AbstractModel):
2321
2479
  r"""
2322
2480
  :param _ClusterId: 集群ID。
2323
2481
  :type ClusterId: str
2324
- :param _Filters: <li><strong>queue-name</strong></li> <p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-role</strong></li> <p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-type</strong></li> <p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。
2482
+ :param _Filters: <ul>
2483
+ <li><strong>queue-name</strong>
2484
+ <p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p>
2485
+ <p style="padding-left: 30px;">类型:String</p>
2486
+ <p style="padding-left: 30px;">必选:否</p>
2487
+ </li>
2488
+ <li><strong>node-role</strong>
2489
+ <p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p>
2490
+ <p style="padding-left: 30px;">类型:String</p>
2491
+ <p style="padding-left: 30px;">必选:否</p>
2492
+ </li>
2493
+ <li><strong>node-type</strong>
2494
+ <p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p>
2495
+ <p style="padding-left: 30px;">类型:String</p>
2496
+ <p style="padding-left: 30px;">必选:否</p>
2497
+ </li>
2498
+ </ul>
2499
+ <p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。</p>
2325
2500
  :type Filters: list of Filter
2326
2501
  :param _Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
2327
2502
  :type Offset: int
@@ -2551,6 +2726,76 @@ class DescribeQueuesResponse(AbstractModel):
2551
2726
  self._RequestId = params.get("RequestId")
2552
2727
 
2553
2728
 
2729
+ class DetachNodesRequest(AbstractModel):
2730
+ """DetachNodes请求参数结构体
2731
+
2732
+ """
2733
+
2734
+ def __init__(self):
2735
+ r"""
2736
+ :param _ClusterId: 集群id
2737
+ :type ClusterId: str
2738
+ :param _NodeIds: 集群中的节点id
2739
+ :type NodeIds: list of str
2740
+ """
2741
+ self._ClusterId = None
2742
+ self._NodeIds = None
2743
+
2744
+ @property
2745
+ def ClusterId(self):
2746
+ return self._ClusterId
2747
+
2748
+ @ClusterId.setter
2749
+ def ClusterId(self, ClusterId):
2750
+ self._ClusterId = ClusterId
2751
+
2752
+ @property
2753
+ def NodeIds(self):
2754
+ return self._NodeIds
2755
+
2756
+ @NodeIds.setter
2757
+ def NodeIds(self, NodeIds):
2758
+ self._NodeIds = NodeIds
2759
+
2760
+
2761
+ def _deserialize(self, params):
2762
+ self._ClusterId = params.get("ClusterId")
2763
+ self._NodeIds = params.get("NodeIds")
2764
+ memeber_set = set(params.keys())
2765
+ for name, value in vars(self).items():
2766
+ property_name = name[1:]
2767
+ if property_name in memeber_set:
2768
+ memeber_set.remove(property_name)
2769
+ if len(memeber_set) > 0:
2770
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2771
+
2772
+
2773
+
2774
+ class DetachNodesResponse(AbstractModel):
2775
+ """DetachNodes返回参数结构体
2776
+
2777
+ """
2778
+
2779
+ def __init__(self):
2780
+ r"""
2781
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2782
+ :type RequestId: str
2783
+ """
2784
+ self._RequestId = None
2785
+
2786
+ @property
2787
+ def RequestId(self):
2788
+ return self._RequestId
2789
+
2790
+ @RequestId.setter
2791
+ def RequestId(self, RequestId):
2792
+ self._RequestId = RequestId
2793
+
2794
+
2795
+ def _deserialize(self, params):
2796
+ self._RequestId = params.get("RequestId")
2797
+
2798
+
2554
2799
  class EnhancedService(AbstractModel):
2555
2800
  """描述了实例的增强服务启用情况与其设置,如云安全,腾讯云可观测平台等实例 Agent
2556
2801
 
@@ -3398,10 +3643,13 @@ class LoginSettings(AbstractModel):
3398
3643
 
3399
3644
  def __init__(self):
3400
3645
  r"""
3401
- :param _Password: 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。<br><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
3646
+ :param _Password: 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。</li><br><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。</li><br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
3402
3647
  :type Password: str
3648
+ :param _KeyIds: 实例登录密钥
3649
+ :type KeyIds: list of str
3403
3650
  """
3404
3651
  self._Password = None
3652
+ self._KeyIds = None
3405
3653
 
3406
3654
  @property
3407
3655
  def Password(self):
@@ -3411,9 +3659,18 @@ class LoginSettings(AbstractModel):
3411
3659
  def Password(self, Password):
3412
3660
  self._Password = Password
3413
3661
 
3662
+ @property
3663
+ def KeyIds(self):
3664
+ return self._KeyIds
3665
+
3666
+ @KeyIds.setter
3667
+ def KeyIds(self, KeyIds):
3668
+ self._KeyIds = KeyIds
3669
+
3414
3670
 
3415
3671
  def _deserialize(self, params):
3416
3672
  self._Password = params.get("Password")
3673
+ self._KeyIds = params.get("KeyIds")
3417
3674
  memeber_set = set(params.keys())
3418
3675
  for name, value in vars(self).items():
3419
3676
  property_name = name[1:]
@@ -3765,7 +4022,7 @@ class NodeOverview(AbstractModel):
3765
4022
  :param _Zone: 节点所在可用区信息。
3766
4023
  注意:此字段可能返回 null,表示取不到有效值。
3767
4024
  :type Zone: str
3768
- :param _NodeState: 节点状态。<br><li>SUBMITTED:已完成提交。<br><li>CREATING:创建中。<br><li>CREATED:完成创建。<br><li>INITING:初始化中。<br><li>INIT_FAILED:初始化失败。<br><li>RUNNING:运行中。<br><li>DELETING:销毁中。
4025
+ :param _NodeState: 节点状态。<li>SUBMITTED:已完成提交。</li><li>CREATING:创建中。</li><li>CREATED:完成创建。</li><li>INITING:初始化中。</li><li>INIT_FAILED:初始化失败。</li><li>RUNNING:运行中。</li><li>DELETING:销毁中。</li>
3769
4026
  注意:此字段可能返回 null,表示取不到有效值。
3770
4027
  :type NodeState: str
3771
4028
  :param _ImageId: 镜像ID。
@@ -3774,12 +4031,15 @@ class NodeOverview(AbstractModel):
3774
4031
  :param _QueueName: 节点所属队列名称。
3775
4032
  注意:此字段可能返回 null,表示取不到有效值。
3776
4033
  :type QueueName: str
3777
- :param _NodeRole: 节点角色。<br><li>Manager:管控节点。<br><li>Compute:计算节点。<br><li>Login:登录节点。<br><li>ManagerBackup:备用管控节点。
4034
+ :param _NodeRole: 节点角色。<li>Manager:管控节点。</li><li>Compute:计算节点。</li><li>Login:登录节点。</li><li>ManagerBackup:备用管控节点。</li>
3778
4035
  注意:此字段可能返回 null,表示取不到有效值。
3779
4036
  :type NodeRole: str
3780
- :param _NodeType: 节点类型。<br><li>STATIC:静态节点。<br><li>DYNAMIC:弹性节点。
4037
+ :param _NodeType: 节点类型。<li>STATIC:静态节点。</li><li>DYNAMIC:弹性节点。</li>
3781
4038
  注意:此字段可能返回 null,表示取不到有效值。
3782
4039
  :type NodeType: str
4040
+ :param _NodeId: thpc集群节点id
4041
+ 注意:此字段可能返回 null,表示取不到有效值。
4042
+ :type NodeId: str
3783
4043
  """
3784
4044
  self._InstanceId = None
3785
4045
  self._Zone = None
@@ -3788,6 +4048,7 @@ class NodeOverview(AbstractModel):
3788
4048
  self._QueueName = None
3789
4049
  self._NodeRole = None
3790
4050
  self._NodeType = None
4051
+ self._NodeId = None
3791
4052
 
3792
4053
  @property
3793
4054
  def InstanceId(self):
@@ -3845,6 +4106,14 @@ class NodeOverview(AbstractModel):
3845
4106
  def NodeType(self, NodeType):
3846
4107
  self._NodeType = NodeType
3847
4108
 
4109
+ @property
4110
+ def NodeId(self):
4111
+ return self._NodeId
4112
+
4113
+ @NodeId.setter
4114
+ def NodeId(self, NodeId):
4115
+ self._NodeId = NodeId
4116
+
3848
4117
 
3849
4118
  def _deserialize(self, params):
3850
4119
  self._InstanceId = params.get("InstanceId")
@@ -3854,6 +4123,7 @@ class NodeOverview(AbstractModel):
3854
4123
  self._QueueName = params.get("QueueName")
3855
4124
  self._NodeRole = params.get("NodeRole")
3856
4125
  self._NodeType = params.get("NodeType")
4126
+ self._NodeId = params.get("NodeId")
3857
4127
  memeber_set = set(params.keys())
3858
4128
  for name, value in vars(self).items():
3859
4129
  property_name = name[1:]
@@ -97,6 +97,29 @@ class ThpcClient(AbstractClient):
97
97
  raise TencentCloudSDKException(type(e).__name__, str(e))
98
98
 
99
99
 
100
+ def AttachNodes(self, request):
101
+ """本接口 (AttachNodes) 用于绑定一个或者多个计算节点指定资源到指定集群中。
102
+
103
+ :param request: Request instance for AttachNodes.
104
+ :type request: :class:`tencentcloud.thpc.v20230321.models.AttachNodesRequest`
105
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.AttachNodesResponse`
106
+
107
+ """
108
+ try:
109
+ params = request._serialize()
110
+ headers = request.headers
111
+ body = self.call("AttachNodes", params, headers=headers)
112
+ response = json.loads(body)
113
+ model = models.AttachNodesResponse()
114
+ model._deserialize(response["Response"])
115
+ return model
116
+ except Exception as e:
117
+ if isinstance(e, TencentCloudSDKException):
118
+ raise
119
+ else:
120
+ raise TencentCloudSDKException(type(e).__name__, str(e))
121
+
122
+
100
123
  def CreateCluster(self, request):
101
124
  """本接口 (CreateCluster) 用于创建并启动集群。
102
125
 
@@ -378,6 +401,29 @@ class ThpcClient(AbstractClient):
378
401
  raise TencentCloudSDKException(type(e).__name__, str(e))
379
402
 
380
403
 
404
+ def DetachNodes(self, request):
405
+ """本接口 (DetachNodes) 用于将一个或者多个计算节点从集群中移除,但是不销毁指定计算资源。
406
+
407
+ :param request: Request instance for DetachNodes.
408
+ :type request: :class:`tencentcloud.thpc.v20230321.models.DetachNodesRequest`
409
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.DetachNodesResponse`
410
+
411
+ """
412
+ try:
413
+ params = request._serialize()
414
+ headers = request.headers
415
+ body = self.call("DetachNodes", params, headers=headers)
416
+ response = json.loads(body)
417
+ model = models.DetachNodesResponse()
418
+ model._deserialize(response["Response"])
419
+ return model
420
+ except Exception as e:
421
+ if isinstance(e, TencentCloudSDKException):
422
+ raise
423
+ else:
424
+ raise TencentCloudSDKException(type(e).__name__, str(e))
425
+
426
+
381
427
  def ModifyInitNodeScripts(self, request):
382
428
  """本接口 (ModifyInitNodeScripts) 用于修改节点初始化脚本。
383
429
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-thpc
3
- Version: 3.0.1175
3
+ Version: 3.0.1207
4
4
  Summary: Tencent Cloud Thpc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common (==3.0.1175)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1207)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=f6YYPJtUMlnBskoqVc5fGPYxKkisEIbGpxyTqiJc7yQ,631
1
+ tencentcloud/__init__.py,sha256=2l_PrsPKRs_oOejDAkLk-HJENwt3gIG4aXwPdcyeagg,631
2
2
  tencentcloud/thpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/thpc/v20211109/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/thpc/v20211109/errorcodes.py,sha256=xwipivn8e41cJXazb93E1dSq36noRO_aNmrGy_EjxTc,2035
@@ -10,9 +10,9 @@ tencentcloud/thpc/v20220401/models.py,sha256=MB50R2RiuB5P74Ui0UvfO2_3iv5zaJh_9vK
10
10
  tencentcloud/thpc/v20220401/thpc_client.py,sha256=rrgT0LO6OMZ9vve-_2fldB55OjtX8rIa5dSBomAjAlc,16797
11
11
  tencentcloud/thpc/v20230321/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  tencentcloud/thpc/v20230321/errorcodes.py,sha256=-6slXCfU9hhy6gpzJxVr0X8XxmlRAnKBmRr5NiR2IAY,4560
13
- tencentcloud/thpc/v20230321/models.py,sha256=2br3SznRVlaJYKROahmqGM83lCpCysbgsoUIVX6MajQ,170069
14
- tencentcloud/thpc/v20230321/thpc_client.py,sha256=Mfb7NK0tTocX_lFGJfygt0j2xjwj2I0E0ktVIoT_1So,17767
15
- tencentcloud_sdk_python_thpc-3.0.1175.dist-info/METADATA,sha256=YMF-PyzaYvL5n4Y0BongVBkbHCYHlKQtZ2-fwgygppE,1497
16
- tencentcloud_sdk_python_thpc-3.0.1175.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
17
- tencentcloud_sdk_python_thpc-3.0.1175.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
18
- tencentcloud_sdk_python_thpc-3.0.1175.dist-info/RECORD,,
13
+ tencentcloud/thpc/v20230321/models.py,sha256=YdB3UvFIJmWRH4ejQNF1OtSGSpo8ANqhUiLH4rd9psk,178088
14
+ tencentcloud/thpc/v20230321/thpc_client.py,sha256=7jgiFPy9ys2ySgrKulu3DSvKEU4QmsSRFl1R6F_EBSI,19620
15
+ tencentcloud_sdk_python_thpc-3.0.1207.dist-info/METADATA,sha256=bgdttyAT-CeV-B67wHGMnMQouj5EKR2dGQ5Ll8l1yTQ,1497
16
+ tencentcloud_sdk_python_thpc-3.0.1207.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
17
+ tencentcloud_sdk_python_thpc-3.0.1207.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
18
+ tencentcloud_sdk_python_thpc-3.0.1207.dist-info/RECORD,,