tencentcloud-sdk-python-teo 3.1.143__tar.gz → 3.1.145__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 (22) hide show
  1. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/setup.py +1 -1
  3. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/models.py +295 -18
  5. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/teo_client.py +23 -0
  6. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/teo_client_async.py +18 -0
  7. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_teo-3.1.145/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_teo-3.1.143/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/README.rst +0 -0
  11. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/__init__.py +0 -0
  13. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/__init__.py +0 -0
  14. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/models.py +0 -0
  16. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/teo_client.py +0 -0
  17. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/teo_client_async.py +0 -0
  18. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/__init__.py +0 -0
  19. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
  20. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_teo-3.1.143 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud_sdk_python_teo.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-teo
3
- Version: 3.1.143
3
+ Version: 3.1.145
4
4
  Summary: Tencent Cloud Teo 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.143
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.145
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-teo',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.143,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.145,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Teo SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.143'
17
+ __version__ = '3.1.145'
@@ -23522,6 +23522,150 @@ class DescribeHostsSettingResponse(AbstractModel):
23522
23522
  self._RequestId = params.get("RequestId")
23523
23523
 
23524
23524
 
23525
+ class DescribeIPGroupReferencesRequest(AbstractModel):
23526
+ r"""DescribeIPGroupReferences请求参数结构体
23527
+
23528
+ """
23529
+
23530
+ def __init__(self):
23531
+ r"""
23532
+ :param _ZoneId: <p>站点 ID。</p>
23533
+ :type ZoneId: str
23534
+ :param _GroupId: <p>IP 组 ID。</p>
23535
+ :type GroupId: int
23536
+ :param _Offset: <p>分页偏移量。</p><p>默认值:0</p>
23537
+ :type Offset: int
23538
+ :param _Limit: <p>分页查询引用 IP 组的配置条数。</p><p>取值范围:[1, 200]</p><p>默认值:20</p>
23539
+ :type Limit: int
23540
+ """
23541
+ self._ZoneId = None
23542
+ self._GroupId = None
23543
+ self._Offset = None
23544
+ self._Limit = None
23545
+
23546
+ @property
23547
+ def ZoneId(self):
23548
+ r"""<p>站点 ID。</p>
23549
+ :rtype: str
23550
+ """
23551
+ return self._ZoneId
23552
+
23553
+ @ZoneId.setter
23554
+ def ZoneId(self, ZoneId):
23555
+ self._ZoneId = ZoneId
23556
+
23557
+ @property
23558
+ def GroupId(self):
23559
+ r"""<p>IP 组 ID。</p>
23560
+ :rtype: int
23561
+ """
23562
+ return self._GroupId
23563
+
23564
+ @GroupId.setter
23565
+ def GroupId(self, GroupId):
23566
+ self._GroupId = GroupId
23567
+
23568
+ @property
23569
+ def Offset(self):
23570
+ r"""<p>分页偏移量。</p><p>默认值:0</p>
23571
+ :rtype: int
23572
+ """
23573
+ return self._Offset
23574
+
23575
+ @Offset.setter
23576
+ def Offset(self, Offset):
23577
+ self._Offset = Offset
23578
+
23579
+ @property
23580
+ def Limit(self):
23581
+ r"""<p>分页查询引用 IP 组的配置条数。</p><p>取值范围:[1, 200]</p><p>默认值:20</p>
23582
+ :rtype: int
23583
+ """
23584
+ return self._Limit
23585
+
23586
+ @Limit.setter
23587
+ def Limit(self, Limit):
23588
+ self._Limit = Limit
23589
+
23590
+
23591
+ def _deserialize(self, params):
23592
+ self._ZoneId = params.get("ZoneId")
23593
+ self._GroupId = params.get("GroupId")
23594
+ self._Offset = params.get("Offset")
23595
+ self._Limit = params.get("Limit")
23596
+ memeber_set = set(params.keys())
23597
+ for name, value in vars(self).items():
23598
+ property_name = name[1:]
23599
+ if property_name in memeber_set:
23600
+ memeber_set.remove(property_name)
23601
+ if len(memeber_set) > 0:
23602
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
23603
+
23604
+
23605
+
23606
+ class DescribeIPGroupReferencesResponse(AbstractModel):
23607
+ r"""DescribeIPGroupReferences返回参数结构体
23608
+
23609
+ """
23610
+
23611
+ def __init__(self):
23612
+ r"""
23613
+ :param _References: <p>引用对应 IP 组的配置信息。</p>
23614
+ :type References: list of IPGroupReference
23615
+ :param _TotalCount: <p>查询结果总数。</p>
23616
+ :type TotalCount: int
23617
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
23618
+ :type RequestId: str
23619
+ """
23620
+ self._References = None
23621
+ self._TotalCount = None
23622
+ self._RequestId = None
23623
+
23624
+ @property
23625
+ def References(self):
23626
+ r"""<p>引用对应 IP 组的配置信息。</p>
23627
+ :rtype: list of IPGroupReference
23628
+ """
23629
+ return self._References
23630
+
23631
+ @References.setter
23632
+ def References(self, References):
23633
+ self._References = References
23634
+
23635
+ @property
23636
+ def TotalCount(self):
23637
+ r"""<p>查询结果总数。</p>
23638
+ :rtype: int
23639
+ """
23640
+ return self._TotalCount
23641
+
23642
+ @TotalCount.setter
23643
+ def TotalCount(self, TotalCount):
23644
+ self._TotalCount = TotalCount
23645
+
23646
+ @property
23647
+ def RequestId(self):
23648
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
23649
+ :rtype: str
23650
+ """
23651
+ return self._RequestId
23652
+
23653
+ @RequestId.setter
23654
+ def RequestId(self, RequestId):
23655
+ self._RequestId = RequestId
23656
+
23657
+
23658
+ def _deserialize(self, params):
23659
+ if params.get("References") is not None:
23660
+ self._References = []
23661
+ for item in params.get("References"):
23662
+ obj = IPGroupReference()
23663
+ obj._deserialize(item)
23664
+ self._References.append(obj)
23665
+ self._TotalCount = params.get("TotalCount")
23666
+ self._RequestId = params.get("RequestId")
23667
+
23668
+
23525
23669
  class DescribeIPRegionRequest(AbstractModel):
23526
23670
  r"""DescribeIPRegion请求参数结构体
23527
23671
 
@@ -38198,30 +38342,29 @@ class IPGroup(AbstractModel):
38198
38342
 
38199
38343
  def __init__(self):
38200
38344
  r"""
38201
- :param _GroupId: 组 Id,创建时填 0 即可。
38345
+ :param _GroupId: <p>IP 组 Id,创建时填 0 即可。</p>
38202
38346
  :type GroupId: int
38203
- :param _Name: 组名称。
38347
+ :param _Name: <p>IP 组名称。</p>
38204
38348
  :type Name: str
38205
- :param _Content: IP 组内容,仅支持 IP 及 IP 网段。
38349
+ :param _Content: <p>IP 组内容,仅支持 IP 及 IP 网段。</p>
38206
38350
  :type Content: list of str
38207
- :param _IPTotalCount: IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。
38351
+ :param _IPTotalCount: <p>IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。</p>
38208
38352
  :type IPTotalCount: int
38209
- :param _IPExpireInfo: IP 定时过期信息。
38210
- 作为入参,用于为指定的 IP 地址或网段配置定时过期时间。
38211
- 作为出参,包含以下两类信息:
38212
- <li>当前未到期的定时过期信息:尚未触发的过期配置。</li>
38213
- <li>一周内已到期的定时过期信息:已触发的过期配置。</li>
38353
+ :param _IPExpireInfo: <p>IP 定时过期信息。<br>作为入参,用于为指定的 IP 地址或网段配置定时过期时间。<br>作为出参,包含以下两类信息:</p><li>当前未到期的定时过期信息:尚未触发的过期配置。</li><li>一周内已到期的定时过期信息:已触发的过期配置。</li>
38214
38354
  :type IPExpireInfo: list of IPExpireInfo
38355
+ :param _RefCount: <p>IP 组被引用的数量。</p>
38356
+ :type RefCount: int
38215
38357
  """
38216
38358
  self._GroupId = None
38217
38359
  self._Name = None
38218
38360
  self._Content = None
38219
38361
  self._IPTotalCount = None
38220
38362
  self._IPExpireInfo = None
38363
+ self._RefCount = None
38221
38364
 
38222
38365
  @property
38223
38366
  def GroupId(self):
38224
- r"""组 Id,创建时填 0 即可。
38367
+ r"""<p>IP 组 Id,创建时填 0 即可。</p>
38225
38368
  :rtype: int
38226
38369
  """
38227
38370
  return self._GroupId
@@ -38232,7 +38375,7 @@ class IPGroup(AbstractModel):
38232
38375
 
38233
38376
  @property
38234
38377
  def Name(self):
38235
- r"""组名称。
38378
+ r"""<p>IP 组名称。</p>
38236
38379
  :rtype: str
38237
38380
  """
38238
38381
  return self._Name
@@ -38243,7 +38386,7 @@ class IPGroup(AbstractModel):
38243
38386
 
38244
38387
  @property
38245
38388
  def Content(self):
38246
- r"""IP 组内容,仅支持 IP 及 IP 网段。
38389
+ r"""<p>IP 组内容,仅支持 IP 及 IP 网段。</p>
38247
38390
  :rtype: list of str
38248
38391
  """
38249
38392
  return self._Content
@@ -38254,7 +38397,7 @@ class IPGroup(AbstractModel):
38254
38397
 
38255
38398
  @property
38256
38399
  def IPTotalCount(self):
38257
- r"""IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。
38400
+ r"""<p>IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。</p>
38258
38401
  :rtype: int
38259
38402
  """
38260
38403
  return self._IPTotalCount
@@ -38265,11 +38408,7 @@ class IPGroup(AbstractModel):
38265
38408
 
38266
38409
  @property
38267
38410
  def IPExpireInfo(self):
38268
- r"""IP 定时过期信息。
38269
- 作为入参,用于为指定的 IP 地址或网段配置定时过期时间。
38270
- 作为出参,包含以下两类信息:
38271
- <li>当前未到期的定时过期信息:尚未触发的过期配置。</li>
38272
- <li>一周内已到期的定时过期信息:已触发的过期配置。</li>
38411
+ r"""<p>IP 定时过期信息。<br>作为入参,用于为指定的 IP 地址或网段配置定时过期时间。<br>作为出参,包含以下两类信息:</p><li>当前未到期的定时过期信息:尚未触发的过期配置。</li><li>一周内已到期的定时过期信息:已触发的过期配置。</li>
38273
38412
  :rtype: list of IPExpireInfo
38274
38413
  """
38275
38414
  return self._IPExpireInfo
@@ -38278,6 +38417,17 @@ class IPGroup(AbstractModel):
38278
38417
  def IPExpireInfo(self, IPExpireInfo):
38279
38418
  self._IPExpireInfo = IPExpireInfo
38280
38419
 
38420
+ @property
38421
+ def RefCount(self):
38422
+ r"""<p>IP 组被引用的数量。</p>
38423
+ :rtype: int
38424
+ """
38425
+ return self._RefCount
38426
+
38427
+ @RefCount.setter
38428
+ def RefCount(self, RefCount):
38429
+ self._RefCount = RefCount
38430
+
38281
38431
 
38282
38432
  def _deserialize(self, params):
38283
38433
  self._GroupId = params.get("GroupId")
@@ -38290,6 +38440,133 @@ class IPGroup(AbstractModel):
38290
38440
  obj = IPExpireInfo()
38291
38441
  obj._deserialize(item)
38292
38442
  self._IPExpireInfo.append(obj)
38443
+ self._RefCount = params.get("RefCount")
38444
+ memeber_set = set(params.keys())
38445
+ for name, value in vars(self).items():
38446
+ property_name = name[1:]
38447
+ if property_name in memeber_set:
38448
+ memeber_set.remove(property_name)
38449
+ if len(memeber_set) > 0:
38450
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
38451
+
38452
+
38453
+
38454
+ class IPGroupReference(AbstractModel):
38455
+ r"""引用 IP 组的安全模块
38456
+
38457
+ """
38458
+
38459
+ def __init__(self):
38460
+ r"""
38461
+ :param _ZoneId: <p>站点 ID。</p>
38462
+ :type ZoneId: str
38463
+ :param _EntityType: <p>实体类型。</p><p>枚举值:</p><ul><li>WebSec.ZonePolicy: 站点级防护策略</li><li>WebSec.HostPolicy: 域名级防护策略</li><li>WebSec.Template: 策略模板</li><li>DDoS.L4Proxy: 四层代理 DDoS 防护</li><li>DDoS.L3Transit: 三层代播 DDoS 防护</li></ul>
38464
+ :type EntityType: str
38465
+ :param _EntityId: <p>实体标识,根据 EntityType 不同代表不同的含义:</p><ul><li>WebSec.ZonePolicy:站点 ID;</li><li>WebSec.HostPolicy:域名;</li><li>WebSec.Template:模板 ID;</li><li>DDoS.L4Proxy:实例 ID;</li><li>DDoS.L3Transit:实例 ID。</li></ul>
38466
+ :type EntityId: str
38467
+ :param _EntityName: <p>实体标识,根据 EntityType 不同代表不同的含义:</p><ul><li>WebSec.ZonePolicy:空;</li><li>WebSec.HostPolicy:空;</li><li>WebSec.Template:模板名称;</li><li>DDoS.L4Proxy:空;</li><li>DDoS.L3Transit:空。</li></ul>
38468
+ :type EntityName: str
38469
+ :param _SubEntityType: <p>子实体类型。</p><p>枚举值:</p><ul><li>WebSec.ExceptionRule: 防护例外规则</li><li>WebSec.BasicAccessRule: 基础访问管控</li><li>WebSec.PreciseMatchRule: 精确匹配规则</li><li>WebSec.RateLimitRule: 精准速率限制</li><li>WebSec.BotCustomRule: 高级 Bot 管理 - 自定义规则</li><li>DDoS.L4Proxy.IpAccessControl: 四层代理 DDoS 防护 - IP 黑白名单</li><li>DDoS.L3Transit.IpAccessControl: 三层代播 DDoS 防护 - IP 黑白名单</li></ul>
38470
+ :type SubEntityType: str
38471
+ :param _SubEntityId: <p>子实体标识,根据 SubEntityType 不同代表不同的含义:</p><ul><li>WebSec.ExceptionRule:规则 ID;</li><li>WebSec.BasicAccessRule:规则 ID;</li><li>WebSec.PreciseMatchRule:规则 ID;</li><li>WebSec.RateLimitRule:规则 ID;</li><li>WebSec.BotCustomRule:规则 ID;</li><li>DDoS.L4Proxy.IpAccessControl:空;</li><li>DDoS.L3Transit.IpAccessControl:空。</li></ul><p>EntityType 与 SubEntityType 为对应关系,不同的 EntityType 支持不同的 SubEntityType。<br>WebSec.ZonePolicy,WebSec.HostPolicy 和 WebSec.Template 支持如下 SubEntityType:</p><ul><li>WebSec.ExceptionRule;</li><li>WebSec.BasicAccessRule;</li><li>WebSec.PreciseMatchRule;</li><li>WebSec.RateLimitRule;</li><li>WebSec.BotCustomRule。</li></ul>DDoS.L4Proxy 支持如下 SubEntityType:<ul><li>DDoS.L4Proxy.IpAccessControl;</li></ul>DDoS.L3Transit 支持如下 SubEntityType:<ul><li>DDoS.L3Transit.IpAccessControl。</li></ul>
38472
+ :type SubEntityId: str
38473
+ :param _SubEntityName: <p>子实体名称,根据 SubEntityType 不同代表不同的含义:</p><ul><li>WebSec.ExceptionRule:规则名称;</li><li>WebSec.BasicAccessRule:规则名称;</li><li>WebSec.PreciseMatchRule:规则名称;</li><li>WebSec.RateLimitRule:规则名称;</li><li>WebSec.BotCustomRule:规则名称;</li><li>DDoS.L4Proxy.IpAccessControl:规则名称,block 表示黑名单,allow 表示白名单;</li><li>DDoS.L3Transit.IpAccessControl:规则名称,block 表示黑名单,allow 表示白名单。</li></ul>
38474
+ :type SubEntityName: str
38475
+ """
38476
+ self._ZoneId = None
38477
+ self._EntityType = None
38478
+ self._EntityId = None
38479
+ self._EntityName = None
38480
+ self._SubEntityType = None
38481
+ self._SubEntityId = None
38482
+ self._SubEntityName = None
38483
+
38484
+ @property
38485
+ def ZoneId(self):
38486
+ r"""<p>站点 ID。</p>
38487
+ :rtype: str
38488
+ """
38489
+ return self._ZoneId
38490
+
38491
+ @ZoneId.setter
38492
+ def ZoneId(self, ZoneId):
38493
+ self._ZoneId = ZoneId
38494
+
38495
+ @property
38496
+ def EntityType(self):
38497
+ r"""<p>实体类型。</p><p>枚举值:</p><ul><li>WebSec.ZonePolicy: 站点级防护策略</li><li>WebSec.HostPolicy: 域名级防护策略</li><li>WebSec.Template: 策略模板</li><li>DDoS.L4Proxy: 四层代理 DDoS 防护</li><li>DDoS.L3Transit: 三层代播 DDoS 防护</li></ul>
38498
+ :rtype: str
38499
+ """
38500
+ return self._EntityType
38501
+
38502
+ @EntityType.setter
38503
+ def EntityType(self, EntityType):
38504
+ self._EntityType = EntityType
38505
+
38506
+ @property
38507
+ def EntityId(self):
38508
+ r"""<p>实体标识,根据 EntityType 不同代表不同的含义:</p><ul><li>WebSec.ZonePolicy:站点 ID;</li><li>WebSec.HostPolicy:域名;</li><li>WebSec.Template:模板 ID;</li><li>DDoS.L4Proxy:实例 ID;</li><li>DDoS.L3Transit:实例 ID。</li></ul>
38509
+ :rtype: str
38510
+ """
38511
+ return self._EntityId
38512
+
38513
+ @EntityId.setter
38514
+ def EntityId(self, EntityId):
38515
+ self._EntityId = EntityId
38516
+
38517
+ @property
38518
+ def EntityName(self):
38519
+ r"""<p>实体标识,根据 EntityType 不同代表不同的含义:</p><ul><li>WebSec.ZonePolicy:空;</li><li>WebSec.HostPolicy:空;</li><li>WebSec.Template:模板名称;</li><li>DDoS.L4Proxy:空;</li><li>DDoS.L3Transit:空。</li></ul>
38520
+ :rtype: str
38521
+ """
38522
+ return self._EntityName
38523
+
38524
+ @EntityName.setter
38525
+ def EntityName(self, EntityName):
38526
+ self._EntityName = EntityName
38527
+
38528
+ @property
38529
+ def SubEntityType(self):
38530
+ r"""<p>子实体类型。</p><p>枚举值:</p><ul><li>WebSec.ExceptionRule: 防护例外规则</li><li>WebSec.BasicAccessRule: 基础访问管控</li><li>WebSec.PreciseMatchRule: 精确匹配规则</li><li>WebSec.RateLimitRule: 精准速率限制</li><li>WebSec.BotCustomRule: 高级 Bot 管理 - 自定义规则</li><li>DDoS.L4Proxy.IpAccessControl: 四层代理 DDoS 防护 - IP 黑白名单</li><li>DDoS.L3Transit.IpAccessControl: 三层代播 DDoS 防护 - IP 黑白名单</li></ul>
38531
+ :rtype: str
38532
+ """
38533
+ return self._SubEntityType
38534
+
38535
+ @SubEntityType.setter
38536
+ def SubEntityType(self, SubEntityType):
38537
+ self._SubEntityType = SubEntityType
38538
+
38539
+ @property
38540
+ def SubEntityId(self):
38541
+ r"""<p>子实体标识,根据 SubEntityType 不同代表不同的含义:</p><ul><li>WebSec.ExceptionRule:规则 ID;</li><li>WebSec.BasicAccessRule:规则 ID;</li><li>WebSec.PreciseMatchRule:规则 ID;</li><li>WebSec.RateLimitRule:规则 ID;</li><li>WebSec.BotCustomRule:规则 ID;</li><li>DDoS.L4Proxy.IpAccessControl:空;</li><li>DDoS.L3Transit.IpAccessControl:空。</li></ul><p>EntityType 与 SubEntityType 为对应关系,不同的 EntityType 支持不同的 SubEntityType。<br>WebSec.ZonePolicy,WebSec.HostPolicy 和 WebSec.Template 支持如下 SubEntityType:</p><ul><li>WebSec.ExceptionRule;</li><li>WebSec.BasicAccessRule;</li><li>WebSec.PreciseMatchRule;</li><li>WebSec.RateLimitRule;</li><li>WebSec.BotCustomRule。</li></ul>DDoS.L4Proxy 支持如下 SubEntityType:<ul><li>DDoS.L4Proxy.IpAccessControl;</li></ul>DDoS.L3Transit 支持如下 SubEntityType:<ul><li>DDoS.L3Transit.IpAccessControl。</li></ul>
38542
+ :rtype: str
38543
+ """
38544
+ return self._SubEntityId
38545
+
38546
+ @SubEntityId.setter
38547
+ def SubEntityId(self, SubEntityId):
38548
+ self._SubEntityId = SubEntityId
38549
+
38550
+ @property
38551
+ def SubEntityName(self):
38552
+ r"""<p>子实体名称,根据 SubEntityType 不同代表不同的含义:</p><ul><li>WebSec.ExceptionRule:规则名称;</li><li>WebSec.BasicAccessRule:规则名称;</li><li>WebSec.PreciseMatchRule:规则名称;</li><li>WebSec.RateLimitRule:规则名称;</li><li>WebSec.BotCustomRule:规则名称;</li><li>DDoS.L4Proxy.IpAccessControl:规则名称,block 表示黑名单,allow 表示白名单;</li><li>DDoS.L3Transit.IpAccessControl:规则名称,block 表示黑名单,allow 表示白名单。</li></ul>
38553
+ :rtype: str
38554
+ """
38555
+ return self._SubEntityName
38556
+
38557
+ @SubEntityName.setter
38558
+ def SubEntityName(self, SubEntityName):
38559
+ self._SubEntityName = SubEntityName
38560
+
38561
+
38562
+ def _deserialize(self, params):
38563
+ self._ZoneId = params.get("ZoneId")
38564
+ self._EntityType = params.get("EntityType")
38565
+ self._EntityId = params.get("EntityId")
38566
+ self._EntityName = params.get("EntityName")
38567
+ self._SubEntityType = params.get("SubEntityType")
38568
+ self._SubEntityId = params.get("SubEntityId")
38569
+ self._SubEntityName = params.get("SubEntityName")
38293
38570
  memeber_set = set(params.keys())
38294
38571
  for name, value in vars(self).items():
38295
38572
  property_name = name[1:]
@@ -2434,6 +2434,29 @@ class TeoClient(AbstractClient):
2434
2434
  raise TencentCloudSDKException(type(e).__name__, str(e))
2435
2435
 
2436
2436
 
2437
+ def DescribeIPGroupReferences(self, request):
2438
+ r"""获取使用 IP 分组的策略配置。
2439
+
2440
+ :param request: Request instance for DescribeIPGroupReferences.
2441
+ :type request: :class:`tencentcloud.teo.v20220901.models.DescribeIPGroupReferencesRequest`
2442
+ :rtype: :class:`tencentcloud.teo.v20220901.models.DescribeIPGroupReferencesResponse`
2443
+
2444
+ """
2445
+ try:
2446
+ params = request._serialize()
2447
+ headers = request.headers
2448
+ body = self.call("DescribeIPGroupReferences", params, headers=headers)
2449
+ response = json.loads(body)
2450
+ model = models.DescribeIPGroupReferencesResponse()
2451
+ model._deserialize(response["Response"])
2452
+ return model
2453
+ except Exception as e:
2454
+ if isinstance(e, TencentCloudSDKException):
2455
+ raise
2456
+ else:
2457
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2458
+
2459
+
2437
2460
  def DescribeIPRegion(self, request):
2438
2461
  r"""该接口可用于查询 IP 是否为 EdgeOne IP。
2439
2462
 
@@ -1918,6 +1918,24 @@ class TeoClient(AbstractClient):
1918
1918
 
1919
1919
  return await self.call_and_deserialize(**kwargs)
1920
1920
 
1921
+ async def DescribeIPGroupReferences(
1922
+ self,
1923
+ request: models.DescribeIPGroupReferencesRequest,
1924
+ opts: Dict = None,
1925
+ ) -> models.DescribeIPGroupReferencesResponse:
1926
+ """
1927
+ 获取使用 IP 分组的策略配置。
1928
+ """
1929
+
1930
+ kwargs = {}
1931
+ kwargs["action"] = "DescribeIPGroupReferences"
1932
+ kwargs["params"] = request._serialize()
1933
+ kwargs["resp_cls"] = models.DescribeIPGroupReferencesResponse
1934
+ kwargs["headers"] = request.headers
1935
+ kwargs["opts"] = opts or {}
1936
+
1937
+ return await self.call_and_deserialize(**kwargs)
1938
+
1921
1939
  async def DescribeIPRegion(
1922
1940
  self,
1923
1941
  request: models.DescribeIPRegionRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-teo
3
- Version: 3.1.143
3
+ Version: 3.1.145
4
4
  Summary: Tencent Cloud Teo 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.143
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.145
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.145
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.143