tencentcloud-sdk-python-thpc 3.0.1187__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.1187'
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
 
@@ -1031,12 +1151,11 @@ class ComputeNode(AbstractModel):
1031
1151
 
1032
1152
  def __init__(self):
1033
1153
  r"""
1034
- :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。
1035
1155
  :type InstanceChargeType: str
1036
1156
  :param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
1037
1157
  :type InstanceChargePrepaid: :class:`tencentcloud.thpc.v20230321.models.InstanceChargePrepaid`
1038
- :param _InstanceType: 节点机型。不同实例机型指定了不同的资源规格。
1039
- <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>
1040
1159
  :type InstanceType: str
1041
1160
  :param _SystemDisk: 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
1042
1161
  :type SystemDisk: :class:`tencentcloud.thpc.v20230321.models.SystemDisk`
@@ -1044,12 +1163,13 @@ class ComputeNode(AbstractModel):
1044
1163
  :type DataDisks: list of DataDisk
1045
1164
  :param _InternetAccessible: 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。
1046
1165
  :type InternetAccessible: :class:`tencentcloud.thpc.v20230321.models.InternetAccessible`
1047
- :param _InstanceName: 节点显示名称。<br><li>
1048
- 不指定节点显示名称则默认显示‘未命名’。
1049
- 最多支持60个字符。
1166
+ :param _InstanceName: 节点显示名称。<li>不指定节点显示名称则默认显示‘未命名’。
1167
+ 最多支持60个字符。</li>
1050
1168
  :type InstanceName: str
1051
1169
  :param _ProjectId: 实例所属项目ID。该参数可以通过调用 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 的返回值中的 projectId 字段来获取。不填为默认项目。
1052
1170
  :type ProjectId: int
1171
+ :param _ResourceType: 实例资源类型,默认是CVM资源
1172
+ :type ResourceType: str
1053
1173
  """
1054
1174
  self._InstanceChargeType = None
1055
1175
  self._InstanceChargePrepaid = None
@@ -1059,6 +1179,7 @@ class ComputeNode(AbstractModel):
1059
1179
  self._InternetAccessible = None
1060
1180
  self._InstanceName = None
1061
1181
  self._ProjectId = None
1182
+ self._ResourceType = None
1062
1183
 
1063
1184
  @property
1064
1185
  def InstanceChargeType(self):
@@ -1124,6 +1245,14 @@ class ComputeNode(AbstractModel):
1124
1245
  def ProjectId(self, ProjectId):
1125
1246
  self._ProjectId = ProjectId
1126
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
+
1127
1256
 
1128
1257
  def _deserialize(self, params):
1129
1258
  self._InstanceChargeType = params.get("InstanceChargeType")
@@ -1145,6 +1274,7 @@ class ComputeNode(AbstractModel):
1145
1274
  self._InternetAccessible._deserialize(params.get("InternetAccessible"))
1146
1275
  self._InstanceName = params.get("InstanceName")
1147
1276
  self._ProjectId = params.get("ProjectId")
1277
+ self._ResourceType = params.get("ResourceType")
1148
1278
  memeber_set = set(params.keys())
1149
1279
  for name, value in vars(self).items():
1150
1280
  property_name = name[1:]
@@ -2349,7 +2479,24 @@ class DescribeNodesRequest(AbstractModel):
2349
2479
  r"""
2350
2480
  :param _ClusterId: 集群ID。
2351
2481
  :type ClusterId: str
2352
- :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>
2353
2500
  :type Filters: list of Filter
2354
2501
  :param _Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
2355
2502
  :type Offset: int
@@ -2579,6 +2726,76 @@ class DescribeQueuesResponse(AbstractModel):
2579
2726
  self._RequestId = params.get("RequestId")
2580
2727
 
2581
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
+
2582
2799
  class EnhancedService(AbstractModel):
2583
2800
  """描述了实例的增强服务启用情况与其设置,如云安全,腾讯云可观测平台等实例 Agent
2584
2801
 
@@ -3426,10 +3643,13 @@ class LoginSettings(AbstractModel):
3426
3643
 
3427
3644
  def __init__(self):
3428
3645
  r"""
3429
- :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>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
3430
3647
  :type Password: str
3648
+ :param _KeyIds: 实例登录密钥
3649
+ :type KeyIds: list of str
3431
3650
  """
3432
3651
  self._Password = None
3652
+ self._KeyIds = None
3433
3653
 
3434
3654
  @property
3435
3655
  def Password(self):
@@ -3439,9 +3659,18 @@ class LoginSettings(AbstractModel):
3439
3659
  def Password(self, Password):
3440
3660
  self._Password = Password
3441
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
+
3442
3670
 
3443
3671
  def _deserialize(self, params):
3444
3672
  self._Password = params.get("Password")
3673
+ self._KeyIds = params.get("KeyIds")
3445
3674
  memeber_set = set(params.keys())
3446
3675
  for name, value in vars(self).items():
3447
3676
  property_name = name[1:]
@@ -3793,7 +4022,7 @@ class NodeOverview(AbstractModel):
3793
4022
  :param _Zone: 节点所在可用区信息。
3794
4023
  注意:此字段可能返回 null,表示取不到有效值。
3795
4024
  :type Zone: str
3796
- :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>
3797
4026
  注意:此字段可能返回 null,表示取不到有效值。
3798
4027
  :type NodeState: str
3799
4028
  :param _ImageId: 镜像ID。
@@ -3802,12 +4031,15 @@ class NodeOverview(AbstractModel):
3802
4031
  :param _QueueName: 节点所属队列名称。
3803
4032
  注意:此字段可能返回 null,表示取不到有效值。
3804
4033
  :type QueueName: str
3805
- :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>
3806
4035
  注意:此字段可能返回 null,表示取不到有效值。
3807
4036
  :type NodeRole: str
3808
- :param _NodeType: 节点类型。<br><li>STATIC:静态节点。<br><li>DYNAMIC:弹性节点。
4037
+ :param _NodeType: 节点类型。<li>STATIC:静态节点。</li><li>DYNAMIC:弹性节点。</li>
3809
4038
  注意:此字段可能返回 null,表示取不到有效值。
3810
4039
  :type NodeType: str
4040
+ :param _NodeId: thpc集群节点id
4041
+ 注意:此字段可能返回 null,表示取不到有效值。
4042
+ :type NodeId: str
3811
4043
  """
3812
4044
  self._InstanceId = None
3813
4045
  self._Zone = None
@@ -3816,6 +4048,7 @@ class NodeOverview(AbstractModel):
3816
4048
  self._QueueName = None
3817
4049
  self._NodeRole = None
3818
4050
  self._NodeType = None
4051
+ self._NodeId = None
3819
4052
 
3820
4053
  @property
3821
4054
  def InstanceId(self):
@@ -3873,6 +4106,14 @@ class NodeOverview(AbstractModel):
3873
4106
  def NodeType(self, NodeType):
3874
4107
  self._NodeType = NodeType
3875
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
+
3876
4117
 
3877
4118
  def _deserialize(self, params):
3878
4119
  self._InstanceId = params.get("InstanceId")
@@ -3882,6 +4123,7 @@ class NodeOverview(AbstractModel):
3882
4123
  self._QueueName = params.get("QueueName")
3883
4124
  self._NodeRole = params.get("NodeRole")
3884
4125
  self._NodeType = params.get("NodeType")
4126
+ self._NodeId = params.get("NodeId")
3885
4127
  memeber_set = set(params.keys())
3886
4128
  for name, value in vars(self).items():
3887
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.1187
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.1187)
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=wO03SxbJRTZqBexFeNr5cOf7--qgMQbcDmAQvUimkxA,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=PoHu88kmlXObivIrvMzMpTS2Ko3rHWXPzs_vHyQ-9cg,171322
14
- tencentcloud/thpc/v20230321/thpc_client.py,sha256=Mfb7NK0tTocX_lFGJfygt0j2xjwj2I0E0ktVIoT_1So,17767
15
- tencentcloud_sdk_python_thpc-3.0.1187.dist-info/METADATA,sha256=v_gBMp3xdUb3jNm4ZJUdHB6cO_nwlJsELAD-Nanexk8,1497
16
- tencentcloud_sdk_python_thpc-3.0.1187.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
17
- tencentcloud_sdk_python_thpc-3.0.1187.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
18
- tencentcloud_sdk_python_thpc-3.0.1187.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,,