tencentcloud-sdk-python-hai 3.1.60__tar.gz → 3.1.74__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.60 → tencentcloud_sdk_python_hai-3.1.74}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/setup.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud/hai/v20230812/errorcodes.py +12 -0
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud/hai/v20230812/hai_client.py +46 -0
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud/hai/v20230812/hai_client_async.py +36 -0
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud/hai/v20230812/models.py +536 -24
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_hai-3.1.74/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_hai-3.1.60/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/README.rst +0 -0
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/setup.cfg +0 -0
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud/hai/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud/hai/v20230812/__init__.py +0 -0
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_hai-3.1.60 → tencentcloud_sdk_python_hai-3.1.74}/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.74
|
|
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.74
|
|
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.74,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Hai SDK for Python',
|
|
@@ -83,6 +83,9 @@ INVALIDPARAMETERVALUE_INVALIDCHARGETYPE = 'InvalidParameterValue.InvalidChargeTy
|
|
|
83
83
|
# 付费方式与时间单位不匹配
|
|
84
84
|
INVALIDPARAMETERVALUE_INVALIDCHARGETYPEANDTIMEUNIT = 'InvalidParameterValue.InvalidChargeTypeAndTimeUnit'
|
|
85
85
|
|
|
86
|
+
# 集群ID格式不正确
|
|
87
|
+
INVALIDPARAMETERVALUE_INVALIDCLUSTERIDMALFORMED = 'InvalidParameterValue.InvalidClusterIdMalformed'
|
|
88
|
+
|
|
86
89
|
# 每次购买的实例数目不在合理范围内
|
|
87
90
|
INVALIDPARAMETERVALUE_INVALIDINSTANCECOUNT = 'InvalidParameterValue.InvalidInstanceCount'
|
|
88
91
|
|
|
@@ -113,6 +116,9 @@ INVALIDPARAMETERVALUE_INVALIDSUBNETIDISNONE = 'InvalidParameterValue.InvalidSubn
|
|
|
113
116
|
# 子网ID格式错误
|
|
114
117
|
INVALIDPARAMETERVALUE_INVALIDSUBNETIDMALFORMED = 'InvalidParameterValue.InvalidSubnetIdMalformed'
|
|
115
118
|
|
|
119
|
+
# 模版ID格式不正确
|
|
120
|
+
INVALIDPARAMETERVALUE_INVALIDTEMPLATEIDMALFORMED = 'InvalidParameterValue.InvalidTemplateIdMalformed'
|
|
121
|
+
|
|
116
122
|
# VpcId不能为空
|
|
117
123
|
INVALIDPARAMETERVALUE_INVALIDVPCIDISNONE = 'InvalidParameterValue.InvalidVpcIdIsNone'
|
|
118
124
|
|
|
@@ -182,6 +188,12 @@ UNAUTHORIZEDOPERATION_UNAUTHORIZEDSTSOPERATION = 'UnauthorizedOperation.Unauthor
|
|
|
182
188
|
# 客户未授权使用本产品
|
|
183
189
|
UNAUTHORIZEDOPERATION_UNAUTHORIZEDUSER = 'UnauthorizedOperation.UnauthorizedUser'
|
|
184
190
|
|
|
191
|
+
# 用户未绑定具身智能帐号
|
|
192
|
+
UNAUTHORIZEDOPERATION_USERNOTBOUNDEMBODIEDINTELLIGENCEACCOUNT = 'UnauthorizedOperation.UserNotBoundEmbodiedIntelligenceAccount'
|
|
193
|
+
|
|
194
|
+
# 操作不支持。
|
|
195
|
+
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
196
|
+
|
|
185
197
|
# 不允许同时操作预付费过期实例和未过期实例
|
|
186
198
|
UNSUPPORTEDOPERATION_CANNOTTERMINATEEXPIREDANDNOTEXPIREDINSTANCES = 'UnsupportedOperation.CannotTerminateExpiredAndNotExpiredInstances'
|
|
187
199
|
|
|
@@ -95,6 +95,29 @@ class HaiClient(AbstractClient):
|
|
|
95
95
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
96
|
|
|
97
97
|
|
|
98
|
+
def DeleteService(self, request):
|
|
99
|
+
r"""本接口 (DeleteService) 用于删除一个指定配置的实例。
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for DeleteService.
|
|
102
|
+
:type request: :class:`tencentcloud.hai.v20230812.models.DeleteServiceRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.DeleteServiceResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("DeleteService", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.DeleteServiceResponse()
|
|
112
|
+
model._deserialize(response["Response"])
|
|
113
|
+
return model
|
|
114
|
+
except Exception as e:
|
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
|
116
|
+
raise
|
|
117
|
+
else:
|
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
|
+
|
|
120
|
+
|
|
98
121
|
def DeployInferService(self, request):
|
|
99
122
|
r"""本接口(DeployInferService)用于部署推理服务
|
|
100
123
|
|
|
@@ -348,6 +371,29 @@ class HaiClient(AbstractClient):
|
|
|
348
371
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
372
|
|
|
350
373
|
|
|
374
|
+
def DescribeServicesCallInfo(self, request):
|
|
375
|
+
r"""本接口 (DescribeServciesCallInfo) 用于查询服务调用信息。
|
|
376
|
+
|
|
377
|
+
:param request: Request instance for DescribeServicesCallInfo.
|
|
378
|
+
:type request: :class:`tencentcloud.hai.v20230812.models.DescribeServicesCallInfoRequest`
|
|
379
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.DescribeServicesCallInfoResponse`
|
|
380
|
+
|
|
381
|
+
"""
|
|
382
|
+
try:
|
|
383
|
+
params = request._serialize()
|
|
384
|
+
headers = request.headers
|
|
385
|
+
body = self.call("DescribeServicesCallInfo", params, headers=headers)
|
|
386
|
+
response = json.loads(body)
|
|
387
|
+
model = models.DescribeServicesCallInfoResponse()
|
|
388
|
+
model._deserialize(response["Response"])
|
|
389
|
+
return model
|
|
390
|
+
except Exception as e:
|
|
391
|
+
if isinstance(e, TencentCloudSDKException):
|
|
392
|
+
raise
|
|
393
|
+
else:
|
|
394
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
395
|
+
|
|
396
|
+
|
|
351
397
|
def InquirePriceRunInstances(self, request):
|
|
352
398
|
r"""本接口 (InquirePriceRunInstances) 用于实例询价。
|
|
353
399
|
|
|
@@ -79,6 +79,24 @@ class HaiClient(AbstractClient):
|
|
|
79
79
|
|
|
80
80
|
return await self.call_and_deserialize(**kwargs)
|
|
81
81
|
|
|
82
|
+
async def DeleteService(
|
|
83
|
+
self,
|
|
84
|
+
request: models.DeleteServiceRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.DeleteServiceResponse:
|
|
87
|
+
"""
|
|
88
|
+
本接口 (DeleteService) 用于删除一个指定配置的实例。
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "DeleteService"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.DeleteServiceResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
82
100
|
async def DeployInferService(
|
|
83
101
|
self,
|
|
84
102
|
request: models.DeployInferServiceRequest,
|
|
@@ -277,6 +295,24 @@ class HaiClient(AbstractClient):
|
|
|
277
295
|
|
|
278
296
|
return await self.call_and_deserialize(**kwargs)
|
|
279
297
|
|
|
298
|
+
async def DescribeServicesCallInfo(
|
|
299
|
+
self,
|
|
300
|
+
request: models.DescribeServicesCallInfoRequest,
|
|
301
|
+
opts: Dict = None,
|
|
302
|
+
) -> models.DescribeServicesCallInfoResponse:
|
|
303
|
+
"""
|
|
304
|
+
本接口 (DescribeServciesCallInfo) 用于查询服务调用信息。
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
kwargs = {}
|
|
308
|
+
kwargs["action"] = "DescribeServicesCallInfo"
|
|
309
|
+
kwargs["params"] = request._serialize()
|
|
310
|
+
kwargs["resp_cls"] = models.DescribeServicesCallInfoResponse
|
|
311
|
+
kwargs["headers"] = request.headers
|
|
312
|
+
kwargs["opts"] = opts or {}
|
|
313
|
+
|
|
314
|
+
return await self.call_and_deserialize(**kwargs)
|
|
315
|
+
|
|
280
316
|
async def InquirePriceRunInstances(
|
|
281
317
|
self,
|
|
282
318
|
request: models.InquirePriceRunInstancesRequest,
|
|
@@ -216,6 +216,87 @@ class COSStorage(AbstractModel):
|
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
|
|
219
|
+
class CallInfo(AbstractModel):
|
|
220
|
+
r"""服务调用信息
|
|
221
|
+
|
|
222
|
+
"""
|
|
223
|
+
|
|
224
|
+
def __init__(self):
|
|
225
|
+
r"""
|
|
226
|
+
:param _ServiceId: 服务ID
|
|
227
|
+
:type ServiceId: str
|
|
228
|
+
:param _PublicEndpoint: 服务调用地址
|
|
229
|
+
:type PublicEndpoint: str
|
|
230
|
+
:param _ApiKey: 服务调用的API_KEY
|
|
231
|
+
:type ApiKey: str
|
|
232
|
+
:param _VpcEndpoint: 内网调用地址
|
|
233
|
+
:type VpcEndpoint: str
|
|
234
|
+
"""
|
|
235
|
+
self._ServiceId = None
|
|
236
|
+
self._PublicEndpoint = None
|
|
237
|
+
self._ApiKey = None
|
|
238
|
+
self._VpcEndpoint = None
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def ServiceId(self):
|
|
242
|
+
r"""服务ID
|
|
243
|
+
:rtype: str
|
|
244
|
+
"""
|
|
245
|
+
return self._ServiceId
|
|
246
|
+
|
|
247
|
+
@ServiceId.setter
|
|
248
|
+
def ServiceId(self, ServiceId):
|
|
249
|
+
self._ServiceId = ServiceId
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
def PublicEndpoint(self):
|
|
253
|
+
r"""服务调用地址
|
|
254
|
+
:rtype: str
|
|
255
|
+
"""
|
|
256
|
+
return self._PublicEndpoint
|
|
257
|
+
|
|
258
|
+
@PublicEndpoint.setter
|
|
259
|
+
def PublicEndpoint(self, PublicEndpoint):
|
|
260
|
+
self._PublicEndpoint = PublicEndpoint
|
|
261
|
+
|
|
262
|
+
@property
|
|
263
|
+
def ApiKey(self):
|
|
264
|
+
r"""服务调用的API_KEY
|
|
265
|
+
:rtype: str
|
|
266
|
+
"""
|
|
267
|
+
return self._ApiKey
|
|
268
|
+
|
|
269
|
+
@ApiKey.setter
|
|
270
|
+
def ApiKey(self, ApiKey):
|
|
271
|
+
self._ApiKey = ApiKey
|
|
272
|
+
|
|
273
|
+
@property
|
|
274
|
+
def VpcEndpoint(self):
|
|
275
|
+
r"""内网调用地址
|
|
276
|
+
:rtype: str
|
|
277
|
+
"""
|
|
278
|
+
return self._VpcEndpoint
|
|
279
|
+
|
|
280
|
+
@VpcEndpoint.setter
|
|
281
|
+
def VpcEndpoint(self, VpcEndpoint):
|
|
282
|
+
self._VpcEndpoint = VpcEndpoint
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
def _deserialize(self, params):
|
|
286
|
+
self._ServiceId = params.get("ServiceId")
|
|
287
|
+
self._PublicEndpoint = params.get("PublicEndpoint")
|
|
288
|
+
self._ApiKey = params.get("ApiKey")
|
|
289
|
+
self._VpcEndpoint = params.get("VpcEndpoint")
|
|
290
|
+
memeber_set = set(params.keys())
|
|
291
|
+
for name, value in vars(self).items():
|
|
292
|
+
property_name = name[1:]
|
|
293
|
+
if property_name in memeber_set:
|
|
294
|
+
memeber_set.remove(property_name)
|
|
295
|
+
if len(memeber_set) > 0:
|
|
296
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
219
300
|
class ComputeDetail(AbstractModel):
|
|
220
301
|
r"""算力详情
|
|
221
302
|
|
|
@@ -456,26 +537,29 @@ class ContainerInfo(AbstractModel):
|
|
|
456
537
|
|
|
457
538
|
def __init__(self):
|
|
458
539
|
r"""
|
|
459
|
-
:param _Image:
|
|
540
|
+
:param _Image: <p>镜像相关信息</p>
|
|
460
541
|
:type Image: :class:`tencentcloud.hai.v20230812.models.ImageInfo`
|
|
461
|
-
:param _Port:
|
|
542
|
+
:param _Port: <p>服务监听端口</p>
|
|
462
543
|
:type Port: str
|
|
463
|
-
:param _Scripts:
|
|
544
|
+
:param _Scripts: <p>启动命令</p>
|
|
464
545
|
:type Scripts: list of str
|
|
465
|
-
:param _Envs:
|
|
546
|
+
:param _Envs: <p>环境变量列表</p>
|
|
466
547
|
:type Envs: list of EnvParam
|
|
467
|
-
:param _Storages:
|
|
548
|
+
:param _Storages: <p>存储挂载配置</p>
|
|
468
549
|
:type Storages: list of StorageInfo
|
|
550
|
+
:param _Probe: <p>探针信息</p>
|
|
551
|
+
:type Probe: :class:`tencentcloud.hai.v20230812.models.ProbeInfo`
|
|
469
552
|
"""
|
|
470
553
|
self._Image = None
|
|
471
554
|
self._Port = None
|
|
472
555
|
self._Scripts = None
|
|
473
556
|
self._Envs = None
|
|
474
557
|
self._Storages = None
|
|
558
|
+
self._Probe = None
|
|
475
559
|
|
|
476
560
|
@property
|
|
477
561
|
def Image(self):
|
|
478
|
-
r"""
|
|
562
|
+
r"""<p>镜像相关信息</p>
|
|
479
563
|
:rtype: :class:`tencentcloud.hai.v20230812.models.ImageInfo`
|
|
480
564
|
"""
|
|
481
565
|
return self._Image
|
|
@@ -486,7 +570,7 @@ class ContainerInfo(AbstractModel):
|
|
|
486
570
|
|
|
487
571
|
@property
|
|
488
572
|
def Port(self):
|
|
489
|
-
r"""
|
|
573
|
+
r"""<p>服务监听端口</p>
|
|
490
574
|
:rtype: str
|
|
491
575
|
"""
|
|
492
576
|
return self._Port
|
|
@@ -497,7 +581,7 @@ class ContainerInfo(AbstractModel):
|
|
|
497
581
|
|
|
498
582
|
@property
|
|
499
583
|
def Scripts(self):
|
|
500
|
-
r"""
|
|
584
|
+
r"""<p>启动命令</p>
|
|
501
585
|
:rtype: list of str
|
|
502
586
|
"""
|
|
503
587
|
return self._Scripts
|
|
@@ -508,7 +592,7 @@ class ContainerInfo(AbstractModel):
|
|
|
508
592
|
|
|
509
593
|
@property
|
|
510
594
|
def Envs(self):
|
|
511
|
-
r"""
|
|
595
|
+
r"""<p>环境变量列表</p>
|
|
512
596
|
:rtype: list of EnvParam
|
|
513
597
|
"""
|
|
514
598
|
return self._Envs
|
|
@@ -519,7 +603,7 @@ class ContainerInfo(AbstractModel):
|
|
|
519
603
|
|
|
520
604
|
@property
|
|
521
605
|
def Storages(self):
|
|
522
|
-
r"""
|
|
606
|
+
r"""<p>存储挂载配置</p>
|
|
523
607
|
:rtype: list of StorageInfo
|
|
524
608
|
"""
|
|
525
609
|
return self._Storages
|
|
@@ -528,6 +612,17 @@ class ContainerInfo(AbstractModel):
|
|
|
528
612
|
def Storages(self, Storages):
|
|
529
613
|
self._Storages = Storages
|
|
530
614
|
|
|
615
|
+
@property
|
|
616
|
+
def Probe(self):
|
|
617
|
+
r"""<p>探针信息</p>
|
|
618
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.ProbeInfo`
|
|
619
|
+
"""
|
|
620
|
+
return self._Probe
|
|
621
|
+
|
|
622
|
+
@Probe.setter
|
|
623
|
+
def Probe(self, Probe):
|
|
624
|
+
self._Probe = Probe
|
|
625
|
+
|
|
531
626
|
|
|
532
627
|
def _deserialize(self, params):
|
|
533
628
|
if params.get("Image") is not None:
|
|
@@ -547,6 +642,9 @@ class ContainerInfo(AbstractModel):
|
|
|
547
642
|
obj = StorageInfo()
|
|
548
643
|
obj._deserialize(item)
|
|
549
644
|
self._Storages.append(obj)
|
|
645
|
+
if params.get("Probe") is not None:
|
|
646
|
+
self._Probe = ProbeInfo()
|
|
647
|
+
self._Probe._deserialize(params.get("Probe"))
|
|
550
648
|
memeber_set = set(params.keys())
|
|
551
649
|
for name, value in vars(self).items():
|
|
552
650
|
property_name = name[1:]
|
|
@@ -673,17 +771,17 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
673
771
|
|
|
674
772
|
def __init__(self):
|
|
675
773
|
r"""
|
|
676
|
-
:param _TemplateId:
|
|
774
|
+
:param _TemplateId: <p>模版ID</p>
|
|
677
775
|
:type TemplateId: str
|
|
678
|
-
:param _ServiceName:
|
|
776
|
+
:param _ServiceName: <p>服务名称</p>
|
|
679
777
|
:type ServiceName: str
|
|
680
|
-
:param _Replicas:
|
|
778
|
+
:param _Replicas: <p>副本数</p>
|
|
681
779
|
:type Replicas: int
|
|
682
|
-
:param _ServiceChargeType:
|
|
780
|
+
:param _ServiceChargeType: <p>付费方式,POSTPAID_BY_HOUR按量后付费</p>
|
|
683
781
|
:type ServiceChargeType: str
|
|
684
|
-
:param _HyperParam:
|
|
782
|
+
:param _HyperParam: <p>描述了服务的超参数配置</p>
|
|
685
783
|
:type HyperParam: :class:`tencentcloud.hai.v20230812.models.HyperParam`
|
|
686
|
-
:param _NetworkSetting:
|
|
784
|
+
:param _NetworkSetting: <p>网络设置</p>
|
|
687
785
|
:type NetworkSetting: :class:`tencentcloud.hai.v20230812.models.NetworkSetting`
|
|
688
786
|
"""
|
|
689
787
|
self._TemplateId = None
|
|
@@ -695,7 +793,7 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
695
793
|
|
|
696
794
|
@property
|
|
697
795
|
def TemplateId(self):
|
|
698
|
-
r"""
|
|
796
|
+
r"""<p>模版ID</p>
|
|
699
797
|
:rtype: str
|
|
700
798
|
"""
|
|
701
799
|
return self._TemplateId
|
|
@@ -706,7 +804,7 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
706
804
|
|
|
707
805
|
@property
|
|
708
806
|
def ServiceName(self):
|
|
709
|
-
r"""
|
|
807
|
+
r"""<p>服务名称</p>
|
|
710
808
|
:rtype: str
|
|
711
809
|
"""
|
|
712
810
|
return self._ServiceName
|
|
@@ -717,7 +815,7 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
717
815
|
|
|
718
816
|
@property
|
|
719
817
|
def Replicas(self):
|
|
720
|
-
r"""
|
|
818
|
+
r"""<p>副本数</p>
|
|
721
819
|
:rtype: int
|
|
722
820
|
"""
|
|
723
821
|
return self._Replicas
|
|
@@ -728,7 +826,7 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
728
826
|
|
|
729
827
|
@property
|
|
730
828
|
def ServiceChargeType(self):
|
|
731
|
-
r"""
|
|
829
|
+
r"""<p>付费方式,POSTPAID_BY_HOUR按量后付费</p>
|
|
732
830
|
:rtype: str
|
|
733
831
|
"""
|
|
734
832
|
return self._ServiceChargeType
|
|
@@ -739,7 +837,7 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
739
837
|
|
|
740
838
|
@property
|
|
741
839
|
def HyperParam(self):
|
|
742
|
-
r"""
|
|
840
|
+
r"""<p>描述了服务的超参数配置</p>
|
|
743
841
|
:rtype: :class:`tencentcloud.hai.v20230812.models.HyperParam`
|
|
744
842
|
"""
|
|
745
843
|
return self._HyperParam
|
|
@@ -750,7 +848,7 @@ class CreateInferServiceByTemplateRequest(AbstractModel):
|
|
|
750
848
|
|
|
751
849
|
@property
|
|
752
850
|
def NetworkSetting(self):
|
|
753
|
-
r"""
|
|
851
|
+
r"""<p>网络设置</p>
|
|
754
852
|
:rtype: :class:`tencentcloud.hai.v20230812.models.NetworkSetting`
|
|
755
853
|
"""
|
|
756
854
|
return self._NetworkSetting
|
|
@@ -788,7 +886,7 @@ class CreateInferServiceByTemplateResponse(AbstractModel):
|
|
|
788
886
|
|
|
789
887
|
def __init__(self):
|
|
790
888
|
r"""
|
|
791
|
-
:param _ServiceId:
|
|
889
|
+
:param _ServiceId: <p>服务ID</p>
|
|
792
890
|
:type ServiceId: str
|
|
793
891
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
794
892
|
:type RequestId: str
|
|
@@ -798,7 +896,7 @@ class CreateInferServiceByTemplateResponse(AbstractModel):
|
|
|
798
896
|
|
|
799
897
|
@property
|
|
800
898
|
def ServiceId(self):
|
|
801
|
-
r"""
|
|
899
|
+
r"""<p>服务ID</p>
|
|
802
900
|
:rtype: str
|
|
803
901
|
"""
|
|
804
902
|
return self._ServiceId
|
|
@@ -933,6 +1031,70 @@ class CreateMuskPromptResponse(AbstractModel):
|
|
|
933
1031
|
self._RequestId = params.get("RequestId")
|
|
934
1032
|
|
|
935
1033
|
|
|
1034
|
+
class DeleteServiceRequest(AbstractModel):
|
|
1035
|
+
r"""DeleteService请求参数结构体
|
|
1036
|
+
|
|
1037
|
+
"""
|
|
1038
|
+
|
|
1039
|
+
def __init__(self):
|
|
1040
|
+
r"""
|
|
1041
|
+
:param _ServiceId: 服务ID
|
|
1042
|
+
:type ServiceId: str
|
|
1043
|
+
"""
|
|
1044
|
+
self._ServiceId = None
|
|
1045
|
+
|
|
1046
|
+
@property
|
|
1047
|
+
def ServiceId(self):
|
|
1048
|
+
r"""服务ID
|
|
1049
|
+
:rtype: str
|
|
1050
|
+
"""
|
|
1051
|
+
return self._ServiceId
|
|
1052
|
+
|
|
1053
|
+
@ServiceId.setter
|
|
1054
|
+
def ServiceId(self, ServiceId):
|
|
1055
|
+
self._ServiceId = ServiceId
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
def _deserialize(self, params):
|
|
1059
|
+
self._ServiceId = params.get("ServiceId")
|
|
1060
|
+
memeber_set = set(params.keys())
|
|
1061
|
+
for name, value in vars(self).items():
|
|
1062
|
+
property_name = name[1:]
|
|
1063
|
+
if property_name in memeber_set:
|
|
1064
|
+
memeber_set.remove(property_name)
|
|
1065
|
+
if len(memeber_set) > 0:
|
|
1066
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
class DeleteServiceResponse(AbstractModel):
|
|
1071
|
+
r"""DeleteService返回参数结构体
|
|
1072
|
+
|
|
1073
|
+
"""
|
|
1074
|
+
|
|
1075
|
+
def __init__(self):
|
|
1076
|
+
r"""
|
|
1077
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1078
|
+
:type RequestId: str
|
|
1079
|
+
"""
|
|
1080
|
+
self._RequestId = None
|
|
1081
|
+
|
|
1082
|
+
@property
|
|
1083
|
+
def RequestId(self):
|
|
1084
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1085
|
+
:rtype: str
|
|
1086
|
+
"""
|
|
1087
|
+
return self._RequestId
|
|
1088
|
+
|
|
1089
|
+
@RequestId.setter
|
|
1090
|
+
def RequestId(self, RequestId):
|
|
1091
|
+
self._RequestId = RequestId
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
def _deserialize(self, params):
|
|
1095
|
+
self._RequestId = params.get("RequestId")
|
|
1096
|
+
|
|
1097
|
+
|
|
936
1098
|
class DeployInferServiceRequest(AbstractModel):
|
|
937
1099
|
r"""DeployInferService请求参数结构体
|
|
938
1100
|
|
|
@@ -2218,6 +2380,120 @@ class DescribeServiceLoginSettingsResponse(AbstractModel):
|
|
|
2218
2380
|
self._RequestId = params.get("RequestId")
|
|
2219
2381
|
|
|
2220
2382
|
|
|
2383
|
+
class DescribeServicesCallInfoRequest(AbstractModel):
|
|
2384
|
+
r"""DescribeServicesCallInfo请求参数结构体
|
|
2385
|
+
|
|
2386
|
+
"""
|
|
2387
|
+
|
|
2388
|
+
def __init__(self):
|
|
2389
|
+
r"""
|
|
2390
|
+
:param _ServiceIds: 推理服务ID列表
|
|
2391
|
+
:type ServiceIds: list of str
|
|
2392
|
+
:param _Limit: 分页大小
|
|
2393
|
+
:type Limit: int
|
|
2394
|
+
:param _Offset: 偏移量
|
|
2395
|
+
:type Offset: int
|
|
2396
|
+
"""
|
|
2397
|
+
self._ServiceIds = None
|
|
2398
|
+
self._Limit = None
|
|
2399
|
+
self._Offset = None
|
|
2400
|
+
|
|
2401
|
+
@property
|
|
2402
|
+
def ServiceIds(self):
|
|
2403
|
+
r"""推理服务ID列表
|
|
2404
|
+
:rtype: list of str
|
|
2405
|
+
"""
|
|
2406
|
+
return self._ServiceIds
|
|
2407
|
+
|
|
2408
|
+
@ServiceIds.setter
|
|
2409
|
+
def ServiceIds(self, ServiceIds):
|
|
2410
|
+
self._ServiceIds = ServiceIds
|
|
2411
|
+
|
|
2412
|
+
@property
|
|
2413
|
+
def Limit(self):
|
|
2414
|
+
r"""分页大小
|
|
2415
|
+
:rtype: int
|
|
2416
|
+
"""
|
|
2417
|
+
return self._Limit
|
|
2418
|
+
|
|
2419
|
+
@Limit.setter
|
|
2420
|
+
def Limit(self, Limit):
|
|
2421
|
+
self._Limit = Limit
|
|
2422
|
+
|
|
2423
|
+
@property
|
|
2424
|
+
def Offset(self):
|
|
2425
|
+
r"""偏移量
|
|
2426
|
+
:rtype: int
|
|
2427
|
+
"""
|
|
2428
|
+
return self._Offset
|
|
2429
|
+
|
|
2430
|
+
@Offset.setter
|
|
2431
|
+
def Offset(self, Offset):
|
|
2432
|
+
self._Offset = Offset
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
def _deserialize(self, params):
|
|
2436
|
+
self._ServiceIds = params.get("ServiceIds")
|
|
2437
|
+
self._Limit = params.get("Limit")
|
|
2438
|
+
self._Offset = params.get("Offset")
|
|
2439
|
+
memeber_set = set(params.keys())
|
|
2440
|
+
for name, value in vars(self).items():
|
|
2441
|
+
property_name = name[1:]
|
|
2442
|
+
if property_name in memeber_set:
|
|
2443
|
+
memeber_set.remove(property_name)
|
|
2444
|
+
if len(memeber_set) > 0:
|
|
2445
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2446
|
+
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
class DescribeServicesCallInfoResponse(AbstractModel):
|
|
2450
|
+
r"""DescribeServicesCallInfo返回参数结构体
|
|
2451
|
+
|
|
2452
|
+
"""
|
|
2453
|
+
|
|
2454
|
+
def __init__(self):
|
|
2455
|
+
r"""
|
|
2456
|
+
:param _CallInfoSet: 调用信息
|
|
2457
|
+
:type CallInfoSet: list of CallInfo
|
|
2458
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2459
|
+
:type RequestId: str
|
|
2460
|
+
"""
|
|
2461
|
+
self._CallInfoSet = None
|
|
2462
|
+
self._RequestId = None
|
|
2463
|
+
|
|
2464
|
+
@property
|
|
2465
|
+
def CallInfoSet(self):
|
|
2466
|
+
r"""调用信息
|
|
2467
|
+
:rtype: list of CallInfo
|
|
2468
|
+
"""
|
|
2469
|
+
return self._CallInfoSet
|
|
2470
|
+
|
|
2471
|
+
@CallInfoSet.setter
|
|
2472
|
+
def CallInfoSet(self, CallInfoSet):
|
|
2473
|
+
self._CallInfoSet = CallInfoSet
|
|
2474
|
+
|
|
2475
|
+
@property
|
|
2476
|
+
def RequestId(self):
|
|
2477
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2478
|
+
:rtype: str
|
|
2479
|
+
"""
|
|
2480
|
+
return self._RequestId
|
|
2481
|
+
|
|
2482
|
+
@RequestId.setter
|
|
2483
|
+
def RequestId(self, RequestId):
|
|
2484
|
+
self._RequestId = RequestId
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
def _deserialize(self, params):
|
|
2488
|
+
if params.get("CallInfoSet") is not None:
|
|
2489
|
+
self._CallInfoSet = []
|
|
2490
|
+
for item in params.get("CallInfoSet"):
|
|
2491
|
+
obj = CallInfo()
|
|
2492
|
+
obj._deserialize(item)
|
|
2493
|
+
self._CallInfoSet.append(obj)
|
|
2494
|
+
self._RequestId = params.get("RequestId")
|
|
2495
|
+
|
|
2496
|
+
|
|
2221
2497
|
class DescribeServicesRequest(AbstractModel):
|
|
2222
2498
|
r"""DescribeServices请求参数结构体
|
|
2223
2499
|
|
|
@@ -2488,6 +2764,57 @@ class HiCacheInfo(AbstractModel):
|
|
|
2488
2764
|
|
|
2489
2765
|
|
|
2490
2766
|
|
|
2767
|
+
class HttpConfig(AbstractModel):
|
|
2768
|
+
r"""http配置信息
|
|
2769
|
+
|
|
2770
|
+
"""
|
|
2771
|
+
|
|
2772
|
+
def __init__(self):
|
|
2773
|
+
r"""
|
|
2774
|
+
:param _Path: <p>指定健康检查的URL路径</p>
|
|
2775
|
+
:type Path: str
|
|
2776
|
+
:param _Port: <p>指定健康检查的端口</p>
|
|
2777
|
+
:type Port: int
|
|
2778
|
+
"""
|
|
2779
|
+
self._Path = None
|
|
2780
|
+
self._Port = None
|
|
2781
|
+
|
|
2782
|
+
@property
|
|
2783
|
+
def Path(self):
|
|
2784
|
+
r"""<p>指定健康检查的URL路径</p>
|
|
2785
|
+
:rtype: str
|
|
2786
|
+
"""
|
|
2787
|
+
return self._Path
|
|
2788
|
+
|
|
2789
|
+
@Path.setter
|
|
2790
|
+
def Path(self, Path):
|
|
2791
|
+
self._Path = Path
|
|
2792
|
+
|
|
2793
|
+
@property
|
|
2794
|
+
def Port(self):
|
|
2795
|
+
r"""<p>指定健康检查的端口</p>
|
|
2796
|
+
:rtype: int
|
|
2797
|
+
"""
|
|
2798
|
+
return self._Port
|
|
2799
|
+
|
|
2800
|
+
@Port.setter
|
|
2801
|
+
def Port(self, Port):
|
|
2802
|
+
self._Port = Port
|
|
2803
|
+
|
|
2804
|
+
|
|
2805
|
+
def _deserialize(self, params):
|
|
2806
|
+
self._Path = params.get("Path")
|
|
2807
|
+
self._Port = params.get("Port")
|
|
2808
|
+
memeber_set = set(params.keys())
|
|
2809
|
+
for name, value in vars(self).items():
|
|
2810
|
+
property_name = name[1:]
|
|
2811
|
+
if property_name in memeber_set:
|
|
2812
|
+
memeber_set.remove(property_name)
|
|
2813
|
+
if len(memeber_set) > 0:
|
|
2814
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
|
|
2491
2818
|
class HyperParam(AbstractModel):
|
|
2492
2819
|
r"""描述了服务的超参数配置
|
|
2493
2820
|
|
|
@@ -4145,6 +4472,191 @@ class Price(AbstractModel):
|
|
|
4145
4472
|
|
|
4146
4473
|
|
|
4147
4474
|
|
|
4475
|
+
class ProbeConfig(AbstractModel):
|
|
4476
|
+
r"""探针配置信息
|
|
4477
|
+
|
|
4478
|
+
"""
|
|
4479
|
+
|
|
4480
|
+
def __init__(self):
|
|
4481
|
+
r"""
|
|
4482
|
+
:param _HttpGet: <p>HTTP GET请求进行健康检查</p>
|
|
4483
|
+
:type HttpGet: :class:`tencentcloud.hai.v20230812.models.HttpConfig`
|
|
4484
|
+
:param _InitialDelaySeconds: <p>容器启动后,等待多少秒开始第一次探测</p>
|
|
4485
|
+
:type InitialDelaySeconds: int
|
|
4486
|
+
:param _PeriodSeconds: <p>每次执行探测的间隔时间(秒)</p>
|
|
4487
|
+
:type PeriodSeconds: int
|
|
4488
|
+
:param _TimeoutSeconds: <p>每次探测等待响应的超时时间(秒)</p>
|
|
4489
|
+
:type TimeoutSeconds: int
|
|
4490
|
+
:param _SuccessThreshold: <p>探测失败后,最小连续成功次数才被认为成功</p>
|
|
4491
|
+
:type SuccessThreshold: int
|
|
4492
|
+
:param _FailureThreshold: <p>探测失败后,Kubernetes的重试次数</p>
|
|
4493
|
+
:type FailureThreshold: int
|
|
4494
|
+
"""
|
|
4495
|
+
self._HttpGet = None
|
|
4496
|
+
self._InitialDelaySeconds = None
|
|
4497
|
+
self._PeriodSeconds = None
|
|
4498
|
+
self._TimeoutSeconds = None
|
|
4499
|
+
self._SuccessThreshold = None
|
|
4500
|
+
self._FailureThreshold = None
|
|
4501
|
+
|
|
4502
|
+
@property
|
|
4503
|
+
def HttpGet(self):
|
|
4504
|
+
r"""<p>HTTP GET请求进行健康检查</p>
|
|
4505
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.HttpConfig`
|
|
4506
|
+
"""
|
|
4507
|
+
return self._HttpGet
|
|
4508
|
+
|
|
4509
|
+
@HttpGet.setter
|
|
4510
|
+
def HttpGet(self, HttpGet):
|
|
4511
|
+
self._HttpGet = HttpGet
|
|
4512
|
+
|
|
4513
|
+
@property
|
|
4514
|
+
def InitialDelaySeconds(self):
|
|
4515
|
+
r"""<p>容器启动后,等待多少秒开始第一次探测</p>
|
|
4516
|
+
:rtype: int
|
|
4517
|
+
"""
|
|
4518
|
+
return self._InitialDelaySeconds
|
|
4519
|
+
|
|
4520
|
+
@InitialDelaySeconds.setter
|
|
4521
|
+
def InitialDelaySeconds(self, InitialDelaySeconds):
|
|
4522
|
+
self._InitialDelaySeconds = InitialDelaySeconds
|
|
4523
|
+
|
|
4524
|
+
@property
|
|
4525
|
+
def PeriodSeconds(self):
|
|
4526
|
+
r"""<p>每次执行探测的间隔时间(秒)</p>
|
|
4527
|
+
:rtype: int
|
|
4528
|
+
"""
|
|
4529
|
+
return self._PeriodSeconds
|
|
4530
|
+
|
|
4531
|
+
@PeriodSeconds.setter
|
|
4532
|
+
def PeriodSeconds(self, PeriodSeconds):
|
|
4533
|
+
self._PeriodSeconds = PeriodSeconds
|
|
4534
|
+
|
|
4535
|
+
@property
|
|
4536
|
+
def TimeoutSeconds(self):
|
|
4537
|
+
r"""<p>每次探测等待响应的超时时间(秒)</p>
|
|
4538
|
+
:rtype: int
|
|
4539
|
+
"""
|
|
4540
|
+
return self._TimeoutSeconds
|
|
4541
|
+
|
|
4542
|
+
@TimeoutSeconds.setter
|
|
4543
|
+
def TimeoutSeconds(self, TimeoutSeconds):
|
|
4544
|
+
self._TimeoutSeconds = TimeoutSeconds
|
|
4545
|
+
|
|
4546
|
+
@property
|
|
4547
|
+
def SuccessThreshold(self):
|
|
4548
|
+
r"""<p>探测失败后,最小连续成功次数才被认为成功</p>
|
|
4549
|
+
:rtype: int
|
|
4550
|
+
"""
|
|
4551
|
+
return self._SuccessThreshold
|
|
4552
|
+
|
|
4553
|
+
@SuccessThreshold.setter
|
|
4554
|
+
def SuccessThreshold(self, SuccessThreshold):
|
|
4555
|
+
self._SuccessThreshold = SuccessThreshold
|
|
4556
|
+
|
|
4557
|
+
@property
|
|
4558
|
+
def FailureThreshold(self):
|
|
4559
|
+
r"""<p>探测失败后,Kubernetes的重试次数</p>
|
|
4560
|
+
:rtype: int
|
|
4561
|
+
"""
|
|
4562
|
+
return self._FailureThreshold
|
|
4563
|
+
|
|
4564
|
+
@FailureThreshold.setter
|
|
4565
|
+
def FailureThreshold(self, FailureThreshold):
|
|
4566
|
+
self._FailureThreshold = FailureThreshold
|
|
4567
|
+
|
|
4568
|
+
|
|
4569
|
+
def _deserialize(self, params):
|
|
4570
|
+
if params.get("HttpGet") is not None:
|
|
4571
|
+
self._HttpGet = HttpConfig()
|
|
4572
|
+
self._HttpGet._deserialize(params.get("HttpGet"))
|
|
4573
|
+
self._InitialDelaySeconds = params.get("InitialDelaySeconds")
|
|
4574
|
+
self._PeriodSeconds = params.get("PeriodSeconds")
|
|
4575
|
+
self._TimeoutSeconds = params.get("TimeoutSeconds")
|
|
4576
|
+
self._SuccessThreshold = params.get("SuccessThreshold")
|
|
4577
|
+
self._FailureThreshold = params.get("FailureThreshold")
|
|
4578
|
+
memeber_set = set(params.keys())
|
|
4579
|
+
for name, value in vars(self).items():
|
|
4580
|
+
property_name = name[1:]
|
|
4581
|
+
if property_name in memeber_set:
|
|
4582
|
+
memeber_set.remove(property_name)
|
|
4583
|
+
if len(memeber_set) > 0:
|
|
4584
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4585
|
+
|
|
4586
|
+
|
|
4587
|
+
|
|
4588
|
+
class ProbeInfo(AbstractModel):
|
|
4589
|
+
r"""探针信息
|
|
4590
|
+
|
|
4591
|
+
"""
|
|
4592
|
+
|
|
4593
|
+
def __init__(self):
|
|
4594
|
+
r"""
|
|
4595
|
+
:param _LivenessProbe: <p>存活探针</p>
|
|
4596
|
+
:type LivenessProbe: :class:`tencentcloud.hai.v20230812.models.ProbeConfig`
|
|
4597
|
+
:param _ReadinessProbe: <p>就绪探针</p>
|
|
4598
|
+
:type ReadinessProbe: :class:`tencentcloud.hai.v20230812.models.ProbeConfig`
|
|
4599
|
+
:param _StartupProbe: <p>启动探针</p>
|
|
4600
|
+
:type StartupProbe: :class:`tencentcloud.hai.v20230812.models.ProbeConfig`
|
|
4601
|
+
"""
|
|
4602
|
+
self._LivenessProbe = None
|
|
4603
|
+
self._ReadinessProbe = None
|
|
4604
|
+
self._StartupProbe = None
|
|
4605
|
+
|
|
4606
|
+
@property
|
|
4607
|
+
def LivenessProbe(self):
|
|
4608
|
+
r"""<p>存活探针</p>
|
|
4609
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.ProbeConfig`
|
|
4610
|
+
"""
|
|
4611
|
+
return self._LivenessProbe
|
|
4612
|
+
|
|
4613
|
+
@LivenessProbe.setter
|
|
4614
|
+
def LivenessProbe(self, LivenessProbe):
|
|
4615
|
+
self._LivenessProbe = LivenessProbe
|
|
4616
|
+
|
|
4617
|
+
@property
|
|
4618
|
+
def ReadinessProbe(self):
|
|
4619
|
+
r"""<p>就绪探针</p>
|
|
4620
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.ProbeConfig`
|
|
4621
|
+
"""
|
|
4622
|
+
return self._ReadinessProbe
|
|
4623
|
+
|
|
4624
|
+
@ReadinessProbe.setter
|
|
4625
|
+
def ReadinessProbe(self, ReadinessProbe):
|
|
4626
|
+
self._ReadinessProbe = ReadinessProbe
|
|
4627
|
+
|
|
4628
|
+
@property
|
|
4629
|
+
def StartupProbe(self):
|
|
4630
|
+
r"""<p>启动探针</p>
|
|
4631
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.ProbeConfig`
|
|
4632
|
+
"""
|
|
4633
|
+
return self._StartupProbe
|
|
4634
|
+
|
|
4635
|
+
@StartupProbe.setter
|
|
4636
|
+
def StartupProbe(self, StartupProbe):
|
|
4637
|
+
self._StartupProbe = StartupProbe
|
|
4638
|
+
|
|
4639
|
+
|
|
4640
|
+
def _deserialize(self, params):
|
|
4641
|
+
if params.get("LivenessProbe") is not None:
|
|
4642
|
+
self._LivenessProbe = ProbeConfig()
|
|
4643
|
+
self._LivenessProbe._deserialize(params.get("LivenessProbe"))
|
|
4644
|
+
if params.get("ReadinessProbe") is not None:
|
|
4645
|
+
self._ReadinessProbe = ProbeConfig()
|
|
4646
|
+
self._ReadinessProbe._deserialize(params.get("ReadinessProbe"))
|
|
4647
|
+
if params.get("StartupProbe") is not None:
|
|
4648
|
+
self._StartupProbe = ProbeConfig()
|
|
4649
|
+
self._StartupProbe._deserialize(params.get("StartupProbe"))
|
|
4650
|
+
memeber_set = set(params.keys())
|
|
4651
|
+
for name, value in vars(self).items():
|
|
4652
|
+
property_name = name[1:]
|
|
4653
|
+
if property_name in memeber_set:
|
|
4654
|
+
memeber_set.remove(property_name)
|
|
4655
|
+
if len(memeber_set) > 0:
|
|
4656
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4657
|
+
|
|
4658
|
+
|
|
4659
|
+
|
|
4148
4660
|
class RegionInfo(AbstractModel):
|
|
4149
4661
|
r"""地域列表
|
|
4150
4662
|
|
|
@@ -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.74
|
|
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.74
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.74
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.60
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|