tencentcloud-sdk-python 3.0.1213__py2.py3-none-any.whl → 3.0.1215__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/batch/v20170312/models.py +1 -1
- tencentcloud/ccc/v20200210/models.py +12 -12
- tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +164 -164
- tencentcloud/cdwdoris/v20211228/errorcodes.py +0 -3
- tencentcloud/cdwdoris/v20211228/models.py +1219 -1787
- tencentcloud/clb/v20180317/models.py +1 -1
- tencentcloud/cvm/v20170312/models.py +1 -1
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +46 -0
- tencentcloud/cynosdb/v20190107/models.py +218 -0
- tencentcloud/dbbrain/v20210527/models.py +210 -0
- tencentcloud/emr/v20190103/models.py +12 -0
- tencentcloud/ess/v20201111/models.py +12 -0
- tencentcloud/faceid/v20180301/models.py +26 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +1 -1
- tencentcloud/hunyuan/v20230901/models.py +4 -2
- tencentcloud/ims/v20201229/ims_client.py +1 -1
- tencentcloud/ims/v20201229/models.py +1 -1
- tencentcloud/lke/v20231130/models.py +20 -0
- tencentcloud/mps/v20190612/models.py +183 -13
- tencentcloud/sqlserver/v20180328/errorcodes.py +3 -0
- tencentcloud/sqlserver/v20180328/models.py +185 -1
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +23 -0
- tencentcloud/tiia/v20190529/models.py +0 -469
- tencentcloud/tiia/v20190529/tiia_client.py +0 -29
- tencentcloud/trtc/v20190722/models.py +94 -0
- tencentcloud/trtc/v20190722/trtc_client.py +23 -0
- tencentcloud/vod/v20180717/errorcodes.py +18 -0
- tencentcloud/vod/v20180717/models.py +612 -7
- tencentcloud/vod/v20180717/vod_client.py +69 -0
- tencentcloud/vpc/v20170312/models.py +1 -1
- {tencentcloud_sdk_python-3.0.1213.dist-info → tencentcloud_sdk_python-3.0.1215.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1213.dist-info → tencentcloud_sdk_python-3.0.1215.dist-info}/RECORD +36 -36
- {tencentcloud_sdk_python-3.0.1213.dist-info → tencentcloud_sdk_python-3.0.1215.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1213.dist-info → tencentcloud_sdk_python-3.0.1215.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1213.dist-info → tencentcloud_sdk_python-3.0.1215.dist-info}/top_level.txt +0 -0
@@ -2717,6 +2717,29 @@ class SqlserverClient(AbstractClient):
|
|
2717
2717
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2718
2718
|
|
2719
2719
|
|
2720
|
+
def ModifyDatabasePrivilege(self, request):
|
2721
|
+
"""本接口(ModifyDatabasePrivilege)用于修改实例数据库权限。
|
2722
|
+
|
2723
|
+
:param request: Request instance for ModifyDatabasePrivilege.
|
2724
|
+
:type request: :class:`tencentcloud.sqlserver.v20180328.models.ModifyDatabasePrivilegeRequest`
|
2725
|
+
:rtype: :class:`tencentcloud.sqlserver.v20180328.models.ModifyDatabasePrivilegeResponse`
|
2726
|
+
|
2727
|
+
"""
|
2728
|
+
try:
|
2729
|
+
params = request._serialize()
|
2730
|
+
headers = request.headers
|
2731
|
+
body = self.call("ModifyDatabasePrivilege", params, headers=headers)
|
2732
|
+
response = json.loads(body)
|
2733
|
+
model = models.ModifyDatabasePrivilegeResponse()
|
2734
|
+
model._deserialize(response["Response"])
|
2735
|
+
return model
|
2736
|
+
except Exception as e:
|
2737
|
+
if isinstance(e, TencentCloudSDKException):
|
2738
|
+
raise
|
2739
|
+
else:
|
2740
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2741
|
+
|
2742
|
+
|
2720
2743
|
def ModifyDatabaseShrinkMDF(self, request):
|
2721
2744
|
"""本接口(ModifyDatabaseShrinkDMF)用于收缩数据库mdf(Shrink mdf)。
|
2722
2745
|
|
@@ -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
|
"被优选过滤"标签值在人体优选开关开启时才会返回。
|
@@ -11302,6 +11302,100 @@ class UpdatePublishCdnStreamResponse(AbstractModel):
|
|
11302
11302
|
self._RequestId = params.get("RequestId")
|
11303
11303
|
|
11304
11304
|
|
11305
|
+
class UpdateStreamIngestRequest(AbstractModel):
|
11306
|
+
"""UpdateStreamIngest请求参数结构体
|
11307
|
+
|
11308
|
+
"""
|
11309
|
+
|
11310
|
+
def __init__(self):
|
11311
|
+
r"""
|
11312
|
+
:param _SdkAppId: TRTC的SDKAppId,和任务的房间所对应的SDKAppId相同
|
11313
|
+
:type SdkAppId: int
|
11314
|
+
:param _TaskId: 任务的唯一Id,在启动任务成功后会返回。
|
11315
|
+
:type TaskId: str
|
11316
|
+
:param _StreamUrl: 源流URL【必填】。
|
11317
|
+
:type StreamUrl: str
|
11318
|
+
"""
|
11319
|
+
self._SdkAppId = None
|
11320
|
+
self._TaskId = None
|
11321
|
+
self._StreamUrl = None
|
11322
|
+
|
11323
|
+
@property
|
11324
|
+
def SdkAppId(self):
|
11325
|
+
return self._SdkAppId
|
11326
|
+
|
11327
|
+
@SdkAppId.setter
|
11328
|
+
def SdkAppId(self, SdkAppId):
|
11329
|
+
self._SdkAppId = SdkAppId
|
11330
|
+
|
11331
|
+
@property
|
11332
|
+
def TaskId(self):
|
11333
|
+
return self._TaskId
|
11334
|
+
|
11335
|
+
@TaskId.setter
|
11336
|
+
def TaskId(self, TaskId):
|
11337
|
+
self._TaskId = TaskId
|
11338
|
+
|
11339
|
+
@property
|
11340
|
+
def StreamUrl(self):
|
11341
|
+
return self._StreamUrl
|
11342
|
+
|
11343
|
+
@StreamUrl.setter
|
11344
|
+
def StreamUrl(self, StreamUrl):
|
11345
|
+
self._StreamUrl = StreamUrl
|
11346
|
+
|
11347
|
+
|
11348
|
+
def _deserialize(self, params):
|
11349
|
+
self._SdkAppId = params.get("SdkAppId")
|
11350
|
+
self._TaskId = params.get("TaskId")
|
11351
|
+
self._StreamUrl = params.get("StreamUrl")
|
11352
|
+
memeber_set = set(params.keys())
|
11353
|
+
for name, value in vars(self).items():
|
11354
|
+
property_name = name[1:]
|
11355
|
+
if property_name in memeber_set:
|
11356
|
+
memeber_set.remove(property_name)
|
11357
|
+
if len(memeber_set) > 0:
|
11358
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
11359
|
+
|
11360
|
+
|
11361
|
+
|
11362
|
+
class UpdateStreamIngestResponse(AbstractModel):
|
11363
|
+
"""UpdateStreamIngest返回参数结构体
|
11364
|
+
|
11365
|
+
"""
|
11366
|
+
|
11367
|
+
def __init__(self):
|
11368
|
+
r"""
|
11369
|
+
:param _Status: 任务的状态信息。InProgress:表示当前任务正在进行中。NotExist:表示当前任务不存在。示例值:InProgress
|
11370
|
+
:type Status: str
|
11371
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11372
|
+
:type RequestId: str
|
11373
|
+
"""
|
11374
|
+
self._Status = None
|
11375
|
+
self._RequestId = None
|
11376
|
+
|
11377
|
+
@property
|
11378
|
+
def Status(self):
|
11379
|
+
return self._Status
|
11380
|
+
|
11381
|
+
@Status.setter
|
11382
|
+
def Status(self, Status):
|
11383
|
+
self._Status = Status
|
11384
|
+
|
11385
|
+
@property
|
11386
|
+
def RequestId(self):
|
11387
|
+
return self._RequestId
|
11388
|
+
|
11389
|
+
@RequestId.setter
|
11390
|
+
def RequestId(self, RequestId):
|
11391
|
+
self._RequestId = RequestId
|
11392
|
+
|
11393
|
+
|
11394
|
+
def _deserialize(self, params):
|
11395
|
+
self._Status = params.get("Status")
|
11396
|
+
self._RequestId = params.get("RequestId")
|
11397
|
+
|
11398
|
+
|
11305
11399
|
class UserInformation(AbstractModel):
|
11306
11400
|
"""用户信息,包括用户进房时间,退房时间等
|
11307
11401
|
|
@@ -1469,6 +1469,29 @@ class TrtcClient(AbstractClient):
|
|
1469
1469
|
model = models.UpdatePublishCdnStreamResponse()
|
1470
1470
|
model._deserialize(response["Response"])
|
1471
1471
|
return model
|
1472
|
+
except Exception as e:
|
1473
|
+
if isinstance(e, TencentCloudSDKException):
|
1474
|
+
raise
|
1475
|
+
else:
|
1476
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1477
|
+
|
1478
|
+
|
1479
|
+
def UpdateStreamIngest(self, request):
|
1480
|
+
"""更新输入在线媒体流任务的StreamUrl
|
1481
|
+
|
1482
|
+
:param request: Request instance for UpdateStreamIngest.
|
1483
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.UpdateStreamIngestRequest`
|
1484
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.UpdateStreamIngestResponse`
|
1485
|
+
|
1486
|
+
"""
|
1487
|
+
try:
|
1488
|
+
params = request._serialize()
|
1489
|
+
headers = request.headers
|
1490
|
+
body = self.call("UpdateStreamIngest", params, headers=headers)
|
1491
|
+
response = json.loads(body)
|
1492
|
+
model = models.UpdateStreamIngestResponse()
|
1493
|
+
model._deserialize(response["Response"])
|
1494
|
+
return model
|
1472
1495
|
except Exception as e:
|
1473
1496
|
if isinstance(e, TencentCloudSDKException):
|
1474
1497
|
raise
|