tencentcloud-sdk-python-vpc 3.1.27__tar.gz → 3.1.29__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_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/setup.py +1 -1
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud/vpc/v20170312/models.py +165 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud_sdk_python_vpc.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_vpc-3.1.29/tencentcloud_sdk_python_vpc.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_vpc-3.1.27/tencentcloud_sdk_python_vpc.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/README.rst +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/setup.cfg +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud/vpc/__init__.py +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud/vpc/v20170312/__init__.py +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud_sdk_python_vpc.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud_sdk_python_vpc.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.29}/tencentcloud_sdk_python_vpc.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-vpc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.29
|
|
4
4
|
Summary: Tencent Cloud Vpc 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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
|
|
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-vpc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.29,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Vpc SDK for Python',
|
|
@@ -1205,6 +1205,9 @@ UNSUPPORTEDOPERATION_NOTSUPPORTDELETEVPCBMPEER = 'UnsupportedOperation.NotSuppor
|
|
|
1205
1205
|
# 默认路由表,不支持修改。
|
|
1206
1206
|
UNSUPPORTEDOPERATION_NOTSUPPORTMODIFYDEFAULTCCNROUTETABLE = 'UnsupportedOperation.NotSupportModifyDefaultCcnRouteTable'
|
|
1207
1207
|
|
|
1208
|
+
# 不支持的自定义路由类型。
|
|
1209
|
+
UNSUPPORTEDOPERATION_NOTSUPPORTROUTETYPE = 'UnsupportedOperation.NotSupportRouteType'
|
|
1210
|
+
|
|
1208
1211
|
# 不支持编辑相同的实例和源地址。
|
|
1209
1212
|
UNSUPPORTEDOPERATION_NOTSUPPORTSAMECCNINSTANCEANDSOURCEADDRESS = 'UnsupportedOperation.NotSupportSameCcnInstanceAndSourceAddress'
|
|
1210
1213
|
|
|
@@ -58795,6 +58795,10 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58795
58795
|
:type CreateTime: str
|
|
58796
58796
|
:param _NetworkAclDirection: 方向,INGRESS或EGRESS,用于DescribeNetworkAclQuintupleEntries的出参。
|
|
58797
58797
|
:type NetworkAclDirection: str
|
|
58798
|
+
:param _SourceIPv6Cidr: IPv6源CIDR。
|
|
58799
|
+
:type SourceIPv6Cidr: str
|
|
58800
|
+
:param _DestinationIPv6Cidr: IPv6目的CIDR。
|
|
58801
|
+
:type DestinationIPv6Cidr: str
|
|
58798
58802
|
"""
|
|
58799
58803
|
self._Protocol = None
|
|
58800
58804
|
self._Description = None
|
|
@@ -58807,6 +58811,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58807
58811
|
self._Priority = None
|
|
58808
58812
|
self._CreateTime = None
|
|
58809
58813
|
self._NetworkAclDirection = None
|
|
58814
|
+
self._SourceIPv6Cidr = None
|
|
58815
|
+
self._DestinationIPv6Cidr = None
|
|
58810
58816
|
|
|
58811
58817
|
@property
|
|
58812
58818
|
def Protocol(self):
|
|
@@ -58929,6 +58935,28 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58929
58935
|
def NetworkAclDirection(self, NetworkAclDirection):
|
|
58930
58936
|
self._NetworkAclDirection = NetworkAclDirection
|
|
58931
58937
|
|
|
58938
|
+
@property
|
|
58939
|
+
def SourceIPv6Cidr(self):
|
|
58940
|
+
r"""IPv6源CIDR。
|
|
58941
|
+
:rtype: str
|
|
58942
|
+
"""
|
|
58943
|
+
return self._SourceIPv6Cidr
|
|
58944
|
+
|
|
58945
|
+
@SourceIPv6Cidr.setter
|
|
58946
|
+
def SourceIPv6Cidr(self, SourceIPv6Cidr):
|
|
58947
|
+
self._SourceIPv6Cidr = SourceIPv6Cidr
|
|
58948
|
+
|
|
58949
|
+
@property
|
|
58950
|
+
def DestinationIPv6Cidr(self):
|
|
58951
|
+
r"""IPv6目的CIDR。
|
|
58952
|
+
:rtype: str
|
|
58953
|
+
"""
|
|
58954
|
+
return self._DestinationIPv6Cidr
|
|
58955
|
+
|
|
58956
|
+
@DestinationIPv6Cidr.setter
|
|
58957
|
+
def DestinationIPv6Cidr(self, DestinationIPv6Cidr):
|
|
58958
|
+
self._DestinationIPv6Cidr = DestinationIPv6Cidr
|
|
58959
|
+
|
|
58932
58960
|
|
|
58933
58961
|
def _deserialize(self, params):
|
|
58934
58962
|
self._Protocol = params.get("Protocol")
|
|
@@ -58942,6 +58970,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58942
58970
|
self._Priority = params.get("Priority")
|
|
58943
58971
|
self._CreateTime = params.get("CreateTime")
|
|
58944
58972
|
self._NetworkAclDirection = params.get("NetworkAclDirection")
|
|
58973
|
+
self._SourceIPv6Cidr = params.get("SourceIPv6Cidr")
|
|
58974
|
+
self._DestinationIPv6Cidr = params.get("DestinationIPv6Cidr")
|
|
58945
58975
|
memeber_set = set(params.keys())
|
|
58946
58976
|
for name, value in vars(self).items():
|
|
58947
58977
|
property_name = name[1:]
|
|
@@ -62556,6 +62586,141 @@ class ReplaceRoutesResponse(AbstractModel):
|
|
|
62556
62586
|
self._RequestId = params.get("RequestId")
|
|
62557
62587
|
|
|
62558
62588
|
|
|
62589
|
+
class ReplaceRoutesWithRoutePolicyRequest(AbstractModel):
|
|
62590
|
+
r"""ReplaceRoutesWithRoutePolicy请求参数结构体
|
|
62591
|
+
|
|
62592
|
+
"""
|
|
62593
|
+
|
|
62594
|
+
def __init__(self):
|
|
62595
|
+
r"""
|
|
62596
|
+
:param _RouteTableId: 路由表实例ID。
|
|
62597
|
+
:type RouteTableId: str
|
|
62598
|
+
:param _Routes: 路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62599
|
+
:type Routes: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62600
|
+
"""
|
|
62601
|
+
self._RouteTableId = None
|
|
62602
|
+
self._Routes = None
|
|
62603
|
+
|
|
62604
|
+
@property
|
|
62605
|
+
def RouteTableId(self):
|
|
62606
|
+
r"""路由表实例ID。
|
|
62607
|
+
:rtype: str
|
|
62608
|
+
"""
|
|
62609
|
+
return self._RouteTableId
|
|
62610
|
+
|
|
62611
|
+
@RouteTableId.setter
|
|
62612
|
+
def RouteTableId(self, RouteTableId):
|
|
62613
|
+
self._RouteTableId = RouteTableId
|
|
62614
|
+
|
|
62615
|
+
@property
|
|
62616
|
+
def Routes(self):
|
|
62617
|
+
r"""路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62618
|
+
:rtype: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62619
|
+
"""
|
|
62620
|
+
return self._Routes
|
|
62621
|
+
|
|
62622
|
+
@Routes.setter
|
|
62623
|
+
def Routes(self, Routes):
|
|
62624
|
+
self._Routes = Routes
|
|
62625
|
+
|
|
62626
|
+
|
|
62627
|
+
def _deserialize(self, params):
|
|
62628
|
+
self._RouteTableId = params.get("RouteTableId")
|
|
62629
|
+
if params.get("Routes") is not None:
|
|
62630
|
+
self._Routes = []
|
|
62631
|
+
for item in params.get("Routes"):
|
|
62632
|
+
obj = ReplaceRoutesWithRoutePolicyRoute()
|
|
62633
|
+
obj._deserialize(item)
|
|
62634
|
+
self._Routes.append(obj)
|
|
62635
|
+
memeber_set = set(params.keys())
|
|
62636
|
+
for name, value in vars(self).items():
|
|
62637
|
+
property_name = name[1:]
|
|
62638
|
+
if property_name in memeber_set:
|
|
62639
|
+
memeber_set.remove(property_name)
|
|
62640
|
+
if len(memeber_set) > 0:
|
|
62641
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62642
|
+
|
|
62643
|
+
|
|
62644
|
+
|
|
62645
|
+
class ReplaceRoutesWithRoutePolicyResponse(AbstractModel):
|
|
62646
|
+
r"""ReplaceRoutesWithRoutePolicy返回参数结构体
|
|
62647
|
+
|
|
62648
|
+
"""
|
|
62649
|
+
|
|
62650
|
+
def __init__(self):
|
|
62651
|
+
r"""
|
|
62652
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62653
|
+
:type RequestId: str
|
|
62654
|
+
"""
|
|
62655
|
+
self._RequestId = None
|
|
62656
|
+
|
|
62657
|
+
@property
|
|
62658
|
+
def RequestId(self):
|
|
62659
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62660
|
+
:rtype: str
|
|
62661
|
+
"""
|
|
62662
|
+
return self._RequestId
|
|
62663
|
+
|
|
62664
|
+
@RequestId.setter
|
|
62665
|
+
def RequestId(self, RequestId):
|
|
62666
|
+
self._RequestId = RequestId
|
|
62667
|
+
|
|
62668
|
+
|
|
62669
|
+
def _deserialize(self, params):
|
|
62670
|
+
self._RequestId = params.get("RequestId")
|
|
62671
|
+
|
|
62672
|
+
|
|
62673
|
+
class ReplaceRoutesWithRoutePolicyRoute(AbstractModel):
|
|
62674
|
+
r"""匹配路由接收策略对象
|
|
62675
|
+
|
|
62676
|
+
"""
|
|
62677
|
+
|
|
62678
|
+
def __init__(self):
|
|
62679
|
+
r"""
|
|
62680
|
+
:param _RouteItemId: 路由唯一策略ID。
|
|
62681
|
+
:type RouteItemId: str
|
|
62682
|
+
:param _ForceMatchPolicy: 匹配路由接收策略标记。
|
|
62683
|
+
:type ForceMatchPolicy: bool
|
|
62684
|
+
"""
|
|
62685
|
+
self._RouteItemId = None
|
|
62686
|
+
self._ForceMatchPolicy = None
|
|
62687
|
+
|
|
62688
|
+
@property
|
|
62689
|
+
def RouteItemId(self):
|
|
62690
|
+
r"""路由唯一策略ID。
|
|
62691
|
+
:rtype: str
|
|
62692
|
+
"""
|
|
62693
|
+
return self._RouteItemId
|
|
62694
|
+
|
|
62695
|
+
@RouteItemId.setter
|
|
62696
|
+
def RouteItemId(self, RouteItemId):
|
|
62697
|
+
self._RouteItemId = RouteItemId
|
|
62698
|
+
|
|
62699
|
+
@property
|
|
62700
|
+
def ForceMatchPolicy(self):
|
|
62701
|
+
r"""匹配路由接收策略标记。
|
|
62702
|
+
:rtype: bool
|
|
62703
|
+
"""
|
|
62704
|
+
return self._ForceMatchPolicy
|
|
62705
|
+
|
|
62706
|
+
@ForceMatchPolicy.setter
|
|
62707
|
+
def ForceMatchPolicy(self, ForceMatchPolicy):
|
|
62708
|
+
self._ForceMatchPolicy = ForceMatchPolicy
|
|
62709
|
+
|
|
62710
|
+
|
|
62711
|
+
def _deserialize(self, params):
|
|
62712
|
+
self._RouteItemId = params.get("RouteItemId")
|
|
62713
|
+
self._ForceMatchPolicy = params.get("ForceMatchPolicy")
|
|
62714
|
+
memeber_set = set(params.keys())
|
|
62715
|
+
for name, value in vars(self).items():
|
|
62716
|
+
property_name = name[1:]
|
|
62717
|
+
if property_name in memeber_set:
|
|
62718
|
+
memeber_set.remove(property_name)
|
|
62719
|
+
if len(memeber_set) > 0:
|
|
62720
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62721
|
+
|
|
62722
|
+
|
|
62723
|
+
|
|
62559
62724
|
class ReplaceSecurityGroupPoliciesRequest(AbstractModel):
|
|
62560
62725
|
r"""ReplaceSecurityGroupPolicies请求参数结构体
|
|
62561
62726
|
|
|
@@ -9632,6 +9632,29 @@ class VpcClient(AbstractClient):
|
|
|
9632
9632
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
9633
9633
|
|
|
9634
9634
|
|
|
9635
|
+
def ReplaceRoutesWithRoutePolicy(self, request):
|
|
9636
|
+
r"""本接口(ReplaceRoutes)根据路由策略ID(RouteId)修改指定的路由策略(Route),支持批量修改。
|
|
9637
|
+
|
|
9638
|
+
:param request: Request instance for ReplaceRoutesWithRoutePolicy.
|
|
9639
|
+
:type request: :class:`tencentcloud.vpc.v20170312.models.ReplaceRoutesWithRoutePolicyRequest`
|
|
9640
|
+
:rtype: :class:`tencentcloud.vpc.v20170312.models.ReplaceRoutesWithRoutePolicyResponse`
|
|
9641
|
+
|
|
9642
|
+
"""
|
|
9643
|
+
try:
|
|
9644
|
+
params = request._serialize()
|
|
9645
|
+
headers = request.headers
|
|
9646
|
+
body = self.call("ReplaceRoutesWithRoutePolicy", params, headers=headers)
|
|
9647
|
+
response = json.loads(body)
|
|
9648
|
+
model = models.ReplaceRoutesWithRoutePolicyResponse()
|
|
9649
|
+
model._deserialize(response["Response"])
|
|
9650
|
+
return model
|
|
9651
|
+
except Exception as e:
|
|
9652
|
+
if isinstance(e, TencentCloudSDKException):
|
|
9653
|
+
raise
|
|
9654
|
+
else:
|
|
9655
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
9656
|
+
|
|
9657
|
+
|
|
9635
9658
|
def ReplaceSecurityGroupPolicies(self, request):
|
|
9636
9659
|
r"""本接口(ReplaceSecurityGroupPolicies)用于批量修改安全组规则(SecurityGroupPolicy)。
|
|
9637
9660
|
单个请求中只能替换单个方向的一条或多条规则, 必须要指定索引(PolicyIndex)。
|
|
@@ -7616,6 +7616,24 @@ class VpcClient(AbstractClient):
|
|
|
7616
7616
|
|
|
7617
7617
|
return await self.call_and_deserialize(**kwargs)
|
|
7618
7618
|
|
|
7619
|
+
async def ReplaceRoutesWithRoutePolicy(
|
|
7620
|
+
self,
|
|
7621
|
+
request: models.ReplaceRoutesWithRoutePolicyRequest,
|
|
7622
|
+
opts: Dict = None,
|
|
7623
|
+
) -> models.ReplaceRoutesWithRoutePolicyResponse:
|
|
7624
|
+
"""
|
|
7625
|
+
本接口(ReplaceRoutes)根据路由策略ID(RouteId)修改指定的路由策略(Route),支持批量修改。
|
|
7626
|
+
"""
|
|
7627
|
+
|
|
7628
|
+
kwargs = {}
|
|
7629
|
+
kwargs["action"] = "ReplaceRoutesWithRoutePolicy"
|
|
7630
|
+
kwargs["params"] = request._serialize()
|
|
7631
|
+
kwargs["resp_cls"] = models.ReplaceRoutesWithRoutePolicyResponse
|
|
7632
|
+
kwargs["headers"] = request.headers
|
|
7633
|
+
kwargs["opts"] = opts or {}
|
|
7634
|
+
|
|
7635
|
+
return await self.call_and_deserialize(**kwargs)
|
|
7636
|
+
|
|
7619
7637
|
async def ReplaceSecurityGroupPolicies(
|
|
7620
7638
|
self,
|
|
7621
7639
|
request: models.ReplaceSecurityGroupPoliciesRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-vpc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.29
|
|
4
4
|
Summary: Tencent Cloud Vpc 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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.29
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.27
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|