tencentcloud-sdk-python 3.0.1376__py2.py3-none-any.whl → 3.0.1378__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/apm/v20210622/models.py +60 -0
- tencentcloud/asr/v20190614/models.py +15 -0
- tencentcloud/autoscaling/v20180419/models.py +45 -16
- tencentcloud/bh/v20230418/models.py +317 -2
- tencentcloud/billing/v20180709/billing_client.py +322 -0
- tencentcloud/billing/v20180709/errorcodes.py +9 -0
- tencentcloud/billing/v20180709/models.py +4894 -2542
- tencentcloud/cdb/v20170320/cdb_client.py +0 -25
- tencentcloud/cdb/v20170320/models.py +0 -113
- tencentcloud/cfw/v20190904/models.py +17 -2
- tencentcloud/dsgc/v20190723/models.py +15 -0
- tencentcloud/ess/v20201111/ess_client.py +27 -0
- tencentcloud/ess/v20201111/models.py +186 -4
- tencentcloud/essbasic/v20210526/essbasic_client.py +27 -0
- tencentcloud/essbasic/v20210526/models.py +220 -4
- tencentcloud/gaap/v20180529/errorcodes.py +0 -33
- tencentcloud/gaap/v20180529/gaap_client.py +0 -75
- tencentcloud/gaap/v20180529/models.py +0 -653
- tencentcloud/hunyuan/v20230901/models.py +280 -8
- tencentcloud/iai/v20180301/models.py +44 -34
- tencentcloud/keewidb/v20220308/models.py +4 -0
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +1 -1
- tencentcloud/lighthouse/v20200324/models.py +6 -6
- tencentcloud/lke/v20231130/models.py +192 -2
- tencentcloud/postgres/v20170312/models.py +0 -6
- tencentcloud/redis/v20180412/models.py +48 -0
- tencentcloud/tag/v20180813/models.py +8 -8
- tencentcloud/tcb/v20180608/models.py +30 -0
- tencentcloud/tcbr/v20220217/models.py +162 -0
- tencentcloud/tdmq/v20200217/models.py +6 -6
- tencentcloud/teo/v20220901/models.py +0 -20
- tencentcloud/thpc/v20230321/models.py +8 -10
- tencentcloud/tione/v20211111/models.py +274 -0
- tencentcloud/tke/v20180525/models.py +10 -0
- tencentcloud/trtc/v20190722/models.py +15 -0
- tencentcloud/vod/v20180717/models.py +2 -2
- tencentcloud/vpc/v20170312/models.py +24 -24
- tencentcloud/waf/v20180125/errorcodes.py +12 -0
- tencentcloud/waf/v20180125/models.py +246 -29
- tencentcloud/wedata/v20210820/models.py +2692 -154
- tencentcloud/wedata/v20210820/wedata_client.py +161 -0
- {tencentcloud_sdk_python-3.0.1376.dist-info → tencentcloud_sdk_python-3.0.1378.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1376.dist-info → tencentcloud_sdk_python-3.0.1378.dist-info}/RECORD +47 -47
- {tencentcloud_sdk_python-3.0.1376.dist-info → tencentcloud_sdk_python-3.0.1378.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1376.dist-info → tencentcloud_sdk_python-3.0.1378.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1376.dist-info → tencentcloud_sdk_python-3.0.1378.dist-info}/top_level.txt +0 -0
@@ -82,6 +82,102 @@ class ActivateServiceResponse(AbstractModel):
|
|
82
82
|
self._RequestId = params.get("RequestId")
|
83
83
|
|
84
84
|
|
85
|
+
class Approximate(AbstractModel):
|
86
|
+
"""用户位置信息
|
87
|
+
|
88
|
+
"""
|
89
|
+
|
90
|
+
def __init__(self):
|
91
|
+
r"""
|
92
|
+
:param _Country: 表示 ISO 国家代码
|
93
|
+
:type Country: str
|
94
|
+
:param _City: 表示城市名称
|
95
|
+
:type City: str
|
96
|
+
:param _Region: 表示区域名称
|
97
|
+
:type Region: str
|
98
|
+
:param _Timezone: 表示IANA时区
|
99
|
+
:type Timezone: str
|
100
|
+
:param _Address: 表示详细地址
|
101
|
+
:type Address: str
|
102
|
+
"""
|
103
|
+
self._Country = None
|
104
|
+
self._City = None
|
105
|
+
self._Region = None
|
106
|
+
self._Timezone = None
|
107
|
+
self._Address = None
|
108
|
+
|
109
|
+
@property
|
110
|
+
def Country(self):
|
111
|
+
"""表示 ISO 国家代码
|
112
|
+
:rtype: str
|
113
|
+
"""
|
114
|
+
return self._Country
|
115
|
+
|
116
|
+
@Country.setter
|
117
|
+
def Country(self, Country):
|
118
|
+
self._Country = Country
|
119
|
+
|
120
|
+
@property
|
121
|
+
def City(self):
|
122
|
+
"""表示城市名称
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._City
|
126
|
+
|
127
|
+
@City.setter
|
128
|
+
def City(self, City):
|
129
|
+
self._City = City
|
130
|
+
|
131
|
+
@property
|
132
|
+
def Region(self):
|
133
|
+
"""表示区域名称
|
134
|
+
:rtype: str
|
135
|
+
"""
|
136
|
+
return self._Region
|
137
|
+
|
138
|
+
@Region.setter
|
139
|
+
def Region(self, Region):
|
140
|
+
self._Region = Region
|
141
|
+
|
142
|
+
@property
|
143
|
+
def Timezone(self):
|
144
|
+
"""表示IANA时区
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._Timezone
|
148
|
+
|
149
|
+
@Timezone.setter
|
150
|
+
def Timezone(self, Timezone):
|
151
|
+
self._Timezone = Timezone
|
152
|
+
|
153
|
+
@property
|
154
|
+
def Address(self):
|
155
|
+
"""表示详细地址
|
156
|
+
:rtype: str
|
157
|
+
"""
|
158
|
+
return self._Address
|
159
|
+
|
160
|
+
@Address.setter
|
161
|
+
def Address(self, Address):
|
162
|
+
self._Address = Address
|
163
|
+
|
164
|
+
|
165
|
+
def _deserialize(self, params):
|
166
|
+
self._Country = params.get("Country")
|
167
|
+
self._City = params.get("City")
|
168
|
+
self._Region = params.get("Region")
|
169
|
+
self._Timezone = params.get("Timezone")
|
170
|
+
self._Address = params.get("Address")
|
171
|
+
memeber_set = set(params.keys())
|
172
|
+
for name, value in vars(self).items():
|
173
|
+
property_name = name[1:]
|
174
|
+
if property_name in memeber_set:
|
175
|
+
memeber_set.remove(property_name)
|
176
|
+
if len(memeber_set) > 0:
|
177
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
178
|
+
|
179
|
+
|
180
|
+
|
85
181
|
class Character(AbstractModel):
|
86
182
|
"""人物描述
|
87
183
|
|
@@ -237,6 +333,8 @@ class ChatCompletionsRequest(AbstractModel):
|
|
237
333
|
:type EnableRecommendedQuestions: bool
|
238
334
|
:param _EnableDeepRead: 是否开启深度阅读,默认是false,在值为true时,会返回深度阅读的结果信息。说明:1.深度阅读需要开启插件增强,即设置EnableEnhancement为true,当设置EnableDeepRead为true时EnableEnhancement默认为true;2.目前暂时只支持单文档单轮的深度阅读;3.深度阅读功能的文件上传可以使用FilesUploads接口,具体参数详见FilesUploads接口文档
|
239
335
|
:type EnableDeepRead: bool
|
336
|
+
:param _WebSearchOptions: 知识注入相关的参数信息
|
337
|
+
:type WebSearchOptions: :class:`tencentcloud.hunyuan.v20230901.models.WebSearchOptions`
|
240
338
|
"""
|
241
339
|
self._Model = None
|
242
340
|
self._Messages = None
|
@@ -258,6 +356,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
258
356
|
self._Stop = None
|
259
357
|
self._EnableRecommendedQuestions = None
|
260
358
|
self._EnableDeepRead = None
|
359
|
+
self._WebSearchOptions = None
|
261
360
|
|
262
361
|
@property
|
263
362
|
def Model(self):
|
@@ -536,6 +635,17 @@ class ChatCompletionsRequest(AbstractModel):
|
|
536
635
|
def EnableDeepRead(self, EnableDeepRead):
|
537
636
|
self._EnableDeepRead = EnableDeepRead
|
538
637
|
|
638
|
+
@property
|
639
|
+
def WebSearchOptions(self):
|
640
|
+
"""知识注入相关的参数信息
|
641
|
+
:rtype: :class:`tencentcloud.hunyuan.v20230901.models.WebSearchOptions`
|
642
|
+
"""
|
643
|
+
return self._WebSearchOptions
|
644
|
+
|
645
|
+
@WebSearchOptions.setter
|
646
|
+
def WebSearchOptions(self, WebSearchOptions):
|
647
|
+
self._WebSearchOptions = WebSearchOptions
|
648
|
+
|
539
649
|
|
540
650
|
def _deserialize(self, params):
|
541
651
|
self._Model = params.get("Model")
|
@@ -570,6 +680,9 @@ class ChatCompletionsRequest(AbstractModel):
|
|
570
680
|
self._Stop = params.get("Stop")
|
571
681
|
self._EnableRecommendedQuestions = params.get("EnableRecommendedQuestions")
|
572
682
|
self._EnableDeepRead = params.get("EnableDeepRead")
|
683
|
+
if params.get("WebSearchOptions") is not None:
|
684
|
+
self._WebSearchOptions = WebSearchOptions()
|
685
|
+
self._WebSearchOptions._deserialize(params.get("WebSearchOptions"))
|
573
686
|
memeber_set = set(params.keys())
|
574
687
|
for name, value in vars(self).items():
|
575
688
|
property_name = name[1:]
|
@@ -1657,7 +1770,7 @@ class File3D(AbstractModel):
|
|
1657
1770
|
r"""
|
1658
1771
|
:param _Type: 3D文件的格式。取值范围:GIF, OBJ
|
1659
1772
|
:type Type: str
|
1660
|
-
:param _Url: 文件的Url
|
1773
|
+
:param _Url: 文件的Url(有效期24小时)
|
1661
1774
|
:type Url: str
|
1662
1775
|
"""
|
1663
1776
|
self._Type = None
|
@@ -1676,7 +1789,7 @@ class File3D(AbstractModel):
|
|
1676
1789
|
|
1677
1790
|
@property
|
1678
1791
|
def Url(self):
|
1679
|
-
"""文件的Url
|
1792
|
+
"""文件的Url(有效期24小时)
|
1680
1793
|
:rtype: str
|
1681
1794
|
"""
|
1682
1795
|
return self._Url
|
@@ -4074,6 +4187,42 @@ class ImageUrl(AbstractModel):
|
|
4074
4187
|
|
4075
4188
|
|
4076
4189
|
|
4190
|
+
class Knowledge(AbstractModel):
|
4191
|
+
"""外部知识
|
4192
|
+
|
4193
|
+
"""
|
4194
|
+
|
4195
|
+
def __init__(self):
|
4196
|
+
r"""
|
4197
|
+
:param _Text: 表示具体的知识信息文本
|
4198
|
+
:type Text: str
|
4199
|
+
"""
|
4200
|
+
self._Text = None
|
4201
|
+
|
4202
|
+
@property
|
4203
|
+
def Text(self):
|
4204
|
+
"""表示具体的知识信息文本
|
4205
|
+
:rtype: str
|
4206
|
+
"""
|
4207
|
+
return self._Text
|
4208
|
+
|
4209
|
+
@Text.setter
|
4210
|
+
def Text(self, Text):
|
4211
|
+
self._Text = Text
|
4212
|
+
|
4213
|
+
|
4214
|
+
def _deserialize(self, params):
|
4215
|
+
self._Text = params.get("Text")
|
4216
|
+
memeber_set = set(params.keys())
|
4217
|
+
for name, value in vars(self).items():
|
4218
|
+
property_name = name[1:]
|
4219
|
+
if property_name in memeber_set:
|
4220
|
+
memeber_set.remove(property_name)
|
4221
|
+
if len(memeber_set) > 0:
|
4222
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4223
|
+
|
4224
|
+
|
4225
|
+
|
4077
4226
|
class LogoParam(AbstractModel):
|
4078
4227
|
"""logo参数
|
4079
4228
|
|
@@ -6440,9 +6589,15 @@ class SubmitHunyuanTo3DJobRequest(AbstractModel):
|
|
6440
6589
|
r"""
|
6441
6590
|
:param _Prompt: 3D内容的描述,中文正向提示词。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
6442
6591
|
:type Prompt: str
|
6443
|
-
:param _ImageBase64: 输入图 Base64
|
6592
|
+
:param _ImageBase64: 输入图 Base64 数据。
|
6593
|
+
大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
6594
|
+
格式:jpg,png,jpeg,webp。
|
6595
|
+
ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
6444
6596
|
:type ImageBase64: str
|
6445
|
-
:param _ImageUrl: 输入图Url
|
6597
|
+
:param _ImageUrl: 输入图Url。
|
6598
|
+
大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
6599
|
+
格式:jpg,png,jpeg,webp。
|
6600
|
+
ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
6446
6601
|
:type ImageUrl: str
|
6447
6602
|
:param _Num: 生成数量。默认1,当前限制只能为1。
|
6448
6603
|
:type Num: int
|
@@ -6465,7 +6620,10 @@ class SubmitHunyuanTo3DJobRequest(AbstractModel):
|
|
6465
6620
|
|
6466
6621
|
@property
|
6467
6622
|
def ImageBase64(self):
|
6468
|
-
"""输入图 Base64
|
6623
|
+
"""输入图 Base64 数据。
|
6624
|
+
大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
6625
|
+
格式:jpg,png,jpeg,webp。
|
6626
|
+
ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
6469
6627
|
:rtype: str
|
6470
6628
|
"""
|
6471
6629
|
return self._ImageBase64
|
@@ -6476,7 +6634,10 @@ class SubmitHunyuanTo3DJobRequest(AbstractModel):
|
|
6476
6634
|
|
6477
6635
|
@property
|
6478
6636
|
def ImageUrl(self):
|
6479
|
-
"""输入图Url
|
6637
|
+
"""输入图Url。
|
6638
|
+
大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
6639
|
+
格式:jpg,png,jpeg,webp。
|
6640
|
+
ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
6480
6641
|
:rtype: str
|
6481
6642
|
"""
|
6482
6643
|
return self._ImageUrl
|
@@ -6519,7 +6680,7 @@ class SubmitHunyuanTo3DJobResponse(AbstractModel):
|
|
6519
6680
|
|
6520
6681
|
def __init__(self):
|
6521
6682
|
r"""
|
6522
|
-
:param _JobId: 任务id
|
6683
|
+
:param _JobId: 任务id(有效期24小时)
|
6523
6684
|
:type JobId: str
|
6524
6685
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6525
6686
|
:type RequestId: str
|
@@ -6529,7 +6690,7 @@ class SubmitHunyuanTo3DJobResponse(AbstractModel):
|
|
6529
6690
|
|
6530
6691
|
@property
|
6531
6692
|
def JobId(self):
|
6532
|
-
"""任务id
|
6693
|
+
"""任务id(有效期24小时)
|
6533
6694
|
:rtype: str
|
6534
6695
|
"""
|
6535
6696
|
return self._JobId
|
@@ -7764,4 +7925,115 @@ class Usage(AbstractModel):
|
|
7764
7925
|
memeber_set.remove(property_name)
|
7765
7926
|
if len(memeber_set) > 0:
|
7766
7927
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7928
|
+
|
7929
|
+
|
7930
|
+
|
7931
|
+
class UserLocation(AbstractModel):
|
7932
|
+
"""用户位置详细信息
|
7933
|
+
|
7934
|
+
"""
|
7935
|
+
|
7936
|
+
def __init__(self):
|
7937
|
+
r"""
|
7938
|
+
:param _Type: 表示位置类型
|
7939
|
+
:type Type: str
|
7940
|
+
:param _Approximate: 用户近似位置的详细信息
|
7941
|
+
:type Approximate: :class:`tencentcloud.hunyuan.v20230901.models.Approximate`
|
7942
|
+
"""
|
7943
|
+
self._Type = None
|
7944
|
+
self._Approximate = None
|
7945
|
+
|
7946
|
+
@property
|
7947
|
+
def Type(self):
|
7948
|
+
"""表示位置类型
|
7949
|
+
:rtype: str
|
7950
|
+
"""
|
7951
|
+
return self._Type
|
7952
|
+
|
7953
|
+
@Type.setter
|
7954
|
+
def Type(self, Type):
|
7955
|
+
self._Type = Type
|
7956
|
+
|
7957
|
+
@property
|
7958
|
+
def Approximate(self):
|
7959
|
+
"""用户近似位置的详细信息
|
7960
|
+
:rtype: :class:`tencentcloud.hunyuan.v20230901.models.Approximate`
|
7961
|
+
"""
|
7962
|
+
return self._Approximate
|
7963
|
+
|
7964
|
+
@Approximate.setter
|
7965
|
+
def Approximate(self, Approximate):
|
7966
|
+
self._Approximate = Approximate
|
7967
|
+
|
7968
|
+
|
7969
|
+
def _deserialize(self, params):
|
7970
|
+
self._Type = params.get("Type")
|
7971
|
+
if params.get("Approximate") is not None:
|
7972
|
+
self._Approximate = Approximate()
|
7973
|
+
self._Approximate._deserialize(params.get("Approximate"))
|
7974
|
+
memeber_set = set(params.keys())
|
7975
|
+
for name, value in vars(self).items():
|
7976
|
+
property_name = name[1:]
|
7977
|
+
if property_name in memeber_set:
|
7978
|
+
memeber_set.remove(property_name)
|
7979
|
+
if len(memeber_set) > 0:
|
7980
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7981
|
+
|
7982
|
+
|
7983
|
+
|
7984
|
+
class WebSearchOptions(AbstractModel):
|
7985
|
+
"""知识注入相关的参数信息
|
7986
|
+
|
7987
|
+
"""
|
7988
|
+
|
7989
|
+
def __init__(self):
|
7990
|
+
r"""
|
7991
|
+
:param _Knowledge: 表示用户注入的知识信息
|
7992
|
+
:type Knowledge: list of Knowledge
|
7993
|
+
:param _UserLocation: 用户位置详细信息
|
7994
|
+
:type UserLocation: :class:`tencentcloud.hunyuan.v20230901.models.UserLocation`
|
7995
|
+
"""
|
7996
|
+
self._Knowledge = None
|
7997
|
+
self._UserLocation = None
|
7998
|
+
|
7999
|
+
@property
|
8000
|
+
def Knowledge(self):
|
8001
|
+
"""表示用户注入的知识信息
|
8002
|
+
:rtype: list of Knowledge
|
8003
|
+
"""
|
8004
|
+
return self._Knowledge
|
8005
|
+
|
8006
|
+
@Knowledge.setter
|
8007
|
+
def Knowledge(self, Knowledge):
|
8008
|
+
self._Knowledge = Knowledge
|
8009
|
+
|
8010
|
+
@property
|
8011
|
+
def UserLocation(self):
|
8012
|
+
"""用户位置详细信息
|
8013
|
+
:rtype: :class:`tencentcloud.hunyuan.v20230901.models.UserLocation`
|
8014
|
+
"""
|
8015
|
+
return self._UserLocation
|
8016
|
+
|
8017
|
+
@UserLocation.setter
|
8018
|
+
def UserLocation(self, UserLocation):
|
8019
|
+
self._UserLocation = UserLocation
|
8020
|
+
|
8021
|
+
|
8022
|
+
def _deserialize(self, params):
|
8023
|
+
if params.get("Knowledge") is not None:
|
8024
|
+
self._Knowledge = []
|
8025
|
+
for item in params.get("Knowledge"):
|
8026
|
+
obj = Knowledge()
|
8027
|
+
obj._deserialize(item)
|
8028
|
+
self._Knowledge.append(obj)
|
8029
|
+
if params.get("UserLocation") is not None:
|
8030
|
+
self._UserLocation = UserLocation()
|
8031
|
+
self._UserLocation._deserialize(params.get("UserLocation"))
|
8032
|
+
memeber_set = set(params.keys())
|
8033
|
+
for name, value in vars(self).items():
|
8034
|
+
property_name = name[1:]
|
8035
|
+
if property_name in memeber_set:
|
8036
|
+
memeber_set.remove(property_name)
|
8037
|
+
if len(memeber_set) > 0:
|
8038
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7767
8039
|
|
@@ -246,28 +246,33 @@ class AnalyzeFaceRequest(AbstractModel):
|
|
246
246
|
|
247
247
|
def __init__(self):
|
248
248
|
r"""
|
249
|
-
:param _Mode: 检测模式。
|
249
|
+
:param _Mode: 检测模式。
|
250
|
+
- 取值范围:0 为检测所有出现的人脸, 1 为检测面积最大的人脸。
|
251
|
+
- 默认为 0。
|
252
|
+
- 最多返回 10 张人脸的五官定位(人脸关键点)具体信息。
|
250
253
|
:type Mode: int
|
251
|
-
:param _Image: 图片 base64
|
252
|
-
|
254
|
+
:param _Image: 图片 base64 数据。
|
255
|
+
- base64 编码后大小不可超过5M。
|
256
|
+
- 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
253
257
|
:type Image: str
|
254
|
-
:param _Url: 图片的 Url
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
258
|
+
:param _Url: 图片的 Url 。
|
259
|
+
- 对应图片 base64 编码后大小不可超过5M。
|
260
|
+
- Url、Image必须提供一个,如果都提供,只使用 Url。
|
261
|
+
- 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
|
262
|
+
- 非腾讯云存储的Url速度和稳定性可能受一定影响。
|
263
|
+
- 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
259
264
|
:type Url: str
|
260
265
|
:param _FaceModelVersion: 人脸识别服务所用的算法模型版本。
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
2020年11月26日后开通服务的账号仅支持输入“3.0”。
|
267
|
-
|
268
|
-
不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
|
266
|
+
- 目前入参支持 “2.0”和“3.0“ 两个输入。
|
267
|
+
- 2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。
|
268
|
+
- 2020年11月26日后开通服务的账号仅支持输入“3.0”。
|
269
|
+
- 不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
|
269
270
|
:type FaceModelVersion: str
|
270
|
-
:param _NeedRotateDetection: 是否开启图片旋转识别支持。
|
271
|
+
:param _NeedRotateDetection: 是否开启图片旋转识别支持。
|
272
|
+
- 取值范围:0为不开启,1为开启。
|
273
|
+
- 默认为0。
|
274
|
+
- 本参数的作用为,当图片中的人脸被旋转且图片没有exif信息时,如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。
|
275
|
+
- 若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况,请不要开启本参数。开启后,整体耗时将可能增加数百毫秒。
|
271
276
|
:type NeedRotateDetection: int
|
272
277
|
"""
|
273
278
|
self._Mode = None
|
@@ -278,7 +283,10 @@ Url、Image必须提供一个,如果都提供,只使用 Url。
|
|
278
283
|
|
279
284
|
@property
|
280
285
|
def Mode(self):
|
281
|
-
"""检测模式。
|
286
|
+
"""检测模式。
|
287
|
+
- 取值范围:0 为检测所有出现的人脸, 1 为检测面积最大的人脸。
|
288
|
+
- 默认为 0。
|
289
|
+
- 最多返回 10 张人脸的五官定位(人脸关键点)具体信息。
|
282
290
|
:rtype: int
|
283
291
|
"""
|
284
292
|
return self._Mode
|
@@ -289,8 +297,9 @@ Url、Image必须提供一个,如果都提供,只使用 Url。
|
|
289
297
|
|
290
298
|
@property
|
291
299
|
def Image(self):
|
292
|
-
"""图片 base64
|
293
|
-
|
300
|
+
"""图片 base64 数据。
|
301
|
+
- base64 编码后大小不可超过5M。
|
302
|
+
- 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
294
303
|
:rtype: str
|
295
304
|
"""
|
296
305
|
return self._Image
|
@@ -301,11 +310,12 @@ Url、Image必须提供一个,如果都提供,只使用 Url。
|
|
301
310
|
|
302
311
|
@property
|
303
312
|
def Url(self):
|
304
|
-
"""图片的 Url
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
313
|
+
"""图片的 Url 。
|
314
|
+
- 对应图片 base64 编码后大小不可超过5M。
|
315
|
+
- Url、Image必须提供一个,如果都提供,只使用 Url。
|
316
|
+
- 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
|
317
|
+
- 非腾讯云存储的Url速度和稳定性可能受一定影响。
|
318
|
+
- 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
309
319
|
:rtype: str
|
310
320
|
"""
|
311
321
|
return self._Url
|
@@ -317,14 +327,10 @@ Url、Image必须提供一个,如果都提供,只使用 Url。
|
|
317
327
|
@property
|
318
328
|
def FaceModelVersion(self):
|
319
329
|
"""人脸识别服务所用的算法模型版本。
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
2020年11月26日后开通服务的账号仅支持输入“3.0”。
|
326
|
-
|
327
|
-
不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
|
330
|
+
- 目前入参支持 “2.0”和“3.0“ 两个输入。
|
331
|
+
- 2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。
|
332
|
+
- 2020年11月26日后开通服务的账号仅支持输入“3.0”。
|
333
|
+
- 不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
|
328
334
|
:rtype: str
|
329
335
|
"""
|
330
336
|
return self._FaceModelVersion
|
@@ -335,7 +341,11 @@ Url、Image必须提供一个,如果都提供,只使用 Url。
|
|
335
341
|
|
336
342
|
@property
|
337
343
|
def NeedRotateDetection(self):
|
338
|
-
"""是否开启图片旋转识别支持。
|
344
|
+
"""是否开启图片旋转识别支持。
|
345
|
+
- 取值范围:0为不开启,1为开启。
|
346
|
+
- 默认为0。
|
347
|
+
- 本参数的作用为,当图片中的人脸被旋转且图片没有exif信息时,如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。
|
348
|
+
- 若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况,请不要开启本参数。开启后,整体耗时将可能增加数百毫秒。
|
339
349
|
:rtype: int
|
340
350
|
"""
|
341
351
|
return self._NeedRotateDetection
|
@@ -1681,6 +1681,8 @@ class DescribeInstanceBackupsResponse(AbstractModel):
|
|
1681
1681
|
|
1682
1682
|
@property
|
1683
1683
|
def BackupSet(self):
|
1684
|
+
warnings.warn("parameter `BackupSet` is deprecated", DeprecationWarning)
|
1685
|
+
|
1684
1686
|
"""废弃字段。
|
1685
1687
|
:rtype: list of BinlogInfo
|
1686
1688
|
"""
|
@@ -1688,6 +1690,8 @@ class DescribeInstanceBackupsResponse(AbstractModel):
|
|
1688
1690
|
|
1689
1691
|
@BackupSet.setter
|
1690
1692
|
def BackupSet(self, BackupSet):
|
1693
|
+
warnings.warn("parameter `BackupSet` is deprecated", DeprecationWarning)
|
1694
|
+
|
1691
1695
|
self._BackupSet = BackupSet
|
1692
1696
|
|
1693
1697
|
@property
|
@@ -2400,7 +2400,7 @@ class LighthouseClient(AbstractClient):
|
|
2400
2400
|
|
2401
2401
|
|
2402
2402
|
def ResizeDisks(self, request):
|
2403
|
-
"""本接口(ResizeDisks)
|
2403
|
+
"""本接口(ResizeDisks)用于扩容云硬盘。该操作目前仅支持云硬盘类型为数据盘且状态处于ATTACHED(已挂载)或 UNATTACHED(待挂载)的云硬盘。
|
2404
2404
|
|
2405
2405
|
:param request: Request instance for ResizeDisks.
|
2406
2406
|
:type request: :class:`tencentcloud.lighthouse.v20200324.models.ResizeDisksRequest`
|
@@ -5080,7 +5080,7 @@ disk-usage
|
|
5080
5080
|
按照【云硬盘类型】进行过滤。
|
5081
5081
|
类型:String
|
5082
5082
|
必选:否
|
5083
|
-
取值:SYSTEM_DISK
|
5083
|
+
取值:SYSTEM_DISK(系统盘)或 DATA_DISK(数据盘)
|
5084
5084
|
disk-state
|
5085
5085
|
按照【云硬盘状态】进行过滤。
|
5086
5086
|
类型:String
|
@@ -5138,7 +5138,7 @@ disk-usage
|
|
5138
5138
|
按照【云硬盘类型】进行过滤。
|
5139
5139
|
类型:String
|
5140
5140
|
必选:否
|
5141
|
-
取值:SYSTEM_DISK
|
5141
|
+
取值:SYSTEM_DISK(系统盘)或 DATA_DISK(数据盘)
|
5142
5142
|
disk-state
|
5143
5143
|
按照【云硬盘状态】进行过滤。
|
5144
5144
|
类型:String
|
@@ -6587,7 +6587,7 @@ class DescribeFirewallTemplatesRequest(AbstractModel):
|
|
6587
6587
|
<li>template-type</li>按照【防火墙模板的类型】进行过滤。
|
6588
6588
|
类型:String
|
6589
6589
|
必选:否
|
6590
|
-
取值: "PRIVATE"(
|
6590
|
+
取值: "PRIVATE"(个人模板)
|
6591
6591
|
每次请求的 Filters 的上限为 10,Filter.Values 的上限为 100。参数不支持同时指定 TemplateIds 和 Filters。
|
6592
6592
|
:type Filters: list of Filter
|
6593
6593
|
:param _Offset: 偏移量,默认为 0。
|
@@ -6623,7 +6623,7 @@ class DescribeFirewallTemplatesRequest(AbstractModel):
|
|
6623
6623
|
<li>template-type</li>按照【防火墙模板的类型】进行过滤。
|
6624
6624
|
类型:String
|
6625
6625
|
必选:否
|
6626
|
-
取值: "PRIVATE"(
|
6626
|
+
取值: "PRIVATE"(个人模板)
|
6627
6627
|
每次请求的 Filters 的上限为 10,Filter.Values 的上限为 100。参数不支持同时指定 TemplateIds 和 Filters。
|
6628
6628
|
:rtype: list of Filter
|
6629
6629
|
"""
|
@@ -11160,7 +11160,7 @@ class FirewallTemplate(AbstractModel):
|
|
11160
11160
|
:type TemplateId: str
|
11161
11161
|
:param _TemplateName: 模板名称。
|
11162
11162
|
:type TemplateName: str
|
11163
|
-
:param _TemplateType: 模板类型。取值: "PRIVATE"(
|
11163
|
+
:param _TemplateType: 模板类型。取值: "PRIVATE"(个人模板)
|
11164
11164
|
:type TemplateType: str
|
11165
11165
|
:param _TemplateState: 模板状态。取值: "NORMAL"(正常)
|
11166
11166
|
:type TemplateState: str
|
@@ -11197,7 +11197,7 @@ class FirewallTemplate(AbstractModel):
|
|
11197
11197
|
|
11198
11198
|
@property
|
11199
11199
|
def TemplateType(self):
|
11200
|
-
"""模板类型。取值: "PRIVATE"(
|
11200
|
+
"""模板类型。取值: "PRIVATE"(个人模板)
|
11201
11201
|
:rtype: str
|
11202
11202
|
"""
|
11203
11203
|
return self._TemplateType
|