tencentcloud-sdk-python-cfw 3.0.1354__tar.gz → 3.0.1356__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.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/setup.py +1 -1
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/tencentcloud/cfw/v20190904/cfw_client.py +23 -0
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/tencentcloud/cfw/v20190904/models.py +224 -0
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cfw-3.0.1356/tencentcloud_sdk_python_cfw.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cfw-3.0.1354/tencentcloud_sdk_python_cfw.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/README.rst +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/tencentcloud/cfw/__init__.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/tencentcloud/cfw/v20190904/__init__.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/tencentcloud/cfw/v20190904/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cfw-3.0.1354 → tencentcloud-sdk-python-cfw-3.0.1356}/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.1356"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cfw SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -904,6 +904,29 @@ class CfwClient(AbstractClient):
|
|
|
904
904
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
905
905
|
|
|
906
906
|
|
|
907
|
+
def DescribeCfwInsStatus(self, request):
|
|
908
|
+
"""cfw实例运行状态查询
|
|
909
|
+
|
|
910
|
+
:param request: Request instance for DescribeCfwInsStatus.
|
|
911
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.DescribeCfwInsStatusRequest`
|
|
912
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeCfwInsStatusResponse`
|
|
913
|
+
|
|
914
|
+
"""
|
|
915
|
+
try:
|
|
916
|
+
params = request._serialize()
|
|
917
|
+
headers = request.headers
|
|
918
|
+
body = self.call("DescribeCfwInsStatus", params, headers=headers)
|
|
919
|
+
response = json.loads(body)
|
|
920
|
+
model = models.DescribeCfwInsStatusResponse()
|
|
921
|
+
model._deserialize(response["Response"])
|
|
922
|
+
return model
|
|
923
|
+
except Exception as e:
|
|
924
|
+
if isinstance(e, TencentCloudSDKException):
|
|
925
|
+
raise
|
|
926
|
+
else:
|
|
927
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
928
|
+
|
|
929
|
+
|
|
907
930
|
def DescribeDefenseSwitch(self, request):
|
|
908
931
|
"""获取入侵防御按钮列表
|
|
909
932
|
|
|
@@ -1731,6 +1731,159 @@ class BlockIgnoreRule(AbstractModel):
|
|
|
1731
1731
|
|
|
1732
1732
|
|
|
1733
1733
|
|
|
1734
|
+
class CfwInsStatus(AbstractModel):
|
|
1735
|
+
"""防火墙实例运行状态
|
|
1736
|
+
|
|
1737
|
+
"""
|
|
1738
|
+
|
|
1739
|
+
def __init__(self):
|
|
1740
|
+
r"""
|
|
1741
|
+
:param _CfwInsId: 防火墙实例id
|
|
1742
|
+
:type CfwInsId: str
|
|
1743
|
+
:param _FwType: 防火墙类型,nat:nat防火墙;ew:vpc间防火墙
|
|
1744
|
+
:type FwType: str
|
|
1745
|
+
:param _Region: 实例所属地域
|
|
1746
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1747
|
+
:type Region: str
|
|
1748
|
+
:param _Status: 实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass中
|
|
1749
|
+
:type Status: str
|
|
1750
|
+
:param _EventTime: 事件时间
|
|
1751
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1752
|
+
:type EventTime: str
|
|
1753
|
+
:param _RecoverTime: 恢复时间
|
|
1754
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1755
|
+
:type RecoverTime: str
|
|
1756
|
+
:param _CfwInsName: 实例名称
|
|
1757
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1758
|
+
:type CfwInsName: str
|
|
1759
|
+
:param _TrafficMode: Normal: 正常模式
|
|
1760
|
+
OnlyRoute: 透明模式
|
|
1761
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1762
|
+
:type TrafficMode: str
|
|
1763
|
+
"""
|
|
1764
|
+
self._CfwInsId = None
|
|
1765
|
+
self._FwType = None
|
|
1766
|
+
self._Region = None
|
|
1767
|
+
self._Status = None
|
|
1768
|
+
self._EventTime = None
|
|
1769
|
+
self._RecoverTime = None
|
|
1770
|
+
self._CfwInsName = None
|
|
1771
|
+
self._TrafficMode = None
|
|
1772
|
+
|
|
1773
|
+
@property
|
|
1774
|
+
def CfwInsId(self):
|
|
1775
|
+
"""防火墙实例id
|
|
1776
|
+
:rtype: str
|
|
1777
|
+
"""
|
|
1778
|
+
return self._CfwInsId
|
|
1779
|
+
|
|
1780
|
+
@CfwInsId.setter
|
|
1781
|
+
def CfwInsId(self, CfwInsId):
|
|
1782
|
+
self._CfwInsId = CfwInsId
|
|
1783
|
+
|
|
1784
|
+
@property
|
|
1785
|
+
def FwType(self):
|
|
1786
|
+
"""防火墙类型,nat:nat防火墙;ew:vpc间防火墙
|
|
1787
|
+
:rtype: str
|
|
1788
|
+
"""
|
|
1789
|
+
return self._FwType
|
|
1790
|
+
|
|
1791
|
+
@FwType.setter
|
|
1792
|
+
def FwType(self, FwType):
|
|
1793
|
+
self._FwType = FwType
|
|
1794
|
+
|
|
1795
|
+
@property
|
|
1796
|
+
def Region(self):
|
|
1797
|
+
"""实例所属地域
|
|
1798
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1799
|
+
:rtype: str
|
|
1800
|
+
"""
|
|
1801
|
+
return self._Region
|
|
1802
|
+
|
|
1803
|
+
@Region.setter
|
|
1804
|
+
def Region(self, Region):
|
|
1805
|
+
self._Region = Region
|
|
1806
|
+
|
|
1807
|
+
@property
|
|
1808
|
+
def Status(self):
|
|
1809
|
+
"""实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass中
|
|
1810
|
+
:rtype: str
|
|
1811
|
+
"""
|
|
1812
|
+
return self._Status
|
|
1813
|
+
|
|
1814
|
+
@Status.setter
|
|
1815
|
+
def Status(self, Status):
|
|
1816
|
+
self._Status = Status
|
|
1817
|
+
|
|
1818
|
+
@property
|
|
1819
|
+
def EventTime(self):
|
|
1820
|
+
"""事件时间
|
|
1821
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1822
|
+
:rtype: str
|
|
1823
|
+
"""
|
|
1824
|
+
return self._EventTime
|
|
1825
|
+
|
|
1826
|
+
@EventTime.setter
|
|
1827
|
+
def EventTime(self, EventTime):
|
|
1828
|
+
self._EventTime = EventTime
|
|
1829
|
+
|
|
1830
|
+
@property
|
|
1831
|
+
def RecoverTime(self):
|
|
1832
|
+
"""恢复时间
|
|
1833
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1834
|
+
:rtype: str
|
|
1835
|
+
"""
|
|
1836
|
+
return self._RecoverTime
|
|
1837
|
+
|
|
1838
|
+
@RecoverTime.setter
|
|
1839
|
+
def RecoverTime(self, RecoverTime):
|
|
1840
|
+
self._RecoverTime = RecoverTime
|
|
1841
|
+
|
|
1842
|
+
@property
|
|
1843
|
+
def CfwInsName(self):
|
|
1844
|
+
"""实例名称
|
|
1845
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1846
|
+
:rtype: str
|
|
1847
|
+
"""
|
|
1848
|
+
return self._CfwInsName
|
|
1849
|
+
|
|
1850
|
+
@CfwInsName.setter
|
|
1851
|
+
def CfwInsName(self, CfwInsName):
|
|
1852
|
+
self._CfwInsName = CfwInsName
|
|
1853
|
+
|
|
1854
|
+
@property
|
|
1855
|
+
def TrafficMode(self):
|
|
1856
|
+
"""Normal: 正常模式
|
|
1857
|
+
OnlyRoute: 透明模式
|
|
1858
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1859
|
+
:rtype: str
|
|
1860
|
+
"""
|
|
1861
|
+
return self._TrafficMode
|
|
1862
|
+
|
|
1863
|
+
@TrafficMode.setter
|
|
1864
|
+
def TrafficMode(self, TrafficMode):
|
|
1865
|
+
self._TrafficMode = TrafficMode
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
def _deserialize(self, params):
|
|
1869
|
+
self._CfwInsId = params.get("CfwInsId")
|
|
1870
|
+
self._FwType = params.get("FwType")
|
|
1871
|
+
self._Region = params.get("Region")
|
|
1872
|
+
self._Status = params.get("Status")
|
|
1873
|
+
self._EventTime = params.get("EventTime")
|
|
1874
|
+
self._RecoverTime = params.get("RecoverTime")
|
|
1875
|
+
self._CfwInsName = params.get("CfwInsName")
|
|
1876
|
+
self._TrafficMode = params.get("TrafficMode")
|
|
1877
|
+
memeber_set = set(params.keys())
|
|
1878
|
+
for name, value in vars(self).items():
|
|
1879
|
+
property_name = name[1:]
|
|
1880
|
+
if property_name in memeber_set:
|
|
1881
|
+
memeber_set.remove(property_name)
|
|
1882
|
+
if len(memeber_set) > 0:
|
|
1883
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
|
|
1734
1887
|
class CfwNatDnatRule(AbstractModel):
|
|
1735
1888
|
"""NAT防火墙Dnat规则
|
|
1736
1889
|
|
|
@@ -8690,6 +8843,77 @@ class DescribeCfwEipsResponse(AbstractModel):
|
|
|
8690
8843
|
self._RequestId = params.get("RequestId")
|
|
8691
8844
|
|
|
8692
8845
|
|
|
8846
|
+
class DescribeCfwInsStatusRequest(AbstractModel):
|
|
8847
|
+
"""DescribeCfwInsStatus请求参数结构体
|
|
8848
|
+
|
|
8849
|
+
"""
|
|
8850
|
+
|
|
8851
|
+
|
|
8852
|
+
class DescribeCfwInsStatusResponse(AbstractModel):
|
|
8853
|
+
"""DescribeCfwInsStatus返回参数结构体
|
|
8854
|
+
|
|
8855
|
+
"""
|
|
8856
|
+
|
|
8857
|
+
def __init__(self):
|
|
8858
|
+
r"""
|
|
8859
|
+
:param _CfwInsStatus: 防火墙实例运行状态
|
|
8860
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8861
|
+
:type CfwInsStatus: list of CfwInsStatus
|
|
8862
|
+
:param _TotalCount: 0
|
|
8863
|
+
:type TotalCount: int
|
|
8864
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8865
|
+
:type RequestId: str
|
|
8866
|
+
"""
|
|
8867
|
+
self._CfwInsStatus = None
|
|
8868
|
+
self._TotalCount = None
|
|
8869
|
+
self._RequestId = None
|
|
8870
|
+
|
|
8871
|
+
@property
|
|
8872
|
+
def CfwInsStatus(self):
|
|
8873
|
+
"""防火墙实例运行状态
|
|
8874
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8875
|
+
:rtype: list of CfwInsStatus
|
|
8876
|
+
"""
|
|
8877
|
+
return self._CfwInsStatus
|
|
8878
|
+
|
|
8879
|
+
@CfwInsStatus.setter
|
|
8880
|
+
def CfwInsStatus(self, CfwInsStatus):
|
|
8881
|
+
self._CfwInsStatus = CfwInsStatus
|
|
8882
|
+
|
|
8883
|
+
@property
|
|
8884
|
+
def TotalCount(self):
|
|
8885
|
+
"""0
|
|
8886
|
+
:rtype: int
|
|
8887
|
+
"""
|
|
8888
|
+
return self._TotalCount
|
|
8889
|
+
|
|
8890
|
+
@TotalCount.setter
|
|
8891
|
+
def TotalCount(self, TotalCount):
|
|
8892
|
+
self._TotalCount = TotalCount
|
|
8893
|
+
|
|
8894
|
+
@property
|
|
8895
|
+
def RequestId(self):
|
|
8896
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8897
|
+
:rtype: str
|
|
8898
|
+
"""
|
|
8899
|
+
return self._RequestId
|
|
8900
|
+
|
|
8901
|
+
@RequestId.setter
|
|
8902
|
+
def RequestId(self, RequestId):
|
|
8903
|
+
self._RequestId = RequestId
|
|
8904
|
+
|
|
8905
|
+
|
|
8906
|
+
def _deserialize(self, params):
|
|
8907
|
+
if params.get("CfwInsStatus") is not None:
|
|
8908
|
+
self._CfwInsStatus = []
|
|
8909
|
+
for item in params.get("CfwInsStatus"):
|
|
8910
|
+
obj = CfwInsStatus()
|
|
8911
|
+
obj._deserialize(item)
|
|
8912
|
+
self._CfwInsStatus.append(obj)
|
|
8913
|
+
self._TotalCount = params.get("TotalCount")
|
|
8914
|
+
self._RequestId = params.get("RequestId")
|
|
8915
|
+
|
|
8916
|
+
|
|
8693
8917
|
class DescribeDefenseSwitchRequest(AbstractModel):
|
|
8694
8918
|
"""DescribeDefenseSwitch请求参数结构体
|
|
8695
8919
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1356
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1354
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|