tencentcloud-sdk-python-tse 3.0.1001__tar.gz → 3.0.1004__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-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/setup.py +1 -1
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud/tse/v20201207/models.py +190 -2
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud/tse/v20201207/tse_client.py +23 -0
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud_sdk_python_tse.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-tse-3.0.1004/tencentcloud_sdk_python_tse.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tse-3.0.1001/tencentcloud_sdk_python_tse.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/README.rst +0 -0
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/setup.cfg +0 -0
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud/tse/__init__.py +0 -0
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud/tse/v20201207/__init__.py +0 -0
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud/tse/v20201207/errorcodes.py +0 -0
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud_sdk_python_tse.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud_sdk_python_tse.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tse-3.0.1001 → tencentcloud-sdk-python-tse-3.0.1004}/tencentcloud_sdk_python_tse.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-tse',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1004"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Tse SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -851,9 +851,12 @@ class CloudNativeAPIGatewayConfig(AbstractModel):
|
|
|
851
851
|
:param _Description: 负载均衡的描述
|
|
852
852
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
853
853
|
:type Description: str
|
|
854
|
-
:param _SlaType:
|
|
854
|
+
:param _SlaType: 负载均衡的规格类型
|
|
855
855
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
856
856
|
:type SlaType: str
|
|
857
|
+
:param _SlaName: clb规格名称
|
|
858
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
859
|
+
:type SlaName: str
|
|
857
860
|
:param _Vip: clb vip
|
|
858
861
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
859
862
|
:type Vip: str
|
|
@@ -891,6 +894,7 @@ class CloudNativeAPIGatewayConfig(AbstractModel):
|
|
|
891
894
|
self._VpcId = None
|
|
892
895
|
self._Description = None
|
|
893
896
|
self._SlaType = None
|
|
897
|
+
self._SlaName = None
|
|
894
898
|
self._Vip = None
|
|
895
899
|
self._InternetMaxBandwidthOut = None
|
|
896
900
|
self._MultiZoneFlag = None
|
|
@@ -996,6 +1000,14 @@ class CloudNativeAPIGatewayConfig(AbstractModel):
|
|
|
996
1000
|
def SlaType(self, SlaType):
|
|
997
1001
|
self._SlaType = SlaType
|
|
998
1002
|
|
|
1003
|
+
@property
|
|
1004
|
+
def SlaName(self):
|
|
1005
|
+
return self._SlaName
|
|
1006
|
+
|
|
1007
|
+
@SlaName.setter
|
|
1008
|
+
def SlaName(self, SlaName):
|
|
1009
|
+
self._SlaName = SlaName
|
|
1010
|
+
|
|
999
1011
|
@property
|
|
1000
1012
|
def Vip(self):
|
|
1001
1013
|
return self._Vip
|
|
@@ -1076,6 +1088,7 @@ class CloudNativeAPIGatewayConfig(AbstractModel):
|
|
|
1076
1088
|
self._VpcId = params.get("VpcId")
|
|
1077
1089
|
self._Description = params.get("Description")
|
|
1078
1090
|
self._SlaType = params.get("SlaType")
|
|
1091
|
+
self._SlaName = params.get("SlaName")
|
|
1079
1092
|
self._Vip = params.get("Vip")
|
|
1080
1093
|
self._InternetMaxBandwidthOut = params.get("InternetMaxBandwidthOut")
|
|
1081
1094
|
self._MultiZoneFlag = params.get("MultiZoneFlag")
|
|
@@ -3175,11 +3188,23 @@ class CreateCloudNativeAPIGatewayServiceResponse(AbstractModel):
|
|
|
3175
3188
|
|
|
3176
3189
|
def __init__(self):
|
|
3177
3190
|
r"""
|
|
3191
|
+
:param _Result: 网关服务创建结果
|
|
3192
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3193
|
+
:type Result: :class:`tencentcloud.tse.v20201207.models.CreateGatewayServiceResult`
|
|
3178
3194
|
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3179
3195
|
:type RequestId: str
|
|
3180
3196
|
"""
|
|
3197
|
+
self._Result = None
|
|
3181
3198
|
self._RequestId = None
|
|
3182
3199
|
|
|
3200
|
+
@property
|
|
3201
|
+
def Result(self):
|
|
3202
|
+
return self._Result
|
|
3203
|
+
|
|
3204
|
+
@Result.setter
|
|
3205
|
+
def Result(self, Result):
|
|
3206
|
+
self._Result = Result
|
|
3207
|
+
|
|
3183
3208
|
@property
|
|
3184
3209
|
def RequestId(self):
|
|
3185
3210
|
return self._RequestId
|
|
@@ -3190,6 +3215,9 @@ class CreateCloudNativeAPIGatewayServiceResponse(AbstractModel):
|
|
|
3190
3215
|
|
|
3191
3216
|
|
|
3192
3217
|
def _deserialize(self, params):
|
|
3218
|
+
if params.get("Result") is not None:
|
|
3219
|
+
self._Result = CreateGatewayServiceResult()
|
|
3220
|
+
self._Result._deserialize(params.get("Result"))
|
|
3193
3221
|
self._RequestId = params.get("RequestId")
|
|
3194
3222
|
|
|
3195
3223
|
|
|
@@ -3516,6 +3544,40 @@ class CreateEngineResponse(AbstractModel):
|
|
|
3516
3544
|
self._RequestId = params.get("RequestId")
|
|
3517
3545
|
|
|
3518
3546
|
|
|
3547
|
+
class CreateGatewayServiceResult(AbstractModel):
|
|
3548
|
+
"""创建云原生网关服务结果
|
|
3549
|
+
|
|
3550
|
+
"""
|
|
3551
|
+
|
|
3552
|
+
def __init__(self):
|
|
3553
|
+
r"""
|
|
3554
|
+
:param _ServiceId: 网关服务ID
|
|
3555
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3556
|
+
:type ServiceId: str
|
|
3557
|
+
"""
|
|
3558
|
+
self._ServiceId = None
|
|
3559
|
+
|
|
3560
|
+
@property
|
|
3561
|
+
def ServiceId(self):
|
|
3562
|
+
return self._ServiceId
|
|
3563
|
+
|
|
3564
|
+
@ServiceId.setter
|
|
3565
|
+
def ServiceId(self, ServiceId):
|
|
3566
|
+
self._ServiceId = ServiceId
|
|
3567
|
+
|
|
3568
|
+
|
|
3569
|
+
def _deserialize(self, params):
|
|
3570
|
+
self._ServiceId = params.get("ServiceId")
|
|
3571
|
+
memeber_set = set(params.keys())
|
|
3572
|
+
for name, value in vars(self).items():
|
|
3573
|
+
property_name = name[1:]
|
|
3574
|
+
if property_name in memeber_set:
|
|
3575
|
+
memeber_set.remove(property_name)
|
|
3576
|
+
if len(memeber_set) > 0:
|
|
3577
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3578
|
+
|
|
3579
|
+
|
|
3580
|
+
|
|
3519
3581
|
class CreateNativeGatewayServerGroupRequest(AbstractModel):
|
|
3520
3582
|
"""CreateNativeGatewayServerGroup请求参数结构体
|
|
3521
3583
|
|
|
@@ -7955,9 +8017,17 @@ class InstancePort(AbstractModel):
|
|
|
7955
8017
|
:param _HttpsPort: 监听的 https 端口范围。
|
|
7956
8018
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7957
8019
|
:type HttpsPort: str
|
|
8020
|
+
:param _TcpPort: 监听的 tcp 端口范围。
|
|
8021
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8022
|
+
:type TcpPort: str
|
|
8023
|
+
:param _UdpPort: 监听的 udp 端口范围。
|
|
8024
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8025
|
+
:type UdpPort: str
|
|
7958
8026
|
"""
|
|
7959
8027
|
self._HttpPort = None
|
|
7960
8028
|
self._HttpsPort = None
|
|
8029
|
+
self._TcpPort = None
|
|
8030
|
+
self._UdpPort = None
|
|
7961
8031
|
|
|
7962
8032
|
@property
|
|
7963
8033
|
def HttpPort(self):
|
|
@@ -7975,10 +8045,28 @@ class InstancePort(AbstractModel):
|
|
|
7975
8045
|
def HttpsPort(self, HttpsPort):
|
|
7976
8046
|
self._HttpsPort = HttpsPort
|
|
7977
8047
|
|
|
8048
|
+
@property
|
|
8049
|
+
def TcpPort(self):
|
|
8050
|
+
return self._TcpPort
|
|
8051
|
+
|
|
8052
|
+
@TcpPort.setter
|
|
8053
|
+
def TcpPort(self, TcpPort):
|
|
8054
|
+
self._TcpPort = TcpPort
|
|
8055
|
+
|
|
8056
|
+
@property
|
|
8057
|
+
def UdpPort(self):
|
|
8058
|
+
return self._UdpPort
|
|
8059
|
+
|
|
8060
|
+
@UdpPort.setter
|
|
8061
|
+
def UdpPort(self, UdpPort):
|
|
8062
|
+
self._UdpPort = UdpPort
|
|
8063
|
+
|
|
7978
8064
|
|
|
7979
8065
|
def _deserialize(self, params):
|
|
7980
8066
|
self._HttpPort = params.get("HttpPort")
|
|
7981
8067
|
self._HttpsPort = params.get("HttpsPort")
|
|
8068
|
+
self._TcpPort = params.get("TcpPort")
|
|
8069
|
+
self._UdpPort = params.get("UdpPort")
|
|
7982
8070
|
memeber_set = set(params.keys())
|
|
7983
8071
|
for name, value in vars(self).items():
|
|
7984
8072
|
property_name = name[1:]
|
|
@@ -8049,7 +8137,7 @@ class InternetConfig(AbstractModel):
|
|
|
8049
8137
|
:type InternetMaxBandwidthOut: int
|
|
8050
8138
|
:param _Description: 负载均衡描述
|
|
8051
8139
|
:type Description: str
|
|
8052
|
-
:param _SlaType:
|
|
8140
|
+
:param _SlaType: 负载均衡的规格类型,支持clb.c2.medium、clb.c3.small、clb.c3.medium、clb.c4.small、clb.c4.medium、clb.c4.large、clb.c4.xlarge,不传为共享型。
|
|
8053
8141
|
:type SlaType: str
|
|
8054
8142
|
:param _MultiZoneFlag: 负载均衡是否多可用区
|
|
8055
8143
|
:type MultiZoneFlag: bool
|
|
@@ -12316,6 +12404,106 @@ class UpdateEngineInternetAccessResponse(AbstractModel):
|
|
|
12316
12404
|
self._RequestId = params.get("RequestId")
|
|
12317
12405
|
|
|
12318
12406
|
|
|
12407
|
+
class UpdateUpstreamTargetsRequest(AbstractModel):
|
|
12408
|
+
"""UpdateUpstreamTargets请求参数结构体
|
|
12409
|
+
|
|
12410
|
+
"""
|
|
12411
|
+
|
|
12412
|
+
def __init__(self):
|
|
12413
|
+
r"""
|
|
12414
|
+
:param _GatewayId: 网关实例ID
|
|
12415
|
+
:type GatewayId: str
|
|
12416
|
+
:param _Name: 服务名称或ID
|
|
12417
|
+
:type Name: str
|
|
12418
|
+
:param _Targets: 实例列表
|
|
12419
|
+
:type Targets: list of KongTarget
|
|
12420
|
+
"""
|
|
12421
|
+
self._GatewayId = None
|
|
12422
|
+
self._Name = None
|
|
12423
|
+
self._Targets = None
|
|
12424
|
+
|
|
12425
|
+
@property
|
|
12426
|
+
def GatewayId(self):
|
|
12427
|
+
return self._GatewayId
|
|
12428
|
+
|
|
12429
|
+
@GatewayId.setter
|
|
12430
|
+
def GatewayId(self, GatewayId):
|
|
12431
|
+
self._GatewayId = GatewayId
|
|
12432
|
+
|
|
12433
|
+
@property
|
|
12434
|
+
def Name(self):
|
|
12435
|
+
return self._Name
|
|
12436
|
+
|
|
12437
|
+
@Name.setter
|
|
12438
|
+
def Name(self, Name):
|
|
12439
|
+
self._Name = Name
|
|
12440
|
+
|
|
12441
|
+
@property
|
|
12442
|
+
def Targets(self):
|
|
12443
|
+
return self._Targets
|
|
12444
|
+
|
|
12445
|
+
@Targets.setter
|
|
12446
|
+
def Targets(self, Targets):
|
|
12447
|
+
self._Targets = Targets
|
|
12448
|
+
|
|
12449
|
+
|
|
12450
|
+
def _deserialize(self, params):
|
|
12451
|
+
self._GatewayId = params.get("GatewayId")
|
|
12452
|
+
self._Name = params.get("Name")
|
|
12453
|
+
if params.get("Targets") is not None:
|
|
12454
|
+
self._Targets = []
|
|
12455
|
+
for item in params.get("Targets"):
|
|
12456
|
+
obj = KongTarget()
|
|
12457
|
+
obj._deserialize(item)
|
|
12458
|
+
self._Targets.append(obj)
|
|
12459
|
+
memeber_set = set(params.keys())
|
|
12460
|
+
for name, value in vars(self).items():
|
|
12461
|
+
property_name = name[1:]
|
|
12462
|
+
if property_name in memeber_set:
|
|
12463
|
+
memeber_set.remove(property_name)
|
|
12464
|
+
if len(memeber_set) > 0:
|
|
12465
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12466
|
+
|
|
12467
|
+
|
|
12468
|
+
|
|
12469
|
+
class UpdateUpstreamTargetsResponse(AbstractModel):
|
|
12470
|
+
"""UpdateUpstreamTargets返回参数结构体
|
|
12471
|
+
|
|
12472
|
+
"""
|
|
12473
|
+
|
|
12474
|
+
def __init__(self):
|
|
12475
|
+
r"""
|
|
12476
|
+
:param _Result: 是否更新成功
|
|
12477
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12478
|
+
:type Result: bool
|
|
12479
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
12480
|
+
:type RequestId: str
|
|
12481
|
+
"""
|
|
12482
|
+
self._Result = None
|
|
12483
|
+
self._RequestId = None
|
|
12484
|
+
|
|
12485
|
+
@property
|
|
12486
|
+
def Result(self):
|
|
12487
|
+
return self._Result
|
|
12488
|
+
|
|
12489
|
+
@Result.setter
|
|
12490
|
+
def Result(self, Result):
|
|
12491
|
+
self._Result = Result
|
|
12492
|
+
|
|
12493
|
+
@property
|
|
12494
|
+
def RequestId(self):
|
|
12495
|
+
return self._RequestId
|
|
12496
|
+
|
|
12497
|
+
@RequestId.setter
|
|
12498
|
+
def RequestId(self, RequestId):
|
|
12499
|
+
self._RequestId = RequestId
|
|
12500
|
+
|
|
12501
|
+
|
|
12502
|
+
def _deserialize(self, params):
|
|
12503
|
+
self._Result = params.get("Result")
|
|
12504
|
+
self._RequestId = params.get("RequestId")
|
|
12505
|
+
|
|
12506
|
+
|
|
12319
12507
|
class VpcInfo(AbstractModel):
|
|
12320
12508
|
"""私有网络信息
|
|
12321
12509
|
|
|
@@ -1146,6 +1146,29 @@ class TseClient(AbstractClient):
|
|
|
1146
1146
|
model = models.UpdateEngineInternetAccessResponse()
|
|
1147
1147
|
model._deserialize(response["Response"])
|
|
1148
1148
|
return model
|
|
1149
|
+
except Exception as e:
|
|
1150
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1151
|
+
raise
|
|
1152
|
+
else:
|
|
1153
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
def UpdateUpstreamTargets(self, request):
|
|
1157
|
+
"""更新网关上游实例列表,仅支持IPList服务类型
|
|
1158
|
+
|
|
1159
|
+
:param request: Request instance for UpdateUpstreamTargets.
|
|
1160
|
+
:type request: :class:`tencentcloud.tse.v20201207.models.UpdateUpstreamTargetsRequest`
|
|
1161
|
+
:rtype: :class:`tencentcloud.tse.v20201207.models.UpdateUpstreamTargetsResponse`
|
|
1162
|
+
|
|
1163
|
+
"""
|
|
1164
|
+
try:
|
|
1165
|
+
params = request._serialize()
|
|
1166
|
+
headers = request.headers
|
|
1167
|
+
body = self.call("UpdateUpstreamTargets", params, headers=headers)
|
|
1168
|
+
response = json.loads(body)
|
|
1169
|
+
model = models.UpdateUpstreamTargetsResponse()
|
|
1170
|
+
model._deserialize(response["Response"])
|
|
1171
|
+
return model
|
|
1149
1172
|
except Exception as e:
|
|
1150
1173
|
if isinstance(e, TencentCloudSDKException):
|
|
1151
1174
|
raise
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1004
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1001
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|