tencentcloud-sdk-python-vpc 3.0.1185__tar.gz → 3.0.1187__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.
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/setup.py +1 -1
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud/vpc/v20170312/models.py +171 -2
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud_sdk_python_vpc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-vpc-3.0.1187/tencentcloud_sdk_python_vpc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-vpc-3.0.1185/tencentcloud_sdk_python_vpc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/README.rst +0 -0
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/setup.cfg +0 -0
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud/vpc/__init__.py +0 -0
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud/vpc/v20170312/__init__.py +0 -0
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud/vpc/v20170312/errorcodes.py +0 -0
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud_sdk_python_vpc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud_sdk_python_vpc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-vpc-3.0.1185 → tencentcloud-sdk-python-vpc-3.0.1187}/tencentcloud_sdk_python_vpc.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1187"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Vpc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1470,7 +1470,7 @@ AnycastEIP是否用于绑定负载均衡。
|
|
|
1470
1470
|
:type BandwidthPackageId: str
|
|
1471
1471
|
:param _AddressName: EIP名称,用于申请EIP时用户自定义该EIP的个性化名称,默认值:未命名
|
|
1472
1472
|
:type AddressName: str
|
|
1473
|
-
:param _Egress:
|
|
1473
|
+
:param _Egress: 网络出口,当前仅支持精品BGP、静态单线,这2种IP 地址类型的指定出口传入,默认值:center_egress1,其它可选值:center_egress2、center_egress3
|
|
1474
1474
|
:type Egress: str
|
|
1475
1475
|
:param _AntiDDoSPackageId: 高防包ID, 申请高防IP时,该字段必传。
|
|
1476
1476
|
:type AntiDDoSPackageId: str
|
|
@@ -22190,7 +22190,7 @@ class DescribeSecurityGroupPoliciesRequest(AbstractModel):
|
|
|
22190
22190
|
|
|
22191
22191
|
def __init__(self):
|
|
22192
22192
|
r"""
|
|
22193
|
-
:param _SecurityGroupId: 安全组实例ID,例如:sg-33ocnj9n
|
|
22193
|
+
:param _SecurityGroupId: 安全组实例ID,例如:sg-33ocnj9n,可通过<a href="https://cloud.tencent.com/document/product/215/15808">DescribeSecurityGroups</a>获取。
|
|
22194
22194
|
:type SecurityGroupId: str
|
|
22195
22195
|
:param _Filters: 过滤条件。
|
|
22196
22196
|
<li>security-group-id - String - 规则中的安全组ID。</li>
|
|
@@ -37454,6 +37454,76 @@ class ModifyVpnGatewayRoutesResponse(AbstractModel):
|
|
|
37454
37454
|
self._RequestId = params.get("RequestId")
|
|
37455
37455
|
|
|
37456
37456
|
|
|
37457
|
+
class ModifyVpnGatewaySslClientCertRequest(AbstractModel):
|
|
37458
|
+
"""ModifyVpnGatewaySslClientCert请求参数结构体
|
|
37459
|
+
|
|
37460
|
+
"""
|
|
37461
|
+
|
|
37462
|
+
def __init__(self):
|
|
37463
|
+
r"""
|
|
37464
|
+
:param _SslVpnClientIds: SSL-VPN-CLIENT 实例ID列表。
|
|
37465
|
+
:type SslVpnClientIds: list of str
|
|
37466
|
+
"""
|
|
37467
|
+
self._SslVpnClientIds = None
|
|
37468
|
+
|
|
37469
|
+
@property
|
|
37470
|
+
def SslVpnClientIds(self):
|
|
37471
|
+
return self._SslVpnClientIds
|
|
37472
|
+
|
|
37473
|
+
@SslVpnClientIds.setter
|
|
37474
|
+
def SslVpnClientIds(self, SslVpnClientIds):
|
|
37475
|
+
self._SslVpnClientIds = SslVpnClientIds
|
|
37476
|
+
|
|
37477
|
+
|
|
37478
|
+
def _deserialize(self, params):
|
|
37479
|
+
self._SslVpnClientIds = params.get("SslVpnClientIds")
|
|
37480
|
+
memeber_set = set(params.keys())
|
|
37481
|
+
for name, value in vars(self).items():
|
|
37482
|
+
property_name = name[1:]
|
|
37483
|
+
if property_name in memeber_set:
|
|
37484
|
+
memeber_set.remove(property_name)
|
|
37485
|
+
if len(memeber_set) > 0:
|
|
37486
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
37487
|
+
|
|
37488
|
+
|
|
37489
|
+
|
|
37490
|
+
class ModifyVpnGatewaySslClientCertResponse(AbstractModel):
|
|
37491
|
+
"""ModifyVpnGatewaySslClientCert返回参数结构体
|
|
37492
|
+
|
|
37493
|
+
"""
|
|
37494
|
+
|
|
37495
|
+
def __init__(self):
|
|
37496
|
+
r"""
|
|
37497
|
+
:param _TaskId: 异步任务ID。
|
|
37498
|
+
:type TaskId: int
|
|
37499
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
37500
|
+
:type RequestId: str
|
|
37501
|
+
"""
|
|
37502
|
+
self._TaskId = None
|
|
37503
|
+
self._RequestId = None
|
|
37504
|
+
|
|
37505
|
+
@property
|
|
37506
|
+
def TaskId(self):
|
|
37507
|
+
return self._TaskId
|
|
37508
|
+
|
|
37509
|
+
@TaskId.setter
|
|
37510
|
+
def TaskId(self, TaskId):
|
|
37511
|
+
self._TaskId = TaskId
|
|
37512
|
+
|
|
37513
|
+
@property
|
|
37514
|
+
def RequestId(self):
|
|
37515
|
+
return self._RequestId
|
|
37516
|
+
|
|
37517
|
+
@RequestId.setter
|
|
37518
|
+
def RequestId(self, RequestId):
|
|
37519
|
+
self._RequestId = RequestId
|
|
37520
|
+
|
|
37521
|
+
|
|
37522
|
+
def _deserialize(self, params):
|
|
37523
|
+
self._TaskId = params.get("TaskId")
|
|
37524
|
+
self._RequestId = params.get("RequestId")
|
|
37525
|
+
|
|
37526
|
+
|
|
37457
37527
|
class ModifyVpnGatewaySslServerRequest(AbstractModel):
|
|
37458
37528
|
"""ModifyVpnGatewaySslServer请求参数结构体
|
|
37459
37529
|
|
|
@@ -39811,6 +39881,79 @@ class PeerConnection(AbstractModel):
|
|
|
39811
39881
|
|
|
39812
39882
|
|
|
39813
39883
|
|
|
39884
|
+
class PolicyStatistics(AbstractModel):
|
|
39885
|
+
"""安全组策略统计
|
|
39886
|
+
|
|
39887
|
+
"""
|
|
39888
|
+
|
|
39889
|
+
def __init__(self):
|
|
39890
|
+
r"""
|
|
39891
|
+
:param _IngressIPv4TotalCount: 入站IPv4总数
|
|
39892
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39893
|
+
:type IngressIPv4TotalCount: int
|
|
39894
|
+
:param _IngressIPv6TotalCount: 入站IPv6总数
|
|
39895
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39896
|
+
:type IngressIPv6TotalCount: int
|
|
39897
|
+
:param _EgressIPv4TotalCount: 出站IPv4总数
|
|
39898
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39899
|
+
:type EgressIPv4TotalCount: int
|
|
39900
|
+
:param _EgressIPv6TotalCount: 出站IPv6总数
|
|
39901
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39902
|
+
:type EgressIPv6TotalCount: int
|
|
39903
|
+
"""
|
|
39904
|
+
self._IngressIPv4TotalCount = None
|
|
39905
|
+
self._IngressIPv6TotalCount = None
|
|
39906
|
+
self._EgressIPv4TotalCount = None
|
|
39907
|
+
self._EgressIPv6TotalCount = None
|
|
39908
|
+
|
|
39909
|
+
@property
|
|
39910
|
+
def IngressIPv4TotalCount(self):
|
|
39911
|
+
return self._IngressIPv4TotalCount
|
|
39912
|
+
|
|
39913
|
+
@IngressIPv4TotalCount.setter
|
|
39914
|
+
def IngressIPv4TotalCount(self, IngressIPv4TotalCount):
|
|
39915
|
+
self._IngressIPv4TotalCount = IngressIPv4TotalCount
|
|
39916
|
+
|
|
39917
|
+
@property
|
|
39918
|
+
def IngressIPv6TotalCount(self):
|
|
39919
|
+
return self._IngressIPv6TotalCount
|
|
39920
|
+
|
|
39921
|
+
@IngressIPv6TotalCount.setter
|
|
39922
|
+
def IngressIPv6TotalCount(self, IngressIPv6TotalCount):
|
|
39923
|
+
self._IngressIPv6TotalCount = IngressIPv6TotalCount
|
|
39924
|
+
|
|
39925
|
+
@property
|
|
39926
|
+
def EgressIPv4TotalCount(self):
|
|
39927
|
+
return self._EgressIPv4TotalCount
|
|
39928
|
+
|
|
39929
|
+
@EgressIPv4TotalCount.setter
|
|
39930
|
+
def EgressIPv4TotalCount(self, EgressIPv4TotalCount):
|
|
39931
|
+
self._EgressIPv4TotalCount = EgressIPv4TotalCount
|
|
39932
|
+
|
|
39933
|
+
@property
|
|
39934
|
+
def EgressIPv6TotalCount(self):
|
|
39935
|
+
return self._EgressIPv6TotalCount
|
|
39936
|
+
|
|
39937
|
+
@EgressIPv6TotalCount.setter
|
|
39938
|
+
def EgressIPv6TotalCount(self, EgressIPv6TotalCount):
|
|
39939
|
+
self._EgressIPv6TotalCount = EgressIPv6TotalCount
|
|
39940
|
+
|
|
39941
|
+
|
|
39942
|
+
def _deserialize(self, params):
|
|
39943
|
+
self._IngressIPv4TotalCount = params.get("IngressIPv4TotalCount")
|
|
39944
|
+
self._IngressIPv6TotalCount = params.get("IngressIPv6TotalCount")
|
|
39945
|
+
self._EgressIPv4TotalCount = params.get("EgressIPv4TotalCount")
|
|
39946
|
+
self._EgressIPv6TotalCount = params.get("EgressIPv6TotalCount")
|
|
39947
|
+
memeber_set = set(params.keys())
|
|
39948
|
+
for name, value in vars(self).items():
|
|
39949
|
+
property_name = name[1:]
|
|
39950
|
+
if property_name in memeber_set:
|
|
39951
|
+
memeber_set.remove(property_name)
|
|
39952
|
+
if len(memeber_set) > 0:
|
|
39953
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39954
|
+
|
|
39955
|
+
|
|
39956
|
+
|
|
39814
39957
|
class Price(AbstractModel):
|
|
39815
39958
|
"""价格
|
|
39816
39959
|
|
|
@@ -43604,27 +43747,38 @@ class SecurityGroupPolicy(AbstractModel):
|
|
|
43604
43747
|
def __init__(self):
|
|
43605
43748
|
r"""
|
|
43606
43749
|
:param _PolicyIndex: 安全组规则索引号,值会随着安全组规则的变更动态变化。使用PolicyIndex时,请先调用`DescribeSecurityGroupPolicies`获取到规则的PolicyIndex,并且结合返回值中的Version一起使用处理规则。
|
|
43750
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43607
43751
|
:type PolicyIndex: int
|
|
43608
43752
|
:param _Protocol: 协议, 取值: TCP,UDP,ICMP,ICMPv6,ALL。
|
|
43753
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43609
43754
|
:type Protocol: str
|
|
43610
43755
|
:param _Port: 端口(all, 离散port, range)。
|
|
43611
43756
|
说明:如果Protocol设置为ALL,则Port也需要设置为all。
|
|
43757
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43612
43758
|
:type Port: str
|
|
43613
43759
|
:param _ServiceTemplate: 协议端口ID或者协议端口组ID。ServiceTemplate和Protocol+Port互斥。
|
|
43760
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43614
43761
|
:type ServiceTemplate: :class:`tencentcloud.vpc.v20170312.models.ServiceTemplateSpecification`
|
|
43615
43762
|
:param _CidrBlock: 网段或IP(互斥),特殊说明:0.0.0.0/n 都会映射为0.0.0.0/0。
|
|
43763
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43616
43764
|
:type CidrBlock: str
|
|
43617
43765
|
:param _Ipv6CidrBlock: 网段或IPv6(互斥)。
|
|
43766
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43618
43767
|
:type Ipv6CidrBlock: str
|
|
43619
43768
|
:param _SecurityGroupId: 安全组实例ID,例如:sg-ohuuioma。
|
|
43769
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43620
43770
|
:type SecurityGroupId: str
|
|
43621
43771
|
:param _AddressTemplate: IP地址ID或者IP地址组ID。
|
|
43772
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43622
43773
|
:type AddressTemplate: :class:`tencentcloud.vpc.v20170312.models.AddressTemplateSpecification`
|
|
43623
43774
|
:param _Action: ACCEPT 或 DROP。
|
|
43775
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43624
43776
|
:type Action: str
|
|
43625
43777
|
:param _PolicyDescription: 安全组规则描述。
|
|
43778
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43626
43779
|
:type PolicyDescription: str
|
|
43627
43780
|
:param _ModifyTime: 安全组最近修改时间。
|
|
43781
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43628
43782
|
:type ModifyTime: str
|
|
43629
43783
|
"""
|
|
43630
43784
|
self._PolicyIndex = None
|
|
@@ -43770,10 +43924,14 @@ class SecurityGroupPolicySet(AbstractModel):
|
|
|
43770
43924
|
:param _Ingress: 入站规则。
|
|
43771
43925
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
43772
43926
|
:type Ingress: list of SecurityGroupPolicy
|
|
43927
|
+
:param _PolicyStatistics: 安全组策略条目统计。只用于出参。
|
|
43928
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43929
|
+
:type PolicyStatistics: :class:`tencentcloud.vpc.v20170312.models.PolicyStatistics`
|
|
43773
43930
|
"""
|
|
43774
43931
|
self._Version = None
|
|
43775
43932
|
self._Egress = None
|
|
43776
43933
|
self._Ingress = None
|
|
43934
|
+
self._PolicyStatistics = None
|
|
43777
43935
|
|
|
43778
43936
|
@property
|
|
43779
43937
|
def Version(self):
|
|
@@ -43799,6 +43957,14 @@ class SecurityGroupPolicySet(AbstractModel):
|
|
|
43799
43957
|
def Ingress(self, Ingress):
|
|
43800
43958
|
self._Ingress = Ingress
|
|
43801
43959
|
|
|
43960
|
+
@property
|
|
43961
|
+
def PolicyStatistics(self):
|
|
43962
|
+
return self._PolicyStatistics
|
|
43963
|
+
|
|
43964
|
+
@PolicyStatistics.setter
|
|
43965
|
+
def PolicyStatistics(self, PolicyStatistics):
|
|
43966
|
+
self._PolicyStatistics = PolicyStatistics
|
|
43967
|
+
|
|
43802
43968
|
|
|
43803
43969
|
def _deserialize(self, params):
|
|
43804
43970
|
self._Version = params.get("Version")
|
|
@@ -43814,6 +43980,9 @@ class SecurityGroupPolicySet(AbstractModel):
|
|
|
43814
43980
|
obj = SecurityGroupPolicy()
|
|
43815
43981
|
obj._deserialize(item)
|
|
43816
43982
|
self._Ingress.append(obj)
|
|
43983
|
+
if params.get("PolicyStatistics") is not None:
|
|
43984
|
+
self._PolicyStatistics = PolicyStatistics()
|
|
43985
|
+
self._PolicyStatistics._deserialize(params.get("PolicyStatistics"))
|
|
43817
43986
|
memeber_set = set(params.keys())
|
|
43818
43987
|
for name, value in vars(self).items():
|
|
43819
43988
|
property_name = name[1:]
|
|
@@ -7204,6 +7204,29 @@ class VpcClient(AbstractClient):
|
|
|
7204
7204
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
7205
7205
|
|
|
7206
7206
|
|
|
7207
|
+
def ModifyVpnGatewaySslClientCert(self, request):
|
|
7208
|
+
"""更新SslVpnClient证书
|
|
7209
|
+
|
|
7210
|
+
:param request: Request instance for ModifyVpnGatewaySslClientCert.
|
|
7211
|
+
:type request: :class:`tencentcloud.vpc.v20170312.models.ModifyVpnGatewaySslClientCertRequest`
|
|
7212
|
+
:rtype: :class:`tencentcloud.vpc.v20170312.models.ModifyVpnGatewaySslClientCertResponse`
|
|
7213
|
+
|
|
7214
|
+
"""
|
|
7215
|
+
try:
|
|
7216
|
+
params = request._serialize()
|
|
7217
|
+
headers = request.headers
|
|
7218
|
+
body = self.call("ModifyVpnGatewaySslClientCert", params, headers=headers)
|
|
7219
|
+
response = json.loads(body)
|
|
7220
|
+
model = models.ModifyVpnGatewaySslClientCertResponse()
|
|
7221
|
+
model._deserialize(response["Response"])
|
|
7222
|
+
return model
|
|
7223
|
+
except Exception as e:
|
|
7224
|
+
if isinstance(e, TencentCloudSDKException):
|
|
7225
|
+
raise
|
|
7226
|
+
else:
|
|
7227
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
7228
|
+
|
|
7229
|
+
|
|
7207
7230
|
def ModifyVpnGatewaySslServer(self, request):
|
|
7208
7231
|
"""本接口用于修改 SSL-VPN 服务端属性
|
|
7209
7232
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1187
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1185
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|