tencentcloud-sdk-python-intl-en 3.0.1258__py2.py3-none-any.whl → 3.0.1259__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/emr/v20190103/models.py +336 -0
- tencentcloud/postgres/v20170312/errorcodes.py +18 -0
- tencentcloud/postgres/v20170312/models.py +56 -22
- tencentcloud/redis/v20180412/models.py +1117 -745
- tencentcloud/redis/v20180412/redis_client.py +75 -6
- tencentcloud/trtc/v20190722/models.py +1368 -323
- tencentcloud/trtc/v20190722/trtc_client.py +97 -0
- {tencentcloud_sdk_python_intl_en-3.0.1258.dist-info → tencentcloud_sdk_python_intl_en-3.0.1259.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1258.dist-info → tencentcloud_sdk_python_intl_en-3.0.1259.dist-info}/RECORD +12 -12
- {tencentcloud_sdk_python_intl_en-3.0.1258.dist-info → tencentcloud_sdk_python_intl_en-3.0.1259.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1258.dist-info → tencentcloud_sdk_python_intl_en-3.0.1259.dist-info}/top_level.txt +0 -0
@@ -587,6 +587,141 @@ class AudioParams(AbstractModel):
|
|
587
587
|
|
588
588
|
|
589
589
|
|
590
|
+
class CloudModerationStorage(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
|
+
|
606
|
+
[Region information](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions) of AWS S3.
|
607
|
+
Example value: ap-southeast-3.
|
608
|
+
:type Region: str
|
609
|
+
:param _Bucket: Cloud bucket name.
|
610
|
+
:type Bucket: str
|
611
|
+
:param _AccessKey: access_key account information of the cloud storage.
|
612
|
+
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.
|
613
|
+
Example value: test-accesskey.
|
614
|
+
:type AccessKey: str
|
615
|
+
:param _SecretKey: secret_key account information of cloud storage.
|
616
|
+
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.
|
617
|
+
Example value: test-secretkey.
|
618
|
+
:type SecretKey: str
|
619
|
+
:param _FileNamePrefix: Specified location of the cloud bucket, which consists of arrays 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.
|
620
|
+
:type FileNamePrefix: list of str
|
621
|
+
"""
|
622
|
+
self._Vendor = None
|
623
|
+
self._Region = None
|
624
|
+
self._Bucket = None
|
625
|
+
self._AccessKey = None
|
626
|
+
self._SecretKey = None
|
627
|
+
self._FileNamePrefix = None
|
628
|
+
|
629
|
+
@property
|
630
|
+
def Vendor(self):
|
631
|
+
"""Information about Tencent COS and third-party cloud storage accounts.
|
632
|
+
0: Tencent COS.
|
633
|
+
1: AWS S3.
|
634
|
+
2: Alibaba Cloud OSS.
|
635
|
+
Example value: 0.
|
636
|
+
:rtype: int
|
637
|
+
"""
|
638
|
+
return self._Vendor
|
639
|
+
|
640
|
+
@Vendor.setter
|
641
|
+
def Vendor(self, Vendor):
|
642
|
+
self._Vendor = Vendor
|
643
|
+
|
644
|
+
@property
|
645
|
+
def Region(self):
|
646
|
+
"""[Region information](https://www.tencentcloud.comom/document/product/436/6224?from_cn_redirect=1#.E5.9C.B0.E5.9F.9F) of Tencent COS.
|
647
|
+
Example value: cn-shanghai-1.
|
648
|
+
|
649
|
+
[Region information](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions) of AWS S3.
|
650
|
+
Example value: ap-southeast-3.
|
651
|
+
:rtype: str
|
652
|
+
"""
|
653
|
+
return self._Region
|
654
|
+
|
655
|
+
@Region.setter
|
656
|
+
def Region(self, Region):
|
657
|
+
self._Region = Region
|
658
|
+
|
659
|
+
@property
|
660
|
+
def Bucket(self):
|
661
|
+
"""Cloud bucket name.
|
662
|
+
:rtype: str
|
663
|
+
"""
|
664
|
+
return self._Bucket
|
665
|
+
|
666
|
+
@Bucket.setter
|
667
|
+
def Bucket(self, Bucket):
|
668
|
+
self._Bucket = Bucket
|
669
|
+
|
670
|
+
@property
|
671
|
+
def AccessKey(self):
|
672
|
+
"""access_key account information of the cloud storage.
|
673
|
+
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.
|
674
|
+
Example value: test-accesskey.
|
675
|
+
:rtype: str
|
676
|
+
"""
|
677
|
+
return self._AccessKey
|
678
|
+
|
679
|
+
@AccessKey.setter
|
680
|
+
def AccessKey(self, AccessKey):
|
681
|
+
self._AccessKey = AccessKey
|
682
|
+
|
683
|
+
@property
|
684
|
+
def SecretKey(self):
|
685
|
+
"""secret_key account information of cloud storage.
|
686
|
+
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.
|
687
|
+
Example value: test-secretkey.
|
688
|
+
:rtype: str
|
689
|
+
"""
|
690
|
+
return self._SecretKey
|
691
|
+
|
692
|
+
@SecretKey.setter
|
693
|
+
def SecretKey(self, SecretKey):
|
694
|
+
self._SecretKey = SecretKey
|
695
|
+
|
696
|
+
@property
|
697
|
+
def FileNamePrefix(self):
|
698
|
+
"""Specified location of the cloud bucket, which consists of arrays 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.
|
699
|
+
:rtype: list of str
|
700
|
+
"""
|
701
|
+
return self._FileNamePrefix
|
702
|
+
|
703
|
+
@FileNamePrefix.setter
|
704
|
+
def FileNamePrefix(self, FileNamePrefix):
|
705
|
+
self._FileNamePrefix = FileNamePrefix
|
706
|
+
|
707
|
+
|
708
|
+
def _deserialize(self, params):
|
709
|
+
self._Vendor = params.get("Vendor")
|
710
|
+
self._Region = params.get("Region")
|
711
|
+
self._Bucket = params.get("Bucket")
|
712
|
+
self._AccessKey = params.get("AccessKey")
|
713
|
+
self._SecretKey = params.get("SecretKey")
|
714
|
+
self._FileNamePrefix = params.get("FileNamePrefix")
|
715
|
+
memeber_set = set(params.keys())
|
716
|
+
for name, value in vars(self).items():
|
717
|
+
property_name = name[1:]
|
718
|
+
if property_name in memeber_set:
|
719
|
+
memeber_set.remove(property_name)
|
720
|
+
if len(memeber_set) > 0:
|
721
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
722
|
+
|
723
|
+
|
724
|
+
|
590
725
|
class CloudSliceStorage(AbstractModel):
|
591
726
|
"""Information about Tencent COS and third-party cloud storage accounts.
|
592
727
|
|
@@ -969,53 +1104,42 @@ class ControlAIConversationResponse(AbstractModel):
|
|
969
1104
|
self._RequestId = params.get("RequestId")
|
970
1105
|
|
971
1106
|
|
972
|
-
class
|
973
|
-
"""
|
1107
|
+
class CreateCloudModerationRequest(AbstractModel):
|
1108
|
+
"""CreateCloudModeration request structure.
|
974
1109
|
|
975
1110
|
"""
|
976
1111
|
|
977
1112
|
def __init__(self):
|
978
1113
|
r"""
|
979
|
-
:param _SdkAppId:
|
1114
|
+
: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.
|
980
1115
|
:type SdkAppId: int
|
981
|
-
:param _RoomId:
|
1116
|
+
: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.
|
982
1117
|
:type RoomId: str
|
983
|
-
:param _UserId:
|
1118
|
+
:param _UserId: Chatbot's UserId, which is used to enter the room and initiate a moderation task. [*Note] This UserId should not be duplicated with the UserIds of the current anchors or audience members in the room. If multiple moderation tasks are initiated in one room, the chatbot's UserId should also be unique; otherwise, the previous moderation 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.
|
984
1119
|
:type UserId: str
|
985
|
-
:param _UserSig:
|
1120
|
+
: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.
|
986
1121
|
:type UserSig: str
|
987
|
-
:param
|
988
|
-
:type
|
989
|
-
:param
|
990
|
-
:type
|
991
|
-
:param _RoomIdType:
|
992
|
-
0: String
|
993
|
-
1: 32-bit integer (default)
|
1122
|
+
:param _ModerationParams: Control parameters for cloud moderation.
|
1123
|
+
:type ModerationParams: :class:`tencentcloud.trtc.v20190722.models.ModerationParams`
|
1124
|
+
:param _ModerationStorageParams: Parameters for uploading cloud moderation files to the cloud storage.
|
1125
|
+
:type ModerationStorageParams: :class:`tencentcloud.trtc.v20190722.models.ModerationStorageParams`
|
1126
|
+
: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.
|
994
1127
|
:type RoomIdType: int
|
995
|
-
:param
|
996
|
-
:type MixTranscodeParams: :class:`tencentcloud.trtc.v20190722.models.MixTranscodeParams`
|
997
|
-
:param _MixLayoutParams: The layout parameters, which are valid if the mixed-stream recording mode is used.
|
998
|
-
:type MixLayoutParams: :class:`tencentcloud.trtc.v20190722.models.MixLayoutParams`
|
999
|
-
:param _ResourceExpiredHour: The amount of time (in hours) during which API requests can be made after recording starts. Calculation starts when a recording task is started (when the recording task ID is returned). Once the period elapses, the query, modification, and stop recording APIs can no longer be called, but the recording task will continue. The default value is `72` (three days), and the maximum and minimum values allowed are `720` (30 days) and `6` respectively. If you do not set this parameter, the query, modification, and stop recording APIs can be called within 72 hours after recording starts.
|
1128
|
+
:param _ResourceExpiredHour: Validity period for calling the task ID, which starts upon successful initiation of the task and obtaining the task ID. After the timeout, APIs such as querying, updating, or stopping cannot be called, but the moderation task is not stopped. The unit of the parameter is hours, with a default value of 24 hours (1 day). The maximum value is 72 hours (3 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 slicing APIs is 24 hours upon the successful start of slicing.
|
1000
1129
|
:type ResourceExpiredHour: int
|
1001
|
-
:param _PrivateMapKey: The permission ticket for a TRTC room. This parameter is required if advanced permission control is enabled in the console, in which case the TRTC backend will verify users’ [PrivateMapKey](https://intl.cloud.tencent.com/document/product/647/32240?from_cn_redirect=1), which include an encrypted room ID and permission bit list. A user providing only `UserSig` and not `PrivateMapKey` will be unable to enter the room.
|
1002
|
-
:type PrivateMapKey: str
|
1003
1130
|
"""
|
1004
1131
|
self._SdkAppId = None
|
1005
1132
|
self._RoomId = None
|
1006
1133
|
self._UserId = None
|
1007
1134
|
self._UserSig = None
|
1008
|
-
self.
|
1009
|
-
self.
|
1135
|
+
self._ModerationParams = None
|
1136
|
+
self._ModerationStorageParams = None
|
1010
1137
|
self._RoomIdType = None
|
1011
|
-
self._MixTranscodeParams = None
|
1012
|
-
self._MixLayoutParams = None
|
1013
1138
|
self._ResourceExpiredHour = None
|
1014
|
-
self._PrivateMapKey = None
|
1015
1139
|
|
1016
1140
|
@property
|
1017
1141
|
def SdkAppId(self):
|
1018
|
-
"""
|
1142
|
+
"""[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.
|
1019
1143
|
:rtype: int
|
1020
1144
|
"""
|
1021
1145
|
return self._SdkAppId
|
@@ -1026,7 +1150,7 @@ class CreateCloudRecordingRequest(AbstractModel):
|
|
1026
1150
|
|
1027
1151
|
@property
|
1028
1152
|
def RoomId(self):
|
1029
|
-
"""
|
1153
|
+
"""[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.
|
1030
1154
|
:rtype: str
|
1031
1155
|
"""
|
1032
1156
|
return self._RoomId
|
@@ -1037,7 +1161,7 @@ class CreateCloudRecordingRequest(AbstractModel):
|
|
1037
1161
|
|
1038
1162
|
@property
|
1039
1163
|
def UserId(self):
|
1040
|
-
"""
|
1164
|
+
"""Chatbot's UserId, which is used to enter the room and initiate a moderation task. [*Note] This UserId should not be duplicated with the UserIds of the current anchors or audience members in the room. If multiple moderation tasks are initiated in one room, the chatbot's UserId should also be unique; otherwise, the previous moderation 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.
|
1041
1165
|
:rtype: str
|
1042
1166
|
"""
|
1043
1167
|
return self._UserId
|
@@ -1048,7 +1172,7 @@ class CreateCloudRecordingRequest(AbstractModel):
|
|
1048
1172
|
|
1049
1173
|
@property
|
1050
1174
|
def UserSig(self):
|
1051
|
-
"""
|
1175
|
+
"""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.
|
1052
1176
|
:rtype: str
|
1053
1177
|
"""
|
1054
1178
|
return self._UserSig
|
@@ -1058,32 +1182,30 @@ class CreateCloudRecordingRequest(AbstractModel):
|
|
1058
1182
|
self._UserSig = UserSig
|
1059
1183
|
|
1060
1184
|
@property
|
1061
|
-
def
|
1062
|
-
"""
|
1063
|
-
:rtype: :class:`tencentcloud.trtc.v20190722.models.
|
1185
|
+
def ModerationParams(self):
|
1186
|
+
"""Control parameters for cloud moderation.
|
1187
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.ModerationParams`
|
1064
1188
|
"""
|
1065
|
-
return self.
|
1189
|
+
return self._ModerationParams
|
1066
1190
|
|
1067
|
-
@
|
1068
|
-
def
|
1069
|
-
self.
|
1191
|
+
@ModerationParams.setter
|
1192
|
+
def ModerationParams(self, ModerationParams):
|
1193
|
+
self._ModerationParams = ModerationParams
|
1070
1194
|
|
1071
1195
|
@property
|
1072
|
-
def
|
1073
|
-
"""
|
1074
|
-
:rtype: :class:`tencentcloud.trtc.v20190722.models.
|
1196
|
+
def ModerationStorageParams(self):
|
1197
|
+
"""Parameters for uploading cloud moderation files to the cloud storage.
|
1198
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.ModerationStorageParams`
|
1075
1199
|
"""
|
1076
|
-
return self.
|
1200
|
+
return self._ModerationStorageParams
|
1077
1201
|
|
1078
|
-
@
|
1079
|
-
def
|
1080
|
-
self.
|
1202
|
+
@ModerationStorageParams.setter
|
1203
|
+
def ModerationStorageParams(self, ModerationStorageParams):
|
1204
|
+
self._ModerationStorageParams = ModerationStorageParams
|
1081
1205
|
|
1082
1206
|
@property
|
1083
1207
|
def RoomIdType(self):
|
1084
|
-
"""
|
1085
|
-
0: String
|
1086
|
-
1: 32-bit integer (default)
|
1208
|
+
"""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.
|
1087
1209
|
:rtype: int
|
1088
1210
|
"""
|
1089
1211
|
return self._RoomIdType
|
@@ -1092,31 +1214,9 @@ class CreateCloudRecordingRequest(AbstractModel):
|
|
1092
1214
|
def RoomIdType(self, RoomIdType):
|
1093
1215
|
self._RoomIdType = RoomIdType
|
1094
1216
|
|
1095
|
-
@property
|
1096
|
-
def MixTranscodeParams(self):
|
1097
|
-
"""The stream mixing parameters, which are valid if the mixed-stream recording mode is used.
|
1098
|
-
:rtype: :class:`tencentcloud.trtc.v20190722.models.MixTranscodeParams`
|
1099
|
-
"""
|
1100
|
-
return self._MixTranscodeParams
|
1101
|
-
|
1102
|
-
@MixTranscodeParams.setter
|
1103
|
-
def MixTranscodeParams(self, MixTranscodeParams):
|
1104
|
-
self._MixTranscodeParams = MixTranscodeParams
|
1105
|
-
|
1106
|
-
@property
|
1107
|
-
def MixLayoutParams(self):
|
1108
|
-
"""The layout parameters, which are valid if the mixed-stream recording mode is used.
|
1109
|
-
:rtype: :class:`tencentcloud.trtc.v20190722.models.MixLayoutParams`
|
1110
|
-
"""
|
1111
|
-
return self._MixLayoutParams
|
1112
|
-
|
1113
|
-
@MixLayoutParams.setter
|
1114
|
-
def MixLayoutParams(self, MixLayoutParams):
|
1115
|
-
self._MixLayoutParams = MixLayoutParams
|
1116
|
-
|
1117
1217
|
@property
|
1118
1218
|
def ResourceExpiredHour(self):
|
1119
|
-
"""
|
1219
|
+
"""Validity period for calling the task ID, which starts upon successful initiation of the task and obtaining the task ID. After the timeout, APIs such as querying, updating, or stopping cannot be called, but the moderation task is not stopped. The unit of the parameter is hours, with a default value of 24 hours (1 day). The maximum value is 72 hours (3 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 slicing APIs is 24 hours upon the successful start of slicing.
|
1120
1220
|
:rtype: int
|
1121
1221
|
"""
|
1122
1222
|
return self._ResourceExpiredHour
|
@@ -1125,38 +1225,20 @@ class CreateCloudRecordingRequest(AbstractModel):
|
|
1125
1225
|
def ResourceExpiredHour(self, ResourceExpiredHour):
|
1126
1226
|
self._ResourceExpiredHour = ResourceExpiredHour
|
1127
1227
|
|
1128
|
-
@property
|
1129
|
-
def PrivateMapKey(self):
|
1130
|
-
"""The permission ticket for a TRTC room. This parameter is required if advanced permission control is enabled in the console, in which case the TRTC backend will verify users’ [PrivateMapKey](https://intl.cloud.tencent.com/document/product/647/32240?from_cn_redirect=1), which include an encrypted room ID and permission bit list. A user providing only `UserSig` and not `PrivateMapKey` will be unable to enter the room.
|
1131
|
-
:rtype: str
|
1132
|
-
"""
|
1133
|
-
return self._PrivateMapKey
|
1134
|
-
|
1135
|
-
@PrivateMapKey.setter
|
1136
|
-
def PrivateMapKey(self, PrivateMapKey):
|
1137
|
-
self._PrivateMapKey = PrivateMapKey
|
1138
|
-
|
1139
1228
|
|
1140
1229
|
def _deserialize(self, params):
|
1141
1230
|
self._SdkAppId = params.get("SdkAppId")
|
1142
1231
|
self._RoomId = params.get("RoomId")
|
1143
1232
|
self._UserId = params.get("UserId")
|
1144
1233
|
self._UserSig = params.get("UserSig")
|
1145
|
-
if params.get("
|
1146
|
-
self.
|
1147
|
-
self.
|
1148
|
-
if params.get("
|
1149
|
-
self.
|
1150
|
-
self.
|
1234
|
+
if params.get("ModerationParams") is not None:
|
1235
|
+
self._ModerationParams = ModerationParams()
|
1236
|
+
self._ModerationParams._deserialize(params.get("ModerationParams"))
|
1237
|
+
if params.get("ModerationStorageParams") is not None:
|
1238
|
+
self._ModerationStorageParams = ModerationStorageParams()
|
1239
|
+
self._ModerationStorageParams._deserialize(params.get("ModerationStorageParams"))
|
1151
1240
|
self._RoomIdType = params.get("RoomIdType")
|
1152
|
-
if params.get("MixTranscodeParams") is not None:
|
1153
|
-
self._MixTranscodeParams = MixTranscodeParams()
|
1154
|
-
self._MixTranscodeParams._deserialize(params.get("MixTranscodeParams"))
|
1155
|
-
if params.get("MixLayoutParams") is not None:
|
1156
|
-
self._MixLayoutParams = MixLayoutParams()
|
1157
|
-
self._MixLayoutParams._deserialize(params.get("MixLayoutParams"))
|
1158
1241
|
self._ResourceExpiredHour = params.get("ResourceExpiredHour")
|
1159
|
-
self._PrivateMapKey = params.get("PrivateMapKey")
|
1160
1242
|
memeber_set = set(params.keys())
|
1161
1243
|
for name, value in vars(self).items():
|
1162
1244
|
property_name = name[1:]
|
@@ -1167,14 +1249,14 @@ class CreateCloudRecordingRequest(AbstractModel):
|
|
1167
1249
|
|
1168
1250
|
|
1169
1251
|
|
1170
|
-
class
|
1171
|
-
"""
|
1252
|
+
class CreateCloudModerationResponse(AbstractModel):
|
1253
|
+
"""CreateCloudModeration response structure.
|
1172
1254
|
|
1173
1255
|
"""
|
1174
1256
|
|
1175
1257
|
def __init__(self):
|
1176
1258
|
r"""
|
1177
|
-
:param _TaskId:
|
1259
|
+
:param _TaskId: Task ID assigned by the cloud moderation service. It is a unique identifier for the lifecycle of a moderation 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.
|
1178
1260
|
:type TaskId: str
|
1179
1261
|
: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.
|
1180
1262
|
:type RequestId: str
|
@@ -1184,7 +1266,7 @@ class CreateCloudRecordingResponse(AbstractModel):
|
|
1184
1266
|
|
1185
1267
|
@property
|
1186
1268
|
def TaskId(self):
|
1187
|
-
"""
|
1269
|
+
"""Task ID assigned by the cloud moderation service. It is a unique identifier for the lifecycle of a moderation 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.
|
1188
1270
|
:rtype: str
|
1189
1271
|
"""
|
1190
1272
|
return self._TaskId
|
@@ -1210,45 +1292,53 @@ class CreateCloudRecordingResponse(AbstractModel):
|
|
1210
1292
|
self._RequestId = params.get("RequestId")
|
1211
1293
|
|
1212
1294
|
|
1213
|
-
class
|
1214
|
-
"""
|
1295
|
+
class CreateCloudRecordingRequest(AbstractModel):
|
1296
|
+
"""CreateCloudRecording request structure.
|
1215
1297
|
|
1216
1298
|
"""
|
1217
1299
|
|
1218
1300
|
def __init__(self):
|
1219
1301
|
r"""
|
1220
|
-
:param _SdkAppId: [
|
1302
|
+
:param _SdkAppId: The [SDKAppID](https://intl.cloud.tencent.com/document/product/647/37714) of the TRTC room whose streams are recorded.
|
1221
1303
|
:type SdkAppId: int
|
1222
|
-
:param _RoomId: [
|
1304
|
+
:param _RoomId: The [room ID](https://intl.cloud.tencent.com/document/product/647/37714) of the TRTC room whose streams are recorded.
|
1223
1305
|
:type RoomId: str
|
1224
|
-
:param _UserId:
|
1306
|
+
:param _UserId: The [user ID](https://www.tencentcloud.com/document/product/647/37714#userid) of the recording robot in the TRTC room, which cannot be identical to the user IDs of anchors in the room or other recording robots. To distinguish this user ID from others, we recommend you include the room ID in the user ID.
|
1225
1307
|
:type UserId: str
|
1226
|
-
:param _UserSig:
|
1308
|
+
:param _UserSig: The signature (similar to a login password) required for the recording robot to enter the room. Each user ID corresponds to a signature. For information on how to calculate the signature, see [What is UserSig?](https://intl.cloud.tencent.com/document/product/647/38104).
|
1227
1309
|
:type UserSig: str
|
1228
|
-
:param
|
1229
|
-
:type
|
1230
|
-
:param
|
1231
|
-
:type
|
1232
|
-
:param _RoomIdType:
|
1233
|
-
|
1234
|
-
|
1235
|
-
:type
|
1236
|
-
:param
|
1310
|
+
:param _RecordParams: The on-cloud recording parameters.
|
1311
|
+
:type RecordParams: :class:`tencentcloud.trtc.v20190722.models.RecordParams`
|
1312
|
+
:param _StorageParams: The storage information of the recording file. Currently, you can save recording files to Tencent Cloud VOD or COS.
|
1313
|
+
:type StorageParams: :class:`tencentcloud.trtc.v20190722.models.StorageParams`
|
1314
|
+
:param _RoomIdType: The type of the TRTC room ID, which must be the same as the ID type of the room whose streams are recorded.
|
1315
|
+
0: String
|
1316
|
+
1: 32-bit integer (default)
|
1317
|
+
:type RoomIdType: int
|
1318
|
+
:param _MixTranscodeParams: The stream mixing parameters, which are valid if the mixed-stream recording mode is used.
|
1319
|
+
:type MixTranscodeParams: :class:`tencentcloud.trtc.v20190722.models.MixTranscodeParams`
|
1320
|
+
:param _MixLayoutParams: The layout parameters, which are valid if the mixed-stream recording mode is used.
|
1321
|
+
:type MixLayoutParams: :class:`tencentcloud.trtc.v20190722.models.MixLayoutParams`
|
1322
|
+
:param _ResourceExpiredHour: The amount of time (in hours) during which API requests can be made after recording starts. Calculation starts when a recording task is started (when the recording task ID is returned). Once the period elapses, the query, modification, and stop recording APIs can no longer be called, but the recording task will continue. The default value is `72` (three days), and the maximum and minimum values allowed are `720` (30 days) and `6` respectively. If you do not set this parameter, the query, modification, and stop recording APIs can be called within 72 hours after recording starts.
|
1323
|
+
:type ResourceExpiredHour: int
|
1324
|
+
:param _PrivateMapKey: The permission ticket for a TRTC room. This parameter is required if advanced permission control is enabled in the console, in which case the TRTC backend will verify users’ [PrivateMapKey](https://intl.cloud.tencent.com/document/product/647/32240?from_cn_redirect=1), which include an encrypted room ID and permission bit list. A user providing only `UserSig` and not `PrivateMapKey` will be unable to enter the room.
|
1237
1325
|
:type PrivateMapKey: str
|
1238
1326
|
"""
|
1239
1327
|
self._SdkAppId = None
|
1240
1328
|
self._RoomId = None
|
1241
1329
|
self._UserId = None
|
1242
1330
|
self._UserSig = None
|
1243
|
-
self.
|
1244
|
-
self.
|
1331
|
+
self._RecordParams = None
|
1332
|
+
self._StorageParams = None
|
1245
1333
|
self._RoomIdType = None
|
1334
|
+
self._MixTranscodeParams = None
|
1335
|
+
self._MixLayoutParams = None
|
1246
1336
|
self._ResourceExpiredHour = None
|
1247
1337
|
self._PrivateMapKey = None
|
1248
1338
|
|
1249
1339
|
@property
|
1250
1340
|
def SdkAppId(self):
|
1251
|
-
"""[
|
1341
|
+
"""The [SDKAppID](https://intl.cloud.tencent.com/document/product/647/37714) of the TRTC room whose streams are recorded.
|
1252
1342
|
:rtype: int
|
1253
1343
|
"""
|
1254
1344
|
return self._SdkAppId
|
@@ -1259,7 +1349,7 @@ class CreateCloudSliceTaskRequest(AbstractModel):
|
|
1259
1349
|
|
1260
1350
|
@property
|
1261
1351
|
def RoomId(self):
|
1262
|
-
"""[
|
1352
|
+
"""The [room ID](https://intl.cloud.tencent.com/document/product/647/37714) of the TRTC room whose streams are recorded.
|
1263
1353
|
:rtype: str
|
1264
1354
|
"""
|
1265
1355
|
return self._RoomId
|
@@ -1270,7 +1360,7 @@ class CreateCloudSliceTaskRequest(AbstractModel):
|
|
1270
1360
|
|
1271
1361
|
@property
|
1272
1362
|
def UserId(self):
|
1273
|
-
"""
|
1363
|
+
"""The [user ID](https://www.tencentcloud.com/document/product/647/37714#userid) of the recording robot in the TRTC room, which cannot be identical to the user IDs of anchors in the room or other recording robots. To distinguish this user ID from others, we recommend you include the room ID in the user ID.
|
1274
1364
|
:rtype: str
|
1275
1365
|
"""
|
1276
1366
|
return self._UserId
|
@@ -1281,7 +1371,7 @@ class CreateCloudSliceTaskRequest(AbstractModel):
|
|
1281
1371
|
|
1282
1372
|
@property
|
1283
1373
|
def UserSig(self):
|
1284
|
-
"""
|
1374
|
+
"""The signature (similar to a login password) required for the recording robot to enter the room. Each user ID corresponds to a signature. For information on how to calculate the signature, see [What is UserSig?](https://intl.cloud.tencent.com/document/product/647/38104).
|
1285
1375
|
:rtype: str
|
1286
1376
|
"""
|
1287
1377
|
return self._UserSig
|
@@ -1291,30 +1381,32 @@ class CreateCloudSliceTaskRequest(AbstractModel):
|
|
1291
1381
|
self._UserSig = UserSig
|
1292
1382
|
|
1293
1383
|
@property
|
1294
|
-
def
|
1295
|
-
"""
|
1296
|
-
:rtype: :class:`tencentcloud.trtc.v20190722.models.
|
1384
|
+
def RecordParams(self):
|
1385
|
+
"""The on-cloud recording parameters.
|
1386
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.RecordParams`
|
1297
1387
|
"""
|
1298
|
-
return self.
|
1388
|
+
return self._RecordParams
|
1299
1389
|
|
1300
|
-
@
|
1301
|
-
def
|
1302
|
-
self.
|
1390
|
+
@RecordParams.setter
|
1391
|
+
def RecordParams(self, RecordParams):
|
1392
|
+
self._RecordParams = RecordParams
|
1303
1393
|
|
1304
1394
|
@property
|
1305
|
-
def
|
1306
|
-
"""
|
1307
|
-
:rtype: :class:`tencentcloud.trtc.v20190722.models.
|
1395
|
+
def StorageParams(self):
|
1396
|
+
"""The storage information of the recording file. Currently, you can save recording files to Tencent Cloud VOD or COS.
|
1397
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.StorageParams`
|
1308
1398
|
"""
|
1309
|
-
return self.
|
1399
|
+
return self._StorageParams
|
1310
1400
|
|
1311
|
-
@
|
1312
|
-
def
|
1313
|
-
self.
|
1401
|
+
@StorageParams.setter
|
1402
|
+
def StorageParams(self, StorageParams):
|
1403
|
+
self._StorageParams = StorageParams
|
1314
1404
|
|
1315
1405
|
@property
|
1316
1406
|
def RoomIdType(self):
|
1317
|
-
"""
|
1407
|
+
"""The type of the TRTC room ID, which must be the same as the ID type of the room whose streams are recorded.
|
1408
|
+
0: String
|
1409
|
+
1: 32-bit integer (default)
|
1318
1410
|
:rtype: int
|
1319
1411
|
"""
|
1320
1412
|
return self._RoomIdType
|
@@ -1323,9 +1415,31 @@ class CreateCloudSliceTaskRequest(AbstractModel):
|
|
1323
1415
|
def RoomIdType(self, RoomIdType):
|
1324
1416
|
self._RoomIdType = RoomIdType
|
1325
1417
|
|
1418
|
+
@property
|
1419
|
+
def MixTranscodeParams(self):
|
1420
|
+
"""The stream mixing parameters, which are valid if the mixed-stream recording mode is used.
|
1421
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.MixTranscodeParams`
|
1422
|
+
"""
|
1423
|
+
return self._MixTranscodeParams
|
1424
|
+
|
1425
|
+
@MixTranscodeParams.setter
|
1426
|
+
def MixTranscodeParams(self, MixTranscodeParams):
|
1427
|
+
self._MixTranscodeParams = MixTranscodeParams
|
1428
|
+
|
1429
|
+
@property
|
1430
|
+
def MixLayoutParams(self):
|
1431
|
+
"""The layout parameters, which are valid if the mixed-stream recording mode is used.
|
1432
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.MixLayoutParams`
|
1433
|
+
"""
|
1434
|
+
return self._MixLayoutParams
|
1435
|
+
|
1436
|
+
@MixLayoutParams.setter
|
1437
|
+
def MixLayoutParams(self, MixLayoutParams):
|
1438
|
+
self._MixLayoutParams = MixLayoutParams
|
1439
|
+
|
1326
1440
|
@property
|
1327
1441
|
def ResourceExpiredHour(self):
|
1328
|
-
"""
|
1442
|
+
"""The amount of time (in hours) during which API requests can be made after recording starts. Calculation starts when a recording task is started (when the recording task ID is returned). Once the period elapses, the query, modification, and stop recording APIs can no longer be called, but the recording task will continue. The default value is `72` (three days), and the maximum and minimum values allowed are `720` (30 days) and `6` respectively. If you do not set this parameter, the query, modification, and stop recording APIs can be called within 72 hours after recording starts.
|
1329
1443
|
:rtype: int
|
1330
1444
|
"""
|
1331
1445
|
return self._ResourceExpiredHour
|
@@ -1336,7 +1450,7 @@ class CreateCloudSliceTaskRequest(AbstractModel):
|
|
1336
1450
|
|
1337
1451
|
@property
|
1338
1452
|
def PrivateMapKey(self):
|
1339
|
-
"""TRTC room
|
1453
|
+
"""The permission ticket for a TRTC room. This parameter is required if advanced permission control is enabled in the console, in which case the TRTC backend will verify users’ [PrivateMapKey](https://intl.cloud.tencent.com/document/product/647/32240?from_cn_redirect=1), which include an encrypted room ID and permission bit list. A user providing only `UserSig` and not `PrivateMapKey` will be unable to enter the room.
|
1340
1454
|
:rtype: str
|
1341
1455
|
"""
|
1342
1456
|
return self._PrivateMapKey
|
@@ -1351,13 +1465,19 @@ class CreateCloudSliceTaskRequest(AbstractModel):
|
|
1351
1465
|
self._RoomId = params.get("RoomId")
|
1352
1466
|
self._UserId = params.get("UserId")
|
1353
1467
|
self._UserSig = params.get("UserSig")
|
1354
|
-
if params.get("
|
1355
|
-
self.
|
1356
|
-
self.
|
1357
|
-
if params.get("
|
1358
|
-
self.
|
1359
|
-
self.
|
1468
|
+
if params.get("RecordParams") is not None:
|
1469
|
+
self._RecordParams = RecordParams()
|
1470
|
+
self._RecordParams._deserialize(params.get("RecordParams"))
|
1471
|
+
if params.get("StorageParams") is not None:
|
1472
|
+
self._StorageParams = StorageParams()
|
1473
|
+
self._StorageParams._deserialize(params.get("StorageParams"))
|
1360
1474
|
self._RoomIdType = params.get("RoomIdType")
|
1475
|
+
if params.get("MixTranscodeParams") is not None:
|
1476
|
+
self._MixTranscodeParams = MixTranscodeParams()
|
1477
|
+
self._MixTranscodeParams._deserialize(params.get("MixTranscodeParams"))
|
1478
|
+
if params.get("MixLayoutParams") is not None:
|
1479
|
+
self._MixLayoutParams = MixLayoutParams()
|
1480
|
+
self._MixLayoutParams._deserialize(params.get("MixLayoutParams"))
|
1361
1481
|
self._ResourceExpiredHour = params.get("ResourceExpiredHour")
|
1362
1482
|
self._PrivateMapKey = params.get("PrivateMapKey")
|
1363
1483
|
memeber_set = set(params.keys())
|
@@ -1370,14 +1490,14 @@ class CreateCloudSliceTaskRequest(AbstractModel):
|
|
1370
1490
|
|
1371
1491
|
|
1372
1492
|
|
1373
|
-
class
|
1374
|
-
"""
|
1493
|
+
class CreateCloudRecordingResponse(AbstractModel):
|
1494
|
+
"""CreateCloudRecording response structure.
|
1375
1495
|
|
1376
1496
|
"""
|
1377
1497
|
|
1378
1498
|
def __init__(self):
|
1379
1499
|
r"""
|
1380
|
-
:param _TaskId:
|
1500
|
+
:param _TaskId: The task ID assigned by the recording service, which uniquely identifies a recording process and becomes invalid after a recording task ends. After a recording task starts, if you want to perform other actions on the task, you need to specify the task ID when making API requests.
|
1381
1501
|
:type TaskId: str
|
1382
1502
|
: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
1503
|
:type RequestId: str
|
@@ -1387,7 +1507,7 @@ class CreateCloudSliceTaskResponse(AbstractModel):
|
|
1387
1507
|
|
1388
1508
|
@property
|
1389
1509
|
def TaskId(self):
|
1390
|
-
"""
|
1510
|
+
"""The task ID assigned by the recording service, which uniquely identifies a recording process and becomes invalid after a recording task ends. After a recording task starts, if you want to perform other actions on the task, you need to specify the task ID when making API requests.
|
1391
1511
|
:rtype: str
|
1392
1512
|
"""
|
1393
1513
|
return self._TaskId
|
@@ -1413,24 +1533,45 @@ class CreateCloudSliceTaskResponse(AbstractModel):
|
|
1413
1533
|
self._RequestId = params.get("RequestId")
|
1414
1534
|
|
1415
1535
|
|
1416
|
-
class
|
1417
|
-
"""
|
1536
|
+
class CreateCloudSliceTaskRequest(AbstractModel):
|
1537
|
+
"""CreateCloudSliceTask request structure.
|
1418
1538
|
|
1419
1539
|
"""
|
1420
1540
|
|
1421
1541
|
def __init__(self):
|
1422
1542
|
r"""
|
1423
|
-
:param _SdkAppId:
|
1543
|
+
: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.
|
1424
1544
|
:type SdkAppId: int
|
1425
|
-
:param
|
1426
|
-
:type
|
1545
|
+
: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.
|
1546
|
+
:type RoomId: str
|
1547
|
+
: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.
|
1548
|
+
:type UserId: str
|
1549
|
+
: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.
|
1550
|
+
:type UserSig: str
|
1551
|
+
:param _SliceParams: Control parameters for cloud slicing.
|
1552
|
+
:type SliceParams: :class:`tencentcloud.trtc.v20190722.models.SliceParams`
|
1553
|
+
:param _SliceStorageParams: Parameters for uploading cloud slicing files to the cloud storage.
|
1554
|
+
:type SliceStorageParams: :class:`tencentcloud.trtc.v20190722.models.SliceStorageParams`
|
1555
|
+
: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.
|
1556
|
+
:type RoomIdType: int
|
1557
|
+
: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.
|
1558
|
+
:type ResourceExpiredHour: int
|
1559
|
+
: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_.
|
1560
|
+
:type PrivateMapKey: str
|
1427
1561
|
"""
|
1428
1562
|
self._SdkAppId = None
|
1429
|
-
self.
|
1563
|
+
self._RoomId = None
|
1564
|
+
self._UserId = None
|
1565
|
+
self._UserSig = None
|
1566
|
+
self._SliceParams = None
|
1567
|
+
self._SliceStorageParams = None
|
1568
|
+
self._RoomIdType = None
|
1569
|
+
self._ResourceExpiredHour = None
|
1570
|
+
self._PrivateMapKey = None
|
1430
1571
|
|
1431
1572
|
@property
|
1432
1573
|
def SdkAppId(self):
|
1433
|
-
"""
|
1574
|
+
"""[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.
|
1434
1575
|
:rtype: int
|
1435
1576
|
"""
|
1436
1577
|
return self._SdkAppId
|
@@ -1440,20 +1581,108 @@ class DeleteCloudRecordingRequest(AbstractModel):
|
|
1440
1581
|
self._SdkAppId = SdkAppId
|
1441
1582
|
|
1442
1583
|
@property
|
1443
|
-
def
|
1444
|
-
"""
|
1584
|
+
def RoomId(self):
|
1585
|
+
"""[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.
|
1445
1586
|
:rtype: str
|
1446
1587
|
"""
|
1447
|
-
return self.
|
1588
|
+
return self._RoomId
|
1448
1589
|
|
1449
|
-
@
|
1450
|
-
def
|
1451
|
-
self.
|
1590
|
+
@RoomId.setter
|
1591
|
+
def RoomId(self, RoomId):
|
1592
|
+
self._RoomId = RoomId
|
1593
|
+
|
1594
|
+
@property
|
1595
|
+
def UserId(self):
|
1596
|
+
"""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.
|
1597
|
+
:rtype: str
|
1598
|
+
"""
|
1599
|
+
return self._UserId
|
1600
|
+
|
1601
|
+
@UserId.setter
|
1602
|
+
def UserId(self, UserId):
|
1603
|
+
self._UserId = UserId
|
1604
|
+
|
1605
|
+
@property
|
1606
|
+
def UserSig(self):
|
1607
|
+
"""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.
|
1608
|
+
:rtype: str
|
1609
|
+
"""
|
1610
|
+
return self._UserSig
|
1611
|
+
|
1612
|
+
@UserSig.setter
|
1613
|
+
def UserSig(self, UserSig):
|
1614
|
+
self._UserSig = UserSig
|
1615
|
+
|
1616
|
+
@property
|
1617
|
+
def SliceParams(self):
|
1618
|
+
"""Control parameters for cloud slicing.
|
1619
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.SliceParams`
|
1620
|
+
"""
|
1621
|
+
return self._SliceParams
|
1622
|
+
|
1623
|
+
@SliceParams.setter
|
1624
|
+
def SliceParams(self, SliceParams):
|
1625
|
+
self._SliceParams = SliceParams
|
1626
|
+
|
1627
|
+
@property
|
1628
|
+
def SliceStorageParams(self):
|
1629
|
+
"""Parameters for uploading cloud slicing files to the cloud storage.
|
1630
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.SliceStorageParams`
|
1631
|
+
"""
|
1632
|
+
return self._SliceStorageParams
|
1633
|
+
|
1634
|
+
@SliceStorageParams.setter
|
1635
|
+
def SliceStorageParams(self, SliceStorageParams):
|
1636
|
+
self._SliceStorageParams = SliceStorageParams
|
1637
|
+
|
1638
|
+
@property
|
1639
|
+
def RoomIdType(self):
|
1640
|
+
"""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.
|
1641
|
+
:rtype: int
|
1642
|
+
"""
|
1643
|
+
return self._RoomIdType
|
1644
|
+
|
1645
|
+
@RoomIdType.setter
|
1646
|
+
def RoomIdType(self, RoomIdType):
|
1647
|
+
self._RoomIdType = RoomIdType
|
1648
|
+
|
1649
|
+
@property
|
1650
|
+
def ResourceExpiredHour(self):
|
1651
|
+
"""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.
|
1652
|
+
:rtype: int
|
1653
|
+
"""
|
1654
|
+
return self._ResourceExpiredHour
|
1655
|
+
|
1656
|
+
@ResourceExpiredHour.setter
|
1657
|
+
def ResourceExpiredHour(self, ResourceExpiredHour):
|
1658
|
+
self._ResourceExpiredHour = ResourceExpiredHour
|
1659
|
+
|
1660
|
+
@property
|
1661
|
+
def PrivateMapKey(self):
|
1662
|
+
"""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_.
|
1663
|
+
:rtype: str
|
1664
|
+
"""
|
1665
|
+
return self._PrivateMapKey
|
1666
|
+
|
1667
|
+
@PrivateMapKey.setter
|
1668
|
+
def PrivateMapKey(self, PrivateMapKey):
|
1669
|
+
self._PrivateMapKey = PrivateMapKey
|
1452
1670
|
|
1453
1671
|
|
1454
1672
|
def _deserialize(self, params):
|
1455
1673
|
self._SdkAppId = params.get("SdkAppId")
|
1456
|
-
self.
|
1674
|
+
self._RoomId = params.get("RoomId")
|
1675
|
+
self._UserId = params.get("UserId")
|
1676
|
+
self._UserSig = params.get("UserSig")
|
1677
|
+
if params.get("SliceParams") is not None:
|
1678
|
+
self._SliceParams = SliceParams()
|
1679
|
+
self._SliceParams._deserialize(params.get("SliceParams"))
|
1680
|
+
if params.get("SliceStorageParams") is not None:
|
1681
|
+
self._SliceStorageParams = SliceStorageParams()
|
1682
|
+
self._SliceStorageParams._deserialize(params.get("SliceStorageParams"))
|
1683
|
+
self._RoomIdType = params.get("RoomIdType")
|
1684
|
+
self._ResourceExpiredHour = params.get("ResourceExpiredHour")
|
1685
|
+
self._PrivateMapKey = params.get("PrivateMapKey")
|
1457
1686
|
memeber_set = set(params.keys())
|
1458
1687
|
for name, value in vars(self).items():
|
1459
1688
|
property_name = name[1:]
|
@@ -1464,14 +1693,202 @@ class DeleteCloudRecordingRequest(AbstractModel):
|
|
1464
1693
|
|
1465
1694
|
|
1466
1695
|
|
1467
|
-
class
|
1468
|
-
"""
|
1696
|
+
class CreateCloudSliceTaskResponse(AbstractModel):
|
1697
|
+
"""CreateCloudSliceTask response structure.
|
1469
1698
|
|
1470
1699
|
"""
|
1471
1700
|
|
1472
1701
|
def __init__(self):
|
1473
1702
|
r"""
|
1474
|
-
:param _TaskId:
|
1703
|
+
: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.
|
1704
|
+
:type TaskId: str
|
1705
|
+
: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.
|
1706
|
+
:type RequestId: str
|
1707
|
+
"""
|
1708
|
+
self._TaskId = None
|
1709
|
+
self._RequestId = None
|
1710
|
+
|
1711
|
+
@property
|
1712
|
+
def TaskId(self):
|
1713
|
+
"""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.
|
1714
|
+
:rtype: str
|
1715
|
+
"""
|
1716
|
+
return self._TaskId
|
1717
|
+
|
1718
|
+
@TaskId.setter
|
1719
|
+
def TaskId(self, TaskId):
|
1720
|
+
self._TaskId = TaskId
|
1721
|
+
|
1722
|
+
@property
|
1723
|
+
def RequestId(self):
|
1724
|
+
"""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.
|
1725
|
+
:rtype: str
|
1726
|
+
"""
|
1727
|
+
return self._RequestId
|
1728
|
+
|
1729
|
+
@RequestId.setter
|
1730
|
+
def RequestId(self, RequestId):
|
1731
|
+
self._RequestId = RequestId
|
1732
|
+
|
1733
|
+
|
1734
|
+
def _deserialize(self, params):
|
1735
|
+
self._TaskId = params.get("TaskId")
|
1736
|
+
self._RequestId = params.get("RequestId")
|
1737
|
+
|
1738
|
+
|
1739
|
+
class DeleteCloudModerationRequest(AbstractModel):
|
1740
|
+
"""DeleteCloudModeration request structure.
|
1741
|
+
|
1742
|
+
"""
|
1743
|
+
|
1744
|
+
def __init__(self):
|
1745
|
+
r"""
|
1746
|
+
:param _SdkAppId: SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the TRTC room.
|
1747
|
+
:type SdkAppId: int
|
1748
|
+
:param _TaskId: Unique ID of the moderation task, which is returned after the task is started.
|
1749
|
+
:type TaskId: str
|
1750
|
+
"""
|
1751
|
+
self._SdkAppId = None
|
1752
|
+
self._TaskId = None
|
1753
|
+
|
1754
|
+
@property
|
1755
|
+
def SdkAppId(self):
|
1756
|
+
"""SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the TRTC room.
|
1757
|
+
:rtype: int
|
1758
|
+
"""
|
1759
|
+
return self._SdkAppId
|
1760
|
+
|
1761
|
+
@SdkAppId.setter
|
1762
|
+
def SdkAppId(self, SdkAppId):
|
1763
|
+
self._SdkAppId = SdkAppId
|
1764
|
+
|
1765
|
+
@property
|
1766
|
+
def TaskId(self):
|
1767
|
+
"""Unique ID of the moderation task, which is returned after the task is started.
|
1768
|
+
:rtype: str
|
1769
|
+
"""
|
1770
|
+
return self._TaskId
|
1771
|
+
|
1772
|
+
@TaskId.setter
|
1773
|
+
def TaskId(self, TaskId):
|
1774
|
+
self._TaskId = TaskId
|
1775
|
+
|
1776
|
+
|
1777
|
+
def _deserialize(self, params):
|
1778
|
+
self._SdkAppId = params.get("SdkAppId")
|
1779
|
+
self._TaskId = params.get("TaskId")
|
1780
|
+
memeber_set = set(params.keys())
|
1781
|
+
for name, value in vars(self).items():
|
1782
|
+
property_name = name[1:]
|
1783
|
+
if property_name in memeber_set:
|
1784
|
+
memeber_set.remove(property_name)
|
1785
|
+
if len(memeber_set) > 0:
|
1786
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1787
|
+
|
1788
|
+
|
1789
|
+
|
1790
|
+
class DeleteCloudModerationResponse(AbstractModel):
|
1791
|
+
"""DeleteCloudModeration response structure.
|
1792
|
+
|
1793
|
+
"""
|
1794
|
+
|
1795
|
+
def __init__(self):
|
1796
|
+
r"""
|
1797
|
+
:param _TaskId: Unique ID of the moderation task, which is returned after the task is started.
|
1798
|
+
:type TaskId: str
|
1799
|
+
: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.
|
1800
|
+
:type RequestId: str
|
1801
|
+
"""
|
1802
|
+
self._TaskId = None
|
1803
|
+
self._RequestId = None
|
1804
|
+
|
1805
|
+
@property
|
1806
|
+
def TaskId(self):
|
1807
|
+
"""Unique ID of the moderation task, which is returned after the task is started.
|
1808
|
+
:rtype: str
|
1809
|
+
"""
|
1810
|
+
return self._TaskId
|
1811
|
+
|
1812
|
+
@TaskId.setter
|
1813
|
+
def TaskId(self, TaskId):
|
1814
|
+
self._TaskId = TaskId
|
1815
|
+
|
1816
|
+
@property
|
1817
|
+
def RequestId(self):
|
1818
|
+
"""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.
|
1819
|
+
:rtype: str
|
1820
|
+
"""
|
1821
|
+
return self._RequestId
|
1822
|
+
|
1823
|
+
@RequestId.setter
|
1824
|
+
def RequestId(self, RequestId):
|
1825
|
+
self._RequestId = RequestId
|
1826
|
+
|
1827
|
+
|
1828
|
+
def _deserialize(self, params):
|
1829
|
+
self._TaskId = params.get("TaskId")
|
1830
|
+
self._RequestId = params.get("RequestId")
|
1831
|
+
|
1832
|
+
|
1833
|
+
class DeleteCloudRecordingRequest(AbstractModel):
|
1834
|
+
"""DeleteCloudRecording request structure.
|
1835
|
+
|
1836
|
+
"""
|
1837
|
+
|
1838
|
+
def __init__(self):
|
1839
|
+
r"""
|
1840
|
+
:param _SdkAppId: The `SDKAppID` of the room whose streams are recorded.
|
1841
|
+
:type SdkAppId: int
|
1842
|
+
:param _TaskId: The unique ID of the recording task, which is returned after recording starts successfully.
|
1843
|
+
:type TaskId: str
|
1844
|
+
"""
|
1845
|
+
self._SdkAppId = None
|
1846
|
+
self._TaskId = None
|
1847
|
+
|
1848
|
+
@property
|
1849
|
+
def SdkAppId(self):
|
1850
|
+
"""The `SDKAppID` of the room whose streams are recorded.
|
1851
|
+
:rtype: int
|
1852
|
+
"""
|
1853
|
+
return self._SdkAppId
|
1854
|
+
|
1855
|
+
@SdkAppId.setter
|
1856
|
+
def SdkAppId(self, SdkAppId):
|
1857
|
+
self._SdkAppId = SdkAppId
|
1858
|
+
|
1859
|
+
@property
|
1860
|
+
def TaskId(self):
|
1861
|
+
"""The unique ID of the recording task, which is returned after recording starts successfully.
|
1862
|
+
:rtype: str
|
1863
|
+
"""
|
1864
|
+
return self._TaskId
|
1865
|
+
|
1866
|
+
@TaskId.setter
|
1867
|
+
def TaskId(self, TaskId):
|
1868
|
+
self._TaskId = TaskId
|
1869
|
+
|
1870
|
+
|
1871
|
+
def _deserialize(self, params):
|
1872
|
+
self._SdkAppId = params.get("SdkAppId")
|
1873
|
+
self._TaskId = params.get("TaskId")
|
1874
|
+
memeber_set = set(params.keys())
|
1875
|
+
for name, value in vars(self).items():
|
1876
|
+
property_name = name[1:]
|
1877
|
+
if property_name in memeber_set:
|
1878
|
+
memeber_set.remove(property_name)
|
1879
|
+
if len(memeber_set) > 0:
|
1880
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1881
|
+
|
1882
|
+
|
1883
|
+
|
1884
|
+
class DeleteCloudRecordingResponse(AbstractModel):
|
1885
|
+
"""DeleteCloudRecording response structure.
|
1886
|
+
|
1887
|
+
"""
|
1888
|
+
|
1889
|
+
def __init__(self):
|
1890
|
+
r"""
|
1891
|
+
:param _TaskId: The task ID assigned by the recording service, which uniquely identifies a recording process and becomes invalid after a recording task ends.
|
1475
1892
|
:type TaskId: str
|
1476
1893
|
: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.
|
1477
1894
|
:type RequestId: str
|
@@ -2175,16 +2592,16 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
2175
2592
|
self._RequestId = params.get("RequestId")
|
2176
2593
|
|
2177
2594
|
|
2178
|
-
class
|
2179
|
-
"""
|
2595
|
+
class DescribeCloudModerationRequest(AbstractModel):
|
2596
|
+
"""DescribeCloudModeration request structure.
|
2180
2597
|
|
2181
2598
|
"""
|
2182
2599
|
|
2183
2600
|
def __init__(self):
|
2184
2601
|
r"""
|
2185
|
-
:param _SdkAppId:
|
2602
|
+
:param _SdkAppId: SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the recording room.
|
2186
2603
|
:type SdkAppId: int
|
2187
|
-
:param _TaskId:
|
2604
|
+
:param _TaskId: Unique ID of the cloud moderation task, which is returned after the task is started.
|
2188
2605
|
:type TaskId: str
|
2189
2606
|
"""
|
2190
2607
|
self._SdkAppId = None
|
@@ -2192,7 +2609,7 @@ class DescribeCloudRecordingRequest(AbstractModel):
|
|
2192
2609
|
|
2193
2610
|
@property
|
2194
2611
|
def SdkAppId(self):
|
2195
|
-
"""
|
2612
|
+
"""SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the recording room.
|
2196
2613
|
:rtype: int
|
2197
2614
|
"""
|
2198
2615
|
return self._SdkAppId
|
@@ -2203,7 +2620,7 @@ class DescribeCloudRecordingRequest(AbstractModel):
|
|
2203
2620
|
|
2204
2621
|
@property
|
2205
2622
|
def TaskId(self):
|
2206
|
-
"""
|
2623
|
+
"""Unique ID of the cloud moderation task, which is returned after the task is started.
|
2207
2624
|
:rtype: str
|
2208
2625
|
"""
|
2209
2626
|
return self._TaskId
|
@@ -2226,34 +2643,30 @@ class DescribeCloudRecordingRequest(AbstractModel):
|
|
2226
2643
|
|
2227
2644
|
|
2228
2645
|
|
2229
|
-
class
|
2230
|
-
"""
|
2646
|
+
class DescribeCloudModerationResponse(AbstractModel):
|
2647
|
+
"""DescribeCloudModeration response structure.
|
2231
2648
|
|
2232
2649
|
"""
|
2233
2650
|
|
2234
2651
|
def __init__(self):
|
2235
2652
|
r"""
|
2236
|
-
:param _TaskId:
|
2653
|
+
:param _TaskId: Unique ID of the moderation task, which is returned after the task is started.
|
2237
2654
|
:type TaskId: str
|
2238
|
-
:param _Status:
|
2239
|
-
Idle: The task is idle.
|
2240
|
-
InProgress: The task is in progress.
|
2241
|
-
Exited: The task is being ended.
|
2655
|
+
:param _Status: Information about the status of the cloud moderation task. Idle: indicates the current task is idle; InProgress: indicates the current task is in progress; Exited: indicates the current task is being exited.
|
2242
2656
|
:type Status: str
|
2243
|
-
:param
|
2244
|
-
|
2245
|
-
:type StorageFileList: list of StorageFile
|
2657
|
+
:param _SubscribeStreamUserIds: Subscription blocklist and allowlist.
|
2658
|
+
:type SubscribeStreamUserIds: :class:`tencentcloud.trtc.v20190722.models.SubscribeModerationUserIds`
|
2246
2659
|
: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
2660
|
:type RequestId: str
|
2248
2661
|
"""
|
2249
2662
|
self._TaskId = None
|
2250
2663
|
self._Status = None
|
2251
|
-
self.
|
2664
|
+
self._SubscribeStreamUserIds = None
|
2252
2665
|
self._RequestId = None
|
2253
2666
|
|
2254
2667
|
@property
|
2255
2668
|
def TaskId(self):
|
2256
|
-
"""
|
2669
|
+
"""Unique ID of the moderation task, which is returned after the task is started.
|
2257
2670
|
:rtype: str
|
2258
2671
|
"""
|
2259
2672
|
return self._TaskId
|
@@ -2264,10 +2677,7 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
2264
2677
|
|
2265
2678
|
@property
|
2266
2679
|
def Status(self):
|
2267
|
-
"""
|
2268
|
-
Idle: The task is idle.
|
2269
|
-
InProgress: The task is in progress.
|
2270
|
-
Exited: The task is being ended.
|
2680
|
+
"""Information about the status of the cloud moderation task. Idle: indicates the current task is idle; InProgress: indicates the current task is in progress; Exited: indicates the current task is being exited.
|
2271
2681
|
:rtype: str
|
2272
2682
|
"""
|
2273
2683
|
return self._Status
|
@@ -2277,16 +2687,15 @@ Exited: The task is being ended.
|
|
2277
2687
|
self._Status = Status
|
2278
2688
|
|
2279
2689
|
@property
|
2280
|
-
def
|
2281
|
-
"""
|
2282
|
-
|
2283
|
-
:rtype: list of StorageFile
|
2690
|
+
def SubscribeStreamUserIds(self):
|
2691
|
+
"""Subscription blocklist and allowlist.
|
2692
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.SubscribeModerationUserIds`
|
2284
2693
|
"""
|
2285
|
-
return self.
|
2694
|
+
return self._SubscribeStreamUserIds
|
2286
2695
|
|
2287
|
-
@
|
2288
|
-
def
|
2289
|
-
self.
|
2696
|
+
@SubscribeStreamUserIds.setter
|
2697
|
+
def SubscribeStreamUserIds(self, SubscribeStreamUserIds):
|
2698
|
+
self._SubscribeStreamUserIds = SubscribeStreamUserIds
|
2290
2699
|
|
2291
2700
|
@property
|
2292
2701
|
def RequestId(self):
|
@@ -2303,25 +2712,22 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
2303
2712
|
def _deserialize(self, params):
|
2304
2713
|
self._TaskId = params.get("TaskId")
|
2305
2714
|
self._Status = params.get("Status")
|
2306
|
-
if params.get("
|
2307
|
-
self.
|
2308
|
-
|
2309
|
-
obj = StorageFile()
|
2310
|
-
obj._deserialize(item)
|
2311
|
-
self._StorageFileList.append(obj)
|
2715
|
+
if params.get("SubscribeStreamUserIds") is not None:
|
2716
|
+
self._SubscribeStreamUserIds = SubscribeModerationUserIds()
|
2717
|
+
self._SubscribeStreamUserIds._deserialize(params.get("SubscribeStreamUserIds"))
|
2312
2718
|
self._RequestId = params.get("RequestId")
|
2313
2719
|
|
2314
2720
|
|
2315
|
-
class
|
2316
|
-
"""
|
2721
|
+
class DescribeCloudRecordingRequest(AbstractModel):
|
2722
|
+
"""DescribeCloudRecording request structure.
|
2317
2723
|
|
2318
2724
|
"""
|
2319
2725
|
|
2320
2726
|
def __init__(self):
|
2321
2727
|
r"""
|
2322
|
-
:param _SdkAppId:
|
2728
|
+
:param _SdkAppId: The `SDKAppID` of the room whose streams are recorded.
|
2323
2729
|
:type SdkAppId: int
|
2324
|
-
:param _TaskId:
|
2730
|
+
:param _TaskId: The unique ID of the recording task, which is returned after recording starts successfully.
|
2325
2731
|
:type TaskId: str
|
2326
2732
|
"""
|
2327
2733
|
self._SdkAppId = None
|
@@ -2329,7 +2735,7 @@ class DescribeCloudSliceTaskRequest(AbstractModel):
|
|
2329
2735
|
|
2330
2736
|
@property
|
2331
2737
|
def SdkAppId(self):
|
2332
|
-
"""
|
2738
|
+
"""The `SDKAppID` of the room whose streams are recorded.
|
2333
2739
|
:rtype: int
|
2334
2740
|
"""
|
2335
2741
|
return self._SdkAppId
|
@@ -2340,7 +2746,7 @@ class DescribeCloudSliceTaskRequest(AbstractModel):
|
|
2340
2746
|
|
2341
2747
|
@property
|
2342
2748
|
def TaskId(self):
|
2343
|
-
"""
|
2749
|
+
"""The unique ID of the recording task, which is returned after recording starts successfully.
|
2344
2750
|
:rtype: str
|
2345
2751
|
"""
|
2346
2752
|
return self._TaskId
|
@@ -2363,27 +2769,34 @@ class DescribeCloudSliceTaskRequest(AbstractModel):
|
|
2363
2769
|
|
2364
2770
|
|
2365
2771
|
|
2366
|
-
class
|
2367
|
-
"""
|
2772
|
+
class DescribeCloudRecordingResponse(AbstractModel):
|
2773
|
+
"""DescribeCloudRecording response structure.
|
2368
2774
|
|
2369
2775
|
"""
|
2370
2776
|
|
2371
2777
|
def __init__(self):
|
2372
2778
|
r"""
|
2373
|
-
:param _TaskId:
|
2779
|
+
:param _TaskId: The unique ID of the recording task.
|
2374
2780
|
:type TaskId: str
|
2375
|
-
:param _Status:
|
2781
|
+
:param _Status: The status of the on-cloud recording task.
|
2782
|
+
Idle: The task is idle.
|
2783
|
+
InProgress: The task is in progress.
|
2784
|
+
Exited: The task is being ended.
|
2376
2785
|
:type Status: str
|
2786
|
+
:param _StorageFileList: The information of the recording files.
|
2787
|
+
Note: This field may return `null`, indicating that no valid values can be obtained.
|
2788
|
+
:type StorageFileList: list of StorageFile
|
2377
2789
|
: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.
|
2378
2790
|
:type RequestId: str
|
2379
2791
|
"""
|
2380
2792
|
self._TaskId = None
|
2381
2793
|
self._Status = None
|
2794
|
+
self._StorageFileList = None
|
2382
2795
|
self._RequestId = None
|
2383
2796
|
|
2384
2797
|
@property
|
2385
2798
|
def TaskId(self):
|
2386
|
-
"""
|
2799
|
+
"""The unique ID of the recording task.
|
2387
2800
|
:rtype: str
|
2388
2801
|
"""
|
2389
2802
|
return self._TaskId
|
@@ -2394,7 +2807,137 @@ class DescribeCloudSliceTaskResponse(AbstractModel):
|
|
2394
2807
|
|
2395
2808
|
@property
|
2396
2809
|
def Status(self):
|
2397
|
-
"""
|
2810
|
+
"""The status of the on-cloud recording task.
|
2811
|
+
Idle: The task is idle.
|
2812
|
+
InProgress: The task is in progress.
|
2813
|
+
Exited: The task is being ended.
|
2814
|
+
:rtype: str
|
2815
|
+
"""
|
2816
|
+
return self._Status
|
2817
|
+
|
2818
|
+
@Status.setter
|
2819
|
+
def Status(self, Status):
|
2820
|
+
self._Status = Status
|
2821
|
+
|
2822
|
+
@property
|
2823
|
+
def StorageFileList(self):
|
2824
|
+
"""The information of the recording files.
|
2825
|
+
Note: This field may return `null`, indicating that no valid values can be obtained.
|
2826
|
+
:rtype: list of StorageFile
|
2827
|
+
"""
|
2828
|
+
return self._StorageFileList
|
2829
|
+
|
2830
|
+
@StorageFileList.setter
|
2831
|
+
def StorageFileList(self, StorageFileList):
|
2832
|
+
self._StorageFileList = StorageFileList
|
2833
|
+
|
2834
|
+
@property
|
2835
|
+
def RequestId(self):
|
2836
|
+
"""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.
|
2837
|
+
:rtype: str
|
2838
|
+
"""
|
2839
|
+
return self._RequestId
|
2840
|
+
|
2841
|
+
@RequestId.setter
|
2842
|
+
def RequestId(self, RequestId):
|
2843
|
+
self._RequestId = RequestId
|
2844
|
+
|
2845
|
+
|
2846
|
+
def _deserialize(self, params):
|
2847
|
+
self._TaskId = params.get("TaskId")
|
2848
|
+
self._Status = params.get("Status")
|
2849
|
+
if params.get("StorageFileList") is not None:
|
2850
|
+
self._StorageFileList = []
|
2851
|
+
for item in params.get("StorageFileList"):
|
2852
|
+
obj = StorageFile()
|
2853
|
+
obj._deserialize(item)
|
2854
|
+
self._StorageFileList.append(obj)
|
2855
|
+
self._RequestId = params.get("RequestId")
|
2856
|
+
|
2857
|
+
|
2858
|
+
class DescribeCloudSliceTaskRequest(AbstractModel):
|
2859
|
+
"""DescribeCloudSliceTask request structure.
|
2860
|
+
|
2861
|
+
"""
|
2862
|
+
|
2863
|
+
def __init__(self):
|
2864
|
+
r"""
|
2865
|
+
:param _SdkAppId: SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the recording room.
|
2866
|
+
:type SdkAppId: int
|
2867
|
+
:param _TaskId: Unique ID of the slicing task, which is returned after the task is started.
|
2868
|
+
:type TaskId: str
|
2869
|
+
"""
|
2870
|
+
self._SdkAppId = None
|
2871
|
+
self._TaskId = None
|
2872
|
+
|
2873
|
+
@property
|
2874
|
+
def SdkAppId(self):
|
2875
|
+
"""SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the recording room.
|
2876
|
+
:rtype: int
|
2877
|
+
"""
|
2878
|
+
return self._SdkAppId
|
2879
|
+
|
2880
|
+
@SdkAppId.setter
|
2881
|
+
def SdkAppId(self, SdkAppId):
|
2882
|
+
self._SdkAppId = SdkAppId
|
2883
|
+
|
2884
|
+
@property
|
2885
|
+
def TaskId(self):
|
2886
|
+
"""Unique ID of the slicing task, which is returned after the task is started.
|
2887
|
+
:rtype: str
|
2888
|
+
"""
|
2889
|
+
return self._TaskId
|
2890
|
+
|
2891
|
+
@TaskId.setter
|
2892
|
+
def TaskId(self, TaskId):
|
2893
|
+
self._TaskId = TaskId
|
2894
|
+
|
2895
|
+
|
2896
|
+
def _deserialize(self, params):
|
2897
|
+
self._SdkAppId = params.get("SdkAppId")
|
2898
|
+
self._TaskId = params.get("TaskId")
|
2899
|
+
memeber_set = set(params.keys())
|
2900
|
+
for name, value in vars(self).items():
|
2901
|
+
property_name = name[1:]
|
2902
|
+
if property_name in memeber_set:
|
2903
|
+
memeber_set.remove(property_name)
|
2904
|
+
if len(memeber_set) > 0:
|
2905
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2906
|
+
|
2907
|
+
|
2908
|
+
|
2909
|
+
class DescribeCloudSliceTaskResponse(AbstractModel):
|
2910
|
+
"""DescribeCloudSliceTask response structure.
|
2911
|
+
|
2912
|
+
"""
|
2913
|
+
|
2914
|
+
def __init__(self):
|
2915
|
+
r"""
|
2916
|
+
:param _TaskId: Unique ID of the slicing task, which is returned after the task is started.
|
2917
|
+
:type TaskId: str
|
2918
|
+
: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.
|
2919
|
+
:type Status: str
|
2920
|
+
: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.
|
2921
|
+
:type RequestId: str
|
2922
|
+
"""
|
2923
|
+
self._TaskId = None
|
2924
|
+
self._Status = None
|
2925
|
+
self._RequestId = None
|
2926
|
+
|
2927
|
+
@property
|
2928
|
+
def TaskId(self):
|
2929
|
+
"""Unique ID of the slicing task, which is returned after the task is started.
|
2930
|
+
:rtype: str
|
2931
|
+
"""
|
2932
|
+
return self._TaskId
|
2933
|
+
|
2934
|
+
@TaskId.setter
|
2935
|
+
def TaskId(self, TaskId):
|
2936
|
+
self._TaskId = TaskId
|
2937
|
+
|
2938
|
+
@property
|
2939
|
+
def Status(self):
|
2940
|
+
"""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.
|
2398
2941
|
:rtype: str
|
2399
2942
|
"""
|
2400
2943
|
return self._Status
|
@@ -7215,58 +7758,481 @@ This parameter specifies the type of the stream displayed in the big window. If
|
|
7215
7758
|
"""The watermark layout. Up to 25 watermarks are supported.
|
7216
7759
|
:rtype: list of WaterMark
|
7217
7760
|
"""
|
7218
|
-
return self._WaterMarkList
|
7761
|
+
return self._WaterMarkList
|
7762
|
+
|
7763
|
+
@WaterMarkList.setter
|
7764
|
+
def WaterMarkList(self, WaterMarkList):
|
7765
|
+
self._WaterMarkList = WaterMarkList
|
7766
|
+
|
7767
|
+
@property
|
7768
|
+
def RenderMode(self):
|
7769
|
+
"""The render mode to use when the aspect ratio of a video is different from that of the window. This parameter is invalid if a custom layout is used. It is defined the same as `RenderMode` in `MixLayoufList`.
|
7770
|
+
:rtype: int
|
7771
|
+
"""
|
7772
|
+
return self._RenderMode
|
7773
|
+
|
7774
|
+
@RenderMode.setter
|
7775
|
+
def RenderMode(self, RenderMode):
|
7776
|
+
self._RenderMode = RenderMode
|
7777
|
+
|
7778
|
+
@property
|
7779
|
+
def MaxResolutionUserAlign(self):
|
7780
|
+
"""This parameter is valid only if the screen sharing layout is used. If you set it to `1`, the large video window will appear on the right and the small window on the left. The default value is `0`.
|
7781
|
+
:rtype: int
|
7782
|
+
"""
|
7783
|
+
return self._MaxResolutionUserAlign
|
7784
|
+
|
7785
|
+
@MaxResolutionUserAlign.setter
|
7786
|
+
def MaxResolutionUserAlign(self, MaxResolutionUserAlign):
|
7787
|
+
self._MaxResolutionUserAlign = MaxResolutionUserAlign
|
7788
|
+
|
7789
|
+
|
7790
|
+
def _deserialize(self, params):
|
7791
|
+
self._MixLayoutMode = params.get("MixLayoutMode")
|
7792
|
+
if params.get("MixLayoutList") is not None:
|
7793
|
+
self._MixLayoutList = []
|
7794
|
+
for item in params.get("MixLayoutList"):
|
7795
|
+
obj = MixLayout()
|
7796
|
+
obj._deserialize(item)
|
7797
|
+
self._MixLayoutList.append(obj)
|
7798
|
+
self._BackGroundColor = params.get("BackGroundColor")
|
7799
|
+
self._MaxResolutionUserId = params.get("MaxResolutionUserId")
|
7800
|
+
self._MediaId = params.get("MediaId")
|
7801
|
+
self._BackgroundImageUrl = params.get("BackgroundImageUrl")
|
7802
|
+
self._PlaceHolderMode = params.get("PlaceHolderMode")
|
7803
|
+
self._BackgroundImageRenderMode = params.get("BackgroundImageRenderMode")
|
7804
|
+
self._DefaultSubBackgroundImage = params.get("DefaultSubBackgroundImage")
|
7805
|
+
if params.get("WaterMarkList") is not None:
|
7806
|
+
self._WaterMarkList = []
|
7807
|
+
for item in params.get("WaterMarkList"):
|
7808
|
+
obj = WaterMark()
|
7809
|
+
obj._deserialize(item)
|
7810
|
+
self._WaterMarkList.append(obj)
|
7811
|
+
self._RenderMode = params.get("RenderMode")
|
7812
|
+
self._MaxResolutionUserAlign = params.get("MaxResolutionUserAlign")
|
7813
|
+
memeber_set = set(params.keys())
|
7814
|
+
for name, value in vars(self).items():
|
7815
|
+
property_name = name[1:]
|
7816
|
+
if property_name in memeber_set:
|
7817
|
+
memeber_set.remove(property_name)
|
7818
|
+
if len(memeber_set) > 0:
|
7819
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7820
|
+
|
7821
|
+
|
7822
|
+
|
7823
|
+
class MixTranscodeParams(AbstractModel):
|
7824
|
+
"""The audio and video parameters for recording.
|
7825
|
+
|
7826
|
+
"""
|
7827
|
+
|
7828
|
+
def __init__(self):
|
7829
|
+
r"""
|
7830
|
+
:param _VideoParams: The video transcoding parameters for recording. If you set this parameter, you must specify all its fields. If you do not set it, the default will be used.
|
7831
|
+
:type VideoParams: :class:`tencentcloud.trtc.v20190722.models.VideoParams`
|
7832
|
+
:param _AudioParams: The audio transcoding parameters for recording. If you set this parameter, you must specify all its fields. If you do not set it, the default will be used.
|
7833
|
+
:type AudioParams: :class:`tencentcloud.trtc.v20190722.models.AudioParams`
|
7834
|
+
"""
|
7835
|
+
self._VideoParams = None
|
7836
|
+
self._AudioParams = None
|
7837
|
+
|
7838
|
+
@property
|
7839
|
+
def VideoParams(self):
|
7840
|
+
"""The video transcoding parameters for recording. If you set this parameter, you must specify all its fields. If you do not set it, the default will be used.
|
7841
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.VideoParams`
|
7842
|
+
"""
|
7843
|
+
return self._VideoParams
|
7844
|
+
|
7845
|
+
@VideoParams.setter
|
7846
|
+
def VideoParams(self, VideoParams):
|
7847
|
+
self._VideoParams = VideoParams
|
7848
|
+
|
7849
|
+
@property
|
7850
|
+
def AudioParams(self):
|
7851
|
+
"""The audio transcoding parameters for recording. If you set this parameter, you must specify all its fields. If you do not set it, the default will be used.
|
7852
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.AudioParams`
|
7853
|
+
"""
|
7854
|
+
return self._AudioParams
|
7855
|
+
|
7856
|
+
@AudioParams.setter
|
7857
|
+
def AudioParams(self, AudioParams):
|
7858
|
+
self._AudioParams = AudioParams
|
7859
|
+
|
7860
|
+
|
7861
|
+
def _deserialize(self, params):
|
7862
|
+
if params.get("VideoParams") is not None:
|
7863
|
+
self._VideoParams = VideoParams()
|
7864
|
+
self._VideoParams._deserialize(params.get("VideoParams"))
|
7865
|
+
if params.get("AudioParams") is not None:
|
7866
|
+
self._AudioParams = AudioParams()
|
7867
|
+
self._AudioParams._deserialize(params.get("AudioParams"))
|
7868
|
+
memeber_set = set(params.keys())
|
7869
|
+
for name, value in vars(self).items():
|
7870
|
+
property_name = name[1:]
|
7871
|
+
if property_name in memeber_set:
|
7872
|
+
memeber_set.remove(property_name)
|
7873
|
+
if len(memeber_set) > 0:
|
7874
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7875
|
+
|
7876
|
+
|
7877
|
+
|
7878
|
+
class MixUserInfo(AbstractModel):
|
7879
|
+
"""The user information.
|
7880
|
+
|
7881
|
+
"""
|
7882
|
+
|
7883
|
+
def __init__(self):
|
7884
|
+
r"""
|
7885
|
+
:param _UserId: User ID.
|
7886
|
+
:type UserId: str
|
7887
|
+
:param _RoomId: If a dynamic layout is used, the value of this parameter should be the ID of the main room. If a custom layout is used, the value of this parameter should be the same as the room ID in `MixLayoutList`.
|
7888
|
+
:type RoomId: str
|
7889
|
+
:param _RoomIdType: The type of the `RoomId` parameter. 0: integer; 1: string.
|
7890
|
+
:type RoomIdType: int
|
7891
|
+
"""
|
7892
|
+
self._UserId = None
|
7893
|
+
self._RoomId = None
|
7894
|
+
self._RoomIdType = None
|
7895
|
+
|
7896
|
+
@property
|
7897
|
+
def UserId(self):
|
7898
|
+
"""User ID.
|
7899
|
+
:rtype: str
|
7900
|
+
"""
|
7901
|
+
return self._UserId
|
7902
|
+
|
7903
|
+
@UserId.setter
|
7904
|
+
def UserId(self, UserId):
|
7905
|
+
self._UserId = UserId
|
7906
|
+
|
7907
|
+
@property
|
7908
|
+
def RoomId(self):
|
7909
|
+
"""If a dynamic layout is used, the value of this parameter should be the ID of the main room. If a custom layout is used, the value of this parameter should be the same as the room ID in `MixLayoutList`.
|
7910
|
+
:rtype: str
|
7911
|
+
"""
|
7912
|
+
return self._RoomId
|
7913
|
+
|
7914
|
+
@RoomId.setter
|
7915
|
+
def RoomId(self, RoomId):
|
7916
|
+
self._RoomId = RoomId
|
7917
|
+
|
7918
|
+
@property
|
7919
|
+
def RoomIdType(self):
|
7920
|
+
"""The type of the `RoomId` parameter. 0: integer; 1: string.
|
7921
|
+
:rtype: int
|
7922
|
+
"""
|
7923
|
+
return self._RoomIdType
|
7924
|
+
|
7925
|
+
@RoomIdType.setter
|
7926
|
+
def RoomIdType(self, RoomIdType):
|
7927
|
+
self._RoomIdType = RoomIdType
|
7928
|
+
|
7929
|
+
|
7930
|
+
def _deserialize(self, params):
|
7931
|
+
self._UserId = params.get("UserId")
|
7932
|
+
self._RoomId = params.get("RoomId")
|
7933
|
+
self._RoomIdType = params.get("RoomIdType")
|
7934
|
+
memeber_set = set(params.keys())
|
7935
|
+
for name, value in vars(self).items():
|
7936
|
+
property_name = name[1:]
|
7937
|
+
if property_name in memeber_set:
|
7938
|
+
memeber_set.remove(property_name)
|
7939
|
+
if len(memeber_set) > 0:
|
7940
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7941
|
+
|
7942
|
+
|
7943
|
+
|
7944
|
+
class ModerationParams(AbstractModel):
|
7945
|
+
"""Control parameters for cloud moderation.
|
7946
|
+
|
7947
|
+
"""
|
7948
|
+
|
7949
|
+
def __init__(self):
|
7950
|
+
r"""
|
7951
|
+
:param _ModerationType: Moderation task type. 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio slicing moderation + video frame extraction moderation; 4: audio stream moderation; 5: audio stream moderation + video frame extraction moderation. The default value is 1. (Support from suppliers is required for stream moderation to take effect.)
|
7952
|
+
:type ModerationType: int
|
7953
|
+
:param _MaxIdleTime: Slicing is stopped automatically when there is no user (anchor) performing upstream push 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 1800 seconds (0.5 hours). Example value: 30.
|
7954
|
+
:type MaxIdleTime: int
|
7955
|
+
:param _SliceAudio: Audio slicing duration. Default value: 15s. Example value: 15.
|
7956
|
+
:type SliceAudio: int
|
7957
|
+
:param _SliceVideo: Interval for video frame extraction. Default value: 5s.
|
7958
|
+
:type SliceVideo: int
|
7959
|
+
:param _ModerationSupplier: Enumeration values for suppliers.
|
7960
|
+
tianyu: Tencent Tianyu content security. (Valid values: 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio-visual slicing moderation + video frame extraction moderation.)
|
7961
|
+
ace: ACE content security. (Valid values: 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio-visual slicing moderation + video frame extraction moderation.)
|
7962
|
+
shumei: shumei moderation. (Valid values: 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio-visual slicing moderation + video frame extraction moderation.)
|
7963
|
+
Yidun: NetEase Yidun moderation. (Valid values: 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio-visual slicing moderation + video frame extraction moderation.)
|
7964
|
+
:type ModerationSupplier: str
|
7965
|
+
:param _ModerationSupplierParam: Configuration information required for submitting content to the third-party moderation supplier.
|
7966
|
+
:type ModerationSupplierParam: :class:`tencentcloud.trtc.v20190722.models.ModerationSupplierParam`
|
7967
|
+
:param _SaveModerationFile: Whether to save the hit file. 0: not save by default; 1: save.
|
7968
|
+
:type SaveModerationFile: int
|
7969
|
+
:param _CallbackAllResults: Whether to call back all moderation results: 0: call back all results by default; 1: only call back hit results.
|
7970
|
+
:type CallbackAllResults: int
|
7971
|
+
:param _SubscribeStreamUserIds: Specifies the allowlist or blocklist for the subscription stream.
|
7972
|
+
:type SubscribeStreamUserIds: :class:`tencentcloud.trtc.v20190722.models.SubscribeModerationUserIds`
|
7973
|
+
"""
|
7974
|
+
self._ModerationType = None
|
7975
|
+
self._MaxIdleTime = None
|
7976
|
+
self._SliceAudio = None
|
7977
|
+
self._SliceVideo = None
|
7978
|
+
self._ModerationSupplier = None
|
7979
|
+
self._ModerationSupplierParam = None
|
7980
|
+
self._SaveModerationFile = None
|
7981
|
+
self._CallbackAllResults = None
|
7982
|
+
self._SubscribeStreamUserIds = None
|
7983
|
+
|
7984
|
+
@property
|
7985
|
+
def ModerationType(self):
|
7986
|
+
"""Moderation task type. 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio slicing moderation + video frame extraction moderation; 4: audio stream moderation; 5: audio stream moderation + video frame extraction moderation. The default value is 1. (Support from suppliers is required for stream moderation to take effect.)
|
7987
|
+
:rtype: int
|
7988
|
+
"""
|
7989
|
+
return self._ModerationType
|
7990
|
+
|
7991
|
+
@ModerationType.setter
|
7992
|
+
def ModerationType(self, ModerationType):
|
7993
|
+
self._ModerationType = ModerationType
|
7994
|
+
|
7995
|
+
@property
|
7996
|
+
def MaxIdleTime(self):
|
7997
|
+
"""Slicing is stopped automatically when there is no user (anchor) performing upstream push 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 1800 seconds (0.5 hours). Example value: 30.
|
7998
|
+
:rtype: int
|
7999
|
+
"""
|
8000
|
+
return self._MaxIdleTime
|
8001
|
+
|
8002
|
+
@MaxIdleTime.setter
|
8003
|
+
def MaxIdleTime(self, MaxIdleTime):
|
8004
|
+
self._MaxIdleTime = MaxIdleTime
|
8005
|
+
|
8006
|
+
@property
|
8007
|
+
def SliceAudio(self):
|
8008
|
+
"""Audio slicing duration. Default value: 15s. Example value: 15.
|
8009
|
+
:rtype: int
|
8010
|
+
"""
|
8011
|
+
return self._SliceAudio
|
8012
|
+
|
8013
|
+
@SliceAudio.setter
|
8014
|
+
def SliceAudio(self, SliceAudio):
|
8015
|
+
self._SliceAudio = SliceAudio
|
8016
|
+
|
8017
|
+
@property
|
8018
|
+
def SliceVideo(self):
|
8019
|
+
"""Interval for video frame extraction. Default value: 5s.
|
8020
|
+
:rtype: int
|
8021
|
+
"""
|
8022
|
+
return self._SliceVideo
|
8023
|
+
|
8024
|
+
@SliceVideo.setter
|
8025
|
+
def SliceVideo(self, SliceVideo):
|
8026
|
+
self._SliceVideo = SliceVideo
|
8027
|
+
|
8028
|
+
@property
|
8029
|
+
def ModerationSupplier(self):
|
8030
|
+
"""Enumeration values for suppliers.
|
8031
|
+
tianyu: Tencent Tianyu content security. (Valid values: 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio-visual slicing moderation + video frame extraction moderation.)
|
8032
|
+
ace: ACE content security. (Valid values: 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio-visual slicing moderation + video frame extraction moderation.)
|
8033
|
+
shumei: shumei moderation. (Valid values: 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio-visual slicing moderation + video frame extraction moderation.)
|
8034
|
+
Yidun: NetEase Yidun moderation. (Valid values: 1: audio slicing moderation; 2: video frame extraction moderation; 3: audio-visual slicing moderation + video frame extraction moderation.)
|
8035
|
+
:rtype: str
|
8036
|
+
"""
|
8037
|
+
return self._ModerationSupplier
|
8038
|
+
|
8039
|
+
@ModerationSupplier.setter
|
8040
|
+
def ModerationSupplier(self, ModerationSupplier):
|
8041
|
+
self._ModerationSupplier = ModerationSupplier
|
8042
|
+
|
8043
|
+
@property
|
8044
|
+
def ModerationSupplierParam(self):
|
8045
|
+
"""Configuration information required for submitting content to the third-party moderation supplier.
|
8046
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.ModerationSupplierParam`
|
8047
|
+
"""
|
8048
|
+
return self._ModerationSupplierParam
|
8049
|
+
|
8050
|
+
@ModerationSupplierParam.setter
|
8051
|
+
def ModerationSupplierParam(self, ModerationSupplierParam):
|
8052
|
+
self._ModerationSupplierParam = ModerationSupplierParam
|
8053
|
+
|
8054
|
+
@property
|
8055
|
+
def SaveModerationFile(self):
|
8056
|
+
"""Whether to save the hit file. 0: not save by default; 1: save.
|
8057
|
+
:rtype: int
|
8058
|
+
"""
|
8059
|
+
return self._SaveModerationFile
|
8060
|
+
|
8061
|
+
@SaveModerationFile.setter
|
8062
|
+
def SaveModerationFile(self, SaveModerationFile):
|
8063
|
+
self._SaveModerationFile = SaveModerationFile
|
8064
|
+
|
8065
|
+
@property
|
8066
|
+
def CallbackAllResults(self):
|
8067
|
+
"""Whether to call back all moderation results: 0: call back all results by default; 1: only call back hit results.
|
8068
|
+
:rtype: int
|
8069
|
+
"""
|
8070
|
+
return self._CallbackAllResults
|
8071
|
+
|
8072
|
+
@CallbackAllResults.setter
|
8073
|
+
def CallbackAllResults(self, CallbackAllResults):
|
8074
|
+
self._CallbackAllResults = CallbackAllResults
|
8075
|
+
|
8076
|
+
@property
|
8077
|
+
def SubscribeStreamUserIds(self):
|
8078
|
+
"""Specifies the allowlist or blocklist for the subscription stream.
|
8079
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.SubscribeModerationUserIds`
|
8080
|
+
"""
|
8081
|
+
return self._SubscribeStreamUserIds
|
8082
|
+
|
8083
|
+
@SubscribeStreamUserIds.setter
|
8084
|
+
def SubscribeStreamUserIds(self, SubscribeStreamUserIds):
|
8085
|
+
self._SubscribeStreamUserIds = SubscribeStreamUserIds
|
8086
|
+
|
8087
|
+
|
8088
|
+
def _deserialize(self, params):
|
8089
|
+
self._ModerationType = params.get("ModerationType")
|
8090
|
+
self._MaxIdleTime = params.get("MaxIdleTime")
|
8091
|
+
self._SliceAudio = params.get("SliceAudio")
|
8092
|
+
self._SliceVideo = params.get("SliceVideo")
|
8093
|
+
self._ModerationSupplier = params.get("ModerationSupplier")
|
8094
|
+
if params.get("ModerationSupplierParam") is not None:
|
8095
|
+
self._ModerationSupplierParam = ModerationSupplierParam()
|
8096
|
+
self._ModerationSupplierParam._deserialize(params.get("ModerationSupplierParam"))
|
8097
|
+
self._SaveModerationFile = params.get("SaveModerationFile")
|
8098
|
+
self._CallbackAllResults = params.get("CallbackAllResults")
|
8099
|
+
if params.get("SubscribeStreamUserIds") is not None:
|
8100
|
+
self._SubscribeStreamUserIds = SubscribeModerationUserIds()
|
8101
|
+
self._SubscribeStreamUserIds._deserialize(params.get("SubscribeStreamUserIds"))
|
8102
|
+
memeber_set = set(params.keys())
|
8103
|
+
for name, value in vars(self).items():
|
8104
|
+
property_name = name[1:]
|
8105
|
+
if property_name in memeber_set:
|
8106
|
+
memeber_set.remove(property_name)
|
8107
|
+
if len(memeber_set) > 0:
|
8108
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
8109
|
+
|
8110
|
+
|
8111
|
+
|
8112
|
+
class ModerationStorageParams(AbstractModel):
|
8113
|
+
"""Moderation file storage parameters.
|
8114
|
+
|
8115
|
+
"""
|
8116
|
+
|
8117
|
+
def __init__(self):
|
8118
|
+
r"""
|
8119
|
+
:param _CloudModerationStorage: Information about Tencent COS and third-party cloud storage accounts.
|
8120
|
+
:type CloudModerationStorage: :class:`tencentcloud.trtc.v20190722.models.CloudModerationStorage`
|
8121
|
+
"""
|
8122
|
+
self._CloudModerationStorage = None
|
8123
|
+
|
8124
|
+
@property
|
8125
|
+
def CloudModerationStorage(self):
|
8126
|
+
"""Information about Tencent COS and third-party cloud storage accounts.
|
8127
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.CloudModerationStorage`
|
8128
|
+
"""
|
8129
|
+
return self._CloudModerationStorage
|
8130
|
+
|
8131
|
+
@CloudModerationStorage.setter
|
8132
|
+
def CloudModerationStorage(self, CloudModerationStorage):
|
8133
|
+
self._CloudModerationStorage = CloudModerationStorage
|
8134
|
+
|
8135
|
+
|
8136
|
+
def _deserialize(self, params):
|
8137
|
+
if params.get("CloudModerationStorage") is not None:
|
8138
|
+
self._CloudModerationStorage = CloudModerationStorage()
|
8139
|
+
self._CloudModerationStorage._deserialize(params.get("CloudModerationStorage"))
|
8140
|
+
memeber_set = set(params.keys())
|
8141
|
+
for name, value in vars(self).items():
|
8142
|
+
property_name = name[1:]
|
8143
|
+
if property_name in memeber_set:
|
8144
|
+
memeber_set.remove(property_name)
|
8145
|
+
if len(memeber_set) > 0:
|
8146
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
8147
|
+
|
8148
|
+
|
8149
|
+
|
8150
|
+
class ModerationSupplierParam(AbstractModel):
|
8151
|
+
"""Parameters required for submitting content to the third-party moderation supplier.
|
8152
|
+
|
8153
|
+
"""
|
8154
|
+
|
8155
|
+
def __init__(self):
|
8156
|
+
r"""
|
8157
|
+
:param _AppID: Moderation supplier account ID. For Tencent Tianyu, the value is not null; for NETEASE Yidun, the value is null.
|
8158
|
+
:type AppID: str
|
8159
|
+
:param _SecretId: Moderation supplier key ID.
|
8160
|
+
:type SecretId: str
|
8161
|
+
:param _SecretKey: Moderation supplier key.
|
8162
|
+
:type SecretKey: str
|
8163
|
+
:param _AudioBizType: Audio scenario. Policy ID or businessId.
|
8164
|
+
:type AudioBizType: str
|
8165
|
+
:param _ImageBizType: Image scenario. Policy ID or businessId.
|
8166
|
+
:type ImageBizType: str
|
8167
|
+
"""
|
8168
|
+
self._AppID = None
|
8169
|
+
self._SecretId = None
|
8170
|
+
self._SecretKey = None
|
8171
|
+
self._AudioBizType = None
|
8172
|
+
self._ImageBizType = None
|
8173
|
+
|
8174
|
+
@property
|
8175
|
+
def AppID(self):
|
8176
|
+
"""Moderation supplier account ID. For Tencent Tianyu, the value is not null; for NETEASE Yidun, the value is null.
|
8177
|
+
:rtype: str
|
8178
|
+
"""
|
8179
|
+
return self._AppID
|
8180
|
+
|
8181
|
+
@AppID.setter
|
8182
|
+
def AppID(self, AppID):
|
8183
|
+
self._AppID = AppID
|
8184
|
+
|
8185
|
+
@property
|
8186
|
+
def SecretId(self):
|
8187
|
+
"""Moderation supplier key ID.
|
8188
|
+
:rtype: str
|
8189
|
+
"""
|
8190
|
+
return self._SecretId
|
8191
|
+
|
8192
|
+
@SecretId.setter
|
8193
|
+
def SecretId(self, SecretId):
|
8194
|
+
self._SecretId = SecretId
|
8195
|
+
|
8196
|
+
@property
|
8197
|
+
def SecretKey(self):
|
8198
|
+
"""Moderation supplier key.
|
8199
|
+
:rtype: str
|
8200
|
+
"""
|
8201
|
+
return self._SecretKey
|
7219
8202
|
|
7220
|
-
@
|
7221
|
-
def
|
7222
|
-
self.
|
8203
|
+
@SecretKey.setter
|
8204
|
+
def SecretKey(self, SecretKey):
|
8205
|
+
self._SecretKey = SecretKey
|
7223
8206
|
|
7224
8207
|
@property
|
7225
|
-
def
|
7226
|
-
"""
|
7227
|
-
:rtype:
|
8208
|
+
def AudioBizType(self):
|
8209
|
+
"""Audio scenario. Policy ID or businessId.
|
8210
|
+
:rtype: str
|
7228
8211
|
"""
|
7229
|
-
return self.
|
8212
|
+
return self._AudioBizType
|
7230
8213
|
|
7231
|
-
@
|
7232
|
-
def
|
7233
|
-
self.
|
8214
|
+
@AudioBizType.setter
|
8215
|
+
def AudioBizType(self, AudioBizType):
|
8216
|
+
self._AudioBizType = AudioBizType
|
7234
8217
|
|
7235
8218
|
@property
|
7236
|
-
def
|
7237
|
-
"""
|
7238
|
-
:rtype:
|
8219
|
+
def ImageBizType(self):
|
8220
|
+
"""Image scenario. Policy ID or businessId.
|
8221
|
+
:rtype: str
|
7239
8222
|
"""
|
7240
|
-
return self.
|
8223
|
+
return self._ImageBizType
|
7241
8224
|
|
7242
|
-
@
|
7243
|
-
def
|
7244
|
-
self.
|
8225
|
+
@ImageBizType.setter
|
8226
|
+
def ImageBizType(self, ImageBizType):
|
8227
|
+
self._ImageBizType = ImageBizType
|
7245
8228
|
|
7246
8229
|
|
7247
8230
|
def _deserialize(self, params):
|
7248
|
-
self.
|
7249
|
-
|
7250
|
-
|
7251
|
-
|
7252
|
-
|
7253
|
-
obj._deserialize(item)
|
7254
|
-
self._MixLayoutList.append(obj)
|
7255
|
-
self._BackGroundColor = params.get("BackGroundColor")
|
7256
|
-
self._MaxResolutionUserId = params.get("MaxResolutionUserId")
|
7257
|
-
self._MediaId = params.get("MediaId")
|
7258
|
-
self._BackgroundImageUrl = params.get("BackgroundImageUrl")
|
7259
|
-
self._PlaceHolderMode = params.get("PlaceHolderMode")
|
7260
|
-
self._BackgroundImageRenderMode = params.get("BackgroundImageRenderMode")
|
7261
|
-
self._DefaultSubBackgroundImage = params.get("DefaultSubBackgroundImage")
|
7262
|
-
if params.get("WaterMarkList") is not None:
|
7263
|
-
self._WaterMarkList = []
|
7264
|
-
for item in params.get("WaterMarkList"):
|
7265
|
-
obj = WaterMark()
|
7266
|
-
obj._deserialize(item)
|
7267
|
-
self._WaterMarkList.append(obj)
|
7268
|
-
self._RenderMode = params.get("RenderMode")
|
7269
|
-
self._MaxResolutionUserAlign = params.get("MaxResolutionUserAlign")
|
8231
|
+
self._AppID = params.get("AppID")
|
8232
|
+
self._SecretId = params.get("SecretId")
|
8233
|
+
self._SecretKey = params.get("SecretKey")
|
8234
|
+
self._AudioBizType = params.get("AudioBizType")
|
8235
|
+
self._ImageBizType = params.get("ImageBizType")
|
7270
8236
|
memeber_set = set(params.keys())
|
7271
8237
|
for name, value in vars(self).items():
|
7272
8238
|
property_name = name[1:]
|
@@ -7277,51 +8243,64 @@ This parameter specifies the type of the stream displayed in the big window. If
|
|
7277
8243
|
|
7278
8244
|
|
7279
8245
|
|
7280
|
-
class
|
7281
|
-
"""
|
8246
|
+
class ModifyCloudModerationRequest(AbstractModel):
|
8247
|
+
"""ModifyCloudModeration request structure.
|
7282
8248
|
|
7283
8249
|
"""
|
7284
8250
|
|
7285
8251
|
def __init__(self):
|
7286
8252
|
r"""
|
7287
|
-
:param
|
7288
|
-
:type
|
7289
|
-
:param
|
7290
|
-
:type
|
8253
|
+
:param _SdkAppId: SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the TRTC room.
|
8254
|
+
:type SdkAppId: int
|
8255
|
+
:param _TaskId: Unique ID of the moderation task, which is returned after the task is started.
|
8256
|
+
:type TaskId: str
|
8257
|
+
:param _SubscribeStreamUserIds: Specifies the allowlist or blocklist for the subscription stream.
|
8258
|
+
:type SubscribeStreamUserIds: :class:`tencentcloud.trtc.v20190722.models.SubscribeStreamUserIds`
|
7291
8259
|
"""
|
7292
|
-
self.
|
7293
|
-
self.
|
8260
|
+
self._SdkAppId = None
|
8261
|
+
self._TaskId = None
|
8262
|
+
self._SubscribeStreamUserIds = None
|
7294
8263
|
|
7295
8264
|
@property
|
7296
|
-
def
|
7297
|
-
"""
|
7298
|
-
:rtype:
|
8265
|
+
def SdkAppId(self):
|
8266
|
+
"""SDKAppId of TRTC, which is the same as the SDKAppId corresponding to the TRTC room.
|
8267
|
+
:rtype: int
|
7299
8268
|
"""
|
7300
|
-
return self.
|
8269
|
+
return self._SdkAppId
|
7301
8270
|
|
7302
|
-
@
|
7303
|
-
def
|
7304
|
-
self.
|
8271
|
+
@SdkAppId.setter
|
8272
|
+
def SdkAppId(self, SdkAppId):
|
8273
|
+
self._SdkAppId = SdkAppId
|
7305
8274
|
|
7306
8275
|
@property
|
7307
|
-
def
|
7308
|
-
"""
|
7309
|
-
:rtype:
|
8276
|
+
def TaskId(self):
|
8277
|
+
"""Unique ID of the moderation task, which is returned after the task is started.
|
8278
|
+
:rtype: str
|
7310
8279
|
"""
|
7311
|
-
return self.
|
8280
|
+
return self._TaskId
|
7312
8281
|
|
7313
|
-
@
|
7314
|
-
def
|
7315
|
-
self.
|
8282
|
+
@TaskId.setter
|
8283
|
+
def TaskId(self, TaskId):
|
8284
|
+
self._TaskId = TaskId
|
8285
|
+
|
8286
|
+
@property
|
8287
|
+
def SubscribeStreamUserIds(self):
|
8288
|
+
"""Specifies the allowlist or blocklist for the subscription stream.
|
8289
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.SubscribeStreamUserIds`
|
8290
|
+
"""
|
8291
|
+
return self._SubscribeStreamUserIds
|
8292
|
+
|
8293
|
+
@SubscribeStreamUserIds.setter
|
8294
|
+
def SubscribeStreamUserIds(self, SubscribeStreamUserIds):
|
8295
|
+
self._SubscribeStreamUserIds = SubscribeStreamUserIds
|
7316
8296
|
|
7317
8297
|
|
7318
8298
|
def _deserialize(self, params):
|
7319
|
-
|
7320
|
-
|
7321
|
-
|
7322
|
-
|
7323
|
-
self.
|
7324
|
-
self._AudioParams._deserialize(params.get("AudioParams"))
|
8299
|
+
self._SdkAppId = params.get("SdkAppId")
|
8300
|
+
self._TaskId = params.get("TaskId")
|
8301
|
+
if params.get("SubscribeStreamUserIds") is not None:
|
8302
|
+
self._SubscribeStreamUserIds = SubscribeStreamUserIds()
|
8303
|
+
self._SubscribeStreamUserIds._deserialize(params.get("SubscribeStreamUserIds"))
|
7325
8304
|
memeber_set = set(params.keys())
|
7326
8305
|
for name, value in vars(self).items():
|
7327
8306
|
property_name = name[1:]
|
@@ -7332,70 +8311,47 @@ class MixTranscodeParams(AbstractModel):
|
|
7332
8311
|
|
7333
8312
|
|
7334
8313
|
|
7335
|
-
class
|
7336
|
-
"""
|
8314
|
+
class ModifyCloudModerationResponse(AbstractModel):
|
8315
|
+
"""ModifyCloudModeration response structure.
|
7337
8316
|
|
7338
8317
|
"""
|
7339
8318
|
|
7340
8319
|
def __init__(self):
|
7341
8320
|
r"""
|
7342
|
-
:param
|
7343
|
-
:type
|
7344
|
-
:param
|
7345
|
-
:type
|
7346
|
-
:param _RoomIdType: The type of the `RoomId` parameter. 0: integer; 1: string.
|
7347
|
-
:type RoomIdType: int
|
8321
|
+
:param _TaskId: Unique ID of the moderation task, which is returned after the task is started.
|
8322
|
+
:type TaskId: str
|
8323
|
+
: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.
|
8324
|
+
:type RequestId: str
|
7348
8325
|
"""
|
7349
|
-
self.
|
7350
|
-
self.
|
7351
|
-
self._RoomIdType = None
|
8326
|
+
self._TaskId = None
|
8327
|
+
self._RequestId = None
|
7352
8328
|
|
7353
8329
|
@property
|
7354
|
-
def
|
7355
|
-
"""
|
8330
|
+
def TaskId(self):
|
8331
|
+
"""Unique ID of the moderation task, which is returned after the task is started.
|
7356
8332
|
:rtype: str
|
7357
8333
|
"""
|
7358
|
-
return self.
|
8334
|
+
return self._TaskId
|
7359
8335
|
|
7360
|
-
@
|
7361
|
-
def
|
7362
|
-
self.
|
8336
|
+
@TaskId.setter
|
8337
|
+
def TaskId(self, TaskId):
|
8338
|
+
self._TaskId = TaskId
|
7363
8339
|
|
7364
8340
|
@property
|
7365
|
-
def
|
7366
|
-
"""
|
8341
|
+
def RequestId(self):
|
8342
|
+
"""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.
|
7367
8343
|
:rtype: str
|
7368
8344
|
"""
|
7369
|
-
return self.
|
7370
|
-
|
7371
|
-
@RoomId.setter
|
7372
|
-
def RoomId(self, RoomId):
|
7373
|
-
self._RoomId = RoomId
|
7374
|
-
|
7375
|
-
@property
|
7376
|
-
def RoomIdType(self):
|
7377
|
-
"""The type of the `RoomId` parameter. 0: integer; 1: string.
|
7378
|
-
:rtype: int
|
7379
|
-
"""
|
7380
|
-
return self._RoomIdType
|
8345
|
+
return self._RequestId
|
7381
8346
|
|
7382
|
-
@
|
7383
|
-
def
|
7384
|
-
self.
|
8347
|
+
@RequestId.setter
|
8348
|
+
def RequestId(self, RequestId):
|
8349
|
+
self._RequestId = RequestId
|
7385
8350
|
|
7386
8351
|
|
7387
8352
|
def _deserialize(self, params):
|
7388
|
-
self.
|
7389
|
-
self.
|
7390
|
-
self._RoomIdType = params.get("RoomIdType")
|
7391
|
-
memeber_set = set(params.keys())
|
7392
|
-
for name, value in vars(self).items():
|
7393
|
-
property_name = name[1:]
|
7394
|
-
if property_name in memeber_set:
|
7395
|
-
memeber_set.remove(property_name)
|
7396
|
-
if len(memeber_set) > 0:
|
7397
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7398
|
-
|
8353
|
+
self._TaskId = params.get("TaskId")
|
8354
|
+
self._RequestId = params.get("RequestId")
|
7399
8355
|
|
7400
8356
|
|
7401
8357
|
class ModifyCloudRecordingRequest(AbstractModel):
|
@@ -10712,6 +11668,95 @@ class StorageParams(AbstractModel):
|
|
10712
11668
|
|
10713
11669
|
|
10714
11670
|
|
11671
|
+
class SubscribeModerationUserIds(AbstractModel):
|
11672
|
+
"""Specifies the subscription stream allowlist or blocklist. The audio allowlist and blocklist cannot be set simultaneously, and this also applies to video. Additionally, up to 25 concurrently subscribed media streams are supported, and up to 24 video screens are supported in mixed stream scenarios. It is also supported to use the ".*$" wildcard for prefix matching of UserId in the blocklist and allowlist. Note that if there are user IDs in the room that match the wildcard rule, specific users are subscribed, causing the prefix rule to become ineffective.
|
11673
|
+
|
11674
|
+
"""
|
11675
|
+
|
11676
|
+
def __init__(self):
|
11677
|
+
r"""
|
11678
|
+
:param _SubscribeAudioUserIds: Subscription audio stream allowlist. It specifies which UserIds' audio streams to subscribe to, for example, ["1", "2", "3"] indicates subscriptions to the audio streams of UserId 1, 2, and 3; ["1.*$"] indicates subscription to audio streams with UserId prefixes starting with 1. If this parameter is left unspecified, all audio streams in the room are subscribed to by default. The number of users in the subscription list should not exceed 32.
|
11679
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
11680
|
+
:type SubscribeAudioUserIds: list of str
|
11681
|
+
:param _UnSubscribeAudioUserIds: Subscription audio stream blocklist. It specifies which UserIds' audio streams not to subscribe to, for example, ["1", "2", "3"] indicates that the audio streams of UserId 1, 2, and 3 are not subscribed to; ["1.*$"] indicates that audio streams with UserId prefixes starting with 1 are not subscribed to. If this parameter is left unspecified, all audio streams in the room are subscribed to by default. The number of users in the subscription list should not exceed 32.
|
11682
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
11683
|
+
:type UnSubscribeAudioUserIds: list of str
|
11684
|
+
:param _SubscribeVideoUserIds: Subscription video stream allowlist. It specifies which UserIds' video streams to subscribe to, for example, ["1", "2", "3"] indicates subscriptions to the video streams of UserId 1, 2, and 3; ["1.*$"] indicates subscription to video streams with UserId prefixes starting with 1. If this parameter is left unspecified, all video streams in the room are subscribed to by default. The number of users in the subscription list should not exceed 32.
|
11685
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
11686
|
+
:type SubscribeVideoUserIds: list of str
|
11687
|
+
:param _UnSubscribeVideoUserIds: Subscription video stream blocklist. It specifies which UserIds' video streams not to subscribe to, for example, ["1", "2", "3"] indicates that the video streams of UserId 1, 2, and 3 are not subscribed to; ["1.*$"] indicates that video streams with UserId prefixes starting with 1 are not subscribed to. If this parameter is left unspecified, all video streams in the room are subscribed to by default. The number of users in the subscription list should not exceed 32.
|
11688
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
11689
|
+
:type UnSubscribeVideoUserIds: list of str
|
11690
|
+
"""
|
11691
|
+
self._SubscribeAudioUserIds = None
|
11692
|
+
self._UnSubscribeAudioUserIds = None
|
11693
|
+
self._SubscribeVideoUserIds = None
|
11694
|
+
self._UnSubscribeVideoUserIds = None
|
11695
|
+
|
11696
|
+
@property
|
11697
|
+
def SubscribeAudioUserIds(self):
|
11698
|
+
"""Subscription audio stream allowlist. It specifies which UserIds' audio streams to subscribe to, for example, ["1", "2", "3"] indicates subscriptions to the audio streams of UserId 1, 2, and 3; ["1.*$"] indicates subscription to audio streams with UserId prefixes starting with 1. If this parameter is left unspecified, all audio streams in the room are subscribed to by default. The number of users in the subscription list should not exceed 32.
|
11699
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
11700
|
+
:rtype: list of str
|
11701
|
+
"""
|
11702
|
+
return self._SubscribeAudioUserIds
|
11703
|
+
|
11704
|
+
@SubscribeAudioUserIds.setter
|
11705
|
+
def SubscribeAudioUserIds(self, SubscribeAudioUserIds):
|
11706
|
+
self._SubscribeAudioUserIds = SubscribeAudioUserIds
|
11707
|
+
|
11708
|
+
@property
|
11709
|
+
def UnSubscribeAudioUserIds(self):
|
11710
|
+
"""Subscription audio stream blocklist. It specifies which UserIds' audio streams not to subscribe to, for example, ["1", "2", "3"] indicates that the audio streams of UserId 1, 2, and 3 are not subscribed to; ["1.*$"] indicates that audio streams with UserId prefixes starting with 1 are not subscribed to. If this parameter is left unspecified, all audio streams in the room are subscribed to by default. The number of users in the subscription list should not exceed 32.
|
11711
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
11712
|
+
:rtype: list of str
|
11713
|
+
"""
|
11714
|
+
return self._UnSubscribeAudioUserIds
|
11715
|
+
|
11716
|
+
@UnSubscribeAudioUserIds.setter
|
11717
|
+
def UnSubscribeAudioUserIds(self, UnSubscribeAudioUserIds):
|
11718
|
+
self._UnSubscribeAudioUserIds = UnSubscribeAudioUserIds
|
11719
|
+
|
11720
|
+
@property
|
11721
|
+
def SubscribeVideoUserIds(self):
|
11722
|
+
"""Subscription video stream allowlist. It specifies which UserIds' video streams to subscribe to, for example, ["1", "2", "3"] indicates subscriptions to the video streams of UserId 1, 2, and 3; ["1.*$"] indicates subscription to video streams with UserId prefixes starting with 1. If this parameter is left unspecified, all video streams in the room are subscribed to by default. The number of users in the subscription list should not exceed 32.
|
11723
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
11724
|
+
:rtype: list of str
|
11725
|
+
"""
|
11726
|
+
return self._SubscribeVideoUserIds
|
11727
|
+
|
11728
|
+
@SubscribeVideoUserIds.setter
|
11729
|
+
def SubscribeVideoUserIds(self, SubscribeVideoUserIds):
|
11730
|
+
self._SubscribeVideoUserIds = SubscribeVideoUserIds
|
11731
|
+
|
11732
|
+
@property
|
11733
|
+
def UnSubscribeVideoUserIds(self):
|
11734
|
+
"""Subscription video stream blocklist. It specifies which UserIds' video streams not to subscribe to, for example, ["1", "2", "3"] indicates that the video streams of UserId 1, 2, and 3 are not subscribed to; ["1.*$"] indicates that video streams with UserId prefixes starting with 1 are not subscribed to. If this parameter is left unspecified, all video streams in the room are subscribed to by default. The number of users in the subscription list should not exceed 32.
|
11735
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
11736
|
+
:rtype: list of str
|
11737
|
+
"""
|
11738
|
+
return self._UnSubscribeVideoUserIds
|
11739
|
+
|
11740
|
+
@UnSubscribeVideoUserIds.setter
|
11741
|
+
def UnSubscribeVideoUserIds(self, UnSubscribeVideoUserIds):
|
11742
|
+
self._UnSubscribeVideoUserIds = UnSubscribeVideoUserIds
|
11743
|
+
|
11744
|
+
|
11745
|
+
def _deserialize(self, params):
|
11746
|
+
self._SubscribeAudioUserIds = params.get("SubscribeAudioUserIds")
|
11747
|
+
self._UnSubscribeAudioUserIds = params.get("UnSubscribeAudioUserIds")
|
11748
|
+
self._SubscribeVideoUserIds = params.get("SubscribeVideoUserIds")
|
11749
|
+
self._UnSubscribeVideoUserIds = params.get("UnSubscribeVideoUserIds")
|
11750
|
+
memeber_set = set(params.keys())
|
11751
|
+
for name, value in vars(self).items():
|
11752
|
+
property_name = name[1:]
|
11753
|
+
if property_name in memeber_set:
|
11754
|
+
memeber_set.remove(property_name)
|
11755
|
+
if len(memeber_set) > 0:
|
11756
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
11757
|
+
|
11758
|
+
|
11759
|
+
|
10715
11760
|
class SubscribeStreamUserIds(AbstractModel):
|
10716
11761
|
"""The subscription allowlist/blocklist. You cannot specify an allowlist and a blocklist for audio/video subscription at the same time. The maximum number of streams one can receive at the same time is 25. When streams are mixed, up to 24 videos are supported. You can use `.*$` to specify user IDs with the same prefix, but make sure there aren’t users whose IDs contain ".*$" and are exactly the same as the prefix you pass in. If there are, TRTC will only allow or block those users.
|
10717
11762
|
|