tencentcloud-sdk-python-hai 3.1.181__tar.gz → 3.1.200__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.181 → tencentcloud_sdk_python_hai-3.1.200}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/setup.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud/hai/v20230812/models.py +195 -4
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_hai-3.1.200/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_hai-3.1.181/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/README.rst +0 -0
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/setup.cfg +0 -0
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud/hai/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud/hai/v20230812/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud/hai/v20230812/errorcodes.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud/hai/v20230812/hai_client.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud/hai/v20230812/hai_client_async.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.181 → tencentcloud_sdk_python_hai-3.1.200}/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.200
|
|
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.200
|
|
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.200,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Hai SDK for Python',
|
|
@@ -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
|
|
@@ -5227,6 +5242,162 @@ class ResizeInstanceDiskResponse(AbstractModel):
|
|
|
5227
5242
|
self._RequestId = params.get("RequestId")
|
|
5228
5243
|
|
|
5229
5244
|
|
|
5245
|
+
class RoleStatusInfo(AbstractModel):
|
|
5246
|
+
r"""角色状态信息
|
|
5247
|
+
|
|
5248
|
+
"""
|
|
5249
|
+
|
|
5250
|
+
def __init__(self):
|
|
5251
|
+
r"""
|
|
5252
|
+
:param _RoleName:
|
|
5253
|
+
:type RoleName: str
|
|
5254
|
+
:param _WorkloadType:
|
|
5255
|
+
:type WorkloadType: str
|
|
5256
|
+
:param _WorkloadName:
|
|
5257
|
+
:type WorkloadName: str
|
|
5258
|
+
:param _RunningReplicas:
|
|
5259
|
+
:type RunningReplicas: int
|
|
5260
|
+
:param _TargetReplicas:
|
|
5261
|
+
:type TargetReplicas: int
|
|
5262
|
+
:param _ContainerCount:
|
|
5263
|
+
:type ContainerCount: int
|
|
5264
|
+
:param _State:
|
|
5265
|
+
:type State: str
|
|
5266
|
+
:param _LastObservedTime:
|
|
5267
|
+
:type LastObservedTime: str
|
|
5268
|
+
:param _Role:
|
|
5269
|
+
:type Role: str
|
|
5270
|
+
"""
|
|
5271
|
+
self._RoleName = None
|
|
5272
|
+
self._WorkloadType = None
|
|
5273
|
+
self._WorkloadName = None
|
|
5274
|
+
self._RunningReplicas = None
|
|
5275
|
+
self._TargetReplicas = None
|
|
5276
|
+
self._ContainerCount = None
|
|
5277
|
+
self._State = None
|
|
5278
|
+
self._LastObservedTime = None
|
|
5279
|
+
self._Role = None
|
|
5280
|
+
|
|
5281
|
+
@property
|
|
5282
|
+
def RoleName(self):
|
|
5283
|
+
r"""
|
|
5284
|
+
:rtype: str
|
|
5285
|
+
"""
|
|
5286
|
+
return self._RoleName
|
|
5287
|
+
|
|
5288
|
+
@RoleName.setter
|
|
5289
|
+
def RoleName(self, RoleName):
|
|
5290
|
+
self._RoleName = RoleName
|
|
5291
|
+
|
|
5292
|
+
@property
|
|
5293
|
+
def WorkloadType(self):
|
|
5294
|
+
r"""
|
|
5295
|
+
:rtype: str
|
|
5296
|
+
"""
|
|
5297
|
+
return self._WorkloadType
|
|
5298
|
+
|
|
5299
|
+
@WorkloadType.setter
|
|
5300
|
+
def WorkloadType(self, WorkloadType):
|
|
5301
|
+
self._WorkloadType = WorkloadType
|
|
5302
|
+
|
|
5303
|
+
@property
|
|
5304
|
+
def WorkloadName(self):
|
|
5305
|
+
r"""
|
|
5306
|
+
:rtype: str
|
|
5307
|
+
"""
|
|
5308
|
+
return self._WorkloadName
|
|
5309
|
+
|
|
5310
|
+
@WorkloadName.setter
|
|
5311
|
+
def WorkloadName(self, WorkloadName):
|
|
5312
|
+
self._WorkloadName = WorkloadName
|
|
5313
|
+
|
|
5314
|
+
@property
|
|
5315
|
+
def RunningReplicas(self):
|
|
5316
|
+
r"""
|
|
5317
|
+
:rtype: int
|
|
5318
|
+
"""
|
|
5319
|
+
return self._RunningReplicas
|
|
5320
|
+
|
|
5321
|
+
@RunningReplicas.setter
|
|
5322
|
+
def RunningReplicas(self, RunningReplicas):
|
|
5323
|
+
self._RunningReplicas = RunningReplicas
|
|
5324
|
+
|
|
5325
|
+
@property
|
|
5326
|
+
def TargetReplicas(self):
|
|
5327
|
+
r"""
|
|
5328
|
+
:rtype: int
|
|
5329
|
+
"""
|
|
5330
|
+
return self._TargetReplicas
|
|
5331
|
+
|
|
5332
|
+
@TargetReplicas.setter
|
|
5333
|
+
def TargetReplicas(self, TargetReplicas):
|
|
5334
|
+
self._TargetReplicas = TargetReplicas
|
|
5335
|
+
|
|
5336
|
+
@property
|
|
5337
|
+
def ContainerCount(self):
|
|
5338
|
+
r"""
|
|
5339
|
+
:rtype: int
|
|
5340
|
+
"""
|
|
5341
|
+
return self._ContainerCount
|
|
5342
|
+
|
|
5343
|
+
@ContainerCount.setter
|
|
5344
|
+
def ContainerCount(self, ContainerCount):
|
|
5345
|
+
self._ContainerCount = ContainerCount
|
|
5346
|
+
|
|
5347
|
+
@property
|
|
5348
|
+
def State(self):
|
|
5349
|
+
r"""
|
|
5350
|
+
:rtype: str
|
|
5351
|
+
"""
|
|
5352
|
+
return self._State
|
|
5353
|
+
|
|
5354
|
+
@State.setter
|
|
5355
|
+
def State(self, State):
|
|
5356
|
+
self._State = State
|
|
5357
|
+
|
|
5358
|
+
@property
|
|
5359
|
+
def LastObservedTime(self):
|
|
5360
|
+
r"""
|
|
5361
|
+
:rtype: str
|
|
5362
|
+
"""
|
|
5363
|
+
return self._LastObservedTime
|
|
5364
|
+
|
|
5365
|
+
@LastObservedTime.setter
|
|
5366
|
+
def LastObservedTime(self, LastObservedTime):
|
|
5367
|
+
self._LastObservedTime = LastObservedTime
|
|
5368
|
+
|
|
5369
|
+
@property
|
|
5370
|
+
def Role(self):
|
|
5371
|
+
r"""
|
|
5372
|
+
:rtype: str
|
|
5373
|
+
"""
|
|
5374
|
+
return self._Role
|
|
5375
|
+
|
|
5376
|
+
@Role.setter
|
|
5377
|
+
def Role(self, Role):
|
|
5378
|
+
self._Role = Role
|
|
5379
|
+
|
|
5380
|
+
|
|
5381
|
+
def _deserialize(self, params):
|
|
5382
|
+
self._RoleName = params.get("RoleName")
|
|
5383
|
+
self._WorkloadType = params.get("WorkloadType")
|
|
5384
|
+
self._WorkloadName = params.get("WorkloadName")
|
|
5385
|
+
self._RunningReplicas = params.get("RunningReplicas")
|
|
5386
|
+
self._TargetReplicas = params.get("TargetReplicas")
|
|
5387
|
+
self._ContainerCount = params.get("ContainerCount")
|
|
5388
|
+
self._State = params.get("State")
|
|
5389
|
+
self._LastObservedTime = params.get("LastObservedTime")
|
|
5390
|
+
self._Role = params.get("Role")
|
|
5391
|
+
memeber_set = set(params.keys())
|
|
5392
|
+
for name, value in vars(self).items():
|
|
5393
|
+
property_name = name[1:]
|
|
5394
|
+
if property_name in memeber_set:
|
|
5395
|
+
memeber_set.remove(property_name)
|
|
5396
|
+
if len(memeber_set) > 0:
|
|
5397
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5398
|
+
|
|
5399
|
+
|
|
5400
|
+
|
|
5230
5401
|
class RunInstancesRequest(AbstractModel):
|
|
5231
5402
|
r"""RunInstances请求参数结构体
|
|
5232
5403
|
|
|
@@ -5546,6 +5717,8 @@ class ServiceDetail(AbstractModel):
|
|
|
5546
5717
|
:type DeploymentConfigs: list of DeploymentConfig
|
|
5547
5718
|
:param _HyperParam: <p>服务超参数配置</p>
|
|
5548
5719
|
:type HyperParam: :class:`tencentcloud.hai.v20230812.models.HyperParam`
|
|
5720
|
+
:param _RoleStatuses: <p>角色状态</p>
|
|
5721
|
+
:type RoleStatuses: list of RoleStatusInfo
|
|
5549
5722
|
:param _SecurityType: <p>安全类型</p>
|
|
5550
5723
|
:type SecurityType: str
|
|
5551
5724
|
:param _RoleComputeSet: <p>角色算力配置列表</p>
|
|
@@ -5573,6 +5746,7 @@ class ServiceDetail(AbstractModel):
|
|
|
5573
5746
|
self._ModelName = None
|
|
5574
5747
|
self._DeploymentConfigs = None
|
|
5575
5748
|
self._HyperParam = None
|
|
5749
|
+
self._RoleStatuses = None
|
|
5576
5750
|
self._SecurityType = None
|
|
5577
5751
|
self._RoleComputeSet = None
|
|
5578
5752
|
self._TargetReplicas = None
|
|
@@ -5692,6 +5866,17 @@ class ServiceDetail(AbstractModel):
|
|
|
5692
5866
|
def HyperParam(self, HyperParam):
|
|
5693
5867
|
self._HyperParam = HyperParam
|
|
5694
5868
|
|
|
5869
|
+
@property
|
|
5870
|
+
def RoleStatuses(self):
|
|
5871
|
+
r"""<p>角色状态</p>
|
|
5872
|
+
:rtype: list of RoleStatusInfo
|
|
5873
|
+
"""
|
|
5874
|
+
return self._RoleStatuses
|
|
5875
|
+
|
|
5876
|
+
@RoleStatuses.setter
|
|
5877
|
+
def RoleStatuses(self, RoleStatuses):
|
|
5878
|
+
self._RoleStatuses = RoleStatuses
|
|
5879
|
+
|
|
5695
5880
|
@property
|
|
5696
5881
|
def SecurityType(self):
|
|
5697
5882
|
r"""<p>安全类型</p>
|
|
@@ -5804,6 +5989,12 @@ class ServiceDetail(AbstractModel):
|
|
|
5804
5989
|
if params.get("HyperParam") is not None:
|
|
5805
5990
|
self._HyperParam = HyperParam()
|
|
5806
5991
|
self._HyperParam._deserialize(params.get("HyperParam"))
|
|
5992
|
+
if params.get("RoleStatuses") is not None:
|
|
5993
|
+
self._RoleStatuses = []
|
|
5994
|
+
for item in params.get("RoleStatuses"):
|
|
5995
|
+
obj = RoleStatusInfo()
|
|
5996
|
+
obj._deserialize(item)
|
|
5997
|
+
self._RoleStatuses.append(obj)
|
|
5807
5998
|
self._SecurityType = params.get("SecurityType")
|
|
5808
5999
|
if params.get("RoleComputeSet") is not None:
|
|
5809
6000
|
self._RoleComputeSet = []
|
|
@@ -5836,7 +6027,7 @@ class ServiceMetaData(AbstractModel):
|
|
|
5836
6027
|
r"""
|
|
5837
6028
|
:param _ServiceName: 服务名称
|
|
5838
6029
|
:type ServiceName: str
|
|
5839
|
-
:param _ServiceChargeType:
|
|
6030
|
+
:param _ServiceChargeType: <p>付费方式:POSTPAID_BY_HOUR 按量后付费,PREPAID_BY_MONTH 包年包月,SPOT 竞价售卖(竞价需先调用 BidSpotInferService 对套餐出价)</p>
|
|
5840
6031
|
:type ServiceChargeType: str
|
|
5841
6032
|
"""
|
|
5842
6033
|
self._ServiceName = None
|
|
@@ -5855,7 +6046,7 @@ class ServiceMetaData(AbstractModel):
|
|
|
5855
6046
|
|
|
5856
6047
|
@property
|
|
5857
6048
|
def ServiceChargeType(self):
|
|
5858
|
-
r"""
|
|
6049
|
+
r"""<p>付费方式:POSTPAID_BY_HOUR 按量后付费,PREPAID_BY_MONTH 包年包月,SPOT 竞价售卖(竞价需先调用 BidSpotInferService 对套餐出价)</p>
|
|
5859
6050
|
:rtype: str
|
|
5860
6051
|
"""
|
|
5861
6052
|
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.200
|
|
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.200
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.200
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.181
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|