tencentcloud-sdk-python-vpc 3.0.1001__tar.gz → 3.0.1014__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 (16) hide show
  1. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/setup.py +1 -1
  3. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud/vpc/v20170312/errorcodes.py +24 -0
  5. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud/vpc/v20170312/models.py +494 -3
  6. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud/vpc/v20170312/vpc_client.py +23 -0
  7. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud_sdk_python_vpc.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-vpc-3.0.1014/tencentcloud_sdk_python_vpc.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-vpc-3.0.1001/tencentcloud_sdk_python_vpc.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/README.rst +0 -0
  11. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud/vpc/__init__.py +0 -0
  13. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud/vpc/v20170312/__init__.py +0 -0
  14. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud_sdk_python_vpc.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud_sdk_python_vpc.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-vpc-3.0.1001 → tencentcloud-sdk-python-vpc-3.0.1014}/tencentcloud_sdk_python_vpc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-vpc
3
- Version: 3.0.1001
3
+ Version: 3.0.1014
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
@@ -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.0.1001"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1014"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Vpc SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1001'
17
+ __version__ = '3.0.1014'
@@ -434,6 +434,15 @@ INVALIDPARAMETERVALUE_VPCCIDRCONFLICT = 'InvalidParameterValue.VpcCidrConflict'
434
434
  # 当前功能不支持此专线网关。
435
435
  INVALIDPARAMETERVALUE_VPGTYPENOTMATCH = 'InvalidParameterValue.VpgTypeNotMatch'
436
436
 
437
+ # 当前BGP隧道网段:`%(key)s`和已有BGP隧道网段:`%(value)s`重叠。
438
+ INVALIDPARAMETERVALUE_VPNCONNBGPTUNNELCIDRCONFLICT = 'InvalidParameterValue.VpnConnBgpTunnelCidrConflict'
439
+
440
+ # BGP隧道网段必须为掩码为30的网段。
441
+ INVALIDPARAMETERVALUE_VPNCONNBGPTUNNELCIDRMASK = 'InvalidParameterValue.VpnConnBgpTunnelCidrMask'
442
+
443
+ # 云端或用户端BGP地址:`%(value)s`必须在BGP隧道网段`%(key)s`内。
444
+ INVALIDPARAMETERVALUE_VPNCONNBGPTUNNELCIDRNOTSUPPORTED = 'InvalidParameterValue.VpnConnBgpTunnelCidrNotSupported'
445
+
437
446
  # 目的网段和当前VPN通道的CIDR冲突。
438
447
  INVALIDPARAMETERVALUE_VPNCONNCIDRCONFLICT = 'InvalidParameterValue.VpnConnCidrConflict'
439
448
 
@@ -854,6 +863,9 @@ UNSUPPORTEDOPERATION_NATGATEWAYEIPNOTEXISTS = 'UnsupportedOperation.NatGatewayEi
854
863
  # NAT网关存在未解绑的IP。
855
864
  UNSUPPORTEDOPERATION_NATGATEWAYHADEIPUNASSOCIATE = 'UnsupportedOperation.NatGatewayHadEipUnassociate'
856
865
 
866
+ # NAT网关已被封禁,不支持此操作。
867
+ UNSUPPORTEDOPERATION_NATGATEWAYRESTRICTED = 'UnsupportedOperation.NatGatewayRestricted'
868
+
857
869
  # SNAT/DNAT转换规则所指定的内网IP已绑定了其他的规则,无法重复绑定。
858
870
  UNSUPPORTEDOPERATION_NATGATEWAYRULEPIPEXISTS = 'UnsupportedOperation.NatGatewayRulePipExists'
859
871
 
@@ -1058,9 +1070,21 @@ UNSUPPORTEDOPERATION_VPCPEERPURVIEWERROR = 'UnsupportedOperation.VpcPeerPurviewE
1058
1070
  # 当前通道为非可用状态,不支持该操作。
1059
1071
  UNSUPPORTEDOPERATION_VPNCONNINVALIDSTATE = 'UnsupportedOperation.VpnConnInvalidState'
1060
1072
 
1073
+ # SPD本端网段冲突,请检查后重试。
1074
+ UNSUPPORTEDOPERATION_VPNCONNSPDOVERLAP = 'UnsupportedOperation.VpnConnSPDOverlap'
1075
+
1061
1076
  # VPC类型VPN网关必须携带VpcId。
1062
1077
  UNSUPPORTEDOPERATION_VPNGWVPCIDMUSTHAVE = 'UnsupportedOperation.VpnGwVpcIdMustHave'
1063
1078
 
1079
+ # VPN不支持BGP
1080
+ UNSUPPORTEDOPERATION_VPNUNSUPPORTEDBGP = 'UnsupportedOperation.VpnUnsupportedBgp'
1081
+
1082
+ # 对端网关BGP ASN和已有的通道对端或云上VPN的BGP ASN相同。
1083
+ UNSUPPORTEDOPERATION_VPNUNSUPPORTEDBGPASNEQUAL = 'UnsupportedOperation.VpnUnsupportedBgpAsnEqual'
1084
+
1085
+ # VPN未配置BGP ASN。
1086
+ UNSUPPORTEDOPERATION_VPNUNSUPPORTEDNOTEXISTBGPASN = 'UnsupportedOperation.VpnUnsupportedNotExistBgpAsn'
1087
+
1064
1088
  # 指定资源在不同的可用区。
1065
1089
  UNSUPPORTEDOPERATION_ZONEMISMATCH = 'UnsupportedOperation.ZoneMismatch'
1066
1090
 
@@ -3481,6 +3481,149 @@ class BatchModifySnapshotPolicy(AbstractModel):
3481
3481
 
3482
3482
 
3483
3483
 
3484
+ class BgpConfig(AbstractModel):
3485
+ """BgpConfig
3486
+
3487
+ """
3488
+
3489
+ def __init__(self):
3490
+ r"""
3491
+ :param _TunnelCidr: BGP隧道网段。
3492
+ :type TunnelCidr: str
3493
+ :param _LocalBgpIp: 云端BGP地址。必须从BGP隧道网段内分配。
3494
+ :type LocalBgpIp: str
3495
+ :param _RemoteBgpIp: 用户端BGP地址。必须从BGP隧道网段内分配。
3496
+ :type RemoteBgpIp: str
3497
+ """
3498
+ self._TunnelCidr = None
3499
+ self._LocalBgpIp = None
3500
+ self._RemoteBgpIp = None
3501
+
3502
+ @property
3503
+ def TunnelCidr(self):
3504
+ return self._TunnelCidr
3505
+
3506
+ @TunnelCidr.setter
3507
+ def TunnelCidr(self, TunnelCidr):
3508
+ self._TunnelCidr = TunnelCidr
3509
+
3510
+ @property
3511
+ def LocalBgpIp(self):
3512
+ return self._LocalBgpIp
3513
+
3514
+ @LocalBgpIp.setter
3515
+ def LocalBgpIp(self, LocalBgpIp):
3516
+ self._LocalBgpIp = LocalBgpIp
3517
+
3518
+ @property
3519
+ def RemoteBgpIp(self):
3520
+ return self._RemoteBgpIp
3521
+
3522
+ @RemoteBgpIp.setter
3523
+ def RemoteBgpIp(self, RemoteBgpIp):
3524
+ self._RemoteBgpIp = RemoteBgpIp
3525
+
3526
+
3527
+ def _deserialize(self, params):
3528
+ self._TunnelCidr = params.get("TunnelCidr")
3529
+ self._LocalBgpIp = params.get("LocalBgpIp")
3530
+ self._RemoteBgpIp = params.get("RemoteBgpIp")
3531
+ memeber_set = set(params.keys())
3532
+ for name, value in vars(self).items():
3533
+ property_name = name[1:]
3534
+ if property_name in memeber_set:
3535
+ memeber_set.remove(property_name)
3536
+ if len(memeber_set) > 0:
3537
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3538
+
3539
+
3540
+
3541
+ class BgpConfigAndAsn(AbstractModel):
3542
+ """VPN通道BGP配置
3543
+
3544
+ """
3545
+
3546
+ def __init__(self):
3547
+ r"""
3548
+ :param _TunnelCidr: BGP通道CIDR
3549
+ 注意:此字段可能返回 null,表示取不到有效值。
3550
+ :type TunnelCidr: str
3551
+ :param _LocalBgpIp: 本端BGP IP
3552
+ 注意:此字段可能返回 null,表示取不到有效值。
3553
+ :type LocalBgpIp: str
3554
+ :param _RemoteBgpIp: 对端BGP IP
3555
+ 注意:此字段可能返回 null,表示取不到有效值。
3556
+ :type RemoteBgpIp: str
3557
+ :param _LocalBgpAsn: 本端BGP ASN号
3558
+ 注意:此字段可能返回 null,表示取不到有效值。
3559
+ :type LocalBgpAsn: str
3560
+ :param _RemoteBgpAsn: 对端BGP ASN号
3561
+ 注意:此字段可能返回 null,表示取不到有效值。
3562
+ :type RemoteBgpAsn: str
3563
+ """
3564
+ self._TunnelCidr = None
3565
+ self._LocalBgpIp = None
3566
+ self._RemoteBgpIp = None
3567
+ self._LocalBgpAsn = None
3568
+ self._RemoteBgpAsn = None
3569
+
3570
+ @property
3571
+ def TunnelCidr(self):
3572
+ return self._TunnelCidr
3573
+
3574
+ @TunnelCidr.setter
3575
+ def TunnelCidr(self, TunnelCidr):
3576
+ self._TunnelCidr = TunnelCidr
3577
+
3578
+ @property
3579
+ def LocalBgpIp(self):
3580
+ return self._LocalBgpIp
3581
+
3582
+ @LocalBgpIp.setter
3583
+ def LocalBgpIp(self, LocalBgpIp):
3584
+ self._LocalBgpIp = LocalBgpIp
3585
+
3586
+ @property
3587
+ def RemoteBgpIp(self):
3588
+ return self._RemoteBgpIp
3589
+
3590
+ @RemoteBgpIp.setter
3591
+ def RemoteBgpIp(self, RemoteBgpIp):
3592
+ self._RemoteBgpIp = RemoteBgpIp
3593
+
3594
+ @property
3595
+ def LocalBgpAsn(self):
3596
+ return self._LocalBgpAsn
3597
+
3598
+ @LocalBgpAsn.setter
3599
+ def LocalBgpAsn(self, LocalBgpAsn):
3600
+ self._LocalBgpAsn = LocalBgpAsn
3601
+
3602
+ @property
3603
+ def RemoteBgpAsn(self):
3604
+ return self._RemoteBgpAsn
3605
+
3606
+ @RemoteBgpAsn.setter
3607
+ def RemoteBgpAsn(self, RemoteBgpAsn):
3608
+ self._RemoteBgpAsn = RemoteBgpAsn
3609
+
3610
+
3611
+ def _deserialize(self, params):
3612
+ self._TunnelCidr = params.get("TunnelCidr")
3613
+ self._LocalBgpIp = params.get("LocalBgpIp")
3614
+ self._RemoteBgpIp = params.get("RemoteBgpIp")
3615
+ self._LocalBgpAsn = params.get("LocalBgpAsn")
3616
+ self._RemoteBgpAsn = params.get("RemoteBgpAsn")
3617
+ memeber_set = set(params.keys())
3618
+ for name, value in vars(self).items():
3619
+ property_name = name[1:]
3620
+ if property_name in memeber_set:
3621
+ memeber_set.remove(property_name)
3622
+ if len(memeber_set) > 0:
3623
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3624
+
3625
+
3626
+
3484
3627
  class CCN(AbstractModel):
3485
3628
  """云联网(CCN)对象
3486
3629
 
@@ -6155,10 +6298,13 @@ class CreateCustomerGatewayRequest(AbstractModel):
6155
6298
  :type IpAddress: str
6156
6299
  :param _Tags: 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
6157
6300
  :type Tags: list of Tag
6301
+ :param _BgpAsn: BGP ASN。ASN取值范围为1- 4294967295,其中139341、45090和58835不可用。
6302
+ :type BgpAsn: int
6158
6303
  """
6159
6304
  self._CustomerGatewayName = None
6160
6305
  self._IpAddress = None
6161
6306
  self._Tags = None
6307
+ self._BgpAsn = None
6162
6308
 
6163
6309
  @property
6164
6310
  def CustomerGatewayName(self):
@@ -6184,6 +6330,14 @@ class CreateCustomerGatewayRequest(AbstractModel):
6184
6330
  def Tags(self, Tags):
6185
6331
  self._Tags = Tags
6186
6332
 
6333
+ @property
6334
+ def BgpAsn(self):
6335
+ return self._BgpAsn
6336
+
6337
+ @BgpAsn.setter
6338
+ def BgpAsn(self, BgpAsn):
6339
+ self._BgpAsn = BgpAsn
6340
+
6187
6341
 
6188
6342
  def _deserialize(self, params):
6189
6343
  self._CustomerGatewayName = params.get("CustomerGatewayName")
@@ -6194,6 +6348,7 @@ class CreateCustomerGatewayRequest(AbstractModel):
6194
6348
  obj = Tag()
6195
6349
  obj._deserialize(item)
6196
6350
  self._Tags.append(obj)
6351
+ self._BgpAsn = params.get("BgpAsn")
6197
6352
  memeber_set = set(params.keys())
6198
6353
  for name, value in vars(self).items():
6199
6354
  property_name = name[1:]
@@ -10018,6 +10173,51 @@ class CreateVpcResponse(AbstractModel):
10018
10173
  self._RequestId = params.get("RequestId")
10019
10174
 
10020
10175
 
10176
+ class CreateVpnConnRoute(AbstractModel):
10177
+ """创建路由添加的指向此通道的路由
10178
+
10179
+ """
10180
+
10181
+ def __init__(self):
10182
+ r"""
10183
+ :param _DestinationCidrBlock: 目的端IDC网段
10184
+ :type DestinationCidrBlock: str
10185
+ :param _Priority: 优先级;可选值0,100。
10186
+ :type Priority: int
10187
+ """
10188
+ self._DestinationCidrBlock = None
10189
+ self._Priority = None
10190
+
10191
+ @property
10192
+ def DestinationCidrBlock(self):
10193
+ return self._DestinationCidrBlock
10194
+
10195
+ @DestinationCidrBlock.setter
10196
+ def DestinationCidrBlock(self, DestinationCidrBlock):
10197
+ self._DestinationCidrBlock = DestinationCidrBlock
10198
+
10199
+ @property
10200
+ def Priority(self):
10201
+ return self._Priority
10202
+
10203
+ @Priority.setter
10204
+ def Priority(self, Priority):
10205
+ self._Priority = Priority
10206
+
10207
+
10208
+ def _deserialize(self, params):
10209
+ self._DestinationCidrBlock = params.get("DestinationCidrBlock")
10210
+ self._Priority = params.get("Priority")
10211
+ memeber_set = set(params.keys())
10212
+ for name, value in vars(self).items():
10213
+ property_name = name[1:]
10214
+ if property_name in memeber_set:
10215
+ memeber_set.remove(property_name)
10216
+ if len(memeber_set) > 0:
10217
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
10218
+
10219
+
10220
+
10021
10221
  class CreateVpnConnectionRequest(AbstractModel):
10022
10222
  """CreateVpnConnection请求参数结构体
10023
10223
 
@@ -10060,6 +10260,10 @@ CCN VPN 形的通道 可以不传VPCID
10060
10260
  :type DpdTimeout: str
10061
10261
  :param _DpdAction: DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试)
10062
10262
  :type DpdAction: str
10263
+ :param _Route: 创建通道路由信息。
10264
+ :type Route: :class:`tencentcloud.vpc.v20170312.models.CreateVpnConnRoute`
10265
+ :param _BgpConfig: BGP配置。
10266
+ :type BgpConfig: :class:`tencentcloud.vpc.v20170312.models.BgpConfig`
10063
10267
  """
10064
10268
  self._VpnGatewayId = None
10065
10269
  self._CustomerGatewayId = None
@@ -10078,6 +10282,8 @@ CCN VPN 形的通道 可以不传VPCID
10078
10282
  self._DpdEnable = None
10079
10283
  self._DpdTimeout = None
10080
10284
  self._DpdAction = None
10285
+ self._Route = None
10286
+ self._BgpConfig = None
10081
10287
 
10082
10288
  @property
10083
10289
  def VpnGatewayId(self):
@@ -10215,6 +10421,22 @@ CCN VPN 形的通道 可以不传VPCID
10215
10421
  def DpdAction(self, DpdAction):
10216
10422
  self._DpdAction = DpdAction
10217
10423
 
10424
+ @property
10425
+ def Route(self):
10426
+ return self._Route
10427
+
10428
+ @Route.setter
10429
+ def Route(self, Route):
10430
+ self._Route = Route
10431
+
10432
+ @property
10433
+ def BgpConfig(self):
10434
+ return self._BgpConfig
10435
+
10436
+ @BgpConfig.setter
10437
+ def BgpConfig(self, BgpConfig):
10438
+ self._BgpConfig = BgpConfig
10439
+
10218
10440
 
10219
10441
  def _deserialize(self, params):
10220
10442
  self._VpnGatewayId = params.get("VpnGatewayId")
@@ -10248,6 +10470,12 @@ CCN VPN 形的通道 可以不传VPCID
10248
10470
  self._DpdEnable = params.get("DpdEnable")
10249
10471
  self._DpdTimeout = params.get("DpdTimeout")
10250
10472
  self._DpdAction = params.get("DpdAction")
10473
+ if params.get("Route") is not None:
10474
+ self._Route = CreateVpnConnRoute()
10475
+ self._Route._deserialize(params.get("Route"))
10476
+ if params.get("BgpConfig") is not None:
10477
+ self._BgpConfig = BgpConfig()
10478
+ self._BgpConfig._deserialize(params.get("BgpConfig"))
10251
10479
  memeber_set = set(params.keys())
10252
10480
  for name, value in vars(self).items():
10253
10481
  property_name = name[1:]
@@ -11265,11 +11493,14 @@ class CustomerGateway(AbstractModel):
11265
11493
  :type IpAddress: str
11266
11494
  :param _CreatedTime: 创建时间
11267
11495
  :type CreatedTime: str
11496
+ :param _BgpAsn: BGP ASN。
11497
+ :type BgpAsn: int
11268
11498
  """
11269
11499
  self._CustomerGatewayId = None
11270
11500
  self._CustomerGatewayName = None
11271
11501
  self._IpAddress = None
11272
11502
  self._CreatedTime = None
11503
+ self._BgpAsn = None
11273
11504
 
11274
11505
  @property
11275
11506
  def CustomerGatewayId(self):
@@ -11303,12 +11534,21 @@ class CustomerGateway(AbstractModel):
11303
11534
  def CreatedTime(self, CreatedTime):
11304
11535
  self._CreatedTime = CreatedTime
11305
11536
 
11537
+ @property
11538
+ def BgpAsn(self):
11539
+ return self._BgpAsn
11540
+
11541
+ @BgpAsn.setter
11542
+ def BgpAsn(self, BgpAsn):
11543
+ self._BgpAsn = BgpAsn
11544
+
11306
11545
 
11307
11546
  def _deserialize(self, params):
11308
11547
  self._CustomerGatewayId = params.get("CustomerGatewayId")
11309
11548
  self._CustomerGatewayName = params.get("CustomerGatewayName")
11310
11549
  self._IpAddress = params.get("IpAddress")
11311
11550
  self._CreatedTime = params.get("CreatedTime")
11551
+ self._BgpAsn = params.get("BgpAsn")
11312
11552
  memeber_set = set(params.keys())
11313
11553
  for name, value in vars(self).items():
11314
11554
  property_name = name[1:]
@@ -19456,11 +19696,17 @@ class DescribeNetworkAclsRequest(AbstractModel):
19456
19696
  :type Offset: int
19457
19697
  :param _Limit: 返回数量,默认为20,最小值为1,最大值为100。
19458
19698
  :type Limit: int
19699
+ :param _OrderField: 排序字段。支持:NetworkAclId,NetworkAclName,CreatedTime
19700
+ :type OrderField: str
19701
+ :param _OrderDirection: 排序方法。顺序:ASC,倒序:DESC。
19702
+ :type OrderDirection: str
19459
19703
  """
19460
19704
  self._Filters = None
19461
19705
  self._NetworkAclIds = None
19462
19706
  self._Offset = None
19463
19707
  self._Limit = None
19708
+ self._OrderField = None
19709
+ self._OrderDirection = None
19464
19710
 
19465
19711
  @property
19466
19712
  def Filters(self):
@@ -19494,6 +19740,22 @@ class DescribeNetworkAclsRequest(AbstractModel):
19494
19740
  def Limit(self, Limit):
19495
19741
  self._Limit = Limit
19496
19742
 
19743
+ @property
19744
+ def OrderField(self):
19745
+ return self._OrderField
19746
+
19747
+ @OrderField.setter
19748
+ def OrderField(self, OrderField):
19749
+ self._OrderField = OrderField
19750
+
19751
+ @property
19752
+ def OrderDirection(self):
19753
+ return self._OrderDirection
19754
+
19755
+ @OrderDirection.setter
19756
+ def OrderDirection(self, OrderDirection):
19757
+ self._OrderDirection = OrderDirection
19758
+
19497
19759
 
19498
19760
  def _deserialize(self, params):
19499
19761
  if params.get("Filters") is not None:
@@ -19505,6 +19767,8 @@ class DescribeNetworkAclsRequest(AbstractModel):
19505
19767
  self._NetworkAclIds = params.get("NetworkAclIds")
19506
19768
  self._Offset = params.get("Offset")
19507
19769
  self._Limit = params.get("Limit")
19770
+ self._OrderField = params.get("OrderField")
19771
+ self._OrderDirection = params.get("OrderDirection")
19508
19772
  memeber_set = set(params.keys())
19509
19773
  for name, value in vars(self).items():
19510
19774
  property_name = name[1:]
@@ -28466,28 +28730,40 @@ class IKEOptionsSpecification(AbstractModel):
28466
28730
  def __init__(self):
28467
28731
  r"""
28468
28732
  :param _PropoEncryAlgorithm: 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBS-192', 'AES-CBC-256', 'DES-CBC','SM4', 默认为3DES-CBC
28733
+ 注意:此字段可能返回 null,表示取不到有效值。
28469
28734
  :type PropoEncryAlgorithm: str
28470
28735
  :param _PropoAuthenAlgorithm: 认证算法:可选值:'MD5', 'SHA1','SHA-256' 默认为MD5
28736
+ 注意:此字段可能返回 null,表示取不到有效值。
28471
28737
  :type PropoAuthenAlgorithm: str
28472
28738
  :param _ExchangeMode: 协商模式:可选值:'AGGRESSIVE', 'MAIN',默认为MAIN
28739
+ 注意:此字段可能返回 null,表示取不到有效值。
28473
28740
  :type ExchangeMode: str
28474
28741
  :param _LocalIdentity: 本端标识类型:可选值:'ADDRESS', 'FQDN',默认为ADDRESS
28742
+ 注意:此字段可能返回 null,表示取不到有效值。
28475
28743
  :type LocalIdentity: str
28476
28744
  :param _RemoteIdentity: 对端标识类型:可选值:'ADDRESS', 'FQDN',默认为ADDRESS
28745
+ 注意:此字段可能返回 null,表示取不到有效值。
28477
28746
  :type RemoteIdentity: str
28478
28747
  :param _LocalAddress: 本端标识,当LocalIdentity选为ADDRESS时,LocalAddress必填。localAddress默认为vpn网关公网IP
28748
+ 注意:此字段可能返回 null,表示取不到有效值。
28479
28749
  :type LocalAddress: str
28480
28750
  :param _RemoteAddress: 对端标识,当RemoteIdentity选为ADDRESS时,RemoteAddress必填
28751
+ 注意:此字段可能返回 null,表示取不到有效值。
28481
28752
  :type RemoteAddress: str
28482
28753
  :param _LocalFqdnName: 本端标识,当LocalIdentity选为FQDN时,LocalFqdnName必填
28754
+ 注意:此字段可能返回 null,表示取不到有效值。
28483
28755
  :type LocalFqdnName: str
28484
28756
  :param _RemoteFqdnName: 对端标识,当remoteIdentity选为FQDN时,RemoteFqdnName必填
28757
+ 注意:此字段可能返回 null,表示取不到有效值。
28485
28758
  :type RemoteFqdnName: str
28486
28759
  :param _DhGroupName: DH group,指定IKE交换密钥时使用的DH组,可选值:'GROUP1', 'GROUP2', 'GROUP5', 'GROUP14', 'GROUP24',
28760
+ 注意:此字段可能返回 null,表示取不到有效值。
28487
28761
  :type DhGroupName: str
28488
28762
  :param _IKESaLifetimeSeconds: IKE SA Lifetime,单位:秒,设置IKE SA的生存周期,取值范围:60-604800
28763
+ 注意:此字段可能返回 null,表示取不到有效值。
28489
28764
  :type IKESaLifetimeSeconds: int
28490
28765
  :param _IKEVersion: IKE版本
28766
+ 注意:此字段可能返回 null,表示取不到有效值。
28491
28767
  :type IKEVersion: str
28492
28768
  """
28493
28769
  self._PropoEncryAlgorithm = None
@@ -28631,14 +28907,19 @@ class IPSECOptionsSpecification(AbstractModel):
28631
28907
  def __init__(self):
28632
28908
  r"""
28633
28909
  :param _EncryptAlgorithm: 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBC-192', 'AES-CBC-256', 'DES-CBC', 'SM4', 'NULL', 默认为AES-CBC-128
28910
+ 注意:此字段可能返回 null,表示取不到有效值。
28634
28911
  :type EncryptAlgorithm: str
28635
28912
  :param _IntegrityAlgorith: 认证算法:可选值:'MD5', 'SHA1','SHA-256' 默认为
28913
+ 注意:此字段可能返回 null,表示取不到有效值。
28636
28914
  :type IntegrityAlgorith: str
28637
28915
  :param _IPSECSaLifetimeSeconds: IPsec SA lifetime(s):单位秒,取值范围:180-604800
28916
+ 注意:此字段可能返回 null,表示取不到有效值。
28638
28917
  :type IPSECSaLifetimeSeconds: int
28639
28918
  :param _PfsDhGroup: PFS:可选值:'NULL', 'DH-GROUP1', 'DH-GROUP2', 'DH-GROUP5', 'DH-GROUP14', 'DH-GROUP24',默认为NULL
28919
+ 注意:此字段可能返回 null,表示取不到有效值。
28640
28920
  :type PfsDhGroup: str
28641
28921
  :param _IPSECSaLifetimeTraffic: IPsec SA lifetime(KB):单位KB,取值范围:2560-604800
28922
+ 注意:此字段可能返回 null,表示取不到有效值。
28642
28923
  :type IPSECSaLifetimeTraffic: int
28643
28924
  """
28644
28925
  self._EncryptAlgorithm = None
@@ -34723,6 +35004,196 @@ class ModifyVpnGatewayRoutesResponse(AbstractModel):
34723
35004
  self._RequestId = params.get("RequestId")
34724
35005
 
34725
35006
 
35007
+ class ModifyVpnGatewaySslServerRequest(AbstractModel):
35008
+ """ModifyVpnGatewaySslServer请求参数结构体
35009
+
35010
+ """
35011
+
35012
+ def __init__(self):
35013
+ r"""
35014
+ :param _SslVpnServerId: SSL-VPN SERVER 实例ID
35015
+ :type SslVpnServerId: str
35016
+ :param _SslVpnServerName: SSL-VPN SERVER NAME
35017
+ :type SslVpnServerName: str
35018
+ :param _LocalAddress: 本端地址
35019
+ :type LocalAddress: list of str
35020
+ :param _RemoteAddress: 客户端地址
35021
+ :type RemoteAddress: str
35022
+ :param _SslVpnProtocol: SSL VPN服务端监听协议。当前仅支持 UDP。默认UDP
35023
+ :type SslVpnProtocol: str
35024
+ :param _SslVpnPort: SSL VPN服务端监听协议端口。
35025
+ :type SslVpnPort: int
35026
+ :param _EncryptAlgorithm: 加密算法。可选 'AES-128-CBC', 'AES-192-CBC', 'AES-256-CBC', 'NONE'。默认NONE
35027
+ :type EncryptAlgorithm: str
35028
+ :param _IntegrityAlgorithm: 认证算法。可选 'SHA1', 'MD5', 'NONE'。默认NONE
35029
+ :type IntegrityAlgorithm: str
35030
+ :param _Compress: 是否支持压缩。当前仅支持不支持压缩。默认False
35031
+ :type Compress: bool
35032
+ :param _SsoEnabled: 是否开启SSO认证,默认False
35033
+ :type SsoEnabled: bool
35034
+ :param _SamlData: SAML-DATA
35035
+ :type SamlData: str
35036
+ """
35037
+ self._SslVpnServerId = None
35038
+ self._SslVpnServerName = None
35039
+ self._LocalAddress = None
35040
+ self._RemoteAddress = None
35041
+ self._SslVpnProtocol = None
35042
+ self._SslVpnPort = None
35043
+ self._EncryptAlgorithm = None
35044
+ self._IntegrityAlgorithm = None
35045
+ self._Compress = None
35046
+ self._SsoEnabled = None
35047
+ self._SamlData = None
35048
+
35049
+ @property
35050
+ def SslVpnServerId(self):
35051
+ return self._SslVpnServerId
35052
+
35053
+ @SslVpnServerId.setter
35054
+ def SslVpnServerId(self, SslVpnServerId):
35055
+ self._SslVpnServerId = SslVpnServerId
35056
+
35057
+ @property
35058
+ def SslVpnServerName(self):
35059
+ return self._SslVpnServerName
35060
+
35061
+ @SslVpnServerName.setter
35062
+ def SslVpnServerName(self, SslVpnServerName):
35063
+ self._SslVpnServerName = SslVpnServerName
35064
+
35065
+ @property
35066
+ def LocalAddress(self):
35067
+ return self._LocalAddress
35068
+
35069
+ @LocalAddress.setter
35070
+ def LocalAddress(self, LocalAddress):
35071
+ self._LocalAddress = LocalAddress
35072
+
35073
+ @property
35074
+ def RemoteAddress(self):
35075
+ return self._RemoteAddress
35076
+
35077
+ @RemoteAddress.setter
35078
+ def RemoteAddress(self, RemoteAddress):
35079
+ self._RemoteAddress = RemoteAddress
35080
+
35081
+ @property
35082
+ def SslVpnProtocol(self):
35083
+ return self._SslVpnProtocol
35084
+
35085
+ @SslVpnProtocol.setter
35086
+ def SslVpnProtocol(self, SslVpnProtocol):
35087
+ self._SslVpnProtocol = SslVpnProtocol
35088
+
35089
+ @property
35090
+ def SslVpnPort(self):
35091
+ return self._SslVpnPort
35092
+
35093
+ @SslVpnPort.setter
35094
+ def SslVpnPort(self, SslVpnPort):
35095
+ self._SslVpnPort = SslVpnPort
35096
+
35097
+ @property
35098
+ def EncryptAlgorithm(self):
35099
+ return self._EncryptAlgorithm
35100
+
35101
+ @EncryptAlgorithm.setter
35102
+ def EncryptAlgorithm(self, EncryptAlgorithm):
35103
+ self._EncryptAlgorithm = EncryptAlgorithm
35104
+
35105
+ @property
35106
+ def IntegrityAlgorithm(self):
35107
+ return self._IntegrityAlgorithm
35108
+
35109
+ @IntegrityAlgorithm.setter
35110
+ def IntegrityAlgorithm(self, IntegrityAlgorithm):
35111
+ self._IntegrityAlgorithm = IntegrityAlgorithm
35112
+
35113
+ @property
35114
+ def Compress(self):
35115
+ return self._Compress
35116
+
35117
+ @Compress.setter
35118
+ def Compress(self, Compress):
35119
+ self._Compress = Compress
35120
+
35121
+ @property
35122
+ def SsoEnabled(self):
35123
+ return self._SsoEnabled
35124
+
35125
+ @SsoEnabled.setter
35126
+ def SsoEnabled(self, SsoEnabled):
35127
+ self._SsoEnabled = SsoEnabled
35128
+
35129
+ @property
35130
+ def SamlData(self):
35131
+ return self._SamlData
35132
+
35133
+ @SamlData.setter
35134
+ def SamlData(self, SamlData):
35135
+ self._SamlData = SamlData
35136
+
35137
+
35138
+ def _deserialize(self, params):
35139
+ self._SslVpnServerId = params.get("SslVpnServerId")
35140
+ self._SslVpnServerName = params.get("SslVpnServerName")
35141
+ self._LocalAddress = params.get("LocalAddress")
35142
+ self._RemoteAddress = params.get("RemoteAddress")
35143
+ self._SslVpnProtocol = params.get("SslVpnProtocol")
35144
+ self._SslVpnPort = params.get("SslVpnPort")
35145
+ self._EncryptAlgorithm = params.get("EncryptAlgorithm")
35146
+ self._IntegrityAlgorithm = params.get("IntegrityAlgorithm")
35147
+ self._Compress = params.get("Compress")
35148
+ self._SsoEnabled = params.get("SsoEnabled")
35149
+ self._SamlData = params.get("SamlData")
35150
+ memeber_set = set(params.keys())
35151
+ for name, value in vars(self).items():
35152
+ property_name = name[1:]
35153
+ if property_name in memeber_set:
35154
+ memeber_set.remove(property_name)
35155
+ if len(memeber_set) > 0:
35156
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
35157
+
35158
+
35159
+
35160
+ class ModifyVpnGatewaySslServerResponse(AbstractModel):
35161
+ """ModifyVpnGatewaySslServer返回参数结构体
35162
+
35163
+ """
35164
+
35165
+ def __init__(self):
35166
+ r"""
35167
+ :param _TaskId: 异步任务TASKID
35168
+ :type TaskId: int
35169
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
35170
+ :type RequestId: str
35171
+ """
35172
+ self._TaskId = None
35173
+ self._RequestId = None
35174
+
35175
+ @property
35176
+ def TaskId(self):
35177
+ return self._TaskId
35178
+
35179
+ @TaskId.setter
35180
+ def TaskId(self, TaskId):
35181
+ self._TaskId = TaskId
35182
+
35183
+ @property
35184
+ def RequestId(self):
35185
+ return self._RequestId
35186
+
35187
+ @RequestId.setter
35188
+ def RequestId(self, RequestId):
35189
+ self._RequestId = RequestId
35190
+
35191
+
35192
+ def _deserialize(self, params):
35193
+ self._TaskId = params.get("TaskId")
35194
+ self._RequestId = params.get("RequestId")
35195
+
35196
+
34726
35197
  class NatDirectConnectGatewayRoute(AbstractModel):
34727
35198
  """查询nat路由的返回路由对象
34728
35199
 
@@ -35658,9 +36129,9 @@ class NetworkAcl(AbstractModel):
35658
36129
  :type CreatedTime: str
35659
36130
  :param _SubnetSet: 网络ACL关联的子网数组。
35660
36131
  :type SubnetSet: list of Subnet
35661
- :param _IngressEntries: 网络ACl入站规则。
36132
+ :param _IngressEntries: 该参数仅对三元组ACL有效,网络ACl入站规则。
35662
36133
  :type IngressEntries: list of NetworkAclEntry
35663
- :param _EgressEntries: 网络ACL出站规则。
36134
+ :param _EgressEntries: 该参数仅对三元组ACL有效,网络ACL出站规则。
35664
36135
  :type EgressEntries: list of NetworkAclEntry
35665
36136
  :param _NetworkAclType: 网络ACL类型。三元组:'TRIPLE' 五元组:'QUINTUPLE'
35666
36137
  :type NetworkAclType: str
@@ -39601,7 +40072,9 @@ EIP:云服务器的公网IP;
39601
40072
  LOCAL_GATEWAY:本地网关。
39602
40073
  :type GatewayType: str
39603
40074
  :param _GatewayId: 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。
39604
- 特殊说明:GatewayType为NORMAL_CVM时,GatewayId填写实例的内网IP。
40075
+ 特殊说明:
40076
+ GatewayType为NORMAL_CVM时,GatewayId填写实例的内网IP。
40077
+ GatewayType为EIP时,GatewayId填写0。
39605
40078
  :type GatewayId: str
39606
40079
  :param _RouteId: 路由策略ID。IPv4路由策略ID是有意义的值,IPv6路由策略是无意义的值0。后续建议完全使用字符串唯一ID `RouteItemId`操作路由策略。
39607
40080
  该字段在删除时必填,其他字段无需填写。
@@ -39619,6 +40092,7 @@ CCN:云联网路由,系统默认下发,不可编辑与删除。
39619
40092
  :param _RouteTableId: 路由表实例ID,例如:rtb-azd4dt1c。
39620
40093
  :type RouteTableId: str
39621
40094
  :param _DestinationIpv6CidrBlock: 目的IPv6网段,取值不能在私有网络网段内,例如:2402:4e00:1000:810b::/64。
40095
+ 注意:此字段可能返回 null,表示取不到有效值。
39622
40096
  :type DestinationIpv6CidrBlock: str
39623
40097
  :param _RouteItemId: 路由唯一策略ID。
39624
40098
  :type RouteItemId: str
@@ -40616,8 +41090,10 @@ class SecurityPolicyDatabase(AbstractModel):
40616
41090
  def __init__(self):
40617
41091
  r"""
40618
41092
  :param _LocalCidrBlock: 本端网段
41093
+ 注意:此字段可能返回 null,表示取不到有效值。
40619
41094
  :type LocalCidrBlock: str
40620
41095
  :param _RemoteCidrBlock: 对端网段
41096
+ 注意:此字段可能返回 null,表示取不到有效值。
40621
41097
  :type RemoteCidrBlock: list of str
40622
41098
  """
40623
41099
  self._LocalCidrBlock = None
@@ -43817,6 +44293,9 @@ class VpnConnection(AbstractModel):
43817
44293
  :param _NegotiationType: 协商类型
43818
44294
  注意:此字段可能返回 null,表示取不到有效值。
43819
44295
  :type NegotiationType: str
44296
+ :param _BgpConfig: Bgp配置信息
44297
+ 注意:此字段可能返回 null,表示取不到有效值。
44298
+ :type BgpConfig: :class:`tencentcloud.vpc.v20170312.models.BgpConfigAndAsn`
43820
44299
  """
43821
44300
  self._VpnConnectionId = None
43822
44301
  self._VpnConnectionName = None
@@ -43842,6 +44321,7 @@ class VpnConnection(AbstractModel):
43842
44321
  self._DpdAction = None
43843
44322
  self._TagSet = None
43844
44323
  self._NegotiationType = None
44324
+ self._BgpConfig = None
43845
44325
 
43846
44326
  @property
43847
44327
  def VpnConnectionId(self):
@@ -44035,6 +44515,14 @@ class VpnConnection(AbstractModel):
44035
44515
  def NegotiationType(self, NegotiationType):
44036
44516
  self._NegotiationType = NegotiationType
44037
44517
 
44518
+ @property
44519
+ def BgpConfig(self):
44520
+ return self._BgpConfig
44521
+
44522
+ @BgpConfig.setter
44523
+ def BgpConfig(self, BgpConfig):
44524
+ self._BgpConfig = BgpConfig
44525
+
44038
44526
 
44039
44527
  def _deserialize(self, params):
44040
44528
  self._VpnConnectionId = params.get("VpnConnectionId")
@@ -44075,6 +44563,9 @@ class VpnConnection(AbstractModel):
44075
44563
  obj._deserialize(item)
44076
44564
  self._TagSet.append(obj)
44077
44565
  self._NegotiationType = params.get("NegotiationType")
44566
+ if params.get("BgpConfig") is not None:
44567
+ self._BgpConfig = BgpConfigAndAsn()
44568
+ self._BgpConfig._deserialize(params.get("BgpConfig"))
44078
44569
  memeber_set = set(params.keys())
44079
44570
  for name, value in vars(self).items():
44080
44571
  property_name = name[1:]
@@ -6775,6 +6775,29 @@ class VpcClient(AbstractClient):
6775
6775
  raise TencentCloudSDKException(type(e).__name__, str(e))
6776
6776
 
6777
6777
 
6778
+ def ModifyVpnGatewaySslServer(self, request):
6779
+ """本接口用于修改 SSL-VPN 服务端属性
6780
+
6781
+ :param request: Request instance for ModifyVpnGatewaySslServer.
6782
+ :type request: :class:`tencentcloud.vpc.v20170312.models.ModifyVpnGatewaySslServerRequest`
6783
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.ModifyVpnGatewaySslServerResponse`
6784
+
6785
+ """
6786
+ try:
6787
+ params = request._serialize()
6788
+ headers = request.headers
6789
+ body = self.call("ModifyVpnGatewaySslServer", params, headers=headers)
6790
+ response = json.loads(body)
6791
+ model = models.ModifyVpnGatewaySslServerResponse()
6792
+ model._deserialize(response["Response"])
6793
+ return model
6794
+ except Exception as e:
6795
+ if isinstance(e, TencentCloudSDKException):
6796
+ raise
6797
+ else:
6798
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6799
+
6800
+
6778
6801
  def NotifyRoutes(self, request):
6779
6802
  """本接口(NotifyRoutes)用于路由表列表页操作增加“发布到云联网”,发布路由到云联网。
6780
6803
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-vpc
3
- Version: 3.0.1001
3
+ Version: 3.0.1014
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1014
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1001