tencentcloud-sdk-python-vpc 3.1.27__py2.py3-none-any.whl → 3.1.31__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 +3 -0
- tencentcloud/vpc/v20170312/models.py +225 -0
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
- {tencentcloud_sdk_python_vpc-3.1.27.dist-info → tencentcloud_sdk_python_vpc-3.1.31.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_vpc-3.1.31.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_vpc-3.1.27.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_vpc-3.1.27.dist-info → tencentcloud_sdk_python_vpc-3.1.31.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_vpc-3.1.27.dist-info → tencentcloud_sdk_python_vpc-3.1.31.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -1205,6 +1205,9 @@ UNSUPPORTEDOPERATION_NOTSUPPORTDELETEVPCBMPEER = 'UnsupportedOperation.NotSuppor
|
|
|
1205
1205
|
# 默认路由表,不支持修改。
|
|
1206
1206
|
UNSUPPORTEDOPERATION_NOTSUPPORTMODIFYDEFAULTCCNROUTETABLE = 'UnsupportedOperation.NotSupportModifyDefaultCcnRouteTable'
|
|
1207
1207
|
|
|
1208
|
+
# 不支持的自定义路由类型。
|
|
1209
|
+
UNSUPPORTEDOPERATION_NOTSUPPORTROUTETYPE = 'UnsupportedOperation.NotSupportRouteType'
|
|
1210
|
+
|
|
1208
1211
|
# 不支持编辑相同的实例和源地址。
|
|
1209
1212
|
UNSUPPORTEDOPERATION_NOTSUPPORTSAMECCNINSTANCEANDSOURCEADDRESS = 'UnsupportedOperation.NotSupportSameCcnInstanceAndSourceAddress'
|
|
1210
1213
|
|
|
@@ -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 = []
|
|
@@ -58795,6 +58825,10 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58795
58825
|
:type CreateTime: str
|
|
58796
58826
|
:param _NetworkAclDirection: 方向,INGRESS或EGRESS,用于DescribeNetworkAclQuintupleEntries的出参。
|
|
58797
58827
|
:type NetworkAclDirection: str
|
|
58828
|
+
:param _SourceIPv6Cidr: IPv6源CIDR。
|
|
58829
|
+
:type SourceIPv6Cidr: str
|
|
58830
|
+
:param _DestinationIPv6Cidr: IPv6目的CIDR。
|
|
58831
|
+
:type DestinationIPv6Cidr: str
|
|
58798
58832
|
"""
|
|
58799
58833
|
self._Protocol = None
|
|
58800
58834
|
self._Description = None
|
|
@@ -58807,6 +58841,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58807
58841
|
self._Priority = None
|
|
58808
58842
|
self._CreateTime = None
|
|
58809
58843
|
self._NetworkAclDirection = None
|
|
58844
|
+
self._SourceIPv6Cidr = None
|
|
58845
|
+
self._DestinationIPv6Cidr = None
|
|
58810
58846
|
|
|
58811
58847
|
@property
|
|
58812
58848
|
def Protocol(self):
|
|
@@ -58929,6 +58965,28 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58929
58965
|
def NetworkAclDirection(self, NetworkAclDirection):
|
|
58930
58966
|
self._NetworkAclDirection = NetworkAclDirection
|
|
58931
58967
|
|
|
58968
|
+
@property
|
|
58969
|
+
def SourceIPv6Cidr(self):
|
|
58970
|
+
r"""IPv6源CIDR。
|
|
58971
|
+
:rtype: str
|
|
58972
|
+
"""
|
|
58973
|
+
return self._SourceIPv6Cidr
|
|
58974
|
+
|
|
58975
|
+
@SourceIPv6Cidr.setter
|
|
58976
|
+
def SourceIPv6Cidr(self, SourceIPv6Cidr):
|
|
58977
|
+
self._SourceIPv6Cidr = SourceIPv6Cidr
|
|
58978
|
+
|
|
58979
|
+
@property
|
|
58980
|
+
def DestinationIPv6Cidr(self):
|
|
58981
|
+
r"""IPv6目的CIDR。
|
|
58982
|
+
:rtype: str
|
|
58983
|
+
"""
|
|
58984
|
+
return self._DestinationIPv6Cidr
|
|
58985
|
+
|
|
58986
|
+
@DestinationIPv6Cidr.setter
|
|
58987
|
+
def DestinationIPv6Cidr(self, DestinationIPv6Cidr):
|
|
58988
|
+
self._DestinationIPv6Cidr = DestinationIPv6Cidr
|
|
58989
|
+
|
|
58932
58990
|
|
|
58933
58991
|
def _deserialize(self, params):
|
|
58934
58992
|
self._Protocol = params.get("Protocol")
|
|
@@ -58942,6 +59000,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58942
59000
|
self._Priority = params.get("Priority")
|
|
58943
59001
|
self._CreateTime = params.get("CreateTime")
|
|
58944
59002
|
self._NetworkAclDirection = params.get("NetworkAclDirection")
|
|
59003
|
+
self._SourceIPv6Cidr = params.get("SourceIPv6Cidr")
|
|
59004
|
+
self._DestinationIPv6Cidr = params.get("DestinationIPv6Cidr")
|
|
58945
59005
|
memeber_set = set(params.keys())
|
|
58946
59006
|
for name, value in vars(self).items():
|
|
58947
59007
|
property_name = name[1:]
|
|
@@ -61376,10 +61436,16 @@ class RemoveBandwidthPackageResourcesRequest(AbstractModel):
|
|
|
61376
61436
|
<li>Address:弹性公网IP</li>
|
|
61377
61437
|
<li>LoadBalance:负载均衡</li>
|
|
61378
61438
|
:type ResourceType: str
|
|
61439
|
+
:param _InternetMaxBandwidthOut: 用于移除带宽包内IP资源时指定IP的带宽值。<p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61440
|
+
:type InternetMaxBandwidthOut: int
|
|
61441
|
+
:param _InternetChargeType: 用于移除带宽包内IP资源时指定资源移除后的计费模式。<li>小时流量:TRAFFIC_POSTPAID_BY_HOUR;</li><li>小时带宽:BANDWIDTH_POSTPAID_BY_HOUR</li><p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61442
|
+
:type InternetChargeType: str
|
|
61379
61443
|
"""
|
|
61380
61444
|
self._ResourceIds = None
|
|
61381
61445
|
self._BandwidthPackageId = None
|
|
61382
61446
|
self._ResourceType = None
|
|
61447
|
+
self._InternetMaxBandwidthOut = None
|
|
61448
|
+
self._InternetChargeType = None
|
|
61383
61449
|
|
|
61384
61450
|
@property
|
|
61385
61451
|
def ResourceIds(self):
|
|
@@ -61416,11 +61482,35 @@ class RemoveBandwidthPackageResourcesRequest(AbstractModel):
|
|
|
61416
61482
|
def ResourceType(self, ResourceType):
|
|
61417
61483
|
self._ResourceType = ResourceType
|
|
61418
61484
|
|
|
61485
|
+
@property
|
|
61486
|
+
def InternetMaxBandwidthOut(self):
|
|
61487
|
+
r"""用于移除带宽包内IP资源时指定IP的带宽值。<p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61488
|
+
:rtype: int
|
|
61489
|
+
"""
|
|
61490
|
+
return self._InternetMaxBandwidthOut
|
|
61491
|
+
|
|
61492
|
+
@InternetMaxBandwidthOut.setter
|
|
61493
|
+
def InternetMaxBandwidthOut(self, InternetMaxBandwidthOut):
|
|
61494
|
+
self._InternetMaxBandwidthOut = InternetMaxBandwidthOut
|
|
61495
|
+
|
|
61496
|
+
@property
|
|
61497
|
+
def InternetChargeType(self):
|
|
61498
|
+
r"""用于移除带宽包内IP资源时指定资源移除后的计费模式。<li>小时流量:TRAFFIC_POSTPAID_BY_HOUR;</li><li>小时带宽:BANDWIDTH_POSTPAID_BY_HOUR</li><p>说明:当前功能处于内测中,如需使用,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。</p>
|
|
61499
|
+
:rtype: str
|
|
61500
|
+
"""
|
|
61501
|
+
return self._InternetChargeType
|
|
61502
|
+
|
|
61503
|
+
@InternetChargeType.setter
|
|
61504
|
+
def InternetChargeType(self, InternetChargeType):
|
|
61505
|
+
self._InternetChargeType = InternetChargeType
|
|
61506
|
+
|
|
61419
61507
|
|
|
61420
61508
|
def _deserialize(self, params):
|
|
61421
61509
|
self._ResourceIds = params.get("ResourceIds")
|
|
61422
61510
|
self._BandwidthPackageId = params.get("BandwidthPackageId")
|
|
61423
61511
|
self._ResourceType = params.get("ResourceType")
|
|
61512
|
+
self._InternetMaxBandwidthOut = params.get("InternetMaxBandwidthOut")
|
|
61513
|
+
self._InternetChargeType = params.get("InternetChargeType")
|
|
61424
61514
|
memeber_set = set(params.keys())
|
|
61425
61515
|
for name, value in vars(self).items():
|
|
61426
61516
|
property_name = name[1:]
|
|
@@ -62556,6 +62646,141 @@ class ReplaceRoutesResponse(AbstractModel):
|
|
|
62556
62646
|
self._RequestId = params.get("RequestId")
|
|
62557
62647
|
|
|
62558
62648
|
|
|
62649
|
+
class ReplaceRoutesWithRoutePolicyRequest(AbstractModel):
|
|
62650
|
+
r"""ReplaceRoutesWithRoutePolicy请求参数结构体
|
|
62651
|
+
|
|
62652
|
+
"""
|
|
62653
|
+
|
|
62654
|
+
def __init__(self):
|
|
62655
|
+
r"""
|
|
62656
|
+
:param _RouteTableId: 路由表实例ID。
|
|
62657
|
+
:type RouteTableId: str
|
|
62658
|
+
:param _Routes: 路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62659
|
+
:type Routes: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62660
|
+
"""
|
|
62661
|
+
self._RouteTableId = None
|
|
62662
|
+
self._Routes = None
|
|
62663
|
+
|
|
62664
|
+
@property
|
|
62665
|
+
def RouteTableId(self):
|
|
62666
|
+
r"""路由表实例ID。
|
|
62667
|
+
:rtype: str
|
|
62668
|
+
"""
|
|
62669
|
+
return self._RouteTableId
|
|
62670
|
+
|
|
62671
|
+
@RouteTableId.setter
|
|
62672
|
+
def RouteTableId(self, RouteTableId):
|
|
62673
|
+
self._RouteTableId = RouteTableId
|
|
62674
|
+
|
|
62675
|
+
@property
|
|
62676
|
+
def Routes(self):
|
|
62677
|
+
r"""路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62678
|
+
:rtype: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62679
|
+
"""
|
|
62680
|
+
return self._Routes
|
|
62681
|
+
|
|
62682
|
+
@Routes.setter
|
|
62683
|
+
def Routes(self, Routes):
|
|
62684
|
+
self._Routes = Routes
|
|
62685
|
+
|
|
62686
|
+
|
|
62687
|
+
def _deserialize(self, params):
|
|
62688
|
+
self._RouteTableId = params.get("RouteTableId")
|
|
62689
|
+
if params.get("Routes") is not None:
|
|
62690
|
+
self._Routes = []
|
|
62691
|
+
for item in params.get("Routes"):
|
|
62692
|
+
obj = ReplaceRoutesWithRoutePolicyRoute()
|
|
62693
|
+
obj._deserialize(item)
|
|
62694
|
+
self._Routes.append(obj)
|
|
62695
|
+
memeber_set = set(params.keys())
|
|
62696
|
+
for name, value in vars(self).items():
|
|
62697
|
+
property_name = name[1:]
|
|
62698
|
+
if property_name in memeber_set:
|
|
62699
|
+
memeber_set.remove(property_name)
|
|
62700
|
+
if len(memeber_set) > 0:
|
|
62701
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62702
|
+
|
|
62703
|
+
|
|
62704
|
+
|
|
62705
|
+
class ReplaceRoutesWithRoutePolicyResponse(AbstractModel):
|
|
62706
|
+
r"""ReplaceRoutesWithRoutePolicy返回参数结构体
|
|
62707
|
+
|
|
62708
|
+
"""
|
|
62709
|
+
|
|
62710
|
+
def __init__(self):
|
|
62711
|
+
r"""
|
|
62712
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62713
|
+
:type RequestId: str
|
|
62714
|
+
"""
|
|
62715
|
+
self._RequestId = None
|
|
62716
|
+
|
|
62717
|
+
@property
|
|
62718
|
+
def RequestId(self):
|
|
62719
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62720
|
+
:rtype: str
|
|
62721
|
+
"""
|
|
62722
|
+
return self._RequestId
|
|
62723
|
+
|
|
62724
|
+
@RequestId.setter
|
|
62725
|
+
def RequestId(self, RequestId):
|
|
62726
|
+
self._RequestId = RequestId
|
|
62727
|
+
|
|
62728
|
+
|
|
62729
|
+
def _deserialize(self, params):
|
|
62730
|
+
self._RequestId = params.get("RequestId")
|
|
62731
|
+
|
|
62732
|
+
|
|
62733
|
+
class ReplaceRoutesWithRoutePolicyRoute(AbstractModel):
|
|
62734
|
+
r"""匹配路由接收策略对象
|
|
62735
|
+
|
|
62736
|
+
"""
|
|
62737
|
+
|
|
62738
|
+
def __init__(self):
|
|
62739
|
+
r"""
|
|
62740
|
+
:param _RouteItemId: 路由唯一策略ID。
|
|
62741
|
+
:type RouteItemId: str
|
|
62742
|
+
:param _ForceMatchPolicy: 匹配路由接收策略标记。
|
|
62743
|
+
:type ForceMatchPolicy: bool
|
|
62744
|
+
"""
|
|
62745
|
+
self._RouteItemId = None
|
|
62746
|
+
self._ForceMatchPolicy = None
|
|
62747
|
+
|
|
62748
|
+
@property
|
|
62749
|
+
def RouteItemId(self):
|
|
62750
|
+
r"""路由唯一策略ID。
|
|
62751
|
+
:rtype: str
|
|
62752
|
+
"""
|
|
62753
|
+
return self._RouteItemId
|
|
62754
|
+
|
|
62755
|
+
@RouteItemId.setter
|
|
62756
|
+
def RouteItemId(self, RouteItemId):
|
|
62757
|
+
self._RouteItemId = RouteItemId
|
|
62758
|
+
|
|
62759
|
+
@property
|
|
62760
|
+
def ForceMatchPolicy(self):
|
|
62761
|
+
r"""匹配路由接收策略标记。
|
|
62762
|
+
:rtype: bool
|
|
62763
|
+
"""
|
|
62764
|
+
return self._ForceMatchPolicy
|
|
62765
|
+
|
|
62766
|
+
@ForceMatchPolicy.setter
|
|
62767
|
+
def ForceMatchPolicy(self, ForceMatchPolicy):
|
|
62768
|
+
self._ForceMatchPolicy = ForceMatchPolicy
|
|
62769
|
+
|
|
62770
|
+
|
|
62771
|
+
def _deserialize(self, params):
|
|
62772
|
+
self._RouteItemId = params.get("RouteItemId")
|
|
62773
|
+
self._ForceMatchPolicy = params.get("ForceMatchPolicy")
|
|
62774
|
+
memeber_set = set(params.keys())
|
|
62775
|
+
for name, value in vars(self).items():
|
|
62776
|
+
property_name = name[1:]
|
|
62777
|
+
if property_name in memeber_set:
|
|
62778
|
+
memeber_set.remove(property_name)
|
|
62779
|
+
if len(memeber_set) > 0:
|
|
62780
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62781
|
+
|
|
62782
|
+
|
|
62783
|
+
|
|
62559
62784
|
class ReplaceSecurityGroupPoliciesRequest(AbstractModel):
|
|
62560
62785
|
r"""ReplaceSecurityGroupPolicies请求参数结构体
|
|
62561
62786
|
|
|
@@ -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.31
|
|
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.31
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
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,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=eN9-HwuAC6zcMyZNe2fQN1ELZy3pf1Rk7VomEwITWCE,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=l66F-rgF4wCMRzUXSvZR66OjGV9u6yp_JGodyN7YaIg,65865
|
|
5
|
-
tencentcloud/vpc/v20170312/models.py,sha256=wZ_ynLm8h8nay5S9yB6G_HqA4p8113gzyNLXnEDv6yk,2470248
|
|
6
|
-
tencentcloud/vpc/v20170312/vpc_client.py,sha256=8fGIJxTI4aFd67LRjb8JBdDc9Oirz5aj1Vw88nu_qqU,468664
|
|
7
|
-
tencentcloud/vpc/v20170312/vpc_client_async.py,sha256=i-0dbwatRJMkJwngJ4fO8BEzcPbSEAfTkiuLcbCofZY,335869
|
|
8
|
-
tencentcloud_sdk_python_vpc-3.1.27.dist-info/METADATA,sha256=HGM2YzkCCDcMdxJhDGXj0Fcy08PxrBwWImzFEp35DYI,1495
|
|
9
|
-
tencentcloud_sdk_python_vpc-3.1.27.dist-info/WHEEL,sha256=Ll72iyqtt6Rbxp-Q7FSafYA1LeRv98X15xcZWRsFEmY,109
|
|
10
|
-
tencentcloud_sdk_python_vpc-3.1.27.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_vpc-3.1.27.dist-info/RECORD,,
|
{tencentcloud_sdk_python_vpc-3.1.27.dist-info → tencentcloud_sdk_python_vpc-3.1.31.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|