tencentcloud-sdk-python-trtc 3.1.93__tar.gz → 3.1.95__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/setup.py +1 -1
  3. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud/trtc/v20190722/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud/trtc/v20190722/models.py +546 -4
  6. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud/trtc/v20190722/trtc_client.py +79 -0
  7. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud/trtc/v20190722/trtc_client_async.py +64 -0
  8. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_trtc-3.1.95/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_trtc-3.1.93/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/README.rst +0 -0
  12. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud/trtc/__init__.py +0 -0
  14. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud/trtc/v20190722/__init__.py +0 -0
  15. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_trtc-3.1.93 → tencentcloud_sdk_python_trtc-3.1.95}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.1.93
3
+ Version: 3.1.95
4
4
  Summary: Tencent Cloud Trtc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.93
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.95
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-trtc',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.93,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.95,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Trtc SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.93'
17
+ __version__ = '3.1.95'
@@ -137,6 +137,9 @@ INTERNALERROR_INTERNALERROR = 'InternalError.InternalError'
137
137
  # 不支持的方法。
138
138
  INTERNALERROR_METHODERR = 'InternalError.MethodErr'
139
139
 
140
+ # 第三方调用错误。
141
+ INTERNALERROR_THIRDPARTYCALLERROR = 'InternalError.ThirdPartyCallError'
142
+
140
143
  # 参数错误。
141
144
  INVALIDPARAMETER = 'InvalidParameter'
142
145
 
@@ -6194,6 +6194,317 @@ NotExist:表示当前任务不存在。
6194
6194
  self._RequestId = params.get("RequestId")
6195
6195
 
6196
6196
 
6197
+ class DescribeTRTCAIRecognitionUsageRequest(AbstractModel):
6198
+ r"""DescribeTRTCAIRecognitionUsage请求参数结构体
6199
+
6200
+ """
6201
+
6202
+ def __init__(self):
6203
+ r"""
6204
+ :param _StartTime: 查询开始时间,格式为YYYY-MM-DD HH:mm:ss。
6205
+ :type StartTime: str
6206
+ :param _EndTime: 查询结束时间,格式为YYYY-MM-DD HH:mm:ss。单次查询统计区间最多不能超过31天。
6207
+ :type EndTime: str
6208
+ :param _AuType: 用量类型列表。
6209
+ - conversation AI 实时对话
6210
+ - asr 语音转文本
6211
+ - translation 实时翻译
6212
+ - tts 实时语音合成
6213
+ :type AuType: list of str
6214
+ :param _SdkAppId: 应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
6215
+ :type SdkAppId: str
6216
+ """
6217
+ self._StartTime = None
6218
+ self._EndTime = None
6219
+ self._AuType = None
6220
+ self._SdkAppId = None
6221
+
6222
+ @property
6223
+ def StartTime(self):
6224
+ r"""查询开始时间,格式为YYYY-MM-DD HH:mm:ss。
6225
+ :rtype: str
6226
+ """
6227
+ return self._StartTime
6228
+
6229
+ @StartTime.setter
6230
+ def StartTime(self, StartTime):
6231
+ self._StartTime = StartTime
6232
+
6233
+ @property
6234
+ def EndTime(self):
6235
+ r"""查询结束时间,格式为YYYY-MM-DD HH:mm:ss。单次查询统计区间最多不能超过31天。
6236
+ :rtype: str
6237
+ """
6238
+ return self._EndTime
6239
+
6240
+ @EndTime.setter
6241
+ def EndTime(self, EndTime):
6242
+ self._EndTime = EndTime
6243
+
6244
+ @property
6245
+ def AuType(self):
6246
+ r"""用量类型列表。
6247
+ - conversation AI 实时对话
6248
+ - asr 语音转文本
6249
+ - translation 实时翻译
6250
+ - tts 实时语音合成
6251
+ :rtype: list of str
6252
+ """
6253
+ return self._AuType
6254
+
6255
+ @AuType.setter
6256
+ def AuType(self, AuType):
6257
+ self._AuType = AuType
6258
+
6259
+ @property
6260
+ def SdkAppId(self):
6261
+ r"""应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
6262
+ :rtype: str
6263
+ """
6264
+ return self._SdkAppId
6265
+
6266
+ @SdkAppId.setter
6267
+ def SdkAppId(self, SdkAppId):
6268
+ self._SdkAppId = SdkAppId
6269
+
6270
+
6271
+ def _deserialize(self, params):
6272
+ self._StartTime = params.get("StartTime")
6273
+ self._EndTime = params.get("EndTime")
6274
+ self._AuType = params.get("AuType")
6275
+ self._SdkAppId = params.get("SdkAppId")
6276
+ memeber_set = set(params.keys())
6277
+ for name, value in vars(self).items():
6278
+ property_name = name[1:]
6279
+ if property_name in memeber_set:
6280
+ memeber_set.remove(property_name)
6281
+ if len(memeber_set) > 0:
6282
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6283
+
6284
+
6285
+
6286
+ class DescribeTRTCAIRecognitionUsageResponse(AbstractModel):
6287
+ r"""DescribeTRTCAIRecognitionUsage返回参数结构体
6288
+
6289
+ """
6290
+
6291
+ def __init__(self):
6292
+ r"""
6293
+ :param _UsageKey: 用量类型列表
6294
+ :type UsageKey: list of str
6295
+ :param _UsageList: 用量列表
6296
+ :type UsageList: list of UsageList
6297
+ :param _TotalUsage: 总用量列表
6298
+ :type TotalUsage: list of float
6299
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6300
+ :type RequestId: str
6301
+ """
6302
+ self._UsageKey = None
6303
+ self._UsageList = None
6304
+ self._TotalUsage = None
6305
+ self._RequestId = None
6306
+
6307
+ @property
6308
+ def UsageKey(self):
6309
+ r"""用量类型列表
6310
+ :rtype: list of str
6311
+ """
6312
+ return self._UsageKey
6313
+
6314
+ @UsageKey.setter
6315
+ def UsageKey(self, UsageKey):
6316
+ self._UsageKey = UsageKey
6317
+
6318
+ @property
6319
+ def UsageList(self):
6320
+ r"""用量列表
6321
+ :rtype: list of UsageList
6322
+ """
6323
+ return self._UsageList
6324
+
6325
+ @UsageList.setter
6326
+ def UsageList(self, UsageList):
6327
+ self._UsageList = UsageList
6328
+
6329
+ @property
6330
+ def TotalUsage(self):
6331
+ r"""总用量列表
6332
+ :rtype: list of float
6333
+ """
6334
+ return self._TotalUsage
6335
+
6336
+ @TotalUsage.setter
6337
+ def TotalUsage(self, TotalUsage):
6338
+ self._TotalUsage = TotalUsage
6339
+
6340
+ @property
6341
+ def RequestId(self):
6342
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6343
+ :rtype: str
6344
+ """
6345
+ return self._RequestId
6346
+
6347
+ @RequestId.setter
6348
+ def RequestId(self, RequestId):
6349
+ self._RequestId = RequestId
6350
+
6351
+
6352
+ def _deserialize(self, params):
6353
+ self._UsageKey = params.get("UsageKey")
6354
+ if params.get("UsageList") is not None:
6355
+ self._UsageList = []
6356
+ for item in params.get("UsageList"):
6357
+ obj = UsageList()
6358
+ obj._deserialize(item)
6359
+ self._UsageList.append(obj)
6360
+ self._TotalUsage = params.get("TotalUsage")
6361
+ self._RequestId = params.get("RequestId")
6362
+
6363
+
6364
+ class DescribeTRTCDedicatedCloudAccUsageRequest(AbstractModel):
6365
+ r"""DescribeTRTCDedicatedCloudAccUsage请求参数结构体
6366
+
6367
+ """
6368
+
6369
+ def __init__(self):
6370
+ r"""
6371
+ :param _StartTime: 查询开始时间,格式为YYYY-MM-DD HH:mm:ss。
6372
+ :type StartTime: str
6373
+ :param _EndTime: 查询结束时间,格式为YYYY-MM-DD HH:mm:ss。单次查询统计区间最多不能超过31天。
6374
+ :type EndTime: str
6375
+ :param _SdkAppId: 应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
6376
+ :type SdkAppId: int
6377
+ """
6378
+ self._StartTime = None
6379
+ self._EndTime = None
6380
+ self._SdkAppId = None
6381
+
6382
+ @property
6383
+ def StartTime(self):
6384
+ r"""查询开始时间,格式为YYYY-MM-DD HH:mm:ss。
6385
+ :rtype: str
6386
+ """
6387
+ return self._StartTime
6388
+
6389
+ @StartTime.setter
6390
+ def StartTime(self, StartTime):
6391
+ self._StartTime = StartTime
6392
+
6393
+ @property
6394
+ def EndTime(self):
6395
+ r"""查询结束时间,格式为YYYY-MM-DD HH:mm:ss。单次查询统计区间最多不能超过31天。
6396
+ :rtype: str
6397
+ """
6398
+ return self._EndTime
6399
+
6400
+ @EndTime.setter
6401
+ def EndTime(self, EndTime):
6402
+ self._EndTime = EndTime
6403
+
6404
+ @property
6405
+ def SdkAppId(self):
6406
+ r"""应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
6407
+ :rtype: int
6408
+ """
6409
+ return self._SdkAppId
6410
+
6411
+ @SdkAppId.setter
6412
+ def SdkAppId(self, SdkAppId):
6413
+ self._SdkAppId = SdkAppId
6414
+
6415
+
6416
+ def _deserialize(self, params):
6417
+ self._StartTime = params.get("StartTime")
6418
+ self._EndTime = params.get("EndTime")
6419
+ self._SdkAppId = params.get("SdkAppId")
6420
+ memeber_set = set(params.keys())
6421
+ for name, value in vars(self).items():
6422
+ property_name = name[1:]
6423
+ if property_name in memeber_set:
6424
+ memeber_set.remove(property_name)
6425
+ if len(memeber_set) > 0:
6426
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6427
+
6428
+
6429
+
6430
+ class DescribeTRTCDedicatedCloudAccUsageResponse(AbstractModel):
6431
+ r"""DescribeTRTCDedicatedCloudAccUsage返回参数结构体
6432
+
6433
+ """
6434
+
6435
+ def __init__(self):
6436
+ r"""
6437
+ :param _UsageKey: 用量指标名列表
6438
+ :type UsageKey: list of str
6439
+ :param _UsageList: 用量明细列表
6440
+ :type UsageList: list of UsageList
6441
+ :param _TotalUsage: 汇总用量列表
6442
+ :type TotalUsage: list of int non-negative
6443
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6444
+ :type RequestId: str
6445
+ """
6446
+ self._UsageKey = None
6447
+ self._UsageList = None
6448
+ self._TotalUsage = None
6449
+ self._RequestId = None
6450
+
6451
+ @property
6452
+ def UsageKey(self):
6453
+ r"""用量指标名列表
6454
+ :rtype: list of str
6455
+ """
6456
+ return self._UsageKey
6457
+
6458
+ @UsageKey.setter
6459
+ def UsageKey(self, UsageKey):
6460
+ self._UsageKey = UsageKey
6461
+
6462
+ @property
6463
+ def UsageList(self):
6464
+ r"""用量明细列表
6465
+ :rtype: list of UsageList
6466
+ """
6467
+ return self._UsageList
6468
+
6469
+ @UsageList.setter
6470
+ def UsageList(self, UsageList):
6471
+ self._UsageList = UsageList
6472
+
6473
+ @property
6474
+ def TotalUsage(self):
6475
+ r"""汇总用量列表
6476
+ :rtype: list of int non-negative
6477
+ """
6478
+ return self._TotalUsage
6479
+
6480
+ @TotalUsage.setter
6481
+ def TotalUsage(self, TotalUsage):
6482
+ self._TotalUsage = TotalUsage
6483
+
6484
+ @property
6485
+ def RequestId(self):
6486
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6487
+ :rtype: str
6488
+ """
6489
+ return self._RequestId
6490
+
6491
+ @RequestId.setter
6492
+ def RequestId(self, RequestId):
6493
+ self._RequestId = RequestId
6494
+
6495
+
6496
+ def _deserialize(self, params):
6497
+ self._UsageKey = params.get("UsageKey")
6498
+ if params.get("UsageList") is not None:
6499
+ self._UsageList = []
6500
+ for item in params.get("UsageList"):
6501
+ obj = UsageList()
6502
+ obj._deserialize(item)
6503
+ self._UsageList.append(obj)
6504
+ self._TotalUsage = params.get("TotalUsage")
6505
+ self._RequestId = params.get("RequestId")
6506
+
6507
+
6197
6508
  class DescribeTRTCMarketQualityDataRequest(AbstractModel):
6198
6509
  r"""DescribeTRTCMarketQualityData请求参数结构体
6199
6510
 
@@ -6861,6 +7172,180 @@ class DescribeTRTCRealTimeScaleDataResponse(AbstractModel):
6861
7172
  self._RequestId = params.get("RequestId")
6862
7173
 
6863
7174
 
7175
+ class DescribeTRTCSegmentModerationUsageRequest(AbstractModel):
7176
+ r"""DescribeTRTCSegmentModerationUsage请求参数结构体
7177
+
7178
+ """
7179
+
7180
+ def __init__(self):
7181
+ r"""
7182
+ :param _StartTime: 查询开始时间,格式为YYYY-MM-DD HH:mm:ss。
7183
+ :type StartTime: str
7184
+ :param _EndTime: 查询结束时间,格式为YYYY-MM-DD HH:mm:ss。单次查询统计区间最多不能超过31天。
7185
+ :type EndTime: str
7186
+ :param _Type: 媒体类型,枚举值:audio(音频)、picture(图片)
7187
+ :type Type: str
7188
+ :param _Business: 使用场景(业务类型),枚举值:0 = AI 内容理解(审核场景)、1 = 音视频切片(云端切片场景)
7189
+ :type Business: int
7190
+ :param _SdkAppId: 应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
7191
+ :type SdkAppId: int
7192
+ """
7193
+ self._StartTime = None
7194
+ self._EndTime = None
7195
+ self._Type = None
7196
+ self._Business = None
7197
+ self._SdkAppId = None
7198
+
7199
+ @property
7200
+ def StartTime(self):
7201
+ r"""查询开始时间,格式为YYYY-MM-DD HH:mm:ss。
7202
+ :rtype: str
7203
+ """
7204
+ return self._StartTime
7205
+
7206
+ @StartTime.setter
7207
+ def StartTime(self, StartTime):
7208
+ self._StartTime = StartTime
7209
+
7210
+ @property
7211
+ def EndTime(self):
7212
+ r"""查询结束时间,格式为YYYY-MM-DD HH:mm:ss。单次查询统计区间最多不能超过31天。
7213
+ :rtype: str
7214
+ """
7215
+ return self._EndTime
7216
+
7217
+ @EndTime.setter
7218
+ def EndTime(self, EndTime):
7219
+ self._EndTime = EndTime
7220
+
7221
+ @property
7222
+ def Type(self):
7223
+ r"""媒体类型,枚举值:audio(音频)、picture(图片)
7224
+ :rtype: str
7225
+ """
7226
+ return self._Type
7227
+
7228
+ @Type.setter
7229
+ def Type(self, Type):
7230
+ self._Type = Type
7231
+
7232
+ @property
7233
+ def Business(self):
7234
+ r"""使用场景(业务类型),枚举值:0 = AI 内容理解(审核场景)、1 = 音视频切片(云端切片场景)
7235
+ :rtype: int
7236
+ """
7237
+ return self._Business
7238
+
7239
+ @Business.setter
7240
+ def Business(self, Business):
7241
+ self._Business = Business
7242
+
7243
+ @property
7244
+ def SdkAppId(self):
7245
+ r"""应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
7246
+ :rtype: int
7247
+ """
7248
+ return self._SdkAppId
7249
+
7250
+ @SdkAppId.setter
7251
+ def SdkAppId(self, SdkAppId):
7252
+ self._SdkAppId = SdkAppId
7253
+
7254
+
7255
+ def _deserialize(self, params):
7256
+ self._StartTime = params.get("StartTime")
7257
+ self._EndTime = params.get("EndTime")
7258
+ self._Type = params.get("Type")
7259
+ self._Business = params.get("Business")
7260
+ self._SdkAppId = params.get("SdkAppId")
7261
+ memeber_set = set(params.keys())
7262
+ for name, value in vars(self).items():
7263
+ property_name = name[1:]
7264
+ if property_name in memeber_set:
7265
+ memeber_set.remove(property_name)
7266
+ if len(memeber_set) > 0:
7267
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7268
+
7269
+
7270
+
7271
+ class DescribeTRTCSegmentModerationUsageResponse(AbstractModel):
7272
+ r"""DescribeTRTCSegmentModerationUsage返回参数结构体
7273
+
7274
+ """
7275
+
7276
+ def __init__(self):
7277
+ r"""
7278
+ :param _UsageKey: 用量指标名列表
7279
+ :type UsageKey: list of str
7280
+ :param _UsageList: 用量明细列表
7281
+ :type UsageList: list of UsageList
7282
+ :param _TotalUsage: 汇总用量列表
7283
+ :type TotalUsage: list of int non-negative
7284
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7285
+ :type RequestId: str
7286
+ """
7287
+ self._UsageKey = None
7288
+ self._UsageList = None
7289
+ self._TotalUsage = None
7290
+ self._RequestId = None
7291
+
7292
+ @property
7293
+ def UsageKey(self):
7294
+ r"""用量指标名列表
7295
+ :rtype: list of str
7296
+ """
7297
+ return self._UsageKey
7298
+
7299
+ @UsageKey.setter
7300
+ def UsageKey(self, UsageKey):
7301
+ self._UsageKey = UsageKey
7302
+
7303
+ @property
7304
+ def UsageList(self):
7305
+ r"""用量明细列表
7306
+ :rtype: list of UsageList
7307
+ """
7308
+ return self._UsageList
7309
+
7310
+ @UsageList.setter
7311
+ def UsageList(self, UsageList):
7312
+ self._UsageList = UsageList
7313
+
7314
+ @property
7315
+ def TotalUsage(self):
7316
+ r"""汇总用量列表
7317
+ :rtype: list of int non-negative
7318
+ """
7319
+ return self._TotalUsage
7320
+
7321
+ @TotalUsage.setter
7322
+ def TotalUsage(self, TotalUsage):
7323
+ self._TotalUsage = TotalUsage
7324
+
7325
+ @property
7326
+ def RequestId(self):
7327
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7328
+ :rtype: str
7329
+ """
7330
+ return self._RequestId
7331
+
7332
+ @RequestId.setter
7333
+ def RequestId(self, RequestId):
7334
+ self._RequestId = RequestId
7335
+
7336
+
7337
+ def _deserialize(self, params):
7338
+ self._UsageKey = params.get("UsageKey")
7339
+ if params.get("UsageList") is not None:
7340
+ self._UsageList = []
7341
+ for item in params.get("UsageList"):
7342
+ obj = UsageList()
7343
+ obj._deserialize(item)
7344
+ self._UsageList.append(obj)
7345
+ self._TotalUsage = params.get("TotalUsage")
7346
+ self._RequestId = params.get("RequestId")
7347
+
7348
+
6864
7349
  class DescribeTrtcMcuTranscodeTimeRequest(AbstractModel):
6865
7350
  r"""DescribeTrtcMcuTranscodeTime请求参数结构体
6866
7351
 
@@ -15658,8 +16143,11 @@ class StartPublishCdnStreamRequest(AbstractModel):
15658
16143
  :type RoomIdType: int
15659
16144
  :param _AgentParams: 转推服务加入TRTC房间的机器人参数。
15660
16145
  :type AgentParams: :class:`tencentcloud.trtc.v20190722.models.AgentParams`
15661
- :param _WithTranscoding: 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。
15662
- 注:混流是必须转码,这个参数需设置为1
16146
+ :param _WithTranscoding: 是否转码,0表示无需转码,1表示需要转码。
16147
+ WithTranscoding为0,表示旁路转推,默认不转码;WithTranscoding为1,表示混流转推,此时一定会转码,并收取转码费用。
16148
+ 注:
16149
+ 1,混流是必须转码的,这个参数需设置为1。
16150
+ 2,WithTranscoding=0时,视频输出Codec默认跟随上行视频Codec,如果上行视频Codec发生变化,CDN会断流重推。
15663
16151
  :type WithTranscoding: int
15664
16152
  :param _AudioParams: 转推流的音频编码参数。由于音频是必转码的(不会收取转码费用),所以启动任务的时候,必须填写。
15665
16153
  :type AudioParams: :class:`tencentcloud.trtc.v20190722.models.McuAudioParams`
@@ -15735,8 +16223,11 @@ class StartPublishCdnStreamRequest(AbstractModel):
15735
16223
 
15736
16224
  @property
15737
16225
  def WithTranscoding(self):
15738
- r"""是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。
15739
- 注:混流是必须转码,这个参数需设置为1
16226
+ r"""是否转码,0表示无需转码,1表示需要转码。
16227
+ WithTranscoding为0,表示旁路转推,默认不转码;WithTranscoding为1,表示混流转推,此时一定会转码,并收取转码费用。
16228
+ 注:
16229
+ 1,混流是必须转码的,这个参数需设置为1。
16230
+ 2,WithTranscoding=0时,视频输出Codec默认跟随上行视频Codec,如果上行视频Codec发生变化,CDN会断流重推。
15740
16231
  :rtype: int
15741
16232
  """
15742
16233
  return self._WithTranscoding
@@ -19594,6 +20085,57 @@ class UpdateVoicePrintResponse(AbstractModel):
19594
20085
  self._RequestId = params.get("RequestId")
19595
20086
 
19596
20087
 
20088
+ class UsageList(AbstractModel):
20089
+ r"""用量列表
20090
+
20091
+ """
20092
+
20093
+ def __init__(self):
20094
+ r"""
20095
+ :param _TimeKey: 时间
20096
+ :type TimeKey: str
20097
+ :param _UsageValue: 用量数值
20098
+ :type UsageValue: list of float
20099
+ """
20100
+ self._TimeKey = None
20101
+ self._UsageValue = None
20102
+
20103
+ @property
20104
+ def TimeKey(self):
20105
+ r"""时间
20106
+ :rtype: str
20107
+ """
20108
+ return self._TimeKey
20109
+
20110
+ @TimeKey.setter
20111
+ def TimeKey(self, TimeKey):
20112
+ self._TimeKey = TimeKey
20113
+
20114
+ @property
20115
+ def UsageValue(self):
20116
+ r"""用量数值
20117
+ :rtype: list of float
20118
+ """
20119
+ return self._UsageValue
20120
+
20121
+ @UsageValue.setter
20122
+ def UsageValue(self, UsageValue):
20123
+ self._UsageValue = UsageValue
20124
+
20125
+
20126
+ def _deserialize(self, params):
20127
+ self._TimeKey = params.get("TimeKey")
20128
+ self._UsageValue = params.get("UsageValue")
20129
+ memeber_set = set(params.keys())
20130
+ for name, value in vars(self).items():
20131
+ property_name = name[1:]
20132
+ if property_name in memeber_set:
20133
+ memeber_set.remove(property_name)
20134
+ if len(memeber_set) > 0:
20135
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20136
+
20137
+
20138
+
19597
20139
  class UserInformation(AbstractModel):
19598
20140
  r"""用户信息,包括用户进房时间,退房时间等
19599
20141
 
@@ -794,6 +794,58 @@ class TrtcClient(AbstractClient):
794
794
  raise TencentCloudSDKException(type(e).__name__, str(e))
795
795
 
796
796
 
797
+ def DescribeTRTCAIRecognitionUsage(self, request):
798
+ r"""AI 智能识别与对话用量查询(AI对话/语音转文本/实时翻译/实时语音合成)
799
+ - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
800
+ - 单次查询统计区间最多不能超过31天。
801
+ - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。
802
+
803
+ :param request: Request instance for DescribeTRTCAIRecognitionUsage.
804
+ :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeTRTCAIRecognitionUsageRequest`
805
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.DescribeTRTCAIRecognitionUsageResponse`
806
+
807
+ """
808
+ try:
809
+ params = request._serialize()
810
+ headers = request.headers
811
+ body = self.call("DescribeTRTCAIRecognitionUsage", params, headers=headers)
812
+ response = json.loads(body)
813
+ model = models.DescribeTRTCAIRecognitionUsageResponse()
814
+ model._deserialize(response["Response"])
815
+ return model
816
+ except Exception as e:
817
+ if isinstance(e, TencentCloudSDKException):
818
+ raise
819
+ else:
820
+ raise TencentCloudSDKException(type(e).__name__, str(e))
821
+
822
+
823
+ def DescribeTRTCDedicatedCloudAccUsage(self, request):
824
+ r"""TRTC专属云网络加速用量查询
825
+ - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
826
+ - 单次查询统计区间最多不能超过31天。
827
+ - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。
828
+
829
+ :param request: Request instance for DescribeTRTCDedicatedCloudAccUsage.
830
+ :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeTRTCDedicatedCloudAccUsageRequest`
831
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.DescribeTRTCDedicatedCloudAccUsageResponse`
832
+
833
+ """
834
+ try:
835
+ params = request._serialize()
836
+ headers = request.headers
837
+ body = self.call("DescribeTRTCDedicatedCloudAccUsage", params, headers=headers)
838
+ response = json.loads(body)
839
+ model = models.DescribeTRTCDedicatedCloudAccUsageResponse()
840
+ model._deserialize(response["Response"])
841
+ return model
842
+ except Exception as e:
843
+ if isinstance(e, TencentCloudSDKException):
844
+ raise
845
+ else:
846
+ raise TencentCloudSDKException(type(e).__name__, str(e))
847
+
848
+
797
849
  def DescribeTRTCMarketQualityData(self, request):
798
850
  r"""查询TRTC监控仪表盘-数据大盘质量指标(包括下列指标)
799
851
  joinSuccessRate:加入频道成功率。
@@ -943,6 +995,32 @@ class TrtcClient(AbstractClient):
943
995
  raise TencentCloudSDKException(type(e).__name__, str(e))
944
996
 
945
997
 
998
+ def DescribeTRTCSegmentModerationUsage(self, request):
999
+ r"""切片截图与内容理解用量查询,支持查询音视频切片(云端切片场景)和 AI 内容理解(审核场景)两种业务类型
1000
+ - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
1001
+ - 单次查询统计区间最多不能超过31天。
1002
+ - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。
1003
+
1004
+ :param request: Request instance for DescribeTRTCSegmentModerationUsage.
1005
+ :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeTRTCSegmentModerationUsageRequest`
1006
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.DescribeTRTCSegmentModerationUsageResponse`
1007
+
1008
+ """
1009
+ try:
1010
+ params = request._serialize()
1011
+ headers = request.headers
1012
+ body = self.call("DescribeTRTCSegmentModerationUsage", params, headers=headers)
1013
+ response = json.loads(body)
1014
+ model = models.DescribeTRTCSegmentModerationUsageResponse()
1015
+ model._deserialize(response["Response"])
1016
+ return model
1017
+ except Exception as e:
1018
+ if isinstance(e, TencentCloudSDKException):
1019
+ raise
1020
+ else:
1021
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1022
+
1023
+
946
1024
  def DescribeTrtcMcuTranscodeTime(self, request):
947
1025
  r"""查询旁路转码计费时长。
948
1026
  - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
@@ -1499,6 +1577,7 @@ class TrtcClient(AbstractClient):
1499
1577
  def StartPublishCdnStream(self, request):
1500
1578
  r"""接口说明:
1501
1579
  启动一个混流转推任务,将 TRTC 房间的多路音视频流混成一路音视频流,编码后推到直播 CDN 或者回推到 TRTC 房间。也支持不转码直接转推 TRTC 房间的单路流。启动成功后,会返回一个 SdkAppid 维度唯一的任务 Id(TaskId)。您需要保存该 TaskId,后续需要依赖此 TaskId 更新和结束任务。可以参考文档: [功能说明](https://cloud.tencent.com/document/product/647/84721#b9a855f4-e38c-4616-9b07-fc44e0e8282a) 和 [常见问题](https://cloud.tencent.com/document/product/647/62620)
1580
+ 需要注意的是,TaskId调用时效性是30天,从成功启动转推并获得任务ID后开始计算,超时后无法调用更新和停止等接口,但是转推任务不会停止。最终任务会等所有参与混流转推的主播离开TRTC房间或切换成观众,并且超过MaxIdleTime时长后,自动停止。
1502
1581
 
1503
1582
  注意:
1504
1583
  您可以在控制台开通旁路转推回调功能,对转推 CDN 状态的事件进行监控,回调请参考文档:[旁路转推回调说明](https://cloud.tencent.com/document/product/647/88552)
@@ -638,6 +638,48 @@ class TrtcClient(AbstractClient):
638
638
 
639
639
  return await self.call_and_deserialize(**kwargs)
640
640
 
641
+ async def DescribeTRTCAIRecognitionUsage(
642
+ self,
643
+ request: models.DescribeTRTCAIRecognitionUsageRequest,
644
+ opts: Dict = None,
645
+ ) -> models.DescribeTRTCAIRecognitionUsageResponse:
646
+ """
647
+ AI 智能识别与对话用量查询(AI对话/语音转文本/实时翻译/实时语音合成)
648
+ - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
649
+ - 单次查询统计区间最多不能超过31天。
650
+ - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。
651
+ """
652
+
653
+ kwargs = {}
654
+ kwargs["action"] = "DescribeTRTCAIRecognitionUsage"
655
+ kwargs["params"] = request._serialize()
656
+ kwargs["resp_cls"] = models.DescribeTRTCAIRecognitionUsageResponse
657
+ kwargs["headers"] = request.headers
658
+ kwargs["opts"] = opts or {}
659
+
660
+ return await self.call_and_deserialize(**kwargs)
661
+
662
+ async def DescribeTRTCDedicatedCloudAccUsage(
663
+ self,
664
+ request: models.DescribeTRTCDedicatedCloudAccUsageRequest,
665
+ opts: Dict = None,
666
+ ) -> models.DescribeTRTCDedicatedCloudAccUsageResponse:
667
+ """
668
+ TRTC专属云网络加速用量查询
669
+ - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
670
+ - 单次查询统计区间最多不能超过31天。
671
+ - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。
672
+ """
673
+
674
+ kwargs = {}
675
+ kwargs["action"] = "DescribeTRTCDedicatedCloudAccUsage"
676
+ kwargs["params"] = request._serialize()
677
+ kwargs["resp_cls"] = models.DescribeTRTCDedicatedCloudAccUsageResponse
678
+ kwargs["headers"] = request.headers
679
+ kwargs["opts"] = opts or {}
680
+
681
+ return await self.call_and_deserialize(**kwargs)
682
+
641
683
  async def DescribeTRTCMarketQualityData(
642
684
  self,
643
685
  request: models.DescribeTRTCMarketQualityDataRequest,
@@ -762,6 +804,27 @@ class TrtcClient(AbstractClient):
762
804
 
763
805
  return await self.call_and_deserialize(**kwargs)
764
806
 
807
+ async def DescribeTRTCSegmentModerationUsage(
808
+ self,
809
+ request: models.DescribeTRTCSegmentModerationUsageRequest,
810
+ opts: Dict = None,
811
+ ) -> models.DescribeTRTCSegmentModerationUsageResponse:
812
+ """
813
+ 切片截图与内容理解用量查询,支持查询音视频切片(云端切片场景)和 AI 内容理解(审核场景)两种业务类型
814
+ - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
815
+ - 单次查询统计区间最多不能超过31天。
816
+ - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。
817
+ """
818
+
819
+ kwargs = {}
820
+ kwargs["action"] = "DescribeTRTCSegmentModerationUsage"
821
+ kwargs["params"] = request._serialize()
822
+ kwargs["resp_cls"] = models.DescribeTRTCSegmentModerationUsageResponse
823
+ kwargs["headers"] = request.headers
824
+ kwargs["opts"] = opts or {}
825
+
826
+ return await self.call_and_deserialize(**kwargs)
827
+
765
828
  async def DescribeTrtcMcuTranscodeTime(
766
829
  self,
767
830
  request: models.DescribeTrtcMcuTranscodeTimeRequest,
@@ -1218,6 +1281,7 @@ class TrtcClient(AbstractClient):
1218
1281
  """
1219
1282
  接口说明:
1220
1283
  启动一个混流转推任务,将 TRTC 房间的多路音视频流混成一路音视频流,编码后推到直播 CDN 或者回推到 TRTC 房间。也支持不转码直接转推 TRTC 房间的单路流。启动成功后,会返回一个 SdkAppid 维度唯一的任务 Id(TaskId)。您需要保存该 TaskId,后续需要依赖此 TaskId 更新和结束任务。可以参考文档: [功能说明](https://cloud.tencent.com/document/product/647/84721#b9a855f4-e38c-4616-9b07-fc44e0e8282a) 和 [常见问题](https://cloud.tencent.com/document/product/647/62620)
1284
+ 需要注意的是,TaskId调用时效性是30天,从成功启动转推并获得任务ID后开始计算,超时后无法调用更新和停止等接口,但是转推任务不会停止。最终任务会等所有参与混流转推的主播离开TRTC房间或切换成观众,并且超过MaxIdleTime时长后,自动停止。
1221
1285
 
1222
1286
  注意:
1223
1287
  您可以在控制台开通旁路转推回调功能,对转推 CDN 状态的事件进行监控,回调请参考文档:[旁路转推回调说明](https://cloud.tencent.com/document/product/647/88552)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.1.93
3
+ Version: 3.1.95
4
4
  Summary: Tencent Cloud Trtc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.93
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.95
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.95
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.93