tencentcloud-sdk-python-hai 3.1.162__tar.gz → 3.1.179__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/setup.py +1 -1
  3. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud/hai/v20230812/errorcodes.py +15 -0
  5. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud/hai/v20230812/hai_client.py +23 -0
  6. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud/hai/v20230812/hai_client_async.py +18 -0
  7. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud/hai/v20230812/models.py +36 -2
  8. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_hai-3.1.179/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_hai-3.1.162/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/README.rst +0 -0
  12. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud/hai/__init__.py +0 -0
  14. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud/hai/v20230812/__init__.py +0 -0
  15. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_hai-3.1.162 → tencentcloud_sdk_python_hai-3.1.179}/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.162
3
+ Version: 3.1.179
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.162
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.179
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.162,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.179,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Hai SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.162'
17
+ __version__ = '3.1.179'
@@ -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,40 @@ class Filter(AbstractModel):
2837
2837
 
2838
2838
 
2839
2839
 
2840
+ class GetServicePodLogsRequest(AbstractModel):
2841
+ r"""GetServicePodLogs请求参数结构体
2842
+
2843
+ """
2844
+
2845
+
2846
+ class GetServicePodLogsResponse(AbstractModel):
2847
+ r"""GetServicePodLogs返回参数结构体
2848
+
2849
+ """
2850
+
2851
+ def __init__(self):
2852
+ r"""
2853
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2854
+ :type RequestId: str
2855
+ """
2856
+ self._RequestId = None
2857
+
2858
+ @property
2859
+ def RequestId(self):
2860
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2861
+ :rtype: str
2862
+ """
2863
+ return self._RequestId
2864
+
2865
+ @RequestId.setter
2866
+ def RequestId(self, RequestId):
2867
+ self._RequestId = RequestId
2868
+
2869
+
2870
+ def _deserialize(self, params):
2871
+ self._RequestId = params.get("RequestId")
2872
+
2873
+
2840
2874
  class HiCacheInfo(AbstractModel):
2841
2875
  r"""HiCache信息
2842
2876
 
@@ -2931,14 +2965,14 @@ class HyperParam(AbstractModel):
2931
2965
 
2932
2966
  def __init__(self):
2933
2967
  r"""
2934
- :param _HiCache: HiCache缓存
2968
+ :param _HiCache: <p>HiCache缓存</p>
2935
2969
  :type HiCache: :class:`tencentcloud.hai.v20230812.models.HiCacheInfo`
2936
2970
  """
2937
2971
  self._HiCache = None
2938
2972
 
2939
2973
  @property
2940
2974
  def HiCache(self):
2941
- r"""HiCache缓存
2975
+ r"""<p>HiCache缓存</p>
2942
2976
  :rtype: :class:`tencentcloud.hai.v20230812.models.HiCacheInfo`
2943
2977
  """
2944
2978
  return self._HiCache
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-hai
3
- Version: 3.1.162
3
+ Version: 3.1.179
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.162
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.179
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.179
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.162