tencentcloud-sdk-python-teo 3.0.1161__tar.gz → 3.0.1186__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.
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/setup.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/teo/v20220901/errorcodes.py +21 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/teo/v20220901/models.py +737 -60
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/teo/v20220901/teo_client.py +92 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-teo-3.0.1186/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-teo-3.0.1161/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/README.rst +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/setup.cfg +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/teo/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/teo/v20220106/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/teo/v20220106/models.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/teo/v20220106/teo_client.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud/teo/v20220901/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1161 → tencentcloud-sdk-python-teo-3.0.1186}/tencentcloud_sdk_python_teo.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1186"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Teo SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -674,6 +674,15 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
|
674
674
|
# 该站点域名已被禁用。
|
|
675
675
|
INVALIDPARAMETERVALUE_ACCESSBLACKLIST = 'InvalidParameterValue.AccessBlacklist'
|
|
676
676
|
|
|
677
|
+
# 边缘双向认证配置中的客户端证书必须是CA证书。
|
|
678
|
+
INVALIDPARAMETERVALUE_CERTIFICATEVERIFYCLIENTMUSTCA = 'InvalidParameterValue.CertificateVerifyClientMustCa'
|
|
679
|
+
|
|
680
|
+
# 边缘双向认证配置至少需要配置一本证书。
|
|
681
|
+
INVALIDPARAMETERVALUE_CERTIFICATEVERIFYCLIENTNEEDCERT = 'InvalidParameterValue.CertificateVerifyClientNeedCert'
|
|
682
|
+
|
|
683
|
+
# 边缘双向认证配置中的客户端 CA 证书最多允许配置20本。
|
|
684
|
+
INVALIDPARAMETERVALUE_CLIENTCERTINFOQUOTALIMIT = 'InvalidParameterValue.ClientCertInfoQuotaLimit'
|
|
685
|
+
|
|
677
686
|
# 与已经添加的记录冲突。
|
|
678
687
|
INVALIDPARAMETERVALUE_CONFLICTRECORD = 'InvalidParameterValue.ConflictRecord'
|
|
679
688
|
|
|
@@ -686,6 +695,9 @@ INVALIDPARAMETERVALUE_CONFLICTWITHNSRECORD = 'InvalidParameterValue.ConflictWith
|
|
|
686
695
|
# 主机记录与记录值不能取值相同。
|
|
687
696
|
INVALIDPARAMETERVALUE_CONTENTSAMEASNAME = 'InvalidParameterValue.ContentSameAsName'
|
|
688
697
|
|
|
698
|
+
# 页面内容与Content-Type不匹配。
|
|
699
|
+
INVALIDPARAMETERVALUE_CONTENTTYPENOTMATCH = 'InvalidParameterValue.ContentTypeNotMatch'
|
|
700
|
+
|
|
689
701
|
# 入参中的域名与站点参数不匹配,请更正后重试。
|
|
690
702
|
INVALIDPARAMETERVALUE_DOMAINNOTMATCHZONE = 'InvalidParameterValue.DomainNotMatchZone'
|
|
691
703
|
|
|
@@ -737,9 +749,18 @@ INVALIDPARAMETERVALUE_NOTWITHINRANGE = 'InvalidParameterValue.NotWithinRange'
|
|
|
737
749
|
# 指定的源站组不存在。
|
|
738
750
|
INVALIDPARAMETERVALUE_ORIGINGROUPNOTEXISTS = 'InvalidParameterValue.OriginGroupNotExists'
|
|
739
751
|
|
|
752
|
+
# 页面名称已存在。
|
|
753
|
+
INVALIDPARAMETERVALUE_PAGENAMEALREADYEXIST = 'InvalidParameterValue.PageNameAlreadyExist'
|
|
754
|
+
|
|
740
755
|
# 不符合指定的正则表达式。
|
|
741
756
|
INVALIDPARAMETERVALUE_REGEXMISMATCH = 'InvalidParameterValue.RegExMismatch'
|
|
742
757
|
|
|
758
|
+
# 已开启双向认证,客户端使用 RSA 或者 ECC 算法证书时,HTTPS 证书必须也配置有相同算法证书。
|
|
759
|
+
INVALIDPARAMETERVALUE_SERVERCERTINFONEEDCONTAINRSAORECC = 'InvalidParameterValue.ServerCertInfoNeedContainRSAorECC'
|
|
760
|
+
|
|
761
|
+
# 已开启双向认证,客户端使用国密算法 CA 证书时,HTTPS 证书必须也配置有国密证书。
|
|
762
|
+
INVALIDPARAMETERVALUE_SERVERCERTINFONEEDCONTAINSM2 = 'InvalidParameterValue.ServerCertInfoNeedContainSM2'
|
|
763
|
+
|
|
743
764
|
# 请输入合法的共享 CNAME 前缀,最大支持50个字符。
|
|
744
765
|
INVALIDPARAMETERVALUE_SHAREDCNAMEPREFIXNOTMATCH = 'InvalidParameterValue.SharedCNAMEPrefixNotMatch'
|
|
745
766
|
|
|
@@ -311,12 +311,15 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
|
311
311
|
r"""
|
|
312
312
|
:param _Mode: 配置证书的模式,取值有: <li>disable:不配置证书;</li> <li>eofreecert:配置 EdgeOne 免费证书;</li> <li>sslcert:配置 SSL 证书。</li>
|
|
313
313
|
:type Mode: str
|
|
314
|
-
:param _List:
|
|
314
|
+
:param _List: 服务端证书列表。
|
|
315
315
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
316
316
|
:type List: list of CertificateInfo
|
|
317
|
+
:param _ClientCertInfo: 边缘双向认证配置。
|
|
318
|
+
:type ClientCertInfo: :class:`tencentcloud.teo.v20220901.models.MutualTLS`
|
|
317
319
|
"""
|
|
318
320
|
self._Mode = None
|
|
319
321
|
self._List = None
|
|
322
|
+
self._ClientCertInfo = None
|
|
320
323
|
|
|
321
324
|
@property
|
|
322
325
|
def Mode(self):
|
|
@@ -334,6 +337,14 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
|
334
337
|
def List(self, List):
|
|
335
338
|
self._List = List
|
|
336
339
|
|
|
340
|
+
@property
|
|
341
|
+
def ClientCertInfo(self):
|
|
342
|
+
return self._ClientCertInfo
|
|
343
|
+
|
|
344
|
+
@ClientCertInfo.setter
|
|
345
|
+
def ClientCertInfo(self, ClientCertInfo):
|
|
346
|
+
self._ClientCertInfo = ClientCertInfo
|
|
347
|
+
|
|
337
348
|
|
|
338
349
|
def _deserialize(self, params):
|
|
339
350
|
self._Mode = params.get("Mode")
|
|
@@ -343,6 +354,9 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
|
343
354
|
obj = CertificateInfo()
|
|
344
355
|
obj._deserialize(item)
|
|
345
356
|
self._List.append(obj)
|
|
357
|
+
if params.get("ClientCertInfo") is not None:
|
|
358
|
+
self._ClientCertInfo = MutualTLS()
|
|
359
|
+
self._ClientCertInfo._deserialize(params.get("ClientCertInfo"))
|
|
346
360
|
memeber_set = set(params.keys())
|
|
347
361
|
for name, value in vars(self).items():
|
|
348
362
|
property_name = name[1:]
|
|
@@ -3345,13 +3359,13 @@ class CacheTag(AbstractModel):
|
|
|
3345
3359
|
|
|
3346
3360
|
|
|
3347
3361
|
class CertificateInfo(AbstractModel):
|
|
3348
|
-
"""https
|
|
3362
|
+
"""https 证书配置。
|
|
3349
3363
|
|
|
3350
3364
|
"""
|
|
3351
3365
|
|
|
3352
3366
|
def __init__(self):
|
|
3353
3367
|
r"""
|
|
3354
|
-
:param _CertId:
|
|
3368
|
+
:param _CertId: 证书 ID。
|
|
3355
3369
|
:type CertId: str
|
|
3356
3370
|
:param _Alias: 证书备注名。
|
|
3357
3371
|
:type Alias: str
|
|
@@ -4756,6 +4770,124 @@ class CreateConfigGroupVersionResponse(AbstractModel):
|
|
|
4756
4770
|
self._RequestId = params.get("RequestId")
|
|
4757
4771
|
|
|
4758
4772
|
|
|
4773
|
+
class CreateCustomizeErrorPageRequest(AbstractModel):
|
|
4774
|
+
"""CreateCustomizeErrorPage请求参数结构体
|
|
4775
|
+
|
|
4776
|
+
"""
|
|
4777
|
+
|
|
4778
|
+
def __init__(self):
|
|
4779
|
+
r"""
|
|
4780
|
+
:param _ZoneId: 站点 ID。
|
|
4781
|
+
:type ZoneId: str
|
|
4782
|
+
:param _Name: 自定义错误页名称,名称为 2-30 个字符。
|
|
4783
|
+
:type Name: str
|
|
4784
|
+
:param _ContentType: 自定义错误页面类型,取值有:<li>text/html; </li><li>application/json;</li><li>text/plain;</li><li>text/xml。</li>
|
|
4785
|
+
:type ContentType: str
|
|
4786
|
+
:param _Description: 自定义错误页面描述,描述不超过 60 个字符。
|
|
4787
|
+
:type Description: str
|
|
4788
|
+
:param _Content: 自定义错误页面内容,内容不超过 2KB。
|
|
4789
|
+
:type Content: str
|
|
4790
|
+
"""
|
|
4791
|
+
self._ZoneId = None
|
|
4792
|
+
self._Name = None
|
|
4793
|
+
self._ContentType = None
|
|
4794
|
+
self._Description = None
|
|
4795
|
+
self._Content = None
|
|
4796
|
+
|
|
4797
|
+
@property
|
|
4798
|
+
def ZoneId(self):
|
|
4799
|
+
return self._ZoneId
|
|
4800
|
+
|
|
4801
|
+
@ZoneId.setter
|
|
4802
|
+
def ZoneId(self, ZoneId):
|
|
4803
|
+
self._ZoneId = ZoneId
|
|
4804
|
+
|
|
4805
|
+
@property
|
|
4806
|
+
def Name(self):
|
|
4807
|
+
return self._Name
|
|
4808
|
+
|
|
4809
|
+
@Name.setter
|
|
4810
|
+
def Name(self, Name):
|
|
4811
|
+
self._Name = Name
|
|
4812
|
+
|
|
4813
|
+
@property
|
|
4814
|
+
def ContentType(self):
|
|
4815
|
+
return self._ContentType
|
|
4816
|
+
|
|
4817
|
+
@ContentType.setter
|
|
4818
|
+
def ContentType(self, ContentType):
|
|
4819
|
+
self._ContentType = ContentType
|
|
4820
|
+
|
|
4821
|
+
@property
|
|
4822
|
+
def Description(self):
|
|
4823
|
+
return self._Description
|
|
4824
|
+
|
|
4825
|
+
@Description.setter
|
|
4826
|
+
def Description(self, Description):
|
|
4827
|
+
self._Description = Description
|
|
4828
|
+
|
|
4829
|
+
@property
|
|
4830
|
+
def Content(self):
|
|
4831
|
+
return self._Content
|
|
4832
|
+
|
|
4833
|
+
@Content.setter
|
|
4834
|
+
def Content(self, Content):
|
|
4835
|
+
self._Content = Content
|
|
4836
|
+
|
|
4837
|
+
|
|
4838
|
+
def _deserialize(self, params):
|
|
4839
|
+
self._ZoneId = params.get("ZoneId")
|
|
4840
|
+
self._Name = params.get("Name")
|
|
4841
|
+
self._ContentType = params.get("ContentType")
|
|
4842
|
+
self._Description = params.get("Description")
|
|
4843
|
+
self._Content = params.get("Content")
|
|
4844
|
+
memeber_set = set(params.keys())
|
|
4845
|
+
for name, value in vars(self).items():
|
|
4846
|
+
property_name = name[1:]
|
|
4847
|
+
if property_name in memeber_set:
|
|
4848
|
+
memeber_set.remove(property_name)
|
|
4849
|
+
if len(memeber_set) > 0:
|
|
4850
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4851
|
+
|
|
4852
|
+
|
|
4853
|
+
|
|
4854
|
+
class CreateCustomizeErrorPageResponse(AbstractModel):
|
|
4855
|
+
"""CreateCustomizeErrorPage返回参数结构体
|
|
4856
|
+
|
|
4857
|
+
"""
|
|
4858
|
+
|
|
4859
|
+
def __init__(self):
|
|
4860
|
+
r"""
|
|
4861
|
+
:param _PageId: 页面 ID。
|
|
4862
|
+
:type PageId: str
|
|
4863
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4864
|
+
:type RequestId: str
|
|
4865
|
+
"""
|
|
4866
|
+
self._PageId = None
|
|
4867
|
+
self._RequestId = None
|
|
4868
|
+
|
|
4869
|
+
@property
|
|
4870
|
+
def PageId(self):
|
|
4871
|
+
return self._PageId
|
|
4872
|
+
|
|
4873
|
+
@PageId.setter
|
|
4874
|
+
def PageId(self, PageId):
|
|
4875
|
+
self._PageId = PageId
|
|
4876
|
+
|
|
4877
|
+
@property
|
|
4878
|
+
def RequestId(self):
|
|
4879
|
+
return self._RequestId
|
|
4880
|
+
|
|
4881
|
+
@RequestId.setter
|
|
4882
|
+
def RequestId(self, RequestId):
|
|
4883
|
+
self._RequestId = RequestId
|
|
4884
|
+
|
|
4885
|
+
|
|
4886
|
+
def _deserialize(self, params):
|
|
4887
|
+
self._PageId = params.get("PageId")
|
|
4888
|
+
self._RequestId = params.get("RequestId")
|
|
4889
|
+
|
|
4890
|
+
|
|
4759
4891
|
class CreateL4ProxyRequest(AbstractModel):
|
|
4760
4892
|
"""CreateL4Proxy请求参数结构体
|
|
4761
4893
|
|
|
@@ -6510,6 +6642,116 @@ class CustomEndpoint(AbstractModel):
|
|
|
6510
6642
|
|
|
6511
6643
|
|
|
6512
6644
|
|
|
6645
|
+
class CustomErrorPage(AbstractModel):
|
|
6646
|
+
"""自定义错误码页面结构体。
|
|
6647
|
+
|
|
6648
|
+
"""
|
|
6649
|
+
|
|
6650
|
+
def __init__(self):
|
|
6651
|
+
r"""
|
|
6652
|
+
:param _PageId: 自定义错误页面 ID。
|
|
6653
|
+
:type PageId: str
|
|
6654
|
+
:param _ZoneId: 站点 ID。
|
|
6655
|
+
:type ZoneId: str
|
|
6656
|
+
:param _Name: 自定义错误页面名称。
|
|
6657
|
+
:type Name: str
|
|
6658
|
+
:param _ContentType: 自定义错误页面类型。
|
|
6659
|
+
:type ContentType: str
|
|
6660
|
+
:param _Description: 自定义错误页面描述。
|
|
6661
|
+
:type Description: str
|
|
6662
|
+
:param _Content: 自定义错误页面内容。
|
|
6663
|
+
:type Content: str
|
|
6664
|
+
:param _References: 自定义错误页面引用。
|
|
6665
|
+
:type References: list of ErrorPageReference
|
|
6666
|
+
"""
|
|
6667
|
+
self._PageId = None
|
|
6668
|
+
self._ZoneId = None
|
|
6669
|
+
self._Name = None
|
|
6670
|
+
self._ContentType = None
|
|
6671
|
+
self._Description = None
|
|
6672
|
+
self._Content = None
|
|
6673
|
+
self._References = None
|
|
6674
|
+
|
|
6675
|
+
@property
|
|
6676
|
+
def PageId(self):
|
|
6677
|
+
return self._PageId
|
|
6678
|
+
|
|
6679
|
+
@PageId.setter
|
|
6680
|
+
def PageId(self, PageId):
|
|
6681
|
+
self._PageId = PageId
|
|
6682
|
+
|
|
6683
|
+
@property
|
|
6684
|
+
def ZoneId(self):
|
|
6685
|
+
return self._ZoneId
|
|
6686
|
+
|
|
6687
|
+
@ZoneId.setter
|
|
6688
|
+
def ZoneId(self, ZoneId):
|
|
6689
|
+
self._ZoneId = ZoneId
|
|
6690
|
+
|
|
6691
|
+
@property
|
|
6692
|
+
def Name(self):
|
|
6693
|
+
return self._Name
|
|
6694
|
+
|
|
6695
|
+
@Name.setter
|
|
6696
|
+
def Name(self, Name):
|
|
6697
|
+
self._Name = Name
|
|
6698
|
+
|
|
6699
|
+
@property
|
|
6700
|
+
def ContentType(self):
|
|
6701
|
+
return self._ContentType
|
|
6702
|
+
|
|
6703
|
+
@ContentType.setter
|
|
6704
|
+
def ContentType(self, ContentType):
|
|
6705
|
+
self._ContentType = ContentType
|
|
6706
|
+
|
|
6707
|
+
@property
|
|
6708
|
+
def Description(self):
|
|
6709
|
+
return self._Description
|
|
6710
|
+
|
|
6711
|
+
@Description.setter
|
|
6712
|
+
def Description(self, Description):
|
|
6713
|
+
self._Description = Description
|
|
6714
|
+
|
|
6715
|
+
@property
|
|
6716
|
+
def Content(self):
|
|
6717
|
+
return self._Content
|
|
6718
|
+
|
|
6719
|
+
@Content.setter
|
|
6720
|
+
def Content(self, Content):
|
|
6721
|
+
self._Content = Content
|
|
6722
|
+
|
|
6723
|
+
@property
|
|
6724
|
+
def References(self):
|
|
6725
|
+
return self._References
|
|
6726
|
+
|
|
6727
|
+
@References.setter
|
|
6728
|
+
def References(self, References):
|
|
6729
|
+
self._References = References
|
|
6730
|
+
|
|
6731
|
+
|
|
6732
|
+
def _deserialize(self, params):
|
|
6733
|
+
self._PageId = params.get("PageId")
|
|
6734
|
+
self._ZoneId = params.get("ZoneId")
|
|
6735
|
+
self._Name = params.get("Name")
|
|
6736
|
+
self._ContentType = params.get("ContentType")
|
|
6737
|
+
self._Description = params.get("Description")
|
|
6738
|
+
self._Content = params.get("Content")
|
|
6739
|
+
if params.get("References") is not None:
|
|
6740
|
+
self._References = []
|
|
6741
|
+
for item in params.get("References"):
|
|
6742
|
+
obj = ErrorPageReference()
|
|
6743
|
+
obj._deserialize(item)
|
|
6744
|
+
self._References.append(obj)
|
|
6745
|
+
memeber_set = set(params.keys())
|
|
6746
|
+
for name, value in vars(self).items():
|
|
6747
|
+
property_name = name[1:]
|
|
6748
|
+
if property_name in memeber_set:
|
|
6749
|
+
memeber_set.remove(property_name)
|
|
6750
|
+
if len(memeber_set) > 0:
|
|
6751
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6752
|
+
|
|
6753
|
+
|
|
6754
|
+
|
|
6513
6755
|
class CustomField(AbstractModel):
|
|
6514
6756
|
"""实时日志投递任务中的自定义日志字段。
|
|
6515
6757
|
|
|
@@ -7359,6 +7601,76 @@ class DeleteApplicationProxyRuleResponse(AbstractModel):
|
|
|
7359
7601
|
self._RequestId = params.get("RequestId")
|
|
7360
7602
|
|
|
7361
7603
|
|
|
7604
|
+
class DeleteCustomErrorPageRequest(AbstractModel):
|
|
7605
|
+
"""DeleteCustomErrorPage请求参数结构体
|
|
7606
|
+
|
|
7607
|
+
"""
|
|
7608
|
+
|
|
7609
|
+
def __init__(self):
|
|
7610
|
+
r"""
|
|
7611
|
+
:param _ZoneId: 站点 ID。
|
|
7612
|
+
:type ZoneId: str
|
|
7613
|
+
:param _PageId: 自定义页面 ID。
|
|
7614
|
+
:type PageId: str
|
|
7615
|
+
"""
|
|
7616
|
+
self._ZoneId = None
|
|
7617
|
+
self._PageId = None
|
|
7618
|
+
|
|
7619
|
+
@property
|
|
7620
|
+
def ZoneId(self):
|
|
7621
|
+
return self._ZoneId
|
|
7622
|
+
|
|
7623
|
+
@ZoneId.setter
|
|
7624
|
+
def ZoneId(self, ZoneId):
|
|
7625
|
+
self._ZoneId = ZoneId
|
|
7626
|
+
|
|
7627
|
+
@property
|
|
7628
|
+
def PageId(self):
|
|
7629
|
+
return self._PageId
|
|
7630
|
+
|
|
7631
|
+
@PageId.setter
|
|
7632
|
+
def PageId(self, PageId):
|
|
7633
|
+
self._PageId = PageId
|
|
7634
|
+
|
|
7635
|
+
|
|
7636
|
+
def _deserialize(self, params):
|
|
7637
|
+
self._ZoneId = params.get("ZoneId")
|
|
7638
|
+
self._PageId = params.get("PageId")
|
|
7639
|
+
memeber_set = set(params.keys())
|
|
7640
|
+
for name, value in vars(self).items():
|
|
7641
|
+
property_name = name[1:]
|
|
7642
|
+
if property_name in memeber_set:
|
|
7643
|
+
memeber_set.remove(property_name)
|
|
7644
|
+
if len(memeber_set) > 0:
|
|
7645
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7646
|
+
|
|
7647
|
+
|
|
7648
|
+
|
|
7649
|
+
class DeleteCustomErrorPageResponse(AbstractModel):
|
|
7650
|
+
"""DeleteCustomErrorPage返回参数结构体
|
|
7651
|
+
|
|
7652
|
+
"""
|
|
7653
|
+
|
|
7654
|
+
def __init__(self):
|
|
7655
|
+
r"""
|
|
7656
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7657
|
+
:type RequestId: str
|
|
7658
|
+
"""
|
|
7659
|
+
self._RequestId = None
|
|
7660
|
+
|
|
7661
|
+
@property
|
|
7662
|
+
def RequestId(self):
|
|
7663
|
+
return self._RequestId
|
|
7664
|
+
|
|
7665
|
+
@RequestId.setter
|
|
7666
|
+
def RequestId(self, RequestId):
|
|
7667
|
+
self._RequestId = RequestId
|
|
7668
|
+
|
|
7669
|
+
|
|
7670
|
+
def _deserialize(self, params):
|
|
7671
|
+
self._RequestId = params.get("RequestId")
|
|
7672
|
+
|
|
7673
|
+
|
|
7362
7674
|
class DeleteL4ProxyRequest(AbstractModel):
|
|
7363
7675
|
"""DeleteL4Proxy请求参数结构体
|
|
7364
7676
|
|
|
@@ -9056,12 +9368,106 @@ class DescribeConfigGroupVersionsResponse(AbstractModel):
|
|
|
9056
9368
|
for item in params.get("ConfigGroupVersionInfos"):
|
|
9057
9369
|
obj = ConfigGroupVersionInfo()
|
|
9058
9370
|
obj._deserialize(item)
|
|
9059
|
-
self._ConfigGroupVersionInfos.append(obj)
|
|
9371
|
+
self._ConfigGroupVersionInfos.append(obj)
|
|
9372
|
+
self._RequestId = params.get("RequestId")
|
|
9373
|
+
|
|
9374
|
+
|
|
9375
|
+
class DescribeContentQuotaRequest(AbstractModel):
|
|
9376
|
+
"""DescribeContentQuota请求参数结构体
|
|
9377
|
+
|
|
9378
|
+
"""
|
|
9379
|
+
|
|
9380
|
+
def __init__(self):
|
|
9381
|
+
r"""
|
|
9382
|
+
:param _ZoneId: 站点 ID。
|
|
9383
|
+
:type ZoneId: str
|
|
9384
|
+
"""
|
|
9385
|
+
self._ZoneId = None
|
|
9386
|
+
|
|
9387
|
+
@property
|
|
9388
|
+
def ZoneId(self):
|
|
9389
|
+
return self._ZoneId
|
|
9390
|
+
|
|
9391
|
+
@ZoneId.setter
|
|
9392
|
+
def ZoneId(self, ZoneId):
|
|
9393
|
+
self._ZoneId = ZoneId
|
|
9394
|
+
|
|
9395
|
+
|
|
9396
|
+
def _deserialize(self, params):
|
|
9397
|
+
self._ZoneId = params.get("ZoneId")
|
|
9398
|
+
memeber_set = set(params.keys())
|
|
9399
|
+
for name, value in vars(self).items():
|
|
9400
|
+
property_name = name[1:]
|
|
9401
|
+
if property_name in memeber_set:
|
|
9402
|
+
memeber_set.remove(property_name)
|
|
9403
|
+
if len(memeber_set) > 0:
|
|
9404
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9405
|
+
|
|
9406
|
+
|
|
9407
|
+
|
|
9408
|
+
class DescribeContentQuotaResponse(AbstractModel):
|
|
9409
|
+
"""DescribeContentQuota返回参数结构体
|
|
9410
|
+
|
|
9411
|
+
"""
|
|
9412
|
+
|
|
9413
|
+
def __init__(self):
|
|
9414
|
+
r"""
|
|
9415
|
+
:param _PurgeQuota: 刷新相关配额。
|
|
9416
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
9417
|
+
:type PurgeQuota: list of Quota
|
|
9418
|
+
:param _PrefetchQuota: 预热相关配额。
|
|
9419
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
9420
|
+
:type PrefetchQuota: list of Quota
|
|
9421
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9422
|
+
:type RequestId: str
|
|
9423
|
+
"""
|
|
9424
|
+
self._PurgeQuota = None
|
|
9425
|
+
self._PrefetchQuota = None
|
|
9426
|
+
self._RequestId = None
|
|
9427
|
+
|
|
9428
|
+
@property
|
|
9429
|
+
def PurgeQuota(self):
|
|
9430
|
+
return self._PurgeQuota
|
|
9431
|
+
|
|
9432
|
+
@PurgeQuota.setter
|
|
9433
|
+
def PurgeQuota(self, PurgeQuota):
|
|
9434
|
+
self._PurgeQuota = PurgeQuota
|
|
9435
|
+
|
|
9436
|
+
@property
|
|
9437
|
+
def PrefetchQuota(self):
|
|
9438
|
+
return self._PrefetchQuota
|
|
9439
|
+
|
|
9440
|
+
@PrefetchQuota.setter
|
|
9441
|
+
def PrefetchQuota(self, PrefetchQuota):
|
|
9442
|
+
self._PrefetchQuota = PrefetchQuota
|
|
9443
|
+
|
|
9444
|
+
@property
|
|
9445
|
+
def RequestId(self):
|
|
9446
|
+
return self._RequestId
|
|
9447
|
+
|
|
9448
|
+
@RequestId.setter
|
|
9449
|
+
def RequestId(self, RequestId):
|
|
9450
|
+
self._RequestId = RequestId
|
|
9451
|
+
|
|
9452
|
+
|
|
9453
|
+
def _deserialize(self, params):
|
|
9454
|
+
if params.get("PurgeQuota") is not None:
|
|
9455
|
+
self._PurgeQuota = []
|
|
9456
|
+
for item in params.get("PurgeQuota"):
|
|
9457
|
+
obj = Quota()
|
|
9458
|
+
obj._deserialize(item)
|
|
9459
|
+
self._PurgeQuota.append(obj)
|
|
9460
|
+
if params.get("PrefetchQuota") is not None:
|
|
9461
|
+
self._PrefetchQuota = []
|
|
9462
|
+
for item in params.get("PrefetchQuota"):
|
|
9463
|
+
obj = Quota()
|
|
9464
|
+
obj._deserialize(item)
|
|
9465
|
+
self._PrefetchQuota.append(obj)
|
|
9060
9466
|
self._RequestId = params.get("RequestId")
|
|
9061
9467
|
|
|
9062
9468
|
|
|
9063
|
-
class
|
|
9064
|
-
"""
|
|
9469
|
+
class DescribeCustomErrorPagesRequest(AbstractModel):
|
|
9470
|
+
"""DescribeCustomErrorPages请求参数结构体
|
|
9065
9471
|
|
|
9066
9472
|
"""
|
|
9067
9473
|
|
|
@@ -9069,8 +9475,21 @@ class DescribeContentQuotaRequest(AbstractModel):
|
|
|
9069
9475
|
r"""
|
|
9070
9476
|
:param _ZoneId: 站点 ID。
|
|
9071
9477
|
:type ZoneId: str
|
|
9478
|
+
:param _Filters: 过滤条件,Filters.Values 的上限为20,详细的过滤条件Name值如下:
|
|
9479
|
+
<li>page-id: 按照页面 ID 进行过滤;</li>
|
|
9480
|
+
<li>name: 按照页面名称进行过滤;</li>
|
|
9481
|
+
<li>description:按照页面描述过滤;</li>
|
|
9482
|
+
<li>content-type:按照页面类型过滤。</li>
|
|
9483
|
+
:type Filters: list of AdvancedFilter
|
|
9484
|
+
:param _Offset: 分页查询偏移量。默认值:0。
|
|
9485
|
+
:type Offset: int
|
|
9486
|
+
:param _Limit: 分页查询限制数目。默认值:20,最大值:1000。
|
|
9487
|
+
:type Limit: int
|
|
9072
9488
|
"""
|
|
9073
9489
|
self._ZoneId = None
|
|
9490
|
+
self._Filters = None
|
|
9491
|
+
self._Offset = None
|
|
9492
|
+
self._Limit = None
|
|
9074
9493
|
|
|
9075
9494
|
@property
|
|
9076
9495
|
def ZoneId(self):
|
|
@@ -9080,9 +9499,41 @@ class DescribeContentQuotaRequest(AbstractModel):
|
|
|
9080
9499
|
def ZoneId(self, ZoneId):
|
|
9081
9500
|
self._ZoneId = ZoneId
|
|
9082
9501
|
|
|
9502
|
+
@property
|
|
9503
|
+
def Filters(self):
|
|
9504
|
+
return self._Filters
|
|
9505
|
+
|
|
9506
|
+
@Filters.setter
|
|
9507
|
+
def Filters(self, Filters):
|
|
9508
|
+
self._Filters = Filters
|
|
9509
|
+
|
|
9510
|
+
@property
|
|
9511
|
+
def Offset(self):
|
|
9512
|
+
return self._Offset
|
|
9513
|
+
|
|
9514
|
+
@Offset.setter
|
|
9515
|
+
def Offset(self, Offset):
|
|
9516
|
+
self._Offset = Offset
|
|
9517
|
+
|
|
9518
|
+
@property
|
|
9519
|
+
def Limit(self):
|
|
9520
|
+
return self._Limit
|
|
9521
|
+
|
|
9522
|
+
@Limit.setter
|
|
9523
|
+
def Limit(self, Limit):
|
|
9524
|
+
self._Limit = Limit
|
|
9525
|
+
|
|
9083
9526
|
|
|
9084
9527
|
def _deserialize(self, params):
|
|
9085
9528
|
self._ZoneId = params.get("ZoneId")
|
|
9529
|
+
if params.get("Filters") is not None:
|
|
9530
|
+
self._Filters = []
|
|
9531
|
+
for item in params.get("Filters"):
|
|
9532
|
+
obj = AdvancedFilter()
|
|
9533
|
+
obj._deserialize(item)
|
|
9534
|
+
self._Filters.append(obj)
|
|
9535
|
+
self._Offset = params.get("Offset")
|
|
9536
|
+
self._Limit = params.get("Limit")
|
|
9086
9537
|
memeber_set = set(params.keys())
|
|
9087
9538
|
for name, value in vars(self).items():
|
|
9088
9539
|
property_name = name[1:]
|
|
@@ -9093,41 +9544,39 @@ class DescribeContentQuotaRequest(AbstractModel):
|
|
|
9093
9544
|
|
|
9094
9545
|
|
|
9095
9546
|
|
|
9096
|
-
class
|
|
9097
|
-
"""
|
|
9547
|
+
class DescribeCustomErrorPagesResponse(AbstractModel):
|
|
9548
|
+
"""DescribeCustomErrorPages返回参数结构体
|
|
9098
9549
|
|
|
9099
9550
|
"""
|
|
9100
9551
|
|
|
9101
9552
|
def __init__(self):
|
|
9102
9553
|
r"""
|
|
9103
|
-
:param
|
|
9104
|
-
|
|
9105
|
-
:
|
|
9106
|
-
:
|
|
9107
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
9108
|
-
:type PrefetchQuota: list of Quota
|
|
9554
|
+
:param _TotalCount: 自定义错误页面总数。
|
|
9555
|
+
:type TotalCount: int
|
|
9556
|
+
:param _ErrorPages: 自定义错误页面数据列表。
|
|
9557
|
+
:type ErrorPages: list of CustomErrorPage
|
|
9109
9558
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9110
9559
|
:type RequestId: str
|
|
9111
9560
|
"""
|
|
9112
|
-
self.
|
|
9113
|
-
self.
|
|
9561
|
+
self._TotalCount = None
|
|
9562
|
+
self._ErrorPages = None
|
|
9114
9563
|
self._RequestId = None
|
|
9115
9564
|
|
|
9116
9565
|
@property
|
|
9117
|
-
def
|
|
9118
|
-
return self.
|
|
9566
|
+
def TotalCount(self):
|
|
9567
|
+
return self._TotalCount
|
|
9119
9568
|
|
|
9120
|
-
@
|
|
9121
|
-
def
|
|
9122
|
-
self.
|
|
9569
|
+
@TotalCount.setter
|
|
9570
|
+
def TotalCount(self, TotalCount):
|
|
9571
|
+
self._TotalCount = TotalCount
|
|
9123
9572
|
|
|
9124
9573
|
@property
|
|
9125
|
-
def
|
|
9126
|
-
return self.
|
|
9574
|
+
def ErrorPages(self):
|
|
9575
|
+
return self._ErrorPages
|
|
9127
9576
|
|
|
9128
|
-
@
|
|
9129
|
-
def
|
|
9130
|
-
self.
|
|
9577
|
+
@ErrorPages.setter
|
|
9578
|
+
def ErrorPages(self, ErrorPages):
|
|
9579
|
+
self._ErrorPages = ErrorPages
|
|
9131
9580
|
|
|
9132
9581
|
@property
|
|
9133
9582
|
def RequestId(self):
|
|
@@ -9139,18 +9588,13 @@ class DescribeContentQuotaResponse(AbstractModel):
|
|
|
9139
9588
|
|
|
9140
9589
|
|
|
9141
9590
|
def _deserialize(self, params):
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
obj
|
|
9147
|
-
self._PurgeQuota.append(obj)
|
|
9148
|
-
if params.get("PrefetchQuota") is not None:
|
|
9149
|
-
self._PrefetchQuota = []
|
|
9150
|
-
for item in params.get("PrefetchQuota"):
|
|
9151
|
-
obj = Quota()
|
|
9591
|
+
self._TotalCount = params.get("TotalCount")
|
|
9592
|
+
if params.get("ErrorPages") is not None:
|
|
9593
|
+
self._ErrorPages = []
|
|
9594
|
+
for item in params.get("ErrorPages"):
|
|
9595
|
+
obj = CustomErrorPage()
|
|
9152
9596
|
obj._deserialize(item)
|
|
9153
|
-
self.
|
|
9597
|
+
self._ErrorPages.append(obj)
|
|
9154
9598
|
self._RequestId = params.get("RequestId")
|
|
9155
9599
|
|
|
9156
9600
|
|
|
@@ -14370,6 +14814,39 @@ class EnvInfo(AbstractModel):
|
|
|
14370
14814
|
|
|
14371
14815
|
|
|
14372
14816
|
|
|
14817
|
+
class ErrorPageReference(AbstractModel):
|
|
14818
|
+
"""自定义错误页面被引用的来源
|
|
14819
|
+
|
|
14820
|
+
"""
|
|
14821
|
+
|
|
14822
|
+
def __init__(self):
|
|
14823
|
+
r"""
|
|
14824
|
+
:param _BusinessId: 引用的业务 ID,如自定义拦截规则 ID。
|
|
14825
|
+
:type BusinessId: str
|
|
14826
|
+
"""
|
|
14827
|
+
self._BusinessId = None
|
|
14828
|
+
|
|
14829
|
+
@property
|
|
14830
|
+
def BusinessId(self):
|
|
14831
|
+
return self._BusinessId
|
|
14832
|
+
|
|
14833
|
+
@BusinessId.setter
|
|
14834
|
+
def BusinessId(self, BusinessId):
|
|
14835
|
+
self._BusinessId = BusinessId
|
|
14836
|
+
|
|
14837
|
+
|
|
14838
|
+
def _deserialize(self, params):
|
|
14839
|
+
self._BusinessId = params.get("BusinessId")
|
|
14840
|
+
memeber_set = set(params.keys())
|
|
14841
|
+
for name, value in vars(self).items():
|
|
14842
|
+
property_name = name[1:]
|
|
14843
|
+
if property_name in memeber_set:
|
|
14844
|
+
memeber_set.remove(property_name)
|
|
14845
|
+
if len(memeber_set) > 0:
|
|
14846
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14847
|
+
|
|
14848
|
+
|
|
14849
|
+
|
|
14373
14850
|
class ExceptConfig(AbstractModel):
|
|
14374
14851
|
"""例外规则,用于配置需要跳过特定场景的规则
|
|
14375
14852
|
|
|
@@ -16023,7 +16500,7 @@ class IpTableConfig(AbstractModel):
|
|
|
16023
16500
|
|
|
16024
16501
|
|
|
16025
16502
|
class IpTableRule(AbstractModel):
|
|
16026
|
-
"""
|
|
16503
|
+
"""自定义规则-基础访问管控配置。
|
|
16027
16504
|
|
|
16028
16505
|
"""
|
|
16029
16506
|
|
|
@@ -16035,32 +16512,43 @@ class IpTableRule(AbstractModel):
|
|
|
16035
16512
|
<li> monitor:观察。</li>
|
|
16036
16513
|
:type Action: str
|
|
16037
16514
|
:param _MatchFrom: 根据类型匹配,取值有:
|
|
16038
|
-
<li>ip
|
|
16039
|
-
<li>area
|
|
16515
|
+
<li>ip:客户端 IP 进行匹配;</li>
|
|
16516
|
+
<li>area:客户端 IP 所属地区匹配;</li>
|
|
16517
|
+
<li>asn:客户端所属的自治系统进行匹配;</li>
|
|
16518
|
+
<li>referer:请求头 Referer 进行匹配;</li>
|
|
16519
|
+
<li>ua:请求头 User-Agent 进行匹配;</li>
|
|
16520
|
+
<li>url:请求 URL 进行匹配。</li>
|
|
16040
16521
|
:type MatchFrom: str
|
|
16041
|
-
:param _Operator:
|
|
16042
|
-
|
|
16043
|
-
<li>
|
|
16044
|
-
<li>
|
|
16045
|
-
<li>
|
|
16046
|
-
<li>
|
|
16047
|
-
<li>
|
|
16048
|
-
<li>
|
|
16049
|
-
|
|
16522
|
+
:param _Operator: 规则的匹配方式。取值有:
|
|
16523
|
+
<li> match:匹配,适用于 MatchFrom 为 ip;</li>
|
|
16524
|
+
<li> not_match:不匹配,适用于 MatchFrom 为 ip;</li>
|
|
16525
|
+
<li> include_area:地域包含,适用于 MatchFrom 为 area;</li>
|
|
16526
|
+
<li> not_include_area:地域不包含,适用于 MatchFrom 为 area;</li>
|
|
16527
|
+
<li> asn_match:ASN 包含,适用于 MatchFrom 为 asn;</li>
|
|
16528
|
+
<li> asn_not_match:ASN 不包含,适用于 MatchFrom 为 asn;</li>
|
|
16529
|
+
<li> equal:等于,适用于 MatchFrom 为 ua , referer;</li>
|
|
16530
|
+
<li> not_equal:不等于,适用于 MatchFrom 为 ua , referer;</li>
|
|
16531
|
+
<li> include:通配符匹配,适用于 MatchFrom 为 ua , referer , url;</li>
|
|
16532
|
+
<li> not_include:通配符不匹配,适用于 MatchFrom 为 ua , referer;</li>
|
|
16533
|
+
<li> is_emty:配置内容为空,适用于 MatchFrom 为 ua , referer;</li>
|
|
16534
|
+
<li> not_exists:配置内容不存在,适用于 MatchFrom 为 ua , referer。</li>
|
|
16050
16535
|
:type Operator: str
|
|
16051
16536
|
:param _RuleID: 规则id。仅出参使用。
|
|
16052
16537
|
:type RuleID: int
|
|
16053
16538
|
:param _UpdateTime: 更新时间。仅出参使用。
|
|
16054
16539
|
:type UpdateTime: str
|
|
16055
|
-
:param _Status:
|
|
16540
|
+
:param _Status: 规则启用状态。取值有:
|
|
16056
16541
|
<li> on:启用;</li>
|
|
16057
16542
|
<li> off:未启用。</li>
|
|
16058
|
-
|
|
16543
|
+
当入参缺省时,按 on 取值。
|
|
16059
16544
|
:type Status: str
|
|
16060
16545
|
:param _RuleName: 规则名。
|
|
16061
16546
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
16062
16547
|
:type RuleName: str
|
|
16063
|
-
:param _MatchContent:
|
|
16548
|
+
:param _MatchContent: 匹配内容。支持多值输入。
|
|
16549
|
+
<li>当输入多个匹配值时,请使用英文逗号分隔;</li>
|
|
16550
|
+
<li>当 MatchFrom 为 ua 时,不支持多值输入;</li>
|
|
16551
|
+
<li>当 Operator 为 is_empty 或 not_exists 时,本字段入参值无效。</li>
|
|
16064
16552
|
:type MatchContent: str
|
|
16065
16553
|
"""
|
|
16066
16554
|
self._Action = None
|
|
@@ -17940,6 +18428,124 @@ class ModifyApplicationProxyStatusResponse(AbstractModel):
|
|
|
17940
18428
|
self._RequestId = params.get("RequestId")
|
|
17941
18429
|
|
|
17942
18430
|
|
|
18431
|
+
class ModifyCustomErrorPageRequest(AbstractModel):
|
|
18432
|
+
"""ModifyCustomErrorPage请求参数结构体
|
|
18433
|
+
|
|
18434
|
+
"""
|
|
18435
|
+
|
|
18436
|
+
def __init__(self):
|
|
18437
|
+
r"""
|
|
18438
|
+
:param _PageId: 自定义错误页面 ID。
|
|
18439
|
+
:type PageId: str
|
|
18440
|
+
:param _ZoneId: 站点 ID。
|
|
18441
|
+
:type ZoneId: str
|
|
18442
|
+
:param _Name: 自定义错误页名称,名称为2 - 60个字符。
|
|
18443
|
+
:type Name: str
|
|
18444
|
+
:param _Description: 自定义错误页描述,描述内容不超过60个字符。
|
|
18445
|
+
:type Description: str
|
|
18446
|
+
:param _ContentType: 自定义错误页面类型,取值有:<li>text/html。 </li><li>application/json。</li><li>plain/text。</li><li>text/xml。</li>
|
|
18447
|
+
:type ContentType: str
|
|
18448
|
+
:param _Content: 自定义错误页面内容。内容不超过 2KB。
|
|
18449
|
+
:type Content: str
|
|
18450
|
+
"""
|
|
18451
|
+
self._PageId = None
|
|
18452
|
+
self._ZoneId = None
|
|
18453
|
+
self._Name = None
|
|
18454
|
+
self._Description = None
|
|
18455
|
+
self._ContentType = None
|
|
18456
|
+
self._Content = None
|
|
18457
|
+
|
|
18458
|
+
@property
|
|
18459
|
+
def PageId(self):
|
|
18460
|
+
return self._PageId
|
|
18461
|
+
|
|
18462
|
+
@PageId.setter
|
|
18463
|
+
def PageId(self, PageId):
|
|
18464
|
+
self._PageId = PageId
|
|
18465
|
+
|
|
18466
|
+
@property
|
|
18467
|
+
def ZoneId(self):
|
|
18468
|
+
return self._ZoneId
|
|
18469
|
+
|
|
18470
|
+
@ZoneId.setter
|
|
18471
|
+
def ZoneId(self, ZoneId):
|
|
18472
|
+
self._ZoneId = ZoneId
|
|
18473
|
+
|
|
18474
|
+
@property
|
|
18475
|
+
def Name(self):
|
|
18476
|
+
return self._Name
|
|
18477
|
+
|
|
18478
|
+
@Name.setter
|
|
18479
|
+
def Name(self, Name):
|
|
18480
|
+
self._Name = Name
|
|
18481
|
+
|
|
18482
|
+
@property
|
|
18483
|
+
def Description(self):
|
|
18484
|
+
return self._Description
|
|
18485
|
+
|
|
18486
|
+
@Description.setter
|
|
18487
|
+
def Description(self, Description):
|
|
18488
|
+
self._Description = Description
|
|
18489
|
+
|
|
18490
|
+
@property
|
|
18491
|
+
def ContentType(self):
|
|
18492
|
+
return self._ContentType
|
|
18493
|
+
|
|
18494
|
+
@ContentType.setter
|
|
18495
|
+
def ContentType(self, ContentType):
|
|
18496
|
+
self._ContentType = ContentType
|
|
18497
|
+
|
|
18498
|
+
@property
|
|
18499
|
+
def Content(self):
|
|
18500
|
+
return self._Content
|
|
18501
|
+
|
|
18502
|
+
@Content.setter
|
|
18503
|
+
def Content(self, Content):
|
|
18504
|
+
self._Content = Content
|
|
18505
|
+
|
|
18506
|
+
|
|
18507
|
+
def _deserialize(self, params):
|
|
18508
|
+
self._PageId = params.get("PageId")
|
|
18509
|
+
self._ZoneId = params.get("ZoneId")
|
|
18510
|
+
self._Name = params.get("Name")
|
|
18511
|
+
self._Description = params.get("Description")
|
|
18512
|
+
self._ContentType = params.get("ContentType")
|
|
18513
|
+
self._Content = params.get("Content")
|
|
18514
|
+
memeber_set = set(params.keys())
|
|
18515
|
+
for name, value in vars(self).items():
|
|
18516
|
+
property_name = name[1:]
|
|
18517
|
+
if property_name in memeber_set:
|
|
18518
|
+
memeber_set.remove(property_name)
|
|
18519
|
+
if len(memeber_set) > 0:
|
|
18520
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18521
|
+
|
|
18522
|
+
|
|
18523
|
+
|
|
18524
|
+
class ModifyCustomErrorPageResponse(AbstractModel):
|
|
18525
|
+
"""ModifyCustomErrorPage返回参数结构体
|
|
18526
|
+
|
|
18527
|
+
"""
|
|
18528
|
+
|
|
18529
|
+
def __init__(self):
|
|
18530
|
+
r"""
|
|
18531
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18532
|
+
:type RequestId: str
|
|
18533
|
+
"""
|
|
18534
|
+
self._RequestId = None
|
|
18535
|
+
|
|
18536
|
+
@property
|
|
18537
|
+
def RequestId(self):
|
|
18538
|
+
return self._RequestId
|
|
18539
|
+
|
|
18540
|
+
@RequestId.setter
|
|
18541
|
+
def RequestId(self, RequestId):
|
|
18542
|
+
self._RequestId = RequestId
|
|
18543
|
+
|
|
18544
|
+
|
|
18545
|
+
def _deserialize(self, params):
|
|
18546
|
+
self._RequestId = params.get("RequestId")
|
|
18547
|
+
|
|
18548
|
+
|
|
17943
18549
|
class ModifyHostsCertificateRequest(AbstractModel):
|
|
17944
18550
|
"""ModifyHostsCertificate请求参数结构体
|
|
17945
18551
|
|
|
@@ -17951,24 +18557,29 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
|
17951
18557
|
:type ZoneId: str
|
|
17952
18558
|
:param _Hosts: 需要修改证书配置的加速域名。
|
|
17953
18559
|
:type Hosts: list of str
|
|
17954
|
-
:param _Mode:
|
|
17955
|
-
<li>disable
|
|
17956
|
-
<li>eofreecert:配置 EdgeOne
|
|
17957
|
-
<li>sslcert:配置 SSL
|
|
18560
|
+
:param _Mode: 配置服务端证书的模式,取值有:
|
|
18561
|
+
<li>disable:不配置服务端证书;</li>
|
|
18562
|
+
<li>eofreecert:配置 EdgeOne 免费服务端证书;</li>
|
|
18563
|
+
<li>sslcert:配置 SSL 托管服务端证书;</li>
|
|
18564
|
+
不填写表示服务端证书保持原有配置。
|
|
17958
18565
|
:type Mode: str
|
|
17959
|
-
:param _ServerCertInfo: SSL 证书配置,本参数仅在 mode
|
|
18566
|
+
:param _ServerCertInfo: SSL 证书配置,本参数仅在 mode 为 sslcert 时生效,传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/certoverview) 查看 CertId。
|
|
17960
18567
|
:type ServerCertInfo: list of ServerCertInfo
|
|
17961
18568
|
:param _ApplyType: 托管类型,取值有:
|
|
17962
18569
|
<li>none:不托管EO;</li>
|
|
17963
18570
|
<li>apply:托管EO</li>
|
|
17964
18571
|
不填,默认取值为none。
|
|
17965
18572
|
:type ApplyType: str
|
|
18573
|
+
:param _ClientCertInfo: 边缘双向认证配置。
|
|
18574
|
+
不填写表示边缘双向认证保持原有配置。
|
|
18575
|
+
:type ClientCertInfo: :class:`tencentcloud.teo.v20220901.models.MutualTLS`
|
|
17966
18576
|
"""
|
|
17967
18577
|
self._ZoneId = None
|
|
17968
18578
|
self._Hosts = None
|
|
17969
18579
|
self._Mode = None
|
|
17970
18580
|
self._ServerCertInfo = None
|
|
17971
18581
|
self._ApplyType = None
|
|
18582
|
+
self._ClientCertInfo = None
|
|
17972
18583
|
|
|
17973
18584
|
@property
|
|
17974
18585
|
def ZoneId(self):
|
|
@@ -18014,6 +18625,14 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
|
18014
18625
|
|
|
18015
18626
|
self._ApplyType = ApplyType
|
|
18016
18627
|
|
|
18628
|
+
@property
|
|
18629
|
+
def ClientCertInfo(self):
|
|
18630
|
+
return self._ClientCertInfo
|
|
18631
|
+
|
|
18632
|
+
@ClientCertInfo.setter
|
|
18633
|
+
def ClientCertInfo(self, ClientCertInfo):
|
|
18634
|
+
self._ClientCertInfo = ClientCertInfo
|
|
18635
|
+
|
|
18017
18636
|
|
|
18018
18637
|
def _deserialize(self, params):
|
|
18019
18638
|
self._ZoneId = params.get("ZoneId")
|
|
@@ -18026,6 +18645,9 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
|
18026
18645
|
obj._deserialize(item)
|
|
18027
18646
|
self._ServerCertInfo.append(obj)
|
|
18028
18647
|
self._ApplyType = params.get("ApplyType")
|
|
18648
|
+
if params.get("ClientCertInfo") is not None:
|
|
18649
|
+
self._ClientCertInfo = MutualTLS()
|
|
18650
|
+
self._ClientCertInfo._deserialize(params.get("ClientCertInfo"))
|
|
18029
18651
|
memeber_set = set(params.keys())
|
|
18030
18652
|
for name, value in vars(self).items():
|
|
18031
18653
|
property_name = name[1:]
|
|
@@ -19716,6 +20338,59 @@ class ModifyZoneStatusResponse(AbstractModel):
|
|
|
19716
20338
|
self._RequestId = params.get("RequestId")
|
|
19717
20339
|
|
|
19718
20340
|
|
|
20341
|
+
class MutualTLS(AbstractModel):
|
|
20342
|
+
"""HTTPS 双向认证。
|
|
20343
|
+
|
|
20344
|
+
"""
|
|
20345
|
+
|
|
20346
|
+
def __init__(self):
|
|
20347
|
+
r"""
|
|
20348
|
+
:param _Switch: 双向认证配置开关,取值有:
|
|
20349
|
+
<li>on:开启;</li>
|
|
20350
|
+
<li>off:关闭。</li>
|
|
20351
|
+
:type Switch: str
|
|
20352
|
+
:param _CertInfos: 双向认证证书列表。
|
|
20353
|
+
注意:MutualTLS 在 ModifyHostsCertificate 作为入参使用时,该参数传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/certoverview) 查看 CertId。
|
|
20354
|
+
:type CertInfos: list of CertificateInfo
|
|
20355
|
+
"""
|
|
20356
|
+
self._Switch = None
|
|
20357
|
+
self._CertInfos = None
|
|
20358
|
+
|
|
20359
|
+
@property
|
|
20360
|
+
def Switch(self):
|
|
20361
|
+
return self._Switch
|
|
20362
|
+
|
|
20363
|
+
@Switch.setter
|
|
20364
|
+
def Switch(self, Switch):
|
|
20365
|
+
self._Switch = Switch
|
|
20366
|
+
|
|
20367
|
+
@property
|
|
20368
|
+
def CertInfos(self):
|
|
20369
|
+
return self._CertInfos
|
|
20370
|
+
|
|
20371
|
+
@CertInfos.setter
|
|
20372
|
+
def CertInfos(self, CertInfos):
|
|
20373
|
+
self._CertInfos = CertInfos
|
|
20374
|
+
|
|
20375
|
+
|
|
20376
|
+
def _deserialize(self, params):
|
|
20377
|
+
self._Switch = params.get("Switch")
|
|
20378
|
+
if params.get("CertInfos") is not None:
|
|
20379
|
+
self._CertInfos = []
|
|
20380
|
+
for item in params.get("CertInfos"):
|
|
20381
|
+
obj = CertificateInfo()
|
|
20382
|
+
obj._deserialize(item)
|
|
20383
|
+
self._CertInfos.append(obj)
|
|
20384
|
+
memeber_set = set(params.keys())
|
|
20385
|
+
for name, value in vars(self).items():
|
|
20386
|
+
property_name = name[1:]
|
|
20387
|
+
if property_name in memeber_set:
|
|
20388
|
+
memeber_set.remove(property_name)
|
|
20389
|
+
if len(memeber_set) > 0:
|
|
20390
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20391
|
+
|
|
20392
|
+
|
|
20393
|
+
|
|
19719
20394
|
class NoCache(AbstractModel):
|
|
19720
20395
|
"""不缓存配置
|
|
19721
20396
|
|
|
@@ -19960,6 +20635,7 @@ class OriginDetail(AbstractModel):
|
|
|
19960
20635
|
<li>AWS_S3:AWS S3 对象存储源站;</li>
|
|
19961
20636
|
<li>ORIGIN_GROUP:源站组类型源站;</li>
|
|
19962
20637
|
<li>VODEO:云点播-混合云版;</li>
|
|
20638
|
+
<li>VOD:云点播;</li>
|
|
19963
20639
|
<li>SPACE:源站卸载,当前仅白名单开放;</li>
|
|
19964
20640
|
<li>LB:负载均衡,当前仅白名单开放。</li>
|
|
19965
20641
|
:type OriginType: str
|
|
@@ -19968,6 +20644,7 @@ class OriginDetail(AbstractModel):
|
|
|
19968
20644
|
<li>当 OriginType = COS 时,该参数为 COS 桶的访问域名;</li>
|
|
19969
20645
|
<li>当 OriginType = AWS_S3,该参数为 S3 桶的访问域名;</li>
|
|
19970
20646
|
<li>当 OriginType = ORIGIN_GROUP 时,该参数为源站组 ID;</li>
|
|
20647
|
+
<li>当 OriginType = VOD 时,该参数请填写云点播应用 ID ;</li>
|
|
19971
20648
|
<li>当 OriginType = VODEO 时,如果 VodeoDistributionRange = ALL,则该参数为 "all-buckets-in-vodeo-application";如果 VodeoDistributionRange = Bucket,则该参数为对应存储桶域名。</li>
|
|
19972
20649
|
:type Origin: str
|
|
19973
20650
|
:param _BackupOrigin: 备用源站组 ID,该参数仅在 OriginType = ORIGIN_GROUP 且配置了备源站组时会生效。
|
|
@@ -20312,7 +20989,7 @@ class OriginInfo(AbstractModel):
|
|
|
20312
20989
|
<li>COS:腾讯云 COS 对象存储源站;</li>
|
|
20313
20990
|
<li>AWS_S3:AWS S3 对象存储源站;</li>
|
|
20314
20991
|
<li>ORIGIN_GROUP:源站组类型源站;</li>
|
|
20315
|
-
<li>
|
|
20992
|
+
<li>VOD:云点播;</li>
|
|
20316
20993
|
<li>SPACE:源站卸载,当前仅白名单开放;</li>
|
|
20317
20994
|
<li>LB:负载均衡,当前仅白名单开放。</li>
|
|
20318
20995
|
:type OriginType: str
|
|
@@ -20321,7 +20998,7 @@ class OriginInfo(AbstractModel):
|
|
|
20321
20998
|
<li>当 OriginType = COS 时,该参数请填写 COS 桶的访问域名;</li>
|
|
20322
20999
|
<li>当 OriginType = AWS_S3,该参数请填写 S3 桶的访问域名;</li>
|
|
20323
21000
|
<li>当 OriginType = ORIGIN_GROUP 时,该参数请填写源站组 ID;</li>
|
|
20324
|
-
<li>当 OriginType =
|
|
21001
|
+
<li>当 OriginType = VOD 时,该参数请填写云点播应用 ID ;</li>
|
|
20325
21002
|
<li>当 OriginType = LB 时,该参数请填写负载均衡实例 ID,该功能当前仅白名单开放;</li>
|
|
20326
21003
|
<li>当 OriginType = SPACE 时,该参数请填写源站卸载空间 ID,该功能当前仅白名单开放。</li>
|
|
20327
21004
|
:type Origin: str
|
|
@@ -20338,7 +21015,7 @@ class OriginInfo(AbstractModel):
|
|
|
20338
21015
|
:type VodeoSubAppId: int
|
|
20339
21016
|
:param _VodeoDistributionRange: VODEO 分发范围,该参数当 OriginType = VODEO 时必填。取值有:
|
|
20340
21017
|
<li>All:当前应用下所有存储桶;</li>
|
|
20341
|
-
<li>Bucket:指定的某一个存储桶。</li>
|
|
21018
|
+
<li>Bucket:指定的某一个存储桶。</li>
|
|
20342
21019
|
:type VodeoDistributionRange: str
|
|
20343
21020
|
:param _VodeoBucketId: VODEO 存储桶 ID,该参数当 OriginType = VODEO 且 VodeoDistributionRange = Bucket 时必填。
|
|
20344
21021
|
:type VodeoBucketId: str
|
|
@@ -259,6 +259,29 @@ class TeoClient(AbstractClient):
|
|
|
259
259
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
260
260
|
|
|
261
261
|
|
|
262
|
+
def CreateCustomizeErrorPage(self, request):
|
|
263
|
+
"""创建自定义错误页面。
|
|
264
|
+
|
|
265
|
+
:param request: Request instance for CreateCustomizeErrorPage.
|
|
266
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.CreateCustomizeErrorPageRequest`
|
|
267
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.CreateCustomizeErrorPageResponse`
|
|
268
|
+
|
|
269
|
+
"""
|
|
270
|
+
try:
|
|
271
|
+
params = request._serialize()
|
|
272
|
+
headers = request.headers
|
|
273
|
+
body = self.call("CreateCustomizeErrorPage", params, headers=headers)
|
|
274
|
+
response = json.loads(body)
|
|
275
|
+
model = models.CreateCustomizeErrorPageResponse()
|
|
276
|
+
model._deserialize(response["Response"])
|
|
277
|
+
return model
|
|
278
|
+
except Exception as e:
|
|
279
|
+
if isinstance(e, TencentCloudSDKException):
|
|
280
|
+
raise
|
|
281
|
+
else:
|
|
282
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
283
|
+
|
|
284
|
+
|
|
262
285
|
def CreateL4Proxy(self, request):
|
|
263
286
|
"""用于创建四层代理实例。
|
|
264
287
|
|
|
@@ -634,6 +657,29 @@ class TeoClient(AbstractClient):
|
|
|
634
657
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
635
658
|
|
|
636
659
|
|
|
660
|
+
def DeleteCustomErrorPage(self, request):
|
|
661
|
+
"""删除自定义错误页面。
|
|
662
|
+
|
|
663
|
+
:param request: Request instance for DeleteCustomErrorPage.
|
|
664
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.DeleteCustomErrorPageRequest`
|
|
665
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.DeleteCustomErrorPageResponse`
|
|
666
|
+
|
|
667
|
+
"""
|
|
668
|
+
try:
|
|
669
|
+
params = request._serialize()
|
|
670
|
+
headers = request.headers
|
|
671
|
+
body = self.call("DeleteCustomErrorPage", params, headers=headers)
|
|
672
|
+
response = json.loads(body)
|
|
673
|
+
model = models.DeleteCustomErrorPageResponse()
|
|
674
|
+
model._deserialize(response["Response"])
|
|
675
|
+
return model
|
|
676
|
+
except Exception as e:
|
|
677
|
+
if isinstance(e, TencentCloudSDKException):
|
|
678
|
+
raise
|
|
679
|
+
else:
|
|
680
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
681
|
+
|
|
682
|
+
|
|
637
683
|
def DeleteL4Proxy(self, request):
|
|
638
684
|
"""用于删除四层代理实例。
|
|
639
685
|
|
|
@@ -1025,6 +1071,29 @@ class TeoClient(AbstractClient):
|
|
|
1025
1071
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1026
1072
|
|
|
1027
1073
|
|
|
1074
|
+
def DescribeCustomErrorPages(self, request):
|
|
1075
|
+
"""查询自定义错误页列表。
|
|
1076
|
+
|
|
1077
|
+
:param request: Request instance for DescribeCustomErrorPages.
|
|
1078
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.DescribeCustomErrorPagesRequest`
|
|
1079
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.DescribeCustomErrorPagesResponse`
|
|
1080
|
+
|
|
1081
|
+
"""
|
|
1082
|
+
try:
|
|
1083
|
+
params = request._serialize()
|
|
1084
|
+
headers = request.headers
|
|
1085
|
+
body = self.call("DescribeCustomErrorPages", params, headers=headers)
|
|
1086
|
+
response = json.loads(body)
|
|
1087
|
+
model = models.DescribeCustomErrorPagesResponse()
|
|
1088
|
+
model._deserialize(response["Response"])
|
|
1089
|
+
return model
|
|
1090
|
+
except Exception as e:
|
|
1091
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1092
|
+
raise
|
|
1093
|
+
else:
|
|
1094
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1095
|
+
|
|
1096
|
+
|
|
1028
1097
|
def DescribeDDoSAttackData(self, request):
|
|
1029
1098
|
"""本接口(DescribeDDoSAttackData)用于查询DDoS攻击时序数据。
|
|
1030
1099
|
|
|
@@ -2005,6 +2074,29 @@ class TeoClient(AbstractClient):
|
|
|
2005
2074
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2006
2075
|
|
|
2007
2076
|
|
|
2077
|
+
def ModifyCustomErrorPage(self, request):
|
|
2078
|
+
"""修改自定义错误页面。
|
|
2079
|
+
|
|
2080
|
+
:param request: Request instance for ModifyCustomErrorPage.
|
|
2081
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.ModifyCustomErrorPageRequest`
|
|
2082
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.ModifyCustomErrorPageResponse`
|
|
2083
|
+
|
|
2084
|
+
"""
|
|
2085
|
+
try:
|
|
2086
|
+
params = request._serialize()
|
|
2087
|
+
headers = request.headers
|
|
2088
|
+
body = self.call("ModifyCustomErrorPage", params, headers=headers)
|
|
2089
|
+
response = json.loads(body)
|
|
2090
|
+
model = models.ModifyCustomErrorPageResponse()
|
|
2091
|
+
model._deserialize(response["Response"])
|
|
2092
|
+
return model
|
|
2093
|
+
except Exception as e:
|
|
2094
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2095
|
+
raise
|
|
2096
|
+
else:
|
|
2097
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2098
|
+
|
|
2099
|
+
|
|
2008
2100
|
def ModifyHostsCertificate(self, request):
|
|
2009
2101
|
"""完成域名创建之后,您可以为域名配置自有证书,也可以使用 EdgeOne 为您提供的 [免费证书](https://cloud.tencent.com/document/product/1552/90437)。
|
|
2010
2102
|
如果您需要配置自有证书,请先将证书上传至 [SSL证书控制台](https://console.cloud.tencent.com/certoverview),然后在本接口中传入对应的证书 ID。详情参考 [部署自有证书至 EdgeOne 域名
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1186
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1161
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|