tencentcloud-sdk-python 3.0.1430__py2.py3-none-any.whl → 3.0.1432__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.

Potentially problematic release.


This version of tencentcloud-sdk-python might be problematic. Click here for more details.

Files changed (36) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/cbs/v20170312/models.py +15 -0
  3. tencentcloud/cdb/v20170320/cdb_client.py +6 -6
  4. tencentcloud/cdb/v20170320/models.py +132 -108
  5. tencentcloud/cdn/v20180606/cdn_client.py +12 -4
  6. tencentcloud/dsgc/v20190723/models.py +2 -2
  7. tencentcloud/ess/v20201111/models.py +42 -0
  8. tencentcloud/essbasic/v20210526/essbasic_client.py +1 -1
  9. tencentcloud/essbasic/v20210526/models.py +58 -22
  10. tencentcloud/gs/v20191118/models.py +57 -4
  11. tencentcloud/lcic/v20220817/lcic_client.py +3 -0
  12. tencentcloud/lcic/v20220817/models.py +10 -10
  13. tencentcloud/live/v20180801/models.py +70 -2
  14. tencentcloud/lke/v20231130/models.py +32 -2
  15. tencentcloud/mps/v20190612/models.py +731 -57
  16. tencentcloud/mps/v20190612/mps_client.py +5 -5
  17. tencentcloud/oceanus/v20190422/models.py +36 -2
  18. tencentcloud/ocr/v20181119/models.py +147 -0
  19. tencentcloud/ocr/v20181119/ocr_client.py +25 -0
  20. tencentcloud/postgres/v20170312/models.py +362 -334
  21. tencentcloud/postgres/v20170312/postgres_client.py +9 -9
  22. tencentcloud/ssl/v20191205/models.py +47 -2
  23. tencentcloud/tsf/v20180326/errorcodes.py +2 -2
  24. tencentcloud/vod/v20180717/models.py +372 -2
  25. tencentcloud/wedata/v20210820/models.py +1524 -2
  26. tencentcloud/wedata/v20210820/wedata_client.py +184 -0
  27. tencentcloud/wsa/__init__.py +0 -0
  28. tencentcloud/wsa/v20250508/__init__.py +0 -0
  29. tencentcloud/wsa/v20250508/errorcodes.py +27 -0
  30. tencentcloud/wsa/v20250508/models.py +187 -0
  31. tencentcloud/wsa/v20250508/wsa_client.py +49 -0
  32. {tencentcloud_sdk_python-3.0.1430.dist-info → tencentcloud_sdk_python-3.0.1432.dist-info}/METADATA +1 -1
  33. {tencentcloud_sdk_python-3.0.1430.dist-info → tencentcloud_sdk_python-3.0.1432.dist-info}/RECORD +36 -31
  34. {tencentcloud_sdk_python-3.0.1430.dist-info → tencentcloud_sdk_python-3.0.1432.dist-info}/LICENSE +0 -0
  35. {tencentcloud_sdk_python-3.0.1430.dist-info → tencentcloud_sdk_python-3.0.1432.dist-info}/WHEEL +0 -0
  36. {tencentcloud_sdk_python-3.0.1430.dist-info → tencentcloud_sdk_python-3.0.1432.dist-info}/top_level.txt +0 -0
@@ -4405,6 +4405,29 @@ class WedataClient(AbstractClient):
4405
4405
  raise TencentCloudSDKException(type(e).__name__, str(e))
4406
4406
 
4407
4407
 
4408
+ def DescribeTaskParamDs(self, request):
4409
+ """查询任务引用参数
4410
+
4411
+ :param request: Request instance for DescribeTaskParamDs.
4412
+ :type request: :class:`tencentcloud.wedata.v20210820.models.DescribeTaskParamDsRequest`
4413
+ :rtype: :class:`tencentcloud.wedata.v20210820.models.DescribeTaskParamDsResponse`
4414
+
4415
+ """
4416
+ try:
4417
+ params = request._serialize()
4418
+ headers = request.headers
4419
+ body = self.call("DescribeTaskParamDs", params, headers=headers)
4420
+ response = json.loads(body)
4421
+ model = models.DescribeTaskParamDsResponse()
4422
+ model._deserialize(response["Response"])
4423
+ return model
4424
+ except Exception as e:
4425
+ if isinstance(e, TencentCloudSDKException):
4426
+ raise
4427
+ else:
4428
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4429
+
4430
+
4408
4431
  def DescribeTaskRunHistory(self, request):
4409
4432
  """分页查询任务运行历史
4410
4433
 
@@ -5118,6 +5141,29 @@ class WedataClient(AbstractClient):
5118
5141
  raise TencentCloudSDKException(type(e).__name__, str(e))
5119
5142
 
5120
5143
 
5144
+ def GetJobStatus(self, request):
5145
+ """获取异步任务执行结果
5146
+
5147
+ :param request: Request instance for GetJobStatus.
5148
+ :type request: :class:`tencentcloud.wedata.v20210820.models.GetJobStatusRequest`
5149
+ :rtype: :class:`tencentcloud.wedata.v20210820.models.GetJobStatusResponse`
5150
+
5151
+ """
5152
+ try:
5153
+ params = request._serialize()
5154
+ headers = request.headers
5155
+ body = self.call("GetJobStatus", params, headers=headers)
5156
+ response = json.loads(body)
5157
+ model = models.GetJobStatusResponse()
5158
+ model._deserialize(response["Response"])
5159
+ return model
5160
+ except Exception as e:
5161
+ if isinstance(e, TencentCloudSDKException):
5162
+ raise
5163
+ else:
5164
+ raise TencentCloudSDKException(type(e).__name__, str(e))
5165
+
5166
+
5121
5167
  def GetOfflineDIInstanceList(self, request):
5122
5168
  """获取离线任务实例列表(新)
5123
5169
 
@@ -5951,6 +5997,75 @@ class WedataClient(AbstractClient):
5951
5997
  raise TencentCloudSDKException(type(e).__name__, str(e))
5952
5998
 
5953
5999
 
6000
+ def RemoveDatabase(self, request):
6001
+ """移除database元数据
6002
+
6003
+ :param request: Request instance for RemoveDatabase.
6004
+ :type request: :class:`tencentcloud.wedata.v20210820.models.RemoveDatabaseRequest`
6005
+ :rtype: :class:`tencentcloud.wedata.v20210820.models.RemoveDatabaseResponse`
6006
+
6007
+ """
6008
+ try:
6009
+ params = request._serialize()
6010
+ headers = request.headers
6011
+ body = self.call("RemoveDatabase", params, headers=headers)
6012
+ response = json.loads(body)
6013
+ model = models.RemoveDatabaseResponse()
6014
+ model._deserialize(response["Response"])
6015
+ return model
6016
+ except Exception as e:
6017
+ if isinstance(e, TencentCloudSDKException):
6018
+ raise
6019
+ else:
6020
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6021
+
6022
+
6023
+ def RemoveSchema(self, request):
6024
+ """移除schema元数据
6025
+
6026
+ :param request: Request instance for RemoveSchema.
6027
+ :type request: :class:`tencentcloud.wedata.v20210820.models.RemoveSchemaRequest`
6028
+ :rtype: :class:`tencentcloud.wedata.v20210820.models.RemoveSchemaResponse`
6029
+
6030
+ """
6031
+ try:
6032
+ params = request._serialize()
6033
+ headers = request.headers
6034
+ body = self.call("RemoveSchema", params, headers=headers)
6035
+ response = json.loads(body)
6036
+ model = models.RemoveSchemaResponse()
6037
+ model._deserialize(response["Response"])
6038
+ return model
6039
+ except Exception as e:
6040
+ if isinstance(e, TencentCloudSDKException):
6041
+ raise
6042
+ else:
6043
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6044
+
6045
+
6046
+ def RemoveTable(self, request):
6047
+ """移除table元数据
6048
+
6049
+ :param request: Request instance for RemoveTable.
6050
+ :type request: :class:`tencentcloud.wedata.v20210820.models.RemoveTableRequest`
6051
+ :rtype: :class:`tencentcloud.wedata.v20210820.models.RemoveTableResponse`
6052
+
6053
+ """
6054
+ try:
6055
+ params = request._serialize()
6056
+ headers = request.headers
6057
+ body = self.call("RemoveTable", params, headers=headers)
6058
+ response = json.loads(body)
6059
+ model = models.RemoveTableResponse()
6060
+ model._deserialize(response["Response"])
6061
+ return model
6062
+ except Exception as e:
6063
+ if isinstance(e, TencentCloudSDKException):
6064
+ raise
6065
+ else:
6066
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6067
+
6068
+
5954
6069
  def RemoveWorkflowDs(self, request):
5955
6070
  """删除编排空间工作流
5956
6071
 
@@ -6020,6 +6135,75 @@ class WedataClient(AbstractClient):
6020
6135
  raise TencentCloudSDKException(type(e).__name__, str(e))
6021
6136
 
6022
6137
 
6138
+ def ReportDatabase(self, request):
6139
+ """上报database元数据
6140
+
6141
+ :param request: Request instance for ReportDatabase.
6142
+ :type request: :class:`tencentcloud.wedata.v20210820.models.ReportDatabaseRequest`
6143
+ :rtype: :class:`tencentcloud.wedata.v20210820.models.ReportDatabaseResponse`
6144
+
6145
+ """
6146
+ try:
6147
+ params = request._serialize()
6148
+ headers = request.headers
6149
+ body = self.call("ReportDatabase", params, headers=headers)
6150
+ response = json.loads(body)
6151
+ model = models.ReportDatabaseResponse()
6152
+ model._deserialize(response["Response"])
6153
+ return model
6154
+ except Exception as e:
6155
+ if isinstance(e, TencentCloudSDKException):
6156
+ raise
6157
+ else:
6158
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6159
+
6160
+
6161
+ def ReportSchema(self, request):
6162
+ """上报schema元数据
6163
+
6164
+ :param request: Request instance for ReportSchema.
6165
+ :type request: :class:`tencentcloud.wedata.v20210820.models.ReportSchemaRequest`
6166
+ :rtype: :class:`tencentcloud.wedata.v20210820.models.ReportSchemaResponse`
6167
+
6168
+ """
6169
+ try:
6170
+ params = request._serialize()
6171
+ headers = request.headers
6172
+ body = self.call("ReportSchema", params, headers=headers)
6173
+ response = json.loads(body)
6174
+ model = models.ReportSchemaResponse()
6175
+ model._deserialize(response["Response"])
6176
+ return model
6177
+ except Exception as e:
6178
+ if isinstance(e, TencentCloudSDKException):
6179
+ raise
6180
+ else:
6181
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6182
+
6183
+
6184
+ def ReportTable(self, request):
6185
+ """上报table元数据
6186
+
6187
+ :param request: Request instance for ReportTable.
6188
+ :type request: :class:`tencentcloud.wedata.v20210820.models.ReportTableRequest`
6189
+ :rtype: :class:`tencentcloud.wedata.v20210820.models.ReportTableResponse`
6190
+
6191
+ """
6192
+ try:
6193
+ params = request._serialize()
6194
+ headers = request.headers
6195
+ body = self.call("ReportTable", params, headers=headers)
6196
+ response = json.loads(body)
6197
+ model = models.ReportTableResponse()
6198
+ model._deserialize(response["Response"])
6199
+ return model
6200
+ except Exception as e:
6201
+ if isinstance(e, TencentCloudSDKException):
6202
+ raise
6203
+ else:
6204
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6205
+
6206
+
6023
6207
  def ReportTaskLineage(self, request):
6024
6208
  """血缘上报接口
6025
6209
 
File without changes
File without changes
@@ -0,0 +1,27 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ # 内部错误。
18
+ INTERNALERROR = 'InternalError'
19
+
20
+ # 参数错误。
21
+ INVALIDPARAMETER = 'InvalidParameter'
22
+
23
+ # 请求的次数超过了频率限制。
24
+ REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
25
+
26
+ # 未授权操作。
27
+ UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
@@ -0,0 +1,187 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import warnings
17
+
18
+ from tencentcloud.common.abstract_model import AbstractModel
19
+
20
+
21
+ class SearchProRequest(AbstractModel):
22
+ """SearchPro请求参数结构体
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _Query: 搜索词
29
+ :type Query: str
30
+ :param _Mode: 返回结果类型,0-自然检索结果(默认),1-垂类VR结果,2-混合结果(垂类VR结果+自然检索结果)
31
+ :type Mode: int
32
+ :param _Site: 指定域名站内搜索(用于过滤自然检索结果) 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效
33
+ :type Site: str
34
+ :param _FromTime: 起始时间(用于过滤自然检索结果),精确到秒时间戳格式 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效
35
+ :type FromTime: int
36
+ :param _ToTime: 结束时间(用于过滤自然检索结果),精确到秒时间戳格式 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效
37
+ :type ToTime: int
38
+ """
39
+ self._Query = None
40
+ self._Mode = None
41
+ self._Site = None
42
+ self._FromTime = None
43
+ self._ToTime = None
44
+
45
+ @property
46
+ def Query(self):
47
+ """搜索词
48
+ :rtype: str
49
+ """
50
+ return self._Query
51
+
52
+ @Query.setter
53
+ def Query(self, Query):
54
+ self._Query = Query
55
+
56
+ @property
57
+ def Mode(self):
58
+ """返回结果类型,0-自然检索结果(默认),1-垂类VR结果,2-混合结果(垂类VR结果+自然检索结果)
59
+ :rtype: int
60
+ """
61
+ return self._Mode
62
+
63
+ @Mode.setter
64
+ def Mode(self, Mode):
65
+ self._Mode = Mode
66
+
67
+ @property
68
+ def Site(self):
69
+ """指定域名站内搜索(用于过滤自然检索结果) 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效
70
+ :rtype: str
71
+ """
72
+ return self._Site
73
+
74
+ @Site.setter
75
+ def Site(self, Site):
76
+ self._Site = Site
77
+
78
+ @property
79
+ def FromTime(self):
80
+ """起始时间(用于过滤自然检索结果),精确到秒时间戳格式 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效
81
+ :rtype: int
82
+ """
83
+ return self._FromTime
84
+
85
+ @FromTime.setter
86
+ def FromTime(self, FromTime):
87
+ self._FromTime = FromTime
88
+
89
+ @property
90
+ def ToTime(self):
91
+ """结束时间(用于过滤自然检索结果),精确到秒时间戳格式 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效
92
+ :rtype: int
93
+ """
94
+ return self._ToTime
95
+
96
+ @ToTime.setter
97
+ def ToTime(self, ToTime):
98
+ self._ToTime = ToTime
99
+
100
+
101
+ def _deserialize(self, params):
102
+ self._Query = params.get("Query")
103
+ self._Mode = params.get("Mode")
104
+ self._Site = params.get("Site")
105
+ self._FromTime = params.get("FromTime")
106
+ self._ToTime = params.get("ToTime")
107
+ memeber_set = set(params.keys())
108
+ for name, value in vars(self).items():
109
+ property_name = name[1:]
110
+ if property_name in memeber_set:
111
+ memeber_set.remove(property_name)
112
+ if len(memeber_set) > 0:
113
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
114
+
115
+
116
+
117
+ class SearchProResponse(AbstractModel):
118
+ """SearchPro返回参数结构体
119
+
120
+ """
121
+
122
+ def __init__(self):
123
+ r"""
124
+ :param _Query: 原始查询语
125
+ :type Query: str
126
+ :param _Pages: 搜索结果页面
127
+ :type Pages: list of str
128
+ :param _Msg: 提示信息
129
+ :type Msg: str
130
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
131
+ :type RequestId: str
132
+ """
133
+ self._Query = None
134
+ self._Pages = None
135
+ self._Msg = None
136
+ self._RequestId = None
137
+
138
+ @property
139
+ def Query(self):
140
+ """原始查询语
141
+ :rtype: str
142
+ """
143
+ return self._Query
144
+
145
+ @Query.setter
146
+ def Query(self, Query):
147
+ self._Query = Query
148
+
149
+ @property
150
+ def Pages(self):
151
+ """搜索结果页面
152
+ :rtype: list of str
153
+ """
154
+ return self._Pages
155
+
156
+ @Pages.setter
157
+ def Pages(self, Pages):
158
+ self._Pages = Pages
159
+
160
+ @property
161
+ def Msg(self):
162
+ """提示信息
163
+ :rtype: str
164
+ """
165
+ return self._Msg
166
+
167
+ @Msg.setter
168
+ def Msg(self, Msg):
169
+ self._Msg = Msg
170
+
171
+ @property
172
+ def RequestId(self):
173
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
174
+ :rtype: str
175
+ """
176
+ return self._RequestId
177
+
178
+ @RequestId.setter
179
+ def RequestId(self, RequestId):
180
+ self._RequestId = RequestId
181
+
182
+
183
+ def _deserialize(self, params):
184
+ self._Query = params.get("Query")
185
+ self._Pages = params.get("Pages")
186
+ self._Msg = params.get("Msg")
187
+ self._RequestId = params.get("RequestId")
@@ -0,0 +1,49 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.wsa.v20250508 import models
21
+
22
+
23
+ class WsaClient(AbstractClient):
24
+ _apiVersion = '2025-05-08'
25
+ _endpoint = 'wsa.tencentcloudapi.com'
26
+ _service = 'wsa'
27
+
28
+
29
+ def SearchPro(self, request):
30
+ """联网搜索API,以json形式向客户提供搜索结果数据,包含不仅限于标题、摘要、内容来源url等信息
31
+
32
+ :param request: Request instance for SearchPro.
33
+ :type request: :class:`tencentcloud.wsa.v20250508.models.SearchProRequest`
34
+ :rtype: :class:`tencentcloud.wsa.v20250508.models.SearchProResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("SearchPro", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.SearchProResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python
3
- Version: 3.0.1430
3
+ Version: 3.0.1432
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud