tencentcloud-sdk-python-intl-en 3.0.1254__py2.py3-none-any.whl → 3.0.1255__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 CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1254'
16
+ __version__ = '3.0.1255'
@@ -32,6 +32,9 @@ FAILEDOPERATION = 'FailedOperation'
32
32
  # Unsupported on-cloud recording method.
33
33
  FAILEDOPERATION_CRUNSUPPORTMETHOD = 'FailedOperation.CRUnsupportMethod'
34
34
 
35
+ # The cloud slicing method is not supported.
36
+ FAILEDOPERATION_CSUNSUPPORTMETHOD = 'FailedOperation.CSUnsupportMethod'
37
+
35
38
  # Need to unlock the required ability
36
39
  FAILEDOPERATION_NOTABILITY = 'FailedOperation.NotAbility'
37
40
 
@@ -74,6 +77,9 @@ INTERNALERROR = 'InternalError'
74
77
  # On-cloud recording internal error.
75
78
  INTERNALERROR_CRINTERNALERROR = 'InternalError.CRInternalError'
76
79
 
80
+ # Internal service error of cloud slicing occurs.
81
+ INTERNALERROR_CSINTERNALERROR = 'InternalError.CSInternalError'
82
+
77
83
  # An error occurred while querying the database.
78
84
  INTERNALERROR_DBERROR = 'InternalError.DBError'
79
85
 
@@ -224,6 +230,15 @@ MISSINGPARAMETER_SDKAPPID = 'MissingParameter.SdkAppId'
224
230
  # `SecretKey` parameter missing.
225
231
  MISSINGPARAMETER_SECRETKEY = 'MissingParameter.SecretKey'
226
232
 
233
+ # The SliceParams parameter is required.
234
+ MISSINGPARAMETER_SLICEPARAMS = 'MissingParameter.SliceParams'
235
+
236
+ # The SliceStorageParams parameter is required.
237
+ MISSINGPARAMETER_SLICESTORAGEPARAMS = 'MissingParameter.SliceStorageParams'
238
+
239
+ # The SliceType parameter is required.
240
+ MISSINGPARAMETER_SLICETYPE = 'MissingParameter.SliceType'
241
+
227
242
  # `startTS_s` is missing.
228
243
  MISSINGPARAMETER_STARTTS = 'MissingParameter.StartTs'
229
244
 
@@ -587,6 +587,139 @@ class AudioParams(AbstractModel):
587
587
 
588
588
 
589
589
 
590
+ class CloudSliceStorage(AbstractModel):
591
+ """Information about Tencent COS and third-party cloud storage accounts.
592
+
593
+ """
594
+
595
+ def __init__(self):
596
+ r"""
597
+ :param _Vendor: Information about Tencent COS and third-party cloud storage accounts.
598
+ 0: Tencent COS.
599
+ 1: AWS S3.
600
+ 2: Alibaba Cloud OSS.
601
+ Example value: 0.
602
+ :type Vendor: int
603
+ :param _Region: [Region information](https://www.tencentcloud.comom/document/product/436/6224?from_cn_redirect=1#.E5.9C.B0.E5.9F.9F) of Tencent COS.
604
+ Example value: cn-shanghai-1.
605
+ [Region information](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions) of AWS S3.
606
+ Example value: ap-southeast-3.
607
+ :type Region: str
608
+ :param _Bucket: Cloud bucket name.
609
+ :type Bucket: str
610
+ :param _AccessKey: access_key account information of the cloud storage.
611
+ To store files to Tencent COS, visit https://console.cloud.tencent.com/cam/capi to view or create the SecretId value corresponding to the key fields in the link.
612
+ Example value: test-accesskey.
613
+ :type AccessKey: str
614
+ :param _SecretKey: secret_key account information of the cloud storage.
615
+ To store files to Tencent COS, visit https://console.cloud.tencent.com/cam/capi to view or create the SecretKey value corresponding to the key fields in the link.
616
+ Example value: test-secretkey.
617
+ :type SecretKey: str
618
+ :param _FileNamePrefix: Specified location of the cloud bucket, which consists of an array of strings. Value range for the strings is lowercase letters (a–z), uppercase letters (A–Z), digits (0–9), and special characters (_-). For example, under the feature of ["prefix1", "prefix2"], the audio slicing file (xxx.mp3) is stored as prefix1/prefix2/{taskId}/{userId}/audios/{sdkappid}_{roomId}_{userid}_{UTC time}.ogg, while the video frame is stored as prefix1/prefix2/{taskId}/{userId}/images/{sdkappid}_{roomId}_{userid}_{UTC time}.png.
619
+ :type FileNamePrefix: list of str
620
+ """
621
+ self._Vendor = None
622
+ self._Region = None
623
+ self._Bucket = None
624
+ self._AccessKey = None
625
+ self._SecretKey = None
626
+ self._FileNamePrefix = None
627
+
628
+ @property
629
+ def Vendor(self):
630
+ """Information about Tencent COS and third-party cloud storage accounts.
631
+ 0: Tencent COS.
632
+ 1: AWS S3.
633
+ 2: Alibaba Cloud OSS.
634
+ Example value: 0.
635
+ :rtype: int
636
+ """
637
+ return self._Vendor
638
+
639
+ @Vendor.setter
640
+ def Vendor(self, Vendor):
641
+ self._Vendor = Vendor
642
+
643
+ @property
644
+ def Region(self):
645
+ """[Region information](https://www.tencentcloud.comom/document/product/436/6224?from_cn_redirect=1#.E5.9C.B0.E5.9F.9F) of Tencent COS.
646
+ Example value: cn-shanghai-1.
647
+ [Region information](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions) of AWS S3.
648
+ Example value: ap-southeast-3.
649
+ :rtype: str
650
+ """
651
+ return self._Region
652
+
653
+ @Region.setter
654
+ def Region(self, Region):
655
+ self._Region = Region
656
+
657
+ @property
658
+ def Bucket(self):
659
+ """Cloud bucket name.
660
+ :rtype: str
661
+ """
662
+ return self._Bucket
663
+
664
+ @Bucket.setter
665
+ def Bucket(self, Bucket):
666
+ self._Bucket = Bucket
667
+
668
+ @property
669
+ def AccessKey(self):
670
+ """access_key account information of the cloud storage.
671
+ To store files to Tencent COS, visit https://console.cloud.tencent.com/cam/capi to view or create the SecretId value corresponding to the key fields in the link.
672
+ Example value: test-accesskey.
673
+ :rtype: str
674
+ """
675
+ return self._AccessKey
676
+
677
+ @AccessKey.setter
678
+ def AccessKey(self, AccessKey):
679
+ self._AccessKey = AccessKey
680
+
681
+ @property
682
+ def SecretKey(self):
683
+ """secret_key account information of the cloud storage.
684
+ To store files to Tencent COS, visit https://console.cloud.tencent.com/cam/capi to view or create the SecretKey value corresponding to the key fields in the link.
685
+ Example value: test-secretkey.
686
+ :rtype: str
687
+ """
688
+ return self._SecretKey
689
+
690
+ @SecretKey.setter
691
+ def SecretKey(self, SecretKey):
692
+ self._SecretKey = SecretKey
693
+
694
+ @property
695
+ def FileNamePrefix(self):
696
+ """Specified location of the cloud bucket, which consists of an array of strings. Value range for the strings is lowercase letters (a–z), uppercase letters (A–Z), digits (0–9), and special characters (_-). For example, under the feature of ["prefix1", "prefix2"], the audio slicing file (xxx.mp3) is stored as prefix1/prefix2/{taskId}/{userId}/audios/{sdkappid}_{roomId}_{userid}_{UTC time}.ogg, while the video frame is stored as prefix1/prefix2/{taskId}/{userId}/images/{sdkappid}_{roomId}_{userid}_{UTC time}.png.
697
+ :rtype: list of str
698
+ """
699
+ return self._FileNamePrefix
700
+
701
+ @FileNamePrefix.setter
702
+ def FileNamePrefix(self, FileNamePrefix):
703
+ self._FileNamePrefix = FileNamePrefix
704
+
705
+
706
+ def _deserialize(self, params):
707
+ self._Vendor = params.get("Vendor")
708
+ self._Region = params.get("Region")
709
+ self._Bucket = params.get("Bucket")
710
+ self._AccessKey = params.get("AccessKey")
711
+ self._SecretKey = params.get("SecretKey")
712
+ self._FileNamePrefix = params.get("FileNamePrefix")
713
+ memeber_set = set(params.keys())
714
+ for name, value in vars(self).items():
715
+ property_name = name[1:]
716
+ if property_name in memeber_set:
717
+ memeber_set.remove(property_name)
718
+ if len(memeber_set) > 0:
719
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
720
+
721
+
722
+
590
723
  class CloudStorage(AbstractModel):
591
724
  """The cloud storage information.
592
725
 
@@ -1077,6 +1210,209 @@ class CreateCloudRecordingResponse(AbstractModel):
1077
1210
  self._RequestId = params.get("RequestId")
1078
1211
 
1079
1212
 
1213
+ class CreateCloudSliceTaskRequest(AbstractModel):
1214
+ """CreateCloudSliceTask request structure.
1215
+
1216
+ """
1217
+
1218
+ def __init__(self):
1219
+ r"""
1220
+ :param _SdkAppId: [SdkAppId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#sdkappid) of TRTC, which is the same as the SdkAppId corresponding to the TRTC room.
1221
+ :type SdkAppId: int
1222
+ :param _RoomId: [RoomId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#roomid) of TRTC, which is the RoomId corresponding to the TRTC room.
1223
+ :type RoomId: str
1224
+ :param _UserId: Chatbot's UserId, which is used to enter the room and initiate a slicing task. [*note] This UserId should not be duplicated with the UserIds of the current anchors or audience members in the room. If multiple slicing tasks are initiated in one room, the chatbot's UserId should also be unique; otherwise, the previous slicing task is interrupted. It is recommended to include the room ID as part of the UserId, ensuring that the chatbot's UserId is unique in the room.
1225
+ :type UserId: str
1226
+ :param _UserSig: Signature verification corresponding to the chatbot's UserId, namely, the UserId and UserSig serve as the login password for the chatbot to enter the room. For specific calculation methods, see TRTC solution for calculating UserSig.
1227
+ :type UserSig: str
1228
+ :param _SliceParams: Control parameters for cloud slicing.
1229
+ :type SliceParams: :class:`tencentcloud.trtc.v20190722.models.SliceParams`
1230
+ :param _SliceStorageParams: Parameters for uploading cloud slicing files to the cloud storage.
1231
+ :type SliceStorageParams: :class:`tencentcloud.trtc.v20190722.models.SliceStorageParams`
1232
+ :param _RoomIdType: Type of the TRTC room number. [*Note] It should be the same as the type of the RoomId corresponding to the recording room. 0: string type; 1: 32-bit integer type (default value). Example value: 1.
1233
+ :type RoomIdType: int
1234
+ :param _ResourceExpiredHour: Validity period for calling the API, which starts upon successful initiation of recording and obtaining the task ID. After the timeout, APIs such as querying, updating, or stopping cannot be called, but the recording task is not stopped. The unit of the parameter is hours, with a default value of 72 hours (3 days). The maximum value is 720 hours (30 days), while the minimum value is 6 hours. For example, if this parameter is not specified, the validity period for calling the querying, updating, and stopping recording APIs is 72 hours upon the successful start of recording. Example value: 24.
1235
+ :type ResourceExpiredHour: int
1236
+ :param _PrivateMapKey: TRTC room permission encryption string, which is required only when advanced permission control is enabled in the TRTC console. After enabling, the TRTC backend service system verifies a "permission ticket" called [PrivateMapKey], which contains an encrypted RoomId and an encrypted "permission bit list". Since the PrivateMapKey includes the RoomId, the specified room cannot be entered if only UserSig is provided and PrivateMapKey is not provided. Example value: eJw1jcEKgkAURX9FZlvY****fL9rfNX4_.
1237
+ :type PrivateMapKey: str
1238
+ """
1239
+ self._SdkAppId = None
1240
+ self._RoomId = None
1241
+ self._UserId = None
1242
+ self._UserSig = None
1243
+ self._SliceParams = None
1244
+ self._SliceStorageParams = None
1245
+ self._RoomIdType = None
1246
+ self._ResourceExpiredHour = None
1247
+ self._PrivateMapKey = None
1248
+
1249
+ @property
1250
+ def SdkAppId(self):
1251
+ """[SdkAppId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#sdkappid) of TRTC, which is the same as the SdkAppId corresponding to the TRTC room.
1252
+ :rtype: int
1253
+ """
1254
+ return self._SdkAppId
1255
+
1256
+ @SdkAppId.setter
1257
+ def SdkAppId(self, SdkAppId):
1258
+ self._SdkAppId = SdkAppId
1259
+
1260
+ @property
1261
+ def RoomId(self):
1262
+ """[RoomId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#roomid) of TRTC, which is the RoomId corresponding to the TRTC room.
1263
+ :rtype: str
1264
+ """
1265
+ return self._RoomId
1266
+
1267
+ @RoomId.setter
1268
+ def RoomId(self, RoomId):
1269
+ self._RoomId = RoomId
1270
+
1271
+ @property
1272
+ def UserId(self):
1273
+ """Chatbot's UserId, which is used to enter the room and initiate a slicing task. [*note] This UserId should not be duplicated with the UserIds of the current anchors or audience members in the room. If multiple slicing tasks are initiated in one room, the chatbot's UserId should also be unique; otherwise, the previous slicing task is interrupted. It is recommended to include the room ID as part of the UserId, ensuring that the chatbot's UserId is unique in the room.
1274
+ :rtype: str
1275
+ """
1276
+ return self._UserId
1277
+
1278
+ @UserId.setter
1279
+ def UserId(self, UserId):
1280
+ self._UserId = UserId
1281
+
1282
+ @property
1283
+ def UserSig(self):
1284
+ """Signature verification corresponding to the chatbot's UserId, namely, the UserId and UserSig serve as the login password for the chatbot to enter the room. For specific calculation methods, see TRTC solution for calculating UserSig.
1285
+ :rtype: str
1286
+ """
1287
+ return self._UserSig
1288
+
1289
+ @UserSig.setter
1290
+ def UserSig(self, UserSig):
1291
+ self._UserSig = UserSig
1292
+
1293
+ @property
1294
+ def SliceParams(self):
1295
+ """Control parameters for cloud slicing.
1296
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.SliceParams`
1297
+ """
1298
+ return self._SliceParams
1299
+
1300
+ @SliceParams.setter
1301
+ def SliceParams(self, SliceParams):
1302
+ self._SliceParams = SliceParams
1303
+
1304
+ @property
1305
+ def SliceStorageParams(self):
1306
+ """Parameters for uploading cloud slicing files to the cloud storage.
1307
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.SliceStorageParams`
1308
+ """
1309
+ return self._SliceStorageParams
1310
+
1311
+ @SliceStorageParams.setter
1312
+ def SliceStorageParams(self, SliceStorageParams):
1313
+ self._SliceStorageParams = SliceStorageParams
1314
+
1315
+ @property
1316
+ def RoomIdType(self):
1317
+ """Type of the TRTC room number. [*Note] It should be the same as the type of the RoomId corresponding to the recording room. 0: string type; 1: 32-bit integer type (default value). Example value: 1.
1318
+ :rtype: int
1319
+ """
1320
+ return self._RoomIdType
1321
+
1322
+ @RoomIdType.setter
1323
+ def RoomIdType(self, RoomIdType):
1324
+ self._RoomIdType = RoomIdType
1325
+
1326
+ @property
1327
+ def ResourceExpiredHour(self):
1328
+ """Validity period for calling the API, which starts upon successful initiation of recording and obtaining the task ID. After the timeout, APIs such as querying, updating, or stopping cannot be called, but the recording task is not stopped. The unit of the parameter is hours, with a default value of 72 hours (3 days). The maximum value is 720 hours (30 days), while the minimum value is 6 hours. For example, if this parameter is not specified, the validity period for calling the querying, updating, and stopping recording APIs is 72 hours upon the successful start of recording. Example value: 24.
1329
+ :rtype: int
1330
+ """
1331
+ return self._ResourceExpiredHour
1332
+
1333
+ @ResourceExpiredHour.setter
1334
+ def ResourceExpiredHour(self, ResourceExpiredHour):
1335
+ self._ResourceExpiredHour = ResourceExpiredHour
1336
+
1337
+ @property
1338
+ def PrivateMapKey(self):
1339
+ """TRTC room permission encryption string, which is required only when advanced permission control is enabled in the TRTC console. After enabling, the TRTC backend service system verifies a "permission ticket" called [PrivateMapKey], which contains an encrypted RoomId and an encrypted "permission bit list". Since the PrivateMapKey includes the RoomId, the specified room cannot be entered if only UserSig is provided and PrivateMapKey is not provided. Example value: eJw1jcEKgkAURX9FZlvY****fL9rfNX4_.
1340
+ :rtype: str
1341
+ """
1342
+ return self._PrivateMapKey
1343
+
1344
+ @PrivateMapKey.setter
1345
+ def PrivateMapKey(self, PrivateMapKey):
1346
+ self._PrivateMapKey = PrivateMapKey
1347
+
1348
+
1349
+ def _deserialize(self, params):
1350
+ self._SdkAppId = params.get("SdkAppId")
1351
+ self._RoomId = params.get("RoomId")
1352
+ self._UserId = params.get("UserId")
1353
+ self._UserSig = params.get("UserSig")
1354
+ if params.get("SliceParams") is not None:
1355
+ self._SliceParams = SliceParams()
1356
+ self._SliceParams._deserialize(params.get("SliceParams"))
1357
+ if params.get("SliceStorageParams") is not None:
1358
+ self._SliceStorageParams = SliceStorageParams()
1359
+ self._SliceStorageParams._deserialize(params.get("SliceStorageParams"))
1360
+ self._RoomIdType = params.get("RoomIdType")
1361
+ self._ResourceExpiredHour = params.get("ResourceExpiredHour")
1362
+ self._PrivateMapKey = params.get("PrivateMapKey")
1363
+ memeber_set = set(params.keys())
1364
+ for name, value in vars(self).items():
1365
+ property_name = name[1:]
1366
+ if property_name in memeber_set:
1367
+ memeber_set.remove(property_name)
1368
+ if len(memeber_set) > 0:
1369
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1370
+
1371
+
1372
+
1373
+ class CreateCloudSliceTaskResponse(AbstractModel):
1374
+ """CreateCloudSliceTask response structure.
1375
+
1376
+ """
1377
+
1378
+ def __init__(self):
1379
+ r"""
1380
+ :param _TaskId: Task ID assigned by the cloud slicing service. It is a unique identifier for the lifecycle of a slicing task, which loses its significance after the task is completed. The task ID needs to be retained by the business system as a parameter for future operations related to this task.
1381
+ :type TaskId: str
1382
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1383
+ :type RequestId: str
1384
+ """
1385
+ self._TaskId = None
1386
+ self._RequestId = None
1387
+
1388
+ @property
1389
+ def TaskId(self):
1390
+ """Task ID assigned by the cloud slicing service. It is a unique identifier for the lifecycle of a slicing task, which loses its significance after the task is completed. The task ID needs to be retained by the business system as a parameter for future operations related to this task.
1391
+ :rtype: str
1392
+ """
1393
+ return self._TaskId
1394
+
1395
+ @TaskId.setter
1396
+ def TaskId(self, TaskId):
1397
+ self._TaskId = TaskId
1398
+
1399
+ @property
1400
+ def RequestId(self):
1401
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1402
+ :rtype: str
1403
+ """
1404
+ return self._RequestId
1405
+
1406
+ @RequestId.setter
1407
+ def RequestId(self, RequestId):
1408
+ self._RequestId = RequestId
1409
+
1410
+
1411
+ def _deserialize(self, params):
1412
+ self._TaskId = params.get("TaskId")
1413
+ self._RequestId = params.get("RequestId")
1414
+
1415
+
1080
1416
  class DeleteCloudRecordingRequest(AbstractModel):
1081
1417
  """DeleteCloudRecording request structure.
1082
1418
 
@@ -1171,6 +1507,100 @@ class DeleteCloudRecordingResponse(AbstractModel):
1171
1507
  self._RequestId = params.get("RequestId")
1172
1508
 
1173
1509
 
1510
+ class DeleteCloudSliceTaskRequest(AbstractModel):
1511
+ """DeleteCloudSliceTask request structure.
1512
+
1513
+ """
1514
+
1515
+ def __init__(self):
1516
+ r"""
1517
+ :param _SdkAppId: SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the TRTC room.
1518
+ :type SdkAppId: int
1519
+ :param _TaskId: Unique ID of the slicing task, which is returned after the task is started.
1520
+ :type TaskId: str
1521
+ """
1522
+ self._SdkAppId = None
1523
+ self._TaskId = None
1524
+
1525
+ @property
1526
+ def SdkAppId(self):
1527
+ """SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the TRTC room.
1528
+ :rtype: int
1529
+ """
1530
+ return self._SdkAppId
1531
+
1532
+ @SdkAppId.setter
1533
+ def SdkAppId(self, SdkAppId):
1534
+ self._SdkAppId = SdkAppId
1535
+
1536
+ @property
1537
+ def TaskId(self):
1538
+ """Unique ID of the slicing task, which is returned after the task is started.
1539
+ :rtype: str
1540
+ """
1541
+ return self._TaskId
1542
+
1543
+ @TaskId.setter
1544
+ def TaskId(self, TaskId):
1545
+ self._TaskId = TaskId
1546
+
1547
+
1548
+ def _deserialize(self, params):
1549
+ self._SdkAppId = params.get("SdkAppId")
1550
+ self._TaskId = params.get("TaskId")
1551
+ memeber_set = set(params.keys())
1552
+ for name, value in vars(self).items():
1553
+ property_name = name[1:]
1554
+ if property_name in memeber_set:
1555
+ memeber_set.remove(property_name)
1556
+ if len(memeber_set) > 0:
1557
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1558
+
1559
+
1560
+
1561
+ class DeleteCloudSliceTaskResponse(AbstractModel):
1562
+ """DeleteCloudSliceTask response structure.
1563
+
1564
+ """
1565
+
1566
+ def __init__(self):
1567
+ r"""
1568
+ :param _TaskId: Unique ID of the slicing task, which is returned after the task is started.
1569
+ :type TaskId: str
1570
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1571
+ :type RequestId: str
1572
+ """
1573
+ self._TaskId = None
1574
+ self._RequestId = None
1575
+
1576
+ @property
1577
+ def TaskId(self):
1578
+ """Unique ID of the slicing task, which is returned after the task is started.
1579
+ :rtype: str
1580
+ """
1581
+ return self._TaskId
1582
+
1583
+ @TaskId.setter
1584
+ def TaskId(self, TaskId):
1585
+ self._TaskId = TaskId
1586
+
1587
+ @property
1588
+ def RequestId(self):
1589
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1590
+ :rtype: str
1591
+ """
1592
+ return self._RequestId
1593
+
1594
+ @RequestId.setter
1595
+ def RequestId(self, RequestId):
1596
+ self._RequestId = RequestId
1597
+
1598
+
1599
+ def _deserialize(self, params):
1600
+ self._TaskId = params.get("TaskId")
1601
+ self._RequestId = params.get("RequestId")
1602
+
1603
+
1174
1604
  class DescribeAIConversationRequest(AbstractModel):
1175
1605
  """DescribeAIConversation request structure.
1176
1606
 
@@ -1710,11 +2140,153 @@ Note: This field may return null, indicating that no valid values can be obtaine
1710
2140
  Note: This field may return null, indicating that no valid values can be obtained.
1711
2141
  :rtype: list of QualityData
1712
2142
  """
1713
- return self._Data
2143
+ return self._Data
2144
+
2145
+ @Data.setter
2146
+ def Data(self, Data):
2147
+ self._Data = Data
2148
+
2149
+ @property
2150
+ def RequestId(self):
2151
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
2152
+ :rtype: str
2153
+ """
2154
+ return self._RequestId
2155
+
2156
+ @RequestId.setter
2157
+ def RequestId(self, RequestId):
2158
+ self._RequestId = RequestId
2159
+
2160
+
2161
+ def _deserialize(self, params):
2162
+ self._Total = params.get("Total")
2163
+ if params.get("UserList") is not None:
2164
+ self._UserList = []
2165
+ for item in params.get("UserList"):
2166
+ obj = UserInformation()
2167
+ obj._deserialize(item)
2168
+ self._UserList.append(obj)
2169
+ if params.get("Data") is not None:
2170
+ self._Data = []
2171
+ for item in params.get("Data"):
2172
+ obj = QualityData()
2173
+ obj._deserialize(item)
2174
+ self._Data.append(obj)
2175
+ self._RequestId = params.get("RequestId")
2176
+
2177
+
2178
+ class DescribeCloudRecordingRequest(AbstractModel):
2179
+ """DescribeCloudRecording request structure.
2180
+
2181
+ """
2182
+
2183
+ def __init__(self):
2184
+ r"""
2185
+ :param _SdkAppId: The `SDKAppID` of the room whose streams are recorded.
2186
+ :type SdkAppId: int
2187
+ :param _TaskId: The unique ID of the recording task, which is returned after recording starts successfully.
2188
+ :type TaskId: str
2189
+ """
2190
+ self._SdkAppId = None
2191
+ self._TaskId = None
2192
+
2193
+ @property
2194
+ def SdkAppId(self):
2195
+ """The `SDKAppID` of the room whose streams are recorded.
2196
+ :rtype: int
2197
+ """
2198
+ return self._SdkAppId
2199
+
2200
+ @SdkAppId.setter
2201
+ def SdkAppId(self, SdkAppId):
2202
+ self._SdkAppId = SdkAppId
2203
+
2204
+ @property
2205
+ def TaskId(self):
2206
+ """The unique ID of the recording task, which is returned after recording starts successfully.
2207
+ :rtype: str
2208
+ """
2209
+ return self._TaskId
2210
+
2211
+ @TaskId.setter
2212
+ def TaskId(self, TaskId):
2213
+ self._TaskId = TaskId
2214
+
2215
+
2216
+ def _deserialize(self, params):
2217
+ self._SdkAppId = params.get("SdkAppId")
2218
+ self._TaskId = params.get("TaskId")
2219
+ memeber_set = set(params.keys())
2220
+ for name, value in vars(self).items():
2221
+ property_name = name[1:]
2222
+ if property_name in memeber_set:
2223
+ memeber_set.remove(property_name)
2224
+ if len(memeber_set) > 0:
2225
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2226
+
2227
+
2228
+
2229
+ class DescribeCloudRecordingResponse(AbstractModel):
2230
+ """DescribeCloudRecording response structure.
2231
+
2232
+ """
2233
+
2234
+ def __init__(self):
2235
+ r"""
2236
+ :param _TaskId: The unique ID of the recording task.
2237
+ :type TaskId: str
2238
+ :param _Status: The status of the on-cloud recording task.
2239
+ Idle: The task is idle.
2240
+ InProgress: The task is in progress.
2241
+ Exited: The task is being ended.
2242
+ :type Status: str
2243
+ :param _StorageFileList: The information of the recording files.
2244
+ Note: This field may return `null`, indicating that no valid values can be obtained.
2245
+ :type StorageFileList: list of StorageFile
2246
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
2247
+ :type RequestId: str
2248
+ """
2249
+ self._TaskId = None
2250
+ self._Status = None
2251
+ self._StorageFileList = None
2252
+ self._RequestId = None
2253
+
2254
+ @property
2255
+ def TaskId(self):
2256
+ """The unique ID of the recording task.
2257
+ :rtype: str
2258
+ """
2259
+ return self._TaskId
2260
+
2261
+ @TaskId.setter
2262
+ def TaskId(self, TaskId):
2263
+ self._TaskId = TaskId
2264
+
2265
+ @property
2266
+ def Status(self):
2267
+ """The status of the on-cloud recording task.
2268
+ Idle: The task is idle.
2269
+ InProgress: The task is in progress.
2270
+ Exited: The task is being ended.
2271
+ :rtype: str
2272
+ """
2273
+ return self._Status
2274
+
2275
+ @Status.setter
2276
+ def Status(self, Status):
2277
+ self._Status = Status
2278
+
2279
+ @property
2280
+ def StorageFileList(self):
2281
+ """The information of the recording files.
2282
+ Note: This field may return `null`, indicating that no valid values can be obtained.
2283
+ :rtype: list of StorageFile
2284
+ """
2285
+ return self._StorageFileList
1714
2286
 
1715
- @Data.setter
1716
- def Data(self, Data):
1717
- self._Data = Data
2287
+ @StorageFileList.setter
2288
+ def StorageFileList(self, StorageFileList):
2289
+ self._StorageFileList = StorageFileList
1718
2290
 
1719
2291
  @property
1720
2292
  def RequestId(self):
@@ -1729,32 +2301,27 @@ Note: This field may return null, indicating that no valid values can be obtaine
1729
2301
 
1730
2302
 
1731
2303
  def _deserialize(self, params):
1732
- self._Total = params.get("Total")
1733
- if params.get("UserList") is not None:
1734
- self._UserList = []
1735
- for item in params.get("UserList"):
1736
- obj = UserInformation()
1737
- obj._deserialize(item)
1738
- self._UserList.append(obj)
1739
- if params.get("Data") is not None:
1740
- self._Data = []
1741
- for item in params.get("Data"):
1742
- obj = QualityData()
2304
+ self._TaskId = params.get("TaskId")
2305
+ self._Status = params.get("Status")
2306
+ if params.get("StorageFileList") is not None:
2307
+ self._StorageFileList = []
2308
+ for item in params.get("StorageFileList"):
2309
+ obj = StorageFile()
1743
2310
  obj._deserialize(item)
1744
- self._Data.append(obj)
2311
+ self._StorageFileList.append(obj)
1745
2312
  self._RequestId = params.get("RequestId")
1746
2313
 
1747
2314
 
1748
- class DescribeCloudRecordingRequest(AbstractModel):
1749
- """DescribeCloudRecording request structure.
2315
+ class DescribeCloudSliceTaskRequest(AbstractModel):
2316
+ """DescribeCloudSliceTask request structure.
1750
2317
 
1751
2318
  """
1752
2319
 
1753
2320
  def __init__(self):
1754
2321
  r"""
1755
- :param _SdkAppId: The `SDKAppID` of the room whose streams are recorded.
2322
+ :param _SdkAppId: SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the recording room.
1756
2323
  :type SdkAppId: int
1757
- :param _TaskId: The unique ID of the recording task, which is returned after recording starts successfully.
2324
+ :param _TaskId: Unique ID of the slicing task, which is returned after the task is started.
1758
2325
  :type TaskId: str
1759
2326
  """
1760
2327
  self._SdkAppId = None
@@ -1762,7 +2329,7 @@ class DescribeCloudRecordingRequest(AbstractModel):
1762
2329
 
1763
2330
  @property
1764
2331
  def SdkAppId(self):
1765
- """The `SDKAppID` of the room whose streams are recorded.
2332
+ """SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the recording room.
1766
2333
  :rtype: int
1767
2334
  """
1768
2335
  return self._SdkAppId
@@ -1773,7 +2340,7 @@ class DescribeCloudRecordingRequest(AbstractModel):
1773
2340
 
1774
2341
  @property
1775
2342
  def TaskId(self):
1776
- """The unique ID of the recording task, which is returned after recording starts successfully.
2343
+ """Unique ID of the slicing task, which is returned after the task is started.
1777
2344
  :rtype: str
1778
2345
  """
1779
2346
  return self._TaskId
@@ -1796,34 +2363,27 @@ class DescribeCloudRecordingRequest(AbstractModel):
1796
2363
 
1797
2364
 
1798
2365
 
1799
- class DescribeCloudRecordingResponse(AbstractModel):
1800
- """DescribeCloudRecording response structure.
2366
+ class DescribeCloudSliceTaskResponse(AbstractModel):
2367
+ """DescribeCloudSliceTask response structure.
1801
2368
 
1802
2369
  """
1803
2370
 
1804
2371
  def __init__(self):
1805
2372
  r"""
1806
- :param _TaskId: The unique ID of the recording task.
2373
+ :param _TaskId: Unique ID of the slicing task, which is returned after the task is started.
1807
2374
  :type TaskId: str
1808
- :param _Status: The status of the on-cloud recording task.
1809
- Idle: The task is idle.
1810
- InProgress: The task is in progress.
1811
- Exited: The task is being ended.
2375
+ :param _Status: Information about the status of the cloud slicing task. Idle: indicates the current task is idle; InProgress: indicates the current task is in progress; Exited: indicates the current task is being exited.
1812
2376
  :type Status: str
1813
- :param _StorageFileList: The information of the recording files.
1814
- Note: This field may return `null`, indicating that no valid values can be obtained.
1815
- :type StorageFileList: list of StorageFile
1816
2377
  :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1817
2378
  :type RequestId: str
1818
2379
  """
1819
2380
  self._TaskId = None
1820
2381
  self._Status = None
1821
- self._StorageFileList = None
1822
2382
  self._RequestId = None
1823
2383
 
1824
2384
  @property
1825
2385
  def TaskId(self):
1826
- """The unique ID of the recording task.
2386
+ """Unique ID of the slicing task, which is returned after the task is started.
1827
2387
  :rtype: str
1828
2388
  """
1829
2389
  return self._TaskId
@@ -1834,10 +2394,7 @@ Note: This field may return `null`, indicating that no valid values can be obtai
1834
2394
 
1835
2395
  @property
1836
2396
  def Status(self):
1837
- """The status of the on-cloud recording task.
1838
- Idle: The task is idle.
1839
- InProgress: The task is in progress.
1840
- Exited: The task is being ended.
2397
+ """Information about the status of the cloud slicing task. Idle: indicates the current task is idle; InProgress: indicates the current task is in progress; Exited: indicates the current task is being exited.
1841
2398
  :rtype: str
1842
2399
  """
1843
2400
  return self._Status
@@ -1846,18 +2403,6 @@ Exited: The task is being ended.
1846
2403
  def Status(self, Status):
1847
2404
  self._Status = Status
1848
2405
 
1849
- @property
1850
- def StorageFileList(self):
1851
- """The information of the recording files.
1852
- Note: This field may return `null`, indicating that no valid values can be obtained.
1853
- :rtype: list of StorageFile
1854
- """
1855
- return self._StorageFileList
1856
-
1857
- @StorageFileList.setter
1858
- def StorageFileList(self, StorageFileList):
1859
- self._StorageFileList = StorageFileList
1860
-
1861
2406
  @property
1862
2407
  def RequestId(self):
1863
2408
  """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
@@ -1873,12 +2418,6 @@ Note: This field may return `null`, indicating that no valid values can be obtai
1873
2418
  def _deserialize(self, params):
1874
2419
  self._TaskId = params.get("TaskId")
1875
2420
  self._Status = params.get("Status")
1876
- if params.get("StorageFileList") is not None:
1877
- self._StorageFileList = []
1878
- for item in params.get("StorageFileList"):
1879
- obj = StorageFile()
1880
- obj._deserialize(item)
1881
- self._StorageFileList.append(obj)
1882
2421
  self._RequestId = params.get("RequestId")
1883
2422
 
1884
2423
 
@@ -6987,6 +7526,117 @@ class ModifyCloudRecordingResponse(AbstractModel):
6987
7526
  self._RequestId = params.get("RequestId")
6988
7527
 
6989
7528
 
7529
+ class ModifyCloudSliceTaskRequest(AbstractModel):
7530
+ """ModifyCloudSliceTask request structure.
7531
+
7532
+ """
7533
+
7534
+ def __init__(self):
7535
+ r"""
7536
+ :param _SdkAppId: SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the TRTC room.
7537
+ :type SdkAppId: int
7538
+ :param _TaskId: Unique ID of the slicing task, which is returned after the task is started.
7539
+ :type TaskId: str
7540
+ :param _SubscribeStreamUserIds: Specifies the allowlist or blocklist for the subscription stream.
7541
+ :type SubscribeStreamUserIds: :class:`tencentcloud.trtc.v20190722.models.SubscribeStreamUserIds`
7542
+ """
7543
+ self._SdkAppId = None
7544
+ self._TaskId = None
7545
+ self._SubscribeStreamUserIds = None
7546
+
7547
+ @property
7548
+ def SdkAppId(self):
7549
+ """SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the TRTC room.
7550
+ :rtype: int
7551
+ """
7552
+ return self._SdkAppId
7553
+
7554
+ @SdkAppId.setter
7555
+ def SdkAppId(self, SdkAppId):
7556
+ self._SdkAppId = SdkAppId
7557
+
7558
+ @property
7559
+ def TaskId(self):
7560
+ """Unique ID of the slicing task, which is returned after the task is started.
7561
+ :rtype: str
7562
+ """
7563
+ return self._TaskId
7564
+
7565
+ @TaskId.setter
7566
+ def TaskId(self, TaskId):
7567
+ self._TaskId = TaskId
7568
+
7569
+ @property
7570
+ def SubscribeStreamUserIds(self):
7571
+ """Specifies the allowlist or blocklist for the subscription stream.
7572
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.SubscribeStreamUserIds`
7573
+ """
7574
+ return self._SubscribeStreamUserIds
7575
+
7576
+ @SubscribeStreamUserIds.setter
7577
+ def SubscribeStreamUserIds(self, SubscribeStreamUserIds):
7578
+ self._SubscribeStreamUserIds = SubscribeStreamUserIds
7579
+
7580
+
7581
+ def _deserialize(self, params):
7582
+ self._SdkAppId = params.get("SdkAppId")
7583
+ self._TaskId = params.get("TaskId")
7584
+ if params.get("SubscribeStreamUserIds") is not None:
7585
+ self._SubscribeStreamUserIds = SubscribeStreamUserIds()
7586
+ self._SubscribeStreamUserIds._deserialize(params.get("SubscribeStreamUserIds"))
7587
+ memeber_set = set(params.keys())
7588
+ for name, value in vars(self).items():
7589
+ property_name = name[1:]
7590
+ if property_name in memeber_set:
7591
+ memeber_set.remove(property_name)
7592
+ if len(memeber_set) > 0:
7593
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7594
+
7595
+
7596
+
7597
+ class ModifyCloudSliceTaskResponse(AbstractModel):
7598
+ """ModifyCloudSliceTask response structure.
7599
+
7600
+ """
7601
+
7602
+ def __init__(self):
7603
+ r"""
7604
+ :param _TaskId: Unique ID of the slicing task, which is returned after the task is started.
7605
+ :type TaskId: str
7606
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
7607
+ :type RequestId: str
7608
+ """
7609
+ self._TaskId = None
7610
+ self._RequestId = None
7611
+
7612
+ @property
7613
+ def TaskId(self):
7614
+ """Unique ID of the slicing task, which is returned after the task is started.
7615
+ :rtype: str
7616
+ """
7617
+ return self._TaskId
7618
+
7619
+ @TaskId.setter
7620
+ def TaskId(self, TaskId):
7621
+ self._TaskId = TaskId
7622
+
7623
+ @property
7624
+ def RequestId(self):
7625
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
7626
+ :rtype: str
7627
+ """
7628
+ return self._RequestId
7629
+
7630
+ @RequestId.setter
7631
+ def RequestId(self, RequestId):
7632
+ self._RequestId = RequestId
7633
+
7634
+
7635
+ def _deserialize(self, params):
7636
+ self._TaskId = params.get("TaskId")
7637
+ self._RequestId = params.get("RequestId")
7638
+
7639
+
6990
7640
  class QualityData(AbstractModel):
6991
7641
  """The quality data returned by ES.
6992
7642
 
@@ -8255,6 +8905,167 @@ class SingleSubscribeParams(AbstractModel):
8255
8905
 
8256
8906
 
8257
8907
 
8908
+ class SliceParams(AbstractModel):
8909
+ """Control parameters for cloud slicing.
8910
+
8911
+ """
8912
+
8913
+ def __init__(self):
8914
+ r"""
8915
+ :param _SliceType: Slicing task type.
8916
+ 1: audio slicing;
8917
+ 2: video frame extraction;
8918
+ 3: audio/video slicing + video frame extraction.
8919
+ Example value: 1.
8920
+ :type SliceType: int
8921
+ :param _MaxIdleTime: Recording is stopped automatically when there is no anchor in the room for more than MaxIdleTime. Unit: seconds. Default value: 30 seconds. This value needs to be greater than or equal to 5 seconds and less than or equal to 86,400 seconds (24 hours).
8922
+ Example value: 30.
8923
+ :type MaxIdleTime: int
8924
+ :param _SliceAudio: Audio slicing duration. Default value: 15s. Example value: 15.
8925
+ :type SliceAudio: int
8926
+ :param _SliceVideo: Interval for video frame extraction. Default value: 5s. Example value: 5.
8927
+ :type SliceVideo: int
8928
+ :param _SubscribeStreamUserIds: Specifies the allowlist or blocklist for the subscription stream.
8929
+ :type SubscribeStreamUserIds: :class:`tencentcloud.trtc.v20190722.models.SubscribeStreamUserIds`
8930
+ :param _SliceCallbackUrl: Depreciated. The callback URL is configured in the console.
8931
+ :type SliceCallbackUrl: str
8932
+ """
8933
+ self._SliceType = None
8934
+ self._MaxIdleTime = None
8935
+ self._SliceAudio = None
8936
+ self._SliceVideo = None
8937
+ self._SubscribeStreamUserIds = None
8938
+ self._SliceCallbackUrl = None
8939
+
8940
+ @property
8941
+ def SliceType(self):
8942
+ """Slicing task type.
8943
+ 1: audio slicing;
8944
+ 2: video frame extraction;
8945
+ 3: audio/video slicing + video frame extraction.
8946
+ Example value: 1.
8947
+ :rtype: int
8948
+ """
8949
+ return self._SliceType
8950
+
8951
+ @SliceType.setter
8952
+ def SliceType(self, SliceType):
8953
+ self._SliceType = SliceType
8954
+
8955
+ @property
8956
+ def MaxIdleTime(self):
8957
+ """Recording is stopped automatically when there is no anchor in the room for more than MaxIdleTime. Unit: seconds. Default value: 30 seconds. This value needs to be greater than or equal to 5 seconds and less than or equal to 86,400 seconds (24 hours).
8958
+ Example value: 30.
8959
+ :rtype: int
8960
+ """
8961
+ return self._MaxIdleTime
8962
+
8963
+ @MaxIdleTime.setter
8964
+ def MaxIdleTime(self, MaxIdleTime):
8965
+ self._MaxIdleTime = MaxIdleTime
8966
+
8967
+ @property
8968
+ def SliceAudio(self):
8969
+ """Audio slicing duration. Default value: 15s. Example value: 15.
8970
+ :rtype: int
8971
+ """
8972
+ return self._SliceAudio
8973
+
8974
+ @SliceAudio.setter
8975
+ def SliceAudio(self, SliceAudio):
8976
+ self._SliceAudio = SliceAudio
8977
+
8978
+ @property
8979
+ def SliceVideo(self):
8980
+ """Interval for video frame extraction. Default value: 5s. Example value: 5.
8981
+ :rtype: int
8982
+ """
8983
+ return self._SliceVideo
8984
+
8985
+ @SliceVideo.setter
8986
+ def SliceVideo(self, SliceVideo):
8987
+ self._SliceVideo = SliceVideo
8988
+
8989
+ @property
8990
+ def SubscribeStreamUserIds(self):
8991
+ """Specifies the allowlist or blocklist for the subscription stream.
8992
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.SubscribeStreamUserIds`
8993
+ """
8994
+ return self._SubscribeStreamUserIds
8995
+
8996
+ @SubscribeStreamUserIds.setter
8997
+ def SubscribeStreamUserIds(self, SubscribeStreamUserIds):
8998
+ self._SubscribeStreamUserIds = SubscribeStreamUserIds
8999
+
9000
+ @property
9001
+ def SliceCallbackUrl(self):
9002
+ """Depreciated. The callback URL is configured in the console.
9003
+ :rtype: str
9004
+ """
9005
+ return self._SliceCallbackUrl
9006
+
9007
+ @SliceCallbackUrl.setter
9008
+ def SliceCallbackUrl(self, SliceCallbackUrl):
9009
+ self._SliceCallbackUrl = SliceCallbackUrl
9010
+
9011
+
9012
+ def _deserialize(self, params):
9013
+ self._SliceType = params.get("SliceType")
9014
+ self._MaxIdleTime = params.get("MaxIdleTime")
9015
+ self._SliceAudio = params.get("SliceAudio")
9016
+ self._SliceVideo = params.get("SliceVideo")
9017
+ if params.get("SubscribeStreamUserIds") is not None:
9018
+ self._SubscribeStreamUserIds = SubscribeStreamUserIds()
9019
+ self._SubscribeStreamUserIds._deserialize(params.get("SubscribeStreamUserIds"))
9020
+ self._SliceCallbackUrl = params.get("SliceCallbackUrl")
9021
+ memeber_set = set(params.keys())
9022
+ for name, value in vars(self).items():
9023
+ property_name = name[1:]
9024
+ if property_name in memeber_set:
9025
+ memeber_set.remove(property_name)
9026
+ if len(memeber_set) > 0:
9027
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9028
+
9029
+
9030
+
9031
+ class SliceStorageParams(AbstractModel):
9032
+ """Storage parameters for the slicing files.
9033
+
9034
+ """
9035
+
9036
+ def __init__(self):
9037
+ r"""
9038
+ :param _CloudSliceStorage: Information about Tencent COS and third-party cloud storage accounts.
9039
+ :type CloudSliceStorage: :class:`tencentcloud.trtc.v20190722.models.CloudSliceStorage`
9040
+ """
9041
+ self._CloudSliceStorage = None
9042
+
9043
+ @property
9044
+ def CloudSliceStorage(self):
9045
+ """Information about Tencent COS and third-party cloud storage accounts.
9046
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.CloudSliceStorage`
9047
+ """
9048
+ return self._CloudSliceStorage
9049
+
9050
+ @CloudSliceStorage.setter
9051
+ def CloudSliceStorage(self, CloudSliceStorage):
9052
+ self._CloudSliceStorage = CloudSliceStorage
9053
+
9054
+
9055
+ def _deserialize(self, params):
9056
+ if params.get("CloudSliceStorage") is not None:
9057
+ self._CloudSliceStorage = CloudSliceStorage()
9058
+ self._CloudSliceStorage._deserialize(params.get("CloudSliceStorage"))
9059
+ memeber_set = set(params.keys())
9060
+ for name, value in vars(self).items():
9061
+ property_name = name[1:]
9062
+ if property_name in memeber_set:
9063
+ memeber_set.remove(property_name)
9064
+ if len(memeber_set) > 0:
9065
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9066
+
9067
+
9068
+
8258
9069
  class StartAIConversationRequest(AbstractModel):
8259
9070
  """StartAIConversation request structure.
8260
9071
 
@@ -83,6 +83,33 @@ class TrtcClient(AbstractClient):
83
83
  raise TencentCloudSDKException(type(e).__name__, str(e))
84
84
 
85
85
 
86
+ def CreateCloudSliceTask(self, request):
87
+ """API description:
88
+ This API is used to enable the cloud slicing feature, completing audio and video slicing tasks in the room, and uploading them to the specified cloud storage.
89
+ This API is used to achieve the following goals:
90
+ * This API is used to specify the slicing parameter (SliceParams) to define the blocklist or allowlist of the anchors that require slicing.
91
+ * This API is used to specify the storage parameter (SliceStorageParams) to specify the cloud storage you want to upload to. Currently, Tencent Cloud Object Storage (COS) and third-party AWS are supported.
92
+
93
+ :param request: Request instance for CreateCloudSliceTask.
94
+ :type request: :class:`tencentcloud.trtc.v20190722.models.CreateCloudSliceTaskRequest`
95
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.CreateCloudSliceTaskResponse`
96
+
97
+ """
98
+ try:
99
+ params = request._serialize()
100
+ headers = request.headers
101
+ body = self.call("CreateCloudSliceTask", params, headers=headers)
102
+ response = json.loads(body)
103
+ model = models.CreateCloudSliceTaskResponse()
104
+ model._deserialize(response["Response"])
105
+ return model
106
+ except Exception as e:
107
+ if isinstance(e, TencentCloudSDKException):
108
+ raise
109
+ else:
110
+ raise TencentCloudSDKException(type(e).__name__, str(e))
111
+
112
+
86
113
  def DeleteCloudRecording(self, request):
87
114
  """This API is used to stop a recording task. If a task is stopped successfully, but the uploading of recording files has not completed, the backend will continue to upload the files and will notify you via a callback when the upload is completed.
88
115
 
@@ -106,6 +133,29 @@ class TrtcClient(AbstractClient):
106
133
  raise TencentCloudSDKException(type(e).__name__, str(e))
107
134
 
108
135
 
136
+ def DeleteCloudSliceTask(self, request):
137
+ """This API is used to stop the slicing task after it is started. Successfully stopping the slicing does not mean that all files are fully transmitted; if the transmission is not completed, the backend will continue to upload files. After the upload is successful, a notification is sent to the customer, prompting that all files have been transmitted, through the event callback.
138
+
139
+ :param request: Request instance for DeleteCloudSliceTask.
140
+ :type request: :class:`tencentcloud.trtc.v20190722.models.DeleteCloudSliceTaskRequest`
141
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.DeleteCloudSliceTaskResponse`
142
+
143
+ """
144
+ try:
145
+ params = request._serialize()
146
+ headers = request.headers
147
+ body = self.call("DeleteCloudSliceTask", params, headers=headers)
148
+ response = json.loads(body)
149
+ model = models.DeleteCloudSliceTaskResponse()
150
+ model._deserialize(response["Response"])
151
+ return model
152
+ except Exception as e:
153
+ if isinstance(e, TencentCloudSDKException):
154
+ raise
155
+ else:
156
+ raise TencentCloudSDKException(type(e).__name__, str(e))
157
+
158
+
109
159
  def DescribeAIConversation(self, request):
110
160
  """Describe the AI conversation task status
111
161
 
@@ -202,6 +252,29 @@ class TrtcClient(AbstractClient):
202
252
  raise TencentCloudSDKException(type(e).__name__, str(e))
203
253
 
204
254
 
255
+ def DescribeCloudSliceTask(self, request):
256
+ """This API is used to query the status of the slicing task after it is started, which is valid only when the task is in progress. An error will be returned if the task is exited.
257
+
258
+ :param request: Request instance for DescribeCloudSliceTask.
259
+ :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeCloudSliceTaskRequest`
260
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.DescribeCloudSliceTaskResponse`
261
+
262
+ """
263
+ try:
264
+ params = request._serialize()
265
+ headers = request.headers
266
+ body = self.call("DescribeCloudSliceTask", params, headers=headers)
267
+ response = json.loads(body)
268
+ model = models.DescribeCloudSliceTaskResponse()
269
+ model._deserialize(response["Response"])
270
+ return model
271
+ except Exception as e:
272
+ if isinstance(e, TencentCloudSDKException):
273
+ raise
274
+ else:
275
+ raise TencentCloudSDKException(type(e).__name__, str(e))
276
+
277
+
205
278
  def DescribeMixTranscodingUsage(self, request):
206
279
  """This API is used to query your usage of TRTC’s On-Cloud MixTranscoding service.
207
280
  - If the period queried is one day or shorter, the statistics returned are on a five-minute basis. If the period queried is longer than one day, the statistics returned are on a daily basis.
@@ -695,6 +768,29 @@ class TrtcClient(AbstractClient):
695
768
  raise TencentCloudSDKException(type(e).__name__, str(e))
696
769
 
697
770
 
771
+ def ModifyCloudSliceTask(self, request):
772
+ """This API is used to update the slicing task after it is started. It can be used to update the allowlist or blocklist for the specified subscription stream.
773
+
774
+ :param request: Request instance for ModifyCloudSliceTask.
775
+ :type request: :class:`tencentcloud.trtc.v20190722.models.ModifyCloudSliceTaskRequest`
776
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.ModifyCloudSliceTaskResponse`
777
+
778
+ """
779
+ try:
780
+ params = request._serialize()
781
+ headers = request.headers
782
+ body = self.call("ModifyCloudSliceTask", params, headers=headers)
783
+ response = json.loads(body)
784
+ model = models.ModifyCloudSliceTaskResponse()
785
+ model._deserialize(response["Response"])
786
+ return model
787
+ except Exception as e:
788
+ if isinstance(e, TencentCloudSDKException):
789
+ raise
790
+ else:
791
+ raise TencentCloudSDKException(type(e).__name__, str(e))
792
+
793
+
698
794
  def RemoveUser(self, request):
699
795
  """This API is used to remove a user from a room. It is applicable to scenarios where the anchor, room owner, or admin wants to kick out a user. It supports all platforms. For Android, iOS, Windows, and macOS, the TRTC SDK needs to be upgraded to v6.6 or above.
700
796
 
@@ -236,6 +236,9 @@ INVALIDPARAMETERVALUE_INVALIDBUSINESS = 'InvalidParameterValue.InvalidBusiness'
236
236
  # Invalid DedicatedClusterId.
237
237
  INVALIDPARAMETERVALUE_INVALIDDEDICATEDCLUSTERID = 'InvalidParameterValue.InvalidDedicatedClusterId'
238
238
 
239
+ #
240
+ INVALIDPARAMETERVALUE_INVALIDEGRESS = 'InvalidParameterValue.InvalidEgress'
241
+
239
242
  # This IP is applicable only for pay-as-you-go instances that billed by hourly traffic and instances with bandwidth package.
240
243
  INVALIDPARAMETERVALUE_INVALIDINSTANCEINTERNETCHARGETYPE = 'InvalidParameterValue.InvalidInstanceInternetChargeType'
241
244
 
@@ -416,6 +419,9 @@ INVALIDPARAMETERVALUE_TRAFFICPACKAGENOTSUPPORTED = 'InvalidParameterValue.Traffi
416
419
  # This availability zone is unavailable.
417
420
  INVALIDPARAMETERVALUE_UNAVAILABLEZONE = 'InvalidParameterValue.UnavailableZone'
418
421
 
422
+ #
423
+ INVALIDPARAMETERVALUE_UNSUPPORTEDEGRESS = 'InvalidParameterValue.UnsupportedEgress'
424
+
419
425
  # Destination IP address range conflicts with CIDR of the current VPC.
420
426
  INVALIDPARAMETERVALUE_VPCCIDRCONFLICT = 'InvalidParameterValue.VpcCidrConflict'
421
427
 
@@ -30735,7 +30735,7 @@ Note: This field may return null, indicating that no valid value was found.
30735
30735
  :param _ChargeUnit: Billing unit. Valid values: <ul> <li>HOUR: Indicates that the billing unit is calculated hourly. The scenarios currently involving this billing unit include TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_POSTPAID_BY_HOUR.</li></ul>
30736
30736
  Note: This field may return null, indicating that no valid value was found.
30737
30737
  :type ChargeUnit: str
30738
- :param _OriginalPrice: Original price. Unit: CNY. Returned only for prepaid price inquiry.
30738
+ :param _OriginalPrice: Original price. Unit: USD. Returned only for prepaid price inquiry.
30739
30739
  :type OriginalPrice: float
30740
30740
  """
30741
30741
  self._UnitPrice = None
@@ -30780,7 +30780,7 @@ Note: This field may return null, indicating that no valid value was found.
30780
30780
 
30781
30781
  @property
30782
30782
  def OriginalPrice(self):
30783
- """Original price. Unit: CNY. Returned only for prepaid price inquiry.
30783
+ """Original price. Unit: USD. Returned only for prepaid price inquiry.
30784
30784
  :rtype: float
30785
30785
  """
30786
30786
  return self._OriginalPrice
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-intl-en
3
- Version: 3.0.1254
3
+ Version: 3.0.1255
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python-intl-en
6
6
  Author: Tencent Cloud
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=sV6SONtFsKQY62Wv-XiP2YLufe1rhrl0QuTqYKCLmHo,630
1
+ tencentcloud/__init__.py,sha256=eZYU4sz8uuRxF0bCuD-BUVpAJsQzMu7tr01Vf5cuOdg,630
2
2
  tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/advisor/v20200721/advisor_client.py,sha256=fiBV7Nao68T0UJdOUt5BxEABWr7mG_J9NPJT2lXDdyw,2897
@@ -627,9 +627,9 @@ tencentcloud/trro/v20220325/models.py,sha256=L1fncNe76tyXFuKPu8HhoJVUrIjnWYtV7nV
627
627
  tencentcloud/trro/v20220325/trro_client.py,sha256=SnvCyyvDttaJJJqGpFWjQLUoikie0mrmSwa_buQ2Qng,18067
628
628
  tencentcloud/trtc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
629
629
  tencentcloud/trtc/v20190722/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
630
- tencentcloud/trtc/v20190722/errorcodes.py,sha256=rZOuMsqVgwpC2EyIdb1a0DPIlZshIJ-xwMYTYXQ29N8,8311
631
- tencentcloud/trtc/v20190722/models.py,sha256=MW8wLkFdmc5oF1_wqLNwCeoGbwuPUNPGbgC-tbnqzz4,431270
632
- tencentcloud/trtc/v20190722/trtc_client.py,sha256=hNl_c5silFGCIahbN_5vIitJhzWlDpTZcpto8ZaTGMY,69025
630
+ tencentcloud/trtc/v20190722/errorcodes.py,sha256=750GyylLKU6bhug2odkXnQJSKD2BNO4208Ra5DrIBJI,8871
631
+ tencentcloud/trtc/v20190722/models.py,sha256=mlWUYhXwL5isU4He2tMPXZxvi9qHTFvXwyz9NwfIvSQ,464324
632
+ tencentcloud/trtc/v20190722/trtc_client.py,sha256=0a4Lzg2J7upUFXFUD0OuPzFb8HG6uPIaXidZ1P6F6oE,73831
633
633
  tencentcloud/tts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
634
634
  tencentcloud/tts/v20190823/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
635
635
  tencentcloud/tts/v20190823/errorcodes.py,sha256=uOr4TEwacqu7iwFeW5fg4vZMwkEFkTKftB7BVB8VsKc,4787
@@ -660,8 +660,8 @@ tencentcloud/vod/v20240718/models.py,sha256=1gqPwvylljkj6KaMQ3wMEe8JhMm5fC2_W7cL
660
660
  tencentcloud/vod/v20240718/vod_client.py,sha256=rzNzCXhjKxPpefkyoLe1Rg17_xcHPfVth48UQknio9g,8544
661
661
  tencentcloud/vpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
662
662
  tencentcloud/vpc/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
663
- tencentcloud/vpc/v20170312/errorcodes.py,sha256=iTItnv8T9bMLxo1yraEIVZ75W33Ee7LouUbuSkKAm0w,48149
664
- tencentcloud/vpc/v20170312/models.py,sha256=OYttoH4Xdi6kgz7ZU8mx0Fnl2b1XNDKCWtxzVFW_1UY,1594576
663
+ tencentcloud/vpc/v20170312/errorcodes.py,sha256=PTa7c4jCXy22lGqQnP8ZlXah8bK1Dgi-KueZY8oxsyY,48317
664
+ tencentcloud/vpc/v20170312/models.py,sha256=Z8A3AJC3YjsCMtNom0n48TUZXuRsukTztW8HeEGtVz4,1594576
665
665
  tencentcloud/vpc/v20170312/vpc_client.py,sha256=ww3OJcA9OZYuLpp4gKtNDlzDXVM57vki4YXzoZJs7pE,309244
666
666
  tencentcloud/waf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
667
667
  tencentcloud/waf/v20180125/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -678,7 +678,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
678
678
  tencentcloud/yunjing/v20180228/errorcodes.py,sha256=g2ac3Fxgbof23WWhGj9VxvuLJZNshnB0Mg7jWUzTh24,3168
679
679
  tencentcloud/yunjing/v20180228/models.py,sha256=vFpNnPGWiOLdTut0XPTpRRF5lobWUTkFUO1EHc9RkBk,330643
680
680
  tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=PqtaJz4gQ-rIxKXVMNtOKx7kFBQdUn-zKVuH2NcMFcA,67362
681
- tencentcloud_sdk_python_intl_en-3.0.1254.dist-info/METADATA,sha256=7MbkiZp6x6pga8Xod5Z_TA7xmV020Nfd8efqEBsV1ro,1628
682
- tencentcloud_sdk_python_intl_en-3.0.1254.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
683
- tencentcloud_sdk_python_intl_en-3.0.1254.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
684
- tencentcloud_sdk_python_intl_en-3.0.1254.dist-info/RECORD,,
681
+ tencentcloud_sdk_python_intl_en-3.0.1255.dist-info/METADATA,sha256=t49jpE07lQDroi0J695AzrgLm2gm1SJNzNbTPNJhrgs,1628
682
+ tencentcloud_sdk_python_intl_en-3.0.1255.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
683
+ tencentcloud_sdk_python_intl_en-3.0.1255.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
684
+ tencentcloud_sdk_python_intl_en-3.0.1255.dist-info/RECORD,,