tencentcloud-sdk-python-vpc 3.1.21__py2.py3-none-any.whl → 3.1.29__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 +252 -2
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
- {tencentcloud_sdk_python_vpc-3.1.21.dist-info → tencentcloud_sdk_python_vpc-3.1.29.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_vpc-3.1.29.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_vpc-3.1.21.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_vpc-3.1.21.dist-info → tencentcloud_sdk_python_vpc-3.1.29.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_vpc-3.1.21.dist-info → tencentcloud_sdk_python_vpc-3.1.29.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
|
|
|
@@ -13672,11 +13672,25 @@ class CreatePrivateNatGatewayTranslationAclRuleResponse(AbstractModel):
|
|
|
13672
13672
|
|
|
13673
13673
|
def __init__(self):
|
|
13674
13674
|
r"""
|
|
13675
|
+
:param _TranslationAclRuleSet: 创建成功的访问控制列表。
|
|
13676
|
+
:type TranslationAclRuleSet: list of TranslationAclRule
|
|
13675
13677
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13676
13678
|
:type RequestId: str
|
|
13677
13679
|
"""
|
|
13680
|
+
self._TranslationAclRuleSet = None
|
|
13678
13681
|
self._RequestId = None
|
|
13679
13682
|
|
|
13683
|
+
@property
|
|
13684
|
+
def TranslationAclRuleSet(self):
|
|
13685
|
+
r"""创建成功的访问控制列表。
|
|
13686
|
+
:rtype: list of TranslationAclRule
|
|
13687
|
+
"""
|
|
13688
|
+
return self._TranslationAclRuleSet
|
|
13689
|
+
|
|
13690
|
+
@TranslationAclRuleSet.setter
|
|
13691
|
+
def TranslationAclRuleSet(self, TranslationAclRuleSet):
|
|
13692
|
+
self._TranslationAclRuleSet = TranslationAclRuleSet
|
|
13693
|
+
|
|
13680
13694
|
@property
|
|
13681
13695
|
def RequestId(self):
|
|
13682
13696
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -13690,6 +13704,12 @@ class CreatePrivateNatGatewayTranslationAclRuleResponse(AbstractModel):
|
|
|
13690
13704
|
|
|
13691
13705
|
|
|
13692
13706
|
def _deserialize(self, params):
|
|
13707
|
+
if params.get("TranslationAclRuleSet") is not None:
|
|
13708
|
+
self._TranslationAclRuleSet = []
|
|
13709
|
+
for item in params.get("TranslationAclRuleSet"):
|
|
13710
|
+
obj = TranslationAclRule()
|
|
13711
|
+
obj._deserialize(item)
|
|
13712
|
+
self._TranslationAclRuleSet.append(obj)
|
|
13693
13713
|
self._RequestId = params.get("RequestId")
|
|
13694
13714
|
|
|
13695
13715
|
|
|
@@ -32223,6 +32243,8 @@ class DescribePrivateNatGatewayTranslationAclRulesRequest(AbstractModel):
|
|
|
32223
32243
|
:type Limit: int
|
|
32224
32244
|
:param _Description: ACL规则描述
|
|
32225
32245
|
:type Description: str
|
|
32246
|
+
:param _Filters: 过滤条件。<li>AclRuleId - Integer - ACL规则ID。</li>
|
|
32247
|
+
:type Filters: list of Filter
|
|
32226
32248
|
"""
|
|
32227
32249
|
self._NatGatewayId = None
|
|
32228
32250
|
self._TranslationDirection = None
|
|
@@ -32232,6 +32254,7 @@ class DescribePrivateNatGatewayTranslationAclRulesRequest(AbstractModel):
|
|
|
32232
32254
|
self._Offset = None
|
|
32233
32255
|
self._Limit = None
|
|
32234
32256
|
self._Description = None
|
|
32257
|
+
self._Filters = None
|
|
32235
32258
|
|
|
32236
32259
|
@property
|
|
32237
32260
|
def NatGatewayId(self):
|
|
@@ -32321,6 +32344,17 @@ class DescribePrivateNatGatewayTranslationAclRulesRequest(AbstractModel):
|
|
|
32321
32344
|
def Description(self, Description):
|
|
32322
32345
|
self._Description = Description
|
|
32323
32346
|
|
|
32347
|
+
@property
|
|
32348
|
+
def Filters(self):
|
|
32349
|
+
r"""过滤条件。<li>AclRuleId - Integer - ACL规则ID。</li>
|
|
32350
|
+
:rtype: list of Filter
|
|
32351
|
+
"""
|
|
32352
|
+
return self._Filters
|
|
32353
|
+
|
|
32354
|
+
@Filters.setter
|
|
32355
|
+
def Filters(self, Filters):
|
|
32356
|
+
self._Filters = Filters
|
|
32357
|
+
|
|
32324
32358
|
|
|
32325
32359
|
def _deserialize(self, params):
|
|
32326
32360
|
self._NatGatewayId = params.get("NatGatewayId")
|
|
@@ -32331,6 +32365,12 @@ class DescribePrivateNatGatewayTranslationAclRulesRequest(AbstractModel):
|
|
|
32331
32365
|
self._Offset = params.get("Offset")
|
|
32332
32366
|
self._Limit = params.get("Limit")
|
|
32333
32367
|
self._Description = params.get("Description")
|
|
32368
|
+
if params.get("Filters") is not None:
|
|
32369
|
+
self._Filters = []
|
|
32370
|
+
for item in params.get("Filters"):
|
|
32371
|
+
obj = Filter()
|
|
32372
|
+
obj._deserialize(item)
|
|
32373
|
+
self._Filters.append(obj)
|
|
32334
32374
|
memeber_set = set(params.keys())
|
|
32335
32375
|
for name, value in vars(self).items():
|
|
32336
32376
|
property_name = name[1:]
|
|
@@ -44706,15 +44746,18 @@ class GatewayQos(AbstractModel):
|
|
|
44706
44746
|
:type VpcId: str
|
|
44707
44747
|
:param _IpAddress: 云服务器内网IP。
|
|
44708
44748
|
:type IpAddress: str
|
|
44709
|
-
:param _Bandwidth:
|
|
44749
|
+
:param _Bandwidth: 网关流控出方向带宽值,当值为-1时,代表未限速;当值大于等于0时,限速带宽上限为返回值。
|
|
44710
44750
|
:type Bandwidth: int
|
|
44711
44751
|
:param _CreateTime: 创建时间。
|
|
44712
44752
|
:type CreateTime: str
|
|
44753
|
+
:param _InBandwidth: 网关流控入方向带宽值,当值为-1时,代表未限速;当值大于等于0时,限速带宽上限为返回值。
|
|
44754
|
+
:type InBandwidth: int
|
|
44713
44755
|
"""
|
|
44714
44756
|
self._VpcId = None
|
|
44715
44757
|
self._IpAddress = None
|
|
44716
44758
|
self._Bandwidth = None
|
|
44717
44759
|
self._CreateTime = None
|
|
44760
|
+
self._InBandwidth = None
|
|
44718
44761
|
|
|
44719
44762
|
@property
|
|
44720
44763
|
def VpcId(self):
|
|
@@ -44740,7 +44783,7 @@ class GatewayQos(AbstractModel):
|
|
|
44740
44783
|
|
|
44741
44784
|
@property
|
|
44742
44785
|
def Bandwidth(self):
|
|
44743
|
-
r"""
|
|
44786
|
+
r"""网关流控出方向带宽值,当值为-1时,代表未限速;当值大于等于0时,限速带宽上限为返回值。
|
|
44744
44787
|
:rtype: int
|
|
44745
44788
|
"""
|
|
44746
44789
|
return self._Bandwidth
|
|
@@ -44760,12 +44803,24 @@ class GatewayQos(AbstractModel):
|
|
|
44760
44803
|
def CreateTime(self, CreateTime):
|
|
44761
44804
|
self._CreateTime = CreateTime
|
|
44762
44805
|
|
|
44806
|
+
@property
|
|
44807
|
+
def InBandwidth(self):
|
|
44808
|
+
r"""网关流控入方向带宽值,当值为-1时,代表未限速;当值大于等于0时,限速带宽上限为返回值。
|
|
44809
|
+
:rtype: int
|
|
44810
|
+
"""
|
|
44811
|
+
return self._InBandwidth
|
|
44812
|
+
|
|
44813
|
+
@InBandwidth.setter
|
|
44814
|
+
def InBandwidth(self, InBandwidth):
|
|
44815
|
+
self._InBandwidth = InBandwidth
|
|
44816
|
+
|
|
44763
44817
|
|
|
44764
44818
|
def _deserialize(self, params):
|
|
44765
44819
|
self._VpcId = params.get("VpcId")
|
|
44766
44820
|
self._IpAddress = params.get("IpAddress")
|
|
44767
44821
|
self._Bandwidth = params.get("Bandwidth")
|
|
44768
44822
|
self._CreateTime = params.get("CreateTime")
|
|
44823
|
+
self._InBandwidth = params.get("InBandwidth")
|
|
44769
44824
|
memeber_set = set(params.keys())
|
|
44770
44825
|
for name, value in vars(self).items():
|
|
44771
44826
|
property_name = name[1:]
|
|
@@ -58740,6 +58795,10 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58740
58795
|
:type CreateTime: str
|
|
58741
58796
|
:param _NetworkAclDirection: 方向,INGRESS或EGRESS,用于DescribeNetworkAclQuintupleEntries的出参。
|
|
58742
58797
|
:type NetworkAclDirection: str
|
|
58798
|
+
:param _SourceIPv6Cidr: IPv6源CIDR。
|
|
58799
|
+
:type SourceIPv6Cidr: str
|
|
58800
|
+
:param _DestinationIPv6Cidr: IPv6目的CIDR。
|
|
58801
|
+
:type DestinationIPv6Cidr: str
|
|
58743
58802
|
"""
|
|
58744
58803
|
self._Protocol = None
|
|
58745
58804
|
self._Description = None
|
|
@@ -58752,6 +58811,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58752
58811
|
self._Priority = None
|
|
58753
58812
|
self._CreateTime = None
|
|
58754
58813
|
self._NetworkAclDirection = None
|
|
58814
|
+
self._SourceIPv6Cidr = None
|
|
58815
|
+
self._DestinationIPv6Cidr = None
|
|
58755
58816
|
|
|
58756
58817
|
@property
|
|
58757
58818
|
def Protocol(self):
|
|
@@ -58874,6 +58935,28 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58874
58935
|
def NetworkAclDirection(self, NetworkAclDirection):
|
|
58875
58936
|
self._NetworkAclDirection = NetworkAclDirection
|
|
58876
58937
|
|
|
58938
|
+
@property
|
|
58939
|
+
def SourceIPv6Cidr(self):
|
|
58940
|
+
r"""IPv6源CIDR。
|
|
58941
|
+
:rtype: str
|
|
58942
|
+
"""
|
|
58943
|
+
return self._SourceIPv6Cidr
|
|
58944
|
+
|
|
58945
|
+
@SourceIPv6Cidr.setter
|
|
58946
|
+
def SourceIPv6Cidr(self, SourceIPv6Cidr):
|
|
58947
|
+
self._SourceIPv6Cidr = SourceIPv6Cidr
|
|
58948
|
+
|
|
58949
|
+
@property
|
|
58950
|
+
def DestinationIPv6Cidr(self):
|
|
58951
|
+
r"""IPv6目的CIDR。
|
|
58952
|
+
:rtype: str
|
|
58953
|
+
"""
|
|
58954
|
+
return self._DestinationIPv6Cidr
|
|
58955
|
+
|
|
58956
|
+
@DestinationIPv6Cidr.setter
|
|
58957
|
+
def DestinationIPv6Cidr(self, DestinationIPv6Cidr):
|
|
58958
|
+
self._DestinationIPv6Cidr = DestinationIPv6Cidr
|
|
58959
|
+
|
|
58877
58960
|
|
|
58878
58961
|
def _deserialize(self, params):
|
|
58879
58962
|
self._Protocol = params.get("Protocol")
|
|
@@ -58887,6 +58970,8 @@ class NetworkAclQuintupleEntry(AbstractModel):
|
|
|
58887
58970
|
self._Priority = params.get("Priority")
|
|
58888
58971
|
self._CreateTime = params.get("CreateTime")
|
|
58889
58972
|
self._NetworkAclDirection = params.get("NetworkAclDirection")
|
|
58973
|
+
self._SourceIPv6Cidr = params.get("SourceIPv6Cidr")
|
|
58974
|
+
self._DestinationIPv6Cidr = params.get("DestinationIPv6Cidr")
|
|
58890
58975
|
memeber_set = set(params.keys())
|
|
58891
58976
|
for name, value in vars(self).items():
|
|
58892
58977
|
property_name = name[1:]
|
|
@@ -62501,6 +62586,141 @@ class ReplaceRoutesResponse(AbstractModel):
|
|
|
62501
62586
|
self._RequestId = params.get("RequestId")
|
|
62502
62587
|
|
|
62503
62588
|
|
|
62589
|
+
class ReplaceRoutesWithRoutePolicyRequest(AbstractModel):
|
|
62590
|
+
r"""ReplaceRoutesWithRoutePolicy请求参数结构体
|
|
62591
|
+
|
|
62592
|
+
"""
|
|
62593
|
+
|
|
62594
|
+
def __init__(self):
|
|
62595
|
+
r"""
|
|
62596
|
+
:param _RouteTableId: 路由表实例ID。
|
|
62597
|
+
:type RouteTableId: str
|
|
62598
|
+
:param _Routes: 路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62599
|
+
:type Routes: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62600
|
+
"""
|
|
62601
|
+
self._RouteTableId = None
|
|
62602
|
+
self._Routes = None
|
|
62603
|
+
|
|
62604
|
+
@property
|
|
62605
|
+
def RouteTableId(self):
|
|
62606
|
+
r"""路由表实例ID。
|
|
62607
|
+
:rtype: str
|
|
62608
|
+
"""
|
|
62609
|
+
return self._RouteTableId
|
|
62610
|
+
|
|
62611
|
+
@RouteTableId.setter
|
|
62612
|
+
def RouteTableId(self, RouteTableId):
|
|
62613
|
+
self._RouteTableId = RouteTableId
|
|
62614
|
+
|
|
62615
|
+
@property
|
|
62616
|
+
def Routes(self):
|
|
62617
|
+
r"""路由策略对象。需要指定路由策略唯一ID(RouteItemId)。
|
|
62618
|
+
:rtype: list of ReplaceRoutesWithRoutePolicyRoute
|
|
62619
|
+
"""
|
|
62620
|
+
return self._Routes
|
|
62621
|
+
|
|
62622
|
+
@Routes.setter
|
|
62623
|
+
def Routes(self, Routes):
|
|
62624
|
+
self._Routes = Routes
|
|
62625
|
+
|
|
62626
|
+
|
|
62627
|
+
def _deserialize(self, params):
|
|
62628
|
+
self._RouteTableId = params.get("RouteTableId")
|
|
62629
|
+
if params.get("Routes") is not None:
|
|
62630
|
+
self._Routes = []
|
|
62631
|
+
for item in params.get("Routes"):
|
|
62632
|
+
obj = ReplaceRoutesWithRoutePolicyRoute()
|
|
62633
|
+
obj._deserialize(item)
|
|
62634
|
+
self._Routes.append(obj)
|
|
62635
|
+
memeber_set = set(params.keys())
|
|
62636
|
+
for name, value in vars(self).items():
|
|
62637
|
+
property_name = name[1:]
|
|
62638
|
+
if property_name in memeber_set:
|
|
62639
|
+
memeber_set.remove(property_name)
|
|
62640
|
+
if len(memeber_set) > 0:
|
|
62641
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62642
|
+
|
|
62643
|
+
|
|
62644
|
+
|
|
62645
|
+
class ReplaceRoutesWithRoutePolicyResponse(AbstractModel):
|
|
62646
|
+
r"""ReplaceRoutesWithRoutePolicy返回参数结构体
|
|
62647
|
+
|
|
62648
|
+
"""
|
|
62649
|
+
|
|
62650
|
+
def __init__(self):
|
|
62651
|
+
r"""
|
|
62652
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62653
|
+
:type RequestId: str
|
|
62654
|
+
"""
|
|
62655
|
+
self._RequestId = None
|
|
62656
|
+
|
|
62657
|
+
@property
|
|
62658
|
+
def RequestId(self):
|
|
62659
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62660
|
+
:rtype: str
|
|
62661
|
+
"""
|
|
62662
|
+
return self._RequestId
|
|
62663
|
+
|
|
62664
|
+
@RequestId.setter
|
|
62665
|
+
def RequestId(self, RequestId):
|
|
62666
|
+
self._RequestId = RequestId
|
|
62667
|
+
|
|
62668
|
+
|
|
62669
|
+
def _deserialize(self, params):
|
|
62670
|
+
self._RequestId = params.get("RequestId")
|
|
62671
|
+
|
|
62672
|
+
|
|
62673
|
+
class ReplaceRoutesWithRoutePolicyRoute(AbstractModel):
|
|
62674
|
+
r"""匹配路由接收策略对象
|
|
62675
|
+
|
|
62676
|
+
"""
|
|
62677
|
+
|
|
62678
|
+
def __init__(self):
|
|
62679
|
+
r"""
|
|
62680
|
+
:param _RouteItemId: 路由唯一策略ID。
|
|
62681
|
+
:type RouteItemId: str
|
|
62682
|
+
:param _ForceMatchPolicy: 匹配路由接收策略标记。
|
|
62683
|
+
:type ForceMatchPolicy: bool
|
|
62684
|
+
"""
|
|
62685
|
+
self._RouteItemId = None
|
|
62686
|
+
self._ForceMatchPolicy = None
|
|
62687
|
+
|
|
62688
|
+
@property
|
|
62689
|
+
def RouteItemId(self):
|
|
62690
|
+
r"""路由唯一策略ID。
|
|
62691
|
+
:rtype: str
|
|
62692
|
+
"""
|
|
62693
|
+
return self._RouteItemId
|
|
62694
|
+
|
|
62695
|
+
@RouteItemId.setter
|
|
62696
|
+
def RouteItemId(self, RouteItemId):
|
|
62697
|
+
self._RouteItemId = RouteItemId
|
|
62698
|
+
|
|
62699
|
+
@property
|
|
62700
|
+
def ForceMatchPolicy(self):
|
|
62701
|
+
r"""匹配路由接收策略标记。
|
|
62702
|
+
:rtype: bool
|
|
62703
|
+
"""
|
|
62704
|
+
return self._ForceMatchPolicy
|
|
62705
|
+
|
|
62706
|
+
@ForceMatchPolicy.setter
|
|
62707
|
+
def ForceMatchPolicy(self, ForceMatchPolicy):
|
|
62708
|
+
self._ForceMatchPolicy = ForceMatchPolicy
|
|
62709
|
+
|
|
62710
|
+
|
|
62711
|
+
def _deserialize(self, params):
|
|
62712
|
+
self._RouteItemId = params.get("RouteItemId")
|
|
62713
|
+
self._ForceMatchPolicy = params.get("ForceMatchPolicy")
|
|
62714
|
+
memeber_set = set(params.keys())
|
|
62715
|
+
for name, value in vars(self).items():
|
|
62716
|
+
property_name = name[1:]
|
|
62717
|
+
if property_name in memeber_set:
|
|
62718
|
+
memeber_set.remove(property_name)
|
|
62719
|
+
if len(memeber_set) > 0:
|
|
62720
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
62721
|
+
|
|
62722
|
+
|
|
62723
|
+
|
|
62504
62724
|
class ReplaceSecurityGroupPoliciesRequest(AbstractModel):
|
|
62505
62725
|
r"""ReplaceSecurityGroupPolicies请求参数结构体
|
|
62506
62726
|
|
|
@@ -73090,6 +73310,8 @@ class VpnGatewayRoute(AbstractModel):
|
|
|
73090
73310
|
:type CreateTime: str
|
|
73091
73311
|
:param _UpdateTime: 更新时间。
|
|
73092
73312
|
:type UpdateTime: str
|
|
73313
|
+
:param _Description: 路由备注
|
|
73314
|
+
:type Description: str
|
|
73093
73315
|
"""
|
|
73094
73316
|
self._DestinationCidrBlock = None
|
|
73095
73317
|
self._InstanceType = None
|
|
@@ -73100,6 +73322,7 @@ class VpnGatewayRoute(AbstractModel):
|
|
|
73100
73322
|
self._Type = None
|
|
73101
73323
|
self._CreateTime = None
|
|
73102
73324
|
self._UpdateTime = None
|
|
73325
|
+
self._Description = None
|
|
73103
73326
|
|
|
73104
73327
|
@property
|
|
73105
73328
|
def DestinationCidrBlock(self):
|
|
@@ -73200,6 +73423,17 @@ class VpnGatewayRoute(AbstractModel):
|
|
|
73200
73423
|
def UpdateTime(self, UpdateTime):
|
|
73201
73424
|
self._UpdateTime = UpdateTime
|
|
73202
73425
|
|
|
73426
|
+
@property
|
|
73427
|
+
def Description(self):
|
|
73428
|
+
r"""路由备注
|
|
73429
|
+
:rtype: str
|
|
73430
|
+
"""
|
|
73431
|
+
return self._Description
|
|
73432
|
+
|
|
73433
|
+
@Description.setter
|
|
73434
|
+
def Description(self, Description):
|
|
73435
|
+
self._Description = Description
|
|
73436
|
+
|
|
73203
73437
|
|
|
73204
73438
|
def _deserialize(self, params):
|
|
73205
73439
|
self._DestinationCidrBlock = params.get("DestinationCidrBlock")
|
|
@@ -73211,6 +73445,7 @@ class VpnGatewayRoute(AbstractModel):
|
|
|
73211
73445
|
self._Type = params.get("Type")
|
|
73212
73446
|
self._CreateTime = params.get("CreateTime")
|
|
73213
73447
|
self._UpdateTime = params.get("UpdateTime")
|
|
73448
|
+
self._Description = params.get("Description")
|
|
73214
73449
|
memeber_set = set(params.keys())
|
|
73215
73450
|
for name, value in vars(self).items():
|
|
73216
73451
|
property_name = name[1:]
|
|
@@ -73232,9 +73467,12 @@ class VpnGatewayRouteModify(AbstractModel):
|
|
|
73232
73467
|
:type RouteId: str
|
|
73233
73468
|
:param _Status: VPN网关状态, ENABLE 启用, DISABLE禁用。
|
|
73234
73469
|
:type Status: str
|
|
73470
|
+
:param _Description: VPN路由备注
|
|
73471
|
+
:type Description: str
|
|
73235
73472
|
"""
|
|
73236
73473
|
self._RouteId = None
|
|
73237
73474
|
self._Status = None
|
|
73475
|
+
self._Description = None
|
|
73238
73476
|
|
|
73239
73477
|
@property
|
|
73240
73478
|
def RouteId(self):
|
|
@@ -73258,10 +73496,22 @@ class VpnGatewayRouteModify(AbstractModel):
|
|
|
73258
73496
|
def Status(self, Status):
|
|
73259
73497
|
self._Status = Status
|
|
73260
73498
|
|
|
73499
|
+
@property
|
|
73500
|
+
def Description(self):
|
|
73501
|
+
r"""VPN路由备注
|
|
73502
|
+
:rtype: str
|
|
73503
|
+
"""
|
|
73504
|
+
return self._Description
|
|
73505
|
+
|
|
73506
|
+
@Description.setter
|
|
73507
|
+
def Description(self, Description):
|
|
73508
|
+
self._Description = Description
|
|
73509
|
+
|
|
73261
73510
|
|
|
73262
73511
|
def _deserialize(self, params):
|
|
73263
73512
|
self._RouteId = params.get("RouteId")
|
|
73264
73513
|
self._Status = params.get("Status")
|
|
73514
|
+
self._Description = params.get("Description")
|
|
73265
73515
|
memeber_set = set(params.keys())
|
|
73266
73516
|
for name, value in vars(self).items():
|
|
73267
73517
|
property_name = name[1:]
|
|
@@ -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.29
|
|
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.29
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=dQCEn-oCIzX79hSrzQx_L3cB059xivLv-GUautwkgOU,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=I0cg0YOFB8kjQRH2PVKo7WzciCrhIPKN5QGzgqW3BJU,2475357
|
|
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.29.dist-info/METADATA,sha256=RJlfC16lf88eShxGhmmkyf1TMkEUEVr1Wows08las7Q,1495
|
|
9
|
+
tencentcloud_sdk_python_vpc-3.1.29.dist-info/WHEEL,sha256=Ll72iyqtt6Rbxp-Q7FSafYA1LeRv98X15xcZWRsFEmY,109
|
|
10
|
+
tencentcloud_sdk_python_vpc-3.1.29.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_vpc-3.1.29.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=XonCI0_IdxAlEyO-i43CFCE8QA9UpP1uSFdnquHF36w,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=hxUpVSBWLodfanGQTqAb0LC29KMrOLKBAvCHz3TBgyU,2467109
|
|
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.21.dist-info/METADATA,sha256=StZXxqn0aeQR5Z6Pqc0e-_2VL1QTjuB4Ge7dCor_i7k,1495
|
|
9
|
-
tencentcloud_sdk_python_vpc-3.1.21.dist-info/WHEEL,sha256=Ll72iyqtt6Rbxp-Q7FSafYA1LeRv98X15xcZWRsFEmY,109
|
|
10
|
-
tencentcloud_sdk_python_vpc-3.1.21.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_vpc-3.1.21.dist-info/RECORD,,
|
{tencentcloud_sdk_python_vpc-3.1.21.dist-info → tencentcloud_sdk_python_vpc-3.1.29.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|