tencentcloud-sdk-python-hai 3.1.173__tar.gz → 3.1.180__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_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/setup.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud/hai/v20230812/errorcodes.py +15 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud/hai/v20230812/hai_client.py +23 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud/hai/v20230812/hai_client_async.py +18 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud/hai/v20230812/models.py +109 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_hai-3.1.180/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_hai-3.1.173/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/README.rst +0 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/setup.cfg +0 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud/hai/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud/hai/v20230812/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.173 → tencentcloud_sdk_python_hai-3.1.180}/tencentcloud_sdk_python_hai.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-hai
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.180
|
|
4
4
|
Summary: Tencent Cloud Hai 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.180
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-hai',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.180,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Hai SDK for Python',
|
|
@@ -128,6 +128,15 @@ INVALIDPARAMETERVALUE_INVALIDTEMPLATEIDMALFORMED = 'InvalidParameterValue.Invali
|
|
|
128
128
|
# VpcId不能为空
|
|
129
129
|
INVALIDPARAMETERVALUE_INVALIDVPCIDISNONE = 'InvalidParameterValue.InvalidVpcIdIsNone'
|
|
130
130
|
|
|
131
|
+
# 最大字节数无效
|
|
132
|
+
INVALIDPARAMETERVALUE_LIMITBYTESINVALID = 'InvalidParameterValue.LimitBytesInvalid'
|
|
133
|
+
|
|
134
|
+
# Pod名称无效
|
|
135
|
+
INVALIDPARAMETERVALUE_PODNAMEINVALID = 'InvalidParameterValue.PodNameInvalid'
|
|
136
|
+
|
|
137
|
+
# Pod不存在
|
|
138
|
+
INVALIDPARAMETERVALUE_PODNOTFOUND = 'InvalidParameterValue.PodNotFound'
|
|
139
|
+
|
|
131
140
|
# 地域非法
|
|
132
141
|
INVALIDPARAMETERVALUE_REGIONINVALID = 'InvalidParameterValue.RegionInvalid'
|
|
133
142
|
|
|
@@ -149,6 +158,9 @@ INVALIDPARAMETERVALUE_SUBNETMUSTCOEXISTWITHVPC = 'InvalidParameterValue.SubnetMu
|
|
|
149
158
|
# 无法找到指定的子网,或该子网不属于指定的VPC
|
|
150
159
|
INVALIDPARAMETERVALUE_SUBNETNOTFOUND = 'InvalidParameterValue.SubnetNotFound'
|
|
151
160
|
|
|
161
|
+
# 日志行数无效
|
|
162
|
+
INVALIDPARAMETERVALUE_TAILLINESINVALID = 'InvalidParameterValue.TailLinesInvalid'
|
|
163
|
+
|
|
152
164
|
# 目标副本数不能与运行中副本数相同
|
|
153
165
|
INVALIDPARAMETERVALUE_TARGETREPLICASMUSTDIFFERFROMRUNNINGREPLICAS = 'InvalidParameterValue.TargetReplicasMustDifferFromRunningReplicas'
|
|
154
166
|
|
|
@@ -224,6 +236,9 @@ UNSUPPORTEDOPERATION_INSTANCESTATESTOPPEDNOCHARGE = 'UnsupportedOperation.Instan
|
|
|
224
236
|
# 不支持对处于`Terminated`状态的实例执行当前操作。
|
|
225
237
|
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = 'UnsupportedOperation.InstanceStateTerminated'
|
|
226
238
|
|
|
239
|
+
# 不支持多Deployment场景
|
|
240
|
+
UNSUPPORTEDOPERATION_MULTIDEPLOYMENTNOTSUPPORTED = 'UnsupportedOperation.MultiDeploymentNotSupported'
|
|
241
|
+
|
|
227
242
|
# 不支持同时操作预付费和后付费实例
|
|
228
243
|
UNSUPPORTEDOPERATION_NOTSUPPORTTERMINATEPREPAIDANDPOSTPAID = 'UnsupportedOperation.NotSupportTerminatePrePaidAndPostPaid'
|
|
229
244
|
|
|
@@ -394,6 +394,29 @@ class HaiClient(AbstractClient):
|
|
|
394
394
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
395
395
|
|
|
396
396
|
|
|
397
|
+
def GetServicePodLogs(self, request):
|
|
398
|
+
r"""本接口(GetServicePodLogs)用于查询推理服务Pod日志
|
|
399
|
+
|
|
400
|
+
:param request: Request instance for GetServicePodLogs.
|
|
401
|
+
:type request: :class:`tencentcloud.hai.v20230812.models.GetServicePodLogsRequest`
|
|
402
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.GetServicePodLogsResponse`
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
try:
|
|
406
|
+
params = request._serialize()
|
|
407
|
+
headers = request.headers
|
|
408
|
+
body = self.call("GetServicePodLogs", params, headers=headers)
|
|
409
|
+
response = json.loads(body)
|
|
410
|
+
model = models.GetServicePodLogsResponse()
|
|
411
|
+
model._deserialize(response["Response"])
|
|
412
|
+
return model
|
|
413
|
+
except Exception as e:
|
|
414
|
+
if isinstance(e, TencentCloudSDKException):
|
|
415
|
+
raise
|
|
416
|
+
else:
|
|
417
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
|
+
|
|
419
|
+
|
|
397
420
|
def InquirePriceRunInstances(self, request):
|
|
398
421
|
r"""本接口 (InquirePriceRunInstances) 用于实例询价。
|
|
399
422
|
|
|
@@ -313,6 +313,24 @@ class HaiClient(AbstractClient):
|
|
|
313
313
|
|
|
314
314
|
return await self.call_and_deserialize(**kwargs)
|
|
315
315
|
|
|
316
|
+
async def GetServicePodLogs(
|
|
317
|
+
self,
|
|
318
|
+
request: models.GetServicePodLogsRequest,
|
|
319
|
+
opts: Dict = None,
|
|
320
|
+
) -> models.GetServicePodLogsResponse:
|
|
321
|
+
"""
|
|
322
|
+
本接口(GetServicePodLogs)用于查询推理服务Pod日志
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
kwargs = {}
|
|
326
|
+
kwargs["action"] = "GetServicePodLogs"
|
|
327
|
+
kwargs["params"] = request._serialize()
|
|
328
|
+
kwargs["resp_cls"] = models.GetServicePodLogsResponse
|
|
329
|
+
kwargs["headers"] = request.headers
|
|
330
|
+
kwargs["opts"] = opts or {}
|
|
331
|
+
|
|
332
|
+
return await self.call_and_deserialize(**kwargs)
|
|
333
|
+
|
|
316
334
|
async def InquirePriceRunInstances(
|
|
317
335
|
self,
|
|
318
336
|
request: models.InquirePriceRunInstancesRequest,
|
|
@@ -2837,6 +2837,115 @@ class Filter(AbstractModel):
|
|
|
2837
2837
|
|
|
2838
2838
|
|
|
2839
2839
|
|
|
2840
|
+
class GetServicePodLogsRequest(AbstractModel):
|
|
2841
|
+
r"""GetServicePodLogs请求参数结构体
|
|
2842
|
+
|
|
2843
|
+
"""
|
|
2844
|
+
|
|
2845
|
+
def __init__(self):
|
|
2846
|
+
r"""
|
|
2847
|
+
:param _ServiceId: <p>服务Id</p>
|
|
2848
|
+
:type ServiceId: str
|
|
2849
|
+
:param _PodName: <p>Pod名称</p>
|
|
2850
|
+
:type PodName: str
|
|
2851
|
+
:param _TailLines: <p>日志行数</p>
|
|
2852
|
+
:type TailLines: str
|
|
2853
|
+
"""
|
|
2854
|
+
self._ServiceId = None
|
|
2855
|
+
self._PodName = None
|
|
2856
|
+
self._TailLines = None
|
|
2857
|
+
|
|
2858
|
+
@property
|
|
2859
|
+
def ServiceId(self):
|
|
2860
|
+
r"""<p>服务Id</p>
|
|
2861
|
+
:rtype: str
|
|
2862
|
+
"""
|
|
2863
|
+
return self._ServiceId
|
|
2864
|
+
|
|
2865
|
+
@ServiceId.setter
|
|
2866
|
+
def ServiceId(self, ServiceId):
|
|
2867
|
+
self._ServiceId = ServiceId
|
|
2868
|
+
|
|
2869
|
+
@property
|
|
2870
|
+
def PodName(self):
|
|
2871
|
+
r"""<p>Pod名称</p>
|
|
2872
|
+
:rtype: str
|
|
2873
|
+
"""
|
|
2874
|
+
return self._PodName
|
|
2875
|
+
|
|
2876
|
+
@PodName.setter
|
|
2877
|
+
def PodName(self, PodName):
|
|
2878
|
+
self._PodName = PodName
|
|
2879
|
+
|
|
2880
|
+
@property
|
|
2881
|
+
def TailLines(self):
|
|
2882
|
+
r"""<p>日志行数</p>
|
|
2883
|
+
:rtype: str
|
|
2884
|
+
"""
|
|
2885
|
+
return self._TailLines
|
|
2886
|
+
|
|
2887
|
+
@TailLines.setter
|
|
2888
|
+
def TailLines(self, TailLines):
|
|
2889
|
+
self._TailLines = TailLines
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
def _deserialize(self, params):
|
|
2893
|
+
self._ServiceId = params.get("ServiceId")
|
|
2894
|
+
self._PodName = params.get("PodName")
|
|
2895
|
+
self._TailLines = params.get("TailLines")
|
|
2896
|
+
memeber_set = set(params.keys())
|
|
2897
|
+
for name, value in vars(self).items():
|
|
2898
|
+
property_name = name[1:]
|
|
2899
|
+
if property_name in memeber_set:
|
|
2900
|
+
memeber_set.remove(property_name)
|
|
2901
|
+
if len(memeber_set) > 0:
|
|
2902
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2903
|
+
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
class GetServicePodLogsResponse(AbstractModel):
|
|
2907
|
+
r"""GetServicePodLogs返回参数结构体
|
|
2908
|
+
|
|
2909
|
+
"""
|
|
2910
|
+
|
|
2911
|
+
def __init__(self):
|
|
2912
|
+
r"""
|
|
2913
|
+
:param _LogLines: <p>日志内容</p>
|
|
2914
|
+
:type LogLines: list of str
|
|
2915
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2916
|
+
:type RequestId: str
|
|
2917
|
+
"""
|
|
2918
|
+
self._LogLines = None
|
|
2919
|
+
self._RequestId = None
|
|
2920
|
+
|
|
2921
|
+
@property
|
|
2922
|
+
def LogLines(self):
|
|
2923
|
+
r"""<p>日志内容</p>
|
|
2924
|
+
:rtype: list of str
|
|
2925
|
+
"""
|
|
2926
|
+
return self._LogLines
|
|
2927
|
+
|
|
2928
|
+
@LogLines.setter
|
|
2929
|
+
def LogLines(self, LogLines):
|
|
2930
|
+
self._LogLines = LogLines
|
|
2931
|
+
|
|
2932
|
+
@property
|
|
2933
|
+
def RequestId(self):
|
|
2934
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2935
|
+
:rtype: str
|
|
2936
|
+
"""
|
|
2937
|
+
return self._RequestId
|
|
2938
|
+
|
|
2939
|
+
@RequestId.setter
|
|
2940
|
+
def RequestId(self, RequestId):
|
|
2941
|
+
self._RequestId = RequestId
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
def _deserialize(self, params):
|
|
2945
|
+
self._LogLines = params.get("LogLines")
|
|
2946
|
+
self._RequestId = params.get("RequestId")
|
|
2947
|
+
|
|
2948
|
+
|
|
2840
2949
|
class HiCacheInfo(AbstractModel):
|
|
2841
2950
|
r"""HiCache信息
|
|
2842
2951
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-hai
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.180
|
|
4
4
|
Summary: Tencent Cloud Hai 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.180
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.180
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.173
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|