tencentcloud-sdk-python-hai 3.1.121__tar.gz → 3.1.156__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.121 → tencentcloud_sdk_python_hai-3.1.156}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/setup.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud/hai/v20230812/errorcodes.py +3 -0
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud/hai/v20230812/models.py +233 -28
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_hai-3.1.156/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_hai-3.1.121/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/README.rst +0 -0
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/setup.cfg +0 -0
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud/hai/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud/hai/v20230812/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud/hai/v20230812/hai_client.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud/hai/v20230812/hai_client_async.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.121 → tencentcloud_sdk_python_hai-3.1.156}/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.156
|
|
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.156
|
|
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.156,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Hai SDK for Python',
|
|
@@ -20,6 +20,9 @@ FAILEDOPERATION = 'FailedOperation'
|
|
|
20
20
|
# 欠费账户不能创建实例
|
|
21
21
|
FAILEDOPERATION_ARREARSACCOUNTCANNOTRUNINSTANCES = 'FailedOperation.ArrearsAccountCannotRunInstances'
|
|
22
22
|
|
|
23
|
+
# 该服务已开启自动扩缩容功能,请先关闭自动扩缩容,再手动调整副本数。
|
|
24
|
+
FAILEDOPERATION_AUTOSCALEMANUALCONFLICT = 'FailedOperation.AutoscaleManualConflict'
|
|
25
|
+
|
|
23
26
|
# 资源不允许退还
|
|
24
27
|
FAILEDOPERATION_CANNOTRETURN = 'FailedOperation.CannotReturn'
|
|
25
28
|
|
|
@@ -318,6 +318,10 @@ class ComputeDetail(AbstractModel):
|
|
|
318
318
|
:type CPU: str
|
|
319
319
|
:param _Memory: 内存
|
|
320
320
|
:type Memory: str
|
|
321
|
+
:param _PrepaidEnable: 该套餐是否支持包年包月
|
|
322
|
+
:type PrepaidEnable: bool
|
|
323
|
+
:param _PostpaidEnable: 该套餐是否支持按量计费
|
|
324
|
+
:type PostpaidEnable: bool
|
|
321
325
|
"""
|
|
322
326
|
self._BundleType = None
|
|
323
327
|
self._Count = None
|
|
@@ -326,6 +330,8 @@ class ComputeDetail(AbstractModel):
|
|
|
326
330
|
self._GPUPerformance = None
|
|
327
331
|
self._CPU = None
|
|
328
332
|
self._Memory = None
|
|
333
|
+
self._PrepaidEnable = None
|
|
334
|
+
self._PostpaidEnable = None
|
|
329
335
|
|
|
330
336
|
@property
|
|
331
337
|
def BundleType(self):
|
|
@@ -404,6 +410,28 @@ class ComputeDetail(AbstractModel):
|
|
|
404
410
|
def Memory(self, Memory):
|
|
405
411
|
self._Memory = Memory
|
|
406
412
|
|
|
413
|
+
@property
|
|
414
|
+
def PrepaidEnable(self):
|
|
415
|
+
r"""该套餐是否支持包年包月
|
|
416
|
+
:rtype: bool
|
|
417
|
+
"""
|
|
418
|
+
return self._PrepaidEnable
|
|
419
|
+
|
|
420
|
+
@PrepaidEnable.setter
|
|
421
|
+
def PrepaidEnable(self, PrepaidEnable):
|
|
422
|
+
self._PrepaidEnable = PrepaidEnable
|
|
423
|
+
|
|
424
|
+
@property
|
|
425
|
+
def PostpaidEnable(self):
|
|
426
|
+
r"""该套餐是否支持按量计费
|
|
427
|
+
:rtype: bool
|
|
428
|
+
"""
|
|
429
|
+
return self._PostpaidEnable
|
|
430
|
+
|
|
431
|
+
@PostpaidEnable.setter
|
|
432
|
+
def PostpaidEnable(self, PostpaidEnable):
|
|
433
|
+
self._PostpaidEnable = PostpaidEnable
|
|
434
|
+
|
|
407
435
|
|
|
408
436
|
def _deserialize(self, params):
|
|
409
437
|
self._BundleType = params.get("BundleType")
|
|
@@ -413,6 +441,8 @@ class ComputeDetail(AbstractModel):
|
|
|
413
441
|
self._GPUPerformance = params.get("GPUPerformance")
|
|
414
442
|
self._CPU = params.get("CPU")
|
|
415
443
|
self._Memory = params.get("Memory")
|
|
444
|
+
self._PrepaidEnable = params.get("PrepaidEnable")
|
|
445
|
+
self._PostpaidEnable = params.get("PostpaidEnable")
|
|
416
446
|
memeber_set = set(params.keys())
|
|
417
447
|
for name, value in vars(self).items():
|
|
418
448
|
property_name = name[1:]
|
|
@@ -785,6 +815,8 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
785
815
|
:type NetworkSetting: :class:`tencentcloud.hai.v20230812.models.NetworkSetting`
|
|
786
816
|
:param _SecurityType: <p>推理服务安全类型</p><p>枚举值:</p><ul><li>STANDARD: 标准推理服务</li><li>CONFIDENTIAL: 可信推理服务</li></ul>
|
|
787
817
|
:type SecurityType: str
|
|
818
|
+
:param _ServiceChargePrepaid: <p>包年包月参数(ServiceChargeType为包月时必填)</p>
|
|
819
|
+
:type ServiceChargePrepaid: :class:`tencentcloud.hai.v20230812.models.ServiceChargePrepaid`
|
|
788
820
|
"""
|
|
789
821
|
self._TemplateId = None
|
|
790
822
|
self._ServiceName = None
|
|
@@ -793,6 +825,7 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
793
825
|
self._HyperParam = None
|
|
794
826
|
self._NetworkSetting = None
|
|
795
827
|
self._SecurityType = None
|
|
828
|
+
self._ServiceChargePrepaid = None
|
|
796
829
|
|
|
797
830
|
@property
|
|
798
831
|
def TemplateId(self):
|
|
@@ -871,6 +904,17 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
871
904
|
def SecurityType(self, SecurityType):
|
|
872
905
|
self._SecurityType = SecurityType
|
|
873
906
|
|
|
907
|
+
@property
|
|
908
|
+
def ServiceChargePrepaid(self):
|
|
909
|
+
r"""<p>包年包月参数(ServiceChargeType为包月时必填)</p>
|
|
910
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.ServiceChargePrepaid`
|
|
911
|
+
"""
|
|
912
|
+
return self._ServiceChargePrepaid
|
|
913
|
+
|
|
914
|
+
@ServiceChargePrepaid.setter
|
|
915
|
+
def ServiceChargePrepaid(self, ServiceChargePrepaid):
|
|
916
|
+
self._ServiceChargePrepaid = ServiceChargePrepaid
|
|
917
|
+
|
|
874
918
|
|
|
875
919
|
def _deserialize(self, params):
|
|
876
920
|
self._TemplateId = params.get("TemplateId")
|
|
@@ -884,6 +928,9 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
884
928
|
self._NetworkSetting = NetworkSetting()
|
|
885
929
|
self._NetworkSetting._deserialize(params.get("NetworkSetting"))
|
|
886
930
|
self._SecurityType = params.get("SecurityType")
|
|
931
|
+
if params.get("ServiceChargePrepaid") is not None:
|
|
932
|
+
self._ServiceChargePrepaid = ServiceChargePrepaid()
|
|
933
|
+
self._ServiceChargePrepaid._deserialize(params.get("ServiceChargePrepaid"))
|
|
887
934
|
memeber_set = set(params.keys())
|
|
888
935
|
for name, value in vars(self).items():
|
|
889
936
|
property_name = name[1:]
|
|
@@ -1053,14 +1100,14 @@ class DeleteServiceRequest(AbstractModel):
|
|
|
1053
1100
|
|
|
1054
1101
|
def __init__(self):
|
|
1055
1102
|
r"""
|
|
1056
|
-
:param _ServiceId:
|
|
1103
|
+
:param _ServiceId: <p>服务ID</p>
|
|
1057
1104
|
:type ServiceId: str
|
|
1058
1105
|
"""
|
|
1059
1106
|
self._ServiceId = None
|
|
1060
1107
|
|
|
1061
1108
|
@property
|
|
1062
1109
|
def ServiceId(self):
|
|
1063
|
-
r"""
|
|
1110
|
+
r"""<p>服务ID</p>
|
|
1064
1111
|
:rtype: str
|
|
1065
1112
|
"""
|
|
1066
1113
|
return self._ServiceId
|
|
@@ -1129,6 +1176,8 @@ class DeployInferServiceRequest(AbstractModel):
|
|
|
1129
1176
|
:type NetworkSetting: :class:`tencentcloud.hai.v20230812.models.NetworkSetting`
|
|
1130
1177
|
:param _SecurityType: <p>安全类型</p><p>枚举值:</p><ul><li>STANDARD: 标准推理</li><li>CONFIDENTIAL: 可信推理</li></ul>
|
|
1131
1178
|
:type SecurityType: str
|
|
1179
|
+
:param _ServiceChargePrepaid: <p>包年包月参数(包月时必填)</p>
|
|
1180
|
+
:type ServiceChargePrepaid: :class:`tencentcloud.hai.v20230812.models.ServiceChargePrepaid`
|
|
1132
1181
|
"""
|
|
1133
1182
|
self._ServiceMetaData = None
|
|
1134
1183
|
self._ComputeInfo = None
|
|
@@ -1136,6 +1185,7 @@ class DeployInferServiceRequest(AbstractModel):
|
|
|
1136
1185
|
self._HyperParam = None
|
|
1137
1186
|
self._NetworkSetting = None
|
|
1138
1187
|
self._SecurityType = None
|
|
1188
|
+
self._ServiceChargePrepaid = None
|
|
1139
1189
|
|
|
1140
1190
|
@property
|
|
1141
1191
|
def ServiceMetaData(self):
|
|
@@ -1203,6 +1253,17 @@ class DeployInferServiceRequest(AbstractModel):
|
|
|
1203
1253
|
def SecurityType(self, SecurityType):
|
|
1204
1254
|
self._SecurityType = SecurityType
|
|
1205
1255
|
|
|
1256
|
+
@property
|
|
1257
|
+
def ServiceChargePrepaid(self):
|
|
1258
|
+
r"""<p>包年包月参数(包月时必填)</p>
|
|
1259
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.ServiceChargePrepaid`
|
|
1260
|
+
"""
|
|
1261
|
+
return self._ServiceChargePrepaid
|
|
1262
|
+
|
|
1263
|
+
@ServiceChargePrepaid.setter
|
|
1264
|
+
def ServiceChargePrepaid(self, ServiceChargePrepaid):
|
|
1265
|
+
self._ServiceChargePrepaid = ServiceChargePrepaid
|
|
1266
|
+
|
|
1206
1267
|
|
|
1207
1268
|
def _deserialize(self, params):
|
|
1208
1269
|
if params.get("ServiceMetaData") is not None:
|
|
@@ -1224,6 +1285,9 @@ class DeployInferServiceRequest(AbstractModel):
|
|
|
1224
1285
|
self._NetworkSetting = NetworkSetting()
|
|
1225
1286
|
self._NetworkSetting._deserialize(params.get("NetworkSetting"))
|
|
1226
1287
|
self._SecurityType = params.get("SecurityType")
|
|
1288
|
+
if params.get("ServiceChargePrepaid") is not None:
|
|
1289
|
+
self._ServiceChargePrepaid = ServiceChargePrepaid()
|
|
1290
|
+
self._ServiceChargePrepaid._deserialize(params.get("ServiceChargePrepaid"))
|
|
1227
1291
|
memeber_set = set(params.keys())
|
|
1228
1292
|
for name, value in vars(self).items():
|
|
1229
1293
|
property_name = name[1:]
|
|
@@ -5235,6 +5299,72 @@ class SceneInfo(AbstractModel):
|
|
|
5235
5299
|
|
|
5236
5300
|
|
|
5237
5301
|
|
|
5302
|
+
class ServiceChargePrepaid(AbstractModel):
|
|
5303
|
+
r"""服务级包年包月入参
|
|
5304
|
+
|
|
5305
|
+
"""
|
|
5306
|
+
|
|
5307
|
+
def __init__(self):
|
|
5308
|
+
r"""
|
|
5309
|
+
:param _Period: <p>购买时长,默认1</p>
|
|
5310
|
+
:type Period: int
|
|
5311
|
+
:param _TimeUnit: <p>时长单位:MONTH(月)/DAY(天)</p>
|
|
5312
|
+
:type TimeUnit: str
|
|
5313
|
+
:param _RenewFlag: <p>自动续费:NOTIFY_AND_AUTO_RENEW/NOTIFY_AND_MANUAL_RENEW/DISABLE_NOTIFY_AND_MANUAL_RENEW</p>
|
|
5314
|
+
:type RenewFlag: str
|
|
5315
|
+
"""
|
|
5316
|
+
self._Period = None
|
|
5317
|
+
self._TimeUnit = None
|
|
5318
|
+
self._RenewFlag = None
|
|
5319
|
+
|
|
5320
|
+
@property
|
|
5321
|
+
def Period(self):
|
|
5322
|
+
r"""<p>购买时长,默认1</p>
|
|
5323
|
+
:rtype: int
|
|
5324
|
+
"""
|
|
5325
|
+
return self._Period
|
|
5326
|
+
|
|
5327
|
+
@Period.setter
|
|
5328
|
+
def Period(self, Period):
|
|
5329
|
+
self._Period = Period
|
|
5330
|
+
|
|
5331
|
+
@property
|
|
5332
|
+
def TimeUnit(self):
|
|
5333
|
+
r"""<p>时长单位:MONTH(月)/DAY(天)</p>
|
|
5334
|
+
:rtype: str
|
|
5335
|
+
"""
|
|
5336
|
+
return self._TimeUnit
|
|
5337
|
+
|
|
5338
|
+
@TimeUnit.setter
|
|
5339
|
+
def TimeUnit(self, TimeUnit):
|
|
5340
|
+
self._TimeUnit = TimeUnit
|
|
5341
|
+
|
|
5342
|
+
@property
|
|
5343
|
+
def RenewFlag(self):
|
|
5344
|
+
r"""<p>自动续费:NOTIFY_AND_AUTO_RENEW/NOTIFY_AND_MANUAL_RENEW/DISABLE_NOTIFY_AND_MANUAL_RENEW</p>
|
|
5345
|
+
:rtype: str
|
|
5346
|
+
"""
|
|
5347
|
+
return self._RenewFlag
|
|
5348
|
+
|
|
5349
|
+
@RenewFlag.setter
|
|
5350
|
+
def RenewFlag(self, RenewFlag):
|
|
5351
|
+
self._RenewFlag = RenewFlag
|
|
5352
|
+
|
|
5353
|
+
|
|
5354
|
+
def _deserialize(self, params):
|
|
5355
|
+
self._Period = params.get("Period")
|
|
5356
|
+
self._TimeUnit = params.get("TimeUnit")
|
|
5357
|
+
self._RenewFlag = params.get("RenewFlag")
|
|
5358
|
+
memeber_set = set(params.keys())
|
|
5359
|
+
for name, value in vars(self).items():
|
|
5360
|
+
property_name = name[1:]
|
|
5361
|
+
if property_name in memeber_set:
|
|
5362
|
+
memeber_set.remove(property_name)
|
|
5363
|
+
if len(memeber_set) > 0:
|
|
5364
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5365
|
+
|
|
5366
|
+
|
|
5367
|
+
|
|
5238
5368
|
class ServiceDetail(AbstractModel):
|
|
5239
5369
|
r"""服务详情
|
|
5240
5370
|
|
|
@@ -5242,32 +5372,42 @@ class ServiceDetail(AbstractModel):
|
|
|
5242
5372
|
|
|
5243
5373
|
def __init__(self):
|
|
5244
5374
|
r"""
|
|
5245
|
-
:param _ServiceId:
|
|
5375
|
+
:param _ServiceId: <p>服务id</p>
|
|
5246
5376
|
:type ServiceId: str
|
|
5247
|
-
:param _ServiceName:
|
|
5377
|
+
:param _ServiceName: <p>服务名称</p>
|
|
5248
5378
|
:type ServiceName: str
|
|
5249
|
-
:param _ServiceState:
|
|
5379
|
+
:param _ServiceState: <p>服务状态</p>
|
|
5250
5380
|
:type ServiceState: str
|
|
5251
|
-
:param _RunningReplicas:
|
|
5381
|
+
:param _RunningReplicas: <p>运行中的副本数</p>
|
|
5252
5382
|
:type RunningReplicas: int
|
|
5253
|
-
:param _TotalReplicas:
|
|
5383
|
+
:param _TotalReplicas: <p>期望的副本总数</p>
|
|
5254
5384
|
:type TotalReplicas: int
|
|
5255
|
-
:param _CreateTime:
|
|
5385
|
+
:param _CreateTime: <p>创建时间</p>
|
|
5256
5386
|
:type CreateTime: str
|
|
5257
|
-
:param _ComputeSet:
|
|
5387
|
+
:param _ComputeSet: <p>算力套餐详情</p>
|
|
5258
5388
|
:type ComputeSet: list of ComputeDetail
|
|
5259
|
-
:param _ModelName:
|
|
5389
|
+
:param _ModelName: <p>模型名称</p>
|
|
5260
5390
|
:type ModelName: str
|
|
5261
|
-
:param _DeploymentConfigs:
|
|
5391
|
+
:param _DeploymentConfigs: <p>服务部署信息</p>
|
|
5262
5392
|
:type DeploymentConfigs: list of DeploymentConfig
|
|
5263
|
-
:param _HyperParam:
|
|
5393
|
+
:param _HyperParam: <p>服务超参数配置</p>
|
|
5264
5394
|
:type HyperParam: :class:`tencentcloud.hai.v20230812.models.HyperParam`
|
|
5265
|
-
:param _SecurityType:
|
|
5395
|
+
:param _SecurityType: <p>安全类型</p>
|
|
5266
5396
|
:type SecurityType: str
|
|
5267
|
-
:param _RoleComputeSet:
|
|
5397
|
+
:param _RoleComputeSet: <p>角色算力配置列表</p>
|
|
5268
5398
|
:type RoleComputeSet: list of ComputeDetail
|
|
5269
|
-
:param _TargetReplicas:
|
|
5399
|
+
:param _TargetReplicas: <p>目标副本数</p>
|
|
5270
5400
|
:type TargetReplicas: int
|
|
5401
|
+
:param _ChargeType: <p>计费类型:POSTPAID_BY_HOUR(按量)/PREPAID_BY_MONTH(包月)</p>
|
|
5402
|
+
:type ChargeType: str
|
|
5403
|
+
:param _ExpireTime: <p>到期时间(包月),按量为空</p>
|
|
5404
|
+
:type ExpireTime: str
|
|
5405
|
+
:param _RenewFlag: <p>自动续费标识(包月)</p>
|
|
5406
|
+
:type RenewFlag: str
|
|
5407
|
+
:param _RestrictState: <p>受限状态(如欠费隔离)</p>
|
|
5408
|
+
:type RestrictState: str
|
|
5409
|
+
:param _IsCustomDeploy: <p>是否自定义部署:1是 0否</p>
|
|
5410
|
+
:type IsCustomDeploy: int
|
|
5271
5411
|
"""
|
|
5272
5412
|
self._ServiceId = None
|
|
5273
5413
|
self._ServiceName = None
|
|
@@ -5282,10 +5422,15 @@ class ServiceDetail(AbstractModel):
|
|
|
5282
5422
|
self._SecurityType = None
|
|
5283
5423
|
self._RoleComputeSet = None
|
|
5284
5424
|
self._TargetReplicas = None
|
|
5425
|
+
self._ChargeType = None
|
|
5426
|
+
self._ExpireTime = None
|
|
5427
|
+
self._RenewFlag = None
|
|
5428
|
+
self._RestrictState = None
|
|
5429
|
+
self._IsCustomDeploy = None
|
|
5285
5430
|
|
|
5286
5431
|
@property
|
|
5287
5432
|
def ServiceId(self):
|
|
5288
|
-
r"""
|
|
5433
|
+
r"""<p>服务id</p>
|
|
5289
5434
|
:rtype: str
|
|
5290
5435
|
"""
|
|
5291
5436
|
return self._ServiceId
|
|
@@ -5296,7 +5441,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5296
5441
|
|
|
5297
5442
|
@property
|
|
5298
5443
|
def ServiceName(self):
|
|
5299
|
-
r"""
|
|
5444
|
+
r"""<p>服务名称</p>
|
|
5300
5445
|
:rtype: str
|
|
5301
5446
|
"""
|
|
5302
5447
|
return self._ServiceName
|
|
@@ -5307,7 +5452,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5307
5452
|
|
|
5308
5453
|
@property
|
|
5309
5454
|
def ServiceState(self):
|
|
5310
|
-
r"""
|
|
5455
|
+
r"""<p>服务状态</p>
|
|
5311
5456
|
:rtype: str
|
|
5312
5457
|
"""
|
|
5313
5458
|
return self._ServiceState
|
|
@@ -5318,7 +5463,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5318
5463
|
|
|
5319
5464
|
@property
|
|
5320
5465
|
def RunningReplicas(self):
|
|
5321
|
-
r"""
|
|
5466
|
+
r"""<p>运行中的副本数</p>
|
|
5322
5467
|
:rtype: int
|
|
5323
5468
|
"""
|
|
5324
5469
|
return self._RunningReplicas
|
|
@@ -5329,7 +5474,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5329
5474
|
|
|
5330
5475
|
@property
|
|
5331
5476
|
def TotalReplicas(self):
|
|
5332
|
-
r"""
|
|
5477
|
+
r"""<p>期望的副本总数</p>
|
|
5333
5478
|
:rtype: int
|
|
5334
5479
|
"""
|
|
5335
5480
|
return self._TotalReplicas
|
|
@@ -5340,7 +5485,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5340
5485
|
|
|
5341
5486
|
@property
|
|
5342
5487
|
def CreateTime(self):
|
|
5343
|
-
r"""
|
|
5488
|
+
r"""<p>创建时间</p>
|
|
5344
5489
|
:rtype: str
|
|
5345
5490
|
"""
|
|
5346
5491
|
return self._CreateTime
|
|
@@ -5351,7 +5496,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5351
5496
|
|
|
5352
5497
|
@property
|
|
5353
5498
|
def ComputeSet(self):
|
|
5354
|
-
r"""
|
|
5499
|
+
r"""<p>算力套餐详情</p>
|
|
5355
5500
|
:rtype: list of ComputeDetail
|
|
5356
5501
|
"""
|
|
5357
5502
|
return self._ComputeSet
|
|
@@ -5362,7 +5507,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5362
5507
|
|
|
5363
5508
|
@property
|
|
5364
5509
|
def ModelName(self):
|
|
5365
|
-
r"""
|
|
5510
|
+
r"""<p>模型名称</p>
|
|
5366
5511
|
:rtype: str
|
|
5367
5512
|
"""
|
|
5368
5513
|
return self._ModelName
|
|
@@ -5373,7 +5518,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5373
5518
|
|
|
5374
5519
|
@property
|
|
5375
5520
|
def DeploymentConfigs(self):
|
|
5376
|
-
r"""
|
|
5521
|
+
r"""<p>服务部署信息</p>
|
|
5377
5522
|
:rtype: list of DeploymentConfig
|
|
5378
5523
|
"""
|
|
5379
5524
|
return self._DeploymentConfigs
|
|
@@ -5384,7 +5529,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5384
5529
|
|
|
5385
5530
|
@property
|
|
5386
5531
|
def HyperParam(self):
|
|
5387
|
-
r"""
|
|
5532
|
+
r"""<p>服务超参数配置</p>
|
|
5388
5533
|
:rtype: :class:`tencentcloud.hai.v20230812.models.HyperParam`
|
|
5389
5534
|
"""
|
|
5390
5535
|
return self._HyperParam
|
|
@@ -5395,7 +5540,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5395
5540
|
|
|
5396
5541
|
@property
|
|
5397
5542
|
def SecurityType(self):
|
|
5398
|
-
r"""
|
|
5543
|
+
r"""<p>安全类型</p>
|
|
5399
5544
|
:rtype: str
|
|
5400
5545
|
"""
|
|
5401
5546
|
return self._SecurityType
|
|
@@ -5406,7 +5551,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5406
5551
|
|
|
5407
5552
|
@property
|
|
5408
5553
|
def RoleComputeSet(self):
|
|
5409
|
-
r"""
|
|
5554
|
+
r"""<p>角色算力配置列表</p>
|
|
5410
5555
|
:rtype: list of ComputeDetail
|
|
5411
5556
|
"""
|
|
5412
5557
|
return self._RoleComputeSet
|
|
@@ -5417,7 +5562,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5417
5562
|
|
|
5418
5563
|
@property
|
|
5419
5564
|
def TargetReplicas(self):
|
|
5420
|
-
r"""
|
|
5565
|
+
r"""<p>目标副本数</p>
|
|
5421
5566
|
:rtype: int
|
|
5422
5567
|
"""
|
|
5423
5568
|
return self._TargetReplicas
|
|
@@ -5426,6 +5571,61 @@ class ServiceDetail(AbstractModel):
|
|
|
5426
5571
|
def TargetReplicas(self, TargetReplicas):
|
|
5427
5572
|
self._TargetReplicas = TargetReplicas
|
|
5428
5573
|
|
|
5574
|
+
@property
|
|
5575
|
+
def ChargeType(self):
|
|
5576
|
+
r"""<p>计费类型:POSTPAID_BY_HOUR(按量)/PREPAID_BY_MONTH(包月)</p>
|
|
5577
|
+
:rtype: str
|
|
5578
|
+
"""
|
|
5579
|
+
return self._ChargeType
|
|
5580
|
+
|
|
5581
|
+
@ChargeType.setter
|
|
5582
|
+
def ChargeType(self, ChargeType):
|
|
5583
|
+
self._ChargeType = ChargeType
|
|
5584
|
+
|
|
5585
|
+
@property
|
|
5586
|
+
def ExpireTime(self):
|
|
5587
|
+
r"""<p>到期时间(包月),按量为空</p>
|
|
5588
|
+
:rtype: str
|
|
5589
|
+
"""
|
|
5590
|
+
return self._ExpireTime
|
|
5591
|
+
|
|
5592
|
+
@ExpireTime.setter
|
|
5593
|
+
def ExpireTime(self, ExpireTime):
|
|
5594
|
+
self._ExpireTime = ExpireTime
|
|
5595
|
+
|
|
5596
|
+
@property
|
|
5597
|
+
def RenewFlag(self):
|
|
5598
|
+
r"""<p>自动续费标识(包月)</p>
|
|
5599
|
+
:rtype: str
|
|
5600
|
+
"""
|
|
5601
|
+
return self._RenewFlag
|
|
5602
|
+
|
|
5603
|
+
@RenewFlag.setter
|
|
5604
|
+
def RenewFlag(self, RenewFlag):
|
|
5605
|
+
self._RenewFlag = RenewFlag
|
|
5606
|
+
|
|
5607
|
+
@property
|
|
5608
|
+
def RestrictState(self):
|
|
5609
|
+
r"""<p>受限状态(如欠费隔离)</p>
|
|
5610
|
+
:rtype: str
|
|
5611
|
+
"""
|
|
5612
|
+
return self._RestrictState
|
|
5613
|
+
|
|
5614
|
+
@RestrictState.setter
|
|
5615
|
+
def RestrictState(self, RestrictState):
|
|
5616
|
+
self._RestrictState = RestrictState
|
|
5617
|
+
|
|
5618
|
+
@property
|
|
5619
|
+
def IsCustomDeploy(self):
|
|
5620
|
+
r"""<p>是否自定义部署:1是 0否</p>
|
|
5621
|
+
:rtype: int
|
|
5622
|
+
"""
|
|
5623
|
+
return self._IsCustomDeploy
|
|
5624
|
+
|
|
5625
|
+
@IsCustomDeploy.setter
|
|
5626
|
+
def IsCustomDeploy(self, IsCustomDeploy):
|
|
5627
|
+
self._IsCustomDeploy = IsCustomDeploy
|
|
5628
|
+
|
|
5429
5629
|
|
|
5430
5630
|
def _deserialize(self, params):
|
|
5431
5631
|
self._ServiceId = params.get("ServiceId")
|
|
@@ -5458,6 +5658,11 @@ class ServiceDetail(AbstractModel):
|
|
|
5458
5658
|
obj._deserialize(item)
|
|
5459
5659
|
self._RoleComputeSet.append(obj)
|
|
5460
5660
|
self._TargetReplicas = params.get("TargetReplicas")
|
|
5661
|
+
self._ChargeType = params.get("ChargeType")
|
|
5662
|
+
self._ExpireTime = params.get("ExpireTime")
|
|
5663
|
+
self._RenewFlag = params.get("RenewFlag")
|
|
5664
|
+
self._RestrictState = params.get("RestrictState")
|
|
5665
|
+
self._IsCustomDeploy = params.get("IsCustomDeploy")
|
|
5461
5666
|
memeber_set = set(params.keys())
|
|
5462
5667
|
for name, value in vars(self).items():
|
|
5463
5668
|
property_name = name[1:]
|
|
@@ -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.156
|
|
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.156
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.156
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.121
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|