tencentcloud-sdk-python-lighthouse 3.0.1443__tar.gz → 3.0.1454__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-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/setup.py +1 -1
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud/lighthouse/v20200324/errorcodes.py +24 -0
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud/lighthouse/v20200324/lighthouse_client.py +171 -0
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud/lighthouse/v20200324/models.py +1113 -52
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud_sdk_python_lighthouse.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-lighthouse-3.0.1454/tencentcloud_sdk_python_lighthouse.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-lighthouse-3.0.1443/tencentcloud_sdk_python_lighthouse.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/README.rst +0 -0
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/setup.cfg +0 -0
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud/lighthouse/__init__.py +0 -0
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud/lighthouse/v20200324/__init__.py +0 -0
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud_sdk_python_lighthouse.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud_sdk_python_lighthouse.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/tencentcloud_sdk_python_lighthouse.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-lighthouse-3.0.1443 → tencentcloud-sdk-python-lighthouse-3.0.1454}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-lighthouse',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1454,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Lighthouse SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -110,6 +110,9 @@ FAILEDOPERATION_INVALIDCOMMANDNOTFOUND = 'FailedOperation.InvalidCommandNotFound
|
|
|
110
110
|
# 退还资源失败。
|
|
111
111
|
FAILEDOPERATION_ISOLATERESOURCESFAILED = 'FailedOperation.IsolateResourcesFailed'
|
|
112
112
|
|
|
113
|
+
# MCP Server操作失败
|
|
114
|
+
FAILEDOPERATION_MCPSERVEROPERATIONFAILED = 'FailedOperation.McpServerOperationFailed'
|
|
115
|
+
|
|
113
116
|
# 变更实例套餐失败。
|
|
114
117
|
FAILEDOPERATION_MODIFYINSTANCESBUNDLEFAILED = 'FailedOperation.ModifyInstancesBundleFailed'
|
|
115
118
|
|
|
@@ -428,6 +431,15 @@ INVALIDPARAMETERVALUE_LENGTH = 'InvalidParameterValue.Length'
|
|
|
428
431
|
# 参数值非法,参数值的数量超过最大限制。
|
|
429
432
|
INVALIDPARAMETERVALUE_LIMITEXCEEDED = 'InvalidParameterValue.LimitExceeded'
|
|
430
433
|
|
|
434
|
+
# 环境变量无效
|
|
435
|
+
INVALIDPARAMETERVALUE_MCPSERVERENVINVALID = 'InvalidParameterValue.McpServerEnvInvalid'
|
|
436
|
+
|
|
437
|
+
# MCP Server数量超过限制
|
|
438
|
+
INVALIDPARAMETERVALUE_MCPSERVERLIMITEXCEEDED = 'InvalidParameterValue.McpServerLimitExceeded'
|
|
439
|
+
|
|
440
|
+
# MCPServer列表过大
|
|
441
|
+
INVALIDPARAMETERVALUE_MCPSERVERLISTTOOLARGE = 'InvalidParameterValue.McpServerListTooLarge'
|
|
442
|
+
|
|
431
443
|
# 参数值非法,不能为负值。
|
|
432
444
|
INVALIDPARAMETERVALUE_NEGATIVE = 'InvalidParameterValue.Negative'
|
|
433
445
|
|
|
@@ -644,6 +656,12 @@ RESOURCENOTFOUND_KEYIDNOTFOUND = 'ResourceNotFound.KeyIdNotFound'
|
|
|
644
656
|
# 密钥对不存在。
|
|
645
657
|
RESOURCENOTFOUND_KEYPAIRNOTFOUND = 'ResourceNotFound.KeyPairNotFound'
|
|
646
658
|
|
|
659
|
+
# MCP Server不存在
|
|
660
|
+
RESOURCENOTFOUND_MCPSERVERNOTFOUND = 'ResourceNotFound.McpServerNotFound'
|
|
661
|
+
|
|
662
|
+
# 部分MCP Servers未找到,请检查
|
|
663
|
+
RESOURCENOTFOUND_MCPSERVERSPARTIALNOTFOUND = 'ResourceNotFound.McpServersPartialNotFound'
|
|
664
|
+
|
|
647
665
|
# 自定义镜像不存在。
|
|
648
666
|
RESOURCENOTFOUND_PRIVATEBLUEPRINTNOTFOUND = 'ResourceNotFound.PrivateBlueprintNotFound'
|
|
649
667
|
|
|
@@ -827,6 +845,9 @@ UNSUPPORTEDOPERATION_KEYPAIRNOTBOUNDTOINSTANCE = 'UnsupportedOperation.KeyPairNo
|
|
|
827
845
|
# 不支持的操作,实例最近一次的操作尚未完成。
|
|
828
846
|
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = 'UnsupportedOperation.LatestOperationUnfinished'
|
|
829
847
|
|
|
848
|
+
# 不支持的操作,MCP Server最近一次的操作尚未完成
|
|
849
|
+
UNSUPPORTEDOPERATION_MCPSERVERLATESTOPERATIONUNFINISHED = 'UnsupportedOperation.McpServerLatestOperationUnfinished'
|
|
850
|
+
|
|
830
851
|
# 共享镜像不支持此操作。
|
|
831
852
|
UNSUPPORTEDOPERATION_NOTSUPPORTSHAREDBLUEPRINT = 'UnsupportedOperation.NotSupportSharedBlueprint'
|
|
832
853
|
|
|
@@ -848,6 +869,9 @@ UNSUPPORTEDOPERATION_RESOURCENOTRETURNABLE = 'UnsupportedOperation.ResourceNotRe
|
|
|
848
869
|
# 资源变配操作中新旧配置一样,不支持此操作。
|
|
849
870
|
UNSUPPORTEDOPERATION_SAMEWITHOLDCONFIG = 'UnsupportedOperation.SameWithOldConfig'
|
|
850
871
|
|
|
872
|
+
# 相关服务角色不存在,无法调用此接口。
|
|
873
|
+
UNSUPPORTEDOPERATION_SERVICEROLENOTEXIST = 'UnsupportedOperation.ServiceRoleNotExist'
|
|
874
|
+
|
|
851
875
|
# 快照忙。
|
|
852
876
|
UNSUPPORTEDOPERATION_SNAPSHOTBUSY = 'UnsupportedOperation.SnapshotBusy'
|
|
853
877
|
|
|
@@ -422,6 +422,30 @@ class LighthouseClient(AbstractClient):
|
|
|
422
422
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
423
423
|
|
|
424
424
|
|
|
425
|
+
def CreateMcpServer(self, request):
|
|
426
|
+
"""本接口(CreateMcpServer)用于创建MCP Server。
|
|
427
|
+
- 本接口为异步接口,请求发送成功后会返回一个 McpServerId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeMcpServers 接口查询。
|
|
428
|
+
|
|
429
|
+
:param request: Request instance for CreateMcpServer.
|
|
430
|
+
:type request: :class:`tencentcloud.lighthouse.v20200324.models.CreateMcpServerRequest`
|
|
431
|
+
:rtype: :class:`tencentcloud.lighthouse.v20200324.models.CreateMcpServerResponse`
|
|
432
|
+
|
|
433
|
+
"""
|
|
434
|
+
try:
|
|
435
|
+
params = request._serialize()
|
|
436
|
+
headers = request.headers
|
|
437
|
+
body = self.call("CreateMcpServer", params, headers=headers)
|
|
438
|
+
response = json.loads(body)
|
|
439
|
+
model = models.CreateMcpServerResponse()
|
|
440
|
+
model._deserialize(response["Response"])
|
|
441
|
+
return model
|
|
442
|
+
except Exception as e:
|
|
443
|
+
if isinstance(e, TencentCloudSDKException):
|
|
444
|
+
raise
|
|
445
|
+
else:
|
|
446
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
447
|
+
|
|
448
|
+
|
|
425
449
|
def DeleteBlueprints(self, request):
|
|
426
450
|
"""本接口 (DeleteBlueprints) 用于删除镜像。可删除的镜像应满足如下条件:
|
|
427
451
|
1、删除镜像接口需要镜像状态为NORMAL(正常)、ISOLATED(已隔离)、CREATEFAILED(创建失败)、SYNCING_FAILED(目的地域同步失败),其他状态下的镜像不支持删除操作。镜像状态,可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值中的BlueprintState获取。
|
|
@@ -1373,6 +1397,29 @@ class LighthouseClient(AbstractClient):
|
|
|
1373
1397
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1374
1398
|
|
|
1375
1399
|
|
|
1400
|
+
def DescribeMcpServers(self, request):
|
|
1401
|
+
"""本接口(DescribeMcpServers)用于查询MCP Server列表。
|
|
1402
|
+
|
|
1403
|
+
:param request: Request instance for DescribeMcpServers.
|
|
1404
|
+
:type request: :class:`tencentcloud.lighthouse.v20200324.models.DescribeMcpServersRequest`
|
|
1405
|
+
:rtype: :class:`tencentcloud.lighthouse.v20200324.models.DescribeMcpServersResponse`
|
|
1406
|
+
|
|
1407
|
+
"""
|
|
1408
|
+
try:
|
|
1409
|
+
params = request._serialize()
|
|
1410
|
+
headers = request.headers
|
|
1411
|
+
body = self.call("DescribeMcpServers", params, headers=headers)
|
|
1412
|
+
response = json.loads(body)
|
|
1413
|
+
model = models.DescribeMcpServersResponse()
|
|
1414
|
+
model._deserialize(response["Response"])
|
|
1415
|
+
return model
|
|
1416
|
+
except Exception as e:
|
|
1417
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1418
|
+
raise
|
|
1419
|
+
else:
|
|
1420
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1421
|
+
|
|
1422
|
+
|
|
1376
1423
|
def DescribeModifyInstanceBundles(self, request):
|
|
1377
1424
|
"""本接口(DescribeModifyInstanceBundles)用于查询实例可变更套餐列表。
|
|
1378
1425
|
|
|
@@ -2151,6 +2198,30 @@ class LighthouseClient(AbstractClient):
|
|
|
2151
2198
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2152
2199
|
|
|
2153
2200
|
|
|
2201
|
+
def ModifyMcpServer(self, request):
|
|
2202
|
+
"""本接口(ModifyMcpServer)用于修改实例的MCP Server信息。
|
|
2203
|
+
- 本接口为异步接口,API返回时修改操作并未立即完成。MCP Server的修改结果可以通过调用 DescribeMcpServers 接口查询。
|
|
2204
|
+
|
|
2205
|
+
:param request: Request instance for ModifyMcpServer.
|
|
2206
|
+
:type request: :class:`tencentcloud.lighthouse.v20200324.models.ModifyMcpServerRequest`
|
|
2207
|
+
:rtype: :class:`tencentcloud.lighthouse.v20200324.models.ModifyMcpServerResponse`
|
|
2208
|
+
|
|
2209
|
+
"""
|
|
2210
|
+
try:
|
|
2211
|
+
params = request._serialize()
|
|
2212
|
+
headers = request.headers
|
|
2213
|
+
body = self.call("ModifyMcpServer", params, headers=headers)
|
|
2214
|
+
response = json.loads(body)
|
|
2215
|
+
model = models.ModifyMcpServerResponse()
|
|
2216
|
+
model._deserialize(response["Response"])
|
|
2217
|
+
return model
|
|
2218
|
+
except Exception as e:
|
|
2219
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2220
|
+
raise
|
|
2221
|
+
else:
|
|
2222
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2223
|
+
|
|
2224
|
+
|
|
2154
2225
|
def ModifySnapshotAttribute(self, request):
|
|
2155
2226
|
"""本接口(ModifySnapshotAttribute)用于修改指定快照的属性。
|
|
2156
2227
|
<li>“快照名称”仅为方便用户自己管理之用。</li>
|
|
@@ -2226,6 +2297,31 @@ class LighthouseClient(AbstractClient):
|
|
|
2226
2297
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2227
2298
|
|
|
2228
2299
|
|
|
2300
|
+
def RemoveMcpServers(self, request):
|
|
2301
|
+
"""本接口(RemoveMcpServers)用于删除MCP Server。
|
|
2302
|
+
- 本接口为异步接口,API返回时操作并未立即完成。MCP Server的操作结果可以通过调用 DescribeMcpServers 接口查询。
|
|
2303
|
+
- 本接口在操作多个MCP Server时,不会因为某一个失败而停止。您需要通过调用 DescribeMcpServers 接口查询最终操作结果,如无法查询到,代表删除成功。
|
|
2304
|
+
|
|
2305
|
+
:param request: Request instance for RemoveMcpServers.
|
|
2306
|
+
:type request: :class:`tencentcloud.lighthouse.v20200324.models.RemoveMcpServersRequest`
|
|
2307
|
+
:rtype: :class:`tencentcloud.lighthouse.v20200324.models.RemoveMcpServersResponse`
|
|
2308
|
+
|
|
2309
|
+
"""
|
|
2310
|
+
try:
|
|
2311
|
+
params = request._serialize()
|
|
2312
|
+
headers = request.headers
|
|
2313
|
+
body = self.call("RemoveMcpServers", params, headers=headers)
|
|
2314
|
+
response = json.loads(body)
|
|
2315
|
+
model = models.RemoveMcpServersResponse()
|
|
2316
|
+
model._deserialize(response["Response"])
|
|
2317
|
+
return model
|
|
2318
|
+
except Exception as e:
|
|
2319
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2320
|
+
raise
|
|
2321
|
+
else:
|
|
2322
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2323
|
+
|
|
2324
|
+
|
|
2229
2325
|
def RenameDockerContainer(self, request):
|
|
2230
2326
|
"""重命名实例内的Docker容器,之后可以通过返回的ActivityId调用[DescribeDockerActivities](https://cloud.tencent.com/document/product/1207/95476)接口查询重命名情况。
|
|
2231
2327
|
|
|
@@ -2498,6 +2594,31 @@ class LighthouseClient(AbstractClient):
|
|
|
2498
2594
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2499
2595
|
|
|
2500
2596
|
|
|
2597
|
+
def RestartMcpServers(self, request):
|
|
2598
|
+
"""本接口(RestartMcpServers)用于重启实例中的MCP Server。
|
|
2599
|
+
- 本接口为异步接口,API返回时操作并未立即完成。MCP Server的操作结果可以通过调用 DescribeMcpServers 接口查询。
|
|
2600
|
+
- 本接口在操作多个MCP Server时,不会因为某一个失败而停止。您需要通过调用 DescribeMcpServers 接口查询最终操作结果。
|
|
2601
|
+
|
|
2602
|
+
:param request: Request instance for RestartMcpServers.
|
|
2603
|
+
:type request: :class:`tencentcloud.lighthouse.v20200324.models.RestartMcpServersRequest`
|
|
2604
|
+
:rtype: :class:`tencentcloud.lighthouse.v20200324.models.RestartMcpServersResponse`
|
|
2605
|
+
|
|
2606
|
+
"""
|
|
2607
|
+
try:
|
|
2608
|
+
params = request._serialize()
|
|
2609
|
+
headers = request.headers
|
|
2610
|
+
body = self.call("RestartMcpServers", params, headers=headers)
|
|
2611
|
+
response = json.loads(body)
|
|
2612
|
+
model = models.RestartMcpServersResponse()
|
|
2613
|
+
model._deserialize(response["Response"])
|
|
2614
|
+
return model
|
|
2615
|
+
except Exception as e:
|
|
2616
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2617
|
+
raise
|
|
2618
|
+
else:
|
|
2619
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2620
|
+
|
|
2621
|
+
|
|
2501
2622
|
def RunDockerContainers(self, request):
|
|
2502
2623
|
"""创建并运行多个Docker容器,之后可以通过返回的ActivityIds调用<a href="https://cloud.tencent.com/document/product/1207/95476" target="_blank">DescribeDockerActivities</a>接口查询创建情况。
|
|
2503
2624
|
|
|
@@ -2597,6 +2718,31 @@ class LighthouseClient(AbstractClient):
|
|
|
2597
2718
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2598
2719
|
|
|
2599
2720
|
|
|
2721
|
+
def StartMcpServers(self, request):
|
|
2722
|
+
"""本接口(StartMcpServers)用于开启实例中的MCP Server。
|
|
2723
|
+
- 本接口为异步接口,API返回时操作并未立即完成。MCP Server的操作结果可以通过调用 DescribeMcpServers 接口查询。
|
|
2724
|
+
- 本接口在操作多个MCP Server时,不会因为某一个失败而停止。您需要通过调用 DescribeMcpServers 接口查询最终操作结果。
|
|
2725
|
+
|
|
2726
|
+
:param request: Request instance for StartMcpServers.
|
|
2727
|
+
:type request: :class:`tencentcloud.lighthouse.v20200324.models.StartMcpServersRequest`
|
|
2728
|
+
:rtype: :class:`tencentcloud.lighthouse.v20200324.models.StartMcpServersResponse`
|
|
2729
|
+
|
|
2730
|
+
"""
|
|
2731
|
+
try:
|
|
2732
|
+
params = request._serialize()
|
|
2733
|
+
headers = request.headers
|
|
2734
|
+
body = self.call("StartMcpServers", params, headers=headers)
|
|
2735
|
+
response = json.loads(body)
|
|
2736
|
+
model = models.StartMcpServersResponse()
|
|
2737
|
+
model._deserialize(response["Response"])
|
|
2738
|
+
return model
|
|
2739
|
+
except Exception as e:
|
|
2740
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2741
|
+
raise
|
|
2742
|
+
else:
|
|
2743
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2744
|
+
|
|
2745
|
+
|
|
2600
2746
|
def StopDockerContainers(self, request):
|
|
2601
2747
|
"""停止实例内的Docker容器,之后可以通过返回的ActivityId调用[DescribeDockerActivities](https://cloud.tencent.com/document/product/1207/95476)接口查询停止情况。
|
|
2602
2748
|
|
|
@@ -2647,6 +2793,31 @@ class LighthouseClient(AbstractClient):
|
|
|
2647
2793
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2648
2794
|
|
|
2649
2795
|
|
|
2796
|
+
def StopMcpServers(self, request):
|
|
2797
|
+
"""本接口(StopMcpServers)用于关闭实例中的MCP Server。
|
|
2798
|
+
- 本接口为异步接口,API返回时操作并未立即完成。MCP Server的操作结果可以通过调用 DescribeMcpServers 接口查询。
|
|
2799
|
+
- 本接口在操作多个MCP Server时,不会因为某一个失败而停止。您需要通过调用 DescribeMcpServers 接口查询最终操作结果。
|
|
2800
|
+
|
|
2801
|
+
:param request: Request instance for StopMcpServers.
|
|
2802
|
+
:type request: :class:`tencentcloud.lighthouse.v20200324.models.StopMcpServersRequest`
|
|
2803
|
+
:rtype: :class:`tencentcloud.lighthouse.v20200324.models.StopMcpServersResponse`
|
|
2804
|
+
|
|
2805
|
+
"""
|
|
2806
|
+
try:
|
|
2807
|
+
params = request._serialize()
|
|
2808
|
+
headers = request.headers
|
|
2809
|
+
body = self.call("StopMcpServers", params, headers=headers)
|
|
2810
|
+
response = json.loads(body)
|
|
2811
|
+
model = models.StopMcpServersResponse()
|
|
2812
|
+
model._deserialize(response["Response"])
|
|
2813
|
+
return model
|
|
2814
|
+
except Exception as e:
|
|
2815
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2816
|
+
raise
|
|
2817
|
+
else:
|
|
2818
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2819
|
+
|
|
2820
|
+
|
|
2650
2821
|
def SyncBlueprint(self, request):
|
|
2651
2822
|
"""本接口 (SyncBlueprint) 用于将自定义镜像同步到其它地域。
|
|
2652
2823
|
|