tencentcloud-sdk-python-teo 3.1.142__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.142 → tencentcloud_sdk_python_teo-3.1.145}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/setup.py +1 -1
  3. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/models.py +341 -56
  5. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/teo_client.py +23 -0
  6. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/teo_client_async.py +18 -0
  7. {tencentcloud_sdk_python_teo-3.1.142 → 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.142/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/README.rst +0 -0
  11. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/__init__.py +0 -0
  13. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/__init__.py +0 -0
  14. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/models.py +0 -0
  16. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/teo_client.py +0 -0
  17. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220106/teo_client_async.py +0 -0
  18. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/__init__.py +0 -0
  19. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
  20. {tencentcloud_sdk_python_teo-3.1.142 → tencentcloud_sdk_python_teo-3.1.145}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_teo-3.1.142 → 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.142 → 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.142
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.142
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.142,<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.142'
17
+ __version__ = '3.1.145'
@@ -7795,32 +7795,25 @@ class ClientAttester(AbstractModel):
7795
7795
 
7796
7796
  def __init__(self):
7797
7797
  r"""
7798
- :param _Id: 认证选项 ID。
7798
+ :param _Id: <p>认证选项 ID。</p>
7799
7799
  :type Id: str
7800
- :param _Name: 认证选项名称。
7800
+ :param _Name: <p>认证选项名称。</p>
7801
7801
  :type Name: str
7802
- :param _Type: 认证规则类型。仅出参返回,取值有:
7803
- <li>PRESET: 系统预置规则,仅允许修改 AttesterDuration;</li>
7804
- <li>CUSTOM: 用户自定义规则。</li>
7802
+ :param _Type: <p>认证规则类型。仅出参返回,取值有:</p><li>PRESET: 系统预置规则,仅允许修改 AttesterDuration;</li><li>CUSTOM: 用户自定义规则。</li>
7805
7803
  :type Type: str
7806
- :param _AttesterSource: 认证方法。取值有:
7807
- <li>TC-RCE: 使用风险识别 RCE 进行认证;</li>
7808
- <li>TC-CAPTCHA: 使用天御验证码进行认证;</li>
7809
- <li>TC-EO-CAPTCHA: 使用 EdgeOne 人机校验进行认证。</li>
7804
+ :param _AttesterSource: <p>认证方法。取值有:</p><li>TC-RCE: 使用风险识别 RCE 进行认证;</li><li>TC-CAPTCHA: 使用天御验证码进行认证;</li><li>TC-EO-CAPTCHA: 使用 EdgeOne 人机校验进行认证。</li>
7810
7805
  :type AttesterSource: str
7811
- :param _AttesterDuration: 认证有效时间。默认为 60s,支持的单位有:
7812
- <li>s:秒,取值范围 60~43200;</li>
7813
- <li>m:分,取值范围 1~720;</li>
7814
- <li>h:小时,取值范围 1~12。</li>
7806
+ :param _AttesterDuration: <p>认证有效时间。默认为 60s,支持的单位有:</p><li>s:秒,取值范围 60~43200;</li><li>m:分,取值范围 1~720;</li><li>h:小时,取值范围 1~12。</li>
7815
7807
  :type AttesterDuration: str
7816
- :param _TCRCEOption: TC-RCE 认证的配置信息。
7817
- <li>当 AttesterSource 参数值为 TC-RCE 时,此字段必填。</li>
7808
+ :param _UsageLimit: <p>是否开启认证结果使用限制。 </p><p>枚举值:</p><ul><li>on: 开启</li><li>off: 关闭</li></ul><p>默认值:off</p>
7809
+ :type UsageLimit: str
7810
+ :param _MaxUsageCount: <p>认证结果最大使用次数。当 UsageLimit 为 on 时,此字段必填。</p><p>取值范围:[1, 100000]</p>
7811
+ :type MaxUsageCount: int
7812
+ :param _TCRCEOption: <p>TC-RCE 认证的配置信息。</p><li>当 AttesterSource 参数值为 TC-RCE 时,此字段必填。</li>
7818
7813
  :type TCRCEOption: :class:`tencentcloud.teo.v20220901.models.TCRCEOption`
7819
- :param _TCCaptchaOption: TC-CAPTCHA 认证的配置信息。
7820
- <li>当 AttesterSource 参数值为 TC-CAPTCHA 时,此字段必填。</li>
7814
+ :param _TCCaptchaOption: <p>TC-CAPTCHA 认证的配置信息。</p><li>当 AttesterSource 参数值为 TC-CAPTCHA 时,此字段必填。</li>
7821
7815
  :type TCCaptchaOption: :class:`tencentcloud.teo.v20220901.models.TCCaptchaOption`
7822
- :param _TCEOCaptchaOption: TC-EO-CAPTCHA 认证的配置信息。
7823
- <li>当 AttesterSource 参数值为 TC-EO-CAPTCHA 时,此字段必填。</li>
7816
+ :param _TCEOCaptchaOption: <p>TC-EO-CAPTCHA 认证的配置信息。</p><li>当 AttesterSource 参数值为 TC-EO-CAPTCHA 时,此字段必填。</li>
7824
7817
  :type TCEOCaptchaOption: :class:`tencentcloud.teo.v20220901.models.TCEOCaptchaOption`
7825
7818
  """
7826
7819
  self._Id = None
@@ -7828,13 +7821,15 @@ class ClientAttester(AbstractModel):
7828
7821
  self._Type = None
7829
7822
  self._AttesterSource = None
7830
7823
  self._AttesterDuration = None
7824
+ self._UsageLimit = None
7825
+ self._MaxUsageCount = None
7831
7826
  self._TCRCEOption = None
7832
7827
  self._TCCaptchaOption = None
7833
7828
  self._TCEOCaptchaOption = None
7834
7829
 
7835
7830
  @property
7836
7831
  def Id(self):
7837
- r"""认证选项 ID。
7832
+ r"""<p>认证选项 ID。</p>
7838
7833
  :rtype: str
7839
7834
  """
7840
7835
  return self._Id
@@ -7845,7 +7840,7 @@ class ClientAttester(AbstractModel):
7845
7840
 
7846
7841
  @property
7847
7842
  def Name(self):
7848
- r"""认证选项名称。
7843
+ r"""<p>认证选项名称。</p>
7849
7844
  :rtype: str
7850
7845
  """
7851
7846
  return self._Name
@@ -7856,9 +7851,7 @@ class ClientAttester(AbstractModel):
7856
7851
 
7857
7852
  @property
7858
7853
  def Type(self):
7859
- r"""认证规则类型。仅出参返回,取值有:
7860
- <li>PRESET: 系统预置规则,仅允许修改 AttesterDuration;</li>
7861
- <li>CUSTOM: 用户自定义规则。</li>
7854
+ r"""<p>认证规则类型。仅出参返回,取值有:</p><li>PRESET: 系统预置规则,仅允许修改 AttesterDuration;</li><li>CUSTOM: 用户自定义规则。</li>
7862
7855
  :rtype: str
7863
7856
  """
7864
7857
  return self._Type
@@ -7869,10 +7862,7 @@ class ClientAttester(AbstractModel):
7869
7862
 
7870
7863
  @property
7871
7864
  def AttesterSource(self):
7872
- r"""认证方法。取值有:
7873
- <li>TC-RCE: 使用风险识别 RCE 进行认证;</li>
7874
- <li>TC-CAPTCHA: 使用天御验证码进行认证;</li>
7875
- <li>TC-EO-CAPTCHA: 使用 EdgeOne 人机校验进行认证。</li>
7865
+ r"""<p>认证方法。取值有:</p><li>TC-RCE: 使用风险识别 RCE 进行认证;</li><li>TC-CAPTCHA: 使用天御验证码进行认证;</li><li>TC-EO-CAPTCHA: 使用 EdgeOne 人机校验进行认证。</li>
7876
7866
  :rtype: str
7877
7867
  """
7878
7868
  return self._AttesterSource
@@ -7883,10 +7873,7 @@ class ClientAttester(AbstractModel):
7883
7873
 
7884
7874
  @property
7885
7875
  def AttesterDuration(self):
7886
- r"""认证有效时间。默认为 60s,支持的单位有:
7887
- <li>s:秒,取值范围 60~43200;</li>
7888
- <li>m:分,取值范围 1~720;</li>
7889
- <li>h:小时,取值范围 1~12。</li>
7876
+ r"""<p>认证有效时间。默认为 60s,支持的单位有:</p><li>s:秒,取值范围 60~43200;</li><li>m:分,取值范围 1~720;</li><li>h:小时,取值范围 1~12。</li>
7890
7877
  :rtype: str
7891
7878
  """
7892
7879
  return self._AttesterDuration
@@ -7895,10 +7882,31 @@ class ClientAttester(AbstractModel):
7895
7882
  def AttesterDuration(self, AttesterDuration):
7896
7883
  self._AttesterDuration = AttesterDuration
7897
7884
 
7885
+ @property
7886
+ def UsageLimit(self):
7887
+ r"""<p>是否开启认证结果使用限制。 </p><p>枚举值:</p><ul><li>on: 开启</li><li>off: 关闭</li></ul><p>默认值:off</p>
7888
+ :rtype: str
7889
+ """
7890
+ return self._UsageLimit
7891
+
7892
+ @UsageLimit.setter
7893
+ def UsageLimit(self, UsageLimit):
7894
+ self._UsageLimit = UsageLimit
7895
+
7896
+ @property
7897
+ def MaxUsageCount(self):
7898
+ r"""<p>认证结果最大使用次数。当 UsageLimit 为 on 时,此字段必填。</p><p>取值范围:[1, 100000]</p>
7899
+ :rtype: int
7900
+ """
7901
+ return self._MaxUsageCount
7902
+
7903
+ @MaxUsageCount.setter
7904
+ def MaxUsageCount(self, MaxUsageCount):
7905
+ self._MaxUsageCount = MaxUsageCount
7906
+
7898
7907
  @property
7899
7908
  def TCRCEOption(self):
7900
- r"""TC-RCE 认证的配置信息。
7901
- <li>当 AttesterSource 参数值为 TC-RCE 时,此字段必填。</li>
7909
+ r"""<p>TC-RCE 认证的配置信息。</p><li>当 AttesterSource 参数值为 TC-RCE 时,此字段必填。</li>
7902
7910
  :rtype: :class:`tencentcloud.teo.v20220901.models.TCRCEOption`
7903
7911
  """
7904
7912
  return self._TCRCEOption
@@ -7909,8 +7917,7 @@ class ClientAttester(AbstractModel):
7909
7917
 
7910
7918
  @property
7911
7919
  def TCCaptchaOption(self):
7912
- r"""TC-CAPTCHA 认证的配置信息。
7913
- <li>当 AttesterSource 参数值为 TC-CAPTCHA 时,此字段必填。</li>
7920
+ r"""<p>TC-CAPTCHA 认证的配置信息。</p><li>当 AttesterSource 参数值为 TC-CAPTCHA 时,此字段必填。</li>
7914
7921
  :rtype: :class:`tencentcloud.teo.v20220901.models.TCCaptchaOption`
7915
7922
  """
7916
7923
  return self._TCCaptchaOption
@@ -7921,8 +7928,7 @@ class ClientAttester(AbstractModel):
7921
7928
 
7922
7929
  @property
7923
7930
  def TCEOCaptchaOption(self):
7924
- r"""TC-EO-CAPTCHA 认证的配置信息。
7925
- <li>当 AttesterSource 参数值为 TC-EO-CAPTCHA 时,此字段必填。</li>
7931
+ r"""<p>TC-EO-CAPTCHA 认证的配置信息。</p><li>当 AttesterSource 参数值为 TC-EO-CAPTCHA 时,此字段必填。</li>
7926
7932
  :rtype: :class:`tencentcloud.teo.v20220901.models.TCEOCaptchaOption`
7927
7933
  """
7928
7934
  return self._TCEOCaptchaOption
@@ -7938,6 +7944,8 @@ class ClientAttester(AbstractModel):
7938
7944
  self._Type = params.get("Type")
7939
7945
  self._AttesterSource = params.get("AttesterSource")
7940
7946
  self._AttesterDuration = params.get("AttesterDuration")
7947
+ self._UsageLimit = params.get("UsageLimit")
7948
+ self._MaxUsageCount = params.get("MaxUsageCount")
7941
7949
  if params.get("TCRCEOption") is not None:
7942
7950
  self._TCRCEOption = TCRCEOption()
7943
7951
  self._TCRCEOption._deserialize(params.get("TCRCEOption"))
@@ -23514,6 +23522,150 @@ class DescribeHostsSettingResponse(AbstractModel):
23514
23522
  self._RequestId = params.get("RequestId")
23515
23523
 
23516
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
+
23517
23669
  class DescribeIPRegionRequest(AbstractModel):
23518
23670
  r"""DescribeIPRegion请求参数结构体
23519
23671
 
@@ -38190,30 +38342,29 @@ class IPGroup(AbstractModel):
38190
38342
 
38191
38343
  def __init__(self):
38192
38344
  r"""
38193
- :param _GroupId: 组 Id,创建时填 0 即可。
38345
+ :param _GroupId: <p>IP 组 Id,创建时填 0 即可。</p>
38194
38346
  :type GroupId: int
38195
- :param _Name: 组名称。
38347
+ :param _Name: <p>IP 组名称。</p>
38196
38348
  :type Name: str
38197
- :param _Content: IP 组内容,仅支持 IP 及 IP 网段。
38349
+ :param _Content: <p>IP 组内容,仅支持 IP 及 IP 网段。</p>
38198
38350
  :type Content: list of str
38199
- :param _IPTotalCount: IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。
38351
+ :param _IPTotalCount: <p>IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。</p>
38200
38352
  :type IPTotalCount: int
38201
- :param _IPExpireInfo: IP 定时过期信息。
38202
- 作为入参,用于为指定的 IP 地址或网段配置定时过期时间。
38203
- 作为出参,包含以下两类信息:
38204
- <li>当前未到期的定时过期信息:尚未触发的过期配置。</li>
38205
- <li>一周内已到期的定时过期信息:已触发的过期配置。</li>
38353
+ :param _IPExpireInfo: <p>IP 定时过期信息。<br>作为入参,用于为指定的 IP 地址或网段配置定时过期时间。<br>作为出参,包含以下两类信息:</p><li>当前未到期的定时过期信息:尚未触发的过期配置。</li><li>一周内已到期的定时过期信息:已触发的过期配置。</li>
38206
38354
  :type IPExpireInfo: list of IPExpireInfo
38355
+ :param _RefCount: <p>IP 组被引用的数量。</p>
38356
+ :type RefCount: int
38207
38357
  """
38208
38358
  self._GroupId = None
38209
38359
  self._Name = None
38210
38360
  self._Content = None
38211
38361
  self._IPTotalCount = None
38212
38362
  self._IPExpireInfo = None
38363
+ self._RefCount = None
38213
38364
 
38214
38365
  @property
38215
38366
  def GroupId(self):
38216
- r"""组 Id,创建时填 0 即可。
38367
+ r"""<p>IP 组 Id,创建时填 0 即可。</p>
38217
38368
  :rtype: int
38218
38369
  """
38219
38370
  return self._GroupId
@@ -38224,7 +38375,7 @@ class IPGroup(AbstractModel):
38224
38375
 
38225
38376
  @property
38226
38377
  def Name(self):
38227
- r"""组名称。
38378
+ r"""<p>IP 组名称。</p>
38228
38379
  :rtype: str
38229
38380
  """
38230
38381
  return self._Name
@@ -38235,7 +38386,7 @@ class IPGroup(AbstractModel):
38235
38386
 
38236
38387
  @property
38237
38388
  def Content(self):
38238
- r"""IP 组内容,仅支持 IP 及 IP 网段。
38389
+ r"""<p>IP 组内容,仅支持 IP 及 IP 网段。</p>
38239
38390
  :rtype: list of str
38240
38391
  """
38241
38392
  return self._Content
@@ -38246,7 +38397,7 @@ class IPGroup(AbstractModel):
38246
38397
 
38247
38398
  @property
38248
38399
  def IPTotalCount(self):
38249
- r"""IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。
38400
+ r"""<p>IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。</p>
38250
38401
  :rtype: int
38251
38402
  """
38252
38403
  return self._IPTotalCount
@@ -38257,11 +38408,7 @@ class IPGroup(AbstractModel):
38257
38408
 
38258
38409
  @property
38259
38410
  def IPExpireInfo(self):
38260
- r"""IP 定时过期信息。
38261
- 作为入参,用于为指定的 IP 地址或网段配置定时过期时间。
38262
- 作为出参,包含以下两类信息:
38263
- <li>当前未到期的定时过期信息:尚未触发的过期配置。</li>
38264
- <li>一周内已到期的定时过期信息:已触发的过期配置。</li>
38411
+ r"""<p>IP 定时过期信息。<br>作为入参,用于为指定的 IP 地址或网段配置定时过期时间。<br>作为出参,包含以下两类信息:</p><li>当前未到期的定时过期信息:尚未触发的过期配置。</li><li>一周内已到期的定时过期信息:已触发的过期配置。</li>
38265
38412
  :rtype: list of IPExpireInfo
38266
38413
  """
38267
38414
  return self._IPExpireInfo
@@ -38270,6 +38417,17 @@ class IPGroup(AbstractModel):
38270
38417
  def IPExpireInfo(self, IPExpireInfo):
38271
38418
  self._IPExpireInfo = IPExpireInfo
38272
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
+
38273
38431
 
38274
38432
  def _deserialize(self, params):
38275
38433
  self._GroupId = params.get("GroupId")
@@ -38282,6 +38440,133 @@ class IPGroup(AbstractModel):
38282
38440
  obj = IPExpireInfo()
38283
38441
  obj._deserialize(item)
38284
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")
38285
38570
  memeber_set = set(params.keys())
38286
38571
  for name, value in vars(self).items():
38287
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.142
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.142
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.142