tencentcloud-sdk-python 3.0.1372__py2.py3-none-any.whl → 3.0.1373__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 CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1372'
17
+ __version__ = '3.0.1373'
@@ -2543,6 +2543,32 @@ class CfwClient(AbstractClient):
2543
2543
  raise TencentCloudSDKException(type(e).__name__, str(e))
2544
2544
 
2545
2545
 
2546
+ def SearchLog(self, request):
2547
+ """本接口用于检索分析日志,使用该接口时请注意如下事项:
2548
+ 1. 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。
2549
+ 2. 检索语法建议使用日志服务专用检索语法CQL,请使用SyntaxRule参数,将值设置为1,控制台默认也使用该语法规则。
2550
+ 3. API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
2551
+
2552
+ :param request: Request instance for SearchLog.
2553
+ :type request: :class:`tencentcloud.cfw.v20190904.models.SearchLogRequest`
2554
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.SearchLogResponse`
2555
+
2556
+ """
2557
+ try:
2558
+ params = request._serialize()
2559
+ headers = request.headers
2560
+ body = self.call("SearchLog", params, headers=headers)
2561
+ response = json.loads(body)
2562
+ model = models.SearchLogResponse()
2563
+ model._deserialize(response["Response"])
2564
+ return model
2565
+ except Exception as e:
2566
+ if isinstance(e, TencentCloudSDKException):
2567
+ raise
2568
+ else:
2569
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2570
+
2571
+
2546
2572
  def SetNatFwDnatRule(self, request):
2547
2573
  """配置防火墙Dnat规则
2548
2574
 
@@ -23,9 +23,36 @@ DRYRUNOPERATION = 'DryRunOperation'
23
23
  # 操作失败。
24
24
  FAILEDOPERATION = 'FailedOperation'
25
25
 
26
+ # FailedOperation.InvalidContext
27
+ FAILEDOPERATION_INVALIDCONTEXT = 'FailedOperation.InvalidContext'
28
+
29
+ # FailedOperation.QueryError
30
+ FAILEDOPERATION_QUERYERROR = 'FailedOperation.QueryError'
31
+
32
+ # FailedOperation.SearchTimeout
33
+ FAILEDOPERATION_SEARCHTIMEOUT = 'FailedOperation.SearchTimeout'
34
+
35
+ # FailedOperation.SyntaxError
36
+ FAILEDOPERATION_SYNTAXERROR = 'FailedOperation.SyntaxError'
37
+
38
+ # FailedOperation.Timeout
39
+ FAILEDOPERATION_TIMEOUT = 'FailedOperation.Timeout'
40
+
41
+ # FailedOperation.TopicIsolated
42
+ FAILEDOPERATION_TOPICISOLATED = 'FailedOperation.TopicIsolated'
43
+
26
44
  # 内部错误。
27
45
  INTERNALERROR = 'InternalError'
28
46
 
47
+ # InternalError.SearchError
48
+ INTERNALERROR_SEARCHERROR = 'InternalError.SearchError'
49
+
50
+ # InternalError.SearchFailed
51
+ INTERNALERROR_SEARCHFAILED = 'InternalError.SearchFailed'
52
+
53
+ # InternalError.ServerBusy
54
+ INTERNALERROR_SERVERBUSY = 'InternalError.ServerBusy'
55
+
29
56
  # 参数错误。
30
57
  INVALIDPARAMETER = 'InvalidParameter'
31
58
 
@@ -35,12 +62,36 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
35
62
  # 超过配额限制。
36
63
  LIMITEXCEEDED = 'LimitExceeded'
37
64
 
65
+ # LimitExceeded.LogSearch
66
+ LIMITEXCEEDED_LOGSEARCH = 'LimitExceeded.LogSearch'
67
+
68
+ # LimitExceeded.SearchResources
69
+ LIMITEXCEEDED_SEARCHRESOURCES = 'LimitExceeded.SearchResources'
70
+
71
+ # LimitExceeded.SearchResultTooLarge
72
+ LIMITEXCEEDED_SEARCHRESULTTOOLARGE = 'LimitExceeded.SearchResultTooLarge'
73
+
38
74
  # 缺少参数错误。
39
75
  MISSINGPARAMETER = 'MissingParameter'
40
76
 
41
77
  # 操作被拒绝。
42
78
  OPERATIONDENIED = 'OperationDenied'
43
79
 
80
+ # OperationDenied.AccountDestroy
81
+ OPERATIONDENIED_ACCOUNTDESTROY = 'OperationDenied.AccountDestroy'
82
+
83
+ # OperationDenied.AccountIsolate
84
+ OPERATIONDENIED_ACCOUNTISOLATE = 'OperationDenied.AccountIsolate'
85
+
86
+ # OperationDenied.AccountNotExists
87
+ OPERATIONDENIED_ACCOUNTNOTEXISTS = 'OperationDenied.AccountNotExists'
88
+
89
+ # OperationDenied.NewSyntaxNotSupported
90
+ OPERATIONDENIED_NEWSYNTAXNOTSUPPORTED = 'OperationDenied.NewSyntaxNotSupported'
91
+
92
+ # OperationDenied.OperationNotSupportInSearchLow
93
+ OPERATIONDENIED_OPERATIONNOTSUPPORTINSEARCHLOW = 'OperationDenied.OperationNotSupportInSearchLow'
94
+
44
95
  # 请求的次数超过了频率限制。
45
96
  REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
46
97
 
@@ -53,6 +104,9 @@ RESOURCEINSUFFICIENT = 'ResourceInsufficient'
53
104
  # 资源不存在。
54
105
  RESOURCENOTFOUND = 'ResourceNotFound'
55
106
 
107
+ # ResourceNotFound.TopicNotExist
108
+ RESOURCENOTFOUND_TOPICNOTEXIST = 'ResourceNotFound.TopicNotExist'
109
+
56
110
  # 资源不可用。
57
111
  RESOURCEUNAVAILABLE = 'ResourceUnavailable'
58
112