tencentcloud-sdk-python-cfw 3.1.21__tar.gz → 3.1.24__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 (17) hide show
  1. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud/cfw/v20190904/cfw_client.py +186 -0
  5. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud/cfw/v20190904/cfw_client_async.py +146 -0
  6. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud/cfw/v20190904/models.py +1418 -85
  7. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_cfw-3.1.24/tencentcloud_sdk_python_cfw.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_cfw-3.1.21/tencentcloud_sdk_python_cfw.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/README.rst +0 -0
  11. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud/cfw/__init__.py +0 -0
  13. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud/cfw/v20190904/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud/cfw/v20190904/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cfw-3.1.21 → tencentcloud_sdk_python_cfw-3.1.24}/tencentcloud_sdk_python_cfw.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cfw
3
- Version: 3.1.21
3
+ Version: 3.1.24
4
4
  Summary: Tencent Cloud Cfw SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.21
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.24
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -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.1.21,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.24,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cfw SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.21'
17
+ __version__ = '3.1.24'
@@ -808,6 +808,77 @@ class CfwClient(AbstractClient):
808
808
  raise TencentCloudSDKException(type(e).__name__, str(e))
809
809
 
810
810
 
811
+ def DescribeCcnAssociatedInstances(self, request):
812
+ r"""查询云联网关联的实例信息
813
+
814
+ :param request: Request instance for DescribeCcnAssociatedInstances.
815
+ :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeCcnAssociatedInstancesRequest`
816
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeCcnAssociatedInstancesResponse`
817
+
818
+ """
819
+ try:
820
+ params = request._serialize()
821
+ headers = request.headers
822
+ body = self.call("DescribeCcnAssociatedInstances", params, headers=headers)
823
+ response = json.loads(body)
824
+ model = models.DescribeCcnAssociatedInstancesResponse()
825
+ model._deserialize(response["Response"])
826
+ return model
827
+ except Exception as e:
828
+ if isinstance(e, TencentCloudSDKException):
829
+ raise
830
+ else:
831
+ raise TencentCloudSDKException(type(e).__name__, str(e))
832
+
833
+
834
+ def DescribeCcnInstanceRegionStatus(self, request):
835
+ r"""查询CCN关联实例的地域防火墙引流网络部署状态
836
+ 1.根据CCN ID和实例ID列表,返回实例对应地域的防火墙引流网络部署状态
837
+ 2.如果传入实例ID列表为空,则返回CCN关联的所有实例的地域防火墙引流网络部署状态
838
+
839
+ :param request: Request instance for DescribeCcnInstanceRegionStatus.
840
+ :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeCcnInstanceRegionStatusRequest`
841
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeCcnInstanceRegionStatusResponse`
842
+
843
+ """
844
+ try:
845
+ params = request._serialize()
846
+ headers = request.headers
847
+ body = self.call("DescribeCcnInstanceRegionStatus", params, headers=headers)
848
+ response = json.loads(body)
849
+ model = models.DescribeCcnInstanceRegionStatusResponse()
850
+ model._deserialize(response["Response"])
851
+ return model
852
+ except Exception as e:
853
+ if isinstance(e, TencentCloudSDKException):
854
+ raise
855
+ else:
856
+ raise TencentCloudSDKException(type(e).__name__, str(e))
857
+
858
+
859
+ def DescribeCcnVpcFwSwitch(self, request):
860
+ r"""查询CCN VPC防火墙开关配置
861
+
862
+ :param request: Request instance for DescribeCcnVpcFwSwitch.
863
+ :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeCcnVpcFwSwitchRequest`
864
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeCcnVpcFwSwitchResponse`
865
+
866
+ """
867
+ try:
868
+ params = request._serialize()
869
+ headers = request.headers
870
+ body = self.call("DescribeCcnVpcFwSwitch", params, headers=headers)
871
+ response = json.loads(body)
872
+ model = models.DescribeCcnVpcFwSwitchResponse()
873
+ model._deserialize(response["Response"])
874
+ return model
875
+ except Exception as e:
876
+ if isinstance(e, TencentCloudSDKException):
877
+ raise
878
+ else:
879
+ raise TencentCloudSDKException(type(e).__name__, str(e))
880
+
881
+
811
882
  def DescribeCfwEips(self, request):
812
883
  r"""查询防火墙弹性公网IP
813
884
 
@@ -1406,6 +1477,29 @@ class CfwClient(AbstractClient):
1406
1477
  raise TencentCloudSDKException(type(e).__name__, str(e))
1407
1478
 
1408
1479
 
1480
+ def DescribeSwitchError(self, request):
1481
+ r"""互联网边界防火墙开关横幅错误信息
1482
+
1483
+ :param request: Request instance for DescribeSwitchError.
1484
+ :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeSwitchErrorRequest`
1485
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeSwitchErrorResponse`
1486
+
1487
+ """
1488
+ try:
1489
+ params = request._serialize()
1490
+ headers = request.headers
1491
+ body = self.call("DescribeSwitchError", params, headers=headers)
1492
+ response = json.loads(body)
1493
+ model = models.DescribeSwitchErrorResponse()
1494
+ model._deserialize(response["Response"])
1495
+ return model
1496
+ except Exception as e:
1497
+ if isinstance(e, TencentCloudSDKException):
1498
+ raise
1499
+ else:
1500
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1501
+
1502
+
1409
1503
  def DescribeSwitchLists(self, request):
1410
1504
  r"""防火墙开关列表,请换用DescribeFwEdgeIps
1411
1505
 
@@ -1544,6 +1638,29 @@ class CfwClient(AbstractClient):
1544
1638
  raise TencentCloudSDKException(type(e).__name__, str(e))
1545
1639
 
1546
1640
 
1641
+ def DescribeVpcFwCcnPolicyWhiteList(self, request):
1642
+ r"""查询VPC防火墙策略路由功能开白的CCN列表
1643
+
1644
+ :param request: Request instance for DescribeVpcFwCcnPolicyWhiteList.
1645
+ :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeVpcFwCcnPolicyWhiteListRequest`
1646
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeVpcFwCcnPolicyWhiteListResponse`
1647
+
1648
+ """
1649
+ try:
1650
+ params = request._serialize()
1651
+ headers = request.headers
1652
+ body = self.call("DescribeVpcFwCcnPolicyWhiteList", params, headers=headers)
1653
+ response = json.loads(body)
1654
+ model = models.DescribeVpcFwCcnPolicyWhiteListResponse()
1655
+ model._deserialize(response["Response"])
1656
+ return model
1657
+ except Exception as e:
1658
+ if isinstance(e, TencentCloudSDKException):
1659
+ raise
1660
+ else:
1661
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1662
+
1663
+
1547
1664
  def DescribeVpcFwGroupSwitch(self, request):
1548
1665
  r"""VPC防火墙(组)开关列表
1549
1666
 
@@ -1846,6 +1963,29 @@ class CfwClient(AbstractClient):
1846
1963
  raise TencentCloudSDKException(type(e).__name__, str(e))
1847
1964
 
1848
1965
 
1966
+ def ModifyClusterVpcFwSwitch(self, request):
1967
+ r"""修改集群模式VPC防火墙开关
1968
+
1969
+ :param request: Request instance for ModifyClusterVpcFwSwitch.
1970
+ :type request: :class:`tencentcloud.cfw.v20190904.models.ModifyClusterVpcFwSwitchRequest`
1971
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.ModifyClusterVpcFwSwitchResponse`
1972
+
1973
+ """
1974
+ try:
1975
+ params = request._serialize()
1976
+ headers = request.headers
1977
+ body = self.call("ModifyClusterVpcFwSwitch", params, headers=headers)
1978
+ response = json.loads(body)
1979
+ model = models.ModifyClusterVpcFwSwitchResponse()
1980
+ model._deserialize(response["Response"])
1981
+ return model
1982
+ except Exception as e:
1983
+ if isinstance(e, TencentCloudSDKException):
1984
+ raise
1985
+ else:
1986
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1987
+
1988
+
1849
1989
  def ModifyEWRuleStatus(self, request):
1850
1990
  r"""启用停用VPC间规则或Nat边界规则
1851
1991
  VPC间规则需指定EdgeId。Nat边界规则需指定地域Region与Direction。
@@ -2602,6 +2742,52 @@ class CfwClient(AbstractClient):
2602
2742
  model = models.SyncFwOperateResponse()
2603
2743
  model._deserialize(response["Response"])
2604
2744
  return model
2745
+ except Exception as e:
2746
+ if isinstance(e, TencentCloudSDKException):
2747
+ raise
2748
+ else:
2749
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2750
+
2751
+
2752
+ def UpdateCheckCcnNonDirectFlag(self, request):
2753
+ r"""重新检测CCN中接入VPC防火墙的VPC实例非同城直通标记
2754
+
2755
+ :param request: Request instance for UpdateCheckCcnNonDirectFlag.
2756
+ :type request: :class:`tencentcloud.cfw.v20190904.models.UpdateCheckCcnNonDirectFlagRequest`
2757
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.UpdateCheckCcnNonDirectFlagResponse`
2758
+
2759
+ """
2760
+ try:
2761
+ params = request._serialize()
2762
+ headers = request.headers
2763
+ body = self.call("UpdateCheckCcnNonDirectFlag", params, headers=headers)
2764
+ response = json.loads(body)
2765
+ model = models.UpdateCheckCcnNonDirectFlagResponse()
2766
+ model._deserialize(response["Response"])
2767
+ return model
2768
+ except Exception as e:
2769
+ if isinstance(e, TencentCloudSDKException):
2770
+ raise
2771
+ else:
2772
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2773
+
2774
+
2775
+ def UpdateClusterVpcFw(self, request):
2776
+ r"""修改更新CCN中VPC防火墙策略配置
2777
+
2778
+ :param request: Request instance for UpdateClusterVpcFw.
2779
+ :type request: :class:`tencentcloud.cfw.v20190904.models.UpdateClusterVpcFwRequest`
2780
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.UpdateClusterVpcFwResponse`
2781
+
2782
+ """
2783
+ try:
2784
+ params = request._serialize()
2785
+ headers = request.headers
2786
+ body = self.call("UpdateClusterVpcFw", params, headers=headers)
2787
+ response = json.loads(body)
2788
+ model = models.UpdateClusterVpcFwResponse()
2789
+ model._deserialize(response["Response"])
2790
+ return model
2605
2791
  except Exception as e:
2606
2792
  if isinstance(e, TencentCloudSDKException):
2607
2793
  raise
@@ -637,6 +637,62 @@ class CfwClient(AbstractClient):
637
637
 
638
638
  return await self.call_and_deserialize(**kwargs)
639
639
 
640
+ async def DescribeCcnAssociatedInstances(
641
+ self,
642
+ request: models.DescribeCcnAssociatedInstancesRequest,
643
+ opts: Dict = None,
644
+ ) -> models.DescribeCcnAssociatedInstancesResponse:
645
+ """
646
+ 查询云联网关联的实例信息
647
+ """
648
+
649
+ kwargs = {}
650
+ kwargs["action"] = "DescribeCcnAssociatedInstances"
651
+ kwargs["params"] = request._serialize()
652
+ kwargs["resp_cls"] = models.DescribeCcnAssociatedInstancesResponse
653
+ kwargs["headers"] = request.headers
654
+ kwargs["opts"] = opts or {}
655
+
656
+ return await self.call_and_deserialize(**kwargs)
657
+
658
+ async def DescribeCcnInstanceRegionStatus(
659
+ self,
660
+ request: models.DescribeCcnInstanceRegionStatusRequest,
661
+ opts: Dict = None,
662
+ ) -> models.DescribeCcnInstanceRegionStatusResponse:
663
+ """
664
+ 查询CCN关联实例的地域防火墙引流网络部署状态
665
+ 1.根据CCN ID和实例ID列表,返回实例对应地域的防火墙引流网络部署状态
666
+ 2.如果传入实例ID列表为空,则返回CCN关联的所有实例的地域防火墙引流网络部署状态
667
+ """
668
+
669
+ kwargs = {}
670
+ kwargs["action"] = "DescribeCcnInstanceRegionStatus"
671
+ kwargs["params"] = request._serialize()
672
+ kwargs["resp_cls"] = models.DescribeCcnInstanceRegionStatusResponse
673
+ kwargs["headers"] = request.headers
674
+ kwargs["opts"] = opts or {}
675
+
676
+ return await self.call_and_deserialize(**kwargs)
677
+
678
+ async def DescribeCcnVpcFwSwitch(
679
+ self,
680
+ request: models.DescribeCcnVpcFwSwitchRequest,
681
+ opts: Dict = None,
682
+ ) -> models.DescribeCcnVpcFwSwitchResponse:
683
+ """
684
+ 查询CCN VPC防火墙开关配置
685
+ """
686
+
687
+ kwargs = {}
688
+ kwargs["action"] = "DescribeCcnVpcFwSwitch"
689
+ kwargs["params"] = request._serialize()
690
+ kwargs["resp_cls"] = models.DescribeCcnVpcFwSwitchResponse
691
+ kwargs["headers"] = request.headers
692
+ kwargs["opts"] = opts or {}
693
+
694
+ return await self.call_and_deserialize(**kwargs)
695
+
640
696
  async def DescribeCfwEips(
641
697
  self,
642
698
  request: models.DescribeCfwEipsRequest,
@@ -1105,6 +1161,24 @@ class CfwClient(AbstractClient):
1105
1161
 
1106
1162
  return await self.call_and_deserialize(**kwargs)
1107
1163
 
1164
+ async def DescribeSwitchError(
1165
+ self,
1166
+ request: models.DescribeSwitchErrorRequest,
1167
+ opts: Dict = None,
1168
+ ) -> models.DescribeSwitchErrorResponse:
1169
+ """
1170
+ 互联网边界防火墙开关横幅错误信息
1171
+ """
1172
+
1173
+ kwargs = {}
1174
+ kwargs["action"] = "DescribeSwitchError"
1175
+ kwargs["params"] = request._serialize()
1176
+ kwargs["resp_cls"] = models.DescribeSwitchErrorResponse
1177
+ kwargs["headers"] = request.headers
1178
+ kwargs["opts"] = opts or {}
1179
+
1180
+ return await self.call_and_deserialize(**kwargs)
1181
+
1108
1182
  async def DescribeSwitchLists(
1109
1183
  self,
1110
1184
  request: models.DescribeSwitchListsRequest,
@@ -1213,6 +1287,24 @@ class CfwClient(AbstractClient):
1213
1287
 
1214
1288
  return await self.call_and_deserialize(**kwargs)
1215
1289
 
1290
+ async def DescribeVpcFwCcnPolicyWhiteList(
1291
+ self,
1292
+ request: models.DescribeVpcFwCcnPolicyWhiteListRequest,
1293
+ opts: Dict = None,
1294
+ ) -> models.DescribeVpcFwCcnPolicyWhiteListResponse:
1295
+ """
1296
+ 查询VPC防火墙策略路由功能开白的CCN列表
1297
+ """
1298
+
1299
+ kwargs = {}
1300
+ kwargs["action"] = "DescribeVpcFwCcnPolicyWhiteList"
1301
+ kwargs["params"] = request._serialize()
1302
+ kwargs["resp_cls"] = models.DescribeVpcFwCcnPolicyWhiteListResponse
1303
+ kwargs["headers"] = request.headers
1304
+ kwargs["opts"] = opts or {}
1305
+
1306
+ return await self.call_and_deserialize(**kwargs)
1307
+
1216
1308
  async def DescribeVpcFwGroupSwitch(
1217
1309
  self,
1218
1310
  request: models.DescribeVpcFwGroupSwitchRequest,
@@ -1450,6 +1542,24 @@ class CfwClient(AbstractClient):
1450
1542
 
1451
1543
  return await self.call_and_deserialize(**kwargs)
1452
1544
 
1545
+ async def ModifyClusterVpcFwSwitch(
1546
+ self,
1547
+ request: models.ModifyClusterVpcFwSwitchRequest,
1548
+ opts: Dict = None,
1549
+ ) -> models.ModifyClusterVpcFwSwitchResponse:
1550
+ """
1551
+ 修改集群模式VPC防火墙开关
1552
+ """
1553
+
1554
+ kwargs = {}
1555
+ kwargs["action"] = "ModifyClusterVpcFwSwitch"
1556
+ kwargs["params"] = request._serialize()
1557
+ kwargs["resp_cls"] = models.ModifyClusterVpcFwSwitchResponse
1558
+ kwargs["headers"] = request.headers
1559
+ kwargs["opts"] = opts or {}
1560
+
1561
+ return await self.call_and_deserialize(**kwargs)
1562
+
1453
1563
  async def ModifyEWRuleStatus(
1454
1564
  self,
1455
1565
  request: models.ModifyEWRuleStatusRequest,
@@ -2046,4 +2156,40 @@ class CfwClient(AbstractClient):
2046
2156
  kwargs["headers"] = request.headers
2047
2157
  kwargs["opts"] = opts or {}
2048
2158
 
2159
+ return await self.call_and_deserialize(**kwargs)
2160
+
2161
+ async def UpdateCheckCcnNonDirectFlag(
2162
+ self,
2163
+ request: models.UpdateCheckCcnNonDirectFlagRequest,
2164
+ opts: Dict = None,
2165
+ ) -> models.UpdateCheckCcnNonDirectFlagResponse:
2166
+ """
2167
+ 重新检测CCN中接入VPC防火墙的VPC实例非同城直通标记
2168
+ """
2169
+
2170
+ kwargs = {}
2171
+ kwargs["action"] = "UpdateCheckCcnNonDirectFlag"
2172
+ kwargs["params"] = request._serialize()
2173
+ kwargs["resp_cls"] = models.UpdateCheckCcnNonDirectFlagResponse
2174
+ kwargs["headers"] = request.headers
2175
+ kwargs["opts"] = opts or {}
2176
+
2177
+ return await self.call_and_deserialize(**kwargs)
2178
+
2179
+ async def UpdateClusterVpcFw(
2180
+ self,
2181
+ request: models.UpdateClusterVpcFwRequest,
2182
+ opts: Dict = None,
2183
+ ) -> models.UpdateClusterVpcFwResponse:
2184
+ """
2185
+ 修改更新CCN中VPC防火墙策略配置
2186
+ """
2187
+
2188
+ kwargs = {}
2189
+ kwargs["action"] = "UpdateClusterVpcFw"
2190
+ kwargs["params"] = request._serialize()
2191
+ kwargs["resp_cls"] = models.UpdateClusterVpcFwResponse
2192
+ kwargs["headers"] = request.headers
2193
+ kwargs["opts"] = opts or {}
2194
+
2049
2195
  return await self.call_and_deserialize(**kwargs)