tencentcloud-sdk-python 3.0.1195__py2.py3-none-any.whl → 3.0.1196__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 +1 -1
- tencentcloud/cam/v20190116/models.py +13 -0
- tencentcloud/cdwch/v20200915/models.py +49 -0
- tencentcloud/cdwdoris/v20211228/models.py +49 -0
- tencentcloud/cynosdb/v20190107/models.py +1 -1
- tencentcloud/dts/v20211206/models.py +12 -0
- tencentcloud/mongodb/v20190725/models.py +750 -0
- tencentcloud/mongodb/v20190725/mongodb_client.py +120 -0
- tencentcloud/tem/v20210701/models.py +29 -1
- tencentcloud/thpc/v20230321/models.py +245 -15
- tencentcloud/thpc/v20230321/thpc_client.py +46 -0
- tencentcloud/tke/v20220501/models.py +12 -0
- tencentcloud/vclm/v20240523/errorcodes.py +3 -0
- tencentcloud/vclm/v20240523/models.py +14 -0
- tencentcloud/vpc/v20170312/models.py +77 -0
- tencentcloud/wedata/v20210820/models.py +53 -0
- {tencentcloud_sdk_python-3.0.1195.dist-info → tencentcloud_sdk_python-3.0.1196.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1195.dist-info → tencentcloud_sdk_python-3.0.1196.dist-info}/RECORD +21 -21
- {tencentcloud_sdk_python-3.0.1195.dist-info → tencentcloud_sdk_python-3.0.1196.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1195.dist-info → tencentcloud_sdk_python-3.0.1196.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1195.dist-info → tencentcloud_sdk_python-3.0.1196.dist-info}/top_level.txt +0 -0
@@ -164,6 +164,30 @@ class MongodbClient(AbstractClient):
|
|
164
164
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
165
165
|
|
166
166
|
|
167
|
+
def CreateDBInstanceParamTpl(self, request):
|
168
|
+
"""本接口(CreateDBInstanceParamTpl)用于创建云数据库MongoDB实例的参数模板
|
169
|
+
**说明:CreateDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
|
170
|
+
|
171
|
+
:param request: Request instance for CreateDBInstanceParamTpl.
|
172
|
+
:type request: :class:`tencentcloud.mongodb.v20190725.models.CreateDBInstanceParamTplRequest`
|
173
|
+
:rtype: :class:`tencentcloud.mongodb.v20190725.models.CreateDBInstanceParamTplResponse`
|
174
|
+
|
175
|
+
"""
|
176
|
+
try:
|
177
|
+
params = request._serialize()
|
178
|
+
headers = request.headers
|
179
|
+
body = self.call("CreateDBInstanceParamTpl", params, headers=headers)
|
180
|
+
response = json.loads(body)
|
181
|
+
model = models.CreateDBInstanceParamTplResponse()
|
182
|
+
model._deserialize(response["Response"])
|
183
|
+
return model
|
184
|
+
except Exception as e:
|
185
|
+
if isinstance(e, TencentCloudSDKException):
|
186
|
+
raise
|
187
|
+
else:
|
188
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
189
|
+
|
190
|
+
|
167
191
|
def DeleteAccountUser(self, request):
|
168
192
|
"""本接口(DeleteAccountUser)用于删除实例的自定义账号。
|
169
193
|
|
@@ -394,6 +418,54 @@ class MongodbClient(AbstractClient):
|
|
394
418
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
395
419
|
|
396
420
|
|
421
|
+
def DescribeDBInstanceParamTpl(self, request):
|
422
|
+
"""本接口(DescribeDBInstanceParamTpl )用于查询当前账号下所有MongoDB数据库参数模板
|
423
|
+
**说明:DescribeDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
|
424
|
+
|
425
|
+
:param request: Request instance for DescribeDBInstanceParamTpl.
|
426
|
+
:type request: :class:`tencentcloud.mongodb.v20190725.models.DescribeDBInstanceParamTplRequest`
|
427
|
+
:rtype: :class:`tencentcloud.mongodb.v20190725.models.DescribeDBInstanceParamTplResponse`
|
428
|
+
|
429
|
+
"""
|
430
|
+
try:
|
431
|
+
params = request._serialize()
|
432
|
+
headers = request.headers
|
433
|
+
body = self.call("DescribeDBInstanceParamTpl", params, headers=headers)
|
434
|
+
response = json.loads(body)
|
435
|
+
model = models.DescribeDBInstanceParamTplResponse()
|
436
|
+
model._deserialize(response["Response"])
|
437
|
+
return model
|
438
|
+
except Exception as e:
|
439
|
+
if isinstance(e, TencentCloudSDKException):
|
440
|
+
raise
|
441
|
+
else:
|
442
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
443
|
+
|
444
|
+
|
445
|
+
def DescribeDBInstanceParamTplDetail(self, request):
|
446
|
+
"""本接口(DescribeDBInstanceParamTplDetail )用于查询MongoDB云数据库实例的参数模板详情。
|
447
|
+
**说明:DescribeDBInstanceParamTplDetail API正在公测中,在此期间,该接口仅对公测用户开放**
|
448
|
+
|
449
|
+
:param request: Request instance for DescribeDBInstanceParamTplDetail.
|
450
|
+
:type request: :class:`tencentcloud.mongodb.v20190725.models.DescribeDBInstanceParamTplDetailRequest`
|
451
|
+
:rtype: :class:`tencentcloud.mongodb.v20190725.models.DescribeDBInstanceParamTplDetailResponse`
|
452
|
+
|
453
|
+
"""
|
454
|
+
try:
|
455
|
+
params = request._serialize()
|
456
|
+
headers = request.headers
|
457
|
+
body = self.call("DescribeDBInstanceParamTplDetail", params, headers=headers)
|
458
|
+
response = json.loads(body)
|
459
|
+
model = models.DescribeDBInstanceParamTplDetailResponse()
|
460
|
+
model._deserialize(response["Response"])
|
461
|
+
return model
|
462
|
+
except Exception as e:
|
463
|
+
if isinstance(e, TencentCloudSDKException):
|
464
|
+
raise
|
465
|
+
else:
|
466
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
467
|
+
|
468
|
+
|
397
469
|
def DescribeDBInstances(self, request):
|
398
470
|
"""本接口(DescribeDBInstances)用于查询云数据库实例列表,支持通过项目ID、实例ID、实例状态等过滤条件来筛选主实例、灾备实例和只读实例信息列表。
|
399
471
|
|
@@ -555,6 +627,30 @@ class MongodbClient(AbstractClient):
|
|
555
627
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
556
628
|
|
557
629
|
|
630
|
+
def DropDBInstanceParamTpl(self, request):
|
631
|
+
"""本接口(DropDBInstanceParamTpl )用于删除云数据库MongoDB实例的参数模板
|
632
|
+
**说明:DropDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
|
633
|
+
|
634
|
+
:param request: Request instance for DropDBInstanceParamTpl.
|
635
|
+
:type request: :class:`tencentcloud.mongodb.v20190725.models.DropDBInstanceParamTplRequest`
|
636
|
+
:rtype: :class:`tencentcloud.mongodb.v20190725.models.DropDBInstanceParamTplResponse`
|
637
|
+
|
638
|
+
"""
|
639
|
+
try:
|
640
|
+
params = request._serialize()
|
641
|
+
headers = request.headers
|
642
|
+
body = self.call("DropDBInstanceParamTpl", params, headers=headers)
|
643
|
+
response = json.loads(body)
|
644
|
+
model = models.DropDBInstanceParamTplResponse()
|
645
|
+
model._deserialize(response["Response"])
|
646
|
+
return model
|
647
|
+
except Exception as e:
|
648
|
+
if isinstance(e, TencentCloudSDKException):
|
649
|
+
raise
|
650
|
+
else:
|
651
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
652
|
+
|
653
|
+
|
558
654
|
def EnableTransparentDataEncryption(self, request):
|
559
655
|
"""本接口(EnableTransparentDataEncryption)用于开启云数据库 MongoDB 的透明加密能力。
|
560
656
|
|
@@ -763,6 +859,30 @@ class MongodbClient(AbstractClient):
|
|
763
859
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
764
860
|
|
765
861
|
|
862
|
+
def ModifyDBInstanceParamTpl(self, request):
|
863
|
+
"""本接口(ModifyDBInstanceParamTpl )用于修改MongoDB云数据库实例的参数模板。
|
864
|
+
**说明:ModifyDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
|
865
|
+
|
866
|
+
:param request: Request instance for ModifyDBInstanceParamTpl.
|
867
|
+
:type request: :class:`tencentcloud.mongodb.v20190725.models.ModifyDBInstanceParamTplRequest`
|
868
|
+
:rtype: :class:`tencentcloud.mongodb.v20190725.models.ModifyDBInstanceParamTplResponse`
|
869
|
+
|
870
|
+
"""
|
871
|
+
try:
|
872
|
+
params = request._serialize()
|
873
|
+
headers = request.headers
|
874
|
+
body = self.call("ModifyDBInstanceParamTpl", params, headers=headers)
|
875
|
+
response = json.loads(body)
|
876
|
+
model = models.ModifyDBInstanceParamTplResponse()
|
877
|
+
model._deserialize(response["Response"])
|
878
|
+
return model
|
879
|
+
except Exception as e:
|
880
|
+
if isinstance(e, TencentCloudSDKException):
|
881
|
+
raise
|
882
|
+
else:
|
883
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
884
|
+
|
885
|
+
|
766
886
|
def ModifyDBInstanceSecurityGroup(self, request):
|
767
887
|
"""本接口(ModifyDBInstanceSecurityGroup)用于修改实例绑定的安全组
|
768
888
|
|
@@ -2247,7 +2247,11 @@ class DeployApplicationRequest(AbstractModel):
|
|
2247
2247
|
:param _DeployVersion: 部署类型为 IMAGE 时,该参数表示镜像 tag。
|
2248
2248
|
部署类型为 JAR/WAR 时,该参数表示包版本号。
|
2249
2249
|
:type DeployVersion: str
|
2250
|
-
:param _PkgName:
|
2250
|
+
:param _PkgName: 传入内容为 /jar包名字 的形式。也就是在 jar包名字前增加一个/。
|
2251
|
+
|
2252
|
+
如上传的 jar 包名字为 demo-1.0.0.jar,那么这里传入内容为:/demo-1.0.0.jar
|
2253
|
+
|
2254
|
+
注:jar 包需要通过 tem 页面上传过,tem 后端才能拉到该 jar 包。
|
2251
2255
|
:type PkgName: str
|
2252
2256
|
:param _JdkVersion: JDK 版本。
|
2253
2257
|
- KONA:8:使用 kona jdk 8。
|
@@ -2319,6 +2323,10 @@ class DeployApplicationRequest(AbstractModel):
|
|
2319
2323
|
:type RepoServer: str
|
2320
2324
|
:param _RepoType: 镜像部署时,仓库类型:0:个人仓库;1:企业版;2:公共仓库;3:tem托管仓库;4:demo仓库
|
2321
2325
|
:type RepoType: int
|
2326
|
+
:param _PostStartEncoded: 启动后执行的脚本,base64 编码
|
2327
|
+
:type PostStartEncoded: str
|
2328
|
+
:param _PreStopEncoded: 停止前执行的脚本,base64 编码
|
2329
|
+
:type PreStopEncoded: str
|
2322
2330
|
"""
|
2323
2331
|
self._ApplicationId = None
|
2324
2332
|
self._InitPodNum = None
|
@@ -2365,6 +2373,8 @@ class DeployApplicationRequest(AbstractModel):
|
|
2365
2373
|
self._TcrInstanceId = None
|
2366
2374
|
self._RepoServer = None
|
2367
2375
|
self._RepoType = None
|
2376
|
+
self._PostStartEncoded = None
|
2377
|
+
self._PreStopEncoded = None
|
2368
2378
|
|
2369
2379
|
@property
|
2370
2380
|
def ApplicationId(self):
|
@@ -2726,6 +2736,22 @@ class DeployApplicationRequest(AbstractModel):
|
|
2726
2736
|
def RepoType(self, RepoType):
|
2727
2737
|
self._RepoType = RepoType
|
2728
2738
|
|
2739
|
+
@property
|
2740
|
+
def PostStartEncoded(self):
|
2741
|
+
return self._PostStartEncoded
|
2742
|
+
|
2743
|
+
@PostStartEncoded.setter
|
2744
|
+
def PostStartEncoded(self, PostStartEncoded):
|
2745
|
+
self._PostStartEncoded = PostStartEncoded
|
2746
|
+
|
2747
|
+
@property
|
2748
|
+
def PreStopEncoded(self):
|
2749
|
+
return self._PreStopEncoded
|
2750
|
+
|
2751
|
+
@PreStopEncoded.setter
|
2752
|
+
def PreStopEncoded(self, PreStopEncoded):
|
2753
|
+
self._PreStopEncoded = PreStopEncoded
|
2754
|
+
|
2729
2755
|
|
2730
2756
|
def _deserialize(self, params):
|
2731
2757
|
self._ApplicationId = params.get("ApplicationId")
|
@@ -2819,6 +2845,8 @@ class DeployApplicationRequest(AbstractModel):
|
|
2819
2845
|
self._TcrInstanceId = params.get("TcrInstanceId")
|
2820
2846
|
self._RepoServer = params.get("RepoServer")
|
2821
2847
|
self._RepoType = params.get("RepoType")
|
2848
|
+
self._PostStartEncoded = params.get("PostStartEncoded")
|
2849
|
+
self._PreStopEncoded = params.get("PreStopEncoded")
|
2822
2850
|
memeber_set = set(params.keys())
|
2823
2851
|
for name, value in vars(self).items():
|
2824
2852
|
property_name = name[1:]
|
@@ -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
|
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
|
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
|
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
|
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)。<
|
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: 节点显示名称。<
|
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: <
|
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
|
|
@@ -3805,7 +4022,7 @@ class NodeOverview(AbstractModel):
|
|
3805
4022
|
:param _Zone: 节点所在可用区信息。
|
3806
4023
|
注意:此字段可能返回 null,表示取不到有效值。
|
3807
4024
|
:type Zone: str
|
3808
|
-
:param _NodeState: 节点状态。<
|
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>
|
3809
4026
|
注意:此字段可能返回 null,表示取不到有效值。
|
3810
4027
|
:type NodeState: str
|
3811
4028
|
:param _ImageId: 镜像ID。
|
@@ -3814,12 +4031,15 @@ class NodeOverview(AbstractModel):
|
|
3814
4031
|
:param _QueueName: 节点所属队列名称。
|
3815
4032
|
注意:此字段可能返回 null,表示取不到有效值。
|
3816
4033
|
:type QueueName: str
|
3817
|
-
:param _NodeRole: 节点角色。<
|
4034
|
+
:param _NodeRole: 节点角色。<li>Manager:管控节点。</li><li>Compute:计算节点。</li><li>Login:登录节点。</li><li>ManagerBackup:备用管控节点。</li>
|
3818
4035
|
注意:此字段可能返回 null,表示取不到有效值。
|
3819
4036
|
:type NodeRole: str
|
3820
|
-
:param _NodeType: 节点类型。<
|
4037
|
+
:param _NodeType: 节点类型。<li>STATIC:静态节点。</li><li>DYNAMIC:弹性节点。</li>
|
3821
4038
|
注意:此字段可能返回 null,表示取不到有效值。
|
3822
4039
|
:type NodeType: str
|
4040
|
+
:param _NodeId: thpc集群节点id
|
4041
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4042
|
+
:type NodeId: str
|
3823
4043
|
"""
|
3824
4044
|
self._InstanceId = None
|
3825
4045
|
self._Zone = None
|
@@ -3828,6 +4048,7 @@ class NodeOverview(AbstractModel):
|
|
3828
4048
|
self._QueueName = None
|
3829
4049
|
self._NodeRole = None
|
3830
4050
|
self._NodeType = None
|
4051
|
+
self._NodeId = None
|
3831
4052
|
|
3832
4053
|
@property
|
3833
4054
|
def InstanceId(self):
|
@@ -3885,6 +4106,14 @@ class NodeOverview(AbstractModel):
|
|
3885
4106
|
def NodeType(self, NodeType):
|
3886
4107
|
self._NodeType = NodeType
|
3887
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
|
+
|
3888
4117
|
|
3889
4118
|
def _deserialize(self, params):
|
3890
4119
|
self._InstanceId = params.get("InstanceId")
|
@@ -3894,6 +4123,7 @@ class NodeOverview(AbstractModel):
|
|
3894
4123
|
self._QueueName = params.get("QueueName")
|
3895
4124
|
self._NodeRole = params.get("NodeRole")
|
3896
4125
|
self._NodeType = params.get("NodeType")
|
4126
|
+
self._NodeId = params.get("NodeId")
|
3897
4127
|
memeber_set = set(params.keys())
|
3898
4128
|
for name, value in vars(self).items():
|
3899
4129
|
property_name = name[1:]
|