tencentcloud-sdk-python 3.0.1449__py2.py3-none-any.whl → 3.0.1450__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/cbs/v20170312/models.py +2 -2
- tencentcloud/dcdb/v20180411/dcdb_client.py +95 -0
- tencentcloud/dcdb/v20180411/errorcodes.py +9 -0
- tencentcloud/dcdb/v20180411/models.py +732 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +92 -0
- tencentcloud/iotexplorer/v20190423/models.py +614 -0
- tencentcloud/lkeap/v20240522/errorcodes.py +1 -1
- tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
- tencentcloud/lkeap/v20240522/models.py +24 -10
- tencentcloud/mariadb/v20170312/errorcodes.py +9 -0
- tencentcloud/mariadb/v20170312/mariadb_client.py +95 -0
- tencentcloud/mariadb/v20170312/models.py +702 -0
- tencentcloud/teo/v20220901/models.py +2 -2
- tencentcloud/trtc/v20190722/models.py +2 -2
- tencentcloud/vclm/v20240523/models.py +2 -2
- tencentcloud/waf/v20180125/models.py +79 -0
- tencentcloud/waf/v20180125/waf_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1449.dist-info → tencentcloud_sdk_python-3.0.1450.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1449.dist-info → tencentcloud_sdk_python-3.0.1450.dist-info}/RECORD +23 -23
- {tencentcloud_sdk_python-3.0.1449.dist-info → tencentcloud_sdk_python-3.0.1450.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1449.dist-info → tencentcloud_sdk_python-3.0.1450.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1449.dist-info → tencentcloud_sdk_python-3.0.1450.dist-info}/top_level.txt +0 -0
@@ -3868,9 +3868,12 @@ class QueryRewriteRequest(AbstractModel):
|
|
3868
3868
|
|
3869
3869
|
def __init__(self):
|
3870
3870
|
r"""
|
3871
|
-
:param _Messages:
|
3871
|
+
:param _Messages: 说明:需要改写的多轮历史会话,每轮历史对话需要包含user(问)和assistant(答)成对输入
|
3872
|
+
备注:由于模型字符限制,最多提供4轮对话。针对最后一轮对话进行改写。四轮对话最多包含3600个字符。
|
3872
3873
|
:type Messages: list of Message
|
3873
|
-
:param _Model:
|
3874
|
+
:param _Model: 说明:模型名称
|
3875
|
+
备注:仅一个模型可选
|
3876
|
+
默认值:lke-query-rewrite-base
|
3874
3877
|
:type Model: str
|
3875
3878
|
"""
|
3876
3879
|
self._Messages = None
|
@@ -3878,7 +3881,8 @@ class QueryRewriteRequest(AbstractModel):
|
|
3878
3881
|
|
3879
3882
|
@property
|
3880
3883
|
def Messages(self):
|
3881
|
-
"""
|
3884
|
+
"""说明:需要改写的多轮历史会话,每轮历史对话需要包含user(问)和assistant(答)成对输入
|
3885
|
+
备注:由于模型字符限制,最多提供4轮对话。针对最后一轮对话进行改写。四轮对话最多包含3600个字符。
|
3882
3886
|
:rtype: list of Message
|
3883
3887
|
"""
|
3884
3888
|
return self._Messages
|
@@ -3889,7 +3893,9 @@ class QueryRewriteRequest(AbstractModel):
|
|
3889
3893
|
|
3890
3894
|
@property
|
3891
3895
|
def Model(self):
|
3892
|
-
"""
|
3896
|
+
"""说明:模型名称
|
3897
|
+
备注:仅一个模型可选
|
3898
|
+
默认值:lke-query-rewrite-base
|
3893
3899
|
:rtype: str
|
3894
3900
|
"""
|
3895
3901
|
return self._Model
|
@@ -4814,11 +4820,15 @@ class RunRerankRequest(AbstractModel):
|
|
4814
4820
|
|
4815
4821
|
def __init__(self):
|
4816
4822
|
r"""
|
4817
|
-
:param _Query:
|
4823
|
+
:param _Query: 说明:查询内容
|
4824
|
+
备注:用于匹配的query
|
4818
4825
|
:type Query: str
|
4819
|
-
:param _Docs:
|
4826
|
+
:param _Docs: 说明:文档列表
|
4827
|
+
备注:最多60个,Query字段和Docs字段的总长度上限为2000字符
|
4820
4828
|
:type Docs: list of str
|
4821
|
-
:param _Model:
|
4829
|
+
:param _Model: 说明:模型名称
|
4830
|
+
备注:仅一个模型可选
|
4831
|
+
默认值:lke-reranker-base
|
4822
4832
|
:type Model: str
|
4823
4833
|
"""
|
4824
4834
|
self._Query = None
|
@@ -4827,7 +4837,8 @@ class RunRerankRequest(AbstractModel):
|
|
4827
4837
|
|
4828
4838
|
@property
|
4829
4839
|
def Query(self):
|
4830
|
-
"""
|
4840
|
+
"""说明:查询内容
|
4841
|
+
备注:用于匹配的query
|
4831
4842
|
:rtype: str
|
4832
4843
|
"""
|
4833
4844
|
return self._Query
|
@@ -4838,7 +4849,8 @@ class RunRerankRequest(AbstractModel):
|
|
4838
4849
|
|
4839
4850
|
@property
|
4840
4851
|
def Docs(self):
|
4841
|
-
"""
|
4852
|
+
"""说明:文档列表
|
4853
|
+
备注:最多60个,Query字段和Docs字段的总长度上限为2000字符
|
4842
4854
|
:rtype: list of str
|
4843
4855
|
"""
|
4844
4856
|
return self._Docs
|
@@ -4849,7 +4861,9 @@ class RunRerankRequest(AbstractModel):
|
|
4849
4861
|
|
4850
4862
|
@property
|
4851
4863
|
def Model(self):
|
4852
|
-
"""
|
4864
|
+
"""说明:模型名称
|
4865
|
+
备注:仅一个模型可选
|
4866
|
+
默认值:lke-reranker-base
|
4853
4867
|
:rtype: str
|
4854
4868
|
"""
|
4855
4869
|
return self._Model
|
@@ -92,6 +92,9 @@ FAILEDOPERATION_SETRULELOCATIONFAILED = 'FailedOperation.SetRuleLocationFailed'
|
|
92
92
|
# 安全组规则下发失败。
|
93
93
|
FAILEDOPERATION_SETSVCLOCATIONFAILED = 'FailedOperation.SetSvcLocationFailed'
|
94
94
|
|
95
|
+
# SSL状态异常。
|
96
|
+
FAILEDOPERATION_SSLSTATUSABNORMAL = 'FailedOperation.SslStatusAbnormal'
|
97
|
+
|
95
98
|
# 标签键值校验或鉴权失败。
|
96
99
|
FAILEDOPERATION_TAGDRYRUNERROR = 'FailedOperation.TagDryRunError'
|
97
100
|
|
@@ -413,6 +416,9 @@ RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = 'ResourceUnavailable.InstanceStatus
|
|
413
416
|
# 安全组校验失败。
|
414
417
|
RESOURCEUNAVAILABLE_SGCHECKFAIL = 'ResourceUnavailable.SGCheckFail'
|
415
418
|
|
419
|
+
# SSL状态异常。
|
420
|
+
RESOURCEUNAVAILABLE_SSLSTATUSABNORMAL = 'ResourceUnavailable.SSLStatusAbnormal'
|
421
|
+
|
416
422
|
# 未授权操作。
|
417
423
|
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
418
424
|
|
@@ -430,3 +436,6 @@ UNSUPPORTEDOPERATION_OLDPROXYVERSION = 'UnsupportedOperation.OldProxyVersion'
|
|
430
436
|
|
431
437
|
# 不适用的操作。
|
432
438
|
UNSUPPORTEDOPERATION_OPERATIONNOTAPPLICABLE = 'UnsupportedOperation.OperationNotApplicable'
|
439
|
+
|
440
|
+
# 当前版本不支持SSL认证,请联系客服升级到新版本后再试。
|
441
|
+
UNSUPPORTEDOPERATION_SSLNOTSUPPORTED = 'UnsupportedOperation.SSLNotSupported'
|
@@ -834,6 +834,29 @@ class MariadbClient(AbstractClient):
|
|
834
834
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
835
835
|
|
836
836
|
|
837
|
+
def DescribeInstanceSSLAttributes(self, request):
|
838
|
+
"""本接口(DescribeInstanceSSLAttributes)用于拉取实例SSL认证属性
|
839
|
+
|
840
|
+
:param request: Request instance for DescribeInstanceSSLAttributes.
|
841
|
+
:type request: :class:`tencentcloud.mariadb.v20170312.models.DescribeInstanceSSLAttributesRequest`
|
842
|
+
:rtype: :class:`tencentcloud.mariadb.v20170312.models.DescribeInstanceSSLAttributesResponse`
|
843
|
+
|
844
|
+
"""
|
845
|
+
try:
|
846
|
+
params = request._serialize()
|
847
|
+
headers = request.headers
|
848
|
+
body = self.call("DescribeInstanceSSLAttributes", params, headers=headers)
|
849
|
+
response = json.loads(body)
|
850
|
+
model = models.DescribeInstanceSSLAttributesResponse()
|
851
|
+
model._deserialize(response["Response"])
|
852
|
+
return model
|
853
|
+
except Exception as e:
|
854
|
+
if isinstance(e, TencentCloudSDKException):
|
855
|
+
raise
|
856
|
+
else:
|
857
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
858
|
+
|
859
|
+
|
837
860
|
def DescribeLogFileRetentionPeriod(self, request):
|
838
861
|
"""本接口(DescribeLogFileRetentionPeriod)用于查看数据库备份日志的备份天数的设置情况。
|
839
862
|
|
@@ -903,6 +926,32 @@ class MariadbClient(AbstractClient):
|
|
903
926
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
904
927
|
|
905
928
|
|
929
|
+
def DescribeProcessList(self, request):
|
930
|
+
"""本接口 (DescribeProcessList) 用于查询当前正在运行的线程(连接/查询)信息。
|
931
|
+
|
932
|
+
- 可以根据客户端IP,DB,执行时间等信息来查询实例正在运行的线程信息。过滤信息详细请见过滤器Filter。
|
933
|
+
- 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的线程信息。
|
934
|
+
|
935
|
+
:param request: Request instance for DescribeProcessList.
|
936
|
+
:type request: :class:`tencentcloud.mariadb.v20170312.models.DescribeProcessListRequest`
|
937
|
+
:rtype: :class:`tencentcloud.mariadb.v20170312.models.DescribeProcessListResponse`
|
938
|
+
|
939
|
+
"""
|
940
|
+
try:
|
941
|
+
params = request._serialize()
|
942
|
+
headers = request.headers
|
943
|
+
body = self.call("DescribeProcessList", params, headers=headers)
|
944
|
+
response = json.loads(body)
|
945
|
+
model = models.DescribeProcessListResponse()
|
946
|
+
model._deserialize(response["Response"])
|
947
|
+
return model
|
948
|
+
except Exception as e:
|
949
|
+
if isinstance(e, TencentCloudSDKException):
|
950
|
+
raise
|
951
|
+
else:
|
952
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
953
|
+
|
954
|
+
|
906
955
|
def DescribeProjectSecurityGroups(self, request):
|
907
956
|
"""本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息
|
908
957
|
|
@@ -1487,6 +1536,52 @@ class MariadbClient(AbstractClient):
|
|
1487
1536
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1488
1537
|
|
1489
1538
|
|
1539
|
+
def ModifyInstanceProtectedProperty(self, request):
|
1540
|
+
"""该接口用于对实例修改删除保护属性
|
1541
|
+
|
1542
|
+
:param request: Request instance for ModifyInstanceProtectedProperty.
|
1543
|
+
:type request: :class:`tencentcloud.mariadb.v20170312.models.ModifyInstanceProtectedPropertyRequest`
|
1544
|
+
:rtype: :class:`tencentcloud.mariadb.v20170312.models.ModifyInstanceProtectedPropertyResponse`
|
1545
|
+
|
1546
|
+
"""
|
1547
|
+
try:
|
1548
|
+
params = request._serialize()
|
1549
|
+
headers = request.headers
|
1550
|
+
body = self.call("ModifyInstanceProtectedProperty", params, headers=headers)
|
1551
|
+
response = json.loads(body)
|
1552
|
+
model = models.ModifyInstanceProtectedPropertyResponse()
|
1553
|
+
model._deserialize(response["Response"])
|
1554
|
+
return model
|
1555
|
+
except Exception as e:
|
1556
|
+
if isinstance(e, TencentCloudSDKException):
|
1557
|
+
raise
|
1558
|
+
else:
|
1559
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1560
|
+
|
1561
|
+
|
1562
|
+
def ModifyInstanceSSLAttributes(self, request):
|
1563
|
+
"""本接口 (ModifyInstanceSSLAttributes)用于修改实例SSL认证功能属性
|
1564
|
+
|
1565
|
+
:param request: Request instance for ModifyInstanceSSLAttributes.
|
1566
|
+
:type request: :class:`tencentcloud.mariadb.v20170312.models.ModifyInstanceSSLAttributesRequest`
|
1567
|
+
:rtype: :class:`tencentcloud.mariadb.v20170312.models.ModifyInstanceSSLAttributesResponse`
|
1568
|
+
|
1569
|
+
"""
|
1570
|
+
try:
|
1571
|
+
params = request._serialize()
|
1572
|
+
headers = request.headers
|
1573
|
+
body = self.call("ModifyInstanceSSLAttributes", params, headers=headers)
|
1574
|
+
response = json.loads(body)
|
1575
|
+
model = models.ModifyInstanceSSLAttributesResponse()
|
1576
|
+
model._deserialize(response["Response"])
|
1577
|
+
return model
|
1578
|
+
except Exception as e:
|
1579
|
+
if isinstance(e, TencentCloudSDKException):
|
1580
|
+
raise
|
1581
|
+
else:
|
1582
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1583
|
+
|
1584
|
+
|
1490
1585
|
def ModifyInstanceVip(self, request):
|
1491
1586
|
"""本接口(ModifyInstanceVip)用于修改实例VIP
|
1492
1587
|
|