tencentcloud-sdk-python-waf 3.0.1467__tar.gz → 3.0.1490__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. tencentcloud_sdk_python_waf-3.0.1490/PKG-INFO +46 -0
  2. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/setup.py +1 -1
  3. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/tencentcloud/waf/v20180125/models.py +547 -2
  5. tencentcloud_sdk_python_waf-3.0.1490/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +46 -0
  6. tencentcloud_sdk_python_waf-3.0.1490/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
  7. tencentcloud-sdk-python-waf-3.0.1467/PKG-INFO +0 -45
  8. tencentcloud-sdk-python-waf-3.0.1467/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +0 -45
  9. tencentcloud-sdk-python-waf-3.0.1467/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/README.rst +0 -0
  11. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/tencentcloud/waf/__init__.py +0 -0
  13. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/tencentcloud/waf/v20180125/__init__.py +0 -0
  14. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
  15. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/tencentcloud/waf/v20180125/waf_client.py +0 -0
  16. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
  17. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
  18. {tencentcloud-sdk-python-waf-3.0.1467 → tencentcloud_sdk_python_waf-3.0.1490}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-waf
3
+ Version: 3.0.1490
4
+ Summary: Tencent Cloud Waf SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1490
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Waf SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-waf
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common waf
46
+
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-waf',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1467,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1490,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Waf SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1467'
17
+ __version__ = '3.0.1490'
@@ -6743,6 +6743,22 @@ class CCRuleItems(AbstractModel):
6743
6743
  :type PageId: str
6744
6744
  :param _ActionRatio: 动作灰度比例,默认值100
6745
6745
  :type ActionRatio: int
6746
+ :param _Domains: 批量cc规则配置的批量域名
6747
+ :type Domains: list of str
6748
+ :param _GroupIds: 批量cc规则使用的批量防护组
6749
+ :type GroupIds: list of int non-negative
6750
+ :param _JobType: 定时任务类型
6751
+ :type JobType: str
6752
+ :param _JobDateTime: 定时任务配置
6753
+ :type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
6754
+ :param _CronType: 定时任务类型:month or week
6755
+ :type CronType: str
6756
+ :param _ExpireTime: 过期时间
6757
+ :type ExpireTime: int
6758
+ :param _ValidStatus: 是否生效
6759
+ :type ValidStatus: int
6760
+ :param _Source: 来源:批量还是单个规则
6761
+ :type Source: str
6746
6762
  """
6747
6763
  self._Name = None
6748
6764
  self._Status = None
@@ -6765,6 +6781,14 @@ class CCRuleItems(AbstractModel):
6765
6781
  self._LogicalOp = None
6766
6782
  self._PageId = None
6767
6783
  self._ActionRatio = None
6784
+ self._Domains = None
6785
+ self._GroupIds = None
6786
+ self._JobType = None
6787
+ self._JobDateTime = None
6788
+ self._CronType = None
6789
+ self._ExpireTime = None
6790
+ self._ValidStatus = None
6791
+ self._Source = None
6768
6792
 
6769
6793
  @property
6770
6794
  def Name(self):
@@ -6997,6 +7021,94 @@ class CCRuleItems(AbstractModel):
6997
7021
  def ActionRatio(self, ActionRatio):
6998
7022
  self._ActionRatio = ActionRatio
6999
7023
 
7024
+ @property
7025
+ def Domains(self):
7026
+ r"""批量cc规则配置的批量域名
7027
+ :rtype: list of str
7028
+ """
7029
+ return self._Domains
7030
+
7031
+ @Domains.setter
7032
+ def Domains(self, Domains):
7033
+ self._Domains = Domains
7034
+
7035
+ @property
7036
+ def GroupIds(self):
7037
+ r"""批量cc规则使用的批量防护组
7038
+ :rtype: list of int non-negative
7039
+ """
7040
+ return self._GroupIds
7041
+
7042
+ @GroupIds.setter
7043
+ def GroupIds(self, GroupIds):
7044
+ self._GroupIds = GroupIds
7045
+
7046
+ @property
7047
+ def JobType(self):
7048
+ r"""定时任务类型
7049
+ :rtype: str
7050
+ """
7051
+ return self._JobType
7052
+
7053
+ @JobType.setter
7054
+ def JobType(self, JobType):
7055
+ self._JobType = JobType
7056
+
7057
+ @property
7058
+ def JobDateTime(self):
7059
+ r"""定时任务配置
7060
+ :rtype: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
7061
+ """
7062
+ return self._JobDateTime
7063
+
7064
+ @JobDateTime.setter
7065
+ def JobDateTime(self, JobDateTime):
7066
+ self._JobDateTime = JobDateTime
7067
+
7068
+ @property
7069
+ def CronType(self):
7070
+ r"""定时任务类型:month or week
7071
+ :rtype: str
7072
+ """
7073
+ return self._CronType
7074
+
7075
+ @CronType.setter
7076
+ def CronType(self, CronType):
7077
+ self._CronType = CronType
7078
+
7079
+ @property
7080
+ def ExpireTime(self):
7081
+ r"""过期时间
7082
+ :rtype: int
7083
+ """
7084
+ return self._ExpireTime
7085
+
7086
+ @ExpireTime.setter
7087
+ def ExpireTime(self, ExpireTime):
7088
+ self._ExpireTime = ExpireTime
7089
+
7090
+ @property
7091
+ def ValidStatus(self):
7092
+ r"""是否生效
7093
+ :rtype: int
7094
+ """
7095
+ return self._ValidStatus
7096
+
7097
+ @ValidStatus.setter
7098
+ def ValidStatus(self, ValidStatus):
7099
+ self._ValidStatus = ValidStatus
7100
+
7101
+ @property
7102
+ def Source(self):
7103
+ r"""来源:批量还是单个规则
7104
+ :rtype: str
7105
+ """
7106
+ return self._Source
7107
+
7108
+ @Source.setter
7109
+ def Source(self, Source):
7110
+ self._Source = Source
7111
+
7000
7112
 
7001
7113
  def _deserialize(self, params):
7002
7114
  self._Name = params.get("Name")
@@ -7020,6 +7132,16 @@ class CCRuleItems(AbstractModel):
7020
7132
  self._LogicalOp = params.get("LogicalOp")
7021
7133
  self._PageId = params.get("PageId")
7022
7134
  self._ActionRatio = params.get("ActionRatio")
7135
+ self._Domains = params.get("Domains")
7136
+ self._GroupIds = params.get("GroupIds")
7137
+ self._JobType = params.get("JobType")
7138
+ if params.get("JobDateTime") is not None:
7139
+ self._JobDateTime = JobDateTime()
7140
+ self._JobDateTime._deserialize(params.get("JobDateTime"))
7141
+ self._CronType = params.get("CronType")
7142
+ self._ExpireTime = params.get("ExpireTime")
7143
+ self._ValidStatus = params.get("ValidStatus")
7144
+ self._Source = params.get("Source")
7023
7145
  memeber_set = set(params.keys())
7024
7146
  for name, value in vars(self).items():
7025
7147
  property_name = name[1:]
@@ -7041,9 +7163,15 @@ class CCRuleLists(AbstractModel):
7041
7163
  :type TotalCount: int
7042
7164
  :param _Res: 规则
7043
7165
  :type Res: list of CCRuleItems
7166
+ :param _Limit: 规则限制总数
7167
+ :type Limit: int
7168
+ :param _Available: 规则剩余多少可用
7169
+ :type Available: int
7044
7170
  """
7045
7171
  self._TotalCount = None
7046
7172
  self._Res = None
7173
+ self._Limit = None
7174
+ self._Available = None
7047
7175
 
7048
7176
  @property
7049
7177
  def TotalCount(self):
@@ -7067,6 +7195,28 @@ class CCRuleLists(AbstractModel):
7067
7195
  def Res(self, Res):
7068
7196
  self._Res = Res
7069
7197
 
7198
+ @property
7199
+ def Limit(self):
7200
+ r"""规则限制总数
7201
+ :rtype: int
7202
+ """
7203
+ return self._Limit
7204
+
7205
+ @Limit.setter
7206
+ def Limit(self, Limit):
7207
+ self._Limit = Limit
7208
+
7209
+ @property
7210
+ def Available(self):
7211
+ r"""规则剩余多少可用
7212
+ :rtype: int
7213
+ """
7214
+ return self._Available
7215
+
7216
+ @Available.setter
7217
+ def Available(self, Available):
7218
+ self._Available = Available
7219
+
7070
7220
 
7071
7221
  def _deserialize(self, params):
7072
7222
  self._TotalCount = params.get("TotalCount")
@@ -7076,6 +7226,8 @@ class CCRuleLists(AbstractModel):
7076
7226
  obj = CCRuleItems()
7077
7227
  obj._deserialize(item)
7078
7228
  self._Res.append(obj)
7229
+ self._Limit = params.get("Limit")
7230
+ self._Available = params.get("Available")
7079
7231
  memeber_set = set(params.keys())
7080
7232
  for name, value in vars(self).items():
7081
7233
  property_name = name[1:]
@@ -9792,6 +9944,8 @@ class CreateOwaspWhiteRuleRequest(AbstractModel):
9792
9944
  :type ExpireTime: int
9793
9945
  :param _Status: 规则状态,0:关闭、1:开启,默认为开启
9794
9946
  :type Status: int
9947
+ :param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
9948
+ :type LogicalOp: str
9795
9949
  """
9796
9950
  self._Name = None
9797
9951
  self._Domain = None
@@ -9802,6 +9956,7 @@ class CreateOwaspWhiteRuleRequest(AbstractModel):
9802
9956
  self._JobDateTime = None
9803
9957
  self._ExpireTime = None
9804
9958
  self._Status = None
9959
+ self._LogicalOp = None
9805
9960
 
9806
9961
  @property
9807
9962
  def Name(self):
@@ -9902,6 +10057,17 @@ class CreateOwaspWhiteRuleRequest(AbstractModel):
9902
10057
  def Status(self, Status):
9903
10058
  self._Status = Status
9904
10059
 
10060
+ @property
10061
+ def LogicalOp(self):
10062
+ r"""匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
10063
+ :rtype: str
10064
+ """
10065
+ return self._LogicalOp
10066
+
10067
+ @LogicalOp.setter
10068
+ def LogicalOp(self, LogicalOp):
10069
+ self._LogicalOp = LogicalOp
10070
+
9905
10071
 
9906
10072
  def _deserialize(self, params):
9907
10073
  self._Name = params.get("Name")
@@ -9920,6 +10086,7 @@ class CreateOwaspWhiteRuleRequest(AbstractModel):
9920
10086
  self._JobDateTime._deserialize(params.get("JobDateTime"))
9921
10087
  self._ExpireTime = params.get("ExpireTime")
9922
10088
  self._Status = params.get("Status")
10089
+ self._LogicalOp = params.get("LogicalOp")
9923
10090
  memeber_set = set(params.keys())
9924
10091
  for name, value in vars(self).items():
9925
10092
  property_name = name[1:]
@@ -20281,6 +20448,8 @@ class DescribeModuleStatusResponse(AbstractModel):
20281
20448
  :type ApiProtection: int
20282
20449
  :param _RateLimit: 限流模块开关
20283
20450
  :type RateLimit: int
20451
+ :param _GzipAnalysis: gzip 开关
20452
+ :type GzipAnalysis: int
20284
20453
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20285
20454
  :type RequestId: str
20286
20455
  """
@@ -20291,6 +20460,7 @@ class DescribeModuleStatusResponse(AbstractModel):
20291
20460
  self._AntiLeakage = None
20292
20461
  self._ApiProtection = None
20293
20462
  self._RateLimit = None
20463
+ self._GzipAnalysis = None
20294
20464
  self._RequestId = None
20295
20465
 
20296
20466
  @property
@@ -20370,6 +20540,17 @@ class DescribeModuleStatusResponse(AbstractModel):
20370
20540
  def RateLimit(self, RateLimit):
20371
20541
  self._RateLimit = RateLimit
20372
20542
 
20543
+ @property
20544
+ def GzipAnalysis(self):
20545
+ r"""gzip 开关
20546
+ :rtype: int
20547
+ """
20548
+ return self._GzipAnalysis
20549
+
20550
+ @GzipAnalysis.setter
20551
+ def GzipAnalysis(self, GzipAnalysis):
20552
+ self._GzipAnalysis = GzipAnalysis
20553
+
20373
20554
  @property
20374
20555
  def RequestId(self):
20375
20556
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -20390,6 +20571,7 @@ class DescribeModuleStatusResponse(AbstractModel):
20390
20571
  self._AntiLeakage = params.get("AntiLeakage")
20391
20572
  self._ApiProtection = params.get("ApiProtection")
20392
20573
  self._RateLimit = params.get("RateLimit")
20574
+ self._GzipAnalysis = params.get("GzipAnalysis")
20393
20575
  self._RequestId = params.get("RequestId")
20394
20576
 
20395
20577
 
@@ -24659,7 +24841,21 @@ cdc-clb-waf:CDC环境下负载均衡型WAF实例
24659
24841
  :type LoadBalancerSet: list of LoadBalancerPackageNew
24660
24842
  :param _AppId: 用户id
24661
24843
  :type AppId: int
24662
- :param _State: 负载均衡型WAF域名LB监听器状态。
24844
+ :param _State: SAAS型WAF域名状态:
24845
+ -2:配置下发失败
24846
+ -1:配置下发中
24847
+ 0:DNS解析中
24848
+ 1:无DNS解析记录,请接入WAF
24849
+ 10:DNS解析未知,域名启用了代理
24850
+ 11:DNS解析异常,使用A记录接入WAF IP
24851
+ 200:检测源站不可达
24852
+ 220:源站不支持长连接
24853
+ 311:证书过期
24854
+ 312:证书即将过期
24855
+ 310:证书异常
24856
+ 316:备案异常
24857
+ 5:WAF回源已变更
24858
+ 负载均衡型WAF域名LB监听器状态:
24663
24859
  0:操作成功
24664
24860
  4:正在绑定LB
24665
24861
  6:正在解绑LB
@@ -25001,7 +25197,21 @@ cdc-clb-waf:CDC环境下负载均衡型WAF实例
25001
25197
 
25002
25198
  @property
25003
25199
  def State(self):
25004
- r"""负载均衡型WAF域名LB监听器状态。
25200
+ r"""SAAS型WAF域名状态:
25201
+ -2:配置下发失败
25202
+ -1:配置下发中
25203
+ 0:DNS解析中
25204
+ 1:无DNS解析记录,请接入WAF
25205
+ 10:DNS解析未知,域名启用了代理
25206
+ 11:DNS解析异常,使用A记录接入WAF IP
25207
+ 200:检测源站不可达
25208
+ 220:源站不支持长连接
25209
+ 311:证书过期
25210
+ 312:证书即将过期
25211
+ 310:证书异常
25212
+ 316:备案异常
25213
+ 5:WAF回源已变更
25214
+ 负载均衡型WAF域名LB监听器状态:
25005
25215
  0:操作成功
25006
25216
  4:正在绑定LB
25007
25217
  6:正在解绑LB
@@ -25676,6 +25886,28 @@ https:使用https协议回源
25676
25886
  :type UseCase: int
25677
25887
  :param _Gzip: gzip开关。0:关闭 1:默认值,打开。
25678
25888
  :type Gzip: int
25889
+ :param _State: SAAS型WAF域名状态:
25890
+ -2:配置下发失败
25891
+ -1:配置下发中
25892
+ 0:DNS解析中
25893
+ 1:无DNS解析记录,请接入WAF
25894
+ 10:DNS解析未知,域名启用了代理
25895
+ 11:DNS解析异常,使用A记录接入WAF IP
25896
+ 200:检测源站不可达
25897
+ 220:源站不支持长连接
25898
+ 311:证书过期
25899
+ 312:证书即将过期
25900
+ 310:证书异常
25901
+ 316:备案异常
25902
+ 5:WAF回源已变更
25903
+ 负载均衡型WAF域名LB监听器状态:
25904
+ 0:操作成功
25905
+ 4:正在绑定LB
25906
+ 6:正在解绑LB
25907
+ 7:解绑LB失败
25908
+ 8:绑定LB失败
25909
+ 10:内部错误
25910
+ :type State: int
25679
25911
  """
25680
25912
  self._Domain = None
25681
25913
  self._DomainId = None
@@ -25733,6 +25965,7 @@ https:使用https协议回源
25733
25965
  self._UpstreamRules = None
25734
25966
  self._UseCase = None
25735
25967
  self._Gzip = None
25968
+ self._State = None
25736
25969
 
25737
25970
  @property
25738
25971
  def Domain(self):
@@ -26401,6 +26634,37 @@ https:使用https协议回源
26401
26634
  def Gzip(self, Gzip):
26402
26635
  self._Gzip = Gzip
26403
26636
 
26637
+ @property
26638
+ def State(self):
26639
+ r"""SAAS型WAF域名状态:
26640
+ -2:配置下发失败
26641
+ -1:配置下发中
26642
+ 0:DNS解析中
26643
+ 1:无DNS解析记录,请接入WAF
26644
+ 10:DNS解析未知,域名启用了代理
26645
+ 11:DNS解析异常,使用A记录接入WAF IP
26646
+ 200:检测源站不可达
26647
+ 220:源站不支持长连接
26648
+ 311:证书过期
26649
+ 312:证书即将过期
26650
+ 310:证书异常
26651
+ 316:备案异常
26652
+ 5:WAF回源已变更
26653
+ 负载均衡型WAF域名LB监听器状态:
26654
+ 0:操作成功
26655
+ 4:正在绑定LB
26656
+ 6:正在解绑LB
26657
+ 7:解绑LB失败
26658
+ 8:绑定LB失败
26659
+ 10:内部错误
26660
+ :rtype: int
26661
+ """
26662
+ return self._State
26663
+
26664
+ @State.setter
26665
+ def State(self, State):
26666
+ self._State = State
26667
+
26404
26668
 
26405
26669
  def _deserialize(self, params):
26406
26670
  self._Domain = params.get("Domain")
@@ -26469,6 +26733,7 @@ https:使用https协议回源
26469
26733
  self._UpstreamRules.append(obj)
26470
26734
  self._UseCase = params.get("UseCase")
26471
26735
  self._Gzip = params.get("Gzip")
26736
+ self._State = params.get("State")
26472
26737
  memeber_set = set(params.keys())
26473
26738
  for name, value in vars(self).items():
26474
26739
  property_name = name[1:]
@@ -30662,6 +30927,10 @@ class InstanceInfo(AbstractModel):
30662
30927
  :type LLMPkg: :class:`tencentcloud.waf.v20180125.models.LLMPkg`
30663
30928
  :param _ElasticResourceId: 弹性资源Id
30664
30929
  :type ElasticResourceId: str
30930
+ :param _LLMMonPkg: 预付费大模型安全信息包
30931
+ :type LLMMonPkg: :class:`tencentcloud.waf.v20180125.models.LLMMonPkg`
30932
+ :param _RegionId: 地域id
30933
+ :type RegionId: int
30665
30934
  """
30666
30935
  self._InstanceId = None
30667
30936
  self._InstanceName = None
@@ -30713,6 +30982,8 @@ class InstanceInfo(AbstractModel):
30713
30982
  self._ExceedPolicy = None
30714
30983
  self._LLMPkg = None
30715
30984
  self._ElasticResourceId = None
30985
+ self._LLMMonPkg = None
30986
+ self._RegionId = None
30716
30987
 
30717
30988
  @property
30718
30989
  def InstanceId(self):
@@ -31275,6 +31546,28 @@ class InstanceInfo(AbstractModel):
31275
31546
  def ElasticResourceId(self, ElasticResourceId):
31276
31547
  self._ElasticResourceId = ElasticResourceId
31277
31548
 
31549
+ @property
31550
+ def LLMMonPkg(self):
31551
+ r"""预付费大模型安全信息包
31552
+ :rtype: :class:`tencentcloud.waf.v20180125.models.LLMMonPkg`
31553
+ """
31554
+ return self._LLMMonPkg
31555
+
31556
+ @LLMMonPkg.setter
31557
+ def LLMMonPkg(self, LLMMonPkg):
31558
+ self._LLMMonPkg = LLMMonPkg
31559
+
31560
+ @property
31561
+ def RegionId(self):
31562
+ r"""地域id
31563
+ :rtype: int
31564
+ """
31565
+ return self._RegionId
31566
+
31567
+ @RegionId.setter
31568
+ def RegionId(self, RegionId):
31569
+ self._RegionId = RegionId
31570
+
31278
31571
 
31279
31572
  def _deserialize(self, params):
31280
31573
  self._InstanceId = params.get("InstanceId")
@@ -31355,6 +31648,10 @@ class InstanceInfo(AbstractModel):
31355
31648
  self._LLMPkg = LLMPkg()
31356
31649
  self._LLMPkg._deserialize(params.get("LLMPkg"))
31357
31650
  self._ElasticResourceId = params.get("ElasticResourceId")
31651
+ if params.get("LLMMonPkg") is not None:
31652
+ self._LLMMonPkg = LLMMonPkg()
31653
+ self._LLMMonPkg._deserialize(params.get("LLMMonPkg"))
31654
+ self._RegionId = params.get("RegionId")
31358
31655
  memeber_set = set(params.keys())
31359
31656
  for name, value in vars(self).items():
31360
31657
  property_name = name[1:]
@@ -32087,6 +32384,164 @@ class KVInt(AbstractModel):
32087
32384
 
32088
32385
 
32089
32386
 
32387
+ class LLMMonPkg(AbstractModel):
32388
+ r"""有效预付费大模型安全包信息
32389
+
32390
+ """
32391
+
32392
+ def __init__(self):
32393
+ r"""
32394
+ :param _ResourceIds: 资源id
32395
+ :type ResourceIds: str
32396
+ :param _Status: 状态
32397
+ :type Status: int
32398
+ :param _Region: 地域
32399
+ :type Region: int
32400
+ :param _BeginTime: 开始时间
32401
+ :type BeginTime: str
32402
+ :param _EndTime: 结束时间
32403
+ :type EndTime: str
32404
+ :param _InquireKey: 计费项
32405
+ :type InquireKey: str
32406
+ :param _RenewFlag: 预付费大模型安全续费标识
32407
+ 0 手动续费;1自动续费;2 到期不续
32408
+ :type RenewFlag: int
32409
+ :param _UseToken: 大模型安全Token使用量
32410
+ :type UseToken: int
32411
+ :param _InstanceId: 实例id
32412
+ :type InstanceId: str
32413
+ """
32414
+ self._ResourceIds = None
32415
+ self._Status = None
32416
+ self._Region = None
32417
+ self._BeginTime = None
32418
+ self._EndTime = None
32419
+ self._InquireKey = None
32420
+ self._RenewFlag = None
32421
+ self._UseToken = None
32422
+ self._InstanceId = None
32423
+
32424
+ @property
32425
+ def ResourceIds(self):
32426
+ r"""资源id
32427
+ :rtype: str
32428
+ """
32429
+ return self._ResourceIds
32430
+
32431
+ @ResourceIds.setter
32432
+ def ResourceIds(self, ResourceIds):
32433
+ self._ResourceIds = ResourceIds
32434
+
32435
+ @property
32436
+ def Status(self):
32437
+ r"""状态
32438
+ :rtype: int
32439
+ """
32440
+ return self._Status
32441
+
32442
+ @Status.setter
32443
+ def Status(self, Status):
32444
+ self._Status = Status
32445
+
32446
+ @property
32447
+ def Region(self):
32448
+ r"""地域
32449
+ :rtype: int
32450
+ """
32451
+ return self._Region
32452
+
32453
+ @Region.setter
32454
+ def Region(self, Region):
32455
+ self._Region = Region
32456
+
32457
+ @property
32458
+ def BeginTime(self):
32459
+ r"""开始时间
32460
+ :rtype: str
32461
+ """
32462
+ return self._BeginTime
32463
+
32464
+ @BeginTime.setter
32465
+ def BeginTime(self, BeginTime):
32466
+ self._BeginTime = BeginTime
32467
+
32468
+ @property
32469
+ def EndTime(self):
32470
+ r"""结束时间
32471
+ :rtype: str
32472
+ """
32473
+ return self._EndTime
32474
+
32475
+ @EndTime.setter
32476
+ def EndTime(self, EndTime):
32477
+ self._EndTime = EndTime
32478
+
32479
+ @property
32480
+ def InquireKey(self):
32481
+ r"""计费项
32482
+ :rtype: str
32483
+ """
32484
+ return self._InquireKey
32485
+
32486
+ @InquireKey.setter
32487
+ def InquireKey(self, InquireKey):
32488
+ self._InquireKey = InquireKey
32489
+
32490
+ @property
32491
+ def RenewFlag(self):
32492
+ r"""预付费大模型安全续费标识
32493
+ 0 手动续费;1自动续费;2 到期不续
32494
+ :rtype: int
32495
+ """
32496
+ return self._RenewFlag
32497
+
32498
+ @RenewFlag.setter
32499
+ def RenewFlag(self, RenewFlag):
32500
+ self._RenewFlag = RenewFlag
32501
+
32502
+ @property
32503
+ def UseToken(self):
32504
+ r"""大模型安全Token使用量
32505
+ :rtype: int
32506
+ """
32507
+ return self._UseToken
32508
+
32509
+ @UseToken.setter
32510
+ def UseToken(self, UseToken):
32511
+ self._UseToken = UseToken
32512
+
32513
+ @property
32514
+ def InstanceId(self):
32515
+ r"""实例id
32516
+ :rtype: str
32517
+ """
32518
+ return self._InstanceId
32519
+
32520
+ @InstanceId.setter
32521
+ def InstanceId(self, InstanceId):
32522
+ self._InstanceId = InstanceId
32523
+
32524
+
32525
+ def _deserialize(self, params):
32526
+ self._ResourceIds = params.get("ResourceIds")
32527
+ self._Status = params.get("Status")
32528
+ self._Region = params.get("Region")
32529
+ self._BeginTime = params.get("BeginTime")
32530
+ self._EndTime = params.get("EndTime")
32531
+ self._InquireKey = params.get("InquireKey")
32532
+ self._RenewFlag = params.get("RenewFlag")
32533
+ self._UseToken = params.get("UseToken")
32534
+ self._InstanceId = params.get("InstanceId")
32535
+ memeber_set = set(params.keys())
32536
+ for name, value in vars(self).items():
32537
+ property_name = name[1:]
32538
+ if property_name in memeber_set:
32539
+ memeber_set.remove(property_name)
32540
+ if len(memeber_set) > 0:
32541
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
32542
+
32543
+
32544
+
32090
32545
  class LLMPkg(AbstractModel):
32091
32546
  r"""有效大模型安全包信息
32092
32547
 
@@ -38050,6 +38505,8 @@ class ModifyModuleStatusRequest(AbstractModel):
38050
38505
  :type AntiLeakage: int
38051
38506
  :param _RateLimit: 限流模块开关,0或1
38052
38507
  :type RateLimit: int
38508
+ :param _GzipAnalysis: gzip 开关
38509
+ :type GzipAnalysis: int
38053
38510
  """
38054
38511
  self._Domain = None
38055
38512
  self._WebSecurity = None
@@ -38059,6 +38516,7 @@ class ModifyModuleStatusRequest(AbstractModel):
38059
38516
  self._AntiTamper = None
38060
38517
  self._AntiLeakage = None
38061
38518
  self._RateLimit = None
38519
+ self._GzipAnalysis = None
38062
38520
 
38063
38521
  @property
38064
38522
  def Domain(self):
@@ -38148,6 +38606,17 @@ class ModifyModuleStatusRequest(AbstractModel):
38148
38606
  def RateLimit(self, RateLimit):
38149
38607
  self._RateLimit = RateLimit
38150
38608
 
38609
+ @property
38610
+ def GzipAnalysis(self):
38611
+ r"""gzip 开关
38612
+ :rtype: int
38613
+ """
38614
+ return self._GzipAnalysis
38615
+
38616
+ @GzipAnalysis.setter
38617
+ def GzipAnalysis(self, GzipAnalysis):
38618
+ self._GzipAnalysis = GzipAnalysis
38619
+
38151
38620
 
38152
38621
  def _deserialize(self, params):
38153
38622
  self._Domain = params.get("Domain")
@@ -38158,6 +38627,7 @@ class ModifyModuleStatusRequest(AbstractModel):
38158
38627
  self._AntiTamper = params.get("AntiTamper")
38159
38628
  self._AntiLeakage = params.get("AntiLeakage")
38160
38629
  self._RateLimit = params.get("RateLimit")
38630
+ self._GzipAnalysis = params.get("GzipAnalysis")
38161
38631
  memeber_set = set(params.keys())
38162
38632
  for name, value in vars(self).items():
38163
38633
  property_name = name[1:]
@@ -38783,6 +39253,8 @@ class ModifyOwaspWhiteRuleRequest(AbstractModel):
38783
39253
  :type ExpireTime: int
38784
39254
  :param _Status: 规则状态,0:关闭、1:开启,默认为开启
38785
39255
  :type Status: int
39256
+ :param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
39257
+ :type LogicalOp: str
38786
39258
  """
38787
39259
  self._RuleId = None
38788
39260
  self._Name = None
@@ -38794,6 +39266,7 @@ class ModifyOwaspWhiteRuleRequest(AbstractModel):
38794
39266
  self._JobDateTime = None
38795
39267
  self._ExpireTime = None
38796
39268
  self._Status = None
39269
+ self._LogicalOp = None
38797
39270
 
38798
39271
  @property
38799
39272
  def RuleId(self):
@@ -38905,6 +39378,17 @@ class ModifyOwaspWhiteRuleRequest(AbstractModel):
38905
39378
  def Status(self, Status):
38906
39379
  self._Status = Status
38907
39380
 
39381
+ @property
39382
+ def LogicalOp(self):
39383
+ r"""匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
39384
+ :rtype: str
39385
+ """
39386
+ return self._LogicalOp
39387
+
39388
+ @LogicalOp.setter
39389
+ def LogicalOp(self, LogicalOp):
39390
+ self._LogicalOp = LogicalOp
39391
+
38908
39392
 
38909
39393
  def _deserialize(self, params):
38910
39394
  self._RuleId = params.get("RuleId")
@@ -38924,6 +39408,7 @@ class ModifyOwaspWhiteRuleRequest(AbstractModel):
38924
39408
  self._JobDateTime._deserialize(params.get("JobDateTime"))
38925
39409
  self._ExpireTime = params.get("ExpireTime")
38926
39410
  self._Status = params.get("Status")
39411
+ self._LogicalOp = params.get("LogicalOp")
38927
39412
  memeber_set = set(params.keys())
38928
39413
  for name, value in vars(self).items():
38929
39414
  property_name = name[1:]
@@ -41274,6 +41759,8 @@ class OwaspWhiteRule(AbstractModel):
41274
41759
  :type CronType: str
41275
41760
  :param _ValidStatus: 当前是否有效
41276
41761
  :type ValidStatus: bool
41762
+ :param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
41763
+ :type LogicalOp: str
41277
41764
  """
41278
41765
  self._RuleId = None
41279
41766
  self._Name = None
@@ -41287,6 +41774,7 @@ class OwaspWhiteRule(AbstractModel):
41287
41774
  self._JobDateTime = None
41288
41775
  self._CronType = None
41289
41776
  self._ValidStatus = None
41777
+ self._LogicalOp = None
41290
41778
 
41291
41779
  @property
41292
41780
  def RuleId(self):
@@ -41420,6 +41908,17 @@ class OwaspWhiteRule(AbstractModel):
41420
41908
  def ValidStatus(self, ValidStatus):
41421
41909
  self._ValidStatus = ValidStatus
41422
41910
 
41911
+ @property
41912
+ def LogicalOp(self):
41913
+ r"""匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
41914
+ :rtype: str
41915
+ """
41916
+ return self._LogicalOp
41917
+
41918
+ @LogicalOp.setter
41919
+ def LogicalOp(self, LogicalOp):
41920
+ self._LogicalOp = LogicalOp
41921
+
41423
41922
 
41424
41923
  def _deserialize(self, params):
41425
41924
  self._RuleId = params.get("RuleId")
@@ -41441,6 +41940,7 @@ class OwaspWhiteRule(AbstractModel):
41441
41940
  self._JobDateTime._deserialize(params.get("JobDateTime"))
41442
41941
  self._CronType = params.get("CronType")
41443
41942
  self._ValidStatus = params.get("ValidStatus")
41943
+ self._LogicalOp = params.get("LogicalOp")
41444
41944
  memeber_set = set(params.keys())
41445
41945
  for name, value in vars(self).items():
41446
41946
  property_name = name[1:]
@@ -47162,6 +47662,8 @@ class UpsertCCRuleRequest(AbstractModel):
47162
47662
  :type PageId: str
47163
47663
  :param _ActionRatio: 动作灰度比例,默认值100
47164
47664
  :type ActionRatio: int
47665
+ :param _Source: 规则来源
47666
+ :type Source: str
47165
47667
  """
47166
47668
  self._Domain = None
47167
47669
  self._Name = None
@@ -47187,6 +47689,7 @@ class UpsertCCRuleRequest(AbstractModel):
47187
47689
  self._LogicalOp = None
47188
47690
  self._PageId = None
47189
47691
  self._ActionRatio = None
47692
+ self._Source = None
47190
47693
 
47191
47694
  @property
47192
47695
  def Domain(self):
@@ -47452,6 +47955,17 @@ class UpsertCCRuleRequest(AbstractModel):
47452
47955
  def ActionRatio(self, ActionRatio):
47453
47956
  self._ActionRatio = ActionRatio
47454
47957
 
47958
+ @property
47959
+ def Source(self):
47960
+ r"""规则来源
47961
+ :rtype: str
47962
+ """
47963
+ return self._Source
47964
+
47965
+ @Source.setter
47966
+ def Source(self, Source):
47967
+ self._Source = Source
47968
+
47455
47969
 
47456
47970
  def _deserialize(self, params):
47457
47971
  self._Domain = params.get("Domain")
@@ -47478,6 +47992,7 @@ class UpsertCCRuleRequest(AbstractModel):
47478
47992
  self._LogicalOp = params.get("LogicalOp")
47479
47993
  self._PageId = params.get("PageId")
47480
47994
  self._ActionRatio = params.get("ActionRatio")
47995
+ self._Source = params.get("Source")
47481
47996
  memeber_set = set(params.keys())
47482
47997
  for name, value in vars(self).items():
47483
47998
  property_name = name[1:]
@@ -49007,6 +49522,10 @@ class WafRuleLimit(AbstractModel):
49007
49522
  :type ClientMsg: int
49008
49523
  :param _TrafficMarking: 流量标记的规格
49009
49524
  :type TrafficMarking: int
49525
+ :param _BatchCC: 批量cc
49526
+ :type BatchCC: int
49527
+ :param _BatchSession: 批量session
49528
+ :type BatchSession: int
49010
49529
  """
49011
49530
  self._CC = None
49012
49531
  self._CustomRule = None
@@ -49021,6 +49540,8 @@ class WafRuleLimit(AbstractModel):
49021
49540
  self._ApiSecurity = None
49022
49541
  self._ClientMsg = None
49023
49542
  self._TrafficMarking = None
49543
+ self._BatchCC = None
49544
+ self._BatchSession = None
49024
49545
 
49025
49546
  @property
49026
49547
  def CC(self):
@@ -49165,6 +49686,28 @@ class WafRuleLimit(AbstractModel):
49165
49686
  def TrafficMarking(self, TrafficMarking):
49166
49687
  self._TrafficMarking = TrafficMarking
49167
49688
 
49689
+ @property
49690
+ def BatchCC(self):
49691
+ r"""批量cc
49692
+ :rtype: int
49693
+ """
49694
+ return self._BatchCC
49695
+
49696
+ @BatchCC.setter
49697
+ def BatchCC(self, BatchCC):
49698
+ self._BatchCC = BatchCC
49699
+
49700
+ @property
49701
+ def BatchSession(self):
49702
+ r"""批量session
49703
+ :rtype: int
49704
+ """
49705
+ return self._BatchSession
49706
+
49707
+ @BatchSession.setter
49708
+ def BatchSession(self, BatchSession):
49709
+ self._BatchSession = BatchSession
49710
+
49168
49711
 
49169
49712
  def _deserialize(self, params):
49170
49713
  self._CC = params.get("CC")
@@ -49180,6 +49723,8 @@ class WafRuleLimit(AbstractModel):
49180
49723
  self._ApiSecurity = params.get("ApiSecurity")
49181
49724
  self._ClientMsg = params.get("ClientMsg")
49182
49725
  self._TrafficMarking = params.get("TrafficMarking")
49726
+ self._BatchCC = params.get("BatchCC")
49727
+ self._BatchSession = params.get("BatchSession")
49183
49728
  memeber_set = set(params.keys())
49184
49729
  for name, value in vars(self).items():
49185
49730
  property_name = name[1:]
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-waf
3
+ Version: 3.0.1490
4
+ Summary: Tencent Cloud Waf SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1490
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Waf SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-waf
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common waf
46
+
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1490
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.1467
4
- Summary: Tencent Cloud Waf SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Waf SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-waf
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common waf
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.1467
4
- Summary: Tencent Cloud Waf SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Waf SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-waf
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common waf
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1467