tencentcloud-sdk-python 3.0.1233__py2.py3-none-any.whl → 3.0.1246__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/aiart/v20221229/aiart_client.py +34 -21
- tencentcloud/aiart/v20221229/models.py +6 -6
- tencentcloud/apigateway/v20180808/apigateway_client.py +23 -0
- tencentcloud/apigateway/v20180808/models.py +31 -0
- tencentcloud/apm/v20210622/errorcodes.py +3 -3
- tencentcloud/apm/v20210622/models.py +16 -15
- tencentcloud/asr/v20190614/asr_client.py +23 -0
- tencentcloud/asr/v20190614/models.py +203 -0
- tencentcloud/autoscaling/v20180419/models.py +55 -3
- tencentcloud/ca/__init__.py +0 -0
- tencentcloud/ca/v20230228/__init__.py +0 -0
- tencentcloud/ca/v20230228/ca_client.py +95 -0
- tencentcloud/ca/v20230228/errorcodes.py +30 -0
- tencentcloud/ca/v20230228/models.py +398 -0
- tencentcloud/ccc/v20200210/ccc_client.py +69 -0
- tencentcloud/ccc/v20200210/errorcodes.py +6 -0
- tencentcloud/ccc/v20200210/models.py +610 -0
- tencentcloud/cdb/v20170320/models.py +60 -0
- tencentcloud/cdn/v20180606/models.py +32 -0
- tencentcloud/cdwdoris/v20211228/models.py +105 -1
- tencentcloud/cfg/v20210820/models.py +12 -0
- tencentcloud/cfw/v20190904/models.py +4 -4
- tencentcloud/clb/v20180317/models.py +25 -1
- tencentcloud/cls/v20201016/models.py +12 -0
- tencentcloud/cme/v20191029/models.py +12 -0
- tencentcloud/csip/v20221121/models.py +1 -1
- tencentcloud/cvm/v20170312/cvm_client.py +23 -0
- tencentcloud/cvm/v20170312/errorcodes.py +4 -1
- tencentcloud/cvm/v20170312/models.py +202 -4
- tencentcloud/cwp/v20180228/cwp_client.py +3 -1
- tencentcloud/cwp/v20180228/models.py +241 -14
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +48 -73
- tencentcloud/cynosdb/v20190107/models.py +7 -134
- tencentcloud/dasb/v20191018/models.py +37 -0
- tencentcloud/dlc/v20210125/models.py +12 -0
- tencentcloud/dsgc/v20190723/models.py +1 -1
- tencentcloud/dts/v20211206/models.py +16 -16
- tencentcloud/emr/v20190103/emr_client.py +46 -0
- tencentcloud/emr/v20190103/models.py +467 -3
- tencentcloud/ess/v20201111/ess_client.py +19 -12
- tencentcloud/ess/v20201111/models.py +58 -22
- tencentcloud/essbasic/v20210526/essbasic_client.py +48 -9
- tencentcloud/essbasic/v20210526/models.py +174 -11
- tencentcloud/faceid/v20180301/models.py +28 -0
- tencentcloud/hunyuan/v20230901/models.py +1 -0
- tencentcloud/iecp/v20210914/iecp_client.py +0 -500
- tencentcloud/iecp/v20210914/models.py +2130 -5305
- tencentcloud/ims/v20201229/ims_client.py +9 -4
- tencentcloud/ims/v20201229/models.py +4 -4
- tencentcloud/lcic/v20220817/models.py +1 -1
- tencentcloud/lighthouse/v20200324/models.py +2 -2
- tencentcloud/lke/v20231130/lke_client.py +184 -0
- tencentcloud/lke/v20231130/models.py +2129 -881
- tencentcloud/mariadb/v20170312/mariadb_client.py +23 -0
- tencentcloud/mariadb/v20170312/models.py +94 -0
- tencentcloud/monitor/v20180724/models.py +0 -132
- tencentcloud/monitor/v20180724/monitor_client.py +0 -50
- tencentcloud/mps/v20190612/models.py +16 -3
- tencentcloud/mqtt/__init__.py +0 -0
- tencentcloud/mqtt/v20240516/__init__.py +0 -0
- tencentcloud/mqtt/v20240516/errorcodes.py +45 -0
- tencentcloud/mqtt/v20240516/models.py +3221 -0
- tencentcloud/mqtt/v20240516/mqtt_client.py +472 -0
- tencentcloud/mrs/v20200910/errorcodes.py +3 -0
- tencentcloud/mrs/v20200910/models.py +158 -27
- tencentcloud/ocr/v20181119/models.py +21 -0
- tencentcloud/ocr/v20181119/ocr_client.py +1 -1
- tencentcloud/omics/v20221128/models.py +245 -29
- tencentcloud/organization/v20210331/errorcodes.py +54 -0
- tencentcloud/organization/v20210331/models.py +483 -3
- tencentcloud/organization/v20210331/organization_client.py +46 -0
- 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/scf/v20180416/errorcodes.py +9 -12
- tencentcloud/ses/v20201002/models.py +65 -0
- tencentcloud/sms/v20190711/models.py +3 -3
- tencentcloud/sms/v20210111/models.py +9 -8
- tencentcloud/sqlserver/v20180328/models.py +1 -1
- tencentcloud/ssl/v20191205/models.py +114 -0
- tencentcloud/tcb/v20180608/models.py +25 -0
- tencentcloud/tcss/v20201101/models.py +269 -0
- tencentcloud/tcss/v20201101/tcss_client.py +3 -1
- tencentcloud/teo/v20220901/errorcodes.py +33 -0
- tencentcloud/teo/v20220901/models.py +4012 -2535
- tencentcloud/teo/v20220901/teo_client.py +254 -0
- tencentcloud/tke/v20180525/errorcodes.py +3 -0
- tencentcloud/tke/v20180525/models.py +748 -5
- tencentcloud/tke/v20180525/tke_client.py +92 -0
- 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/tts/v20190823/tts_client.py +4 -1
- tencentcloud/vclm/v20240523/models.py +25 -0
- tencentcloud/vdb/v20230616/models.py +13 -0
- tencentcloud/vod/v20180717/models.py +91 -1
- tencentcloud/vod/v20180717/vod_client.py +10 -2
- tencentcloud/vpc/v20170312/errorcodes.py +9 -0
- tencentcloud/vpc/v20170312/models.py +2587 -539
- tencentcloud/vpc/v20170312/vpc_client.py +506 -0
- tencentcloud/waf/v20180125/models.py +447 -12
- tencentcloud/wedata/v20210820/models.py +18 -0
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/RECORD +110 -100
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -100,12 +100,14 @@ class AiartClient(AbstractClient):
|
|
100
100
|
|
101
101
|
|
102
102
|
def QueryDrawPortraitJob(self, request):
|
103
|
-
"""AI
|
104
|
-
|
105
|
-
|
106
|
-
-
|
103
|
+
"""AI 写真分为上传训练图片、训练写真模型(可选跳过)、生成写真图片3个环节,需要依次调用对应接口。
|
104
|
+
生成图片分为提交任务和查询任务2个接口:
|
105
|
+
|
106
|
+
- 提交生成写真图片任务:选择风格模板,提交一个生成写真图片异步任务,根据写真模型 ID 生成写真图片,获得任务 ID。
|
107
107
|
- 查询生成写真图片任务:根据任务 ID 查询生成图片任务的处理状态、处理结果。
|
108
108
|
|
109
|
+
每个写真模型自训练完成起1年内有效,有效期内可使用写真模型 ID 生成图片,期满后需要重新训练。
|
110
|
+
|
109
111
|
:param request: Request instance for QueryDrawPortraitJob.
|
110
112
|
:type request: :class:`tencentcloud.aiart.v20221229.models.QueryDrawPortraitJobRequest`
|
111
113
|
:rtype: :class:`tencentcloud.aiart.v20221229.models.QueryDrawPortraitJobResponse`
|
@@ -154,12 +156,15 @@ class AiartClient(AbstractClient):
|
|
154
156
|
|
155
157
|
|
156
158
|
def QueryTrainPortraitModelJob(self, request):
|
157
|
-
"""AI
|
158
|
-
|
159
|
-
训练模型分为提交任务和查询任务2
|
160
|
-
|
159
|
+
"""AI 写真分为上传训练图片、训练写真模型(可选跳过)、生成写真图片3个环节,需要依次调用对应接口。
|
160
|
+
如果选择免训练模式无需调用本接口。
|
161
|
+
训练模型分为提交任务和查询任务2个接口:
|
162
|
+
|
163
|
+
- 提交训练写真模型任务:完成上传图片后,提交一个训练写真模型异步任务,根据写真模型 ID 开始训练模型。
|
161
164
|
- 查询训练写真模型任务:根据写真模型 ID 查询训练任务的处理状态、处理结果。
|
162
165
|
|
166
|
+
每个写真模型自训练完成起1年内有效,有效期内可使用写真模型 ID 生成图片,期满后需要重新训练。
|
167
|
+
|
163
168
|
:param request: Request instance for QueryTrainPortraitModelJob.
|
164
169
|
:type request: :class:`tencentcloud.aiart.v20221229.models.QueryTrainPortraitModelJobRequest`
|
165
170
|
:rtype: :class:`tencentcloud.aiart.v20221229.models.QueryTrainPortraitModelJobResponse`
|
@@ -230,13 +235,14 @@ class AiartClient(AbstractClient):
|
|
230
235
|
|
231
236
|
|
232
237
|
def SubmitDrawPortraitJob(self, request):
|
233
|
-
"""AI
|
234
|
-
|
235
|
-
|
236
|
-
-
|
238
|
+
"""AI 写真分为上传训练图片、训练写真模型(可选跳过)、生成写真图片3个环节,需要依次调用对应接口。
|
239
|
+
生成图片分为提交任务和查询任务2个接口:
|
240
|
+
|
241
|
+
- 提交生成写真图片任务:选择风格模板,提交一个生成写真图片异步任务,根据写真模型 ID 生成写真图片,获得任务 ID。
|
237
242
|
- 查询生成写真图片任务:根据任务 ID 查询生成图片任务的处理状态、处理结果。
|
238
243
|
|
239
|
-
|
244
|
+
每个写真模型自训练完成起1年内有效,有效期内可使用写真模型 ID 生成图片,期满后需要重新训练。
|
245
|
+
提交生成写真图片任务默认提供1个并发。
|
240
246
|
|
241
247
|
:param request: Request instance for SubmitDrawPortraitJob.
|
242
248
|
:type request: :class:`tencentcloud.aiart.v20221229.models.SubmitDrawPortraitJobRequest`
|
@@ -286,12 +292,14 @@ class AiartClient(AbstractClient):
|
|
286
292
|
|
287
293
|
|
288
294
|
def SubmitTrainPortraitModelJob(self, request):
|
289
|
-
"""AI
|
290
|
-
|
291
|
-
训练模型分为提交任务和查询任务2
|
292
|
-
-
|
295
|
+
"""AI 写真分为上传训练图片、训练写真模型(可选跳过)、生成写真图片3个环节,需要依次调用对应接口。
|
296
|
+
如果选择免训练模式无需调用本接口。
|
297
|
+
训练模型分为提交任务和查询任务2个接口:
|
298
|
+
- 提交训练写真模型任务:完成上传图片后,提交一个训练写真模型异步任务,根据写真模型 ID 开始训练模型。
|
293
299
|
- 查询训练写真模型任务:根据写真模型 ID 查询训练任务的处理状态、处理结果。
|
294
|
-
|
300
|
+
|
301
|
+
每个写真模型自训练完成起1年内有效,有效期内可使用写真模型 ID 生成图片,期满后需要重新训练。
|
302
|
+
提交训练写真模型任务按并发计费,无默认并发额度。
|
295
303
|
|
296
304
|
:param request: Request instance for SubmitTrainPortraitModelJob.
|
297
305
|
:type request: :class:`tencentcloud.aiart.v20221229.models.SubmitTrainPortraitModelJobRequest`
|
@@ -341,9 +349,14 @@ class AiartClient(AbstractClient):
|
|
341
349
|
|
342
350
|
|
343
351
|
def UploadTrainPortraitImages(self, request):
|
344
|
-
"""AI
|
345
|
-
|
346
|
-
|
352
|
+
"""AI 写真分为上传训练图片、训练写真模型(可选跳过)、生成写真图片3个环节,需要依次调用对应接口。
|
353
|
+
本接口用于上传人像图片并指定对应的写真模型 ID。上传的图片要求是同一个人,建议上传单人、正脸、脸部区域占比较大、脸部清晰无遮挡、无大角度偏转、无夸张表情的图片。
|
354
|
+
可选模式:
|
355
|
+
- 常规训练模式:上传20 - 25张图片用于模型训练,完成训练后可生成写真图片。
|
356
|
+
- 快速训练模式:仅需上传1张图片用于模型训练,训练速度更快,完成训练后可生成写真图片。
|
357
|
+
- 免训练模式:仅需上传1张图片,跳过训练环节,直接生成写真图片。
|
358
|
+
|
359
|
+
上传写真训练图片默认提供1个并发。
|
347
360
|
|
348
361
|
:param request: Request instance for UploadTrainPortraitImages.
|
349
362
|
:type request: :class:`tencentcloud.aiart.v20221229.models.UploadTrainPortraitImagesRequest`
|
@@ -2044,21 +2044,21 @@ class UploadTrainPortraitImagesRequest(AbstractModel):
|
|
2044
2044
|
图片限制:单边分辨率小于2000,转成 Base64 字符串后小于 5MB。
|
2045
2045
|
|
2046
2046
|
:type BaseUrl: str
|
2047
|
-
:param _Urls: 写真模型训练用的图像 URL
|
2047
|
+
:param _Urls: 写真模型训练用的图像 URL 列表,仅常规训练模式需要上传。
|
2048
2048
|
图片数量:19 - 24 张。
|
2049
2049
|
图片内容:单人,脸部清晰,和基础图像中的人物为同一人。
|
2050
2050
|
图片限制:单边分辨率小于2000,转成 Base64 字符串后小于 5MB。
|
2051
|
-
|
2052
2051
|
:type Urls: list of str
|
2053
2052
|
:param _Filter: 训练图像质量过滤开关配置。
|
2054
2053
|
支持开启或关闭对训练图像分辨率下限、脸部区域大小、脸部遮挡的过滤,默认开启以上过滤。
|
2055
2054
|
如果训练图像内包含多人脸或无人脸、和 Base 人像不为同一人也将被过滤,不可关闭该过滤条件。
|
2056
2055
|
建议:关闭以上过滤可能导致写真生成效果受损,建议使用单人、正脸、脸部区域占比较大、脸部清晰无遮挡、无大角度偏转、无夸张表情的图像进行训练。
|
2057
2056
|
:type Filter: :class:`tencentcloud.aiart.v20221229.models.Filter`
|
2058
|
-
:param _TrainMode:
|
2059
|
-
|
2060
|
-
0
|
2061
|
-
1
|
2057
|
+
:param _TrainMode: 训练模式。
|
2058
|
+
默认使用常规训练模式。如果使用快速训练模式和免训练模式,只需要在 BaseUrl 中传入1张图片,Urls.N 中无需传入图片。
|
2059
|
+
0:常规训练模式,上传多张图片用于模型训练,完成训练后可生成写真图片。
|
2060
|
+
1:快速训练模式,仅需上传1张图片用于模型训练,训练速度更快,完成训练后可生成写真图片。
|
2061
|
+
2:免训练模式,仅需上传1张图片,跳过模型训练环节,直接生成写真图片。
|
2062
2062
|
:type TrainMode: int
|
2063
2063
|
"""
|
2064
2064
|
self._ModelId = None
|
@@ -1004,6 +1004,29 @@ class ApigatewayClient(AbstractClient):
|
|
1004
1004
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1005
1005
|
|
1006
1006
|
|
1007
|
+
def DescribeExclusiveInstanceRegions(self, request):
|
1008
|
+
"""Get the list of supported regions for dedicated instances
|
1009
|
+
|
1010
|
+
:param request: Request instance for DescribeExclusiveInstanceRegions.
|
1011
|
+
:type request: :class:`tencentcloud.apigateway.v20180808.models.DescribeExclusiveInstanceRegionsRequest`
|
1012
|
+
:rtype: :class:`tencentcloud.apigateway.v20180808.models.DescribeExclusiveInstanceRegionsResponse`
|
1013
|
+
|
1014
|
+
"""
|
1015
|
+
try:
|
1016
|
+
params = request._serialize()
|
1017
|
+
headers = request.headers
|
1018
|
+
body = self.call("DescribeExclusiveInstanceRegions", params, headers=headers)
|
1019
|
+
response = json.loads(body)
|
1020
|
+
model = models.DescribeExclusiveInstanceRegionsResponse()
|
1021
|
+
model._deserialize(response["Response"])
|
1022
|
+
return model
|
1023
|
+
except Exception as e:
|
1024
|
+
if isinstance(e, TencentCloudSDKException):
|
1025
|
+
raise
|
1026
|
+
else:
|
1027
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1028
|
+
|
1029
|
+
|
1007
1030
|
def DescribeExclusiveInstances(self, request):
|
1008
1031
|
"""本接口(DescribeExclusiveInstances)用于查询独享实例列表信息。
|
1009
1032
|
|
@@ -9037,6 +9037,37 @@ class DescribeExclusiveInstanceDetailResponse(AbstractModel):
|
|
9037
9037
|
self._RequestId = params.get("RequestId")
|
9038
9038
|
|
9039
9039
|
|
9040
|
+
class DescribeExclusiveInstanceRegionsRequest(AbstractModel):
|
9041
|
+
"""DescribeExclusiveInstanceRegions请求参数结构体
|
9042
|
+
|
9043
|
+
"""
|
9044
|
+
|
9045
|
+
|
9046
|
+
class DescribeExclusiveInstanceRegionsResponse(AbstractModel):
|
9047
|
+
"""DescribeExclusiveInstanceRegions返回参数结构体
|
9048
|
+
|
9049
|
+
"""
|
9050
|
+
|
9051
|
+
def __init__(self):
|
9052
|
+
r"""
|
9053
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9054
|
+
:type RequestId: str
|
9055
|
+
"""
|
9056
|
+
self._RequestId = None
|
9057
|
+
|
9058
|
+
@property
|
9059
|
+
def RequestId(self):
|
9060
|
+
return self._RequestId
|
9061
|
+
|
9062
|
+
@RequestId.setter
|
9063
|
+
def RequestId(self, RequestId):
|
9064
|
+
self._RequestId = RequestId
|
9065
|
+
|
9066
|
+
|
9067
|
+
def _deserialize(self, params):
|
9068
|
+
self._RequestId = params.get("RequestId")
|
9069
|
+
|
9070
|
+
|
9040
9071
|
class DescribeExclusiveInstancesRequest(AbstractModel):
|
9041
9072
|
"""DescribeExclusiveInstances请求参数结构体
|
9042
9073
|
|
@@ -38,7 +38,7 @@ FAILEDOPERATION_ACCESSTAGFAIL = 'FailedOperation.AccessTagFail'
|
|
38
38
|
# token信息不存在。
|
39
39
|
FAILEDOPERATION_APMCREDENTIALNOTEXIST = 'FailedOperation.ApmCredentialNotExist'
|
40
40
|
|
41
|
-
# appid
|
41
|
+
# appid和业务系统信息不匹配。
|
42
42
|
FAILEDOPERATION_APPIDNOTMATCHINSTANCEINFO = 'FailedOperation.AppIdNotMatchInstanceInfo'
|
43
43
|
|
44
44
|
# 未命中白名单且实例id为官方demo实例id时,不允许修改接口。
|
@@ -56,7 +56,7 @@ FAILEDOPERATION_INSTANCECANNOTMODIFY = 'FailedOperation.InstanceCannotModify'
|
|
56
56
|
# 实例ID为空。
|
57
57
|
FAILEDOPERATION_INSTANCEIDISEMPTY = 'FailedOperation.InstanceIdIsEmpty'
|
58
58
|
|
59
|
-
# apm
|
59
|
+
# apm业务系统不存在。
|
60
60
|
FAILEDOPERATION_INSTANCENOTFOUND = 'FailedOperation.InstanceNotFound'
|
61
61
|
|
62
62
|
# 非法实例id。
|
@@ -68,7 +68,7 @@ FAILEDOPERATION_INVALIDREGEX = 'FailedOperation.InvalidRegex'
|
|
68
68
|
# 不合法请求
|
69
69
|
FAILEDOPERATION_INVALIDREQUEST = 'FailedOperation.InvalidRequest'
|
70
70
|
|
71
|
-
#
|
71
|
+
# 业务系统和应用名不匹配。
|
72
72
|
FAILEDOPERATION_INVALIDSERVICENAME = 'FailedOperation.InvalidServiceName'
|
73
73
|
|
74
74
|
# Tag中指定了无效的Key
|
@@ -218,17 +218,17 @@ class ApmApplicationConfigView(AbstractModel):
|
|
218
218
|
|
219
219
|
def __init__(self):
|
220
220
|
r"""
|
221
|
-
:param _InstanceKey:
|
221
|
+
:param _InstanceKey: 业务系统ID
|
222
222
|
:type InstanceKey: str
|
223
|
-
:param _ServiceName:
|
223
|
+
:param _ServiceName: 应用名
|
224
224
|
:type ServiceName: str
|
225
225
|
:param _OperationNameFilter: 接口过滤
|
226
226
|
:type OperationNameFilter: str
|
227
|
-
:param _ExceptionFilter:
|
227
|
+
:param _ExceptionFilter: 错误类型过滤
|
228
228
|
:type ExceptionFilter: str
|
229
|
-
:param _ErrorCodeFilter:
|
229
|
+
:param _ErrorCodeFilter: HTTP状态码过滤
|
230
230
|
:type ErrorCodeFilter: str
|
231
|
-
:param _EventEnable:
|
231
|
+
:param _EventEnable: 应用诊断开关(已废弃)
|
232
232
|
注意:此字段可能返回 null,表示取不到有效值。
|
233
233
|
:type EventEnable: bool
|
234
234
|
:param _UrlConvergenceSwitch: URL收敛开关 0 关 1 开
|
@@ -241,23 +241,23 @@ class ApmApplicationConfigView(AbstractModel):
|
|
241
241
|
:type UrlExclude: str
|
242
242
|
:param _IsRelatedLog: 是否开启日志 0 关 1 开
|
243
243
|
:type IsRelatedLog: int
|
244
|
-
:param _LogSource:
|
244
|
+
:param _LogSource: 日志源
|
245
245
|
注意:此字段可能返回 null,表示取不到有效值。
|
246
246
|
:type LogSource: str
|
247
|
-
:param _LogSet:
|
247
|
+
:param _LogSet: 日志集
|
248
248
|
:type LogSet: str
|
249
|
-
:param _LogTopicID: 日志主题
|
249
|
+
:param _LogTopicID: 日志主题
|
250
250
|
:type LogTopicID: str
|
251
|
-
:param _SnapshotEnable:
|
251
|
+
:param _SnapshotEnable: 方法栈快照开关 true 开启 false 关闭
|
252
252
|
:type SnapshotEnable: bool
|
253
|
-
:param _SnapshotTimeout:
|
253
|
+
:param _SnapshotTimeout: 慢调用监听触发阈值
|
254
254
|
:type SnapshotTimeout: int
|
255
|
-
:param _AgentEnable:
|
255
|
+
:param _AgentEnable: 探针总开关
|
256
256
|
:type AgentEnable: bool
|
257
|
-
:param _InstrumentList:
|
257
|
+
:param _InstrumentList: 组件列表开关(已废弃)
|
258
258
|
注意:此字段可能返回 null,表示取不到有效值。
|
259
259
|
:type InstrumentList: list of Instrument
|
260
|
-
:param _TraceSquash:
|
260
|
+
:param _TraceSquash: 链路压缩开关(已废弃)
|
261
261
|
:type TraceSquash: bool
|
262
262
|
"""
|
263
263
|
self._InstanceKey = None
|
@@ -3072,11 +3072,12 @@ class ModifyGeneralApmApplicationConfigRequest(AbstractModel):
|
|
3072
3072
|
|
3073
3073
|
def __init__(self):
|
3074
3074
|
r"""
|
3075
|
-
:param _InstanceId:
|
3075
|
+
:param _InstanceId: 业务系统Id
|
3076
3076
|
:type InstanceId: str
|
3077
3077
|
:param _Tags: 需要修改的字段key value分别指定字段名、字段值
|
3078
|
+
[具体字段请见](https://cloud.tencent.com/document/product/248/111241)
|
3078
3079
|
:type Tags: list of ApmTag
|
3079
|
-
:param _ServiceNames:
|
3080
|
+
:param _ServiceNames: 需要修改配置的应用列表名称
|
3080
3081
|
:type ServiceNames: list of str
|
3081
3082
|
"""
|
3082
3083
|
self._InstanceId = None
|
@@ -473,6 +473,29 @@ class AsrClient(AbstractClient):
|
|
473
473
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
474
474
|
|
475
475
|
|
476
|
+
def GetUsageByDate(self, request):
|
477
|
+
"""查询用户用量
|
478
|
+
|
479
|
+
:param request: Request instance for GetUsageByDate.
|
480
|
+
:type request: :class:`tencentcloud.asr.v20190614.models.GetUsageByDateRequest`
|
481
|
+
:rtype: :class:`tencentcloud.asr.v20190614.models.GetUsageByDateResponse`
|
482
|
+
|
483
|
+
"""
|
484
|
+
try:
|
485
|
+
params = request._serialize()
|
486
|
+
headers = request.headers
|
487
|
+
body = self.call("GetUsageByDate", params, headers=headers)
|
488
|
+
response = json.loads(body)
|
489
|
+
model = models.GetUsageByDateResponse()
|
490
|
+
model._deserialize(response["Response"])
|
491
|
+
return model
|
492
|
+
except Exception as e:
|
493
|
+
if isinstance(e, TencentCloudSDKException):
|
494
|
+
raise
|
495
|
+
else:
|
496
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
497
|
+
|
498
|
+
|
476
499
|
def ModifyCustomization(self, request):
|
477
500
|
"""用户通过该接口可以更新自学习模型,如模型名称、模型类型、模型语料。
|
478
501
|
|
@@ -2160,6 +2160,108 @@ class GetModelInfoResponse(AbstractModel):
|
|
2160
2160
|
self._RequestId = params.get("RequestId")
|
2161
2161
|
|
2162
2162
|
|
2163
|
+
class GetUsageByDateRequest(AbstractModel):
|
2164
|
+
"""GetUsageByDate请求参数结构体
|
2165
|
+
|
2166
|
+
"""
|
2167
|
+
|
2168
|
+
def __init__(self):
|
2169
|
+
r"""
|
2170
|
+
:param _BizNameList: 需要查询的业务类型名字列表
|
2171
|
+
- asr_rt 实时识别
|
2172
|
+
- asr_rec 录音文件识别
|
2173
|
+
:type BizNameList: list of str
|
2174
|
+
:param _StartDate: 查询开始时间
|
2175
|
+
开始时间包含当天,支持 YYYY-MM-DD 日期以国内时区为准
|
2176
|
+
开始时间到结束时间需要在3个月以内
|
2177
|
+
:type StartDate: str
|
2178
|
+
:param _EndDate: 查询结束时间
|
2179
|
+
结束时间包含当天,,支持 YYYY-MM-DD 日期以国内时区为准
|
2180
|
+
开始时间到结束时间需要在3个月以内
|
2181
|
+
:type EndDate: str
|
2182
|
+
"""
|
2183
|
+
self._BizNameList = None
|
2184
|
+
self._StartDate = None
|
2185
|
+
self._EndDate = None
|
2186
|
+
|
2187
|
+
@property
|
2188
|
+
def BizNameList(self):
|
2189
|
+
return self._BizNameList
|
2190
|
+
|
2191
|
+
@BizNameList.setter
|
2192
|
+
def BizNameList(self, BizNameList):
|
2193
|
+
self._BizNameList = BizNameList
|
2194
|
+
|
2195
|
+
@property
|
2196
|
+
def StartDate(self):
|
2197
|
+
return self._StartDate
|
2198
|
+
|
2199
|
+
@StartDate.setter
|
2200
|
+
def StartDate(self, StartDate):
|
2201
|
+
self._StartDate = StartDate
|
2202
|
+
|
2203
|
+
@property
|
2204
|
+
def EndDate(self):
|
2205
|
+
return self._EndDate
|
2206
|
+
|
2207
|
+
@EndDate.setter
|
2208
|
+
def EndDate(self, EndDate):
|
2209
|
+
self._EndDate = EndDate
|
2210
|
+
|
2211
|
+
|
2212
|
+
def _deserialize(self, params):
|
2213
|
+
self._BizNameList = params.get("BizNameList")
|
2214
|
+
self._StartDate = params.get("StartDate")
|
2215
|
+
self._EndDate = params.get("EndDate")
|
2216
|
+
memeber_set = set(params.keys())
|
2217
|
+
for name, value in vars(self).items():
|
2218
|
+
property_name = name[1:]
|
2219
|
+
if property_name in memeber_set:
|
2220
|
+
memeber_set.remove(property_name)
|
2221
|
+
if len(memeber_set) > 0:
|
2222
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2223
|
+
|
2224
|
+
|
2225
|
+
|
2226
|
+
class GetUsageByDateResponse(AbstractModel):
|
2227
|
+
"""GetUsageByDate返回参数结构体
|
2228
|
+
|
2229
|
+
"""
|
2230
|
+
|
2231
|
+
def __init__(self):
|
2232
|
+
r"""
|
2233
|
+
:param _Data: 用量次数
|
2234
|
+
:type Data: :class:`tencentcloud.asr.v20190614.models.UsageByDateInfoData`
|
2235
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2236
|
+
:type RequestId: str
|
2237
|
+
"""
|
2238
|
+
self._Data = None
|
2239
|
+
self._RequestId = None
|
2240
|
+
|
2241
|
+
@property
|
2242
|
+
def Data(self):
|
2243
|
+
return self._Data
|
2244
|
+
|
2245
|
+
@Data.setter
|
2246
|
+
def Data(self, Data):
|
2247
|
+
self._Data = Data
|
2248
|
+
|
2249
|
+
@property
|
2250
|
+
def RequestId(self):
|
2251
|
+
return self._RequestId
|
2252
|
+
|
2253
|
+
@RequestId.setter
|
2254
|
+
def RequestId(self, RequestId):
|
2255
|
+
self._RequestId = RequestId
|
2256
|
+
|
2257
|
+
|
2258
|
+
def _deserialize(self, params):
|
2259
|
+
if params.get("Data") is not None:
|
2260
|
+
self._Data = UsageByDateInfoData()
|
2261
|
+
self._Data._deserialize(params.get("Data"))
|
2262
|
+
self._RequestId = params.get("RequestId")
|
2263
|
+
|
2264
|
+
|
2163
2265
|
class HotWord(AbstractModel):
|
2164
2266
|
"""[热词的词和权重](https://cloud.tencent.com/document/product/1093/41111#2.-.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0)
|
2165
2267
|
|
@@ -3890,6 +3992,107 @@ class UpdateAsrVocabResponse(AbstractModel):
|
|
3890
3992
|
self._RequestId = params.get("RequestId")
|
3891
3993
|
|
3892
3994
|
|
3995
|
+
class UsageByDateInfo(AbstractModel):
|
3996
|
+
"""用户用量信息
|
3997
|
+
|
3998
|
+
"""
|
3999
|
+
|
4000
|
+
def __init__(self):
|
4001
|
+
r"""
|
4002
|
+
:param _BizName: 业务类型名称
|
4003
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4004
|
+
:type BizName: str
|
4005
|
+
:param _Count: 识别次数
|
4006
|
+
单位:次
|
4007
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4008
|
+
:type Count: int
|
4009
|
+
:param _Duration: 识别时长
|
4010
|
+
单位:秒
|
4011
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4012
|
+
:type Duration: int
|
4013
|
+
"""
|
4014
|
+
self._BizName = None
|
4015
|
+
self._Count = None
|
4016
|
+
self._Duration = None
|
4017
|
+
|
4018
|
+
@property
|
4019
|
+
def BizName(self):
|
4020
|
+
return self._BizName
|
4021
|
+
|
4022
|
+
@BizName.setter
|
4023
|
+
def BizName(self, BizName):
|
4024
|
+
self._BizName = BizName
|
4025
|
+
|
4026
|
+
@property
|
4027
|
+
def Count(self):
|
4028
|
+
return self._Count
|
4029
|
+
|
4030
|
+
@Count.setter
|
4031
|
+
def Count(self, Count):
|
4032
|
+
self._Count = Count
|
4033
|
+
|
4034
|
+
@property
|
4035
|
+
def Duration(self):
|
4036
|
+
return self._Duration
|
4037
|
+
|
4038
|
+
@Duration.setter
|
4039
|
+
def Duration(self, Duration):
|
4040
|
+
self._Duration = Duration
|
4041
|
+
|
4042
|
+
|
4043
|
+
def _deserialize(self, params):
|
4044
|
+
self._BizName = params.get("BizName")
|
4045
|
+
self._Count = params.get("Count")
|
4046
|
+
self._Duration = params.get("Duration")
|
4047
|
+
memeber_set = set(params.keys())
|
4048
|
+
for name, value in vars(self).items():
|
4049
|
+
property_name = name[1:]
|
4050
|
+
if property_name in memeber_set:
|
4051
|
+
memeber_set.remove(property_name)
|
4052
|
+
if len(memeber_set) > 0:
|
4053
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4054
|
+
|
4055
|
+
|
4056
|
+
|
4057
|
+
class UsageByDateInfoData(AbstractModel):
|
4058
|
+
"""用户用量信息
|
4059
|
+
|
4060
|
+
"""
|
4061
|
+
|
4062
|
+
def __init__(self):
|
4063
|
+
r"""
|
4064
|
+
:param _UsageByDateInfoList: 用量信息列表
|
4065
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4066
|
+
:type UsageByDateInfoList: list of UsageByDateInfo
|
4067
|
+
"""
|
4068
|
+
self._UsageByDateInfoList = None
|
4069
|
+
|
4070
|
+
@property
|
4071
|
+
def UsageByDateInfoList(self):
|
4072
|
+
return self._UsageByDateInfoList
|
4073
|
+
|
4074
|
+
@UsageByDateInfoList.setter
|
4075
|
+
def UsageByDateInfoList(self, UsageByDateInfoList):
|
4076
|
+
self._UsageByDateInfoList = UsageByDateInfoList
|
4077
|
+
|
4078
|
+
|
4079
|
+
def _deserialize(self, params):
|
4080
|
+
if params.get("UsageByDateInfoList") is not None:
|
4081
|
+
self._UsageByDateInfoList = []
|
4082
|
+
for item in params.get("UsageByDateInfoList"):
|
4083
|
+
obj = UsageByDateInfo()
|
4084
|
+
obj._deserialize(item)
|
4085
|
+
self._UsageByDateInfoList.append(obj)
|
4086
|
+
memeber_set = set(params.keys())
|
4087
|
+
for name, value in vars(self).items():
|
4088
|
+
property_name = name[1:]
|
4089
|
+
if property_name in memeber_set:
|
4090
|
+
memeber_set.remove(property_name)
|
4091
|
+
if len(memeber_set) > 0:
|
4092
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4093
|
+
|
4094
|
+
|
4095
|
+
|
3893
4096
|
class VerifyTop(AbstractModel):
|
3894
4097
|
"""声纹组对比结果top数据
|
3895
4098
|
|