tencentcloud-sdk-python-cls 3.1.172__tar.gz → 3.1.178__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud/cls/v20201016/cls_client.py +96 -2
  5. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud/cls/v20201016/cls_client_async.py +76 -2
  6. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud/cls/v20201016/errorcodes.py +3 -3
  7. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud/cls/v20201016/models.py +1838 -308
  8. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_cls-3.1.178/tencentcloud_sdk_python_cls.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_cls-3.1.172/tencentcloud_sdk_python_cls.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/README.rst +0 -0
  12. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud/cls/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud/cls/v20201016/__init__.py +0 -0
  15. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud_sdk_python_cls.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cls-3.1.172 → tencentcloud_sdk_python_cls-3.1.178}/tencentcloud_sdk_python_cls.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cls
3
- Version: 3.1.172
3
+ Version: 3.1.178
4
4
  Summary: Tencent Cloud Cls 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<4.0.0,>=3.1.172
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.178
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-cls',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.172,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.178,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cls SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.172'
17
+ __version__ = '3.1.178'
@@ -306,6 +306,29 @@ class ClsClient(AbstractClient):
306
306
  raise TencentCloudSDKException(type(e).__name__, str(e))
307
307
 
308
308
 
309
+ def CreateCLSDeliverTask(self, request):
310
+ r"""新建CLS投递任务
311
+
312
+ :param request: Request instance for CreateCLSDeliverTask.
313
+ :type request: :class:`tencentcloud.cls.v20201016.models.CreateCLSDeliverTaskRequest`
314
+ :rtype: :class:`tencentcloud.cls.v20201016.models.CreateCLSDeliverTaskResponse`
315
+
316
+ """
317
+ try:
318
+ params = request._serialize()
319
+ headers = request.headers
320
+ body = self.call("CreateCLSDeliverTask", params, headers=headers)
321
+ response = json.loads(body)
322
+ model = models.CreateCLSDeliverTaskResponse()
323
+ model._deserialize(response["Response"])
324
+ return model
325
+ except Exception as e:
326
+ if isinstance(e, TencentCloudSDKException):
327
+ raise
328
+ else:
329
+ raise TencentCloudSDKException(type(e).__name__, str(e))
330
+
331
+
309
332
  def CreateCloudProductLogCollection(self, request):
310
333
  r"""内部云产品接入使用相关接口
311
334
 
@@ -1255,6 +1278,29 @@ class ClsClient(AbstractClient):
1255
1278
  raise TencentCloudSDKException(type(e).__name__, str(e))
1256
1279
 
1257
1280
 
1281
+ def DeleteCLSDeliverTask(self, request):
1282
+ r"""删除CLS投递任务
1283
+
1284
+ :param request: Request instance for DeleteCLSDeliverTask.
1285
+ :type request: :class:`tencentcloud.cls.v20201016.models.DeleteCLSDeliverTaskRequest`
1286
+ :rtype: :class:`tencentcloud.cls.v20201016.models.DeleteCLSDeliverTaskResponse`
1287
+
1288
+ """
1289
+ try:
1290
+ params = request._serialize()
1291
+ headers = request.headers
1292
+ body = self.call("DeleteCLSDeliverTask", params, headers=headers)
1293
+ response = json.loads(body)
1294
+ model = models.DeleteCLSDeliverTaskResponse()
1295
+ model._deserialize(response["Response"])
1296
+ return model
1297
+ except Exception as e:
1298
+ if isinstance(e, TencentCloudSDKException):
1299
+ raise
1300
+ else:
1301
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1302
+
1303
+
1258
1304
  def DeleteCloudProductLogCollection(self, request):
1259
1305
  r"""内部云产品接入使用相关接口
1260
1306
 
@@ -2267,6 +2313,29 @@ class ClsClient(AbstractClient):
2267
2313
  raise TencentCloudSDKException(type(e).__name__, str(e))
2268
2314
 
2269
2315
 
2316
+ def DescribeCLSDeliverTasks(self, request):
2317
+ r"""获取CLS投递任务列表
2318
+
2319
+ :param request: Request instance for DescribeCLSDeliverTasks.
2320
+ :type request: :class:`tencentcloud.cls.v20201016.models.DescribeCLSDeliverTasksRequest`
2321
+ :rtype: :class:`tencentcloud.cls.v20201016.models.DescribeCLSDeliverTasksResponse`
2322
+
2323
+ """
2324
+ try:
2325
+ params = request._serialize()
2326
+ headers = request.headers
2327
+ body = self.call("DescribeCLSDeliverTasks", params, headers=headers)
2328
+ response = json.loads(body)
2329
+ model = models.DescribeCLSDeliverTasksResponse()
2330
+ model._deserialize(response["Response"])
2331
+ return model
2332
+ except Exception as e:
2333
+ if isinstance(e, TencentCloudSDKException):
2334
+ raise
2335
+ else:
2336
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2337
+
2338
+
2270
2339
  def DescribeCloudProductLogTasks(self, request):
2271
2340
  r"""云产品接入使用相关接口
2272
2341
 
@@ -2935,8 +3004,10 @@ class ClsClient(AbstractClient):
2935
3004
 
2936
3005
 
2937
3006
  def DescribeLogContext(self, request):
2938
- r"""本接口用于搜索日志上下文附近的内容,详情参考[上下文检索](https://cloud.tencent.com/document/product/614/53248)。
2939
- API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
3007
+ r"""本接口用于搜索日志上下文附近的内容,部分日志采集方式不支持本接口,详情参考[上下文检索](https://cloud.tencent.com/document/product/614/53248)。
3008
+ **注意事项**:
3009
+ 1. API返回数据包最大49MB,返回数据量大时,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
3010
+ 2. 本接口存在频率限制,不适合批量读取海量日志,如需下载或实时读取日志,建议使用[日志下载](https://cloud.tencent.com/document/product/614/52901)或[投递与消费](https://cloud.tencent.com/document/product/614/37908)功能。
2940
3011
 
2941
3012
  :param request: Request instance for DescribeLogContext.
2942
3013
  :type request: :class:`tencentcloud.cls.v20201016.models.DescribeLogContextRequest`
@@ -4017,6 +4088,29 @@ class ClsClient(AbstractClient):
4017
4088
  raise TencentCloudSDKException(type(e).__name__, str(e))
4018
4089
 
4019
4090
 
4091
+ def ModifyCLSDeliverTask(self, request):
4092
+ r"""修改CLS投递任务
4093
+
4094
+ :param request: Request instance for ModifyCLSDeliverTask.
4095
+ :type request: :class:`tencentcloud.cls.v20201016.models.ModifyCLSDeliverTaskRequest`
4096
+ :rtype: :class:`tencentcloud.cls.v20201016.models.ModifyCLSDeliverTaskResponse`
4097
+
4098
+ """
4099
+ try:
4100
+ params = request._serialize()
4101
+ headers = request.headers
4102
+ body = self.call("ModifyCLSDeliverTask", params, headers=headers)
4103
+ response = json.loads(body)
4104
+ model = models.ModifyCLSDeliverTaskResponse()
4105
+ model._deserialize(response["Response"])
4106
+ return model
4107
+ except Exception as e:
4108
+ if isinstance(e, TencentCloudSDKException):
4109
+ raise
4110
+ else:
4111
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4112
+
4113
+
4020
4114
  def ModifyCloudProductLogCollection(self, request):
4021
4115
  r"""内部云产品接入使用相关接口
4022
4116
 
@@ -250,6 +250,24 @@ class ClsClient(AbstractClient):
250
250
 
251
251
  return await self.call_and_deserialize(**kwargs)
252
252
 
253
+ async def CreateCLSDeliverTask(
254
+ self,
255
+ request: models.CreateCLSDeliverTaskRequest,
256
+ opts: Dict = None,
257
+ ) -> models.CreateCLSDeliverTaskResponse:
258
+ """
259
+ 新建CLS投递任务
260
+ """
261
+
262
+ kwargs = {}
263
+ kwargs["action"] = "CreateCLSDeliverTask"
264
+ kwargs["params"] = request._serialize()
265
+ kwargs["resp_cls"] = models.CreateCLSDeliverTaskResponse
266
+ kwargs["headers"] = request.headers
267
+ kwargs["opts"] = opts or {}
268
+
269
+ return await self.call_and_deserialize(**kwargs)
270
+
253
271
  async def CreateCloudProductLogCollection(
254
272
  self,
255
273
  request: models.CreateCloudProductLogCollectionRequest,
@@ -994,6 +1012,24 @@ class ClsClient(AbstractClient):
994
1012
 
995
1013
  return await self.call_and_deserialize(**kwargs)
996
1014
 
1015
+ async def DeleteCLSDeliverTask(
1016
+ self,
1017
+ request: models.DeleteCLSDeliverTaskRequest,
1018
+ opts: Dict = None,
1019
+ ) -> models.DeleteCLSDeliverTaskResponse:
1020
+ """
1021
+ 删除CLS投递任务
1022
+ """
1023
+
1024
+ kwargs = {}
1025
+ kwargs["action"] = "DeleteCLSDeliverTask"
1026
+ kwargs["params"] = request._serialize()
1027
+ kwargs["resp_cls"] = models.DeleteCLSDeliverTaskResponse
1028
+ kwargs["headers"] = request.headers
1029
+ kwargs["opts"] = opts or {}
1030
+
1031
+ return await self.call_and_deserialize(**kwargs)
1032
+
997
1033
  async def DeleteCloudProductLogCollection(
998
1034
  self,
999
1035
  request: models.DeleteCloudProductLogCollectionRequest,
@@ -1786,6 +1822,24 @@ class ClsClient(AbstractClient):
1786
1822
 
1787
1823
  return await self.call_and_deserialize(**kwargs)
1788
1824
 
1825
+ async def DescribeCLSDeliverTasks(
1826
+ self,
1827
+ request: models.DescribeCLSDeliverTasksRequest,
1828
+ opts: Dict = None,
1829
+ ) -> models.DescribeCLSDeliverTasksResponse:
1830
+ """
1831
+ 获取CLS投递任务列表
1832
+ """
1833
+
1834
+ kwargs = {}
1835
+ kwargs["action"] = "DescribeCLSDeliverTasks"
1836
+ kwargs["params"] = request._serialize()
1837
+ kwargs["resp_cls"] = models.DescribeCLSDeliverTasksResponse
1838
+ kwargs["headers"] = request.headers
1839
+ kwargs["opts"] = opts or {}
1840
+
1841
+ return await self.call_and_deserialize(**kwargs)
1842
+
1789
1843
  async def DescribeCloudProductLogTasks(
1790
1844
  self,
1791
1845
  request: models.DescribeCloudProductLogTasksRequest,
@@ -2314,8 +2368,10 @@ class ClsClient(AbstractClient):
2314
2368
  opts: Dict = None,
2315
2369
  ) -> models.DescribeLogContextResponse:
2316
2370
  """
2317
- 本接口用于搜索日志上下文附近的内容,详情参考[上下文检索](https://cloud.tencent.com/document/product/614/53248)。
2318
- API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
2371
+ 本接口用于搜索日志上下文附近的内容,部分日志采集方式不支持本接口,详情参考[上下文检索](https://cloud.tencent.com/document/product/614/53248)。
2372
+ **注意事项**:
2373
+ 1. API返回数据包最大49MB,返回数据量大时,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
2374
+ 2. 本接口存在频率限制,不适合批量读取海量日志,如需下载或实时读取日志,建议使用[日志下载](https://cloud.tencent.com/document/product/614/52901)或[投递与消费](https://cloud.tencent.com/document/product/614/37908)功能。
2319
2375
  """
2320
2376
 
2321
2377
  kwargs = {}
@@ -3156,6 +3212,24 @@ class ClsClient(AbstractClient):
3156
3212
 
3157
3213
  return await self.call_and_deserialize(**kwargs)
3158
3214
 
3215
+ async def ModifyCLSDeliverTask(
3216
+ self,
3217
+ request: models.ModifyCLSDeliverTaskRequest,
3218
+ opts: Dict = None,
3219
+ ) -> models.ModifyCLSDeliverTaskResponse:
3220
+ """
3221
+ 修改CLS投递任务
3222
+ """
3223
+
3224
+ kwargs = {}
3225
+ kwargs["action"] = "ModifyCLSDeliverTask"
3226
+ kwargs["params"] = request._serialize()
3227
+ kwargs["resp_cls"] = models.ModifyCLSDeliverTaskResponse
3228
+ kwargs["headers"] = request.headers
3229
+ kwargs["opts"] = opts or {}
3230
+
3231
+ return await self.call_and_deserialize(**kwargs)
3232
+
3159
3233
  async def ModifyCloudProductLogCollection(
3160
3234
  self,
3161
3235
  request: models.ModifyCloudProductLogCollectionRequest,
@@ -107,7 +107,7 @@ FAILEDOPERATION_TIMEOUT = 'FailedOperation.Timeout'
107
107
  # 日志主题已关闭。
108
108
  FAILEDOPERATION_TOPICCLOSED = 'FailedOperation.TopicClosed'
109
109
 
110
- # Topic 创建中
110
+ # Topic 创建中。
111
111
  FAILEDOPERATION_TOPICCREATING = 'FailedOperation.TopicCreating'
112
112
 
113
113
  # 日志主题已隔离。
@@ -209,7 +209,7 @@ LIMITEXCEEDED = 'LimitExceeded'
209
209
  # 一个billing topic只能创建一个cos采集配置
210
210
  LIMITEXCEEDED_BILLINGCOSRECHARGEOUTOFLIMIT = 'LimitExceeded.BillingCosRechargeOutOfLimit'
211
211
 
212
- # 一个uin只能创建一个billing topic
212
+ # 一个 uin 只能创建一个 billing topic。
213
213
  LIMITEXCEEDED_BILLINGTOPICOUTOFLIMIT = 'LimitExceeded.BillingTopicOutOfLimit'
214
214
 
215
215
  # 采集规则配置超过最大值限制。
@@ -377,5 +377,5 @@ UNSUPPORTEDOPERATION = 'UnsupportedOperation'
377
377
  # billing topic不允许修改cos导入配置
378
378
  UNSUPPORTEDOPERATION_MODIFYBILLINGCOSRECHARGENOSUPPORT = 'UnsupportedOperation.ModifyBillingCosRechargeNoSupport'
379
379
 
380
- # 当前地域不支持
380
+ # 当前地域不支持。
381
381
  UNSUPPORTEDOPERATION_UNSUPPORTEDREGION = 'UnsupportedOperation.UnsupportedRegion'