tencentcloud-sdk-python-vpc 3.1.27__tar.gz → 3.1.35__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.35}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/setup.py +1 -1
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/errorcodes.py +39 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/models.py +370 -4
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/vpc_client.py +46 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/vpc_client_async.py +36 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud_sdk_python_vpc.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_vpc-3.1.35/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.35}/README.rst +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/setup.cfg +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/__init__.py +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/__init__.py +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud_sdk_python_vpc.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud_sdk_python_vpc.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27 → tencentcloud_sdk_python_vpc-3.1.35}/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.35
|
|
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.35
|
|
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.35,<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
|
|
|
@@ -1163,9 +1166,33 @@ UNSUPPORTEDOPERATION_NATGATEWAYSNATRULENOTEXISTS = 'UnsupportedOperation.NatGate
|
|
|
1163
1166
|
# NAT网关类型不支持SNAT规则。
|
|
1164
1167
|
UNSUPPORTEDOPERATION_NATGATEWAYTYPENOTSUPPORTSNAT = 'UnsupportedOperation.NatGatewayTypeNotSupportSNAT'
|
|
1165
1168
|
|
|
1169
|
+
# NAT网关绑定了vpg,不支持该操作。
|
|
1170
|
+
UNSUPPORTEDOPERATION_NATHASBOUNDVPG = 'UnsupportedOperation.NatHasBoundVpg'
|
|
1171
|
+
|
|
1172
|
+
# NAT网关开启了ECMP,不支持该操作。
|
|
1173
|
+
UNSUPPORTEDOPERATION_NATHASECMP = 'UnsupportedOperation.NatHasECMP'
|
|
1174
|
+
|
|
1175
|
+
# NAT网关开启了网关流控,不支持该操作。
|
|
1176
|
+
UNSUPPORTEDOPERATION_NATHASENABLEDGATEWAYFLOWCONTROL = 'UnsupportedOperation.NatHasEnabledGatewayFlowControl'
|
|
1177
|
+
|
|
1178
|
+
# NAT网关开启了流日志,不支持该操作。
|
|
1179
|
+
UNSUPPORTEDOPERATION_NATHASFLOWLOG = 'UnsupportedOperation.NatHasFlowLog'
|
|
1180
|
+
|
|
1181
|
+
# 独享型NAT不支持该操作。
|
|
1182
|
+
UNSUPPORTEDOPERATION_NATINSTANCEEXCLUSIVE = 'UnsupportedOperation.NatInstanceExclusive'
|
|
1183
|
+
|
|
1166
1184
|
# NAT实例不支持该操作。
|
|
1167
1185
|
UNSUPPORTEDOPERATION_NATNOTSUPPORTED = 'UnsupportedOperation.NatNotSupported'
|
|
1168
1186
|
|
|
1187
|
+
# NAT网关规格超过标准型nat规格,不支持该操作。
|
|
1188
|
+
UNSUPPORTEDOPERATION_NATSPECIFICATIONEXCEEDED = 'UnsupportedOperation.NatSpecificationExceeded'
|
|
1189
|
+
|
|
1190
|
+
# NAT网关实例类型不支持该操作。
|
|
1191
|
+
UNSUPPORTEDOPERATION_NATTYPEERROR = 'UnsupportedOperation.NatTypeError'
|
|
1192
|
+
|
|
1193
|
+
# NAT网关近30天的最大用量超过标准型NAT规格,不支持该操作。
|
|
1194
|
+
UNSUPPORTEDOPERATION_NATUSAGEEXCEEDED = 'UnsupportedOperation.NatUsageExceeded'
|
|
1195
|
+
|
|
1169
1196
|
# 没有CDC专线网关。
|
|
1170
1197
|
UNSUPPORTEDOPERATION_NOCDCDCGW = 'UnsupportedOperation.NoCdcDcGw'
|
|
1171
1198
|
|
|
@@ -1205,6 +1232,9 @@ UNSUPPORTEDOPERATION_NOTSUPPORTDELETEVPCBMPEER = 'UnsupportedOperation.NotSuppor
|
|
|
1205
1232
|
# 默认路由表,不支持修改。
|
|
1206
1233
|
UNSUPPORTEDOPERATION_NOTSUPPORTMODIFYDEFAULTCCNROUTETABLE = 'UnsupportedOperation.NotSupportModifyDefaultCcnRouteTable'
|
|
1207
1234
|
|
|
1235
|
+
# 不支持的自定义路由类型。
|
|
1236
|
+
UNSUPPORTEDOPERATION_NOTSUPPORTROUTETYPE = 'UnsupportedOperation.NotSupportRouteType'
|
|
1237
|
+
|
|
1208
1238
|
# 不支持编辑相同的实例和源地址。
|
|
1209
1239
|
UNSUPPORTEDOPERATION_NOTSUPPORTSAMECCNINSTANCEANDSOURCEADDRESS = 'UnsupportedOperation.NotSupportSameCcnInstanceAndSourceAddress'
|
|
1210
1240
|
|
|
@@ -1415,6 +1445,12 @@ UNSUPPORTEDOPERATION_UNSUPPORTEDBINDLOCALZONEEIP = 'UnsupportedOperation.Unsuppo
|
|
|
1415
1445
|
# 指定机型不支持弹性网卡。
|
|
1416
1446
|
UNSUPPORTEDOPERATION_UNSUPPORTEDINSTANCEFAMILY = 'UnsupportedOperation.UnsupportedInstanceFamily'
|
|
1417
1447
|
|
|
1448
|
+
# 传统型账号不支持该操作。
|
|
1449
|
+
UNSUPPORTEDOPERATION_UNSUPPORTEDLEGACYACCOUNT = 'UnsupportedOperation.UnsupportedLegacyAccount'
|
|
1450
|
+
|
|
1451
|
+
# NAT网关部署在local zone,不支持该操作。
|
|
1452
|
+
UNSUPPORTEDOPERATION_UNSUPPORTEDLOCALZONENAT = 'UnsupportedOperation.UnsupportedLocalZoneNat'
|
|
1453
|
+
|
|
1418
1454
|
# 暂无法在此国家/地区提供该服务。
|
|
1419
1455
|
UNSUPPORTEDOPERATION_UNSUPPORTEDREGION = 'UnsupportedOperation.UnsupportedRegion'
|
|
1420
1456
|
|
|
@@ -1424,6 +1460,9 @@ UNSUPPORTEDOPERATION_USERANDCCNCHARGETYPENOTMATCH = 'UnsupportedOperation.UserAn
|
|
|
1424
1460
|
# 指定安全组规则版本号和当前最新版本不一致。
|
|
1425
1461
|
UNSUPPORTEDOPERATION_VERSIONMISMATCH = 'UnsupportedOperation.VersionMismatch'
|
|
1426
1462
|
|
|
1463
|
+
# 当前VPN版本小于4.0,不支持该操作。
|
|
1464
|
+
UNSUPPORTEDOPERATION_VERSIONNOTSUPPORTED = 'UnsupportedOperation.VersionNotSupported'
|
|
1465
|
+
|
|
1427
1466
|
# 资源不属于同一个VPC。
|
|
1428
1467
|
UNSUPPORTEDOPERATION_VPCMISMATCH = 'UnsupportedOperation.VpcMismatch'
|
|
1429
1468
|
|
|
@@ -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 = []
|
|
@@ -52663,9 +52708,9 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52663
52708
|
r"""
|
|
52664
52709
|
:param _NatGatewayId: NAT网关的ID,形如:`nat-df45454`。
|
|
52665
52710
|
:type NatGatewayId: str
|
|
52666
|
-
:param _NatGatewayName: NAT网关的名称,形如:`test_nat
|
|
52711
|
+
:param _NatGatewayName: NAT网关的名称,形如:`test_nat`,边界值:[1,60] 字符。
|
|
52667
52712
|
:type NatGatewayName: str
|
|
52668
|
-
:param _InternetMaxBandwidthOut: NAT网关最大外网出带宽(单位:Mbps)。
|
|
52713
|
+
:param _InternetMaxBandwidthOut: NAT网关最大外网出带宽(单位:Mbps),边界值:[0,50000]。
|
|
52669
52714
|
:type InternetMaxBandwidthOut: int
|
|
52670
52715
|
:param _ModifySecurityGroup: 是否修改NAT网关绑定的安全组。
|
|
52671
52716
|
:type ModifySecurityGroup: bool
|
|
@@ -52673,6 +52718,8 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52673
52718
|
:type SecurityGroupIds: list of str
|
|
52674
52719
|
:param _DeletionProtectionEnabled: NAT实例是否开启删除保护
|
|
52675
52720
|
:type DeletionProtectionEnabled: bool
|
|
52721
|
+
:param _PublicAddressAffinity: 同一个内网地址通过NAT网关访问同一个目的IP时,是否使用固定的弹性公网IP。默认为true,使用固定IP;false代表使用随机IP。当前适用于标准型NAT网关。
|
|
52722
|
+
:type PublicAddressAffinity: bool
|
|
52676
52723
|
"""
|
|
52677
52724
|
self._NatGatewayId = None
|
|
52678
52725
|
self._NatGatewayName = None
|
|
@@ -52680,6 +52727,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52680
52727
|
self._ModifySecurityGroup = None
|
|
52681
52728
|
self._SecurityGroupIds = None
|
|
52682
52729
|
self._DeletionProtectionEnabled = None
|
|
52730
|
+
self._PublicAddressAffinity = None
|
|
52683
52731
|
|
|
52684
52732
|
@property
|
|
52685
52733
|
def NatGatewayId(self):
|
|
@@ -52694,7 +52742,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52694
52742
|
|
|
52695
52743
|
@property
|
|
52696
52744
|
def NatGatewayName(self):
|
|
52697
|
-
r"""NAT网关的名称,形如:`test_nat
|
|
52745
|
+
r"""NAT网关的名称,形如:`test_nat`,边界值:[1,60] 字符。
|
|
52698
52746
|
:rtype: str
|
|
52699
52747
|
"""
|
|
52700
52748
|
return self._NatGatewayName
|
|
@@ -52705,7 +52753,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52705
52753
|
|
|
52706
52754
|
@property
|
|
52707
52755
|
def InternetMaxBandwidthOut(self):
|
|
52708
|
-
r"""NAT网关最大外网出带宽(单位:Mbps)。
|
|
52756
|
+
r"""NAT网关最大外网出带宽(单位:Mbps),边界值:[0,50000]。
|
|
52709
52757
|
:rtype: int
|
|
52710
52758
|
"""
|
|
52711
52759
|
return self._InternetMaxBandwidthOut
|
|
@@ -52747,6 +52795,17 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52747
52795
|
def DeletionProtectionEnabled(self, DeletionProtectionEnabled):
|
|
52748
52796
|
self._DeletionProtectionEnabled = DeletionProtectionEnabled
|
|
52749
52797
|
|
|
52798
|
+
@property
|
|
52799
|
+
def PublicAddressAffinity(self):
|
|
52800
|
+
r"""同一个内网地址通过NAT网关访问同一个目的IP时,是否使用固定的弹性公网IP。默认为true,使用固定IP;false代表使用随机IP。当前适用于标准型NAT网关。
|
|
52801
|
+
:rtype: bool
|
|
52802
|
+
"""
|
|
52803
|
+
return self._PublicAddressAffinity
|
|
52804
|
+
|
|
52805
|
+
@PublicAddressAffinity.setter
|
|
52806
|
+
def PublicAddressAffinity(self, PublicAddressAffinity):
|
|
52807
|
+
self._PublicAddressAffinity = PublicAddressAffinity
|
|
52808
|
+
|
|
52750
52809
|
|
|
52751
52810
|
def _deserialize(self, params):
|
|
52752
52811
|
self._NatGatewayId = params.get("NatGatewayId")
|
|
@@ -52755,6 +52814,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52755
52814
|
self._ModifySecurityGroup = params.get("ModifySecurityGroup")
|
|
52756
52815
|
self._SecurityGroupIds = params.get("SecurityGroupIds")
|
|
52757
52816
|
self._DeletionProtectionEnabled = params.get("DeletionProtectionEnabled")
|
|
52817
|
+
self._PublicAddressAffinity = params.get("PublicAddressAffinity")
|
|
52758
52818
|
memeber_set = set(params.keys())
|
|
52759
52819
|
for name, value in vars(self).items():
|
|
52760
52820
|
property_name = name[1:]
|
|
@@ -58795,6 +58855,10 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58795
58855
|
:type CreateTime: str
|
|
58796
58856
|
:param _NetworkAclDirection: 方向,INGRESS或EGRESS,用于DescribeNetworkAclQuintupleEntries的出参。
|
|
58797
58857
|
:type NetworkAclDirection: str
|
|
58858
|
+
:param _SourceIPv6Cidr: IPv6源CIDR。
|
|
58859
|
+
:type SourceIPv6Cidr: str
|
|
58860
|
+
:param _DestinationIPv6Cidr: IPv6目的CIDR。
|
|
58861
|
+
:type DestinationIPv6Cidr: str
|
|
58798
58862
|
"""
|
|
58799
58863
|
self._Protocol = None
|
|
58800
58864
|
self._Description = None
|
|
@@ -58807,6 +58871,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58807
58871
|
self._Priority = None
|
|
58808
58872
|
self._CreateTime = None
|
|
58809
58873
|
self._NetworkAclDirection = None
|
|
58874
|
+
self._SourceIPv6Cidr = None
|
|
58875
|
+
self._DestinationIPv6Cidr = None
|
|
58810
58876
|
|
|
58811
58877
|
@property
|
|
58812
58878
|
def Protocol(self):
|
|
@@ -58929,6 +58995,28 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58929
58995
|
def NetworkAclDirection(self, NetworkAclDirection):
|
|
58930
58996
|
self._NetworkAclDirection = NetworkAclDirection
|
|
58931
58997
|
|
|
58998
|
+
@property
|
|
58999
|
+
def SourceIPv6Cidr(self):
|
|
59000
|
+
r"""IPv6源CIDR。
|
|
59001
|
+
:rtype: str
|
|
59002
|
+
"""
|
|
59003
|
+
return self._SourceIPv6Cidr
|
|
59004
|
+
|
|
59005
|
+
@SourceIPv6Cidr.setter
|
|
59006
|
+
def SourceIPv6Cidr(self, SourceIPv6Cidr):
|
|
59007
|
+
self._SourceIPv6Cidr = SourceIPv6Cidr
|
|
59008
|
+
|
|
59009
|
+
@property
|
|
59010
|
+
def DestinationIPv6Cidr(self):
|
|
59011
|
+
r"""IPv6目的CIDR。
|
|
59012
|
+
:rtype: str
|
|
59013
|
+
"""
|
|
59014
|
+
return self._DestinationIPv6Cidr
|
|
59015
|
+
|
|
59016
|
+
@DestinationIPv6Cidr.setter
|
|
59017
|
+
def DestinationIPv6Cidr(self, DestinationIPv6Cidr):
|
|
59018
|
+
self._DestinationIPv6Cidr = DestinationIPv6Cidr
|
|
59019
|
+
|
|
58932
59020
|
|
|
58933
59021
|
def _deserialize(self, params):
|
|
58934
59022
|
self._Protocol = params.get("Protocol")
|
|
@@ -58942,6 +59030,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58942
59030
|
self._Priority = params.get("Priority")
|
|
58943
59031
|
self._CreateTime = params.get("CreateTime")
|
|
58944
59032
|
self._NetworkAclDirection = params.get("NetworkAclDirection")
|
|
59033
|
+
self._SourceIPv6Cidr = params.get("SourceIPv6Cidr")
|
|
59034
|
+
self._DestinationIPv6Cidr = params.get("DestinationIPv6Cidr")
|
|
58945
59035
|
memeber_set = set(params.keys())
|
|
58946
59036
|
for name, value in vars(self).items():
|
|
58947
59037
|
property_name = name[1:]
|
|
@@ -61376,10 +61466,16 @@ class RemoveBandwidthPackageResourcesRequest(AbstractModel):
|
|
|
61376
61466
|
<li>Address:弹性公网IP</li>
|
|
61377
61467
|
<li>LoadBalance:负载均衡</li>
|
|
61378
61468
|
:type ResourceType: str
|
|
61469
|
+
:param _InternetMaxBandwidthOut: 用于移除带宽包内IP资源时指定IP的带宽值。<p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61470
|
+
:type InternetMaxBandwidthOut: int
|
|
61471
|
+
:param _InternetChargeType: 用于移除带宽包内IP资源时指定资源移除后的计费模式。<li>小时流量:TRAFFIC_POSTPAID_BY_HOUR;</li><li>小时带宽:BANDWIDTH_POSTPAID_BY_HOUR</li><p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61472
|
+
:type InternetChargeType: str
|
|
61379
61473
|
"""
|
|
61380
61474
|
self._ResourceIds = None
|
|
61381
61475
|
self._BandwidthPackageId = None
|
|
61382
61476
|
self._ResourceType = None
|
|
61477
|
+
self._InternetMaxBandwidthOut = None
|
|
61478
|
+
self._InternetChargeType = None
|
|
61383
61479
|
|
|
61384
61480
|
@property
|
|
61385
61481
|
def ResourceIds(self):
|
|
@@ -61416,11 +61512,35 @@ class RemoveBandwidthPackageResourcesRequest(AbstractModel):
|
|
|
61416
61512
|
def ResourceType(self, ResourceType):
|
|
61417
61513
|
self._ResourceType = ResourceType
|
|
61418
61514
|
|
|
61515
|
+
@property
|
|
61516
|
+
def InternetMaxBandwidthOut(self):
|
|
61517
|
+
r"""用于移除带宽包内IP资源时指定IP的带宽值。<p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61518
|
+
:rtype: int
|
|
61519
|
+
"""
|
|
61520
|
+
return self._InternetMaxBandwidthOut
|
|
61521
|
+
|
|
61522
|
+
@InternetMaxBandwidthOut.setter
|
|
61523
|
+
def InternetMaxBandwidthOut(self, InternetMaxBandwidthOut):
|
|
61524
|
+
self._InternetMaxBandwidthOut = InternetMaxBandwidthOut
|
|
61525
|
+
|
|
61526
|
+
@property
|
|
61527
|
+
def InternetChargeType(self):
|
|
61528
|
+
r"""用于移除带宽包内IP资源时指定资源移除后的计费模式。<li>小时流量:TRAFFIC_POSTPAID_BY_HOUR;</li><li>小时带宽:BANDWIDTH_POSTPAID_BY_HOUR</li><p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61529
|
+
:rtype: str
|
|
61530
|
+
"""
|
|
61531
|
+
return self._InternetChargeType
|
|
61532
|
+
|
|
61533
|
+
@InternetChargeType.setter
|
|
61534
|
+
def InternetChargeType(self, InternetChargeType):
|
|
61535
|
+
self._InternetChargeType = InternetChargeType
|
|
61536
|
+
|
|
61419
61537
|
|
|
61420
61538
|
def _deserialize(self, params):
|
|
61421
61539
|
self._ResourceIds = params.get("ResourceIds")
|
|
61422
61540
|
self._BandwidthPackageId = params.get("BandwidthPackageId")
|
|
61423
61541
|
self._ResourceType = params.get("ResourceType")
|
|
61542
|
+
self._InternetMaxBandwidthOut = params.get("InternetMaxBandwidthOut")
|
|
61543
|
+
self._InternetChargeType = params.get("InternetChargeType")
|
|
61424
61544
|
memeber_set = set(params.keys())
|
|
61425
61545
|
for name, value in vars(self).items():
|
|
61426
61546
|
property_name = name[1:]
|
|
@@ -62556,6 +62676,141 @@ class ReplaceRoutesResponse(AbstractModel):
|
|
|
62556
62676
|
self._RequestId = params.get("RequestId")
|
|
62557
62677
|
|
|
62558
62678
|
|
|
62679
|
+
class ReplaceRoutesWithRoutePolicyRequest(AbstractModel):
|
|
62680
|
+
r"""ReplaceRoutesWithRoutePolicy请求参数结构体
|
|
62681
|
+
|
|
62682
|
+
"""
|
|
62683
|
+
|
|
62684
|
+
def __init__(self):
|
|
62685
|
+
r"""
|
|
62686
|
+
:param _RouteTableId: 路由表实例ID。
|
|
62687
|
+
:type RouteTableId: str
|
|
62688
|
+
:param _Routes: 路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62689
|
+
:type Routes: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62690
|
+
"""
|
|
62691
|
+
self._RouteTableId = None
|
|
62692
|
+
self._Routes = None
|
|
62693
|
+
|
|
62694
|
+
@property
|
|
62695
|
+
def RouteTableId(self):
|
|
62696
|
+
r"""路由表实例ID。
|
|
62697
|
+
:rtype: str
|
|
62698
|
+
"""
|
|
62699
|
+
return self._RouteTableId
|
|
62700
|
+
|
|
62701
|
+
@RouteTableId.setter
|
|
62702
|
+
def RouteTableId(self, RouteTableId):
|
|
62703
|
+
self._RouteTableId = RouteTableId
|
|
62704
|
+
|
|
62705
|
+
@property
|
|
62706
|
+
def Routes(self):
|
|
62707
|
+
r"""路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62708
|
+
:rtype: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62709
|
+
"""
|
|
62710
|
+
return self._Routes
|
|
62711
|
+
|
|
62712
|
+
@Routes.setter
|
|
62713
|
+
def Routes(self, Routes):
|
|
62714
|
+
self._Routes = Routes
|
|
62715
|
+
|
|
62716
|
+
|
|
62717
|
+
def _deserialize(self, params):
|
|
62718
|
+
self._RouteTableId = params.get("RouteTableId")
|
|
62719
|
+
if params.get("Routes") is not None:
|
|
62720
|
+
self._Routes = []
|
|
62721
|
+
for item in params.get("Routes"):
|
|
62722
|
+
obj = ReplaceRoutesWithRoutePolicyRoute()
|
|
62723
|
+
obj._deserialize(item)
|
|
62724
|
+
self._Routes.append(obj)
|
|
62725
|
+
memeber_set = set(params.keys())
|
|
62726
|
+
for name, value in vars(self).items():
|
|
62727
|
+
property_name = name[1:]
|
|
62728
|
+
if property_name in memeber_set:
|
|
62729
|
+
memeber_set.remove(property_name)
|
|
62730
|
+
if len(memeber_set) > 0:
|
|
62731
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62732
|
+
|
|
62733
|
+
|
|
62734
|
+
|
|
62735
|
+
class ReplaceRoutesWithRoutePolicyResponse(AbstractModel):
|
|
62736
|
+
r"""ReplaceRoutesWithRoutePolicy返回参数结构体
|
|
62737
|
+
|
|
62738
|
+
"""
|
|
62739
|
+
|
|
62740
|
+
def __init__(self):
|
|
62741
|
+
r"""
|
|
62742
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62743
|
+
:type RequestId: str
|
|
62744
|
+
"""
|
|
62745
|
+
self._RequestId = None
|
|
62746
|
+
|
|
62747
|
+
@property
|
|
62748
|
+
def RequestId(self):
|
|
62749
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62750
|
+
:rtype: str
|
|
62751
|
+
"""
|
|
62752
|
+
return self._RequestId
|
|
62753
|
+
|
|
62754
|
+
@RequestId.setter
|
|
62755
|
+
def RequestId(self, RequestId):
|
|
62756
|
+
self._RequestId = RequestId
|
|
62757
|
+
|
|
62758
|
+
|
|
62759
|
+
def _deserialize(self, params):
|
|
62760
|
+
self._RequestId = params.get("RequestId")
|
|
62761
|
+
|
|
62762
|
+
|
|
62763
|
+
class ReplaceRoutesWithRoutePolicyRoute(AbstractModel):
|
|
62764
|
+
r"""匹配路由接收策略对象
|
|
62765
|
+
|
|
62766
|
+
"""
|
|
62767
|
+
|
|
62768
|
+
def __init__(self):
|
|
62769
|
+
r"""
|
|
62770
|
+
:param _RouteItemId: 路由唯一策略ID。
|
|
62771
|
+
:type RouteItemId: str
|
|
62772
|
+
:param _ForceMatchPolicy: 匹配路由接收策略标记。
|
|
62773
|
+
:type ForceMatchPolicy: bool
|
|
62774
|
+
"""
|
|
62775
|
+
self._RouteItemId = None
|
|
62776
|
+
self._ForceMatchPolicy = None
|
|
62777
|
+
|
|
62778
|
+
@property
|
|
62779
|
+
def RouteItemId(self):
|
|
62780
|
+
r"""路由唯一策略ID。
|
|
62781
|
+
:rtype: str
|
|
62782
|
+
"""
|
|
62783
|
+
return self._RouteItemId
|
|
62784
|
+
|
|
62785
|
+
@RouteItemId.setter
|
|
62786
|
+
def RouteItemId(self, RouteItemId):
|
|
62787
|
+
self._RouteItemId = RouteItemId
|
|
62788
|
+
|
|
62789
|
+
@property
|
|
62790
|
+
def ForceMatchPolicy(self):
|
|
62791
|
+
r"""匹配路由接收策略标记。
|
|
62792
|
+
:rtype: bool
|
|
62793
|
+
"""
|
|
62794
|
+
return self._ForceMatchPolicy
|
|
62795
|
+
|
|
62796
|
+
@ForceMatchPolicy.setter
|
|
62797
|
+
def ForceMatchPolicy(self, ForceMatchPolicy):
|
|
62798
|
+
self._ForceMatchPolicy = ForceMatchPolicy
|
|
62799
|
+
|
|
62800
|
+
|
|
62801
|
+
def _deserialize(self, params):
|
|
62802
|
+
self._RouteItemId = params.get("RouteItemId")
|
|
62803
|
+
self._ForceMatchPolicy = params.get("ForceMatchPolicy")
|
|
62804
|
+
memeber_set = set(params.keys())
|
|
62805
|
+
for name, value in vars(self).items():
|
|
62806
|
+
property_name = name[1:]
|
|
62807
|
+
if property_name in memeber_set:
|
|
62808
|
+
memeber_set.remove(property_name)
|
|
62809
|
+
if len(memeber_set) > 0:
|
|
62810
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62811
|
+
|
|
62812
|
+
|
|
62813
|
+
|
|
62559
62814
|
class ReplaceSecurityGroupPoliciesRequest(AbstractModel):
|
|
62560
62815
|
r"""ReplaceSecurityGroupPolicies请求参数结构体
|
|
62561
62816
|
|
|
@@ -71467,6 +71722,117 @@ class UpdateTrafficMirrorDirectionResponse(AbstractModel):
|
|
|
71467
71722
|
self._RequestId = params.get("RequestId")
|
|
71468
71723
|
|
|
71469
71724
|
|
|
71725
|
+
class UpgradeNatGatewayProductVersionRequest(AbstractModel):
|
|
71726
|
+
r"""UpgradeNatGatewayProductVersion请求参数结构体
|
|
71727
|
+
|
|
71728
|
+
"""
|
|
71729
|
+
|
|
71730
|
+
def __init__(self):
|
|
71731
|
+
r"""
|
|
71732
|
+
:param _VpcId: VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。
|
|
71733
|
+
:type VpcId: str
|
|
71734
|
+
:param _NatGatewayId: NAT网关的ID,形如:`nat-ig8xpno8`。
|
|
71735
|
+
:type NatGatewayId: str
|
|
71736
|
+
:param _Force: 是否热迁移。1表示冷迁移,0表示热迁移,默认值是0。
|
|
71737
|
+
:type Force: int
|
|
71738
|
+
:param _CheckOnlyMode: 是否仅校验迁移可能性。true表示仅校验能否迁移,不做实际迁移。false表示正常迁移。默认值为false。
|
|
71739
|
+
仅校验模式,不报错表示校验迁移成功。
|
|
71740
|
+
:type CheckOnlyMode: bool
|
|
71741
|
+
"""
|
|
71742
|
+
self._VpcId = None
|
|
71743
|
+
self._NatGatewayId = None
|
|
71744
|
+
self._Force = None
|
|
71745
|
+
self._CheckOnlyMode = None
|
|
71746
|
+
|
|
71747
|
+
@property
|
|
71748
|
+
def VpcId(self):
|
|
71749
|
+
r"""VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。
|
|
71750
|
+
:rtype: str
|
|
71751
|
+
"""
|
|
71752
|
+
return self._VpcId
|
|
71753
|
+
|
|
71754
|
+
@VpcId.setter
|
|
71755
|
+
def VpcId(self, VpcId):
|
|
71756
|
+
self._VpcId = VpcId
|
|
71757
|
+
|
|
71758
|
+
@property
|
|
71759
|
+
def NatGatewayId(self):
|
|
71760
|
+
r"""NAT网关的ID,形如:`nat-ig8xpno8`。
|
|
71761
|
+
:rtype: str
|
|
71762
|
+
"""
|
|
71763
|
+
return self._NatGatewayId
|
|
71764
|
+
|
|
71765
|
+
@NatGatewayId.setter
|
|
71766
|
+
def NatGatewayId(self, NatGatewayId):
|
|
71767
|
+
self._NatGatewayId = NatGatewayId
|
|
71768
|
+
|
|
71769
|
+
@property
|
|
71770
|
+
def Force(self):
|
|
71771
|
+
r"""是否热迁移。1表示冷迁移,0表示热迁移,默认值是0。
|
|
71772
|
+
:rtype: int
|
|
71773
|
+
"""
|
|
71774
|
+
return self._Force
|
|
71775
|
+
|
|
71776
|
+
@Force.setter
|
|
71777
|
+
def Force(self, Force):
|
|
71778
|
+
self._Force = Force
|
|
71779
|
+
|
|
71780
|
+
@property
|
|
71781
|
+
def CheckOnlyMode(self):
|
|
71782
|
+
r"""是否仅校验迁移可能性。true表示仅校验能否迁移,不做实际迁移。false表示正常迁移。默认值为false。
|
|
71783
|
+
仅校验模式,不报错表示校验迁移成功。
|
|
71784
|
+
:rtype: bool
|
|
71785
|
+
"""
|
|
71786
|
+
return self._CheckOnlyMode
|
|
71787
|
+
|
|
71788
|
+
@CheckOnlyMode.setter
|
|
71789
|
+
def CheckOnlyMode(self, CheckOnlyMode):
|
|
71790
|
+
self._CheckOnlyMode = CheckOnlyMode
|
|
71791
|
+
|
|
71792
|
+
|
|
71793
|
+
def _deserialize(self, params):
|
|
71794
|
+
self._VpcId = params.get("VpcId")
|
|
71795
|
+
self._NatGatewayId = params.get("NatGatewayId")
|
|
71796
|
+
self._Force = params.get("Force")
|
|
71797
|
+
self._CheckOnlyMode = params.get("CheckOnlyMode")
|
|
71798
|
+
memeber_set = set(params.keys())
|
|
71799
|
+
for name, value in vars(self).items():
|
|
71800
|
+
property_name = name[1:]
|
|
71801
|
+
if property_name in memeber_set:
|
|
71802
|
+
memeber_set.remove(property_name)
|
|
71803
|
+
if len(memeber_set) > 0:
|
|
71804
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
71805
|
+
|
|
71806
|
+
|
|
71807
|
+
|
|
71808
|
+
class UpgradeNatGatewayProductVersionResponse(AbstractModel):
|
|
71809
|
+
r"""UpgradeNatGatewayProductVersion返回参数结构体
|
|
71810
|
+
|
|
71811
|
+
"""
|
|
71812
|
+
|
|
71813
|
+
def __init__(self):
|
|
71814
|
+
r"""
|
|
71815
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
71816
|
+
:type RequestId: str
|
|
71817
|
+
"""
|
|
71818
|
+
self._RequestId = None
|
|
71819
|
+
|
|
71820
|
+
@property
|
|
71821
|
+
def RequestId(self):
|
|
71822
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
71823
|
+
:rtype: str
|
|
71824
|
+
"""
|
|
71825
|
+
return self._RequestId
|
|
71826
|
+
|
|
71827
|
+
@RequestId.setter
|
|
71828
|
+
def RequestId(self, RequestId):
|
|
71829
|
+
self._RequestId = RequestId
|
|
71830
|
+
|
|
71831
|
+
|
|
71832
|
+
def _deserialize(self, params):
|
|
71833
|
+
self._RequestId = params.get("RequestId")
|
|
71834
|
+
|
|
71835
|
+
|
|
71470
71836
|
class UsedDetail(AbstractModel):
|
|
71471
71837
|
r"""共享流量包用量明细
|
|
71472
71838
|
|
|
@@ -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)。
|
|
@@ -10294,6 +10317,29 @@ class VpcClient(AbstractClient):
|
|
|
10294
10317
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
10295
10318
|
|
|
10296
10319
|
|
|
10320
|
+
def UpgradeNatGatewayProductVersion(self, request):
|
|
10321
|
+
r"""本接口(UpgradeNatGatewayProductVersion)用于升级NAT实例产品版本,将传统型NAT实例升级到标准型NAT。
|
|
10322
|
+
|
|
10323
|
+
:param request: Request instance for UpgradeNatGatewayProductVersion.
|
|
10324
|
+
:type request: :class:`tencentcloud.vpc.v20170312.models.UpgradeNatGatewayProductVersionRequest`
|
|
10325
|
+
:rtype: :class:`tencentcloud.vpc.v20170312.models.UpgradeNatGatewayProductVersionResponse`
|
|
10326
|
+
|
|
10327
|
+
"""
|
|
10328
|
+
try:
|
|
10329
|
+
params = request._serialize()
|
|
10330
|
+
headers = request.headers
|
|
10331
|
+
body = self.call("UpgradeNatGatewayProductVersion", params, headers=headers)
|
|
10332
|
+
response = json.loads(body)
|
|
10333
|
+
model = models.UpgradeNatGatewayProductVersionResponse()
|
|
10334
|
+
model._deserialize(response["Response"])
|
|
10335
|
+
return model
|
|
10336
|
+
except Exception as e:
|
|
10337
|
+
if isinstance(e, TencentCloudSDKException):
|
|
10338
|
+
raise
|
|
10339
|
+
else:
|
|
10340
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
10341
|
+
|
|
10342
|
+
|
|
10297
10343
|
def WithdrawNotifyRoutes(self, request):
|
|
10298
10344
|
r"""本接口(WithdrawNotifyRoutes)用于撤销已发布到云联网的路由。路由表列表页操作增加“从云联网撤销”。
|
|
10299
10345
|
|
|
@@ -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,
|
|
@@ -8138,6 +8156,24 @@ class VpcClient(AbstractClient):
|
|
|
8138
8156
|
|
|
8139
8157
|
return await self.call_and_deserialize(**kwargs)
|
|
8140
8158
|
|
|
8159
|
+
async def UpgradeNatGatewayProductVersion(
|
|
8160
|
+
self,
|
|
8161
|
+
request: models.UpgradeNatGatewayProductVersionRequest,
|
|
8162
|
+
opts: Dict = None,
|
|
8163
|
+
) -> models.UpgradeNatGatewayProductVersionResponse:
|
|
8164
|
+
"""
|
|
8165
|
+
本接口(UpgradeNatGatewayProductVersion)用于升级NAT实例产品版本,将传统型NAT实例升级到标准型NAT。
|
|
8166
|
+
"""
|
|
8167
|
+
|
|
8168
|
+
kwargs = {}
|
|
8169
|
+
kwargs["action"] = "UpgradeNatGatewayProductVersion"
|
|
8170
|
+
kwargs["params"] = request._serialize()
|
|
8171
|
+
kwargs["resp_cls"] = models.UpgradeNatGatewayProductVersionResponse
|
|
8172
|
+
kwargs["headers"] = request.headers
|
|
8173
|
+
kwargs["opts"] = opts or {}
|
|
8174
|
+
|
|
8175
|
+
return await self.call_and_deserialize(**kwargs)
|
|
8176
|
+
|
|
8141
8177
|
async def WithdrawNotifyRoutes(
|
|
8142
8178
|
self,
|
|
8143
8179
|
request: models.WithdrawNotifyRoutesRequest,
|
|
@@ -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.35
|
|
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.35
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.35
|
|
@@ -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
|