tencentcloud-sdk-python 3.0.1399__py2.py3-none-any.whl → 3.0.1401__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/asr/v20190614/models.py +8 -0
- tencentcloud/autoscaling/v20180419/models.py +6 -10
- tencentcloud/cdb/v20170320/models.py +60 -40
- tencentcloud/ckafka/v20190819/models.py +15 -0
- tencentcloud/common/abstract_client.py +21 -13
- tencentcloud/cwp/v20180228/cwp_client.py +6 -2
- tencentcloud/dc/v20180410/models.py +60 -0
- tencentcloud/emr/v20190103/emr_client.py +3 -1
- tencentcloud/es/v20250101/es_client.py +4 -2
- tencentcloud/ess/v20201111/ess_client.py +23 -0
- tencentcloud/ess/v20201111/models.py +117 -0
- tencentcloud/essbasic/v20210526/models.py +4 -2
- tencentcloud/goosefs/v20220519/goosefs_client.py +3 -1
- tencentcloud/iotexplorer/v20190423/models.py +2 -2
- tencentcloud/lke/v20231130/lke_client.py +116 -0
- tencentcloud/lke/v20231130/models.py +2319 -614
- tencentcloud/ocr/v20181119/ocr_client.py +1 -1
- tencentcloud/ssl/v20191205/errorcodes.py +12 -0
- tencentcloud/ssl/v20191205/models.py +6 -8
- tencentcloud/ssl/v20191205/ssl_client.py +2 -2
- tencentcloud/tat/v20201028/models.py +24 -0
- tencentcloud/vpc/v20170312/errorcodes.py +9 -0
- tencentcloud/vpc/v20170312/models.py +4 -4
- {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/RECORD +29 -29
- {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/top_level.txt +0 -0
@@ -115,6 +115,8 @@ class AccessPoint(AbstractModel):
|
|
115
115
|
:type AvailablePortInfo: list of PortSpecification
|
116
116
|
:param _Address: 接入点地址。
|
117
117
|
:type Address: str
|
118
|
+
:param _IsMacSec: 是否MACsec
|
119
|
+
:type IsMacSec: bool
|
118
120
|
"""
|
119
121
|
self._AccessPointName = None
|
120
122
|
self._AccessPointId = None
|
@@ -129,6 +131,7 @@ class AccessPoint(AbstractModel):
|
|
129
131
|
self._AccessPointType = None
|
130
132
|
self._AvailablePortInfo = None
|
131
133
|
self._Address = None
|
134
|
+
self._IsMacSec = None
|
132
135
|
|
133
136
|
@property
|
134
137
|
def AccessPointName(self):
|
@@ -273,6 +276,17 @@ class AccessPoint(AbstractModel):
|
|
273
276
|
def Address(self, Address):
|
274
277
|
self._Address = Address
|
275
278
|
|
279
|
+
@property
|
280
|
+
def IsMacSec(self):
|
281
|
+
"""是否MACsec
|
282
|
+
:rtype: bool
|
283
|
+
"""
|
284
|
+
return self._IsMacSec
|
285
|
+
|
286
|
+
@IsMacSec.setter
|
287
|
+
def IsMacSec(self, IsMacSec):
|
288
|
+
self._IsMacSec = IsMacSec
|
289
|
+
|
276
290
|
|
277
291
|
def _deserialize(self, params):
|
278
292
|
self._AccessPointName = params.get("AccessPointName")
|
@@ -295,6 +309,7 @@ class AccessPoint(AbstractModel):
|
|
295
309
|
obj._deserialize(item)
|
296
310
|
self._AvailablePortInfo.append(obj)
|
297
311
|
self._Address = params.get("Address")
|
312
|
+
self._IsMacSec = params.get("IsMacSec")
|
298
313
|
memeber_set = set(params.keys())
|
299
314
|
for name, value in vars(self).items():
|
300
315
|
property_name = name[1:]
|
@@ -1244,6 +1259,8 @@ ChinaOther:中国其他;
|
|
1244
1259
|
:type SignLaw: bool
|
1245
1260
|
:param _Tags: 标签键值对
|
1246
1261
|
:type Tags: list of Tag
|
1262
|
+
:param _IsMacSec: 是否MACsec需求
|
1263
|
+
:type IsMacSec: bool
|
1247
1264
|
"""
|
1248
1265
|
self._DirectConnectName = None
|
1249
1266
|
self._AccessPointId = None
|
@@ -1263,6 +1280,7 @@ ChinaOther:中国其他;
|
|
1263
1280
|
self._FaultReportContactNumber = None
|
1264
1281
|
self._SignLaw = None
|
1265
1282
|
self._Tags = None
|
1283
|
+
self._IsMacSec = None
|
1266
1284
|
|
1267
1285
|
@property
|
1268
1286
|
def DirectConnectName(self):
|
@@ -1474,6 +1492,17 @@ ChinaOther:中国其他;
|
|
1474
1492
|
def Tags(self, Tags):
|
1475
1493
|
self._Tags = Tags
|
1476
1494
|
|
1495
|
+
@property
|
1496
|
+
def IsMacSec(self):
|
1497
|
+
"""是否MACsec需求
|
1498
|
+
:rtype: bool
|
1499
|
+
"""
|
1500
|
+
return self._IsMacSec
|
1501
|
+
|
1502
|
+
@IsMacSec.setter
|
1503
|
+
def IsMacSec(self, IsMacSec):
|
1504
|
+
self._IsMacSec = IsMacSec
|
1505
|
+
|
1477
1506
|
|
1478
1507
|
def _deserialize(self, params):
|
1479
1508
|
self._DirectConnectName = params.get("DirectConnectName")
|
@@ -1499,6 +1528,7 @@ ChinaOther:中国其他;
|
|
1499
1528
|
obj = Tag()
|
1500
1529
|
obj._deserialize(item)
|
1501
1530
|
self._Tags.append(obj)
|
1531
|
+
self._IsMacSec = params.get("IsMacSec")
|
1502
1532
|
memeber_set = set(params.keys())
|
1503
1533
|
for name, value in vars(self).items():
|
1504
1534
|
property_name = name[1:]
|
@@ -3180,6 +3210,10 @@ class DirectConnect(AbstractModel):
|
|
3180
3210
|
:type AccessPointName: str
|
3181
3211
|
:param _IsThreeArch: 是否三层架构
|
3182
3212
|
:type IsThreeArch: bool
|
3213
|
+
:param _IsMacSec: 是否MACsec
|
3214
|
+
:type IsMacSec: bool
|
3215
|
+
:param _PortSpecification: 端口规格(Mbps)
|
3216
|
+
:type PortSpecification: int
|
3183
3217
|
"""
|
3184
3218
|
self._DirectConnectId = None
|
3185
3219
|
self._DirectConnectName = None
|
@@ -3216,6 +3250,8 @@ class DirectConnect(AbstractModel):
|
|
3216
3250
|
self._Construct = None
|
3217
3251
|
self._AccessPointName = None
|
3218
3252
|
self._IsThreeArch = None
|
3253
|
+
self._IsMacSec = None
|
3254
|
+
self._PortSpecification = None
|
3219
3255
|
|
3220
3256
|
@property
|
3221
3257
|
def DirectConnectId(self):
|
@@ -3610,6 +3646,28 @@ class DirectConnect(AbstractModel):
|
|
3610
3646
|
def IsThreeArch(self, IsThreeArch):
|
3611
3647
|
self._IsThreeArch = IsThreeArch
|
3612
3648
|
|
3649
|
+
@property
|
3650
|
+
def IsMacSec(self):
|
3651
|
+
"""是否MACsec
|
3652
|
+
:rtype: bool
|
3653
|
+
"""
|
3654
|
+
return self._IsMacSec
|
3655
|
+
|
3656
|
+
@IsMacSec.setter
|
3657
|
+
def IsMacSec(self, IsMacSec):
|
3658
|
+
self._IsMacSec = IsMacSec
|
3659
|
+
|
3660
|
+
@property
|
3661
|
+
def PortSpecification(self):
|
3662
|
+
"""端口规格(Mbps)
|
3663
|
+
:rtype: int
|
3664
|
+
"""
|
3665
|
+
return self._PortSpecification
|
3666
|
+
|
3667
|
+
@PortSpecification.setter
|
3668
|
+
def PortSpecification(self, PortSpecification):
|
3669
|
+
self._PortSpecification = PortSpecification
|
3670
|
+
|
3613
3671
|
|
3614
3672
|
def _deserialize(self, params):
|
3615
3673
|
self._DirectConnectId = params.get("DirectConnectId")
|
@@ -3652,6 +3710,8 @@ class DirectConnect(AbstractModel):
|
|
3652
3710
|
self._Construct = params.get("Construct")
|
3653
3711
|
self._AccessPointName = params.get("AccessPointName")
|
3654
3712
|
self._IsThreeArch = params.get("IsThreeArch")
|
3713
|
+
self._IsMacSec = params.get("IsMacSec")
|
3714
|
+
self._PortSpecification = params.get("PortSpecification")
|
3655
3715
|
memeber_set = set(params.keys())
|
3656
3716
|
for name, value in vars(self).items():
|
3657
3717
|
property_name = name[1:]
|
@@ -1458,7 +1458,9 @@ class EmrClient(AbstractClient):
|
|
1458
1458
|
|
1459
1459
|
|
1460
1460
|
def ModifyResourcePools(self, request):
|
1461
|
-
"""
|
1461
|
+
"""已废弃,请使用DeployYarnConf\\n,近一年未被调用
|
1462
|
+
|
1463
|
+
刷新YARN的动态资源池。已废弃,请使用`DeployYarnConf`
|
1462
1464
|
|
1463
1465
|
:param request: Request instance for ModifyResourcePools.
|
1464
1466
|
:type request: :class:`tencentcloud.emr.v20190103.models.ModifyResourcePoolsRequest`
|
@@ -37,7 +37,8 @@ class EsClient(AbstractClient):
|
|
37
37
|
"""
|
38
38
|
try:
|
39
39
|
params = request._serialize()
|
40
|
-
|
40
|
+
options = {"Endpoint": "%s://es.ai.tencentcloudapi.com" % self.profile.httpProfile.scheme}
|
41
|
+
return self._call_and_deserialize("ChatCompletions", params, models.ChatCompletionsResponse, headers=request.headers, options=options)
|
41
42
|
except Exception as e:
|
42
43
|
if isinstance(e, TencentCloudSDKException):
|
43
44
|
raise
|
@@ -174,7 +175,8 @@ class EsClient(AbstractClient):
|
|
174
175
|
"""
|
175
176
|
try:
|
176
177
|
params = request._serialize()
|
177
|
-
|
178
|
+
options = {"Endpoint": "%s://es.ai.tencentcloudapi.com" % self.profile.httpProfile.scheme}
|
179
|
+
return self._call_and_deserialize("ParseDocument", params, models.ParseDocumentResponse, headers=request.headers, options=options)
|
178
180
|
except Exception as e:
|
179
181
|
if isinstance(e, TencentCloudSDKException):
|
180
182
|
raise
|
@@ -3176,6 +3176,29 @@ class EssClient(AbstractClient):
|
|
3176
3176
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
3177
3177
|
|
3178
3178
|
|
3179
|
+
def OperateSeals(self, request):
|
3180
|
+
"""修改印章状态(停用、启用)
|
3181
|
+
|
3182
|
+
:param request: Request instance for OperateSeals.
|
3183
|
+
:type request: :class:`tencentcloud.ess.v20201111.models.OperateSealsRequest`
|
3184
|
+
:rtype: :class:`tencentcloud.ess.v20201111.models.OperateSealsResponse`
|
3185
|
+
|
3186
|
+
"""
|
3187
|
+
try:
|
3188
|
+
params = request._serialize()
|
3189
|
+
headers = request.headers
|
3190
|
+
body = self.call("OperateSeals", params, headers=headers)
|
3191
|
+
response = json.loads(body)
|
3192
|
+
model = models.OperateSealsResponse()
|
3193
|
+
model._deserialize(response["Response"])
|
3194
|
+
return model
|
3195
|
+
except Exception as e:
|
3196
|
+
if isinstance(e, TencentCloudSDKException):
|
3197
|
+
raise
|
3198
|
+
else:
|
3199
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
3200
|
+
|
3201
|
+
|
3179
3202
|
def OperateTemplate(self, request):
|
3180
3203
|
"""此接口(OperateTemplate)用于对企业自有模板进行管理操作,所有操作都会有对应的回调触发,具体参考回调文档 <a href="https://qian.tencent.com/developers/company/callback_types_templates" target="_blank">模板操作相关回调</a>
|
3181
3204
|
|
@@ -29680,6 +29680,123 @@ class OccupiedSeal(AbstractModel):
|
|
29680
29680
|
|
29681
29681
|
|
29682
29682
|
|
29683
|
+
class OperateSealsRequest(AbstractModel):
|
29684
|
+
"""OperateSeals请求参数结构体
|
29685
|
+
|
29686
|
+
"""
|
29687
|
+
|
29688
|
+
def __init__(self):
|
29689
|
+
r"""
|
29690
|
+
:param _Operator: 执行本接口操作的员工信息。 注: 在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。
|
29691
|
+
:type Operator: :class:`tencentcloud.ess.v20201111.models.UserInfo`
|
29692
|
+
:param _Agent: 代理企业和员工的信息。 在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。
|
29693
|
+
:type Agent: :class:`tencentcloud.ess.v20201111.models.Agent`
|
29694
|
+
:param _Act: 操作类型,int,目前支持传入以下类型:
|
29695
|
+
<ul><li>1:启用印章</li></ul>
|
29696
|
+
<ul><li>2:停用印章</li></ul>
|
29697
|
+
:type Act: int
|
29698
|
+
:param _SealIds: 需要操作的印章ID,数组形式,印章ID可从【web控制台->印章 】获取。
|
29699
|
+
:type SealIds: list of str
|
29700
|
+
"""
|
29701
|
+
self._Operator = None
|
29702
|
+
self._Agent = None
|
29703
|
+
self._Act = None
|
29704
|
+
self._SealIds = None
|
29705
|
+
|
29706
|
+
@property
|
29707
|
+
def Operator(self):
|
29708
|
+
"""执行本接口操作的员工信息。 注: 在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。
|
29709
|
+
:rtype: :class:`tencentcloud.ess.v20201111.models.UserInfo`
|
29710
|
+
"""
|
29711
|
+
return self._Operator
|
29712
|
+
|
29713
|
+
@Operator.setter
|
29714
|
+
def Operator(self, Operator):
|
29715
|
+
self._Operator = Operator
|
29716
|
+
|
29717
|
+
@property
|
29718
|
+
def Agent(self):
|
29719
|
+
"""代理企业和员工的信息。 在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。
|
29720
|
+
:rtype: :class:`tencentcloud.ess.v20201111.models.Agent`
|
29721
|
+
"""
|
29722
|
+
return self._Agent
|
29723
|
+
|
29724
|
+
@Agent.setter
|
29725
|
+
def Agent(self, Agent):
|
29726
|
+
self._Agent = Agent
|
29727
|
+
|
29728
|
+
@property
|
29729
|
+
def Act(self):
|
29730
|
+
"""操作类型,int,目前支持传入以下类型:
|
29731
|
+
<ul><li>1:启用印章</li></ul>
|
29732
|
+
<ul><li>2:停用印章</li></ul>
|
29733
|
+
:rtype: int
|
29734
|
+
"""
|
29735
|
+
return self._Act
|
29736
|
+
|
29737
|
+
@Act.setter
|
29738
|
+
def Act(self, Act):
|
29739
|
+
self._Act = Act
|
29740
|
+
|
29741
|
+
@property
|
29742
|
+
def SealIds(self):
|
29743
|
+
"""需要操作的印章ID,数组形式,印章ID可从【web控制台->印章 】获取。
|
29744
|
+
:rtype: list of str
|
29745
|
+
"""
|
29746
|
+
return self._SealIds
|
29747
|
+
|
29748
|
+
@SealIds.setter
|
29749
|
+
def SealIds(self, SealIds):
|
29750
|
+
self._SealIds = SealIds
|
29751
|
+
|
29752
|
+
|
29753
|
+
def _deserialize(self, params):
|
29754
|
+
if params.get("Operator") is not None:
|
29755
|
+
self._Operator = UserInfo()
|
29756
|
+
self._Operator._deserialize(params.get("Operator"))
|
29757
|
+
if params.get("Agent") is not None:
|
29758
|
+
self._Agent = Agent()
|
29759
|
+
self._Agent._deserialize(params.get("Agent"))
|
29760
|
+
self._Act = params.get("Act")
|
29761
|
+
self._SealIds = params.get("SealIds")
|
29762
|
+
memeber_set = set(params.keys())
|
29763
|
+
for name, value in vars(self).items():
|
29764
|
+
property_name = name[1:]
|
29765
|
+
if property_name in memeber_set:
|
29766
|
+
memeber_set.remove(property_name)
|
29767
|
+
if len(memeber_set) > 0:
|
29768
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
29769
|
+
|
29770
|
+
|
29771
|
+
|
29772
|
+
class OperateSealsResponse(AbstractModel):
|
29773
|
+
"""OperateSeals返回参数结构体
|
29774
|
+
|
29775
|
+
"""
|
29776
|
+
|
29777
|
+
def __init__(self):
|
29778
|
+
r"""
|
29779
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
29780
|
+
:type RequestId: str
|
29781
|
+
"""
|
29782
|
+
self._RequestId = None
|
29783
|
+
|
29784
|
+
@property
|
29785
|
+
def RequestId(self):
|
29786
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
29787
|
+
:rtype: str
|
29788
|
+
"""
|
29789
|
+
return self._RequestId
|
29790
|
+
|
29791
|
+
@RequestId.setter
|
29792
|
+
def RequestId(self, RequestId):
|
29793
|
+
self._RequestId = RequestId
|
29794
|
+
|
29795
|
+
|
29796
|
+
def _deserialize(self, params):
|
29797
|
+
self._RequestId = params.get("RequestId")
|
29798
|
+
|
29799
|
+
|
29683
29800
|
class OperateTemplateRequest(AbstractModel):
|
29684
29801
|
"""OperateTemplate请求参数结构体
|
29685
29802
|
|
@@ -3044,7 +3044,8 @@ class ChannelCreateBatchSignUrlRequest(AbstractModel):
|
|
3044
3044
|
:param _CanBatchReject: 是否允许此链接中签署方批量拒签。 <ul><li>false (默认): 不允许批量拒签</li> <li>true : 允许批量拒签。</li></ul>
|
3045
3045
|
注:`1. 合同组暂不支持批量拒签功能。2. 如果是链接直接跳转至详情页(JumpToDetail参数为true),也不支持批量拒签功能`
|
3046
3046
|
:type CanBatchReject: bool
|
3047
|
-
:param _CanSkipReadFlow: 是否允许此链接中签署方批量确认已读文件。 <ul><li>false (默认): 不允许批量确认已读文件。</li> <li>true : 允许批量确认已读文件。</li></ul
|
3047
|
+
:param _CanSkipReadFlow: 是否允许此链接中签署方批量确认已读文件。 <ul><li>false (默认): 不允许批量确认已读文件。</li> <li>true : 允许批量确认已读文件。</li></ul>
|
3048
|
+
注:`1. 此功能为白名单功能,使用前请联系对应客户经理进行开通。2. 使用此功能时,FlowIds参数必传。3. 对于企业签署方,如果对印章/签名控件有限制要求,需要保证所有印章/签名控件的限制要求(印章id或印章/签名类型限制)一致,否则无法使用此功能。`
|
3048
3049
|
:type CanSkipReadFlow: bool
|
3049
3050
|
"""
|
3050
3051
|
self._Agent = None
|
@@ -3324,7 +3325,8 @@ class ChannelCreateBatchSignUrlRequest(AbstractModel):
|
|
3324
3325
|
|
3325
3326
|
@property
|
3326
3327
|
def CanSkipReadFlow(self):
|
3327
|
-
"""是否允许此链接中签署方批量确认已读文件。 <ul><li>false (默认): 不允许批量确认已读文件。</li> <li>true : 允许批量确认已读文件。</li></ul
|
3328
|
+
"""是否允许此链接中签署方批量确认已读文件。 <ul><li>false (默认): 不允许批量确认已读文件。</li> <li>true : 允许批量确认已读文件。</li></ul>
|
3329
|
+
注:`1. 此功能为白名单功能,使用前请联系对应客户经理进行开通。2. 使用此功能时,FlowIds参数必传。3. 对于企业签署方,如果对印章/签名控件有限制要求,需要保证所有印章/签名控件的限制要求(印章id或印章/签名类型限制)一致,否则无法使用此功能。`
|
3328
3330
|
:rtype: bool
|
3329
3331
|
"""
|
3330
3332
|
return self._CanSkipReadFlow
|
@@ -326,7 +326,9 @@ class GoosefsClient(AbstractClient):
|
|
326
326
|
|
327
327
|
|
328
328
|
def DescribeClusterRoles(self, request):
|
329
|
-
"""
|
329
|
+
"""接口废弃
|
330
|
+
|
331
|
+
查询GooseFS集群角色
|
330
332
|
|
331
333
|
:param request: Request instance for DescribeClusterRoles.
|
332
334
|
:type request: :class:`tencentcloud.goosefs.v20220519.models.DescribeClusterRolesRequest`
|
@@ -127,7 +127,7 @@ class ActivateTWeCallLicenseRequest(AbstractModel):
|
|
127
127
|
|
128
128
|
def __init__(self):
|
129
129
|
r"""
|
130
|
-
:param _PkgType: TWecall类型:0-体验套餐;1
|
130
|
+
:param _PkgType: TWecall类型:0-体验套餐;1-基础版;3-高级版;
|
131
131
|
:type PkgType: int
|
132
132
|
:param _MiniProgramAppId: 参数已弃用,不用传参
|
133
133
|
:type MiniProgramAppId: str
|
@@ -140,7 +140,7 @@ class ActivateTWeCallLicenseRequest(AbstractModel):
|
|
140
140
|
|
141
141
|
@property
|
142
142
|
def PkgType(self):
|
143
|
-
"""TWecall类型:0-体验套餐;1
|
143
|
+
"""TWecall类型:0-体验套餐;1-基础版;3-高级版;
|
144
144
|
:rtype: int
|
145
145
|
"""
|
146
146
|
return self._PkgType
|
@@ -327,6 +327,30 @@ class LkeClient(AbstractClient):
|
|
327
327
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
328
328
|
|
329
329
|
|
330
|
+
def CreateWorkflowRun(self, request):
|
331
|
+
"""本接口用来创建工作流的异步运行实例,创建成功后工作流会在后台异步运行,接口返回工作流运行实例ID(WorkflowRunId)等信息。后面可通过调用DescribeWorkflowRun接口查工作流运行的详情。
|
332
|
+
注意:工作流的异步运行是基于应用的,需要先把对应的应用配置成“单工作流模式”,并且打开“异步调用”的开关,才能创建成功。
|
333
|
+
|
334
|
+
:param request: Request instance for CreateWorkflowRun.
|
335
|
+
:type request: :class:`tencentcloud.lke.v20231130.models.CreateWorkflowRunRequest`
|
336
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.CreateWorkflowRunResponse`
|
337
|
+
|
338
|
+
"""
|
339
|
+
try:
|
340
|
+
params = request._serialize()
|
341
|
+
headers = request.headers
|
342
|
+
body = self.call("CreateWorkflowRun", params, headers=headers)
|
343
|
+
response = json.loads(body)
|
344
|
+
model = models.CreateWorkflowRunResponse()
|
345
|
+
model._deserialize(response["Response"])
|
346
|
+
return model
|
347
|
+
except Exception as e:
|
348
|
+
if isinstance(e, TencentCloudSDKException):
|
349
|
+
raise
|
350
|
+
else:
|
351
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
352
|
+
|
353
|
+
|
330
354
|
def DeleteApp(self, request):
|
331
355
|
"""删除应用
|
332
356
|
|
@@ -718,6 +742,29 @@ class LkeClient(AbstractClient):
|
|
718
742
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
719
743
|
|
720
744
|
|
745
|
+
def DescribeNodeRun(self, request):
|
746
|
+
"""通过DescribeWorkflowRun接口获取了工作流异步运行的整体内容,其中包含了基本的节点信息,再通用本接口可查看节点的运行详情(包括输入、输出、日志等)。
|
747
|
+
|
748
|
+
:param request: Request instance for DescribeNodeRun.
|
749
|
+
:type request: :class:`tencentcloud.lke.v20231130.models.DescribeNodeRunRequest`
|
750
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.DescribeNodeRunResponse`
|
751
|
+
|
752
|
+
"""
|
753
|
+
try:
|
754
|
+
params = request._serialize()
|
755
|
+
headers = request.headers
|
756
|
+
body = self.call("DescribeNodeRun", params, headers=headers)
|
757
|
+
response = json.loads(body)
|
758
|
+
model = models.DescribeNodeRunResponse()
|
759
|
+
model._deserialize(response["Response"])
|
760
|
+
return model
|
761
|
+
except Exception as e:
|
762
|
+
if isinstance(e, TencentCloudSDKException):
|
763
|
+
raise
|
764
|
+
else:
|
765
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
766
|
+
|
767
|
+
|
721
768
|
def DescribeQA(self, request):
|
722
769
|
"""问答详情
|
723
770
|
|
@@ -994,6 +1041,29 @@ class LkeClient(AbstractClient):
|
|
994
1041
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
995
1042
|
|
996
1043
|
|
1044
|
+
def DescribeWorkflowRun(self, request):
|
1045
|
+
"""创建了工作流的异步运行实例后,通过本接口可以查询整体的运行详情。
|
1046
|
+
|
1047
|
+
:param request: Request instance for DescribeWorkflowRun.
|
1048
|
+
:type request: :class:`tencentcloud.lke.v20231130.models.DescribeWorkflowRunRequest`
|
1049
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.DescribeWorkflowRunResponse`
|
1050
|
+
|
1051
|
+
"""
|
1052
|
+
try:
|
1053
|
+
params = request._serialize()
|
1054
|
+
headers = request.headers
|
1055
|
+
body = self.call("DescribeWorkflowRun", params, headers=headers)
|
1056
|
+
response = json.loads(body)
|
1057
|
+
model = models.DescribeWorkflowRunResponse()
|
1058
|
+
model._deserialize(response["Response"])
|
1059
|
+
return model
|
1060
|
+
except Exception as e:
|
1061
|
+
if isinstance(e, TencentCloudSDKException):
|
1062
|
+
raise
|
1063
|
+
else:
|
1064
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1065
|
+
|
1066
|
+
|
997
1067
|
def ExportAttributeLabel(self, request):
|
998
1068
|
"""导出属性标签
|
999
1069
|
|
@@ -1894,6 +1964,29 @@ class LkeClient(AbstractClient):
|
|
1894
1964
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1895
1965
|
|
1896
1966
|
|
1967
|
+
def ListWorkflowRuns(self, request):
|
1968
|
+
"""此接口可查询已创建的所有工作流异步运行实例。
|
1969
|
+
|
1970
|
+
:param request: Request instance for ListWorkflowRuns.
|
1971
|
+
:type request: :class:`tencentcloud.lke.v20231130.models.ListWorkflowRunsRequest`
|
1972
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.ListWorkflowRunsResponse`
|
1973
|
+
|
1974
|
+
"""
|
1975
|
+
try:
|
1976
|
+
params = request._serialize()
|
1977
|
+
headers = request.headers
|
1978
|
+
body = self.call("ListWorkflowRuns", params, headers=headers)
|
1979
|
+
response = json.loads(body)
|
1980
|
+
model = models.ListWorkflowRunsResponse()
|
1981
|
+
model._deserialize(response["Response"])
|
1982
|
+
return model
|
1983
|
+
except Exception as e:
|
1984
|
+
if isinstance(e, TencentCloudSDKException):
|
1985
|
+
raise
|
1986
|
+
else:
|
1987
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1988
|
+
|
1989
|
+
|
1897
1990
|
def ModifyApp(self, request):
|
1898
1991
|
"""修改应用请求结构体
|
1899
1992
|
|
@@ -2362,6 +2455,29 @@ class LkeClient(AbstractClient):
|
|
2362
2455
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2363
2456
|
|
2364
2457
|
|
2458
|
+
def StopWorkflowRun(self, request):
|
2459
|
+
"""此接口用来停止正在进行的工作流异步运行实例。
|
2460
|
+
|
2461
|
+
:param request: Request instance for StopWorkflowRun.
|
2462
|
+
:type request: :class:`tencentcloud.lke.v20231130.models.StopWorkflowRunRequest`
|
2463
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.StopWorkflowRunResponse`
|
2464
|
+
|
2465
|
+
"""
|
2466
|
+
try:
|
2467
|
+
params = request._serialize()
|
2468
|
+
headers = request.headers
|
2469
|
+
body = self.call("StopWorkflowRun", params, headers=headers)
|
2470
|
+
response = json.loads(body)
|
2471
|
+
model = models.StopWorkflowRunResponse()
|
2472
|
+
model._deserialize(response["Response"])
|
2473
|
+
return model
|
2474
|
+
except Exception as e:
|
2475
|
+
if isinstance(e, TencentCloudSDKException):
|
2476
|
+
raise
|
2477
|
+
else:
|
2478
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2479
|
+
|
2480
|
+
|
2365
2481
|
def UpdateSharedKnowledge(self, request):
|
2366
2482
|
"""更新共享知识库。
|
2367
2483
|
|