tencentcloud-sdk-python-teo 3.0.1427__tar.gz → 3.0.1428__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 (20) hide show
  1. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/setup.py +1 -1
  3. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/teo/v20220901/errorcodes.py +3 -0
  5. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/teo/v20220901/models.py +301 -0
  6. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/teo/v20220901/teo_client.py +46 -0
  7. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-teo-3.0.1428/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-teo-3.0.1427/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/README.rst +0 -0
  11. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/teo/__init__.py +0 -0
  13. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/teo/v20220106/__init__.py +0 -0
  14. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
  15. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/teo/v20220106/models.py +0 -0
  16. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/teo/v20220106/teo_client.py +0 -0
  17. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud/teo/v20220901/__init__.py +0 -0
  18. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
  19. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud-sdk-python-teo-3.0.1427 → tencentcloud-sdk-python-teo-3.0.1428}/tencentcloud_sdk_python_teo.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-teo
3
- Version: 3.0.1427
3
+ Version: 3.0.1428
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
@@ -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.0.1427,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1428,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Teo 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.1427'
17
+ __version__ = '3.0.1428'
@@ -1148,6 +1148,9 @@ OPERATIONDENIED_RESOURCEHASBEENLOCKED = 'OperationDenied.ResourceHasBeenLocked'
1148
1148
  # 当前有互相排斥的请求操作并行发起,请稍后重试。
1149
1149
  OPERATIONDENIED_RESOURCELOCKEDTEMPORARY = 'OperationDenied.ResourceLockedTemporary'
1150
1150
 
1151
+ # 高级防护资源售卖火爆,已售罄,正在加紧补货中,当前无法开启高级防护,请您耐心等待。
1152
+ OPERATIONDENIED_SECURITYLACKOFRESOURCES = 'OperationDenied.SecurityLackOfResources'
1153
+
1151
1154
  # 绑定在共享 CNAME 中的域名不允许变更 中国大陆网络优化(国际加速)访问,如果您需要单独变更,请先将域名从共享 CNAME 中解绑。
1152
1155
  OPERATIONDENIED_SHAREDCNAMEUNSUPPORTEDACCELERATEMAINLAND = 'OperationDenied.SharedCNAMEUnsupportedAccelerateMainland'
1153
1156
 
@@ -12711,6 +12711,90 @@ class DDoSBlockData(AbstractModel):
12711
12711
 
12712
12712
 
12713
12713
 
12714
+ class DDoSProtection(AbstractModel):
12715
+ """独立 DDoS 防护配置。
12716
+
12717
+ """
12718
+
12719
+ def __init__(self):
12720
+ r"""
12721
+ :param _ProtectionOption: 指定独立 DDoS 的防护范围。取值为:
12722
+ <li> protect_all_domains:独立 DDoS 防护对站点内全部域名生效,新接入域名自动开启独立 DDoS 防护,入参为 protect_all_domains 时,入参 DomainDDoSProtections 不作处理;</li>
12723
+ <li> protect_specified_domains:仅对指定域名生效,具体范围可通过 DomainDDoSProtection 参数指定。</li>
12724
+ :type ProtectionOption: str
12725
+ :param _DomainDDoSProtections: 域名的独立 DDoS 防护配置。在入参场景中:
12726
+ <li> 当 ProtectionOption 保持为 protect_specified_domains 时:未填写的域名维持原有独立 DDoS 防护配置不变,显式指定的域名​按传入参数更新;</li>
12727
+ <li> 当 ProtectionOption 由 protect_all_domains 切换为 protect_specified_domains 时:若 DomainDDoSProtections 传空,停用站点下全部域名的独立 DDoS 防护;若 DomainDDoSProtections 不为空,参数中指定的域名停用或保持独立 DDoS 防护,其余未列出的域名统一停用独立 DDoS 防护。</li>
12728
+ :type DomainDDoSProtections: list of DomainDDoSProtection
12729
+ :param _SharedCNAMEDDoSProtections: 共享 CNAME 的独立 DDoS 防护配置。仅作为出参使用。
12730
+ :type SharedCNAMEDDoSProtections: list of DomainDDoSProtection
12731
+ """
12732
+ self._ProtectionOption = None
12733
+ self._DomainDDoSProtections = None
12734
+ self._SharedCNAMEDDoSProtections = None
12735
+
12736
+ @property
12737
+ def ProtectionOption(self):
12738
+ """指定独立 DDoS 的防护范围。取值为:
12739
+ <li> protect_all_domains:独立 DDoS 防护对站点内全部域名生效,新接入域名自动开启独立 DDoS 防护,入参为 protect_all_domains 时,入参 DomainDDoSProtections 不作处理;</li>
12740
+ <li> protect_specified_domains:仅对指定域名生效,具体范围可通过 DomainDDoSProtection 参数指定。</li>
12741
+ :rtype: str
12742
+ """
12743
+ return self._ProtectionOption
12744
+
12745
+ @ProtectionOption.setter
12746
+ def ProtectionOption(self, ProtectionOption):
12747
+ self._ProtectionOption = ProtectionOption
12748
+
12749
+ @property
12750
+ def DomainDDoSProtections(self):
12751
+ """域名的独立 DDoS 防护配置。在入参场景中:
12752
+ <li> 当 ProtectionOption 保持为 protect_specified_domains 时:未填写的域名维持原有独立 DDoS 防护配置不变,显式指定的域名​按传入参数更新;</li>
12753
+ <li> 当 ProtectionOption 由 protect_all_domains 切换为 protect_specified_domains 时:若 DomainDDoSProtections 传空,停用站点下全部域名的独立 DDoS 防护;若 DomainDDoSProtections 不为空,参数中指定的域名停用或保持独立 DDoS 防护,其余未列出的域名统一停用独立 DDoS 防护。</li>
12754
+ :rtype: list of DomainDDoSProtection
12755
+ """
12756
+ return self._DomainDDoSProtections
12757
+
12758
+ @DomainDDoSProtections.setter
12759
+ def DomainDDoSProtections(self, DomainDDoSProtections):
12760
+ self._DomainDDoSProtections = DomainDDoSProtections
12761
+
12762
+ @property
12763
+ def SharedCNAMEDDoSProtections(self):
12764
+ """共享 CNAME 的独立 DDoS 防护配置。仅作为出参使用。
12765
+ :rtype: list of DomainDDoSProtection
12766
+ """
12767
+ return self._SharedCNAMEDDoSProtections
12768
+
12769
+ @SharedCNAMEDDoSProtections.setter
12770
+ def SharedCNAMEDDoSProtections(self, SharedCNAMEDDoSProtections):
12771
+ self._SharedCNAMEDDoSProtections = SharedCNAMEDDoSProtections
12772
+
12773
+
12774
+ def _deserialize(self, params):
12775
+ self._ProtectionOption = params.get("ProtectionOption")
12776
+ if params.get("DomainDDoSProtections") is not None:
12777
+ self._DomainDDoSProtections = []
12778
+ for item in params.get("DomainDDoSProtections"):
12779
+ obj = DomainDDoSProtection()
12780
+ obj._deserialize(item)
12781
+ self._DomainDDoSProtections.append(obj)
12782
+ if params.get("SharedCNAMEDDoSProtections") is not None:
12783
+ self._SharedCNAMEDDoSProtections = []
12784
+ for item in params.get("SharedCNAMEDDoSProtections"):
12785
+ obj = DomainDDoSProtection()
12786
+ obj._deserialize(item)
12787
+ self._SharedCNAMEDDoSProtections.append(obj)
12788
+ memeber_set = set(params.keys())
12789
+ for name, value in vars(self).items():
12790
+ property_name = name[1:]
12791
+ if property_name in memeber_set:
12792
+ memeber_set.remove(property_name)
12793
+ if len(memeber_set) > 0:
12794
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12795
+
12796
+
12797
+
12714
12798
  class DDosProtectionConfig(AbstractModel):
12715
12799
  """适用于四层代理或 Web 站点服务的独立 DDoS 防护规格配置。
12716
12800
 
@@ -17367,6 +17451,87 @@ class DescribeDDoSAttackTopDataResponse(AbstractModel):
17367
17451
  self._RequestId = params.get("RequestId")
17368
17452
 
17369
17453
 
17454
+ class DescribeDDoSProtectionRequest(AbstractModel):
17455
+ """DescribeDDoSProtection请求参数结构体
17456
+
17457
+ """
17458
+
17459
+ def __init__(self):
17460
+ r"""
17461
+ :param _ZoneId: 站点 ID。
17462
+ :type ZoneId: str
17463
+ """
17464
+ self._ZoneId = None
17465
+
17466
+ @property
17467
+ def ZoneId(self):
17468
+ """站点 ID。
17469
+ :rtype: str
17470
+ """
17471
+ return self._ZoneId
17472
+
17473
+ @ZoneId.setter
17474
+ def ZoneId(self, ZoneId):
17475
+ self._ZoneId = ZoneId
17476
+
17477
+
17478
+ def _deserialize(self, params):
17479
+ self._ZoneId = params.get("ZoneId")
17480
+ memeber_set = set(params.keys())
17481
+ for name, value in vars(self).items():
17482
+ property_name = name[1:]
17483
+ if property_name in memeber_set:
17484
+ memeber_set.remove(property_name)
17485
+ if len(memeber_set) > 0:
17486
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17487
+
17488
+
17489
+
17490
+ class DescribeDDoSProtectionResponse(AbstractModel):
17491
+ """DescribeDDoSProtection返回参数结构体
17492
+
17493
+ """
17494
+
17495
+ def __init__(self):
17496
+ r"""
17497
+ :param _DDoSProtection: 独立 DDoS 防护配置。用于控制独立 DDoS 防护的生效范围。
17498
+ :type DDoSProtection: :class:`tencentcloud.teo.v20220901.models.DDoSProtection`
17499
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17500
+ :type RequestId: str
17501
+ """
17502
+ self._DDoSProtection = None
17503
+ self._RequestId = None
17504
+
17505
+ @property
17506
+ def DDoSProtection(self):
17507
+ """独立 DDoS 防护配置。用于控制独立 DDoS 防护的生效范围。
17508
+ :rtype: :class:`tencentcloud.teo.v20220901.models.DDoSProtection`
17509
+ """
17510
+ return self._DDoSProtection
17511
+
17512
+ @DDoSProtection.setter
17513
+ def DDoSProtection(self, DDoSProtection):
17514
+ self._DDoSProtection = DDoSProtection
17515
+
17516
+ @property
17517
+ def RequestId(self):
17518
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17519
+ :rtype: str
17520
+ """
17521
+ return self._RequestId
17522
+
17523
+ @RequestId.setter
17524
+ def RequestId(self, RequestId):
17525
+ self._RequestId = RequestId
17526
+
17527
+
17528
+ def _deserialize(self, params):
17529
+ if params.get("DDoSProtection") is not None:
17530
+ self._DDoSProtection = DDoSProtection()
17531
+ self._DDoSProtection._deserialize(params.get("DDoSProtection"))
17532
+ self._RequestId = params.get("RequestId")
17533
+
17534
+
17370
17535
  class DescribeDefaultCertificatesRequest(AbstractModel):
17371
17536
  """DescribeDefaultCertificates请求参数结构体
17372
17537
 
@@ -25155,6 +25320,61 @@ class DnsVerification(AbstractModel):
25155
25320
 
25156
25321
 
25157
25322
 
25323
+ class DomainDDoSProtection(AbstractModel):
25324
+ """域名的独立 DDoS 防护信息。
25325
+
25326
+ """
25327
+
25328
+ def __init__(self):
25329
+ r"""
25330
+ :param _Domain: 域名。
25331
+ :type Domain: str
25332
+ :param _Switch: 域名的独立 DDoS 开关,取值为:
25333
+ <li> on:已开启;</li>
25334
+ <li> off:已关闭。</li>
25335
+ :type Switch: str
25336
+ """
25337
+ self._Domain = None
25338
+ self._Switch = None
25339
+
25340
+ @property
25341
+ def Domain(self):
25342
+ """域名。
25343
+ :rtype: str
25344
+ """
25345
+ return self._Domain
25346
+
25347
+ @Domain.setter
25348
+ def Domain(self, Domain):
25349
+ self._Domain = Domain
25350
+
25351
+ @property
25352
+ def Switch(self):
25353
+ """域名的独立 DDoS 开关,取值为:
25354
+ <li> on:已开启;</li>
25355
+ <li> off:已关闭。</li>
25356
+ :rtype: str
25357
+ """
25358
+ return self._Switch
25359
+
25360
+ @Switch.setter
25361
+ def Switch(self, Switch):
25362
+ self._Switch = Switch
25363
+
25364
+
25365
+ def _deserialize(self, params):
25366
+ self._Domain = params.get("Domain")
25367
+ self._Switch = params.get("Switch")
25368
+ memeber_set = set(params.keys())
25369
+ for name, value in vars(self).items():
25370
+ property_name = name[1:]
25371
+ if property_name in memeber_set:
25372
+ memeber_set.remove(property_name)
25373
+ if len(memeber_set) > 0:
25374
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
25375
+
25376
+
25377
+
25158
25378
  class DownloadL4LogsRequest(AbstractModel):
25159
25379
  """DownloadL4Logs请求参数结构体
25160
25380
 
@@ -33619,6 +33839,87 @@ class ModifyCustomErrorPageResponse(AbstractModel):
33619
33839
  self._RequestId = params.get("RequestId")
33620
33840
 
33621
33841
 
33842
+ class ModifyDDoSProtectionRequest(AbstractModel):
33843
+ """ModifyDDoSProtection请求参数结构体
33844
+
33845
+ """
33846
+
33847
+ def __init__(self):
33848
+ r"""
33849
+ :param _ZoneId: 站点 ID。
33850
+ :type ZoneId: str
33851
+ :param _DDoSProtection: 独立 DDoS 防护配置。
33852
+ :type DDoSProtection: :class:`tencentcloud.teo.v20220901.models.DDoSProtection`
33853
+ """
33854
+ self._ZoneId = None
33855
+ self._DDoSProtection = None
33856
+
33857
+ @property
33858
+ def ZoneId(self):
33859
+ """站点 ID。
33860
+ :rtype: str
33861
+ """
33862
+ return self._ZoneId
33863
+
33864
+ @ZoneId.setter
33865
+ def ZoneId(self, ZoneId):
33866
+ self._ZoneId = ZoneId
33867
+
33868
+ @property
33869
+ def DDoSProtection(self):
33870
+ """独立 DDoS 防护配置。
33871
+ :rtype: :class:`tencentcloud.teo.v20220901.models.DDoSProtection`
33872
+ """
33873
+ return self._DDoSProtection
33874
+
33875
+ @DDoSProtection.setter
33876
+ def DDoSProtection(self, DDoSProtection):
33877
+ self._DDoSProtection = DDoSProtection
33878
+
33879
+
33880
+ def _deserialize(self, params):
33881
+ self._ZoneId = params.get("ZoneId")
33882
+ if params.get("DDoSProtection") is not None:
33883
+ self._DDoSProtection = DDoSProtection()
33884
+ self._DDoSProtection._deserialize(params.get("DDoSProtection"))
33885
+ memeber_set = set(params.keys())
33886
+ for name, value in vars(self).items():
33887
+ property_name = name[1:]
33888
+ if property_name in memeber_set:
33889
+ memeber_set.remove(property_name)
33890
+ if len(memeber_set) > 0:
33891
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
33892
+
33893
+
33894
+
33895
+ class ModifyDDoSProtectionResponse(AbstractModel):
33896
+ """ModifyDDoSProtection返回参数结构体
33897
+
33898
+ """
33899
+
33900
+ def __init__(self):
33901
+ r"""
33902
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
33903
+ :type RequestId: str
33904
+ """
33905
+ self._RequestId = None
33906
+
33907
+ @property
33908
+ def RequestId(self):
33909
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
33910
+ :rtype: str
33911
+ """
33912
+ return self._RequestId
33913
+
33914
+ @RequestId.setter
33915
+ def RequestId(self, RequestId):
33916
+ self._RequestId = RequestId
33917
+
33918
+
33919
+ def _deserialize(self, params):
33920
+ self._RequestId = params.get("RequestId")
33921
+
33922
+
33622
33923
  class ModifyDnsRecordsRequest(AbstractModel):
33623
33924
  """ModifyDnsRecords请求参数结构体
33624
33925
 
@@ -1651,6 +1651,29 @@ class TeoClient(AbstractClient):
1651
1651
  raise TencentCloudSDKException(type(e).__name__, str(e))
1652
1652
 
1653
1653
 
1654
+ def DescribeDDoSProtection(self, request):
1655
+ """获取站点的独立 DDoS 防护信息。
1656
+
1657
+ :param request: Request instance for DescribeDDoSProtection.
1658
+ :type request: :class:`tencentcloud.teo.v20220901.models.DescribeDDoSProtectionRequest`
1659
+ :rtype: :class:`tencentcloud.teo.v20220901.models.DescribeDDoSProtectionResponse`
1660
+
1661
+ """
1662
+ try:
1663
+ params = request._serialize()
1664
+ headers = request.headers
1665
+ body = self.call("DescribeDDoSProtection", params, headers=headers)
1666
+ response = json.loads(body)
1667
+ model = models.DescribeDDoSProtectionResponse()
1668
+ model._deserialize(response["Response"])
1669
+ return model
1670
+ except Exception as e:
1671
+ if isinstance(e, TencentCloudSDKException):
1672
+ raise
1673
+ else:
1674
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1675
+
1676
+
1654
1677
  def DescribeDefaultCertificates(self, request):
1655
1678
  """查询默认证书列表
1656
1679
 
@@ -3170,6 +3193,29 @@ class TeoClient(AbstractClient):
3170
3193
  raise TencentCloudSDKException(type(e).__name__, str(e))
3171
3194
 
3172
3195
 
3196
+ def ModifyDDoSProtection(self, request):
3197
+ """修改站点的独立 DDoS 防护。
3198
+
3199
+ :param request: Request instance for ModifyDDoSProtection.
3200
+ :type request: :class:`tencentcloud.teo.v20220901.models.ModifyDDoSProtectionRequest`
3201
+ :rtype: :class:`tencentcloud.teo.v20220901.models.ModifyDDoSProtectionResponse`
3202
+
3203
+ """
3204
+ try:
3205
+ params = request._serialize()
3206
+ headers = request.headers
3207
+ body = self.call("ModifyDDoSProtection", params, headers=headers)
3208
+ response = json.loads(body)
3209
+ model = models.ModifyDDoSProtectionResponse()
3210
+ model._deserialize(response["Response"])
3211
+ return model
3212
+ except Exception as e:
3213
+ if isinstance(e, TencentCloudSDKException):
3214
+ raise
3215
+ else:
3216
+ raise TencentCloudSDKException(type(e).__name__, str(e))
3217
+
3218
+
3173
3219
  def ModifyDnsRecords(self, request):
3174
3220
  """您可以通过本接口批量修改 DNS 记录。
3175
3221
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-teo
3
- Version: 3.0.1427
3
+ Version: 3.0.1428
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1428
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1427