tencentcloud-sdk-python-vpc 3.1.27__tar.gz → 3.1.32__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.32}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/setup.py +1 -1
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud/vpc/v20170312/errorcodes.py +9 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud/vpc/v20170312/models.py +240 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud_sdk_python_vpc.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_vpc-3.1.32/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.32}/README.rst +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/setup.cfg +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud/vpc/__init__.py +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud/vpc/v20170312/__init__.py +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud_sdk_python_vpc.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/tencentcloud_sdk_python_vpc.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.32}/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.32
|
|
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.32
|
|
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.32,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Vpc SDK for Python',
|
|
@@ -209,6 +209,9 @@ INVALIDPARAMETERVALUE_BANDWIDTHTOOSMALL = 'InvalidParameterValue.BandwidthTooSma
|
|
|
209
209
|
# 指定云联网关联黑石私有网络数量达到上限。
|
|
210
210
|
INVALIDPARAMETERVALUE_CCNATTACHBMVPCLIMITEXCEEDED = 'InvalidParameterValue.CcnAttachBmvpcLimitExceeded'
|
|
211
211
|
|
|
212
|
+
# 指定CIDR存在重叠。
|
|
213
|
+
INVALIDPARAMETERVALUE_CIDRCONFLICT = 'InvalidParameterValue.CidrConflict'
|
|
214
|
+
|
|
212
215
|
# 目的网段不在对端VPC的CIDR范围内。
|
|
213
216
|
INVALIDPARAMETERVALUE_CIDRNOTINPEERVPC = 'InvalidParameterValue.CidrNotInPeerVpc'
|
|
214
217
|
|
|
@@ -1205,6 +1208,9 @@ UNSUPPORTEDOPERATION_NOTSUPPORTDELETEVPCBMPEER = 'UnsupportedOperation.NotSuppor
|
|
|
1205
1208
|
# 默认路由表,不支持修改。
|
|
1206
1209
|
UNSUPPORTEDOPERATION_NOTSUPPORTMODIFYDEFAULTCCNROUTETABLE = 'UnsupportedOperation.NotSupportModifyDefaultCcnRouteTable'
|
|
1207
1210
|
|
|
1211
|
+
# 不支持的自定义路由类型。
|
|
1212
|
+
UNSUPPORTEDOPERATION_NOTSUPPORTROUTETYPE = 'UnsupportedOperation.NotSupportRouteType'
|
|
1213
|
+
|
|
1208
1214
|
# 不支持编辑相同的实例和源地址。
|
|
1209
1215
|
UNSUPPORTEDOPERATION_NOTSUPPORTSAMECCNINSTANCEANDSOURCEADDRESS = 'UnsupportedOperation.NotSupportSameCcnInstanceAndSourceAddress'
|
|
1210
1216
|
|
|
@@ -1424,6 +1430,9 @@ UNSUPPORTEDOPERATION_USERANDCCNCHARGETYPENOTMATCH = 'UnsupportedOperation.UserAn
|
|
|
1424
1430
|
# 指定安全组规则版本号和当前最新版本不一致。
|
|
1425
1431
|
UNSUPPORTEDOPERATION_VERSIONMISMATCH = 'UnsupportedOperation.VersionMismatch'
|
|
1426
1432
|
|
|
1433
|
+
# 当前VPN版本小于4.0,不支持该操作。
|
|
1434
|
+
UNSUPPORTEDOPERATION_VERSIONNOTSUPPORTED = 'UnsupportedOperation.VersionNotSupported'
|
|
1435
|
+
|
|
1427
1436
|
# 资源不属于同一个VPC。
|
|
1428
1437
|
UNSUPPORTEDOPERATION_VPCMISMATCH = 'UnsupportedOperation.VpcMismatch'
|
|
1429
1438
|
|
|
@@ -353,12 +353,15 @@ class AddBandwidthPackageResourcesRequest(AbstractModel):
|
|
|
353
353
|
:type ResourceType: str
|
|
354
354
|
:param _Protocol: 带宽包协议类型。当前支持'ipv4'和'ipv6'协议类型。
|
|
355
355
|
:type Protocol: str
|
|
356
|
+
:param _InternetMaxBandwidthOut: 用于带宽包内添加IP资源时指定IP带宽值。<p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
357
|
+
:type InternetMaxBandwidthOut: int
|
|
356
358
|
"""
|
|
357
359
|
self._ResourceIds = None
|
|
358
360
|
self._BandwidthPackageId = None
|
|
359
361
|
self._NetworkType = None
|
|
360
362
|
self._ResourceType = None
|
|
361
363
|
self._Protocol = None
|
|
364
|
+
self._InternetMaxBandwidthOut = None
|
|
362
365
|
|
|
363
366
|
@property
|
|
364
367
|
def ResourceIds(self):
|
|
@@ -423,6 +426,17 @@ class AddBandwidthPackageResourcesRequest(AbstractModel):
|
|
|
423
426
|
def Protocol(self, Protocol):
|
|
424
427
|
self._Protocol = Protocol
|
|
425
428
|
|
|
429
|
+
@property
|
|
430
|
+
def InternetMaxBandwidthOut(self):
|
|
431
|
+
r"""用于带宽包内添加IP资源时指定IP带宽值。<p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
432
|
+
:rtype: int
|
|
433
|
+
"""
|
|
434
|
+
return self._InternetMaxBandwidthOut
|
|
435
|
+
|
|
436
|
+
@InternetMaxBandwidthOut.setter
|
|
437
|
+
def InternetMaxBandwidthOut(self, InternetMaxBandwidthOut):
|
|
438
|
+
self._InternetMaxBandwidthOut = InternetMaxBandwidthOut
|
|
439
|
+
|
|
426
440
|
|
|
427
441
|
def _deserialize(self, params):
|
|
428
442
|
self._ResourceIds = params.get("ResourceIds")
|
|
@@ -430,6 +444,7 @@ class AddBandwidthPackageResourcesRequest(AbstractModel):
|
|
|
430
444
|
self._NetworkType = params.get("NetworkType")
|
|
431
445
|
self._ResourceType = params.get("ResourceType")
|
|
432
446
|
self._Protocol = params.get("Protocol")
|
|
447
|
+
self._InternetMaxBandwidthOut = params.get("InternetMaxBandwidthOut")
|
|
433
448
|
memeber_set = set(params.keys())
|
|
434
449
|
for name, value in vars(self).items():
|
|
435
450
|
property_name = name[1:]
|
|
@@ -5402,6 +5417,8 @@ class CCN(AbstractModel):
|
|
|
5402
5417
|
:type QosLevel: str
|
|
5403
5418
|
:param _InstanceChargeType: 付费类型,PREPAID为预付费,POSTPAID为后付费。
|
|
5404
5419
|
:type InstanceChargeType: str
|
|
5420
|
+
:param _InstanceMeteringType: 计量类型
|
|
5421
|
+
:type InstanceMeteringType: str
|
|
5405
5422
|
:param _BandwidthLimitType: 限速类型,`INTER_REGION_LIMIT` 为地域间限速;`OUTER_REGION_LIMIT` 为地域出口限速。
|
|
5406
5423
|
:type BandwidthLimitType: str
|
|
5407
5424
|
:param _TagSet: 标签键值对。
|
|
@@ -5445,6 +5462,7 @@ class CCN(AbstractModel):
|
|
|
5445
5462
|
self._State = None
|
|
5446
5463
|
self._QosLevel = None
|
|
5447
5464
|
self._InstanceChargeType = None
|
|
5465
|
+
self._InstanceMeteringType = None
|
|
5448
5466
|
self._BandwidthLimitType = None
|
|
5449
5467
|
self._TagSet = None
|
|
5450
5468
|
self._RoutePriorityFlag = None
|
|
@@ -5551,6 +5569,17 @@ class CCN(AbstractModel):
|
|
|
5551
5569
|
def InstanceChargeType(self, InstanceChargeType):
|
|
5552
5570
|
self._InstanceChargeType = InstanceChargeType
|
|
5553
5571
|
|
|
5572
|
+
@property
|
|
5573
|
+
def InstanceMeteringType(self):
|
|
5574
|
+
r"""计量类型
|
|
5575
|
+
:rtype: str
|
|
5576
|
+
"""
|
|
5577
|
+
return self._InstanceMeteringType
|
|
5578
|
+
|
|
5579
|
+
@InstanceMeteringType.setter
|
|
5580
|
+
def InstanceMeteringType(self, InstanceMeteringType):
|
|
5581
|
+
self._InstanceMeteringType = InstanceMeteringType
|
|
5582
|
+
|
|
5554
5583
|
@property
|
|
5555
5584
|
def BandwidthLimitType(self):
|
|
5556
5585
|
r"""限速类型,`INTER_REGION_LIMIT` 为地域间限速;`OUTER_REGION_LIMIT` 为地域出口限速。
|
|
@@ -5748,6 +5777,7 @@ class CCN(AbstractModel):
|
|
|
5748
5777
|
self._State = params.get("State")
|
|
5749
5778
|
self._QosLevel = params.get("QosLevel")
|
|
5750
5779
|
self._InstanceChargeType = params.get("InstanceChargeType")
|
|
5780
|
+
self._InstanceMeteringType = params.get("InstanceMeteringType")
|
|
5751
5781
|
self._BandwidthLimitType = params.get("BandwidthLimitType")
|
|
5752
5782
|
if params.get("TagSet") is not None:
|
|
5753
5783
|
self._TagSet = []
|
|
@@ -9918,6 +9948,8 @@ class CreateCcnRequest(AbstractModel):
|
|
|
9918
9948
|
:type QosLevel: str
|
|
9919
9949
|
:param _InstanceChargeType: 计费模式,`PREPAID`:表示预付费,即包年包月,`POSTPAID`:表示后付费,即按量计费。默认:`POSTPAID`。
|
|
9920
9950
|
:type InstanceChargeType: str
|
|
9951
|
+
:param _InstanceMeteringType: 计量模式
|
|
9952
|
+
:type InstanceMeteringType: str
|
|
9921
9953
|
:param _BandwidthLimitType: 限速类型,`OUTER_REGION_LIMIT`表示地域出口限速,`INTER_REGION_LIMIT`为地域间限速,默认为`OUTER_REGION_LIMIT`。预付费模式仅支持地域间限速,后付费模式支持地域间限速和地域出口限速。
|
|
9922
9954
|
:type BandwidthLimitType: str
|
|
9923
9955
|
:param _Tags: 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
|
|
@@ -9927,6 +9959,7 @@ class CreateCcnRequest(AbstractModel):
|
|
|
9927
9959
|
self._CcnDescription = None
|
|
9928
9960
|
self._QosLevel = None
|
|
9929
9961
|
self._InstanceChargeType = None
|
|
9962
|
+
self._InstanceMeteringType = None
|
|
9930
9963
|
self._BandwidthLimitType = None
|
|
9931
9964
|
self._Tags = None
|
|
9932
9965
|
|
|
@@ -9974,6 +10007,17 @@ class CreateCcnRequest(AbstractModel):
|
|
|
9974
10007
|
def InstanceChargeType(self, InstanceChargeType):
|
|
9975
10008
|
self._InstanceChargeType = InstanceChargeType
|
|
9976
10009
|
|
|
10010
|
+
@property
|
|
10011
|
+
def InstanceMeteringType(self):
|
|
10012
|
+
r"""计量模式
|
|
10013
|
+
:rtype: str
|
|
10014
|
+
"""
|
|
10015
|
+
return self._InstanceMeteringType
|
|
10016
|
+
|
|
10017
|
+
@InstanceMeteringType.setter
|
|
10018
|
+
def InstanceMeteringType(self, InstanceMeteringType):
|
|
10019
|
+
self._InstanceMeteringType = InstanceMeteringType
|
|
10020
|
+
|
|
9977
10021
|
@property
|
|
9978
10022
|
def BandwidthLimitType(self):
|
|
9979
10023
|
r"""限速类型,`OUTER_REGION_LIMIT`表示地域出口限速,`INTER_REGION_LIMIT`为地域间限速,默认为`OUTER_REGION_LIMIT`。预付费模式仅支持地域间限速,后付费模式支持地域间限速和地域出口限速。
|
|
@@ -10002,6 +10046,7 @@ class CreateCcnRequest(AbstractModel):
|
|
|
10002
10046
|
self._CcnDescription = params.get("CcnDescription")
|
|
10003
10047
|
self._QosLevel = params.get("QosLevel")
|
|
10004
10048
|
self._InstanceChargeType = params.get("InstanceChargeType")
|
|
10049
|
+
self._InstanceMeteringType = params.get("InstanceMeteringType")
|
|
10005
10050
|
self._BandwidthLimitType = params.get("BandwidthLimitType")
|
|
10006
10051
|
if params.get("Tags") is not None:
|
|
10007
10052
|
self._Tags = []
|
|
@@ -58795,6 +58840,10 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58795
58840
|
:type CreateTime: str
|
|
58796
58841
|
:param _NetworkAclDirection: 方向,INGRESS或EGRESS,用于DescribeNetworkAclQuintupleEntries的出参。
|
|
58797
58842
|
:type NetworkAclDirection: str
|
|
58843
|
+
:param _SourceIPv6Cidr: IPv6源CIDR。
|
|
58844
|
+
:type SourceIPv6Cidr: str
|
|
58845
|
+
:param _DestinationIPv6Cidr: IPv6目的CIDR。
|
|
58846
|
+
:type DestinationIPv6Cidr: str
|
|
58798
58847
|
"""
|
|
58799
58848
|
self._Protocol = None
|
|
58800
58849
|
self._Description = None
|
|
@@ -58807,6 +58856,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58807
58856
|
self._Priority = None
|
|
58808
58857
|
self._CreateTime = None
|
|
58809
58858
|
self._NetworkAclDirection = None
|
|
58859
|
+
self._SourceIPv6Cidr = None
|
|
58860
|
+
self._DestinationIPv6Cidr = None
|
|
58810
58861
|
|
|
58811
58862
|
@property
|
|
58812
58863
|
def Protocol(self):
|
|
@@ -58929,6 +58980,28 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58929
58980
|
def NetworkAclDirection(self, NetworkAclDirection):
|
|
58930
58981
|
self._NetworkAclDirection = NetworkAclDirection
|
|
58931
58982
|
|
|
58983
|
+
@property
|
|
58984
|
+
def SourceIPv6Cidr(self):
|
|
58985
|
+
r"""IPv6源CIDR。
|
|
58986
|
+
:rtype: str
|
|
58987
|
+
"""
|
|
58988
|
+
return self._SourceIPv6Cidr
|
|
58989
|
+
|
|
58990
|
+
@SourceIPv6Cidr.setter
|
|
58991
|
+
def SourceIPv6Cidr(self, SourceIPv6Cidr):
|
|
58992
|
+
self._SourceIPv6Cidr = SourceIPv6Cidr
|
|
58993
|
+
|
|
58994
|
+
@property
|
|
58995
|
+
def DestinationIPv6Cidr(self):
|
|
58996
|
+
r"""IPv6目的CIDR。
|
|
58997
|
+
:rtype: str
|
|
58998
|
+
"""
|
|
58999
|
+
return self._DestinationIPv6Cidr
|
|
59000
|
+
|
|
59001
|
+
@DestinationIPv6Cidr.setter
|
|
59002
|
+
def DestinationIPv6Cidr(self, DestinationIPv6Cidr):
|
|
59003
|
+
self._DestinationIPv6Cidr = DestinationIPv6Cidr
|
|
59004
|
+
|
|
58932
59005
|
|
|
58933
59006
|
def _deserialize(self, params):
|
|
58934
59007
|
self._Protocol = params.get("Protocol")
|
|
@@ -58942,6 +59015,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58942
59015
|
self._Priority = params.get("Priority")
|
|
58943
59016
|
self._CreateTime = params.get("CreateTime")
|
|
58944
59017
|
self._NetworkAclDirection = params.get("NetworkAclDirection")
|
|
59018
|
+
self._SourceIPv6Cidr = params.get("SourceIPv6Cidr")
|
|
59019
|
+
self._DestinationIPv6Cidr = params.get("DestinationIPv6Cidr")
|
|
58945
59020
|
memeber_set = set(params.keys())
|
|
58946
59021
|
for name, value in vars(self).items():
|
|
58947
59022
|
property_name = name[1:]
|
|
@@ -61376,10 +61451,16 @@ class RemoveBandwidthPackageResourcesRequest(AbstractModel):
|
|
|
61376
61451
|
<li>Address:弹性公网IP</li>
|
|
61377
61452
|
<li>LoadBalance:负载均衡</li>
|
|
61378
61453
|
:type ResourceType: str
|
|
61454
|
+
:param _InternetMaxBandwidthOut: 用于移除带宽包内IP资源时指定IP的带宽值。<p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61455
|
+
:type InternetMaxBandwidthOut: int
|
|
61456
|
+
:param _InternetChargeType: 用于移除带宽包内IP资源时指定资源移除后的计费模式。<li>小时流量:TRAFFIC_POSTPAID_BY_HOUR;</li><li>小时带宽:BANDWIDTH_POSTPAID_BY_HOUR</li><p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61457
|
+
:type InternetChargeType: str
|
|
61379
61458
|
"""
|
|
61380
61459
|
self._ResourceIds = None
|
|
61381
61460
|
self._BandwidthPackageId = None
|
|
61382
61461
|
self._ResourceType = None
|
|
61462
|
+
self._InternetMaxBandwidthOut = None
|
|
61463
|
+
self._InternetChargeType = None
|
|
61383
61464
|
|
|
61384
61465
|
@property
|
|
61385
61466
|
def ResourceIds(self):
|
|
@@ -61416,11 +61497,35 @@ class RemoveBandwidthPackageResourcesRequest(AbstractModel):
|
|
|
61416
61497
|
def ResourceType(self, ResourceType):
|
|
61417
61498
|
self._ResourceType = ResourceType
|
|
61418
61499
|
|
|
61500
|
+
@property
|
|
61501
|
+
def InternetMaxBandwidthOut(self):
|
|
61502
|
+
r"""用于移除带宽包内IP资源时指定IP的带宽值。<p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61503
|
+
:rtype: int
|
|
61504
|
+
"""
|
|
61505
|
+
return self._InternetMaxBandwidthOut
|
|
61506
|
+
|
|
61507
|
+
@InternetMaxBandwidthOut.setter
|
|
61508
|
+
def InternetMaxBandwidthOut(self, InternetMaxBandwidthOut):
|
|
61509
|
+
self._InternetMaxBandwidthOut = InternetMaxBandwidthOut
|
|
61510
|
+
|
|
61511
|
+
@property
|
|
61512
|
+
def InternetChargeType(self):
|
|
61513
|
+
r"""用于移除带宽包内IP资源时指定资源移除后的计费模式。<li>小时流量:TRAFFIC_POSTPAID_BY_HOUR;</li><li>小时带宽:BANDWIDTH_POSTPAID_BY_HOUR</li><p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61514
|
+
:rtype: str
|
|
61515
|
+
"""
|
|
61516
|
+
return self._InternetChargeType
|
|
61517
|
+
|
|
61518
|
+
@InternetChargeType.setter
|
|
61519
|
+
def InternetChargeType(self, InternetChargeType):
|
|
61520
|
+
self._InternetChargeType = InternetChargeType
|
|
61521
|
+
|
|
61419
61522
|
|
|
61420
61523
|
def _deserialize(self, params):
|
|
61421
61524
|
self._ResourceIds = params.get("ResourceIds")
|
|
61422
61525
|
self._BandwidthPackageId = params.get("BandwidthPackageId")
|
|
61423
61526
|
self._ResourceType = params.get("ResourceType")
|
|
61527
|
+
self._InternetMaxBandwidthOut = params.get("InternetMaxBandwidthOut")
|
|
61528
|
+
self._InternetChargeType = params.get("InternetChargeType")
|
|
61424
61529
|
memeber_set = set(params.keys())
|
|
61425
61530
|
for name, value in vars(self).items():
|
|
61426
61531
|
property_name = name[1:]
|
|
@@ -62556,6 +62661,141 @@ class ReplaceRoutesResponse(AbstractModel):
|
|
|
62556
62661
|
self._RequestId = params.get("RequestId")
|
|
62557
62662
|
|
|
62558
62663
|
|
|
62664
|
+
class ReplaceRoutesWithRoutePolicyRequest(AbstractModel):
|
|
62665
|
+
r"""ReplaceRoutesWithRoutePolicy请求参数结构体
|
|
62666
|
+
|
|
62667
|
+
"""
|
|
62668
|
+
|
|
62669
|
+
def __init__(self):
|
|
62670
|
+
r"""
|
|
62671
|
+
:param _RouteTableId: 路由表实例ID。
|
|
62672
|
+
:type RouteTableId: str
|
|
62673
|
+
:param _Routes: 路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62674
|
+
:type Routes: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62675
|
+
"""
|
|
62676
|
+
self._RouteTableId = None
|
|
62677
|
+
self._Routes = None
|
|
62678
|
+
|
|
62679
|
+
@property
|
|
62680
|
+
def RouteTableId(self):
|
|
62681
|
+
r"""路由表实例ID。
|
|
62682
|
+
:rtype: str
|
|
62683
|
+
"""
|
|
62684
|
+
return self._RouteTableId
|
|
62685
|
+
|
|
62686
|
+
@RouteTableId.setter
|
|
62687
|
+
def RouteTableId(self, RouteTableId):
|
|
62688
|
+
self._RouteTableId = RouteTableId
|
|
62689
|
+
|
|
62690
|
+
@property
|
|
62691
|
+
def Routes(self):
|
|
62692
|
+
r"""路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62693
|
+
:rtype: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62694
|
+
"""
|
|
62695
|
+
return self._Routes
|
|
62696
|
+
|
|
62697
|
+
@Routes.setter
|
|
62698
|
+
def Routes(self, Routes):
|
|
62699
|
+
self._Routes = Routes
|
|
62700
|
+
|
|
62701
|
+
|
|
62702
|
+
def _deserialize(self, params):
|
|
62703
|
+
self._RouteTableId = params.get("RouteTableId")
|
|
62704
|
+
if params.get("Routes") is not None:
|
|
62705
|
+
self._Routes = []
|
|
62706
|
+
for item in params.get("Routes"):
|
|
62707
|
+
obj = ReplaceRoutesWithRoutePolicyRoute()
|
|
62708
|
+
obj._deserialize(item)
|
|
62709
|
+
self._Routes.append(obj)
|
|
62710
|
+
memeber_set = set(params.keys())
|
|
62711
|
+
for name, value in vars(self).items():
|
|
62712
|
+
property_name = name[1:]
|
|
62713
|
+
if property_name in memeber_set:
|
|
62714
|
+
memeber_set.remove(property_name)
|
|
62715
|
+
if len(memeber_set) > 0:
|
|
62716
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62717
|
+
|
|
62718
|
+
|
|
62719
|
+
|
|
62720
|
+
class ReplaceRoutesWithRoutePolicyResponse(AbstractModel):
|
|
62721
|
+
r"""ReplaceRoutesWithRoutePolicy返回参数结构体
|
|
62722
|
+
|
|
62723
|
+
"""
|
|
62724
|
+
|
|
62725
|
+
def __init__(self):
|
|
62726
|
+
r"""
|
|
62727
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62728
|
+
:type RequestId: str
|
|
62729
|
+
"""
|
|
62730
|
+
self._RequestId = None
|
|
62731
|
+
|
|
62732
|
+
@property
|
|
62733
|
+
def RequestId(self):
|
|
62734
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62735
|
+
:rtype: str
|
|
62736
|
+
"""
|
|
62737
|
+
return self._RequestId
|
|
62738
|
+
|
|
62739
|
+
@RequestId.setter
|
|
62740
|
+
def RequestId(self, RequestId):
|
|
62741
|
+
self._RequestId = RequestId
|
|
62742
|
+
|
|
62743
|
+
|
|
62744
|
+
def _deserialize(self, params):
|
|
62745
|
+
self._RequestId = params.get("RequestId")
|
|
62746
|
+
|
|
62747
|
+
|
|
62748
|
+
class ReplaceRoutesWithRoutePolicyRoute(AbstractModel):
|
|
62749
|
+
r"""匹配路由接收策略对象
|
|
62750
|
+
|
|
62751
|
+
"""
|
|
62752
|
+
|
|
62753
|
+
def __init__(self):
|
|
62754
|
+
r"""
|
|
62755
|
+
:param _RouteItemId: 路由唯一策略ID。
|
|
62756
|
+
:type RouteItemId: str
|
|
62757
|
+
:param _ForceMatchPolicy: 匹配路由接收策略标记。
|
|
62758
|
+
:type ForceMatchPolicy: bool
|
|
62759
|
+
"""
|
|
62760
|
+
self._RouteItemId = None
|
|
62761
|
+
self._ForceMatchPolicy = None
|
|
62762
|
+
|
|
62763
|
+
@property
|
|
62764
|
+
def RouteItemId(self):
|
|
62765
|
+
r"""路由唯一策略ID。
|
|
62766
|
+
:rtype: str
|
|
62767
|
+
"""
|
|
62768
|
+
return self._RouteItemId
|
|
62769
|
+
|
|
62770
|
+
@RouteItemId.setter
|
|
62771
|
+
def RouteItemId(self, RouteItemId):
|
|
62772
|
+
self._RouteItemId = RouteItemId
|
|
62773
|
+
|
|
62774
|
+
@property
|
|
62775
|
+
def ForceMatchPolicy(self):
|
|
62776
|
+
r"""匹配路由接收策略标记。
|
|
62777
|
+
:rtype: bool
|
|
62778
|
+
"""
|
|
62779
|
+
return self._ForceMatchPolicy
|
|
62780
|
+
|
|
62781
|
+
@ForceMatchPolicy.setter
|
|
62782
|
+
def ForceMatchPolicy(self, ForceMatchPolicy):
|
|
62783
|
+
self._ForceMatchPolicy = ForceMatchPolicy
|
|
62784
|
+
|
|
62785
|
+
|
|
62786
|
+
def _deserialize(self, params):
|
|
62787
|
+
self._RouteItemId = params.get("RouteItemId")
|
|
62788
|
+
self._ForceMatchPolicy = params.get("ForceMatchPolicy")
|
|
62789
|
+
memeber_set = set(params.keys())
|
|
62790
|
+
for name, value in vars(self).items():
|
|
62791
|
+
property_name = name[1:]
|
|
62792
|
+
if property_name in memeber_set:
|
|
62793
|
+
memeber_set.remove(property_name)
|
|
62794
|
+
if len(memeber_set) > 0:
|
|
62795
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62796
|
+
|
|
62797
|
+
|
|
62798
|
+
|
|
62559
62799
|
class ReplaceSecurityGroupPoliciesRequest(AbstractModel):
|
|
62560
62800
|
r"""ReplaceSecurityGroupPolicies请求参数结构体
|
|
62561
62801
|
|
|
@@ -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.32
|
|
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.32
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.32
|
|
@@ -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
|