tencentcloud-sdk-python-vpc 3.1.31__py2.py3-none-any.whl → 3.1.35__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/vpc/v20170312/errorcodes.py +36 -0
- tencentcloud/vpc/v20170312/models.py +145 -4
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
- {tencentcloud_sdk_python_vpc-3.1.31.dist-info → tencentcloud_sdk_python_vpc-3.1.35.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_vpc-3.1.35.dist-info/RECORD +11 -0
- {tencentcloud_sdk_python_vpc-3.1.31.dist-info → tencentcloud_sdk_python_vpc-3.1.35.dist-info}/WHEEL +1 -1
- tencentcloud_sdk_python_vpc-3.1.31.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_vpc-3.1.31.dist-info → tencentcloud_sdk_python_vpc-3.1.35.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -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
|
|
|
@@ -1418,6 +1445,12 @@ UNSUPPORTEDOPERATION_UNSUPPORTEDBINDLOCALZONEEIP = 'UnsupportedOperation.Unsuppo
|
|
|
1418
1445
|
# 指定机型不支持弹性网卡。
|
|
1419
1446
|
UNSUPPORTEDOPERATION_UNSUPPORTEDINSTANCEFAMILY = 'UnsupportedOperation.UnsupportedInstanceFamily'
|
|
1420
1447
|
|
|
1448
|
+
# 传统型账号不支持该操作。
|
|
1449
|
+
UNSUPPORTEDOPERATION_UNSUPPORTEDLEGACYACCOUNT = 'UnsupportedOperation.UnsupportedLegacyAccount'
|
|
1450
|
+
|
|
1451
|
+
# NAT网关部署在local zone,不支持该操作。
|
|
1452
|
+
UNSUPPORTEDOPERATION_UNSUPPORTEDLOCALZONENAT = 'UnsupportedOperation.UnsupportedLocalZoneNat'
|
|
1453
|
+
|
|
1421
1454
|
# 暂无法在此国家/地区提供该服务。
|
|
1422
1455
|
UNSUPPORTEDOPERATION_UNSUPPORTEDREGION = 'UnsupportedOperation.UnsupportedRegion'
|
|
1423
1456
|
|
|
@@ -1427,6 +1460,9 @@ UNSUPPORTEDOPERATION_USERANDCCNCHARGETYPENOTMATCH = 'UnsupportedOperation.UserAn
|
|
|
1427
1460
|
# 指定安全组规则版本号和当前最新版本不一致。
|
|
1428
1461
|
UNSUPPORTEDOPERATION_VERSIONMISMATCH = 'UnsupportedOperation.VersionMismatch'
|
|
1429
1462
|
|
|
1463
|
+
# 当前VPN版本小于4.0,不支持该操作。
|
|
1464
|
+
UNSUPPORTEDOPERATION_VERSIONNOTSUPPORTED = 'UnsupportedOperation.VersionNotSupported'
|
|
1465
|
+
|
|
1430
1466
|
# 资源不属于同一个VPC。
|
|
1431
1467
|
UNSUPPORTEDOPERATION_VPCMISMATCH = 'UnsupportedOperation.VpcMismatch'
|
|
1432
1468
|
|
|
@@ -9948,6 +9948,8 @@ class CreateCcnRequest(AbstractModel):
|
|
|
9948
9948
|
:type QosLevel: str
|
|
9949
9949
|
:param _InstanceChargeType: 计费模式,`PREPAID`:表示预付费,即包年包月,`POSTPAID`:表示后付费,即按量计费。默认:`POSTPAID`。
|
|
9950
9950
|
:type InstanceChargeType: str
|
|
9951
|
+
:param _InstanceMeteringType: 计量模式
|
|
9952
|
+
:type InstanceMeteringType: str
|
|
9951
9953
|
:param _BandwidthLimitType: 限速类型,`OUTER_REGION_LIMIT`表示地域出口限速,`INTER_REGION_LIMIT`为地域间限速,默认为`OUTER_REGION_LIMIT`。预付费模式仅支持地域间限速,后付费模式支持地域间限速和地域出口限速。
|
|
9952
9954
|
:type BandwidthLimitType: str
|
|
9953
9955
|
:param _Tags: 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
|
|
@@ -9957,6 +9959,7 @@ class CreateCcnRequest(AbstractModel):
|
|
|
9957
9959
|
self._CcnDescription = None
|
|
9958
9960
|
self._QosLevel = None
|
|
9959
9961
|
self._InstanceChargeType = None
|
|
9962
|
+
self._InstanceMeteringType = None
|
|
9960
9963
|
self._BandwidthLimitType = None
|
|
9961
9964
|
self._Tags = None
|
|
9962
9965
|
|
|
@@ -10004,6 +10007,17 @@ class CreateCcnRequest(AbstractModel):
|
|
|
10004
10007
|
def InstanceChargeType(self, InstanceChargeType):
|
|
10005
10008
|
self._InstanceChargeType = InstanceChargeType
|
|
10006
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
|
+
|
|
10007
10021
|
@property
|
|
10008
10022
|
def BandwidthLimitType(self):
|
|
10009
10023
|
r"""限速类型,`OUTER_REGION_LIMIT`表示地域出口限速,`INTER_REGION_LIMIT`为地域间限速,默认为`OUTER_REGION_LIMIT`。预付费模式仅支持地域间限速,后付费模式支持地域间限速和地域出口限速。
|
|
@@ -10032,6 +10046,7 @@ class CreateCcnRequest(AbstractModel):
|
|
|
10032
10046
|
self._CcnDescription = params.get("CcnDescription")
|
|
10033
10047
|
self._QosLevel = params.get("QosLevel")
|
|
10034
10048
|
self._InstanceChargeType = params.get("InstanceChargeType")
|
|
10049
|
+
self._InstanceMeteringType = params.get("InstanceMeteringType")
|
|
10035
10050
|
self._BandwidthLimitType = params.get("BandwidthLimitType")
|
|
10036
10051
|
if params.get("Tags") is not None:
|
|
10037
10052
|
self._Tags = []
|
|
@@ -52693,9 +52708,9 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52693
52708
|
r"""
|
|
52694
52709
|
:param _NatGatewayId: NAT网关的ID,形如:`nat-df45454`。
|
|
52695
52710
|
:type NatGatewayId: str
|
|
52696
|
-
:param _NatGatewayName: NAT网关的名称,形如:`test_nat
|
|
52711
|
+
:param _NatGatewayName: NAT网关的名称,形如:`test_nat`,边界值:[1,60] 字符。
|
|
52697
52712
|
:type NatGatewayName: str
|
|
52698
|
-
:param _InternetMaxBandwidthOut: NAT网关最大外网出带宽(单位:Mbps)。
|
|
52713
|
+
:param _InternetMaxBandwidthOut: NAT网关最大外网出带宽(单位:Mbps),边界值:[0,50000]。
|
|
52699
52714
|
:type InternetMaxBandwidthOut: int
|
|
52700
52715
|
:param _ModifySecurityGroup: 是否修改NAT网关绑定的安全组。
|
|
52701
52716
|
:type ModifySecurityGroup: bool
|
|
@@ -52703,6 +52718,8 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52703
52718
|
:type SecurityGroupIds: list of str
|
|
52704
52719
|
:param _DeletionProtectionEnabled: NAT实例是否开启删除保护
|
|
52705
52720
|
:type DeletionProtectionEnabled: bool
|
|
52721
|
+
:param _PublicAddressAffinity: 同一个内网地址通过NAT网关访问同一个目的IP时,是否使用固定的弹性公网IP。默认为true,使用固定IP;false代表使用随机IP。当前适用于标准型NAT网关。
|
|
52722
|
+
:type PublicAddressAffinity: bool
|
|
52706
52723
|
"""
|
|
52707
52724
|
self._NatGatewayId = None
|
|
52708
52725
|
self._NatGatewayName = None
|
|
@@ -52710,6 +52727,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52710
52727
|
self._ModifySecurityGroup = None
|
|
52711
52728
|
self._SecurityGroupIds = None
|
|
52712
52729
|
self._DeletionProtectionEnabled = None
|
|
52730
|
+
self._PublicAddressAffinity = None
|
|
52713
52731
|
|
|
52714
52732
|
@property
|
|
52715
52733
|
def NatGatewayId(self):
|
|
@@ -52724,7 +52742,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52724
52742
|
|
|
52725
52743
|
@property
|
|
52726
52744
|
def NatGatewayName(self):
|
|
52727
|
-
r"""NAT网关的名称,形如:`test_nat
|
|
52745
|
+
r"""NAT网关的名称,形如:`test_nat`,边界值:[1,60] 字符。
|
|
52728
52746
|
:rtype: str
|
|
52729
52747
|
"""
|
|
52730
52748
|
return self._NatGatewayName
|
|
@@ -52735,7 +52753,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52735
52753
|
|
|
52736
52754
|
@property
|
|
52737
52755
|
def InternetMaxBandwidthOut(self):
|
|
52738
|
-
r"""NAT网关最大外网出带宽(单位:Mbps)。
|
|
52756
|
+
r"""NAT网关最大外网出带宽(单位:Mbps),边界值:[0,50000]。
|
|
52739
52757
|
:rtype: int
|
|
52740
52758
|
"""
|
|
52741
52759
|
return self._InternetMaxBandwidthOut
|
|
@@ -52777,6 +52795,17 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52777
52795
|
def DeletionProtectionEnabled(self, DeletionProtectionEnabled):
|
|
52778
52796
|
self._DeletionProtectionEnabled = DeletionProtectionEnabled
|
|
52779
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
|
+
|
|
52780
52809
|
|
|
52781
52810
|
def _deserialize(self, params):
|
|
52782
52811
|
self._NatGatewayId = params.get("NatGatewayId")
|
|
@@ -52785,6 +52814,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
|
52785
52814
|
self._ModifySecurityGroup = params.get("ModifySecurityGroup")
|
|
52786
52815
|
self._SecurityGroupIds = params.get("SecurityGroupIds")
|
|
52787
52816
|
self._DeletionProtectionEnabled = params.get("DeletionProtectionEnabled")
|
|
52817
|
+
self._PublicAddressAffinity = params.get("PublicAddressAffinity")
|
|
52788
52818
|
memeber_set = set(params.keys())
|
|
52789
52819
|
for name, value in vars(self).items():
|
|
52790
52820
|
property_name = name[1:]
|
|
@@ -71692,6 +71722,117 @@ class UpdateTrafficMirrorDirectionResponse(AbstractModel):
|
|
|
71692
71722
|
self._RequestId = params.get("RequestId")
|
|
71693
71723
|
|
|
71694
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
|
+
|
|
71695
71836
|
class UsedDetail(AbstractModel):
|
|
71696
71837
|
r"""共享流量包用量明细
|
|
71697
71838
|
|
|
@@ -10317,6 +10317,29 @@ class VpcClient(AbstractClient):
|
|
|
10317
10317
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
10318
10318
|
|
|
10319
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
|
+
|
|
10320
10343
|
def WithdrawNotifyRoutes(self, request):
|
|
10321
10344
|
r"""本接口(WithdrawNotifyRoutes)用于撤销已发布到云联网的路由。路由表列表页操作增加“从云联网撤销”。
|
|
10322
10345
|
|
|
@@ -8156,6 +8156,24 @@ class VpcClient(AbstractClient):
|
|
|
8156
8156
|
|
|
8157
8157
|
return await self.call_and_deserialize(**kwargs)
|
|
8158
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
|
+
|
|
8159
8177
|
async def WithdrawNotifyRoutes(
|
|
8160
8178
|
self,
|
|
8161
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,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=dRJ6X0_MXnkDHRAE7ZTM2F3fPf8pqBw60ZBjHEQ9XRw,629
|
|
2
|
+
tencentcloud/vpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/vpc/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/vpc/v20170312/errorcodes.py,sha256=aOHOWvuI_pILjZvxc9E-x31WMNBpBDIFEehnMORDn5Y,67628
|
|
5
|
+
tencentcloud/vpc/v20170312/models.py,sha256=lS3dS5e7K7jPlLLWIBbFWEInWOHFCnvSSaTLuf9VlNQ,2483967
|
|
6
|
+
tencentcloud/vpc/v20170312/vpc_client.py,sha256=k72MF-EF3DgbWrklVpL80Y3q2Mg7fXk3mfn98zOLbQ4,470768
|
|
7
|
+
tencentcloud/vpc/v20170312/vpc_client_async.py,sha256=5JTC_Y5hNruSX3iBf9-A0-8Ngon2sKSvpV9CSHBe-sM,337350
|
|
8
|
+
tencentcloud_sdk_python_vpc-3.1.35.dist-info/METADATA,sha256=yT5_tbZj_6It9-FpV7Ykm2nPPqIZThiZWE5JfbKuI4U,1495
|
|
9
|
+
tencentcloud_sdk_python_vpc-3.1.35.dist-info/WHEEL,sha256=I3glN-nznogni2CWkAvi6vPRkBhTbVeYvJZnIsln6uc,109
|
|
10
|
+
tencentcloud_sdk_python_vpc-3.1.35.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_vpc-3.1.35.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=_FBN5if6Lc-ioRLYR1s0rmYxhbxaT9Me4Rjh1LzWkNo,629
|
|
2
|
-
tencentcloud/vpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/vpc/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/vpc/v20170312/errorcodes.py,sha256=4ccGfz1qkUq2KjIj6UzOOxHffTst8ikMXFr54wdY4fs,65991
|
|
5
|
-
tencentcloud/vpc/v20170312/models.py,sha256=VNQF8ROpEtRiOCLHSG_JLUhpPcwJ9tUk7yhET209Dus,2478775
|
|
6
|
-
tencentcloud/vpc/v20170312/vpc_client.py,sha256=vLVqtposmXP_CGpTNBcxRCU5xgLAf-O8pwAdsfByNHI,469705
|
|
7
|
-
tencentcloud/vpc/v20170312/vpc_client_async.py,sha256=PD-zOw1p17TBaBDWjFKpLfxqKYToqHAxnrd57zYTk5A,336600
|
|
8
|
-
tencentcloud_sdk_python_vpc-3.1.31.dist-info/METADATA,sha256=33A_fSfomMsgU2Tv-Lrzo1o7b0_fMYQoD5WfA3CCg5w,1495
|
|
9
|
-
tencentcloud_sdk_python_vpc-3.1.31.dist-info/WHEEL,sha256=Ll72iyqtt6Rbxp-Q7FSafYA1LeRv98X15xcZWRsFEmY,109
|
|
10
|
-
tencentcloud_sdk_python_vpc-3.1.31.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_vpc-3.1.31.dist-info/RECORD,,
|
|
File without changes
|