tencentcloud-sdk-python-cfw 3.1.112__tar.gz → 3.1.127__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_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud/cfw/v20190904/cfw_client.py +116 -1
  5. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud/cfw/v20190904/cfw_client_async.py +91 -1
  6. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud/cfw/v20190904/errorcodes.py +45 -0
  7. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud/cfw/v20190904/models.py +1848 -466
  8. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_cfw-3.1.127/tencentcloud_sdk_python_cfw.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_cfw-3.1.112/tencentcloud_sdk_python_cfw.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/README.rst +0 -0
  12. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud/cfw/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud/cfw/v20190904/__init__.py +0 -0
  15. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cfw-3.1.112 → tencentcloud_sdk_python_cfw-3.1.127}/tencentcloud_sdk_python_cfw.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cfw
3
- Version: 3.1.112
3
+ Version: 3.1.127
4
4
  Summary: Tencent Cloud Cfw 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.112
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.127
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-cfw',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.112,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.127,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cfw SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.112'
17
+ __version__ = '3.1.127'
@@ -1340,7 +1340,7 @@ class CfwClient(AbstractClient):
1340
1340
 
1341
1341
 
1342
1342
  def DescribeLogs(self, request):
1343
- r"""日志审计日志查询
1343
+ r"""请使用 [日志分析SearchLog接口](https://cloud.tencent.com/document/product/1132/118363)
1344
1344
 
1345
1345
  :param request: Request instance for DescribeLogs.
1346
1346
  :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeLogsRequest`
@@ -1362,6 +1362,29 @@ class CfwClient(AbstractClient):
1362
1362
  raise TencentCloudSDKException(type(e).__name__, str(e))
1363
1363
 
1364
1364
 
1365
+ def DescribeNDRAssetIdentificationCursorList(self, request):
1366
+ r"""DescribeNDRAssetIdentificationCursorList - 游标获取NDR资产识别结果列表
1367
+
1368
+ :param request: Request instance for DescribeNDRAssetIdentificationCursorList.
1369
+ :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeNDRAssetIdentificationCursorListRequest`
1370
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeNDRAssetIdentificationCursorListResponse`
1371
+
1372
+ """
1373
+ try:
1374
+ params = request._serialize()
1375
+ headers = request.headers
1376
+ body = self.call("DescribeNDRAssetIdentificationCursorList", params, headers=headers)
1377
+ response = json.loads(body)
1378
+ model = models.DescribeNDRAssetIdentificationCursorListResponse()
1379
+ model._deserialize(response["Response"])
1380
+ return model
1381
+ except Exception as e:
1382
+ if isinstance(e, TencentCloudSDKException):
1383
+ raise
1384
+ else:
1385
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1386
+
1387
+
1365
1388
  def DescribeNDRAssetIdentificationList(self, request):
1366
1389
  r"""DescribeNDRAssetIdentificationList - 获取NDR资产识别结果列表
1367
1390
 
@@ -1615,6 +1638,52 @@ class CfwClient(AbstractClient):
1615
1638
  raise TencentCloudSDKException(type(e).__name__, str(e))
1616
1639
 
1617
1640
 
1641
+ def DescribeOfflineExportTask(self, request):
1642
+ r"""获取日志离线导出任务列表
1643
+
1644
+ :param request: Request instance for DescribeOfflineExportTask.
1645
+ :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeOfflineExportTaskRequest`
1646
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeOfflineExportTaskResponse`
1647
+
1648
+ """
1649
+ try:
1650
+ params = request._serialize()
1651
+ headers = request.headers
1652
+ body = self.call("DescribeOfflineExportTask", params, headers=headers)
1653
+ response = json.loads(body)
1654
+ model = models.DescribeOfflineExportTaskResponse()
1655
+ model._deserialize(response["Response"])
1656
+ return model
1657
+ except Exception as e:
1658
+ if isinstance(e, TencentCloudSDKException):
1659
+ raise
1660
+ else:
1661
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1662
+
1663
+
1664
+ def DescribeOfflineExportTemporaryCredentials(self, request):
1665
+ r"""获取日志离线导出任务文件下载临时凭证
1666
+
1667
+ :param request: Request instance for DescribeOfflineExportTemporaryCredentials.
1668
+ :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeOfflineExportTemporaryCredentialsRequest`
1669
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeOfflineExportTemporaryCredentialsResponse`
1670
+
1671
+ """
1672
+ try:
1673
+ params = request._serialize()
1674
+ headers = request.headers
1675
+ body = self.call("DescribeOfflineExportTemporaryCredentials", params, headers=headers)
1676
+ response = json.loads(body)
1677
+ model = models.DescribeOfflineExportTemporaryCredentialsResponse()
1678
+ model._deserialize(response["Response"])
1679
+ return model
1680
+ except Exception as e:
1681
+ if isinstance(e, TencentCloudSDKException):
1682
+ raise
1683
+ else:
1684
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1685
+
1686
+
1618
1687
  def DescribeResourceGroup(self, request):
1619
1688
  r"""DescribeResourceGroup资产中心资产树信息
1620
1689
 
@@ -1983,6 +2052,29 @@ class CfwClient(AbstractClient):
1983
2052
  raise TencentCloudSDKException(type(e).__name__, str(e))
1984
2053
 
1985
2054
 
2055
+ def ExportLogsOffline(self, request):
2056
+ r"""日志审计日志离线导出
2057
+
2058
+ :param request: Request instance for ExportLogsOffline.
2059
+ :type request: :class:`tencentcloud.cfw.v20190904.models.ExportLogsOfflineRequest`
2060
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.ExportLogsOfflineResponse`
2061
+
2062
+ """
2063
+ try:
2064
+ params = request._serialize()
2065
+ headers = request.headers
2066
+ body = self.call("ExportLogsOffline", params, headers=headers)
2067
+ response = json.loads(body)
2068
+ model = models.ExportLogsOfflineResponse()
2069
+ model._deserialize(response["Response"])
2070
+ return model
2071
+ except Exception as e:
2072
+ if isinstance(e, TencentCloudSDKException):
2073
+ raise
2074
+ else:
2075
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2076
+
2077
+
1986
2078
  def ModifyAcRule(self, request):
1987
2079
  r"""修改规则
1988
2080
 
@@ -2976,6 +3068,29 @@ class CfwClient(AbstractClient):
2976
3068
  raise TencentCloudSDKException(type(e).__name__, str(e))
2977
3069
 
2978
3070
 
3071
+ def RemoveOfflineExportTask(self, request):
3072
+ r"""删除日志离线导出任务
3073
+
3074
+ :param request: Request instance for RemoveOfflineExportTask.
3075
+ :type request: :class:`tencentcloud.cfw.v20190904.models.RemoveOfflineExportTaskRequest`
3076
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.RemoveOfflineExportTaskResponse`
3077
+
3078
+ """
3079
+ try:
3080
+ params = request._serialize()
3081
+ headers = request.headers
3082
+ body = self.call("RemoveOfflineExportTask", params, headers=headers)
3083
+ response = json.loads(body)
3084
+ model = models.RemoveOfflineExportTaskResponse()
3085
+ model._deserialize(response["Response"])
3086
+ return model
3087
+ except Exception as e:
3088
+ if isinstance(e, TencentCloudSDKException):
3089
+ raise
3090
+ else:
3091
+ raise TencentCloudSDKException(type(e).__name__, str(e))
3092
+
3093
+
2979
3094
  def RemoveVpcAcRule(self, request):
2980
3095
  r"""删除VPC间规则
2981
3096
 
@@ -1059,7 +1059,7 @@ class CfwClient(AbstractClient):
1059
1059
  opts: Dict = None,
1060
1060
  ) -> models.DescribeLogsResponse:
1061
1061
  """
1062
- 日志审计日志查询
1062
+ 请使用 [日志分析SearchLog接口](https://cloud.tencent.com/document/product/1132/118363)
1063
1063
  """
1064
1064
 
1065
1065
  kwargs = {}
@@ -1071,6 +1071,24 @@ class CfwClient(AbstractClient):
1071
1071
 
1072
1072
  return await self.call_and_deserialize(**kwargs)
1073
1073
 
1074
+ async def DescribeNDRAssetIdentificationCursorList(
1075
+ self,
1076
+ request: models.DescribeNDRAssetIdentificationCursorListRequest,
1077
+ opts: Dict = None,
1078
+ ) -> models.DescribeNDRAssetIdentificationCursorListResponse:
1079
+ """
1080
+ DescribeNDRAssetIdentificationCursorList - 游标获取NDR资产识别结果列表
1081
+ """
1082
+
1083
+ kwargs = {}
1084
+ kwargs["action"] = "DescribeNDRAssetIdentificationCursorList"
1085
+ kwargs["params"] = request._serialize()
1086
+ kwargs["resp_cls"] = models.DescribeNDRAssetIdentificationCursorListResponse
1087
+ kwargs["headers"] = request.headers
1088
+ kwargs["opts"] = opts or {}
1089
+
1090
+ return await self.call_and_deserialize(**kwargs)
1091
+
1074
1092
  async def DescribeNDRAssetIdentificationList(
1075
1093
  self,
1076
1094
  request: models.DescribeNDRAssetIdentificationListRequest,
@@ -1269,6 +1287,42 @@ class CfwClient(AbstractClient):
1269
1287
 
1270
1288
  return await self.call_and_deserialize(**kwargs)
1271
1289
 
1290
+ async def DescribeOfflineExportTask(
1291
+ self,
1292
+ request: models.DescribeOfflineExportTaskRequest,
1293
+ opts: Dict = None,
1294
+ ) -> models.DescribeOfflineExportTaskResponse:
1295
+ """
1296
+ 获取日志离线导出任务列表
1297
+ """
1298
+
1299
+ kwargs = {}
1300
+ kwargs["action"] = "DescribeOfflineExportTask"
1301
+ kwargs["params"] = request._serialize()
1302
+ kwargs["resp_cls"] = models.DescribeOfflineExportTaskResponse
1303
+ kwargs["headers"] = request.headers
1304
+ kwargs["opts"] = opts or {}
1305
+
1306
+ return await self.call_and_deserialize(**kwargs)
1307
+
1308
+ async def DescribeOfflineExportTemporaryCredentials(
1309
+ self,
1310
+ request: models.DescribeOfflineExportTemporaryCredentialsRequest,
1311
+ opts: Dict = None,
1312
+ ) -> models.DescribeOfflineExportTemporaryCredentialsResponse:
1313
+ """
1314
+ 获取日志离线导出任务文件下载临时凭证
1315
+ """
1316
+
1317
+ kwargs = {}
1318
+ kwargs["action"] = "DescribeOfflineExportTemporaryCredentials"
1319
+ kwargs["params"] = request._serialize()
1320
+ kwargs["resp_cls"] = models.DescribeOfflineExportTemporaryCredentialsResponse
1321
+ kwargs["headers"] = request.headers
1322
+ kwargs["opts"] = opts or {}
1323
+
1324
+ return await self.call_and_deserialize(**kwargs)
1325
+
1272
1326
  async def DescribeResourceGroup(
1273
1327
  self,
1274
1328
  request: models.DescribeResourceGroupRequest,
@@ -1557,6 +1611,24 @@ class CfwClient(AbstractClient):
1557
1611
 
1558
1612
  return await self.call_and_deserialize(**kwargs)
1559
1613
 
1614
+ async def ExportLogsOffline(
1615
+ self,
1616
+ request: models.ExportLogsOfflineRequest,
1617
+ opts: Dict = None,
1618
+ ) -> models.ExportLogsOfflineResponse:
1619
+ """
1620
+ 日志审计日志离线导出
1621
+ """
1622
+
1623
+ kwargs = {}
1624
+ kwargs["action"] = "ExportLogsOffline"
1625
+ kwargs["params"] = request._serialize()
1626
+ kwargs["resp_cls"] = models.ExportLogsOfflineResponse
1627
+ kwargs["headers"] = request.headers
1628
+ kwargs["opts"] = opts or {}
1629
+
1630
+ return await self.call_and_deserialize(**kwargs)
1631
+
1560
1632
  async def ModifyAcRule(
1561
1633
  self,
1562
1634
  request: models.ModifyAcRuleRequest,
@@ -2335,6 +2407,24 @@ class CfwClient(AbstractClient):
2335
2407
 
2336
2408
  return await self.call_and_deserialize(**kwargs)
2337
2409
 
2410
+ async def RemoveOfflineExportTask(
2411
+ self,
2412
+ request: models.RemoveOfflineExportTaskRequest,
2413
+ opts: Dict = None,
2414
+ ) -> models.RemoveOfflineExportTaskResponse:
2415
+ """
2416
+ 删除日志离线导出任务
2417
+ """
2418
+
2419
+ kwargs = {}
2420
+ kwargs["action"] = "RemoveOfflineExportTask"
2421
+ kwargs["params"] = request._serialize()
2422
+ kwargs["resp_cls"] = models.RemoveOfflineExportTaskResponse
2423
+ kwargs["headers"] = request.headers
2424
+ kwargs["opts"] = opts or {}
2425
+
2426
+ return await self.call_and_deserialize(**kwargs)
2427
+
2338
2428
  async def RemoveVpcAcRule(
2339
2429
  self,
2340
2430
  request: models.RemoveVpcAcRuleRequest,
@@ -35,6 +35,9 @@ FAILEDOPERATION_SEARCHTIMEOUT = 'FailedOperation.SearchTimeout'
35
35
  # FailedOperation.SyntaxError
36
36
  FAILEDOPERATION_SYNTAXERROR = 'FailedOperation.SyntaxError'
37
37
 
38
+ # FailedOperation.TagQpsLimit
39
+ FAILEDOPERATION_TAGQPSLIMIT = 'FailedOperation.TagQpsLimit'
40
+
38
41
  # FailedOperation.Timeout
39
42
  FAILEDOPERATION_TIMEOUT = 'FailedOperation.Timeout'
40
43
 
@@ -44,6 +47,9 @@ FAILEDOPERATION_TOPICISOLATED = 'FailedOperation.TopicIsolated'
44
47
  # 内部错误。
45
48
  INTERNALERROR = 'InternalError'
46
49
 
50
+ # InternalError.DatabaseException
51
+ INTERNALERROR_DATABASEEXCEPTION = 'InternalError.DatabaseException'
52
+
47
53
  # InternalError.SearchError
48
54
  INTERNALERROR_SEARCHERROR = 'InternalError.SearchError'
49
55
 
@@ -53,9 +59,21 @@ INTERNALERROR_SEARCHFAILED = 'InternalError.SearchFailed'
53
59
  # InternalError.ServerBusy
54
60
  INTERNALERROR_SERVERBUSY = 'InternalError.ServerBusy'
55
61
 
62
+ # InternalError.Unknown
63
+ INTERNALERROR_UNKNOWN = 'InternalError.Unknown'
64
+
65
+ # 无效的过滤器
66
+ INVALIDFILTER = 'InvalidFilter'
67
+
56
68
  # 参数错误。
57
69
  INVALIDPARAMETER = 'InvalidParameter'
58
70
 
71
+ # InvalidParameter.RequestParam
72
+ INVALIDPARAMETER_REQUESTPARAM = 'InvalidParameter.RequestParam'
73
+
74
+ # 无效参数组合
75
+ INVALIDPARAMETERCOMBINATION = 'InvalidParameterCombination'
76
+
59
77
  # 参数取值错误。
60
78
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
61
79
 
@@ -74,9 +92,15 @@ LIMITEXCEEDED_SEARCHRESULTTOOLARGE = 'LimitExceeded.SearchResultTooLarge'
74
92
  # 缺少参数错误。
75
93
  MISSINGPARAMETER = 'MissingParameter'
76
94
 
95
+ # MissingParameter.CommonParam
96
+ MISSINGPARAMETER_COMMONPARAM = 'MissingParameter.CommonParam'
97
+
77
98
  # 操作被拒绝。
78
99
  OPERATIONDENIED = 'OperationDenied'
79
100
 
101
+ # OperationDenied.ACLFailed
102
+ OPERATIONDENIED_ACLFAILED = 'OperationDenied.ACLFailed'
103
+
80
104
  # OperationDenied.AccountDestroy
81
105
  OPERATIONDENIED_ACCOUNTDESTROY = 'OperationDenied.AccountDestroy'
82
106
 
@@ -86,12 +110,18 @@ OPERATIONDENIED_ACCOUNTISOLATE = 'OperationDenied.AccountIsolate'
86
110
  # OperationDenied.AccountNotExists
87
111
  OPERATIONDENIED_ACCOUNTNOTEXISTS = 'OperationDenied.AccountNotExists'
88
112
 
113
+ # OperationDenied.AnalysisSwitchClose
114
+ OPERATIONDENIED_ANALYSISSWITCHCLOSE = 'OperationDenied.AnalysisSwitchClose'
115
+
89
116
  # OperationDenied.NewSyntaxNotSupported
90
117
  OPERATIONDENIED_NEWSYNTAXNOTSUPPORTED = 'OperationDenied.NewSyntaxNotSupported'
91
118
 
92
119
  # OperationDenied.OperationNotSupportInSearchLow
93
120
  OPERATIONDENIED_OPERATIONNOTSUPPORTINSEARCHLOW = 'OperationDenied.OperationNotSupportInSearchLow'
94
121
 
122
+ # 地域错误
123
+ REGIONERROR = 'RegionError'
124
+
95
125
  # 请求的次数超过了频率限制。
96
126
  REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
97
127
 
@@ -104,6 +134,18 @@ RESOURCEINSUFFICIENT = 'ResourceInsufficient'
104
134
  # 资源不存在。
105
135
  RESOURCENOTFOUND = 'ResourceNotFound'
106
136
 
137
+ # ResourceNotFound.AlarmNotExist
138
+ RESOURCENOTFOUND_ALARMNOTEXIST = 'ResourceNotFound.AlarmNotExist'
139
+
140
+ # ResourceNotFound.IndexNotExist
141
+ RESOURCENOTFOUND_INDEXNOTEXIST = 'ResourceNotFound.IndexNotExist'
142
+
143
+ # ResourceNotFound.LogsetNotExist
144
+ RESOURCENOTFOUND_LOGSETNOTEXIST = 'ResourceNotFound.LogsetNotExist'
145
+
146
+ # ResourceNotFound.NotFound
147
+ RESOURCENOTFOUND_NOTFOUND = 'ResourceNotFound.NotFound'
148
+
107
149
  # ResourceNotFound.TopicNotExist
108
150
  RESOURCENOTFOUND_TOPICNOTEXIST = 'ResourceNotFound.TopicNotExist'
109
151
 
@@ -116,6 +158,9 @@ RESOURCESSOLDOUT = 'ResourcesSoldOut'
116
158
  # 未授权操作。
117
159
  UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
118
160
 
161
+ # UnauthorizedOperation.PermissionDenied
162
+ UNAUTHORIZEDOPERATION_PERMISSIONDENIED = 'UnauthorizedOperation.PermissionDenied'
163
+
119
164
  # 未知参数错误。
120
165
  UNKNOWNPARAMETER = 'UnknownParameter'
121
166