tencentcloud-sdk-python 3.0.1237__py2.py3-none-any.whl → 3.0.1239__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/apigateway/v20180808/apigateway_client.py +23 -0
- tencentcloud/apigateway/v20180808/models.py +31 -0
- tencentcloud/ccc/v20200210/ccc_client.py +23 -0
- tencentcloud/ccc/v20200210/models.py +319 -0
- tencentcloud/clb/v20180317/models.py +25 -1
- tencentcloud/cme/v20191029/models.py +12 -0
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +0 -25
- tencentcloud/cynosdb/v20190107/models.py +0 -130
- tencentcloud/emr/v20190103/emr_client.py +46 -0
- tencentcloud/emr/v20190103/models.py +455 -3
- tencentcloud/ess/v20201111/ess_client.py +1 -1
- tencentcloud/ess/v20201111/models.py +26 -0
- tencentcloud/essbasic/v20210526/models.py +27 -0
- tencentcloud/faceid/v20180301/models.py +28 -0
- tencentcloud/iecp/v20210914/iecp_client.py +0 -500
- tencentcloud/iecp/v20210914/models.py +2130 -5305
- tencentcloud/ims/v20201229/ims_client.py +8 -3
- tencentcloud/ims/v20201229/models.py +2 -2
- tencentcloud/monitor/v20180724/models.py +0 -132
- tencentcloud/monitor/v20180724/monitor_client.py +0 -50
- tencentcloud/ocr/v20181119/models.py +2 -0
- tencentcloud/ocr/v20181119/ocr_client.py +1 -1
- tencentcloud/postgres/v20170312/models.py +626 -13
- tencentcloud/postgres/v20170312/postgres_client.py +69 -0
- tencentcloud/rce/v20201103/models.py +33 -22
- tencentcloud/redis/v20180412/errorcodes.py +3 -0
- tencentcloud/sms/v20190711/models.py +3 -3
- tencentcloud/sms/v20210111/models.py +9 -8
- tencentcloud/tcss/v20201101/models.py +257 -0
- tencentcloud/teo/v20220901/models.py +89 -7
- tencentcloud/tke/v20180525/models.py +1 -1
- tencentcloud/tke/v20220501/models.py +1 -1
- tencentcloud/tse/v20201207/models.py +26 -0
- tencentcloud/tsf/v20180326/models.py +0 -58
- tencentcloud/tsf/v20180326/tsf_client.py +0 -25
- tencentcloud/vod/v20180717/vod_client.py +9 -1
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- tencentcloud/wedata/v20210820/models.py +18 -0
- {tencentcloud_sdk_python-3.0.1237.dist-info → tencentcloud_sdk_python-3.0.1239.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1237.dist-info → tencentcloud_sdk_python-3.0.1239.dist-info}/RECORD +44 -44
- {tencentcloud_sdk_python-3.0.1237.dist-info → tencentcloud_sdk_python-3.0.1239.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1237.dist-info → tencentcloud_sdk_python-3.0.1239.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1237.dist-info → tencentcloud_sdk_python-3.0.1239.dist-info}/top_level.txt +0 -0
@@ -87,13 +87,18 @@ class ImsClient(AbstractClient):
|
|
87
87
|
- 支持在审核图片内容时同时关联账号或设备信息,可识别违规风险账号或设备。
|
88
88
|
|
89
89
|
### 接口调用说明:
|
90
|
-
-
|
90
|
+
- 图片文件大小限制:图片文件须大于256字节,Base64编码后的FileContent内容应小于10MB,FileURL的源图应小于30MB;
|
91
91
|
- 图片默认尺寸支持:**长和宽 需>50分辨率且<10000分辨率,并且图片长宽比<90:1;**
|
92
92
|
- 图片文件分辨率支持:建议**分辨率大于256x256**,否则可能会影响识别效果;
|
93
|
-
-
|
93
|
+
- 图片文件支持格式(无备注默认只支持静态图):BMP、ICO、JPEG、JNG、PNG、TIFF、RAW、SVG、GIF(静、动)、WEBP(静、动)、HEIC(静、动),动图在处理时,默认最多抽取5帧图像,并且每隔5帧进行一次采样;
|
94
94
|
- 图片文件链接支持的传输协议:HTTP、HTTPS;
|
95
|
-
-
|
95
|
+
- 图片审核仅支持单次传输一条URL进行审核,支持多并发请求。默认并发为100 QPS,超过此限制将返回`RequestLimitExceeded`错误;
|
96
|
+
- 若传入图片文件的访问链接时,为保障被检测图片的稳定性和可靠性,建议您使用腾讯云COS存储或者CDN缓存等。
|
96
97
|
|
98
|
+
### 图片下载说明:
|
99
|
+
- 下载时间限制:图片首次下载限制为3秒。如超过此时间,将重试一次,重试时间为3秒。如果重试仍超时,将返回 `ImageDownloadError`(下载超时);
|
100
|
+
- 网络安全策略:由于网络安全策略,带有重定向的链接(如HTTP返回302状态码)可能导致下载失败。请尽量避免使用此类链接,以确保下载顺利进行,可能返回 `ResourceUnavailable.ImageDownloadError`;
|
101
|
+
- 异步回源支持:目前不支持通过异步回源方式获取图片源。请确保使用直接链接,以避免下载失败。
|
97
102
|
|
98
103
|
<div class="rno-api-explorer" style="margin-bottom:20px">
|
99
104
|
<div class="rno-api-explorer-inner">
|
@@ -317,9 +317,9 @@ class ImageModerationRequest(AbstractModel):
|
|
317
317
|
:type BizType: str
|
318
318
|
:param _DataId: 该字段表示您为待检测对象分配的数据ID,传入后可方便您对文件进行标识和管理。<br>取值:由英文字母(大小写均可)、数字及四个特殊符号(_,-,@,#)组成,**长度不超过64个字符**。
|
319
319
|
:type DataId: str
|
320
|
-
:param _FileContent: 该字段表示待检测图片文件内容的Base64
|
320
|
+
:param _FileContent: 该字段表示待检测图片文件内容的Base64编码,由于云API对请求包体有大小限制,图片的**Base64编码内容大小不得超过10MB**。<br/>备注:**该字段与FileUrl必须选择输入其中一个**。<br />
|
321
321
|
:type FileContent: str
|
322
|
-
:param _FileUrl:
|
322
|
+
:param _FileUrl: 该字段表示待检测图片文件的访问链接,URL源图**大小不超过30MB**。<br />备注:该字段与FileContent必须选择输入其中一个。 <br />
|
323
323
|
:type FileUrl: str
|
324
324
|
:param _Interval: **GIF检测专用**,用于表示GIF截帧频率(每隔多少张图片抽取一帧进行检测);默认值为0,此时只会检测GIF的第一帧或不进行切分处理。<br>备注:Interval与MaxFrames参数需要组合使用。例如,Interval=3, MaxFrames=400,则代表在检测GIF时,将每间隔2帧检测一次且最多检测400帧。
|
325
325
|
:type Interval: int
|
@@ -2588,37 +2588,6 @@ class CLSNotice(AbstractModel):
|
|
2588
2588
|
|
2589
2589
|
|
2590
2590
|
|
2591
|
-
class CheckIsPrometheusNewUserRequest(AbstractModel):
|
2592
|
-
"""CheckIsPrometheusNewUser请求参数结构体
|
2593
|
-
|
2594
|
-
"""
|
2595
|
-
|
2596
|
-
|
2597
|
-
class CheckIsPrometheusNewUserResponse(AbstractModel):
|
2598
|
-
"""CheckIsPrometheusNewUser返回参数结构体
|
2599
|
-
|
2600
|
-
"""
|
2601
|
-
|
2602
|
-
def __init__(self):
|
2603
|
-
r"""
|
2604
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2605
|
-
:type RequestId: str
|
2606
|
-
"""
|
2607
|
-
self._RequestId = None
|
2608
|
-
|
2609
|
-
@property
|
2610
|
-
def RequestId(self):
|
2611
|
-
return self._RequestId
|
2612
|
-
|
2613
|
-
@RequestId.setter
|
2614
|
-
def RequestId(self, RequestId):
|
2615
|
-
self._RequestId = RequestId
|
2616
|
-
|
2617
|
-
|
2618
|
-
def _deserialize(self, params):
|
2619
|
-
self._RequestId = params.get("RequestId")
|
2620
|
-
|
2621
|
-
|
2622
2591
|
class CleanGrafanaInstanceRequest(AbstractModel):
|
2623
2592
|
"""CleanGrafanaInstance请求参数结构体
|
2624
2593
|
|
@@ -17814,107 +17783,6 @@ class DescribePrometheusInstancesResponse(AbstractModel):
|
|
17814
17783
|
self._RequestId = params.get("RequestId")
|
17815
17784
|
|
17816
17785
|
|
17817
|
-
class DescribePrometheusRecordRuleYamlRequest(AbstractModel):
|
17818
|
-
"""DescribePrometheusRecordRuleYaml请求参数结构体
|
17819
|
-
|
17820
|
-
"""
|
17821
|
-
|
17822
|
-
def __init__(self):
|
17823
|
-
r"""
|
17824
|
-
:param _InstanceId: 实例id
|
17825
|
-
:type InstanceId: str
|
17826
|
-
:param _Offset: 分页
|
17827
|
-
:type Offset: int
|
17828
|
-
:param _Limit: 分页
|
17829
|
-
:type Limit: int
|
17830
|
-
:param _Filters: 过滤,当前支持
|
17831
|
-
Name = Name
|
17832
|
-
Values = 目标名称列表
|
17833
|
-
:type Filters: list of Filter
|
17834
|
-
"""
|
17835
|
-
self._InstanceId = None
|
17836
|
-
self._Offset = None
|
17837
|
-
self._Limit = None
|
17838
|
-
self._Filters = None
|
17839
|
-
|
17840
|
-
@property
|
17841
|
-
def InstanceId(self):
|
17842
|
-
return self._InstanceId
|
17843
|
-
|
17844
|
-
@InstanceId.setter
|
17845
|
-
def InstanceId(self, InstanceId):
|
17846
|
-
self._InstanceId = InstanceId
|
17847
|
-
|
17848
|
-
@property
|
17849
|
-
def Offset(self):
|
17850
|
-
return self._Offset
|
17851
|
-
|
17852
|
-
@Offset.setter
|
17853
|
-
def Offset(self, Offset):
|
17854
|
-
self._Offset = Offset
|
17855
|
-
|
17856
|
-
@property
|
17857
|
-
def Limit(self):
|
17858
|
-
return self._Limit
|
17859
|
-
|
17860
|
-
@Limit.setter
|
17861
|
-
def Limit(self, Limit):
|
17862
|
-
self._Limit = Limit
|
17863
|
-
|
17864
|
-
@property
|
17865
|
-
def Filters(self):
|
17866
|
-
return self._Filters
|
17867
|
-
|
17868
|
-
@Filters.setter
|
17869
|
-
def Filters(self, Filters):
|
17870
|
-
self._Filters = Filters
|
17871
|
-
|
17872
|
-
|
17873
|
-
def _deserialize(self, params):
|
17874
|
-
self._InstanceId = params.get("InstanceId")
|
17875
|
-
self._Offset = params.get("Offset")
|
17876
|
-
self._Limit = params.get("Limit")
|
17877
|
-
if params.get("Filters") is not None:
|
17878
|
-
self._Filters = []
|
17879
|
-
for item in params.get("Filters"):
|
17880
|
-
obj = Filter()
|
17881
|
-
obj._deserialize(item)
|
17882
|
-
self._Filters.append(obj)
|
17883
|
-
memeber_set = set(params.keys())
|
17884
|
-
for name, value in vars(self).items():
|
17885
|
-
property_name = name[1:]
|
17886
|
-
if property_name in memeber_set:
|
17887
|
-
memeber_set.remove(property_name)
|
17888
|
-
if len(memeber_set) > 0:
|
17889
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
17890
|
-
|
17891
|
-
|
17892
|
-
|
17893
|
-
class DescribePrometheusRecordRuleYamlResponse(AbstractModel):
|
17894
|
-
"""DescribePrometheusRecordRuleYaml返回参数结构体
|
17895
|
-
|
17896
|
-
"""
|
17897
|
-
|
17898
|
-
def __init__(self):
|
17899
|
-
r"""
|
17900
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
17901
|
-
:type RequestId: str
|
17902
|
-
"""
|
17903
|
-
self._RequestId = None
|
17904
|
-
|
17905
|
-
@property
|
17906
|
-
def RequestId(self):
|
17907
|
-
return self._RequestId
|
17908
|
-
|
17909
|
-
@RequestId.setter
|
17910
|
-
def RequestId(self, RequestId):
|
17911
|
-
self._RequestId = RequestId
|
17912
|
-
|
17913
|
-
|
17914
|
-
def _deserialize(self, params):
|
17915
|
-
self._RequestId = params.get("RequestId")
|
17916
|
-
|
17917
|
-
|
17918
17786
|
class DescribePrometheusRecordRulesRequest(AbstractModel):
|
17919
17787
|
"""DescribePrometheusRecordRules请求参数结构体
|
17920
17788
|
|
@@ -95,31 +95,6 @@ class MonitorClient(AbstractClient):
|
|
95
95
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
96
96
|
|
97
97
|
|
98
|
-
def CheckIsPrometheusNewUser(self, request):
|
99
|
-
"""接口功能是检查是否为prometheus新用户,已有其他功能更加全面的接口替代
|
100
|
-
|
101
|
-
判断用户是否为云原生监控新用户,即在任何地域下均未创建过监控实例的用户
|
102
|
-
|
103
|
-
:param request: Request instance for CheckIsPrometheusNewUser.
|
104
|
-
:type request: :class:`tencentcloud.monitor.v20180724.models.CheckIsPrometheusNewUserRequest`
|
105
|
-
:rtype: :class:`tencentcloud.monitor.v20180724.models.CheckIsPrometheusNewUserResponse`
|
106
|
-
|
107
|
-
"""
|
108
|
-
try:
|
109
|
-
params = request._serialize()
|
110
|
-
headers = request.headers
|
111
|
-
body = self.call("CheckIsPrometheusNewUser", params, headers=headers)
|
112
|
-
response = json.loads(body)
|
113
|
-
model = models.CheckIsPrometheusNewUserResponse()
|
114
|
-
model._deserialize(response["Response"])
|
115
|
-
return model
|
116
|
-
except Exception as e:
|
117
|
-
if isinstance(e, TencentCloudSDKException):
|
118
|
-
raise
|
119
|
-
else:
|
120
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
121
|
-
|
122
|
-
|
123
98
|
def CleanGrafanaInstance(self, request):
|
124
99
|
"""强制销毁 Grafana 实例
|
125
100
|
|
@@ -2205,31 +2180,6 @@ class MonitorClient(AbstractClient):
|
|
2205
2180
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2206
2181
|
|
2207
2182
|
|
2208
|
-
def DescribePrometheusRecordRuleYaml(self, request):
|
2209
|
-
"""DescribePrometheusRecordRules 接口可完全代替该接口。近30天仅有3次调用,且都是报错请求
|
2210
|
-
|
2211
|
-
拉取Prometheus聚合规则yaml列表
|
2212
|
-
|
2213
|
-
:param request: Request instance for DescribePrometheusRecordRuleYaml.
|
2214
|
-
:type request: :class:`tencentcloud.monitor.v20180724.models.DescribePrometheusRecordRuleYamlRequest`
|
2215
|
-
:rtype: :class:`tencentcloud.monitor.v20180724.models.DescribePrometheusRecordRuleYamlResponse`
|
2216
|
-
|
2217
|
-
"""
|
2218
|
-
try:
|
2219
|
-
params = request._serialize()
|
2220
|
-
headers = request.headers
|
2221
|
-
body = self.call("DescribePrometheusRecordRuleYaml", params, headers=headers)
|
2222
|
-
response = json.loads(body)
|
2223
|
-
model = models.DescribePrometheusRecordRuleYamlResponse()
|
2224
|
-
model._deserialize(response["Response"])
|
2225
|
-
return model
|
2226
|
-
except Exception as e:
|
2227
|
-
if isinstance(e, TencentCloudSDKException):
|
2228
|
-
raise
|
2229
|
-
else:
|
2230
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2231
|
-
|
2232
|
-
|
2233
2183
|
def DescribePrometheusRecordRules(self, request):
|
2234
2184
|
"""获取聚合规则列表,包含关联集群内crd资源创建的record rule
|
2235
2185
|
|
@@ -2871,6 +2871,8 @@ HmtResidentPermitFront: 港澳台居住证正面
|
|
2871
2871
|
HmtResidentPermitBack: 港澳台居住证背面
|
2872
2872
|
EstateCert: 不动产证
|
2873
2873
|
BizLicense: 营业执照
|
2874
|
+
ForeignPermanentResidentFront: 外国人永居证正面识别
|
2875
|
+
ForeignPermanentResidentBack: 外国人永居证背面识别
|
2874
2876
|
:type DiscernType: list of str
|
2875
2877
|
"""
|
2876
2878
|
self._ImageBase64 = None
|
@@ -1760,7 +1760,7 @@ class OcrClient(AbstractClient):
|
|
1760
1760
|
def RecognizeIndonesiaIDCardOCR(self, request):
|
1761
1761
|
"""印尼身份证识别
|
1762
1762
|
|
1763
|
-
默认接口请求频率限制:
|
1763
|
+
默认接口请求频率限制:5次/秒。
|
1764
1764
|
|
1765
1765
|
:param request: Request instance for RecognizeIndonesiaIDCardOCR.
|
1766
1766
|
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeIndonesiaIDCardOCRRequest`
|