tencentcloud-sdk-python-hai 3.1.180__tar.gz → 3.1.192__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.180 → tencentcloud_sdk_python_hai-3.1.192}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/setup.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud/hai/v20230812/hai_client.py +2 -2
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud/hai/v20230812/hai_client_async.py +2 -2
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud/hai/v20230812/models.py +49 -4
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_hai-3.1.192/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_hai-3.1.180/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/README.rst +0 -0
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/setup.cfg +0 -0
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud/hai/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud/hai/v20230812/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud/hai/v20230812/errorcodes.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.180 → tencentcloud_sdk_python_hai-3.1.192}/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.192
|
|
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.192
|
|
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.192,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Hai SDK for Python',
|
|
@@ -165,7 +165,7 @@ class HaiClient(AbstractClient):
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
def DescribeDeployTemplates(self, request):
|
|
168
|
-
r"""本接口(DescribeDeployTemplates)
|
|
168
|
+
r"""本接口(DescribeDeployTemplates)用于查询模型支持的部署模板。传入 ServiceId 时按当前服务占用过滤重装候选模板。
|
|
169
169
|
|
|
170
170
|
:param request: Request instance for DescribeDeployTemplates.
|
|
171
171
|
:type request: :class:`tencentcloud.hai.v20230812.models.DescribeDeployTemplatesRequest`
|
|
@@ -234,7 +234,7 @@ class HaiClient(AbstractClient):
|
|
|
234
234
|
|
|
235
235
|
|
|
236
236
|
def DescribeModels(self, request):
|
|
237
|
-
r"""本接口(DescribeModels)
|
|
237
|
+
r"""本接口(DescribeModels)用于查询模型。传入 ServiceId 时按当前服务占用过滤重装候选模型。
|
|
238
238
|
|
|
239
239
|
:param request: Request instance for DescribeModels.
|
|
240
240
|
:type request: :class:`tencentcloud.hai.v20230812.models.DescribeModelsRequest`
|
|
@@ -139,7 +139,7 @@ class HaiClient(AbstractClient):
|
|
|
139
139
|
opts: Dict = None,
|
|
140
140
|
) -> models.DescribeDeployTemplatesResponse:
|
|
141
141
|
"""
|
|
142
|
-
本接口(DescribeDeployTemplates)
|
|
142
|
+
本接口(DescribeDeployTemplates)用于查询模型支持的部署模板。传入 ServiceId 时按当前服务占用过滤重装候选模板。
|
|
143
143
|
"""
|
|
144
144
|
|
|
145
145
|
kwargs = {}
|
|
@@ -193,7 +193,7 @@ class HaiClient(AbstractClient):
|
|
|
193
193
|
opts: Dict = None,
|
|
194
194
|
) -> models.DescribeModelsResponse:
|
|
195
195
|
"""
|
|
196
|
-
本接口(DescribeModels)
|
|
196
|
+
本接口(DescribeModels)用于查询模型。传入 ServiceId 时按当前服务占用过滤重装候选模型。
|
|
197
197
|
"""
|
|
198
198
|
|
|
199
199
|
kwargs = {}
|
|
@@ -322,6 +322,8 @@ class ComputeDetail(AbstractModel):
|
|
|
322
322
|
:type PrepaidEnable: bool
|
|
323
323
|
:param _PostpaidEnable: <p>该套餐是否支持按量计费</p>
|
|
324
324
|
:type PostpaidEnable: bool
|
|
325
|
+
:param _SupportedChargeTypes: <p>该算力套餐支持的计费模式列表:POSTPAID_BY_HOUR(按量)、PREPAID(包年包月)、SPOT(竞价)</p>
|
|
326
|
+
:type SupportedChargeTypes: list of str
|
|
325
327
|
"""
|
|
326
328
|
self._BundleType = None
|
|
327
329
|
self._Count = None
|
|
@@ -332,6 +334,7 @@ class ComputeDetail(AbstractModel):
|
|
|
332
334
|
self._Memory = None
|
|
333
335
|
self._PrepaidEnable = None
|
|
334
336
|
self._PostpaidEnable = None
|
|
337
|
+
self._SupportedChargeTypes = None
|
|
335
338
|
|
|
336
339
|
@property
|
|
337
340
|
def BundleType(self):
|
|
@@ -432,6 +435,17 @@ class ComputeDetail(AbstractModel):
|
|
|
432
435
|
def PostpaidEnable(self, PostpaidEnable):
|
|
433
436
|
self._PostpaidEnable = PostpaidEnable
|
|
434
437
|
|
|
438
|
+
@property
|
|
439
|
+
def SupportedChargeTypes(self):
|
|
440
|
+
r"""<p>该算力套餐支持的计费模式列表:POSTPAID_BY_HOUR(按量)、PREPAID(包年包月)、SPOT(竞价)</p>
|
|
441
|
+
:rtype: list of str
|
|
442
|
+
"""
|
|
443
|
+
return self._SupportedChargeTypes
|
|
444
|
+
|
|
445
|
+
@SupportedChargeTypes.setter
|
|
446
|
+
def SupportedChargeTypes(self, SupportedChargeTypes):
|
|
447
|
+
self._SupportedChargeTypes = SupportedChargeTypes
|
|
448
|
+
|
|
435
449
|
|
|
436
450
|
def _deserialize(self, params):
|
|
437
451
|
self._BundleType = params.get("BundleType")
|
|
@@ -443,6 +457,7 @@ class ComputeDetail(AbstractModel):
|
|
|
443
457
|
self._Memory = params.get("Memory")
|
|
444
458
|
self._PrepaidEnable = params.get("PrepaidEnable")
|
|
445
459
|
self._PostpaidEnable = params.get("PostpaidEnable")
|
|
460
|
+
self._SupportedChargeTypes = params.get("SupportedChargeTypes")
|
|
446
461
|
memeber_set = set(params.keys())
|
|
447
462
|
for name, value in vars(self).items():
|
|
448
463
|
property_name = name[1:]
|
|
@@ -807,7 +822,7 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
807
822
|
:type ServiceName: str
|
|
808
823
|
:param _Replicas: <p>副本数</p>
|
|
809
824
|
:type Replicas: int
|
|
810
|
-
:param _ServiceChargeType: <p
|
|
825
|
+
:param _ServiceChargeType: <p>付费方式:POSTPAID_BY_HOUR 按量后付费,PREPAID_BY_MONTH 包年包月,SPOT 竞价售卖(竞价需先调用 BidSpotInferService 对套餐出价)</p>
|
|
811
826
|
:type ServiceChargeType: str
|
|
812
827
|
:param _HyperParam: <p>描述了服务的超参数配置</p>
|
|
813
828
|
:type HyperParam: :class:`tencentcloud.hai.v20230812.models.HyperParam`
|
|
@@ -862,7 +877,7 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
862
877
|
|
|
863
878
|
@property
|
|
864
879
|
def ServiceChargeType(self):
|
|
865
|
-
r"""<p
|
|
880
|
+
r"""<p>付费方式:POSTPAID_BY_HOUR 按量后付费,PREPAID_BY_MONTH 包年包月,SPOT 竞价售卖(竞价需先调用 BidSpotInferService 对套餐出价)</p>
|
|
866
881
|
:rtype: str
|
|
867
882
|
"""
|
|
868
883
|
return self._ServiceChargeType
|
|
@@ -1582,8 +1597,11 @@ class DescribeDeployTemplatesRequest(AbstractModel):
|
|
|
1582
1597
|
r"""
|
|
1583
1598
|
:param _ModelId: 模型ID
|
|
1584
1599
|
:type ModelId: str
|
|
1600
|
+
:param _ServiceId: 可选。传入当前推理服务 ID 时,仅返回与该服务占用兼容的模板:同一 Scene、卡型家族兼容、机数相等、非机密计算。
|
|
1601
|
+
:type ServiceId: str
|
|
1585
1602
|
"""
|
|
1586
1603
|
self._ModelId = None
|
|
1604
|
+
self._ServiceId = None
|
|
1587
1605
|
|
|
1588
1606
|
@property
|
|
1589
1607
|
def ModelId(self):
|
|
@@ -1596,9 +1614,21 @@ class DescribeDeployTemplatesRequest(AbstractModel):
|
|
|
1596
1614
|
def ModelId(self, ModelId):
|
|
1597
1615
|
self._ModelId = ModelId
|
|
1598
1616
|
|
|
1617
|
+
@property
|
|
1618
|
+
def ServiceId(self):
|
|
1619
|
+
r"""可选。传入当前推理服务 ID 时,仅返回与该服务占用兼容的模板:同一 Scene、卡型家族兼容、机数相等、非机密计算。
|
|
1620
|
+
:rtype: str
|
|
1621
|
+
"""
|
|
1622
|
+
return self._ServiceId
|
|
1623
|
+
|
|
1624
|
+
@ServiceId.setter
|
|
1625
|
+
def ServiceId(self, ServiceId):
|
|
1626
|
+
self._ServiceId = ServiceId
|
|
1627
|
+
|
|
1599
1628
|
|
|
1600
1629
|
def _deserialize(self, params):
|
|
1601
1630
|
self._ModelId = params.get("ModelId")
|
|
1631
|
+
self._ServiceId = params.get("ServiceId")
|
|
1602
1632
|
memeber_set = set(params.keys())
|
|
1603
1633
|
for name, value in vars(self).items():
|
|
1604
1634
|
property_name = name[1:]
|
|
@@ -1939,11 +1969,14 @@ class DescribeModelsRequest(AbstractModel):
|
|
|
1939
1969
|
:type Offset: int
|
|
1940
1970
|
:param _Limit: 返回量,不得大于100,默认为20
|
|
1941
1971
|
:type Limit: int
|
|
1972
|
+
:param _ServiceId: 可选。传入当前推理服务 ID 时,仅返回与该服务同一 Scene、且至少有一条兼容重装模板的模型。自定义部署、机密计算、具身智能服务返回空列表。
|
|
1973
|
+
:type ServiceId: str
|
|
1942
1974
|
"""
|
|
1943
1975
|
self._ModelIds = None
|
|
1944
1976
|
self._Filters = None
|
|
1945
1977
|
self._Offset = None
|
|
1946
1978
|
self._Limit = None
|
|
1979
|
+
self._ServiceId = None
|
|
1947
1980
|
|
|
1948
1981
|
@property
|
|
1949
1982
|
def ModelIds(self):
|
|
@@ -1989,6 +2022,17 @@ class DescribeModelsRequest(AbstractModel):
|
|
|
1989
2022
|
def Limit(self, Limit):
|
|
1990
2023
|
self._Limit = Limit
|
|
1991
2024
|
|
|
2025
|
+
@property
|
|
2026
|
+
def ServiceId(self):
|
|
2027
|
+
r"""可选。传入当前推理服务 ID 时,仅返回与该服务同一 Scene、且至少有一条兼容重装模板的模型。自定义部署、机密计算、具身智能服务返回空列表。
|
|
2028
|
+
:rtype: str
|
|
2029
|
+
"""
|
|
2030
|
+
return self._ServiceId
|
|
2031
|
+
|
|
2032
|
+
@ServiceId.setter
|
|
2033
|
+
def ServiceId(self, ServiceId):
|
|
2034
|
+
self._ServiceId = ServiceId
|
|
2035
|
+
|
|
1992
2036
|
|
|
1993
2037
|
def _deserialize(self, params):
|
|
1994
2038
|
self._ModelIds = params.get("ModelIds")
|
|
@@ -2000,6 +2044,7 @@ class DescribeModelsRequest(AbstractModel):
|
|
|
2000
2044
|
self._Filters.append(obj)
|
|
2001
2045
|
self._Offset = params.get("Offset")
|
|
2002
2046
|
self._Limit = params.get("Limit")
|
|
2047
|
+
self._ServiceId = params.get("ServiceId")
|
|
2003
2048
|
memeber_set = set(params.keys())
|
|
2004
2049
|
for name, value in vars(self).items():
|
|
2005
2050
|
property_name = name[1:]
|
|
@@ -5806,7 +5851,7 @@ class ServiceMetaData(AbstractModel):
|
|
|
5806
5851
|
r"""
|
|
5807
5852
|
:param _ServiceName: 服务名称
|
|
5808
5853
|
:type ServiceName: str
|
|
5809
|
-
:param _ServiceChargeType:
|
|
5854
|
+
:param _ServiceChargeType: <p>付费方式:POSTPAID_BY_HOUR 按量后付费,PREPAID_BY_MONTH 包年包月,SPOT 竞价售卖(竞价需先调用 BidSpotInferService 对套餐出价)</p>
|
|
5810
5855
|
:type ServiceChargeType: str
|
|
5811
5856
|
"""
|
|
5812
5857
|
self._ServiceName = None
|
|
@@ -5825,7 +5870,7 @@ class ServiceMetaData(AbstractModel):
|
|
|
5825
5870
|
|
|
5826
5871
|
@property
|
|
5827
5872
|
def ServiceChargeType(self):
|
|
5828
|
-
r"""
|
|
5873
|
+
r"""<p>付费方式:POSTPAID_BY_HOUR 按量后付费,PREPAID_BY_MONTH 包年包月,SPOT 竞价售卖(竞价需先调用 BidSpotInferService 对套餐出价)</p>
|
|
5829
5874
|
:rtype: str
|
|
5830
5875
|
"""
|
|
5831
5876
|
return self._ServiceChargeType
|
|
@@ -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.192
|
|
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.192
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.192
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.180
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|