tencentcloud-sdk-python 3.0.1210__py2.py3-none-any.whl → 3.0.1225__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/ams/v20201229/models.py +24 -0
- tencentcloud/antiddos/v20200309/models.py +13 -1
- tencentcloud/asr/v20190614/asr_client.py +103 -1
- tencentcloud/asr/v20190614/errorcodes.py +3 -0
- tencentcloud/asr/v20190614/models.py +620 -0
- tencentcloud/batch/v20170312/models.py +2 -2
- tencentcloud/bi/v20220105/models.py +25 -0
- tencentcloud/billing/v20180709/models.py +155 -0
- tencentcloud/ccc/v20200210/models.py +42 -12
- tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- tencentcloud/cdb/v20170320/models.py +280 -2
- tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +211 -165
- tencentcloud/cdwdoris/v20211228/errorcodes.py +0 -3
- tencentcloud/cdwdoris/v20211228/models.py +2316 -2164
- tencentcloud/cfg/v20210820/models.py +182 -1
- tencentcloud/cfw/v20190904/cfw_client.py +23 -0
- tencentcloud/cfw/v20190904/models.py +70 -0
- tencentcloud/ckafka/v20190819/ckafka_client.py +1 -1
- tencentcloud/ckafka/v20190819/models.py +47 -1
- tencentcloud/clb/v20180317/models.py +147 -3
- tencentcloud/cls/v20201016/models.py +259 -9
- tencentcloud/controlcenter/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/controlcenter_client.py +49 -0
- tencentcloud/controlcenter/v20230110/errorcodes.py +45 -0
- tencentcloud/controlcenter/v20230110/models.py +140 -0
- tencentcloud/csip/v20221121/models.py +385 -0
- tencentcloud/cvm/v20170312/models.py +8 -6
- tencentcloud/cwp/v20180228/models.py +123 -12
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +115 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
- tencentcloud/cynosdb/v20190107/models.py +862 -52
- tencentcloud/dasb/v20191018/models.py +25 -0
- tencentcloud/dbbrain/v20210527/models.py +212 -2
- tencentcloud/dc/v20180410/dc_client.py +3 -4
- tencentcloud/dc/v20180410/models.py +78 -18
- tencentcloud/dcdb/v20180411/dcdb_client.py +23 -0
- tencentcloud/dcdb/v20180411/models.py +118 -0
- tencentcloud/dlc/v20210125/models.py +170 -1
- tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
- tencentcloud/dsgc/v20190723/models.py +165 -0
- tencentcloud/ecc/v20181213/ecc_client.py +1 -2
- tencentcloud/emr/v20190103/emr_client.py +24 -0
- tencentcloud/emr/v20190103/models.py +94 -0
- tencentcloud/es/v20180416/es_client.py +24 -0
- tencentcloud/es/v20180416/models.py +270 -1
- tencentcloud/ess/v20201111/ess_client.py +62 -4
- tencentcloud/ess/v20201111/models.py +386 -3
- tencentcloud/essbasic/v20210526/essbasic_client.py +31 -2
- tencentcloud/essbasic/v20210526/models.py +185 -16
- tencentcloud/facefusion/v20181201/models.py +9 -3
- tencentcloud/facefusion/v20220927/errorcodes.py +15 -6
- tencentcloud/facefusion/v20220927/models.py +32 -11
- tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- tencentcloud/faceid/v20180301/models.py +66 -0
- tencentcloud/goosefs/v20220519/models.py +61 -0
- tencentcloud/hunyuan/v20230901/errorcodes.py +21 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +53 -1
- tencentcloud/hunyuan/v20230901/models.py +378 -4
- tencentcloud/ims/v20201229/ims_client.py +3 -3
- tencentcloud/ims/v20201229/models.py +1 -1
- tencentcloud/iotexplorer/v20190423/models.py +14 -6
- tencentcloud/iss/v20230517/errorcodes.py +15 -0
- tencentcloud/iss/v20230517/models.py +103 -0
- tencentcloud/lcic/v20220817/lcic_client.py +23 -0
- tencentcloud/lcic/v20220817/models.py +261 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +3 -0
- tencentcloud/lighthouse/v20200324/models.py +28 -0
- tencentcloud/lke/v20231130/errorcodes.py +1 -1
- tencentcloud/lke/v20231130/models.py +247 -5
- tencentcloud/mariadb/v20170312/errorcodes.py +3 -0
- tencentcloud/mariadb/v20170312/mariadb_client.py +23 -0
- tencentcloud/mariadb/v20170312/models.py +82 -0
- tencentcloud/mna/v20210119/errorcodes.py +6 -0
- tencentcloud/mna/v20210119/mna_client.py +23 -0
- tencentcloud/mna/v20210119/models.py +146 -0
- tencentcloud/mongodb/v20180408/errorcodes.py +1 -1
- tencentcloud/mongodb/v20190725/errorcodes.py +1 -1
- tencentcloud/mongodb/v20190725/models.py +72 -45
- tencentcloud/monitor/v20180724/models.py +13 -0
- tencentcloud/mps/v20190612/models.py +247 -18
- tencentcloud/oceanus/v20190422/models.py +25 -0
- tencentcloud/ocr/v20181119/errorcodes.py +6 -0
- tencentcloud/ocr/v20181119/models.py +281 -2
- tencentcloud/ocr/v20181119/ocr_client.py +54 -2
- tencentcloud/organization/v20210331/errorcodes.py +237 -0
- tencentcloud/organization/v20210331/models.py +12189 -4358
- tencentcloud/organization/v20210331/organization_client.py +1181 -54
- tencentcloud/postgres/v20170312/errorcodes.py +15 -0
- tencentcloud/redis/v20180412/models.py +22 -20
- tencentcloud/rum/v20210622/models.py +12 -0
- tencentcloud/scf/v20180416/models.py +51 -15
- tencentcloud/ses/v20201002/models.py +177 -0
- tencentcloud/sms/v20190711/errorcodes.py +3 -0
- tencentcloud/sms/v20190711/models.py +21 -22
- tencentcloud/sms/v20190711/sms_client.py +28 -60
- tencentcloud/sms/v20210111/errorcodes.py +3 -0
- tencentcloud/sqlserver/v20180328/errorcodes.py +3 -0
- tencentcloud/sqlserver/v20180328/models.py +185 -1
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +23 -0
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/ssl/v20191205/models.py +209 -0
- tencentcloud/ssl/v20191205/ssl_client.py +24 -1
- tencentcloud/tag/v20180813/models.py +33 -33
- tencentcloud/tat/v20201028/errorcodes.py +9 -0
- tencentcloud/tat/v20201028/models.py +221 -1
- tencentcloud/tat/v20201028/tat_client.py +23 -0
- tencentcloud/tcr/v20190924/errorcodes.py +3 -0
- tencentcloud/tdmq/v20200217/models.py +155 -0
- tencentcloud/teo/v20220901/models.py +2 -3
- tencentcloud/thpc/v20230321/models.py +1432 -82
- tencentcloud/thpc/v20230321/thpc_client.py +92 -0
- tencentcloud/tiia/v20190529/models.py +0 -469
- tencentcloud/tiia/v20190529/tiia_client.py +0 -29
- tencentcloud/tke/v20180525/errorcodes.py +3 -0
- tencentcloud/tke/v20180525/models.py +12 -0
- tencentcloud/tms/v20201229/errorcodes.py +0 -6
- tencentcloud/tms/v20201229/models.py +0 -70
- tencentcloud/tms/v20201229/tms_client.py +0 -23
- tencentcloud/tmt/v20180321/errorcodes.py +3 -0
- tencentcloud/tmt/v20180321/models.py +9 -9
- tencentcloud/tmt/v20180321/tmt_client.py +1 -1
- tencentcloud/trocket/v20230308/models.py +123 -7
- tencentcloud/trtc/v20190722/models.py +240 -2
- tencentcloud/trtc/v20190722/trtc_client.py +48 -35
- tencentcloud/tse/v20201207/models.py +88 -0
- tencentcloud/tts/v20190823/models.py +2 -2
- tencentcloud/vclm/v20240523/errorcodes.py +27 -0
- tencentcloud/vclm/v20240523/models.py +12 -0
- tencentcloud/vod/v20180717/errorcodes.py +18 -0
- tencentcloud/vod/v20180717/models.py +617 -12
- tencentcloud/vod/v20180717/vod_client.py +71 -2
- tencentcloud/vpc/v20170312/models.py +332 -2
- tencentcloud/waf/v20180125/models.py +1 -1
- tencentcloud/wedata/v20210820/errorcodes.py +6 -0
- tencentcloud/wedata/v20210820/models.py +2905 -366
- tencentcloud/wedata/v20210820/wedata_client.py +161 -0
- {tencentcloud_sdk_python-3.0.1210.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1210.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/RECORD +143 -138
- {tencentcloud_sdk_python-3.0.1210.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1210.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1210.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/top_level.txt +0 -0
@@ -145,6 +145,29 @@ class ThpcClient(AbstractClient):
|
|
145
145
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
146
146
|
|
147
147
|
|
148
|
+
def CreateWorkspaces(self, request):
|
149
|
+
"""本接口 (CreateWorkspaces) 用于创建工作空间。
|
150
|
+
|
151
|
+
:param request: Request instance for CreateWorkspaces.
|
152
|
+
:type request: :class:`tencentcloud.thpc.v20230321.models.CreateWorkspacesRequest`
|
153
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.CreateWorkspacesResponse`
|
154
|
+
|
155
|
+
"""
|
156
|
+
try:
|
157
|
+
params = request._serialize()
|
158
|
+
headers = request.headers
|
159
|
+
body = self.call("CreateWorkspaces", params, headers=headers)
|
160
|
+
response = json.loads(body)
|
161
|
+
model = models.CreateWorkspacesResponse()
|
162
|
+
model._deserialize(response["Response"])
|
163
|
+
return model
|
164
|
+
except Exception as e:
|
165
|
+
if isinstance(e, TencentCloudSDKException):
|
166
|
+
raise
|
167
|
+
else:
|
168
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
169
|
+
|
170
|
+
|
148
171
|
def DeleteCluster(self, request):
|
149
172
|
"""本接口(DeleteCluster)用于删除一个指定的集群。
|
150
173
|
|
@@ -401,6 +424,29 @@ class ThpcClient(AbstractClient):
|
|
401
424
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
402
425
|
|
403
426
|
|
427
|
+
def DescribeWorkspaces(self, request):
|
428
|
+
"""本接口(DescribeWorkspaces)用于查询工作空间列表。
|
429
|
+
|
430
|
+
:param request: Request instance for DescribeWorkspaces.
|
431
|
+
:type request: :class:`tencentcloud.thpc.v20230321.models.DescribeWorkspacesRequest`
|
432
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.DescribeWorkspacesResponse`
|
433
|
+
|
434
|
+
"""
|
435
|
+
try:
|
436
|
+
params = request._serialize()
|
437
|
+
headers = request.headers
|
438
|
+
body = self.call("DescribeWorkspaces", params, headers=headers)
|
439
|
+
response = json.loads(body)
|
440
|
+
model = models.DescribeWorkspacesResponse()
|
441
|
+
model._deserialize(response["Response"])
|
442
|
+
return model
|
443
|
+
except Exception as e:
|
444
|
+
if isinstance(e, TencentCloudSDKException):
|
445
|
+
raise
|
446
|
+
else:
|
447
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
448
|
+
|
449
|
+
|
404
450
|
def DetachNodes(self, request):
|
405
451
|
"""本接口 (DetachNodes) 用于将一个或者多个计算节点从集群中移除,但是不销毁指定计算资源。
|
406
452
|
|
@@ -447,6 +493,29 @@ class ThpcClient(AbstractClient):
|
|
447
493
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
448
494
|
|
449
495
|
|
496
|
+
def ModifyWorkspacesAttribute(self, request):
|
497
|
+
"""本接口 (ModifyWorkspacesAttribute) 用于修改工作空间的属性(目前只支持修改工作空间的名称)。
|
498
|
+
|
499
|
+
:param request: Request instance for ModifyWorkspacesAttribute.
|
500
|
+
:type request: :class:`tencentcloud.thpc.v20230321.models.ModifyWorkspacesAttributeRequest`
|
501
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.ModifyWorkspacesAttributeResponse`
|
502
|
+
|
503
|
+
"""
|
504
|
+
try:
|
505
|
+
params = request._serialize()
|
506
|
+
headers = request.headers
|
507
|
+
body = self.call("ModifyWorkspacesAttribute", params, headers=headers)
|
508
|
+
response = json.loads(body)
|
509
|
+
model = models.ModifyWorkspacesAttributeResponse()
|
510
|
+
model._deserialize(response["Response"])
|
511
|
+
return model
|
512
|
+
except Exception as e:
|
513
|
+
if isinstance(e, TencentCloudSDKException):
|
514
|
+
raise
|
515
|
+
else:
|
516
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
517
|
+
|
518
|
+
|
450
519
|
def SetAutoScalingConfiguration(self, request):
|
451
520
|
"""本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
452
521
|
|
@@ -463,6 +532,29 @@ class ThpcClient(AbstractClient):
|
|
463
532
|
model = models.SetAutoScalingConfigurationResponse()
|
464
533
|
model._deserialize(response["Response"])
|
465
534
|
return model
|
535
|
+
except Exception as e:
|
536
|
+
if isinstance(e, TencentCloudSDKException):
|
537
|
+
raise
|
538
|
+
else:
|
539
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
540
|
+
|
541
|
+
|
542
|
+
def TerminateWorkspaces(self, request):
|
543
|
+
"""本接口 (TerminateWorkspaces) 用于主动退还工作空间。
|
544
|
+
|
545
|
+
:param request: Request instance for TerminateWorkspaces.
|
546
|
+
:type request: :class:`tencentcloud.thpc.v20230321.models.TerminateWorkspacesRequest`
|
547
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.TerminateWorkspacesResponse`
|
548
|
+
|
549
|
+
"""
|
550
|
+
try:
|
551
|
+
params = request._serialize()
|
552
|
+
headers = request.headers
|
553
|
+
body = self.call("TerminateWorkspaces", params, headers=headers)
|
554
|
+
response = json.loads(body)
|
555
|
+
model = models.TerminateWorkspacesResponse()
|
556
|
+
model._deserialize(response["Response"])
|
557
|
+
return model
|
466
558
|
except Exception as e:
|
467
559
|
if isinstance(e, TencentCloudSDKException):
|
468
560
|
raise
|
@@ -2746,142 +2746,6 @@ class DetectPetResponse(AbstractModel):
|
|
2746
2746
|
self._RequestId = params.get("RequestId")
|
2747
2747
|
|
2748
2748
|
|
2749
|
-
class DetectProductBetaRequest(AbstractModel):
|
2750
|
-
"""DetectProductBeta请求参数结构体
|
2751
|
-
|
2752
|
-
"""
|
2753
|
-
|
2754
|
-
def __init__(self):
|
2755
|
-
r"""
|
2756
|
-
:param _ImageUrl: 图片限制:内测版仅支持jpg、jpeg,图片大小不超过1M,分辨率在25万到100万之间。
|
2757
|
-
建议先对图片进行压缩,以便提升处理速度。
|
2758
|
-
:type ImageUrl: str
|
2759
|
-
:param _ImageBase64: 图片经过base64编码的内容。最大不超过1M,分辨率在25万到100万之间。
|
2760
|
-
与ImageUrl同时存在时优先使用ImageUrl字段。
|
2761
|
-
:type ImageBase64: str
|
2762
|
-
:param _NeedLemma: 是否需要百科信息 1:是,0: 否,默认是0
|
2763
|
-
:type NeedLemma: int
|
2764
|
-
"""
|
2765
|
-
self._ImageUrl = None
|
2766
|
-
self._ImageBase64 = None
|
2767
|
-
self._NeedLemma = None
|
2768
|
-
|
2769
|
-
@property
|
2770
|
-
def ImageUrl(self):
|
2771
|
-
return self._ImageUrl
|
2772
|
-
|
2773
|
-
@ImageUrl.setter
|
2774
|
-
def ImageUrl(self, ImageUrl):
|
2775
|
-
self._ImageUrl = ImageUrl
|
2776
|
-
|
2777
|
-
@property
|
2778
|
-
def ImageBase64(self):
|
2779
|
-
return self._ImageBase64
|
2780
|
-
|
2781
|
-
@ImageBase64.setter
|
2782
|
-
def ImageBase64(self, ImageBase64):
|
2783
|
-
self._ImageBase64 = ImageBase64
|
2784
|
-
|
2785
|
-
@property
|
2786
|
-
def NeedLemma(self):
|
2787
|
-
return self._NeedLemma
|
2788
|
-
|
2789
|
-
@NeedLemma.setter
|
2790
|
-
def NeedLemma(self, NeedLemma):
|
2791
|
-
self._NeedLemma = NeedLemma
|
2792
|
-
|
2793
|
-
|
2794
|
-
def _deserialize(self, params):
|
2795
|
-
self._ImageUrl = params.get("ImageUrl")
|
2796
|
-
self._ImageBase64 = params.get("ImageBase64")
|
2797
|
-
self._NeedLemma = params.get("NeedLemma")
|
2798
|
-
memeber_set = set(params.keys())
|
2799
|
-
for name, value in vars(self).items():
|
2800
|
-
property_name = name[1:]
|
2801
|
-
if property_name in memeber_set:
|
2802
|
-
memeber_set.remove(property_name)
|
2803
|
-
if len(memeber_set) > 0:
|
2804
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2805
|
-
|
2806
|
-
|
2807
|
-
|
2808
|
-
class DetectProductBetaResponse(AbstractModel):
|
2809
|
-
"""DetectProductBeta返回参数结构体
|
2810
|
-
|
2811
|
-
"""
|
2812
|
-
|
2813
|
-
def __init__(self):
|
2814
|
-
r"""
|
2815
|
-
:param _RegionDetected: 检测到的图片中的商品位置和品类预测。
|
2816
|
-
当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
|
2817
|
-
最多可以输出__3组__检测结果。
|
2818
|
-
:type RegionDetected: list of RegionDetected
|
2819
|
-
:param _ProductInfo: 图像识别出的商品的详细信息。
|
2820
|
-
当图像中检测到多个物品时,会对显著性最高的进行识别。
|
2821
|
-
:type ProductInfo: :class:`tencentcloud.tiia.v20190529.models.ProductInfo`
|
2822
|
-
:param _ProductInfoList: 相似商品信息列表
|
2823
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2824
|
-
:type ProductInfoList: list of ProductInfo
|
2825
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2826
|
-
:type RequestId: str
|
2827
|
-
"""
|
2828
|
-
self._RegionDetected = None
|
2829
|
-
self._ProductInfo = None
|
2830
|
-
self._ProductInfoList = None
|
2831
|
-
self._RequestId = None
|
2832
|
-
|
2833
|
-
@property
|
2834
|
-
def RegionDetected(self):
|
2835
|
-
return self._RegionDetected
|
2836
|
-
|
2837
|
-
@RegionDetected.setter
|
2838
|
-
def RegionDetected(self, RegionDetected):
|
2839
|
-
self._RegionDetected = RegionDetected
|
2840
|
-
|
2841
|
-
@property
|
2842
|
-
def ProductInfo(self):
|
2843
|
-
return self._ProductInfo
|
2844
|
-
|
2845
|
-
@ProductInfo.setter
|
2846
|
-
def ProductInfo(self, ProductInfo):
|
2847
|
-
self._ProductInfo = ProductInfo
|
2848
|
-
|
2849
|
-
@property
|
2850
|
-
def ProductInfoList(self):
|
2851
|
-
return self._ProductInfoList
|
2852
|
-
|
2853
|
-
@ProductInfoList.setter
|
2854
|
-
def ProductInfoList(self, ProductInfoList):
|
2855
|
-
self._ProductInfoList = ProductInfoList
|
2856
|
-
|
2857
|
-
@property
|
2858
|
-
def RequestId(self):
|
2859
|
-
return self._RequestId
|
2860
|
-
|
2861
|
-
@RequestId.setter
|
2862
|
-
def RequestId(self, RequestId):
|
2863
|
-
self._RequestId = RequestId
|
2864
|
-
|
2865
|
-
|
2866
|
-
def _deserialize(self, params):
|
2867
|
-
if params.get("RegionDetected") is not None:
|
2868
|
-
self._RegionDetected = []
|
2869
|
-
for item in params.get("RegionDetected"):
|
2870
|
-
obj = RegionDetected()
|
2871
|
-
obj._deserialize(item)
|
2872
|
-
self._RegionDetected.append(obj)
|
2873
|
-
if params.get("ProductInfo") is not None:
|
2874
|
-
self._ProductInfo = ProductInfo()
|
2875
|
-
self._ProductInfo._deserialize(params.get("ProductInfo"))
|
2876
|
-
if params.get("ProductInfoList") is not None:
|
2877
|
-
self._ProductInfoList = []
|
2878
|
-
for item in params.get("ProductInfoList"):
|
2879
|
-
obj = ProductInfo()
|
2880
|
-
obj._deserialize(item)
|
2881
|
-
self._ProductInfoList.append(obj)
|
2882
|
-
self._RequestId = params.get("RequestId")
|
2883
|
-
|
2884
|
-
|
2885
2749
|
class DetectProductRequest(AbstractModel):
|
2886
2750
|
"""DetectProduct请求参数结构体
|
2887
2751
|
|
@@ -3521,135 +3385,6 @@ class ImageTag(AbstractModel):
|
|
3521
3385
|
|
3522
3386
|
|
3523
3387
|
|
3524
|
-
class LemmaInfo(AbstractModel):
|
3525
|
-
"""百科词条信息
|
3526
|
-
|
3527
|
-
"""
|
3528
|
-
|
3529
|
-
def __init__(self):
|
3530
|
-
r"""
|
3531
|
-
:param _LemmaTitle: 词条
|
3532
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3533
|
-
:type LemmaTitle: str
|
3534
|
-
:param _LemmaAbstract: 词条描述
|
3535
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3536
|
-
:type LemmaAbstract: str
|
3537
|
-
:param _Tag: 标签
|
3538
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3539
|
-
:type Tag: str
|
3540
|
-
"""
|
3541
|
-
self._LemmaTitle = None
|
3542
|
-
self._LemmaAbstract = None
|
3543
|
-
self._Tag = None
|
3544
|
-
|
3545
|
-
@property
|
3546
|
-
def LemmaTitle(self):
|
3547
|
-
return self._LemmaTitle
|
3548
|
-
|
3549
|
-
@LemmaTitle.setter
|
3550
|
-
def LemmaTitle(self, LemmaTitle):
|
3551
|
-
self._LemmaTitle = LemmaTitle
|
3552
|
-
|
3553
|
-
@property
|
3554
|
-
def LemmaAbstract(self):
|
3555
|
-
return self._LemmaAbstract
|
3556
|
-
|
3557
|
-
@LemmaAbstract.setter
|
3558
|
-
def LemmaAbstract(self, LemmaAbstract):
|
3559
|
-
self._LemmaAbstract = LemmaAbstract
|
3560
|
-
|
3561
|
-
@property
|
3562
|
-
def Tag(self):
|
3563
|
-
return self._Tag
|
3564
|
-
|
3565
|
-
@Tag.setter
|
3566
|
-
def Tag(self, Tag):
|
3567
|
-
self._Tag = Tag
|
3568
|
-
|
3569
|
-
|
3570
|
-
def _deserialize(self, params):
|
3571
|
-
self._LemmaTitle = params.get("LemmaTitle")
|
3572
|
-
self._LemmaAbstract = params.get("LemmaAbstract")
|
3573
|
-
self._Tag = params.get("Tag")
|
3574
|
-
memeber_set = set(params.keys())
|
3575
|
-
for name, value in vars(self).items():
|
3576
|
-
property_name = name[1:]
|
3577
|
-
if property_name in memeber_set:
|
3578
|
-
memeber_set.remove(property_name)
|
3579
|
-
if len(memeber_set) > 0:
|
3580
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3581
|
-
|
3582
|
-
|
3583
|
-
|
3584
|
-
class Location(AbstractModel):
|
3585
|
-
"""检测到的主体在图片中的矩形框位置(四个顶点坐标)
|
3586
|
-
|
3587
|
-
"""
|
3588
|
-
|
3589
|
-
def __init__(self):
|
3590
|
-
r"""
|
3591
|
-
:param _XMin: 位置矩形框的左上角横坐标
|
3592
|
-
:type XMin: int
|
3593
|
-
:param _YMin: 位置矩形框的左上角纵坐标
|
3594
|
-
:type YMin: int
|
3595
|
-
:param _XMax: 位置矩形框的右下角横坐标
|
3596
|
-
:type XMax: int
|
3597
|
-
:param _YMax: 位置矩形框的右下角纵坐标
|
3598
|
-
:type YMax: int
|
3599
|
-
"""
|
3600
|
-
self._XMin = None
|
3601
|
-
self._YMin = None
|
3602
|
-
self._XMax = None
|
3603
|
-
self._YMax = None
|
3604
|
-
|
3605
|
-
@property
|
3606
|
-
def XMin(self):
|
3607
|
-
return self._XMin
|
3608
|
-
|
3609
|
-
@XMin.setter
|
3610
|
-
def XMin(self, XMin):
|
3611
|
-
self._XMin = XMin
|
3612
|
-
|
3613
|
-
@property
|
3614
|
-
def YMin(self):
|
3615
|
-
return self._YMin
|
3616
|
-
|
3617
|
-
@YMin.setter
|
3618
|
-
def YMin(self, YMin):
|
3619
|
-
self._YMin = YMin
|
3620
|
-
|
3621
|
-
@property
|
3622
|
-
def XMax(self):
|
3623
|
-
return self._XMax
|
3624
|
-
|
3625
|
-
@XMax.setter
|
3626
|
-
def XMax(self, XMax):
|
3627
|
-
self._XMax = XMax
|
3628
|
-
|
3629
|
-
@property
|
3630
|
-
def YMax(self):
|
3631
|
-
return self._YMax
|
3632
|
-
|
3633
|
-
@YMax.setter
|
3634
|
-
def YMax(self, YMax):
|
3635
|
-
self._YMax = YMax
|
3636
|
-
|
3637
|
-
|
3638
|
-
def _deserialize(self, params):
|
3639
|
-
self._XMin = params.get("XMin")
|
3640
|
-
self._YMin = params.get("YMin")
|
3641
|
-
self._XMax = params.get("XMax")
|
3642
|
-
self._YMax = params.get("YMax")
|
3643
|
-
memeber_set = set(params.keys())
|
3644
|
-
for name, value in vars(self).items():
|
3645
|
-
property_name = name[1:]
|
3646
|
-
if property_name in memeber_set:
|
3647
|
-
memeber_set.remove(property_name)
|
3648
|
-
if len(memeber_set) > 0:
|
3649
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3650
|
-
|
3651
|
-
|
3652
|
-
|
3653
3388
|
class ObjectInfo(AbstractModel):
|
3654
3389
|
"""图像的主体信息。
|
3655
3390
|
|
@@ -3913,148 +3648,6 @@ class Product(AbstractModel):
|
|
3913
3648
|
|
3914
3649
|
|
3915
3650
|
|
3916
|
-
class ProductInfo(AbstractModel):
|
3917
|
-
"""图像识别出的商品的详细信息。
|
3918
|
-
当图像中检测到多个物品时,会对显著性最高的物品进行识别。
|
3919
|
-
|
3920
|
-
"""
|
3921
|
-
|
3922
|
-
def __init__(self):
|
3923
|
-
r"""
|
3924
|
-
:param _FindSKU: 1表示找到同款商品,以下字段为同款商品信息;
|
3925
|
-
0表示未找到同款商品, 具体商品信息为空(参考价格、名称、品牌等),仅提供商品类目和参考图片(商品库中找到的最相似图片,供参考)。
|
3926
|
-
是否找到同款的判断依据为Score分值,分值越大则同款的可能性越大。
|
3927
|
-
:type FindSKU: int
|
3928
|
-
:param _Location: 本商品在图片中的坐标,表示为矩形框的四个顶点坐标。
|
3929
|
-
:type Location: :class:`tencentcloud.tiia.v20190529.models.Location`
|
3930
|
-
:param _Name: 商品名称
|
3931
|
-
:type Name: str
|
3932
|
-
:param _Brand: 商品品牌
|
3933
|
-
:type Brand: str
|
3934
|
-
:param _Price: 参考价格,综合多个信息源,仅供参考。
|
3935
|
-
:type Price: str
|
3936
|
-
:param _ProductCategory: 识别结果的商品类目。
|
3937
|
-
包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
|
3938
|
-
当类别为“非商品”时,除Location、Score和本字段之外的商品信息为空。
|
3939
|
-
:type ProductCategory: str
|
3940
|
-
:param _Score: 输入图片中的主体物品和输出结果的相似度。分值越大,输出结果与输入图片是同款的可能性越高。
|
3941
|
-
:type Score: float
|
3942
|
-
:param _Image: 搜索到的商品配图URL。
|
3943
|
-
:type Image: str
|
3944
|
-
:param _LemmaInfoList: 百科词条列表
|
3945
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3946
|
-
:type LemmaInfoList: list of LemmaInfo
|
3947
|
-
"""
|
3948
|
-
self._FindSKU = None
|
3949
|
-
self._Location = None
|
3950
|
-
self._Name = None
|
3951
|
-
self._Brand = None
|
3952
|
-
self._Price = None
|
3953
|
-
self._ProductCategory = None
|
3954
|
-
self._Score = None
|
3955
|
-
self._Image = None
|
3956
|
-
self._LemmaInfoList = None
|
3957
|
-
|
3958
|
-
@property
|
3959
|
-
def FindSKU(self):
|
3960
|
-
return self._FindSKU
|
3961
|
-
|
3962
|
-
@FindSKU.setter
|
3963
|
-
def FindSKU(self, FindSKU):
|
3964
|
-
self._FindSKU = FindSKU
|
3965
|
-
|
3966
|
-
@property
|
3967
|
-
def Location(self):
|
3968
|
-
return self._Location
|
3969
|
-
|
3970
|
-
@Location.setter
|
3971
|
-
def Location(self, Location):
|
3972
|
-
self._Location = Location
|
3973
|
-
|
3974
|
-
@property
|
3975
|
-
def Name(self):
|
3976
|
-
return self._Name
|
3977
|
-
|
3978
|
-
@Name.setter
|
3979
|
-
def Name(self, Name):
|
3980
|
-
self._Name = Name
|
3981
|
-
|
3982
|
-
@property
|
3983
|
-
def Brand(self):
|
3984
|
-
return self._Brand
|
3985
|
-
|
3986
|
-
@Brand.setter
|
3987
|
-
def Brand(self, Brand):
|
3988
|
-
self._Brand = Brand
|
3989
|
-
|
3990
|
-
@property
|
3991
|
-
def Price(self):
|
3992
|
-
return self._Price
|
3993
|
-
|
3994
|
-
@Price.setter
|
3995
|
-
def Price(self, Price):
|
3996
|
-
self._Price = Price
|
3997
|
-
|
3998
|
-
@property
|
3999
|
-
def ProductCategory(self):
|
4000
|
-
return self._ProductCategory
|
4001
|
-
|
4002
|
-
@ProductCategory.setter
|
4003
|
-
def ProductCategory(self, ProductCategory):
|
4004
|
-
self._ProductCategory = ProductCategory
|
4005
|
-
|
4006
|
-
@property
|
4007
|
-
def Score(self):
|
4008
|
-
return self._Score
|
4009
|
-
|
4010
|
-
@Score.setter
|
4011
|
-
def Score(self, Score):
|
4012
|
-
self._Score = Score
|
4013
|
-
|
4014
|
-
@property
|
4015
|
-
def Image(self):
|
4016
|
-
return self._Image
|
4017
|
-
|
4018
|
-
@Image.setter
|
4019
|
-
def Image(self, Image):
|
4020
|
-
self._Image = Image
|
4021
|
-
|
4022
|
-
@property
|
4023
|
-
def LemmaInfoList(self):
|
4024
|
-
return self._LemmaInfoList
|
4025
|
-
|
4026
|
-
@LemmaInfoList.setter
|
4027
|
-
def LemmaInfoList(self, LemmaInfoList):
|
4028
|
-
self._LemmaInfoList = LemmaInfoList
|
4029
|
-
|
4030
|
-
|
4031
|
-
def _deserialize(self, params):
|
4032
|
-
self._FindSKU = params.get("FindSKU")
|
4033
|
-
if params.get("Location") is not None:
|
4034
|
-
self._Location = Location()
|
4035
|
-
self._Location._deserialize(params.get("Location"))
|
4036
|
-
self._Name = params.get("Name")
|
4037
|
-
self._Brand = params.get("Brand")
|
4038
|
-
self._Price = params.get("Price")
|
4039
|
-
self._ProductCategory = params.get("ProductCategory")
|
4040
|
-
self._Score = params.get("Score")
|
4041
|
-
self._Image = params.get("Image")
|
4042
|
-
if params.get("LemmaInfoList") is not None:
|
4043
|
-
self._LemmaInfoList = []
|
4044
|
-
for item in params.get("LemmaInfoList"):
|
4045
|
-
obj = LemmaInfo()
|
4046
|
-
obj._deserialize(item)
|
4047
|
-
self._LemmaInfoList.append(obj)
|
4048
|
-
memeber_set = set(params.keys())
|
4049
|
-
for name, value in vars(self).items():
|
4050
|
-
property_name = name[1:]
|
4051
|
-
if property_name in memeber_set:
|
4052
|
-
memeber_set.remove(property_name)
|
4053
|
-
if len(memeber_set) > 0:
|
4054
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4055
|
-
|
4056
|
-
|
4057
|
-
|
4058
3651
|
class RecognizeCarProRequest(AbstractModel):
|
4059
3652
|
"""RecognizeCarPro请求参数结构体
|
4060
3653
|
|
@@ -4351,68 +3944,6 @@ class Rect(AbstractModel):
|
|
4351
3944
|
|
4352
3945
|
|
4353
3946
|
|
4354
|
-
class RegionDetected(AbstractModel):
|
4355
|
-
"""检测到的图片中的商品位置和品类预测。
|
4356
|
-
当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
|
4357
|
-
最多可以输出__3组__检测结果。
|
4358
|
-
|
4359
|
-
"""
|
4360
|
-
|
4361
|
-
def __init__(self):
|
4362
|
-
r"""
|
4363
|
-
:param _Category: 商品的品类预测结果。
|
4364
|
-
包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
|
4365
|
-
:type Category: str
|
4366
|
-
:param _CategoryScore: 商品品类预测的置信度
|
4367
|
-
:type CategoryScore: float
|
4368
|
-
:param _Location: 检测到的主体在图片中的坐标,表示为矩形框的四个顶点坐标
|
4369
|
-
:type Location: :class:`tencentcloud.tiia.v20190529.models.Location`
|
4370
|
-
"""
|
4371
|
-
self._Category = None
|
4372
|
-
self._CategoryScore = None
|
4373
|
-
self._Location = None
|
4374
|
-
|
4375
|
-
@property
|
4376
|
-
def Category(self):
|
4377
|
-
return self._Category
|
4378
|
-
|
4379
|
-
@Category.setter
|
4380
|
-
def Category(self, Category):
|
4381
|
-
self._Category = Category
|
4382
|
-
|
4383
|
-
@property
|
4384
|
-
def CategoryScore(self):
|
4385
|
-
return self._CategoryScore
|
4386
|
-
|
4387
|
-
@CategoryScore.setter
|
4388
|
-
def CategoryScore(self, CategoryScore):
|
4389
|
-
self._CategoryScore = CategoryScore
|
4390
|
-
|
4391
|
-
@property
|
4392
|
-
def Location(self):
|
4393
|
-
return self._Location
|
4394
|
-
|
4395
|
-
@Location.setter
|
4396
|
-
def Location(self, Location):
|
4397
|
-
self._Location = Location
|
4398
|
-
|
4399
|
-
|
4400
|
-
def _deserialize(self, params):
|
4401
|
-
self._Category = params.get("Category")
|
4402
|
-
self._CategoryScore = params.get("CategoryScore")
|
4403
|
-
if params.get("Location") is not None:
|
4404
|
-
self._Location = Location()
|
4405
|
-
self._Location._deserialize(params.get("Location"))
|
4406
|
-
memeber_set = set(params.keys())
|
4407
|
-
for name, value in vars(self).items():
|
4408
|
-
property_name = name[1:]
|
4409
|
-
if property_name in memeber_set:
|
4410
|
-
memeber_set.remove(property_name)
|
4411
|
-
if len(memeber_set) > 0:
|
4412
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4413
|
-
|
4414
|
-
|
4415
|
-
|
4416
3947
|
class SearchImageRequest(AbstractModel):
|
4417
3948
|
"""SearchImage请求参数结构体
|
4418
3949
|
|
@@ -499,35 +499,6 @@ class TiiaClient(AbstractClient):
|
|
499
499
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
500
500
|
|
501
501
|
|
502
|
-
def DetectProductBeta(self, request):
|
503
|
-
"""产品不再维护,准备下线。
|
504
|
-
|
505
|
-
商品识别-微信识物版,基于人工智能技术、海量训练图片、亿级商品库,可以实现全覆盖、细粒度、高准确率的商品识别和商品推荐功能。
|
506
|
-
本服务可以识别出图片中的主体位置、主体商品类型,覆盖亿级SKU,输出具体商品的价格、型号等详细信息。
|
507
|
-
客户无需自建商品库,即可快速实现商品识别、拍照搜商品等功能。
|
508
|
-
>?
|
509
|
-
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
510
|
-
|
511
|
-
:param request: Request instance for DetectProductBeta.
|
512
|
-
:type request: :class:`tencentcloud.tiia.v20190529.models.DetectProductBetaRequest`
|
513
|
-
:rtype: :class:`tencentcloud.tiia.v20190529.models.DetectProductBetaResponse`
|
514
|
-
|
515
|
-
"""
|
516
|
-
try:
|
517
|
-
params = request._serialize()
|
518
|
-
headers = request.headers
|
519
|
-
body = self.call("DetectProductBeta", params, headers=headers)
|
520
|
-
response = json.loads(body)
|
521
|
-
model = models.DetectProductBetaResponse()
|
522
|
-
model._deserialize(response["Response"])
|
523
|
-
return model
|
524
|
-
except Exception as e:
|
525
|
-
if isinstance(e, TencentCloudSDKException):
|
526
|
-
raise
|
527
|
-
else:
|
528
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
529
|
-
|
530
|
-
|
531
502
|
def DetectSecurity(self, request):
|
532
503
|
"""安全属性识别可对图片中人体安全防护属性进行识别,支持识别安全帽,反光衣,护目镜,工服,手套,工地安全带,口罩,抽烟,玩手机等多种属性。
|
533
504
|
"被优选过滤"标签值在人体优选开关开启时才会返回。
|
@@ -527,6 +527,9 @@ INVALIDPARAMETER_SUBNETINVALIDERROR = 'InvalidParameter.SubnetInvalidError'
|
|
527
527
|
# 子网不存在。
|
528
528
|
INVALIDPARAMETER_SUBNETNOTEXIST = 'InvalidParameter.SubnetNotExist'
|
529
529
|
|
530
|
+
# 客户创建参数中,k8s 版本、运行时版本或 tke-eni-agent 版本不支持客户选择的操作系统中的CgroupV2。
|
531
|
+
INVALIDPARAMETER_VERSIONNOTSUPPORTCGROUPV2 = 'InvalidParameter.VersionNotSupportCgroupV2'
|
532
|
+
|
530
533
|
# 超过配额限制。
|
531
534
|
LIMITEXCEEDED = 'LimitExceeded'
|
532
535
|
|
@@ -25783,9 +25783,12 @@ class InstallLogAgentRequest(AbstractModel):
|
|
25783
25783
|
:type ClusterId: str
|
25784
25784
|
:param _KubeletRootDir: kubelet根目录
|
25785
25785
|
:type KubeletRootDir: str
|
25786
|
+
:param _ClusterType: 集群类型 tke/eks,默认tke
|
25787
|
+
:type ClusterType: str
|
25786
25788
|
"""
|
25787
25789
|
self._ClusterId = None
|
25788
25790
|
self._KubeletRootDir = None
|
25791
|
+
self._ClusterType = None
|
25789
25792
|
|
25790
25793
|
@property
|
25791
25794
|
def ClusterId(self):
|
@@ -25803,10 +25806,19 @@ class InstallLogAgentRequest(AbstractModel):
|
|
25803
25806
|
def KubeletRootDir(self, KubeletRootDir):
|
25804
25807
|
self._KubeletRootDir = KubeletRootDir
|
25805
25808
|
|
25809
|
+
@property
|
25810
|
+
def ClusterType(self):
|
25811
|
+
return self._ClusterType
|
25812
|
+
|
25813
|
+
@ClusterType.setter
|
25814
|
+
def ClusterType(self, ClusterType):
|
25815
|
+
self._ClusterType = ClusterType
|
25816
|
+
|
25806
25817
|
|
25807
25818
|
def _deserialize(self, params):
|
25808
25819
|
self._ClusterId = params.get("ClusterId")
|
25809
25820
|
self._KubeletRootDir = params.get("KubeletRootDir")
|
25821
|
+
self._ClusterType = params.get("ClusterType")
|
25810
25822
|
memeber_set = set(params.keys())
|
25811
25823
|
for name, value in vars(self).items():
|
25812
25824
|
property_name = name[1:]
|