tencentcloud-sdk-python 3.0.1427__py2.py3-none-any.whl → 3.0.1429__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/billing/v20180709/models.py +2 -2
- tencentcloud/cdb/v20170320/cdb_client.py +23 -0
- tencentcloud/cdb/v20170320/models.py +104 -10
- tencentcloud/cdwch/v20200915/errorcodes.py +3 -0
- tencentcloud/cdwch/v20200915/models.py +2 -2
- tencentcloud/cdwpg/v20201230/models.py +4 -0
- tencentcloud/clb/v20180317/models.py +2 -2
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +12 -0
- tencentcloud/cynosdb/v20190107/models.py +186 -0
- tencentcloud/gs/v20191118/models.py +15 -0
- tencentcloud/monitor/v20180724/models.py +2 -2
- tencentcloud/mps/v20190612/models.py +19 -0
- tencentcloud/mrs/v20200910/models.py +19 -0
- tencentcloud/ocr/v20181119/models.py +59 -92
- tencentcloud/teo/v20220901/errorcodes.py +3 -0
- tencentcloud/teo/v20220901/models.py +301 -0
- tencentcloud/teo/v20220901/teo_client.py +46 -0
- tencentcloud/tione/v20211111/models.py +30 -0
- tencentcloud/tke/v20180525/models.py +65 -35
- tencentcloud/vpc/v20170312/models.py +8 -8
- tencentcloud/waf/v20180125/waf_client.py +1 -1
- {tencentcloud_sdk_python-3.0.1427.dist-info → tencentcloud_sdk_python-3.0.1429.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1427.dist-info → tencentcloud_sdk_python-3.0.1429.dist-info}/RECORD +28 -28
- {tencentcloud_sdk_python-3.0.1427.dist-info → tencentcloud_sdk_python-3.0.1429.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1427.dist-info → tencentcloud_sdk_python-3.0.1429.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1427.dist-info → tencentcloud_sdk_python-3.0.1429.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
|
@@ -10776,10 +10776,16 @@ class HorizontalPodAutoscaler(AbstractModel):
|
|
|
10776
10776
|
"concurrency-util":单个实例请求数量值。范围{1,100000}
|
|
10777
10777
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10778
10778
|
:type HpaMetrics: list of Option
|
|
10779
|
+
:param _ScaleUpStabilizationWindowSeconds: 扩容观察期,单位秒
|
|
10780
|
+
:type ScaleUpStabilizationWindowSeconds: int
|
|
10781
|
+
:param _ScaleDownStabilizationWindowSeconds: 缩容观察期,单位秒
|
|
10782
|
+
:type ScaleDownStabilizationWindowSeconds: int
|
|
10779
10783
|
"""
|
|
10780
10784
|
self._MinReplicas = None
|
|
10781
10785
|
self._MaxReplicas = None
|
|
10782
10786
|
self._HpaMetrics = None
|
|
10787
|
+
self._ScaleUpStabilizationWindowSeconds = None
|
|
10788
|
+
self._ScaleDownStabilizationWindowSeconds = None
|
|
10783
10789
|
|
|
10784
10790
|
@property
|
|
10785
10791
|
def MinReplicas(self):
|
|
@@ -10819,6 +10825,28 @@ class HorizontalPodAutoscaler(AbstractModel):
|
|
|
10819
10825
|
def HpaMetrics(self, HpaMetrics):
|
|
10820
10826
|
self._HpaMetrics = HpaMetrics
|
|
10821
10827
|
|
|
10828
|
+
@property
|
|
10829
|
+
def ScaleUpStabilizationWindowSeconds(self):
|
|
10830
|
+
"""扩容观察期,单位秒
|
|
10831
|
+
:rtype: int
|
|
10832
|
+
"""
|
|
10833
|
+
return self._ScaleUpStabilizationWindowSeconds
|
|
10834
|
+
|
|
10835
|
+
@ScaleUpStabilizationWindowSeconds.setter
|
|
10836
|
+
def ScaleUpStabilizationWindowSeconds(self, ScaleUpStabilizationWindowSeconds):
|
|
10837
|
+
self._ScaleUpStabilizationWindowSeconds = ScaleUpStabilizationWindowSeconds
|
|
10838
|
+
|
|
10839
|
+
@property
|
|
10840
|
+
def ScaleDownStabilizationWindowSeconds(self):
|
|
10841
|
+
"""缩容观察期,单位秒
|
|
10842
|
+
:rtype: int
|
|
10843
|
+
"""
|
|
10844
|
+
return self._ScaleDownStabilizationWindowSeconds
|
|
10845
|
+
|
|
10846
|
+
@ScaleDownStabilizationWindowSeconds.setter
|
|
10847
|
+
def ScaleDownStabilizationWindowSeconds(self, ScaleDownStabilizationWindowSeconds):
|
|
10848
|
+
self._ScaleDownStabilizationWindowSeconds = ScaleDownStabilizationWindowSeconds
|
|
10849
|
+
|
|
10822
10850
|
|
|
10823
10851
|
def _deserialize(self, params):
|
|
10824
10852
|
self._MinReplicas = params.get("MinReplicas")
|
|
@@ -10829,6 +10857,8 @@ class HorizontalPodAutoscaler(AbstractModel):
|
|
|
10829
10857
|
obj = Option()
|
|
10830
10858
|
obj._deserialize(item)
|
|
10831
10859
|
self._HpaMetrics.append(obj)
|
|
10860
|
+
self._ScaleUpStabilizationWindowSeconds = params.get("ScaleUpStabilizationWindowSeconds")
|
|
10861
|
+
self._ScaleDownStabilizationWindowSeconds = params.get("ScaleDownStabilizationWindowSeconds")
|
|
10832
10862
|
memeber_set = set(params.keys())
|
|
10833
10863
|
for name, value in vars(self).items():
|
|
10834
10864
|
property_name = name[1:]
|
|
@@ -45248,10 +45248,10 @@ class Switch(AbstractModel):
|
|
|
45248
45248
|
|
|
45249
45249
|
def __init__(self):
|
|
45250
45250
|
r"""
|
|
45251
|
-
:param _ClusterId: 集群ID
|
|
45252
|
-
:type ClusterId: str
|
|
45253
45251
|
:param _Audit: 审计开关的详细信息
|
|
45254
45252
|
:type Audit: :class:`tencentcloud.tke.v20180525.models.SwitchInfo`
|
|
45253
|
+
:param _ClusterId: 集群ID
|
|
45254
|
+
:type ClusterId: str
|
|
45255
45255
|
:param _Event: 事件开关的详细信息
|
|
45256
45256
|
:type Event: :class:`tencentcloud.tke.v20180525.models.SwitchInfo`
|
|
45257
45257
|
:param _Log: 普通日志的详细信息
|
|
@@ -45259,23 +45259,12 @@ class Switch(AbstractModel):
|
|
|
45259
45259
|
:param _MasterLog: master 日志详细信息
|
|
45260
45260
|
:type MasterLog: :class:`tencentcloud.tke.v20180525.models.SwitchInfo`
|
|
45261
45261
|
"""
|
|
45262
|
-
self._ClusterId = None
|
|
45263
45262
|
self._Audit = None
|
|
45263
|
+
self._ClusterId = None
|
|
45264
45264
|
self._Event = None
|
|
45265
45265
|
self._Log = None
|
|
45266
45266
|
self._MasterLog = None
|
|
45267
45267
|
|
|
45268
|
-
@property
|
|
45269
|
-
def ClusterId(self):
|
|
45270
|
-
"""集群ID
|
|
45271
|
-
:rtype: str
|
|
45272
|
-
"""
|
|
45273
|
-
return self._ClusterId
|
|
45274
|
-
|
|
45275
|
-
@ClusterId.setter
|
|
45276
|
-
def ClusterId(self, ClusterId):
|
|
45277
|
-
self._ClusterId = ClusterId
|
|
45278
|
-
|
|
45279
45268
|
@property
|
|
45280
45269
|
def Audit(self):
|
|
45281
45270
|
"""审计开关的详细信息
|
|
@@ -45287,6 +45276,17 @@ class Switch(AbstractModel):
|
|
|
45287
45276
|
def Audit(self, Audit):
|
|
45288
45277
|
self._Audit = Audit
|
|
45289
45278
|
|
|
45279
|
+
@property
|
|
45280
|
+
def ClusterId(self):
|
|
45281
|
+
"""集群ID
|
|
45282
|
+
:rtype: str
|
|
45283
|
+
"""
|
|
45284
|
+
return self._ClusterId
|
|
45285
|
+
|
|
45286
|
+
@ClusterId.setter
|
|
45287
|
+
def ClusterId(self, ClusterId):
|
|
45288
|
+
self._ClusterId = ClusterId
|
|
45289
|
+
|
|
45290
45290
|
@property
|
|
45291
45291
|
def Event(self):
|
|
45292
45292
|
"""事件开关的详细信息
|
|
@@ -45322,10 +45322,10 @@ class Switch(AbstractModel):
|
|
|
45322
45322
|
|
|
45323
45323
|
|
|
45324
45324
|
def _deserialize(self, params):
|
|
45325
|
-
self._ClusterId = params.get("ClusterId")
|
|
45326
45325
|
if params.get("Audit") is not None:
|
|
45327
45326
|
self._Audit = SwitchInfo()
|
|
45328
45327
|
self._Audit._deserialize(params.get("Audit"))
|
|
45328
|
+
self._ClusterId = params.get("ClusterId")
|
|
45329
45329
|
if params.get("Event") is not None:
|
|
45330
45330
|
self._Event = SwitchInfo()
|
|
45331
45331
|
self._Event._deserialize(params.get("Event"))
|
|
@@ -45354,23 +45354,29 @@ class SwitchInfo(AbstractModel):
|
|
|
45354
45354
|
r"""
|
|
45355
45355
|
:param _Enable: 开启标识符 true代表开启
|
|
45356
45356
|
:type Enable: bool
|
|
45357
|
+
:param _ErrorMsg: 获取日志状态失败时,返回错误信息
|
|
45358
|
+
:type ErrorMsg: str
|
|
45357
45359
|
:param _LogsetId: CLS日志集ID
|
|
45358
45360
|
:type LogsetId: str
|
|
45361
|
+
:param _Status: 日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中
|
|
45362
|
+
:type Status: str
|
|
45359
45363
|
:param _TopicId: CLS日志主题ID
|
|
45360
45364
|
:type TopicId: str
|
|
45361
|
-
:param _Version: 当前log-agent版本
|
|
45362
|
-
:type Version: str
|
|
45363
|
-
:param _UpgradeAble: 是否可升级
|
|
45364
|
-
:type UpgradeAble: bool
|
|
45365
45365
|
:param _TopicRegion: CLS日志主题所属region
|
|
45366
45366
|
:type TopicRegion: str
|
|
45367
|
+
:param _UpgradeAble: 是否可升级
|
|
45368
|
+
:type UpgradeAble: bool
|
|
45369
|
+
:param _Version: 当前log-agent版本
|
|
45370
|
+
:type Version: str
|
|
45367
45371
|
"""
|
|
45368
45372
|
self._Enable = None
|
|
45373
|
+
self._ErrorMsg = None
|
|
45369
45374
|
self._LogsetId = None
|
|
45375
|
+
self._Status = None
|
|
45370
45376
|
self._TopicId = None
|
|
45371
|
-
self._Version = None
|
|
45372
|
-
self._UpgradeAble = None
|
|
45373
45377
|
self._TopicRegion = None
|
|
45378
|
+
self._UpgradeAble = None
|
|
45379
|
+
self._Version = None
|
|
45374
45380
|
|
|
45375
45381
|
@property
|
|
45376
45382
|
def Enable(self):
|
|
@@ -45383,6 +45389,17 @@ class SwitchInfo(AbstractModel):
|
|
|
45383
45389
|
def Enable(self, Enable):
|
|
45384
45390
|
self._Enable = Enable
|
|
45385
45391
|
|
|
45392
|
+
@property
|
|
45393
|
+
def ErrorMsg(self):
|
|
45394
|
+
"""获取日志状态失败时,返回错误信息
|
|
45395
|
+
:rtype: str
|
|
45396
|
+
"""
|
|
45397
|
+
return self._ErrorMsg
|
|
45398
|
+
|
|
45399
|
+
@ErrorMsg.setter
|
|
45400
|
+
def ErrorMsg(self, ErrorMsg):
|
|
45401
|
+
self._ErrorMsg = ErrorMsg
|
|
45402
|
+
|
|
45386
45403
|
@property
|
|
45387
45404
|
def LogsetId(self):
|
|
45388
45405
|
"""CLS日志集ID
|
|
@@ -45394,6 +45411,17 @@ class SwitchInfo(AbstractModel):
|
|
|
45394
45411
|
def LogsetId(self, LogsetId):
|
|
45395
45412
|
self._LogsetId = LogsetId
|
|
45396
45413
|
|
|
45414
|
+
@property
|
|
45415
|
+
def Status(self):
|
|
45416
|
+
"""日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中
|
|
45417
|
+
:rtype: str
|
|
45418
|
+
"""
|
|
45419
|
+
return self._Status
|
|
45420
|
+
|
|
45421
|
+
@Status.setter
|
|
45422
|
+
def Status(self, Status):
|
|
45423
|
+
self._Status = Status
|
|
45424
|
+
|
|
45397
45425
|
@property
|
|
45398
45426
|
def TopicId(self):
|
|
45399
45427
|
"""CLS日志主题ID
|
|
@@ -45406,15 +45434,15 @@ class SwitchInfo(AbstractModel):
|
|
|
45406
45434
|
self._TopicId = TopicId
|
|
45407
45435
|
|
|
45408
45436
|
@property
|
|
45409
|
-
def
|
|
45410
|
-
"""
|
|
45437
|
+
def TopicRegion(self):
|
|
45438
|
+
"""CLS日志主题所属region
|
|
45411
45439
|
:rtype: str
|
|
45412
45440
|
"""
|
|
45413
|
-
return self.
|
|
45441
|
+
return self._TopicRegion
|
|
45414
45442
|
|
|
45415
|
-
@
|
|
45416
|
-
def
|
|
45417
|
-
self.
|
|
45443
|
+
@TopicRegion.setter
|
|
45444
|
+
def TopicRegion(self, TopicRegion):
|
|
45445
|
+
self._TopicRegion = TopicRegion
|
|
45418
45446
|
|
|
45419
45447
|
@property
|
|
45420
45448
|
def UpgradeAble(self):
|
|
@@ -45428,24 +45456,26 @@ class SwitchInfo(AbstractModel):
|
|
|
45428
45456
|
self._UpgradeAble = UpgradeAble
|
|
45429
45457
|
|
|
45430
45458
|
@property
|
|
45431
|
-
def
|
|
45432
|
-
"""
|
|
45459
|
+
def Version(self):
|
|
45460
|
+
"""当前log-agent版本
|
|
45433
45461
|
:rtype: str
|
|
45434
45462
|
"""
|
|
45435
|
-
return self.
|
|
45463
|
+
return self._Version
|
|
45436
45464
|
|
|
45437
|
-
@
|
|
45438
|
-
def
|
|
45439
|
-
self.
|
|
45465
|
+
@Version.setter
|
|
45466
|
+
def Version(self, Version):
|
|
45467
|
+
self._Version = Version
|
|
45440
45468
|
|
|
45441
45469
|
|
|
45442
45470
|
def _deserialize(self, params):
|
|
45443
45471
|
self._Enable = params.get("Enable")
|
|
45472
|
+
self._ErrorMsg = params.get("ErrorMsg")
|
|
45444
45473
|
self._LogsetId = params.get("LogsetId")
|
|
45474
|
+
self._Status = params.get("Status")
|
|
45445
45475
|
self._TopicId = params.get("TopicId")
|
|
45446
|
-
self._Version = params.get("Version")
|
|
45447
|
-
self._UpgradeAble = params.get("UpgradeAble")
|
|
45448
45476
|
self._TopicRegion = params.get("TopicRegion")
|
|
45477
|
+
self._UpgradeAble = params.get("UpgradeAble")
|
|
45478
|
+
self._Version = params.get("Version")
|
|
45449
45479
|
memeber_set = set(params.keys())
|
|
45450
45480
|
for name, value in vars(self).items():
|
|
45451
45481
|
property_name = name[1:]
|