tencentcloud-sdk-python-vpc 3.1.32__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/setup.py +1 -1
  3. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/errorcodes.py +30 -0
  5. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/models.py +130 -4
  6. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/vpc_client.py +23 -0
  7. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
  8. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud_sdk_python_vpc.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_vpc-3.1.35/tencentcloud_sdk_python_vpc.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_vpc-3.1.32/tencentcloud_sdk_python_vpc.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/README.rst +0 -0
  12. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/__init__.py +0 -0
  14. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud/vpc/v20170312/__init__.py +0 -0
  15. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud_sdk_python_vpc.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_vpc-3.1.32 → tencentcloud_sdk_python_vpc-3.1.35}/tencentcloud_sdk_python_vpc.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_vpc-3.1.32 → 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.32
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.32
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.32,<4.0.0"],
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',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.32'
17
+ __version__ = '3.1.35'
@@ -1166,9 +1166,33 @@ UNSUPPORTEDOPERATION_NATGATEWAYSNATRULENOTEXISTS = 'UnsupportedOperation.NatGate
1166
1166
  # NAT网关类型不支持SNAT规则。
1167
1167
  UNSUPPORTEDOPERATION_NATGATEWAYTYPENOTSUPPORTSNAT = 'UnsupportedOperation.NatGatewayTypeNotSupportSNAT'
1168
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
+
1169
1184
  # NAT实例不支持该操作。
1170
1185
  UNSUPPORTEDOPERATION_NATNOTSUPPORTED = 'UnsupportedOperation.NatNotSupported'
1171
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
+
1172
1196
  # 没有CDC专线网关。
1173
1197
  UNSUPPORTEDOPERATION_NOCDCDCGW = 'UnsupportedOperation.NoCdcDcGw'
1174
1198
 
@@ -1421,6 +1445,12 @@ UNSUPPORTEDOPERATION_UNSUPPORTEDBINDLOCALZONEEIP = 'UnsupportedOperation.Unsuppo
1421
1445
  # 指定机型不支持弹性网卡。
1422
1446
  UNSUPPORTEDOPERATION_UNSUPPORTEDINSTANCEFAMILY = 'UnsupportedOperation.UnsupportedInstanceFamily'
1423
1447
 
1448
+ # 传统型账号不支持该操作。
1449
+ UNSUPPORTEDOPERATION_UNSUPPORTEDLEGACYACCOUNT = 'UnsupportedOperation.UnsupportedLegacyAccount'
1450
+
1451
+ # NAT网关部署在local zone,不支持该操作。
1452
+ UNSUPPORTEDOPERATION_UNSUPPORTEDLOCALZONENAT = 'UnsupportedOperation.UnsupportedLocalZoneNat'
1453
+
1424
1454
  # 暂无法在此国家/地区提供该服务。
1425
1455
  UNSUPPORTEDOPERATION_UNSUPPORTEDREGION = 'UnsupportedOperation.UnsupportedRegion'
1426
1456
 
@@ -52708,9 +52708,9 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
52708
52708
  r"""
52709
52709
  :param _NatGatewayId: NAT网关的ID,形如:`nat-df45454`。
52710
52710
  :type NatGatewayId: str
52711
- :param _NatGatewayName: NAT网关的名称,形如:`test_nat`。
52711
+ :param _NatGatewayName: NAT网关的名称,形如:`test_nat`,边界值:[1,60] 字符。
52712
52712
  :type NatGatewayName: str
52713
- :param _InternetMaxBandwidthOut: NAT网关最大外网出带宽(单位:Mbps)。
52713
+ :param _InternetMaxBandwidthOut: NAT网关最大外网出带宽(单位:Mbps),边界值:[0,50000]。
52714
52714
  :type InternetMaxBandwidthOut: int
52715
52715
  :param _ModifySecurityGroup: 是否修改NAT网关绑定的安全组。
52716
52716
  :type ModifySecurityGroup: bool
@@ -52718,6 +52718,8 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
52718
52718
  :type SecurityGroupIds: list of str
52719
52719
  :param _DeletionProtectionEnabled: NAT实例是否开启删除保护
52720
52720
  :type DeletionProtectionEnabled: bool
52721
+ :param _PublicAddressAffinity: 同一个内网地址通过NAT网关访问同一个目的IP时,是否使用固定的弹性公网IP。默认为true,使用固定IP;false代表使用随机IP。当前适用于标准型NAT网关。
52722
+ :type PublicAddressAffinity: bool
52721
52723
  """
52722
52724
  self._NatGatewayId = None
52723
52725
  self._NatGatewayName = None
@@ -52725,6 +52727,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
52725
52727
  self._ModifySecurityGroup = None
52726
52728
  self._SecurityGroupIds = None
52727
52729
  self._DeletionProtectionEnabled = None
52730
+ self._PublicAddressAffinity = None
52728
52731
 
52729
52732
  @property
52730
52733
  def NatGatewayId(self):
@@ -52739,7 +52742,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
52739
52742
 
52740
52743
  @property
52741
52744
  def NatGatewayName(self):
52742
- r"""NAT网关的名称,形如:`test_nat`。
52745
+ r"""NAT网关的名称,形如:`test_nat`,边界值:[1,60] 字符。
52743
52746
  :rtype: str
52744
52747
  """
52745
52748
  return self._NatGatewayName
@@ -52750,7 +52753,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
52750
52753
 
52751
52754
  @property
52752
52755
  def InternetMaxBandwidthOut(self):
52753
- r"""NAT网关最大外网出带宽(单位:Mbps)。
52756
+ r"""NAT网关最大外网出带宽(单位:Mbps),边界值:[0,50000]。
52754
52757
  :rtype: int
52755
52758
  """
52756
52759
  return self._InternetMaxBandwidthOut
@@ -52792,6 +52795,17 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
52792
52795
  def DeletionProtectionEnabled(self, DeletionProtectionEnabled):
52793
52796
  self._DeletionProtectionEnabled = DeletionProtectionEnabled
52794
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
+
52795
52809
 
52796
52810
  def _deserialize(self, params):
52797
52811
  self._NatGatewayId = params.get("NatGatewayId")
@@ -52800,6 +52814,7 @@ class ModifyNatGatewayAttributeRequest(AbstractModel):
52800
52814
  self._ModifySecurityGroup = params.get("ModifySecurityGroup")
52801
52815
  self._SecurityGroupIds = params.get("SecurityGroupIds")
52802
52816
  self._DeletionProtectionEnabled = params.get("DeletionProtectionEnabled")
52817
+ self._PublicAddressAffinity = params.get("PublicAddressAffinity")
52803
52818
  memeber_set = set(params.keys())
52804
52819
  for name, value in vars(self).items():
52805
52820
  property_name = name[1:]
@@ -71707,6 +71722,117 @@ class UpdateTrafficMirrorDirectionResponse(AbstractModel):
71707
71722
  self._RequestId = params.get("RequestId")
71708
71723
 
71709
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
+
71710
71836
  class UsedDetail(AbstractModel):
71711
71837
  r"""共享流量包用量明细
71712
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.32
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.32
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.32