tencentcloud-sdk-python 3.0.1324__py2.py3-none-any.whl → 3.0.1326__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apm/v20210622/apm_client.py +23 -0
- tencentcloud/apm/v20210622/models.py +226 -0
- tencentcloud/asr/v20190614/asr_client.py +1 -1
- tencentcloud/batch/v20170312/models.py +0 -4
- tencentcloud/cvm/v20170312/models.py +0 -8
- tencentcloud/dc/v20180410/models.py +15 -0
- tencentcloud/emr/v20190103/emr_client.py +23 -0
- tencentcloud/emr/v20190103/models.py +293 -0
- tencentcloud/ess/v20201111/models.py +4 -4
- tencentcloud/essbasic/v20210526/models.py +4 -4
- tencentcloud/hai/v20230812/errorcodes.py +12 -0
- tencentcloud/live/v20180801/models.py +15 -0
- tencentcloud/mna/v20210119/models.py +0 -58
- tencentcloud/ocr/v20181119/ocr_client.py +3 -1
- tencentcloud/rce/v20201103/models.py +30 -68
- tencentcloud/scf/v20180416/models.py +2 -2
- tencentcloud/trtc/v20190722/models.py +15 -62
- tencentcloud/waf/v20180125/errorcodes.py +6 -0
- tencentcloud/waf/v20180125/models.py +348 -37
- {tencentcloud_sdk_python-3.0.1324.dist-info → tencentcloud_sdk_python-3.0.1326.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1324.dist-info → tencentcloud_sdk_python-3.0.1326.dist-info}/RECORD +25 -25
- {tencentcloud_sdk_python-3.0.1324.dist-info → tencentcloud_sdk_python-3.0.1326.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1324.dist-info → tencentcloud_sdk_python-3.0.1326.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1324.dist-info → tencentcloud_sdk_python-3.0.1326.dist-info}/top_level.txt +0 -0
@@ -1420,6 +1420,8 @@ class AddCustomRuleRequest(AbstractModel):
|
|
1420
1420
|
:type Status: int
|
1421
1421
|
:param _PageId: 拦截页面id
|
1422
1422
|
:type PageId: str
|
1423
|
+
:param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
1424
|
+
:type LogicalOp: str
|
1423
1425
|
"""
|
1424
1426
|
self._Name = None
|
1425
1427
|
self._SortId = None
|
@@ -1437,6 +1439,7 @@ class AddCustomRuleRequest(AbstractModel):
|
|
1437
1439
|
self._Label = None
|
1438
1440
|
self._Status = None
|
1439
1441
|
self._PageId = None
|
1442
|
+
self._LogicalOp = None
|
1440
1443
|
|
1441
1444
|
@property
|
1442
1445
|
def Name(self):
|
@@ -1528,6 +1531,8 @@ class AddCustomRuleRequest(AbstractModel):
|
|
1528
1531
|
|
1529
1532
|
@property
|
1530
1533
|
def Bypass(self):
|
1534
|
+
warnings.warn("parameter `Bypass` is deprecated", DeprecationWarning)
|
1535
|
+
|
1531
1536
|
"""放行时是否继续执行其它检查逻辑,继续执行地域封禁防护:geoip、继续执行CC策略防护:cc、继续执行WEB应用防护:owasp、继续执行AI引擎防护:ai、继续执行信息防泄漏防护:antileakage。如果多个勾选那么以,串接。默认是"geoip,cc,owasp,ai,antileakage"
|
1532
1537
|
:rtype: str
|
1533
1538
|
"""
|
@@ -1535,6 +1540,8 @@ class AddCustomRuleRequest(AbstractModel):
|
|
1535
1540
|
|
1536
1541
|
@Bypass.setter
|
1537
1542
|
def Bypass(self, Bypass):
|
1543
|
+
warnings.warn("parameter `Bypass` is deprecated", DeprecationWarning)
|
1544
|
+
|
1538
1545
|
self._Bypass = Bypass
|
1539
1546
|
|
1540
1547
|
@property
|
@@ -1614,6 +1621,17 @@ class AddCustomRuleRequest(AbstractModel):
|
|
1614
1621
|
def PageId(self, PageId):
|
1615
1622
|
self._PageId = PageId
|
1616
1623
|
|
1624
|
+
@property
|
1625
|
+
def LogicalOp(self):
|
1626
|
+
"""匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
1627
|
+
:rtype: str
|
1628
|
+
"""
|
1629
|
+
return self._LogicalOp
|
1630
|
+
|
1631
|
+
@LogicalOp.setter
|
1632
|
+
def LogicalOp(self, LogicalOp):
|
1633
|
+
self._LogicalOp = LogicalOp
|
1634
|
+
|
1617
1635
|
|
1618
1636
|
def _deserialize(self, params):
|
1619
1637
|
self._Name = params.get("Name")
|
@@ -1639,6 +1657,7 @@ class AddCustomRuleRequest(AbstractModel):
|
|
1639
1657
|
self._Label = params.get("Label")
|
1640
1658
|
self._Status = params.get("Status")
|
1641
1659
|
self._PageId = params.get("PageId")
|
1660
|
+
self._LogicalOp = params.get("LogicalOp")
|
1642
1661
|
memeber_set = set(params.keys())
|
1643
1662
|
for name, value in vars(self).items():
|
1644
1663
|
property_name = name[1:]
|
@@ -1720,14 +1739,14 @@ class AddCustomWhiteRuleRequest(AbstractModel):
|
|
1720
1739
|
:type Name: str
|
1721
1740
|
:param _SortId: 优先级
|
1722
1741
|
:type SortId: str
|
1723
|
-
:param _ExpireTime: 过期时间
|
1724
|
-
:type ExpireTime: str
|
1725
1742
|
:param _Strategies: 策略详情
|
1726
1743
|
:type Strategies: list of Strategy
|
1727
1744
|
:param _Domain: 需要添加策略的域名
|
1728
1745
|
:type Domain: str
|
1729
|
-
:param _Bypass:
|
1746
|
+
:param _Bypass: 放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)
|
1730
1747
|
:type Bypass: str
|
1748
|
+
:param _ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
|
1749
|
+
:type ExpireTime: str
|
1731
1750
|
:param _JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
|
1732
1751
|
:type JobType: str
|
1733
1752
|
:param _JobDateTime: 定时任务配置
|
@@ -1735,10 +1754,10 @@ class AddCustomWhiteRuleRequest(AbstractModel):
|
|
1735
1754
|
"""
|
1736
1755
|
self._Name = None
|
1737
1756
|
self._SortId = None
|
1738
|
-
self._ExpireTime = None
|
1739
1757
|
self._Strategies = None
|
1740
1758
|
self._Domain = None
|
1741
1759
|
self._Bypass = None
|
1760
|
+
self._ExpireTime = None
|
1742
1761
|
self._JobType = None
|
1743
1762
|
self._JobDateTime = None
|
1744
1763
|
|
@@ -1764,17 +1783,6 @@ class AddCustomWhiteRuleRequest(AbstractModel):
|
|
1764
1783
|
def SortId(self, SortId):
|
1765
1784
|
self._SortId = SortId
|
1766
1785
|
|
1767
|
-
@property
|
1768
|
-
def ExpireTime(self):
|
1769
|
-
"""过期时间
|
1770
|
-
:rtype: str
|
1771
|
-
"""
|
1772
|
-
return self._ExpireTime
|
1773
|
-
|
1774
|
-
@ExpireTime.setter
|
1775
|
-
def ExpireTime(self, ExpireTime):
|
1776
|
-
self._ExpireTime = ExpireTime
|
1777
|
-
|
1778
1786
|
@property
|
1779
1787
|
def Strategies(self):
|
1780
1788
|
"""策略详情
|
@@ -1799,7 +1807,7 @@ class AddCustomWhiteRuleRequest(AbstractModel):
|
|
1799
1807
|
|
1800
1808
|
@property
|
1801
1809
|
def Bypass(self):
|
1802
|
-
"""
|
1810
|
+
"""放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)
|
1803
1811
|
:rtype: str
|
1804
1812
|
"""
|
1805
1813
|
return self._Bypass
|
@@ -1808,6 +1816,17 @@ class AddCustomWhiteRuleRequest(AbstractModel):
|
|
1808
1816
|
def Bypass(self, Bypass):
|
1809
1817
|
self._Bypass = Bypass
|
1810
1818
|
|
1819
|
+
@property
|
1820
|
+
def ExpireTime(self):
|
1821
|
+
"""如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
|
1822
|
+
:rtype: str
|
1823
|
+
"""
|
1824
|
+
return self._ExpireTime
|
1825
|
+
|
1826
|
+
@ExpireTime.setter
|
1827
|
+
def ExpireTime(self, ExpireTime):
|
1828
|
+
self._ExpireTime = ExpireTime
|
1829
|
+
|
1811
1830
|
@property
|
1812
1831
|
def JobType(self):
|
1813
1832
|
"""规则执行的方式,TimedJob为定时执行,CronJob为周期执行
|
@@ -1834,7 +1853,6 @@ class AddCustomWhiteRuleRequest(AbstractModel):
|
|
1834
1853
|
def _deserialize(self, params):
|
1835
1854
|
self._Name = params.get("Name")
|
1836
1855
|
self._SortId = params.get("SortId")
|
1837
|
-
self._ExpireTime = params.get("ExpireTime")
|
1838
1856
|
if params.get("Strategies") is not None:
|
1839
1857
|
self._Strategies = []
|
1840
1858
|
for item in params.get("Strategies"):
|
@@ -1843,6 +1861,7 @@ class AddCustomWhiteRuleRequest(AbstractModel):
|
|
1843
1861
|
self._Strategies.append(obj)
|
1844
1862
|
self._Domain = params.get("Domain")
|
1845
1863
|
self._Bypass = params.get("Bypass")
|
1864
|
+
self._ExpireTime = params.get("ExpireTime")
|
1846
1865
|
self._JobType = params.get("JobType")
|
1847
1866
|
if params.get("JobDateTime") is not None:
|
1848
1867
|
self._JobDateTime = JobDateTime()
|
@@ -2193,6 +2212,10 @@ cdn-waf:CDN上的Web防护能力
|
|
2193
2212
|
:type GmEncPrivateKey: str
|
2194
2213
|
:param _GmSSLId: GmCertType为2时,需要填充此参数,表示腾讯云SSL平台托管的证书id
|
2195
2214
|
:type GmSSLId: str
|
2215
|
+
:param _UpstreamPolicy: 回源策略,支持负载均衡回源和分流回源两种方式。0:默认值,负载均衡回源;1:分流回源
|
2216
|
+
:type UpstreamPolicy: int
|
2217
|
+
:param _UpstreamRules: 分流回源时生效,分流回源的规则。
|
2218
|
+
:type UpstreamRules: list of UpstreamRule
|
2196
2219
|
"""
|
2197
2220
|
self._Domain = None
|
2198
2221
|
self._CertType = None
|
@@ -2239,6 +2262,8 @@ cdn-waf:CDN上的Web防护能力
|
|
2239
2262
|
self._GmEncCert = None
|
2240
2263
|
self._GmEncPrivateKey = None
|
2241
2264
|
self._GmSSLId = None
|
2265
|
+
self._UpstreamPolicy = None
|
2266
|
+
self._UpstreamRules = None
|
2242
2267
|
|
2243
2268
|
@property
|
2244
2269
|
def Domain(self):
|
@@ -2775,6 +2800,28 @@ cdn-waf:CDN上的Web防护能力
|
|
2775
2800
|
def GmSSLId(self, GmSSLId):
|
2776
2801
|
self._GmSSLId = GmSSLId
|
2777
2802
|
|
2803
|
+
@property
|
2804
|
+
def UpstreamPolicy(self):
|
2805
|
+
"""回源策略,支持负载均衡回源和分流回源两种方式。0:默认值,负载均衡回源;1:分流回源
|
2806
|
+
:rtype: int
|
2807
|
+
"""
|
2808
|
+
return self._UpstreamPolicy
|
2809
|
+
|
2810
|
+
@UpstreamPolicy.setter
|
2811
|
+
def UpstreamPolicy(self, UpstreamPolicy):
|
2812
|
+
self._UpstreamPolicy = UpstreamPolicy
|
2813
|
+
|
2814
|
+
@property
|
2815
|
+
def UpstreamRules(self):
|
2816
|
+
"""分流回源时生效,分流回源的规则。
|
2817
|
+
:rtype: list of UpstreamRule
|
2818
|
+
"""
|
2819
|
+
return self._UpstreamRules
|
2820
|
+
|
2821
|
+
@UpstreamRules.setter
|
2822
|
+
def UpstreamRules(self, UpstreamRules):
|
2823
|
+
self._UpstreamRules = UpstreamRules
|
2824
|
+
|
2778
2825
|
|
2779
2826
|
def _deserialize(self, params):
|
2780
2827
|
self._Domain = params.get("Domain")
|
@@ -2827,6 +2874,13 @@ cdn-waf:CDN上的Web防护能力
|
|
2827
2874
|
self._GmEncCert = params.get("GmEncCert")
|
2828
2875
|
self._GmEncPrivateKey = params.get("GmEncPrivateKey")
|
2829
2876
|
self._GmSSLId = params.get("GmSSLId")
|
2877
|
+
self._UpstreamPolicy = params.get("UpstreamPolicy")
|
2878
|
+
if params.get("UpstreamRules") is not None:
|
2879
|
+
self._UpstreamRules = []
|
2880
|
+
for item in params.get("UpstreamRules"):
|
2881
|
+
obj = UpstreamRule()
|
2882
|
+
obj._deserialize(item)
|
2883
|
+
self._UpstreamRules.append(obj)
|
2830
2884
|
memeber_set = set(params.keys())
|
2831
2885
|
for name, value in vars(self).items():
|
2832
2886
|
property_name = name[1:]
|
@@ -4113,7 +4167,7 @@ class BatchIpAccessControlItem(AbstractModel):
|
|
4113
4167
|
:type Ip: str
|
4114
4168
|
:param _Note: 备注
|
4115
4169
|
:type Note: str
|
4116
|
-
:param _Source:
|
4170
|
+
:param _Source: batch为批量域名,batch-group为防护对象组
|
4117
4171
|
:type Source: str
|
4118
4172
|
:param _TsVersion: 修改时间
|
4119
4173
|
:type TsVersion: int
|
@@ -4135,6 +4189,8 @@ class BatchIpAccessControlItem(AbstractModel):
|
|
4135
4189
|
:type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
|
4136
4190
|
:param _ValidStatus: 生效状态
|
4137
4191
|
:type ValidStatus: int
|
4192
|
+
:param _GroupIds: 防护对象组ID列表,如果绑定的是防护对象组
|
4193
|
+
:type GroupIds: list of int non-negative
|
4138
4194
|
"""
|
4139
4195
|
self._Id = None
|
4140
4196
|
self._ActionType = None
|
@@ -4151,9 +4207,12 @@ class BatchIpAccessControlItem(AbstractModel):
|
|
4151
4207
|
self._CronType = None
|
4152
4208
|
self._JobDateTime = None
|
4153
4209
|
self._ValidStatus = None
|
4210
|
+
self._GroupIds = None
|
4154
4211
|
|
4155
4212
|
@property
|
4156
4213
|
def Id(self):
|
4214
|
+
warnings.warn("parameter `Id` is deprecated", DeprecationWarning)
|
4215
|
+
|
4157
4216
|
"""mongo表自增Id
|
4158
4217
|
:rtype: str
|
4159
4218
|
"""
|
@@ -4161,6 +4220,8 @@ class BatchIpAccessControlItem(AbstractModel):
|
|
4161
4220
|
|
4162
4221
|
@Id.setter
|
4163
4222
|
def Id(self, Id):
|
4223
|
+
warnings.warn("parameter `Id` is deprecated", DeprecationWarning)
|
4224
|
+
|
4164
4225
|
self._Id = Id
|
4165
4226
|
|
4166
4227
|
@property
|
@@ -4176,6 +4237,8 @@ class BatchIpAccessControlItem(AbstractModel):
|
|
4176
4237
|
|
4177
4238
|
@property
|
4178
4239
|
def Ip(self):
|
4240
|
+
warnings.warn("parameter `Ip` is deprecated", DeprecationWarning)
|
4241
|
+
|
4179
4242
|
"""黑白名单的IP
|
4180
4243
|
:rtype: str
|
4181
4244
|
"""
|
@@ -4183,6 +4246,8 @@ class BatchIpAccessControlItem(AbstractModel):
|
|
4183
4246
|
|
4184
4247
|
@Ip.setter
|
4185
4248
|
def Ip(self, Ip):
|
4249
|
+
warnings.warn("parameter `Ip` is deprecated", DeprecationWarning)
|
4250
|
+
|
4186
4251
|
self._Ip = Ip
|
4187
4252
|
|
4188
4253
|
@property
|
@@ -4198,7 +4263,7 @@ class BatchIpAccessControlItem(AbstractModel):
|
|
4198
4263
|
|
4199
4264
|
@property
|
4200
4265
|
def Source(self):
|
4201
|
-
"""
|
4266
|
+
"""batch为批量域名,batch-group为防护对象组
|
4202
4267
|
:rtype: str
|
4203
4268
|
"""
|
4204
4269
|
return self._Source
|
@@ -4317,6 +4382,17 @@ class BatchIpAccessControlItem(AbstractModel):
|
|
4317
4382
|
def ValidStatus(self, ValidStatus):
|
4318
4383
|
self._ValidStatus = ValidStatus
|
4319
4384
|
|
4385
|
+
@property
|
4386
|
+
def GroupIds(self):
|
4387
|
+
"""防护对象组ID列表,如果绑定的是防护对象组
|
4388
|
+
:rtype: list of int non-negative
|
4389
|
+
"""
|
4390
|
+
return self._GroupIds
|
4391
|
+
|
4392
|
+
@GroupIds.setter
|
4393
|
+
def GroupIds(self, GroupIds):
|
4394
|
+
self._GroupIds = GroupIds
|
4395
|
+
|
4320
4396
|
|
4321
4397
|
def _deserialize(self, params):
|
4322
4398
|
self._Id = params.get("Id")
|
@@ -4336,6 +4412,7 @@ class BatchIpAccessControlItem(AbstractModel):
|
|
4336
4412
|
self._JobDateTime = JobDateTime()
|
4337
4413
|
self._JobDateTime._deserialize(params.get("JobDateTime"))
|
4338
4414
|
self._ValidStatus = params.get("ValidStatus")
|
4415
|
+
self._GroupIds = params.get("GroupIds")
|
4339
4416
|
memeber_set = set(params.keys())
|
4340
4417
|
for name, value in vars(self).items():
|
4341
4418
|
property_name = name[1:]
|
@@ -12153,7 +12230,7 @@ class DescribeBatchIpAccessControlRequest(AbstractModel):
|
|
12153
12230
|
|
12154
12231
|
def __init__(self):
|
12155
12232
|
r"""
|
12156
|
-
:param _Filters: 筛选条件,支持 ActionType
|
12233
|
+
:param _Filters: 筛选条件,支持 ActionType(可选的值为40:白名单,42:黑名单),ValidStatus(可选的值0:全部,1:生效,2:过期),Ip,Domains(域名列表),GroupId(防护对象组ID),GroupName(防护对象组名),RuleId(规则ID),TimerType(生效方式,1:永久生效,2:定时生效,3:按周周期生效,4:按月周期生效)
|
12157
12234
|
:type Filters: list of FiltersItemNew
|
12158
12235
|
:param _OffSet: 偏移
|
12159
12236
|
:type OffSet: int
|
@@ -12169,7 +12246,7 @@ class DescribeBatchIpAccessControlRequest(AbstractModel):
|
|
12169
12246
|
|
12170
12247
|
@property
|
12171
12248
|
def Filters(self):
|
12172
|
-
"""筛选条件,支持 ActionType
|
12249
|
+
"""筛选条件,支持 ActionType(可选的值为40:白名单,42:黑名单),ValidStatus(可选的值0:全部,1:生效,2:过期),Ip,Domains(域名列表),GroupId(防护对象组ID),GroupName(防护对象组名),RuleId(规则ID),TimerType(生效方式,1:永久生效,2:定时生效,3:按周周期生效,4:按月周期生效)
|
12173
12250
|
:rtype: list of FiltersItemNew
|
12174
12251
|
"""
|
12175
12252
|
return self._Filters
|
@@ -13254,6 +13331,8 @@ class DescribeCustomRulesRspRuleListItem(AbstractModel):
|
|
13254
13331
|
:type PageId: str
|
13255
13332
|
:param _Domain: 域名
|
13256
13333
|
:type Domain: str
|
13334
|
+
:param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
13335
|
+
:type LogicalOp: str
|
13257
13336
|
"""
|
13258
13337
|
self._ActionType = None
|
13259
13338
|
self._Bypass = None
|
@@ -13275,6 +13354,7 @@ class DescribeCustomRulesRspRuleListItem(AbstractModel):
|
|
13275
13354
|
self._Label = None
|
13276
13355
|
self._PageId = None
|
13277
13356
|
self._Domain = None
|
13357
|
+
self._LogicalOp = None
|
13278
13358
|
|
13279
13359
|
@property
|
13280
13360
|
def ActionType(self):
|
@@ -13496,6 +13576,17 @@ class DescribeCustomRulesRspRuleListItem(AbstractModel):
|
|
13496
13576
|
def Domain(self, Domain):
|
13497
13577
|
self._Domain = Domain
|
13498
13578
|
|
13579
|
+
@property
|
13580
|
+
def LogicalOp(self):
|
13581
|
+
"""匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
13582
|
+
:rtype: str
|
13583
|
+
"""
|
13584
|
+
return self._LogicalOp
|
13585
|
+
|
13586
|
+
@LogicalOp.setter
|
13587
|
+
def LogicalOp(self, LogicalOp):
|
13588
|
+
self._LogicalOp = LogicalOp
|
13589
|
+
|
13499
13590
|
|
13500
13591
|
def _deserialize(self, params):
|
13501
13592
|
self._ActionType = params.get("ActionType")
|
@@ -13525,6 +13616,7 @@ class DescribeCustomRulesRspRuleListItem(AbstractModel):
|
|
13525
13616
|
self._Label = params.get("Label")
|
13526
13617
|
self._PageId = params.get("PageId")
|
13527
13618
|
self._Domain = params.get("Domain")
|
13619
|
+
self._LogicalOp = params.get("LogicalOp")
|
13528
13620
|
memeber_set = set(params.keys())
|
13529
13621
|
for name, value in vars(self).items():
|
13530
13622
|
property_name = name[1:]
|
@@ -15581,7 +15673,7 @@ class DescribeIpAccessControlRequest(AbstractModel):
|
|
15581
15673
|
:type Sort: str
|
15582
15674
|
:param _Ip: IP
|
15583
15675
|
:type Ip: str
|
15584
|
-
:param _ValidStatus:
|
15676
|
+
:param _ValidStatus: 生效状态,1表示生效中,2表示过期,0表示全部
|
15585
15677
|
:type ValidStatus: int
|
15586
15678
|
:param _ValidTimeStampMin: 最小有效时间的时间戳
|
15587
15679
|
:type ValidTimeStampMin: str
|
@@ -15589,7 +15681,7 @@ class DescribeIpAccessControlRequest(AbstractModel):
|
|
15589
15681
|
:type ValidTimeStampMax: str
|
15590
15682
|
:param _RuleId: 规则ID
|
15591
15683
|
:type RuleId: int
|
15592
|
-
:param _TimerType:
|
15684
|
+
:param _TimerType: 0表示全部,1表示永久生效,2表示定时生效,3表示周粒度生效,4表示月粒度生效
|
15593
15685
|
:type TimerType: int
|
15594
15686
|
"""
|
15595
15687
|
self._Domain = None
|
@@ -15752,7 +15844,7 @@ class DescribeIpAccessControlRequest(AbstractModel):
|
|
15752
15844
|
|
15753
15845
|
@property
|
15754
15846
|
def ValidStatus(self):
|
15755
|
-
"""
|
15847
|
+
"""生效状态,1表示生效中,2表示过期,0表示全部
|
15756
15848
|
:rtype: int
|
15757
15849
|
"""
|
15758
15850
|
return self._ValidStatus
|
@@ -15796,7 +15888,7 @@ class DescribeIpAccessControlRequest(AbstractModel):
|
|
15796
15888
|
|
15797
15889
|
@property
|
15798
15890
|
def TimerType(self):
|
15799
|
-
"""
|
15891
|
+
"""0表示全部,1表示永久生效,2表示定时生效,3表示周粒度生效,4表示月粒度生效
|
15800
15892
|
:rtype: int
|
15801
15893
|
"""
|
15802
15894
|
return self._TimerType
|
@@ -15917,13 +16009,13 @@ class DescribeIpHitItemsRequest(AbstractModel):
|
|
15917
16009
|
:type CtsMax: int
|
15918
16010
|
:param _Skip: 偏移参数
|
15919
16011
|
:type Skip: int
|
15920
|
-
:param _Limit:
|
16012
|
+
:param _Limit: 限制数目,category不等于threat_intelligence时,该值需要必传
|
15921
16013
|
:type Limit: int
|
15922
16014
|
:param _Name: 策略名称
|
15923
16015
|
:type Name: str
|
15924
16016
|
:param _Sort: 排序参数
|
15925
16017
|
:type Sort: str
|
15926
|
-
:param _Ip: IP
|
16018
|
+
:param _Ip: IP,category传threat_intelligence的时候,该值必传
|
15927
16019
|
:type Ip: str
|
15928
16020
|
:param _ValidTimeStampMin: 有效时间最小时间戳
|
15929
16021
|
:type ValidTimeStampMin: int
|
@@ -16043,7 +16135,7 @@ class DescribeIpHitItemsRequest(AbstractModel):
|
|
16043
16135
|
|
16044
16136
|
@property
|
16045
16137
|
def Limit(self):
|
16046
|
-
"""
|
16138
|
+
"""限制数目,category不等于threat_intelligence时,该值需要必传
|
16047
16139
|
:rtype: int
|
16048
16140
|
"""
|
16049
16141
|
return self._Limit
|
@@ -16076,7 +16168,7 @@ class DescribeIpHitItemsRequest(AbstractModel):
|
|
16076
16168
|
|
16077
16169
|
@property
|
16078
16170
|
def Ip(self):
|
16079
|
-
"""IP
|
16171
|
+
"""IP,category传threat_intelligence的时候,该值必传
|
16080
16172
|
:rtype: str
|
16081
16173
|
"""
|
16082
16174
|
return self._Ip
|
@@ -20579,6 +20671,12 @@ https:使用https协议回源
|
|
20579
20671
|
:type Labels: list of str
|
20580
20672
|
:param _ProbeStatus: 拨测状态。 0: 禁用拨测, 1: 启用拨测
|
20581
20673
|
:type ProbeStatus: int
|
20674
|
+
:param _UpstreamPolicy: 回源策略。
|
20675
|
+
0:负载均衡回源
|
20676
|
+
1:分流回源
|
20677
|
+
:type UpstreamPolicy: int
|
20678
|
+
:param _UpstreamRules: 分流回源策略
|
20679
|
+
:type UpstreamRules: list of UpstreamRule
|
20582
20680
|
"""
|
20583
20681
|
self._Domain = None
|
20584
20682
|
self._DomainId = None
|
@@ -20631,6 +20729,8 @@ https:使用https协议回源
|
|
20631
20729
|
self._GmSSLId = None
|
20632
20730
|
self._Labels = None
|
20633
20731
|
self._ProbeStatus = None
|
20732
|
+
self._UpstreamPolicy = None
|
20733
|
+
self._UpstreamRules = None
|
20634
20734
|
|
20635
20735
|
@property
|
20636
20736
|
def Domain(self):
|
@@ -21238,6 +21338,30 @@ https:使用https协议回源
|
|
21238
21338
|
def ProbeStatus(self, ProbeStatus):
|
21239
21339
|
self._ProbeStatus = ProbeStatus
|
21240
21340
|
|
21341
|
+
@property
|
21342
|
+
def UpstreamPolicy(self):
|
21343
|
+
"""回源策略。
|
21344
|
+
0:负载均衡回源
|
21345
|
+
1:分流回源
|
21346
|
+
:rtype: int
|
21347
|
+
"""
|
21348
|
+
return self._UpstreamPolicy
|
21349
|
+
|
21350
|
+
@UpstreamPolicy.setter
|
21351
|
+
def UpstreamPolicy(self, UpstreamPolicy):
|
21352
|
+
self._UpstreamPolicy = UpstreamPolicy
|
21353
|
+
|
21354
|
+
@property
|
21355
|
+
def UpstreamRules(self):
|
21356
|
+
"""分流回源策略
|
21357
|
+
:rtype: list of UpstreamRule
|
21358
|
+
"""
|
21359
|
+
return self._UpstreamRules
|
21360
|
+
|
21361
|
+
@UpstreamRules.setter
|
21362
|
+
def UpstreamRules(self, UpstreamRules):
|
21363
|
+
self._UpstreamRules = UpstreamRules
|
21364
|
+
|
21241
21365
|
|
21242
21366
|
def _deserialize(self, params):
|
21243
21367
|
self._Domain = params.get("Domain")
|
@@ -21296,6 +21420,13 @@ https:使用https协议回源
|
|
21296
21420
|
self._GmSSLId = params.get("GmSSLId")
|
21297
21421
|
self._Labels = params.get("Labels")
|
21298
21422
|
self._ProbeStatus = params.get("ProbeStatus")
|
21423
|
+
self._UpstreamPolicy = params.get("UpstreamPolicy")
|
21424
|
+
if params.get("UpstreamRules") is not None:
|
21425
|
+
self._UpstreamRules = []
|
21426
|
+
for item in params.get("UpstreamRules"):
|
21427
|
+
obj = UpstreamRule()
|
21428
|
+
obj._deserialize(item)
|
21429
|
+
self._UpstreamRules.append(obj)
|
21299
21430
|
memeber_set = set(params.keys())
|
21300
21431
|
for name, value in vars(self).items():
|
21301
21432
|
property_name = name[1:]
|
@@ -25547,10 +25678,13 @@ class JobDateTime(AbstractModel):
|
|
25547
25678
|
def __init__(self):
|
25548
25679
|
r"""
|
25549
25680
|
:param _Timed: 定时执行的时间参数
|
25681
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
25550
25682
|
:type Timed: list of TimedJob
|
25551
25683
|
:param _Cron: 周期执行的时间参数
|
25684
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
25552
25685
|
:type Cron: list of CronJob
|
25553
25686
|
:param _TimeTZone: 时区
|
25687
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
25554
25688
|
:type TimeTZone: str
|
25555
25689
|
"""
|
25556
25690
|
self._Timed = None
|
@@ -25560,6 +25694,7 @@ class JobDateTime(AbstractModel):
|
|
25560
25694
|
@property
|
25561
25695
|
def Timed(self):
|
25562
25696
|
"""定时执行的时间参数
|
25697
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
25563
25698
|
:rtype: list of TimedJob
|
25564
25699
|
"""
|
25565
25700
|
return self._Timed
|
@@ -25571,6 +25706,7 @@ class JobDateTime(AbstractModel):
|
|
25571
25706
|
@property
|
25572
25707
|
def Cron(self):
|
25573
25708
|
"""周期执行的时间参数
|
25709
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
25574
25710
|
:rtype: list of CronJob
|
25575
25711
|
"""
|
25576
25712
|
return self._Cron
|
@@ -25582,6 +25718,7 @@ class JobDateTime(AbstractModel):
|
|
25582
25718
|
@property
|
25583
25719
|
def TimeTZone(self):
|
25584
25720
|
"""时区
|
25721
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
25585
25722
|
:rtype: str
|
25586
25723
|
"""
|
25587
25724
|
return self._TimeTZone
|
@@ -28166,6 +28303,8 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
28166
28303
|
:type Status: int
|
28167
28304
|
:param _PageId: 拦截页面id
|
28168
28305
|
:type PageId: str
|
28306
|
+
:param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
28307
|
+
:type LogicalOp: str
|
28169
28308
|
"""
|
28170
28309
|
self._Domain = None
|
28171
28310
|
self._RuleId = None
|
@@ -28182,6 +28321,7 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
28182
28321
|
self._Source = None
|
28183
28322
|
self._Status = None
|
28184
28323
|
self._PageId = None
|
28324
|
+
self._LogicalOp = None
|
28185
28325
|
|
28186
28326
|
@property
|
28187
28327
|
def Domain(self):
|
@@ -28262,6 +28402,8 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
28262
28402
|
|
28263
28403
|
@property
|
28264
28404
|
def Bypass(self):
|
28405
|
+
warnings.warn("parameter `Bypass` is deprecated", DeprecationWarning)
|
28406
|
+
|
28265
28407
|
"""放行时是否继续执行其它检查逻辑,继续执行地域封禁防护:geoip、继续执行CC策略防护:cc、继续执行WEB应用防护:owasp、继续执行AI引擎防护:ai、继续执行信息防泄漏防护:antileakage。如果多个勾选那么以,串接。
|
28266
28408
|
默认是"geoip,cc,owasp,ai,antileakage"
|
28267
28409
|
:rtype: str
|
@@ -28270,6 +28412,8 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
28270
28412
|
|
28271
28413
|
@Bypass.setter
|
28272
28414
|
def Bypass(self, Bypass):
|
28415
|
+
warnings.warn("parameter `Bypass` is deprecated", DeprecationWarning)
|
28416
|
+
|
28273
28417
|
self._Bypass = Bypass
|
28274
28418
|
|
28275
28419
|
@property
|
@@ -28351,6 +28495,17 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
28351
28495
|
def PageId(self, PageId):
|
28352
28496
|
self._PageId = PageId
|
28353
28497
|
|
28498
|
+
@property
|
28499
|
+
def LogicalOp(self):
|
28500
|
+
"""匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
28501
|
+
:rtype: str
|
28502
|
+
"""
|
28503
|
+
return self._LogicalOp
|
28504
|
+
|
28505
|
+
@LogicalOp.setter
|
28506
|
+
def LogicalOp(self, LogicalOp):
|
28507
|
+
self._LogicalOp = LogicalOp
|
28508
|
+
|
28354
28509
|
|
28355
28510
|
def _deserialize(self, params):
|
28356
28511
|
self._Domain = params.get("Domain")
|
@@ -28375,6 +28530,7 @@ class ModifyCustomRuleRequest(AbstractModel):
|
|
28375
28530
|
self._Source = params.get("Source")
|
28376
28531
|
self._Status = params.get("Status")
|
28377
28532
|
self._PageId = params.get("PageId")
|
28533
|
+
self._LogicalOp = params.get("LogicalOp")
|
28378
28534
|
memeber_set = set(params.keys())
|
28379
28535
|
for name, value in vars(self).items():
|
28380
28536
|
property_name = name[1:]
|
@@ -28593,7 +28749,7 @@ class ModifyCustomWhiteRuleRequest(AbstractModel):
|
|
28593
28749
|
:type Bypass: str
|
28594
28750
|
:param _SortId: 优先级,1~100的整数,数字越小,代表这条规则的执行优先级越高。
|
28595
28751
|
:type SortId: int
|
28596
|
-
:param _ExpireTime:
|
28752
|
+
:param _ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
|
28597
28753
|
:type ExpireTime: int
|
28598
28754
|
:param _Strategies: 匹配条件数组
|
28599
28755
|
:type Strategies: list of Strategy
|
@@ -28669,7 +28825,7 @@ class ModifyCustomWhiteRuleRequest(AbstractModel):
|
|
28669
28825
|
|
28670
28826
|
@property
|
28671
28827
|
def ExpireTime(self):
|
28672
|
-
"""
|
28828
|
+
"""如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
|
28673
28829
|
:rtype: int
|
28674
28830
|
"""
|
28675
28831
|
return self._ExpireTime
|
@@ -31123,6 +31279,10 @@ https:使用https协议回源
|
|
31123
31279
|
:type GmEncPrivateKey: str
|
31124
31280
|
:param _GmSSLId: GmCertType为2时,需要填充此参数,表示腾讯云SSL平台托管的证书id
|
31125
31281
|
:type GmSSLId: str
|
31282
|
+
:param _UpstreamPolicy: 回源策略,支持负载均衡回源和分流回源两种方式。0:默认值,负载均衡回源;1:分流回源
|
31283
|
+
:type UpstreamPolicy: int
|
31284
|
+
:param _UpstreamRules: 分流回源时生效,分流回源的规则。
|
31285
|
+
:type UpstreamRules: list of UpstreamRule
|
31126
31286
|
"""
|
31127
31287
|
self._Domain = None
|
31128
31288
|
self._DomainId = None
|
@@ -31168,6 +31328,8 @@ https:使用https协议回源
|
|
31168
31328
|
self._GmEncCert = None
|
31169
31329
|
self._GmEncPrivateKey = None
|
31170
31330
|
self._GmSSLId = None
|
31331
|
+
self._UpstreamPolicy = None
|
31332
|
+
self._UpstreamRules = None
|
31171
31333
|
|
31172
31334
|
@property
|
31173
31335
|
def Domain(self):
|
@@ -31659,6 +31821,28 @@ https:使用https协议回源
|
|
31659
31821
|
def GmSSLId(self, GmSSLId):
|
31660
31822
|
self._GmSSLId = GmSSLId
|
31661
31823
|
|
31824
|
+
@property
|
31825
|
+
def UpstreamPolicy(self):
|
31826
|
+
"""回源策略,支持负载均衡回源和分流回源两种方式。0:默认值,负载均衡回源;1:分流回源
|
31827
|
+
:rtype: int
|
31828
|
+
"""
|
31829
|
+
return self._UpstreamPolicy
|
31830
|
+
|
31831
|
+
@UpstreamPolicy.setter
|
31832
|
+
def UpstreamPolicy(self, UpstreamPolicy):
|
31833
|
+
self._UpstreamPolicy = UpstreamPolicy
|
31834
|
+
|
31835
|
+
@property
|
31836
|
+
def UpstreamRules(self):
|
31837
|
+
"""分流回源时生效,分流回源的规则。
|
31838
|
+
:rtype: list of UpstreamRule
|
31839
|
+
"""
|
31840
|
+
return self._UpstreamRules
|
31841
|
+
|
31842
|
+
@UpstreamRules.setter
|
31843
|
+
def UpstreamRules(self, UpstreamRules):
|
31844
|
+
self._UpstreamRules = UpstreamRules
|
31845
|
+
|
31662
31846
|
|
31663
31847
|
def _deserialize(self, params):
|
31664
31848
|
self._Domain = params.get("Domain")
|
@@ -31710,6 +31894,13 @@ https:使用https协议回源
|
|
31710
31894
|
self._GmEncCert = params.get("GmEncCert")
|
31711
31895
|
self._GmEncPrivateKey = params.get("GmEncPrivateKey")
|
31712
31896
|
self._GmSSLId = params.get("GmSSLId")
|
31897
|
+
self._UpstreamPolicy = params.get("UpstreamPolicy")
|
31898
|
+
if params.get("UpstreamRules") is not None:
|
31899
|
+
self._UpstreamRules = []
|
31900
|
+
for item in params.get("UpstreamRules"):
|
31901
|
+
obj = UpstreamRule()
|
31902
|
+
obj._deserialize(item)
|
31903
|
+
self._UpstreamRules.append(obj)
|
31713
31904
|
memeber_set = set(params.keys())
|
31714
31905
|
for name, value in vars(self).items():
|
31715
31906
|
property_name = name[1:]
|
@@ -35006,7 +35197,8 @@ class Strategy(AbstractModel):
|
|
35006
35197
|
:param _Field: 匹配字段
|
35007
35198
|
|
35008
35199
|
匹配字段不同,相应的匹配参数、逻辑符号、匹配内容有所不同具体如下所示:
|
35009
|
-
<table><thead><tr><th>匹配字段</th><th>匹配参数</th><th>逻辑符号</th><th>匹配内容</th></tr></thead><tbody><tr><td>IP(来源IP)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>多个IP以英文逗号隔开,最多20个</td></tr><tr><td>IPV6(来源IPv6)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>支持单个IPV6地址</td></tr><tr><td>Referer(Referer)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>URL(请求路径)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)<br/></td><td>请以/开头,512个字符以内</td></tr><tr><td>UserAgent(UserAgent)</td><td>不支持参数</td><td>同匹配字段<font color="Red">Referer</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>HTTP_METHOD(HTTP请求方法)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)</td><td>请输入方法名称,建议大写</td></tr><tr><td>QUERY_STRING(请求字符串)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET(GET参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_PARAMS_NAMES(GET参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST(POST参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_POST_NAMES(POST参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST_BODY(完整BODY)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入BODY内容,512个字符以内</td></tr><tr><td>COOKIE(Cookie)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>rematch(正则匹配)</td><td><font color="Red">暂不支持</font></td></tr><tr><td>GET_COOKIES_NAMES(Cookie参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>ARGS_COOKIE(Cookie参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_HEADERS_NAMES(Header参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,建议小写,512个字符以内</td></tr><tr><td>ARGS_HEADER(Header参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr></
|
35200
|
+
<table><thead><tr><th>匹配字段</th><th>匹配参数</th><th>逻辑符号</th><th>匹配内容</th></tr></thead><tbody><tr><td>IP(来源IP)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>多个IP以英文逗号隔开,最多20个</td></tr><tr><td>IPV6(来源IPv6)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>支持单个IPV6地址</td></tr><tr><td>Referer(Referer)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>URL(请求路径)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)<br/></td><td>请以/开头,512个字符以内</td></tr><tr><td>UserAgent(UserAgent)</td><td>不支持参数</td><td>同匹配字段<font color="Red">Referer</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>HTTP_METHOD(HTTP请求方法)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)</td><td>请输入方法名称,建议大写</td></tr><tr><td>QUERY_STRING(请求字符串)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET(GET参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_PARAMS_NAMES(GET参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST(POST参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_POST_NAMES(POST参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST_BODY(完整BODY)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入BODY内容,512个字符以内</td></tr><tr><td>COOKIE(Cookie)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>rematch(正则匹配)</td><td><font color="Red">暂不支持</font></td></tr><tr><td>GET_COOKIES_NAMES(Cookie参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>ARGS_COOKIE(Cookie参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_HEADERS_NAMES(Header参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,建议小写,512个字符以内</td></tr><tr><td>ARGS_HEADER(Header参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>CONTENT_LENGTH(Content-length)</td><td>支持参数录入</td><td>numgt(数值大于)<br/>numlt(数值小于)<br/>numeq(数值等于)<br/></td><td>请输入0-9999999999999之间的整数</td></tr><tr><td>IP_GEO(来源IP归属地)</td><td>支持参数录入</td><td>geo_in(属于)<br/>geo_not_in(不属于)<br/></td><td>请输入内容,10240字符以内,格式为序列化的JSON,格式为:[{"Country":"中国","Region":"广东","City":"深圳"}]</td></tr>
|
35201
|
+
</tbody></table>
|
35010
35202
|
:type Field: str
|
35011
35203
|
:param _CompareFunc: 逻辑符号
|
35012
35204
|
|
@@ -35024,6 +35216,11 @@ class Strategy(AbstractModel):
|
|
35024
35216
|
len_lt ( 长度小于)
|
35025
35217
|
ipmatch ( 属于)
|
35026
35218
|
ipnmatch ( 不属于)
|
35219
|
+
numgt ( 数值大于)
|
35220
|
+
numlt ( 数值小于)
|
35221
|
+
numeq ( 数值等于)
|
35222
|
+
geo_in ( IP地理属于)
|
35223
|
+
geo_not_in ( IP地理不属于)
|
35027
35224
|
各匹配字段对应的逻辑符号不同,详见上述匹配字段表格
|
35028
35225
|
|
35029
35226
|
:type CompareFunc: str
|
@@ -35057,7 +35254,8 @@ class Strategy(AbstractModel):
|
|
35057
35254
|
"""匹配字段
|
35058
35255
|
|
35059
35256
|
匹配字段不同,相应的匹配参数、逻辑符号、匹配内容有所不同具体如下所示:
|
35060
|
-
<table><thead><tr><th>匹配字段</th><th>匹配参数</th><th>逻辑符号</th><th>匹配内容</th></tr></thead><tbody><tr><td>IP(来源IP)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>多个IP以英文逗号隔开,最多20个</td></tr><tr><td>IPV6(来源IPv6)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>支持单个IPV6地址</td></tr><tr><td>Referer(Referer)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>URL(请求路径)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)<br/></td><td>请以/开头,512个字符以内</td></tr><tr><td>UserAgent(UserAgent)</td><td>不支持参数</td><td>同匹配字段<font color="Red">Referer</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>HTTP_METHOD(HTTP请求方法)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)</td><td>请输入方法名称,建议大写</td></tr><tr><td>QUERY_STRING(请求字符串)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET(GET参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_PARAMS_NAMES(GET参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST(POST参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_POST_NAMES(POST参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST_BODY(完整BODY)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入BODY内容,512个字符以内</td></tr><tr><td>COOKIE(Cookie)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>rematch(正则匹配)</td><td><font color="Red">暂不支持</font></td></tr><tr><td>GET_COOKIES_NAMES(Cookie参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>ARGS_COOKIE(Cookie参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_HEADERS_NAMES(Header参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,建议小写,512个字符以内</td></tr><tr><td>ARGS_HEADER(Header参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr></
|
35257
|
+
<table><thead><tr><th>匹配字段</th><th>匹配参数</th><th>逻辑符号</th><th>匹配内容</th></tr></thead><tbody><tr><td>IP(来源IP)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>多个IP以英文逗号隔开,最多20个</td></tr><tr><td>IPV6(来源IPv6)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>支持单个IPV6地址</td></tr><tr><td>Referer(Referer)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>URL(请求路径)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)<br/></td><td>请以/开头,512个字符以内</td></tr><tr><td>UserAgent(UserAgent)</td><td>不支持参数</td><td>同匹配字段<font color="Red">Referer</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>HTTP_METHOD(HTTP请求方法)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)</td><td>请输入方法名称,建议大写</td></tr><tr><td>QUERY_STRING(请求字符串)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET(GET参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_PARAMS_NAMES(GET参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST(POST参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_POST_NAMES(POST参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST_BODY(完整BODY)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入BODY内容,512个字符以内</td></tr><tr><td>COOKIE(Cookie)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>rematch(正则匹配)</td><td><font color="Red">暂不支持</font></td></tr><tr><td>GET_COOKIES_NAMES(Cookie参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>ARGS_COOKIE(Cookie参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_HEADERS_NAMES(Header参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,建议小写,512个字符以内</td></tr><tr><td>ARGS_HEADER(Header参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>CONTENT_LENGTH(Content-length)</td><td>支持参数录入</td><td>numgt(数值大于)<br/>numlt(数值小于)<br/>numeq(数值等于)<br/></td><td>请输入0-9999999999999之间的整数</td></tr><tr><td>IP_GEO(来源IP归属地)</td><td>支持参数录入</td><td>geo_in(属于)<br/>geo_not_in(不属于)<br/></td><td>请输入内容,10240字符以内,格式为序列化的JSON,格式为:[{"Country":"中国","Region":"广东","City":"深圳"}]</td></tr>
|
35258
|
+
</tbody></table>
|
35061
35259
|
:rtype: str
|
35062
35260
|
"""
|
35063
35261
|
return self._Field
|
@@ -35084,6 +35282,11 @@ class Strategy(AbstractModel):
|
|
35084
35282
|
len_lt ( 长度小于)
|
35085
35283
|
ipmatch ( 属于)
|
35086
35284
|
ipnmatch ( 不属于)
|
35285
|
+
numgt ( 数值大于)
|
35286
|
+
numlt ( 数值小于)
|
35287
|
+
numeq ( 数值等于)
|
35288
|
+
geo_in ( IP地理属于)
|
35289
|
+
geo_not_in ( IP地理不属于)
|
35087
35290
|
各匹配字段对应的逻辑符号不同,详见上述匹配字段表格
|
35088
35291
|
|
35089
35292
|
:rtype: str
|
@@ -35839,7 +36042,7 @@ class UpsertCCRuleRequest(AbstractModel):
|
|
35839
36042
|
:type Interval: str
|
35840
36043
|
:param _Url: 检测Url
|
35841
36044
|
:type Url: str
|
35842
|
-
:param _MatchFunc: 匹配方法,0表示等于,1表示前缀匹配,2
|
36045
|
+
:param _MatchFunc: 匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
|
35843
36046
|
:type MatchFunc: int
|
35844
36047
|
:param _ActionType: 动作,20表示观察,21表示人机识别,22表示拦截,23表示精准拦截,26表示精准人机识别,27表示JS校验
|
35845
36048
|
:type ActionType: str
|
@@ -35847,7 +36050,7 @@ class UpsertCCRuleRequest(AbstractModel):
|
|
35847
36050
|
:type Priority: int
|
35848
36051
|
:param _ValidTime: 动作有效时间
|
35849
36052
|
:type ValidTime: int
|
35850
|
-
:param _OptionsArr:
|
36053
|
+
:param _OptionsArr: [{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
|
35851
36054
|
:type OptionsArr: str
|
35852
36055
|
:param _Edition: waf版本,sparta-waf或者clb-waf
|
35853
36056
|
:type Edition: str
|
@@ -35963,7 +36166,7 @@ class UpsertCCRuleRequest(AbstractModel):
|
|
35963
36166
|
|
35964
36167
|
@property
|
35965
36168
|
def MatchFunc(self):
|
35966
|
-
"""匹配方法,0表示等于,1表示前缀匹配,2
|
36169
|
+
"""匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
|
35967
36170
|
:rtype: int
|
35968
36171
|
"""
|
35969
36172
|
return self._MatchFunc
|
@@ -36007,7 +36210,7 @@ class UpsertCCRuleRequest(AbstractModel):
|
|
36007
36210
|
|
36008
36211
|
@property
|
36009
36212
|
def OptionsArr(self):
|
36010
|
-
"""
|
36213
|
+
"""[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
|
36011
36214
|
:rtype: str
|
36012
36215
|
"""
|
36013
36216
|
return self._OptionsArr
|
@@ -36582,6 +36785,114 @@ class UpsertSessionResponse(AbstractModel):
|
|
36582
36785
|
self._RequestId = params.get("RequestId")
|
36583
36786
|
|
36584
36787
|
|
36788
|
+
class UpstreamRule(AbstractModel):
|
36789
|
+
"""SAASWAF规则回源时的规则数据结构
|
36790
|
+
|
36791
|
+
"""
|
36792
|
+
|
36793
|
+
def __init__(self):
|
36794
|
+
r"""
|
36795
|
+
:param _KeyName: 匹配的关键字。目前支持host、uri两种
|
36796
|
+
:type KeyName: str
|
36797
|
+
:param _Symbol: 逻辑符号。
|
36798
|
+
equal:等于
|
36799
|
+
not equal:不等于
|
36800
|
+
belong:属于
|
36801
|
+
not belong:不属于
|
36802
|
+
:type Symbol: str
|
36803
|
+
:param _ContentList: 匹配的内容。equal和not equal时,数组只能有一个元素
|
36804
|
+
:type ContentList: list of str
|
36805
|
+
:param _AddressList: 规则匹配后生效的回源地址。
|
36806
|
+
:type AddressList: list of str
|
36807
|
+
:param _BalanceType: 回源负载均衡类型,仅多个回源地址时生效。
|
36808
|
+
0:轮询
|
36809
|
+
1:IP_HASH
|
36810
|
+
:type BalanceType: int
|
36811
|
+
"""
|
36812
|
+
self._KeyName = None
|
36813
|
+
self._Symbol = None
|
36814
|
+
self._ContentList = None
|
36815
|
+
self._AddressList = None
|
36816
|
+
self._BalanceType = None
|
36817
|
+
|
36818
|
+
@property
|
36819
|
+
def KeyName(self):
|
36820
|
+
"""匹配的关键字。目前支持host、uri两种
|
36821
|
+
:rtype: str
|
36822
|
+
"""
|
36823
|
+
return self._KeyName
|
36824
|
+
|
36825
|
+
@KeyName.setter
|
36826
|
+
def KeyName(self, KeyName):
|
36827
|
+
self._KeyName = KeyName
|
36828
|
+
|
36829
|
+
@property
|
36830
|
+
def Symbol(self):
|
36831
|
+
"""逻辑符号。
|
36832
|
+
equal:等于
|
36833
|
+
not equal:不等于
|
36834
|
+
belong:属于
|
36835
|
+
not belong:不属于
|
36836
|
+
:rtype: str
|
36837
|
+
"""
|
36838
|
+
return self._Symbol
|
36839
|
+
|
36840
|
+
@Symbol.setter
|
36841
|
+
def Symbol(self, Symbol):
|
36842
|
+
self._Symbol = Symbol
|
36843
|
+
|
36844
|
+
@property
|
36845
|
+
def ContentList(self):
|
36846
|
+
"""匹配的内容。equal和not equal时,数组只能有一个元素
|
36847
|
+
:rtype: list of str
|
36848
|
+
"""
|
36849
|
+
return self._ContentList
|
36850
|
+
|
36851
|
+
@ContentList.setter
|
36852
|
+
def ContentList(self, ContentList):
|
36853
|
+
self._ContentList = ContentList
|
36854
|
+
|
36855
|
+
@property
|
36856
|
+
def AddressList(self):
|
36857
|
+
"""规则匹配后生效的回源地址。
|
36858
|
+
:rtype: list of str
|
36859
|
+
"""
|
36860
|
+
return self._AddressList
|
36861
|
+
|
36862
|
+
@AddressList.setter
|
36863
|
+
def AddressList(self, AddressList):
|
36864
|
+
self._AddressList = AddressList
|
36865
|
+
|
36866
|
+
@property
|
36867
|
+
def BalanceType(self):
|
36868
|
+
"""回源负载均衡类型,仅多个回源地址时生效。
|
36869
|
+
0:轮询
|
36870
|
+
1:IP_HASH
|
36871
|
+
:rtype: int
|
36872
|
+
"""
|
36873
|
+
return self._BalanceType
|
36874
|
+
|
36875
|
+
@BalanceType.setter
|
36876
|
+
def BalanceType(self, BalanceType):
|
36877
|
+
self._BalanceType = BalanceType
|
36878
|
+
|
36879
|
+
|
36880
|
+
def _deserialize(self, params):
|
36881
|
+
self._KeyName = params.get("KeyName")
|
36882
|
+
self._Symbol = params.get("Symbol")
|
36883
|
+
self._ContentList = params.get("ContentList")
|
36884
|
+
self._AddressList = params.get("AddressList")
|
36885
|
+
self._BalanceType = params.get("BalanceType")
|
36886
|
+
memeber_set = set(params.keys())
|
36887
|
+
for name, value in vars(self).items():
|
36888
|
+
property_name = name[1:]
|
36889
|
+
if property_name in memeber_set:
|
36890
|
+
memeber_set.remove(property_name)
|
36891
|
+
if len(memeber_set) > 0:
|
36892
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
36893
|
+
|
36894
|
+
|
36895
|
+
|
36585
36896
|
class UserDomainInfo(AbstractModel):
|
36586
36897
|
"""saas和clb信息
|
36587
36898
|
|