tencentcloud-sdk-python-waf 3.0.1178__tar.gz → 3.0.1187__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 (16) hide show
  1. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/setup.py +1 -1
  3. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud/waf/v20180125/models.py +66 -75
  5. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud/waf/v20180125/waf_client.py +0 -23
  6. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-waf-3.0.1187/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-waf-3.0.1178/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/README.rst +0 -0
  10. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud/waf/__init__.py +0 -0
  12. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud/waf/v20180125/__init__.py +0 -0
  13. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-waf-3.0.1178 → tencentcloud-sdk-python-waf-3.0.1187}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.1178
3
+ Version: 3.0.1187
4
4
  Summary: Tencent Cloud Waf SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-waf',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1178"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1187"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Waf SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1178'
17
+ __version__ = '3.0.1187'
@@ -4244,6 +4244,21 @@ class ClbObject(AbstractModel):
4244
4244
  :param _Region: 对象地域
4245
4245
  注意:此字段可能返回 null,表示取不到有效值。
4246
4246
  :type Region: str
4247
+ :param _Proxy: 代理状态: 0:不开启,1:以XFF的第一个IP地址作为客户端IP,2:以remote_addr作为客户端IP,3:从指定的头部字段获取客户端IP,字段通过IpHeaders字段给出
4248
+ 注意:此字段可能返回 null,表示取不到有效值。
4249
+ :type Proxy: int
4250
+ :param _IpHeaders: 指定获取客户端IP的头部字段列表。IsCdn为3时有效
4251
+ 注意:此字段可能返回 null,表示取不到有效值。
4252
+ :type IpHeaders: list of str
4253
+ :param _BotStatus: bot防护开关
4254
+ 注意:此字段可能返回 null,表示取不到有效值。
4255
+ :type BotStatus: int
4256
+ :param _ApiStatus: api防护开关
4257
+ 注意:此字段可能返回 null,表示取不到有效值。
4258
+ :type ApiStatus: int
4259
+ :param _ObjectFlowMode: 对象接入模式,0表示镜像模式,1表示清洗模式,2表示体检模式,默认为清洗模式
4260
+ 注意:此字段可能返回 null,表示取不到有效值。
4261
+ :type ObjectFlowMode: int
4247
4262
  """
4248
4263
  self._ObjectId = None
4249
4264
  self._InstanceId = None
@@ -4262,6 +4277,11 @@ class ClbObject(AbstractModel):
4262
4277
  self._PostCKafkaStatus = None
4263
4278
  self._Type = None
4264
4279
  self._Region = None
4280
+ self._Proxy = None
4281
+ self._IpHeaders = None
4282
+ self._BotStatus = None
4283
+ self._ApiStatus = None
4284
+ self._ObjectFlowMode = None
4265
4285
 
4266
4286
  @property
4267
4287
  def ObjectId(self):
@@ -4399,6 +4419,46 @@ class ClbObject(AbstractModel):
4399
4419
  def Region(self, Region):
4400
4420
  self._Region = Region
4401
4421
 
4422
+ @property
4423
+ def Proxy(self):
4424
+ return self._Proxy
4425
+
4426
+ @Proxy.setter
4427
+ def Proxy(self, Proxy):
4428
+ self._Proxy = Proxy
4429
+
4430
+ @property
4431
+ def IpHeaders(self):
4432
+ return self._IpHeaders
4433
+
4434
+ @IpHeaders.setter
4435
+ def IpHeaders(self, IpHeaders):
4436
+ self._IpHeaders = IpHeaders
4437
+
4438
+ @property
4439
+ def BotStatus(self):
4440
+ return self._BotStatus
4441
+
4442
+ @BotStatus.setter
4443
+ def BotStatus(self, BotStatus):
4444
+ self._BotStatus = BotStatus
4445
+
4446
+ @property
4447
+ def ApiStatus(self):
4448
+ return self._ApiStatus
4449
+
4450
+ @ApiStatus.setter
4451
+ def ApiStatus(self, ApiStatus):
4452
+ self._ApiStatus = ApiStatus
4453
+
4454
+ @property
4455
+ def ObjectFlowMode(self):
4456
+ return self._ObjectFlowMode
4457
+
4458
+ @ObjectFlowMode.setter
4459
+ def ObjectFlowMode(self, ObjectFlowMode):
4460
+ self._ObjectFlowMode = ObjectFlowMode
4461
+
4402
4462
 
4403
4463
  def _deserialize(self, params):
4404
4464
  self._ObjectId = params.get("ObjectId")
@@ -4418,6 +4478,11 @@ class ClbObject(AbstractModel):
4418
4478
  self._PostCKafkaStatus = params.get("PostCKafkaStatus")
4419
4479
  self._Type = params.get("Type")
4420
4480
  self._Region = params.get("Region")
4481
+ self._Proxy = params.get("Proxy")
4482
+ self._IpHeaders = params.get("IpHeaders")
4483
+ self._BotStatus = params.get("BotStatus")
4484
+ self._ApiStatus = params.get("ApiStatus")
4485
+ self._ObjectFlowMode = params.get("ObjectFlowMode")
4421
4486
  memeber_set = set(params.keys())
4422
4487
  for name, value in vars(self).items():
4423
4488
  property_name = name[1:]
@@ -11211,7 +11276,7 @@ class DescribeHistogramRequest(AbstractModel):
11211
11276
  :type FromTime: str
11212
11277
  :param _ToTime: 结束时间
11213
11278
  :type ToTime: str
11214
- :param _QueryField: 聚类字段,ip为ip聚合,art为响应耗时聚合,url为url聚合,local为ip转化的城市聚合
11279
+ :param _QueryField: 聚类字段,ip为ip聚合,art为响应耗时聚合,url为url聚合,local为ip转化的城市聚合,qps为每秒请求数峰值的聚合,up为上行带宽峰值聚合,down为下行带峰值聚合
11215
11280
  :type QueryField: str
11216
11281
  :param _Source: 条件,access为访问日志,attack为攻击日志
11217
11282
  :type Source: str
@@ -20308,80 +20373,6 @@ class MiniPkg(AbstractModel):
20308
20373
 
20309
20374
 
20310
20375
 
20311
- class ModifyAccessPeriodRequest(AbstractModel):
20312
- """ModifyAccessPeriod请求参数结构体
20313
-
20314
- """
20315
-
20316
- def __init__(self):
20317
- r"""
20318
- :param _Period: 访问日志保存期限,范围为[1, 180]
20319
- :type Period: int
20320
- :param _TopicId: 日志主题,新版本不需要再传
20321
- :type TopicId: str
20322
- """
20323
- self._Period = None
20324
- self._TopicId = None
20325
-
20326
- @property
20327
- def Period(self):
20328
- return self._Period
20329
-
20330
- @Period.setter
20331
- def Period(self, Period):
20332
- self._Period = Period
20333
-
20334
- @property
20335
- def TopicId(self):
20336
- warnings.warn("parameter `TopicId` is deprecated", DeprecationWarning)
20337
-
20338
- return self._TopicId
20339
-
20340
- @TopicId.setter
20341
- def TopicId(self, TopicId):
20342
- warnings.warn("parameter `TopicId` is deprecated", DeprecationWarning)
20343
-
20344
- self._TopicId = TopicId
20345
-
20346
-
20347
- def _deserialize(self, params):
20348
- self._Period = params.get("Period")
20349
- self._TopicId = params.get("TopicId")
20350
- memeber_set = set(params.keys())
20351
- for name, value in vars(self).items():
20352
- property_name = name[1:]
20353
- if property_name in memeber_set:
20354
- memeber_set.remove(property_name)
20355
- if len(memeber_set) > 0:
20356
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20357
-
20358
-
20359
-
20360
- class ModifyAccessPeriodResponse(AbstractModel):
20361
- """ModifyAccessPeriod返回参数结构体
20362
-
20363
- """
20364
-
20365
- def __init__(self):
20366
- r"""
20367
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20368
- :type RequestId: str
20369
- """
20370
- self._RequestId = None
20371
-
20372
- @property
20373
- def RequestId(self):
20374
- return self._RequestId
20375
-
20376
- @RequestId.setter
20377
- def RequestId(self, RequestId):
20378
- self._RequestId = RequestId
20379
-
20380
-
20381
- def _deserialize(self, params):
20382
- self._RequestId = params.get("RequestId")
20383
-
20384
-
20385
20376
  class ModifyAntiFakeUrlRequest(AbstractModel):
20386
20377
  """ModifyAntiFakeUrl请求参数结构体
20387
20378
 
@@ -2171,29 +2171,6 @@ class WafClient(AbstractClient):
2171
2171
  raise TencentCloudSDKException(type(e).__name__, str(e))
2172
2172
 
2173
2173
 
2174
- def ModifyAccessPeriod(self, request):
2175
- """本接口用于修改访问日志保存期限等字段信息
2176
-
2177
- :param request: Request instance for ModifyAccessPeriod.
2178
- :type request: :class:`tencentcloud.waf.v20180125.models.ModifyAccessPeriodRequest`
2179
- :rtype: :class:`tencentcloud.waf.v20180125.models.ModifyAccessPeriodResponse`
2180
-
2181
- """
2182
- try:
2183
- params = request._serialize()
2184
- headers = request.headers
2185
- body = self.call("ModifyAccessPeriod", params, headers=headers)
2186
- response = json.loads(body)
2187
- model = models.ModifyAccessPeriodResponse()
2188
- model._deserialize(response["Response"])
2189
- return model
2190
- except Exception as e:
2191
- if isinstance(e, TencentCloudSDKException):
2192
- raise
2193
- else:
2194
- raise TencentCloudSDKException(type(e).__name__, str(e))
2195
-
2196
-
2197
2174
  def ModifyAntiFakeUrl(self, request):
2198
2175
  """编辑防篡改url
2199
2176
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.1178
3
+ Version: 3.0.1187
4
4
  Summary: Tencent Cloud Waf SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1187
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1178