tencentcloud-sdk-python-vpc 3.1.73__py2.py3-none-any.whl → 3.1.79__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 +109 -0
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
- {tencentcloud_sdk_python_vpc-3.1.73.dist-info → tencentcloud_sdk_python_vpc-3.1.79.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_vpc-3.1.79.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_vpc-3.1.73.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_vpc-3.1.73.dist-info → tencentcloud_sdk_python_vpc-3.1.79.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_vpc-3.1.73.dist-info → tencentcloud_sdk_python_vpc-3.1.79.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -1172,6 +1172,9 @@ UNSUPPORTEDOPERATION_MULTIPLEVPCNOTSUPPORTATTACHACCOUNTHASIPV6 = 'UnsupportedOpe
|
|
|
1172
1172
|
# 资源互斥操作任务正在执行。
|
|
1173
1173
|
UNSUPPORTEDOPERATION_MUTEXOPERATIONTASKRUNNING = 'UnsupportedOperation.MutexOperationTaskRunning'
|
|
1174
1174
|
|
|
1175
|
+
# 传统型NAT网关暂不支持同时创建DNAT规则和开通流日志功能。
|
|
1176
|
+
UNSUPPORTEDOPERATION_NATGATEWAYDNATANDFLOWLOGCONFLICT = 'UnsupportedOperation.NatGatewayDnatAndFlowLogConflict'
|
|
1177
|
+
|
|
1175
1178
|
# NAT网关的公网IP不存在。
|
|
1176
1179
|
UNSUPPORTEDOPERATION_NATGATEWAYEIPNOTEXISTS = 'UnsupportedOperation.NatGatewayEipNotExists'
|
|
1177
1180
|
|
|
@@ -54822,6 +54822,115 @@ class ModifyLocalGatewayResponse(AbstractModel):
|
|
|
54822
54822
|
self._RequestId = params.get("RequestId")
|
|
54823
54823
|
|
|
54824
54824
|
|
|
54825
|
+
class ModifyNatGatewayAdvancedAttributeRequest(AbstractModel):
|
|
54826
|
+
r"""ModifyNatGatewayAdvancedAttribute请求参数结构体
|
|
54827
|
+
|
|
54828
|
+
"""
|
|
54829
|
+
|
|
54830
|
+
def __init__(self):
|
|
54831
|
+
r"""
|
|
54832
|
+
:param _NatGatewayId: NAT网关的ID,形如:`nat-df45454`。
|
|
54833
|
+
:type NatGatewayId: str
|
|
54834
|
+
:param _UDPMappingTimeout: UDP映射空闲时间,单位:秒。含义为UDP流空闲多少秒以后从NAT映射中释放。取值范围为:3-7200,默认为180。
|
|
54835
|
+
:type UDPMappingTimeout: int
|
|
54836
|
+
:param _TCPEstablishedConnectionTimeout: TCP已建立的连接空闲超时时间,单位:秒。含义为TCP已建立的连接空闲多少秒以后从NAT映射中释放。取值范围为:40-10800,默认为10800。
|
|
54837
|
+
:type TCPEstablishedConnectionTimeout: int
|
|
54838
|
+
:param _TCPTimeWaitTimeout: TCP TIME_WAIT超时时间,单位:秒。含义为完全关闭的TCP连接在到期后保留在NAT映射中的秒数。取值范围为:10-600,默认为120。
|
|
54839
|
+
:type TCPTimeWaitTimeout: int
|
|
54840
|
+
"""
|
|
54841
|
+
self._NatGatewayId = None
|
|
54842
|
+
self._UDPMappingTimeout = None
|
|
54843
|
+
self._TCPEstablishedConnectionTimeout = None
|
|
54844
|
+
self._TCPTimeWaitTimeout = None
|
|
54845
|
+
|
|
54846
|
+
@property
|
|
54847
|
+
def NatGatewayId(self):
|
|
54848
|
+
r"""NAT网关的ID,形如:`nat-df45454`。
|
|
54849
|
+
:rtype: str
|
|
54850
|
+
"""
|
|
54851
|
+
return self._NatGatewayId
|
|
54852
|
+
|
|
54853
|
+
@NatGatewayId.setter
|
|
54854
|
+
def NatGatewayId(self, NatGatewayId):
|
|
54855
|
+
self._NatGatewayId = NatGatewayId
|
|
54856
|
+
|
|
54857
|
+
@property
|
|
54858
|
+
def UDPMappingTimeout(self):
|
|
54859
|
+
r"""UDP映射空闲时间,单位:秒。含义为UDP流空闲多少秒以后从NAT映射中释放。取值范围为:3-7200,默认为180。
|
|
54860
|
+
:rtype: int
|
|
54861
|
+
"""
|
|
54862
|
+
return self._UDPMappingTimeout
|
|
54863
|
+
|
|
54864
|
+
@UDPMappingTimeout.setter
|
|
54865
|
+
def UDPMappingTimeout(self, UDPMappingTimeout):
|
|
54866
|
+
self._UDPMappingTimeout = UDPMappingTimeout
|
|
54867
|
+
|
|
54868
|
+
@property
|
|
54869
|
+
def TCPEstablishedConnectionTimeout(self):
|
|
54870
|
+
r"""TCP已建立的连接空闲超时时间,单位:秒。含义为TCP已建立的连接空闲多少秒以后从NAT映射中释放。取值范围为:40-10800,默认为10800。
|
|
54871
|
+
:rtype: int
|
|
54872
|
+
"""
|
|
54873
|
+
return self._TCPEstablishedConnectionTimeout
|
|
54874
|
+
|
|
54875
|
+
@TCPEstablishedConnectionTimeout.setter
|
|
54876
|
+
def TCPEstablishedConnectionTimeout(self, TCPEstablishedConnectionTimeout):
|
|
54877
|
+
self._TCPEstablishedConnectionTimeout = TCPEstablishedConnectionTimeout
|
|
54878
|
+
|
|
54879
|
+
@property
|
|
54880
|
+
def TCPTimeWaitTimeout(self):
|
|
54881
|
+
r"""TCP TIME_WAIT超时时间,单位:秒。含义为完全关闭的TCP连接在到期后保留在NAT映射中的秒数。取值范围为:10-600,默认为120。
|
|
54882
|
+
:rtype: int
|
|
54883
|
+
"""
|
|
54884
|
+
return self._TCPTimeWaitTimeout
|
|
54885
|
+
|
|
54886
|
+
@TCPTimeWaitTimeout.setter
|
|
54887
|
+
def TCPTimeWaitTimeout(self, TCPTimeWaitTimeout):
|
|
54888
|
+
self._TCPTimeWaitTimeout = TCPTimeWaitTimeout
|
|
54889
|
+
|
|
54890
|
+
|
|
54891
|
+
def _deserialize(self, params):
|
|
54892
|
+
self._NatGatewayId = params.get("NatGatewayId")
|
|
54893
|
+
self._UDPMappingTimeout = params.get("UDPMappingTimeout")
|
|
54894
|
+
self._TCPEstablishedConnectionTimeout = params.get("TCPEstablishedConnectionTimeout")
|
|
54895
|
+
self._TCPTimeWaitTimeout = params.get("TCPTimeWaitTimeout")
|
|
54896
|
+
memeber_set = set(params.keys())
|
|
54897
|
+
for name, value in vars(self).items():
|
|
54898
|
+
property_name = name[1:]
|
|
54899
|
+
if property_name in memeber_set:
|
|
54900
|
+
memeber_set.remove(property_name)
|
|
54901
|
+
if len(memeber_set) > 0:
|
|
54902
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
54903
|
+
|
|
54904
|
+
|
|
54905
|
+
|
|
54906
|
+
class ModifyNatGatewayAdvancedAttributeResponse(AbstractModel):
|
|
54907
|
+
r"""ModifyNatGatewayAdvancedAttribute返回参数结构体
|
|
54908
|
+
|
|
54909
|
+
"""
|
|
54910
|
+
|
|
54911
|
+
def __init__(self):
|
|
54912
|
+
r"""
|
|
54913
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
54914
|
+
:type RequestId: str
|
|
54915
|
+
"""
|
|
54916
|
+
self._RequestId = None
|
|
54917
|
+
|
|
54918
|
+
@property
|
|
54919
|
+
def RequestId(self):
|
|
54920
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
54921
|
+
:rtype: str
|
|
54922
|
+
"""
|
|
54923
|
+
return self._RequestId
|
|
54924
|
+
|
|
54925
|
+
@RequestId.setter
|
|
54926
|
+
def RequestId(self, RequestId):
|
|
54927
|
+
self._RequestId = RequestId
|
|
54928
|
+
|
|
54929
|
+
|
|
54930
|
+
def _deserialize(self, params):
|
|
54931
|
+
self._RequestId = params.get("RequestId")
|
|
54932
|
+
|
|
54933
|
+
|
|
54825
54934
|
class ModifyNatGatewayAttributeRequest(AbstractModel):
|
|
54826
54935
|
r"""ModifyNatGatewayAttribute请求参数结构体
|
|
54827
54936
|
|
|
@@ -8530,6 +8530,29 @@ class VpcClient(AbstractClient):
|
|
|
8530
8530
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
8531
8531
|
|
|
8532
8532
|
|
|
8533
|
+
def ModifyNatGatewayAdvancedAttribute(self, request):
|
|
8534
|
+
r"""本接口(ModifyNatGatewayAdvancedAttribute)用于修改NAT网关的高级属性。
|
|
8535
|
+
|
|
8536
|
+
:param request: Request instance for ModifyNatGatewayAdvancedAttribute.
|
|
8537
|
+
:type request: :class:`tencentcloud.vpc.v20170312.models.ModifyNatGatewayAdvancedAttributeRequest`
|
|
8538
|
+
:rtype: :class:`tencentcloud.vpc.v20170312.models.ModifyNatGatewayAdvancedAttributeResponse`
|
|
8539
|
+
|
|
8540
|
+
"""
|
|
8541
|
+
try:
|
|
8542
|
+
params = request._serialize()
|
|
8543
|
+
headers = request.headers
|
|
8544
|
+
body = self.call("ModifyNatGatewayAdvancedAttribute", params, headers=headers)
|
|
8545
|
+
response = json.loads(body)
|
|
8546
|
+
model = models.ModifyNatGatewayAdvancedAttributeResponse()
|
|
8547
|
+
model._deserialize(response["Response"])
|
|
8548
|
+
return model
|
|
8549
|
+
except Exception as e:
|
|
8550
|
+
if isinstance(e, TencentCloudSDKException):
|
|
8551
|
+
raise
|
|
8552
|
+
else:
|
|
8553
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
8554
|
+
|
|
8555
|
+
|
|
8533
8556
|
def ModifyNatGatewayAttribute(self, request):
|
|
8534
8557
|
r"""本接口(ModifyNatGatewayAttribute)用于修改NAT网关的属性。
|
|
8535
8558
|
|
|
@@ -6739,6 +6739,24 @@ class VpcClient(AbstractClient):
|
|
|
6739
6739
|
|
|
6740
6740
|
return await self.call_and_deserialize(**kwargs)
|
|
6741
6741
|
|
|
6742
|
+
async def ModifyNatGatewayAdvancedAttribute(
|
|
6743
|
+
self,
|
|
6744
|
+
request: models.ModifyNatGatewayAdvancedAttributeRequest,
|
|
6745
|
+
opts: Dict = None,
|
|
6746
|
+
) -> models.ModifyNatGatewayAdvancedAttributeResponse:
|
|
6747
|
+
"""
|
|
6748
|
+
本接口(ModifyNatGatewayAdvancedAttribute)用于修改NAT网关的高级属性。
|
|
6749
|
+
"""
|
|
6750
|
+
|
|
6751
|
+
kwargs = {}
|
|
6752
|
+
kwargs["action"] = "ModifyNatGatewayAdvancedAttribute"
|
|
6753
|
+
kwargs["params"] = request._serialize()
|
|
6754
|
+
kwargs["resp_cls"] = models.ModifyNatGatewayAdvancedAttributeResponse
|
|
6755
|
+
kwargs["headers"] = request.headers
|
|
6756
|
+
kwargs["opts"] = opts or {}
|
|
6757
|
+
|
|
6758
|
+
return await self.call_and_deserialize(**kwargs)
|
|
6759
|
+
|
|
6742
6760
|
async def ModifyNatGatewayAttribute(
|
|
6743
6761
|
self,
|
|
6744
6762
|
request: models.ModifyNatGatewayAttributeRequest,
|
|
@@ -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.79
|
|
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.79
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=mcjD6FSc4s5jn7T8V1KlypcFxix_t81sWYWebG3n3iA,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=qg8JAcgc-zQn_AljJRr2yd3zuQEfMtEx-vF8sajJtug,70712
|
|
5
|
+
tencentcloud/vpc/v20170312/models.py,sha256=co1s8UIgo7mYP41phkDn4u9Fks8qeF4u-P8XRUIs3Qs,2571151
|
|
6
|
+
tencentcloud/vpc/v20170312/vpc_client.py,sha256=ZEZGoUmPZ3Ei2O5zCyj3ufI7L8IVkCTibVvkQyqEKIo,484664
|
|
7
|
+
tencentcloud/vpc/v20170312/vpc_client_async.py,sha256=he3eKQkun3mJgvQqU8nJv-PvjQJW8t_d_IMMBfVnSVo,346837
|
|
8
|
+
tencentcloud_sdk_python_vpc-3.1.79.dist-info/METADATA,sha256=L8zqEcQrAUy_NQey7f-hLmjPiDlDpihB4rXAHSew9is,1495
|
|
9
|
+
tencentcloud_sdk_python_vpc-3.1.79.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_vpc-3.1.79.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_vpc-3.1.79.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=BCJvTIvZJ45hmQeWdBA2mI7IEwDld6vwEn--S5FsDGs,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=iK92Eipd-R5miGz0QjrjvfNPYTITxpcn6fQkikXDUC8,70517
|
|
5
|
-
tencentcloud/vpc/v20170312/models.py,sha256=2UbELCOuCRadmoWv-8sFw7RU3FizM8hqFK8uOlvpK4g,2566641
|
|
6
|
-
tencentcloud/vpc/v20170312/vpc_client.py,sha256=iZL4Ge0kD_dfDi2xS1c7urxfD_x6B6Eh2my2ShhKtys,483629
|
|
7
|
-
tencentcloud/vpc/v20170312/vpc_client_async.py,sha256=bV0A7JDIYSKp65MsEuAUOmsMduKhPhv5zCp-Z7OiWM4,346117
|
|
8
|
-
tencentcloud_sdk_python_vpc-3.1.73.dist-info/METADATA,sha256=-ZrUBEPW3Qv7IoZNJJNZRkFrPDJ-gIjTeC7uvvQz3L8,1495
|
|
9
|
-
tencentcloud_sdk_python_vpc-3.1.73.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_vpc-3.1.73.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_vpc-3.1.73.dist-info/RECORD,,
|
{tencentcloud_sdk_python_vpc-3.1.73.dist-info → tencentcloud_sdk_python_vpc-3.1.79.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|