tencentcloud-sdk-python-cfw 3.0.1254__tar.gz → 3.0.1255__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-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/setup.py +1 -1
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud/cfw/v20190904/cfw_client.py +3 -1
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud/cfw/v20190904/models.py +81 -26
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cfw-3.0.1255/tencentcloud_sdk_python_cfw.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cfw-3.0.1254/tencentcloud_sdk_python_cfw.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/README.rst +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud/cfw/__init__.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud/cfw/v20190904/__init__.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud/cfw/v20190904/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1254 → tencentcloud-sdk-python-cfw-3.0.1255}/tencentcloud_sdk_python_cfw.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-cfw',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1255"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cfw SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1476,7 +1476,9 @@ class CfwClient(AbstractClient):
|
|
|
1476
1476
|
|
|
1477
1477
|
|
|
1478
1478
|
def DescribeSwitchLists(self, request):
|
|
1479
|
-
"""
|
|
1479
|
+
"""历史接口,已经废弃,产品有新的替代接口
|
|
1480
|
+
|
|
1481
|
+
防火墙开关列表,已废弃,请使用DescribeFwEdgeIps
|
|
1480
1482
|
|
|
1481
1483
|
:param request: Request instance for DescribeSwitchLists.
|
|
1482
1484
|
:type request: :class:`tencentcloud.cfw.v20190904.models.DescribeSwitchListsRequest`
|
|
@@ -1280,7 +1280,7 @@ class BlockIgnoreRule(AbstractModel):
|
|
|
1280
1280
|
|
|
1281
1281
|
def __init__(self):
|
|
1282
1282
|
r"""
|
|
1283
|
-
:param _RuleType: 1
|
|
1283
|
+
:param _RuleType: 规则类型,取值:1 封禁,2外部IP,3域名,4情报,5assets,6自定义策略,7入侵防御规则id (2-7属于白名单类型)
|
|
1284
1284
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1285
1285
|
:type RuleType: int
|
|
1286
1286
|
:param _Ioc: 规则ip或白名单内容
|
|
@@ -6345,15 +6345,15 @@ class DescribeAddressTemplateListRequest(AbstractModel):
|
|
|
6345
6345
|
:type Offset: int
|
|
6346
6346
|
:param _Limit: 条数,分页用
|
|
6347
6347
|
:type Limit: int
|
|
6348
|
-
:param _By:
|
|
6348
|
+
:param _By: 排序字段,取值:UpdateTime最近更新时间,RulesNum关联规则数
|
|
6349
6349
|
:type By: str
|
|
6350
|
-
:param _Order: 排序,取值
|
|
6350
|
+
:param _Order: 排序,取值 :asc正序,desc逆序
|
|
6351
6351
|
:type Order: str
|
|
6352
6352
|
:param _SearchValue: 搜索值
|
|
6353
6353
|
:type SearchValue: str
|
|
6354
6354
|
:param _Uuid: 检索地址模板唯一id
|
|
6355
6355
|
:type Uuid: str
|
|
6356
|
-
:param _TemplateType: 1:ip模板,5:域名模板,6:协议端口模板
|
|
6356
|
+
:param _TemplateType: 模板类型,取值:1:ip模板,5:域名模板,6:协议端口模板
|
|
6357
6357
|
:type TemplateType: str
|
|
6358
6358
|
:param _TemplateId: 模板Id
|
|
6359
6359
|
:type TemplateId: str
|
|
@@ -7705,7 +7705,11 @@ class DescribeEnterpriseSecurityGroupRuleListResponse(AbstractModel):
|
|
|
7705
7705
|
:type AllTotal: int
|
|
7706
7706
|
:param _Data: 规则列表
|
|
7707
7707
|
:type Data: list of EnterpriseSecurityGroupRuleRuleInfo
|
|
7708
|
-
:param _Enable:
|
|
7708
|
+
:param _Enable: 规则列表整体启用状态
|
|
7709
|
+
取值范围 0/1/2
|
|
7710
|
+
0.表示没有启用的(可以批量启用)
|
|
7711
|
+
1.表示没有禁用的(可以批量禁用)
|
|
7712
|
+
2 表示混合情况(不可批量操作)
|
|
7709
7713
|
:type Enable: int
|
|
7710
7714
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7711
7715
|
:type RequestId: str
|
|
@@ -12157,25 +12161,58 @@ class EnterpriseSecurityGroupRuleRuleInfo(AbstractModel):
|
|
|
12157
12161
|
:param _SourceId: 源规则内容
|
|
12158
12162
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12159
12163
|
:type SourceId: str
|
|
12160
|
-
:param _SourceType: 源规则类型
|
|
12164
|
+
:param _SourceType: 源规则类型
|
|
12165
|
+
取值范围 0/1/2/3/4/5/6/7/8/9/100
|
|
12166
|
+
0表示ip(net),
|
|
12167
|
+
1表示VPC实例(intance)
|
|
12168
|
+
2表示子网实例(intance)
|
|
12169
|
+
3表示CVM实例(intance)
|
|
12170
|
+
4表示CLB实例(intance)
|
|
12171
|
+
5表示ENI实例(intance)
|
|
12172
|
+
6表示数据库实例(intance)
|
|
12173
|
+
7表示模版(template)
|
|
12174
|
+
8表示标签(tag)
|
|
12175
|
+
9表示地域(region)
|
|
12176
|
+
100表示资产分组(resourcegroup)
|
|
12161
12177
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12162
12178
|
:type SourceType: int
|
|
12163
12179
|
:param _TargetId: 目的规则内容
|
|
12164
12180
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12165
12181
|
:type TargetId: str
|
|
12166
|
-
:param _TargetType: 目的规则类型
|
|
12182
|
+
:param _TargetType: 目的规则类型
|
|
12183
|
+
取值范围 0/1/2/3/4/5/6/7/8/9/100
|
|
12184
|
+
0表示ip(net),
|
|
12185
|
+
1表示VPC实例(intance)
|
|
12186
|
+
2表示子网实例(intance)
|
|
12187
|
+
3表示CVM实例(intance)
|
|
12188
|
+
4表示CLB实例(intance)
|
|
12189
|
+
5表示ENI实例(intance)
|
|
12190
|
+
6表示数据库实例(intance)
|
|
12191
|
+
7表示模版(template)
|
|
12192
|
+
8表示标签(tag)
|
|
12193
|
+
9表示地域(region)
|
|
12194
|
+
100表示资产分组(resourcegroup)
|
|
12167
12195
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12168
12196
|
:type TargetType: int
|
|
12169
12197
|
:param _Protocol: 协议名称
|
|
12198
|
+
取值范围:TCP/ANY/ICMP/UDP
|
|
12199
|
+
ANY:表示所有
|
|
12200
|
+
|
|
12170
12201
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12171
12202
|
:type Protocol: str
|
|
12172
12203
|
:param _Port: 端口
|
|
12173
12204
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12174
12205
|
:type Port: str
|
|
12175
|
-
:param _Strategy:
|
|
12206
|
+
:param _Strategy: 规则策略
|
|
12207
|
+
取值范围:1/2
|
|
12208
|
+
1:阻断
|
|
12209
|
+
2:放行
|
|
12176
12210
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12177
12211
|
:type Strategy: int
|
|
12178
|
-
:param _Status:
|
|
12212
|
+
:param _Status: 规则启用状态
|
|
12213
|
+
取值范围: 0/1
|
|
12214
|
+
0:未开启
|
|
12215
|
+
1:开启
|
|
12179
12216
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12180
12217
|
:type Status: int
|
|
12181
12218
|
:param _Detail: 描述
|
|
@@ -12184,13 +12221,18 @@ class EnterpriseSecurityGroupRuleRuleInfo(AbstractModel):
|
|
|
12184
12221
|
:param _AclTags: 标签
|
|
12185
12222
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12186
12223
|
:type AclTags: str
|
|
12187
|
-
:param _IsNew:
|
|
12224
|
+
:param _IsNew: 规则最新一次是否有改动
|
|
12225
|
+
取值范围:0/1
|
|
12226
|
+
0:否
|
|
12227
|
+
1:是
|
|
12188
12228
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12189
12229
|
:type IsNew: int
|
|
12190
12230
|
:param _Region: 地域
|
|
12191
12231
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12192
12232
|
:type Region: str
|
|
12193
|
-
:param _IsDelay:
|
|
12233
|
+
:param _IsDelay: 是否延迟下发规则
|
|
12234
|
+
取值范围:0/1
|
|
12235
|
+
0:立即下发 1:延迟下发
|
|
12194
12236
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12195
12237
|
:type IsDelay: int
|
|
12196
12238
|
:param _ServiceTemplateId: 服务模板id
|
|
@@ -12229,10 +12271,10 @@ class EnterpriseSecurityGroupRuleRuleInfo(AbstractModel):
|
|
|
12229
12271
|
:param _ProtocolPortName: 端口模板名称
|
|
12230
12272
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12231
12273
|
:type ProtocolPortName: str
|
|
12232
|
-
:param _BetaList:
|
|
12274
|
+
:param _BetaList: 自动化任务信息
|
|
12233
12275
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12234
12276
|
:type BetaList: list of EnterpriseSecurityGroupRuleBetaInfo
|
|
12235
|
-
:param _Id: 规则id
|
|
12277
|
+
:param _Id: 规则id 等同RuleUuid
|
|
12236
12278
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12237
12279
|
:type Id: int
|
|
12238
12280
|
"""
|
|
@@ -13649,17 +13691,17 @@ class IntrusionDefenseRule(AbstractModel):
|
|
|
13649
13691
|
:type IP: str
|
|
13650
13692
|
:param _Domain: 规则域名,IP与Domain必填其中之一
|
|
13651
13693
|
:type Domain: str
|
|
13652
|
-
:param _Comment: 备注信息,长度不能超过50
|
|
13653
|
-
:type Comment: str
|
|
13654
13694
|
:param _StartTime: 规则开始时间
|
|
13655
13695
|
:type StartTime: str
|
|
13696
|
+
:param _Comment: 备注信息,长度不能超过50
|
|
13697
|
+
:type Comment: str
|
|
13656
13698
|
"""
|
|
13657
13699
|
self._Direction = None
|
|
13658
13700
|
self._EndTime = None
|
|
13659
13701
|
self._IP = None
|
|
13660
13702
|
self._Domain = None
|
|
13661
|
-
self._Comment = None
|
|
13662
13703
|
self._StartTime = None
|
|
13704
|
+
self._Comment = None
|
|
13663
13705
|
|
|
13664
13706
|
@property
|
|
13665
13707
|
def Direction(self):
|
|
@@ -13693,14 +13735,6 @@ class IntrusionDefenseRule(AbstractModel):
|
|
|
13693
13735
|
def Domain(self, Domain):
|
|
13694
13736
|
self._Domain = Domain
|
|
13695
13737
|
|
|
13696
|
-
@property
|
|
13697
|
-
def Comment(self):
|
|
13698
|
-
return self._Comment
|
|
13699
|
-
|
|
13700
|
-
@Comment.setter
|
|
13701
|
-
def Comment(self, Comment):
|
|
13702
|
-
self._Comment = Comment
|
|
13703
|
-
|
|
13704
13738
|
@property
|
|
13705
13739
|
def StartTime(self):
|
|
13706
13740
|
return self._StartTime
|
|
@@ -13709,14 +13743,22 @@ class IntrusionDefenseRule(AbstractModel):
|
|
|
13709
13743
|
def StartTime(self, StartTime):
|
|
13710
13744
|
self._StartTime = StartTime
|
|
13711
13745
|
|
|
13746
|
+
@property
|
|
13747
|
+
def Comment(self):
|
|
13748
|
+
return self._Comment
|
|
13749
|
+
|
|
13750
|
+
@Comment.setter
|
|
13751
|
+
def Comment(self, Comment):
|
|
13752
|
+
self._Comment = Comment
|
|
13753
|
+
|
|
13712
13754
|
|
|
13713
13755
|
def _deserialize(self, params):
|
|
13714
13756
|
self._Direction = params.get("Direction")
|
|
13715
13757
|
self._EndTime = params.get("EndTime")
|
|
13716
13758
|
self._IP = params.get("IP")
|
|
13717
13759
|
self._Domain = params.get("Domain")
|
|
13718
|
-
self._Comment = params.get("Comment")
|
|
13719
13760
|
self._StartTime = params.get("StartTime")
|
|
13761
|
+
self._Comment = params.get("Comment")
|
|
13720
13762
|
memeber_set = set(params.keys())
|
|
13721
13763
|
for name, value in vars(self).items():
|
|
13722
13764
|
property_name = name[1:]
|
|
@@ -14890,7 +14932,7 @@ class ModifyBlockIgnoreRuleRequest(AbstractModel):
|
|
|
14890
14932
|
|
|
14891
14933
|
def __init__(self):
|
|
14892
14934
|
r"""
|
|
14893
|
-
:param _Rule:
|
|
14935
|
+
:param _Rule: 规则列表
|
|
14894
14936
|
:type Rule: :class:`tencentcloud.cfw.v20190904.models.IntrusionDefenseRule`
|
|
14895
14937
|
:param _RuleType: 规则类型,1封禁,2放通
|
|
14896
14938
|
:type RuleType: int
|
|
@@ -20899,6 +20941,9 @@ class TemplateListInfo(AbstractModel):
|
|
|
20899
20941
|
:param _IPNum: 模板包含地址数量
|
|
20900
20942
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
20901
20943
|
:type IPNum: int
|
|
20944
|
+
:param _IpVersion: IP版本,0,IPv4;1,IPv6
|
|
20945
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
20946
|
+
:type IpVersion: int
|
|
20902
20947
|
"""
|
|
20903
20948
|
self._Uuid = None
|
|
20904
20949
|
self._Name = None
|
|
@@ -20911,6 +20956,7 @@ class TemplateListInfo(AbstractModel):
|
|
|
20911
20956
|
self._TemplateId = None
|
|
20912
20957
|
self._ProtocolType = None
|
|
20913
20958
|
self._IPNum = None
|
|
20959
|
+
self._IpVersion = None
|
|
20914
20960
|
|
|
20915
20961
|
@property
|
|
20916
20962
|
def Uuid(self):
|
|
@@ -21000,6 +21046,14 @@ class TemplateListInfo(AbstractModel):
|
|
|
21000
21046
|
def IPNum(self, IPNum):
|
|
21001
21047
|
self._IPNum = IPNum
|
|
21002
21048
|
|
|
21049
|
+
@property
|
|
21050
|
+
def IpVersion(self):
|
|
21051
|
+
return self._IpVersion
|
|
21052
|
+
|
|
21053
|
+
@IpVersion.setter
|
|
21054
|
+
def IpVersion(self, IpVersion):
|
|
21055
|
+
self._IpVersion = IpVersion
|
|
21056
|
+
|
|
21003
21057
|
|
|
21004
21058
|
def _deserialize(self, params):
|
|
21005
21059
|
self._Uuid = params.get("Uuid")
|
|
@@ -21013,6 +21067,7 @@ class TemplateListInfo(AbstractModel):
|
|
|
21013
21067
|
self._TemplateId = params.get("TemplateId")
|
|
21014
21068
|
self._ProtocolType = params.get("ProtocolType")
|
|
21015
21069
|
self._IPNum = params.get("IPNum")
|
|
21070
|
+
self._IpVersion = params.get("IpVersion")
|
|
21016
21071
|
memeber_set = set(params.keys())
|
|
21017
21072
|
for name, value in vars(self).items():
|
|
21018
21073
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1255
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1254
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|