tencentcloud-sdk-python-intl-en 3.0.1249__py2.py3-none-any.whl → 3.0.1251__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.
@@ -1224,7 +1224,7 @@ class AudioTemplateInfo(AbstractModel):
1224
1224
  :param _AudioBitrate: Audio bitrate. If this parameter is left empty, the original value will be used.
1225
1225
  Valid values: 6000, 7000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000, 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 288000, 320000, 384000, 448000, 512000, 576000, 640000, 768000, 896000, 1024000
1226
1226
  :type AudioBitrate: int
1227
- :param _LanguageCode: Audio language code, whose length is always 3 characters.
1227
+ :param _LanguageCode: Audio language code, which length is between 2 and 20.
1228
1228
  :type LanguageCode: str
1229
1229
  :param _AudioNormalization: Audio transcoding special configuration information.
1230
1230
  :type AudioNormalization: :class:`tencentcloud.mdl.v20200326.models.AudioNormalizationSettings`
@@ -1232,6 +1232,8 @@ Valid values: 6000, 7000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000,
1232
1232
  :type AudioSampleRate: int
1233
1233
  :param _AudioCodecDetails: Audio encoding parameters.
1234
1234
  :type AudioCodecDetails: :class:`tencentcloud.mdl.v20200326.models.AudioCodecDetail`
1235
+ :param _LanguageDescription: Audio language description, which maximum length is 100.
1236
+ :type LanguageDescription: str
1235
1237
  """
1236
1238
  self._AudioSelectorName = None
1237
1239
  self._Name = None
@@ -1241,6 +1243,7 @@ Valid values: 6000, 7000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000,
1241
1243
  self._AudioNormalization = None
1242
1244
  self._AudioSampleRate = None
1243
1245
  self._AudioCodecDetails = None
1246
+ self._LanguageDescription = None
1244
1247
 
1245
1248
  @property
1246
1249
  def AudioSelectorName(self):
@@ -1289,7 +1292,7 @@ Valid values: 6000, 7000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000,
1289
1292
 
1290
1293
  @property
1291
1294
  def LanguageCode(self):
1292
- """Audio language code, whose length is always 3 characters.
1295
+ """Audio language code, which length is between 2 and 20.
1293
1296
  :rtype: str
1294
1297
  """
1295
1298
  return self._LanguageCode
@@ -1331,6 +1334,17 @@ Valid values: 6000, 7000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000,
1331
1334
  def AudioCodecDetails(self, AudioCodecDetails):
1332
1335
  self._AudioCodecDetails = AudioCodecDetails
1333
1336
 
1337
+ @property
1338
+ def LanguageDescription(self):
1339
+ """Audio language description, which maximum length is 100.
1340
+ :rtype: str
1341
+ """
1342
+ return self._LanguageDescription
1343
+
1344
+ @LanguageDescription.setter
1345
+ def LanguageDescription(self, LanguageDescription):
1346
+ self._LanguageDescription = LanguageDescription
1347
+
1334
1348
 
1335
1349
  def _deserialize(self, params):
1336
1350
  self._AudioSelectorName = params.get("AudioSelectorName")
@@ -1345,6 +1359,7 @@ Valid values: 6000, 7000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000,
1345
1359
  if params.get("AudioCodecDetails") is not None:
1346
1360
  self._AudioCodecDetails = AudioCodecDetail()
1347
1361
  self._AudioCodecDetails._deserialize(params.get("AudioCodecDetails"))
1362
+ self._LanguageDescription = params.get("LanguageDescription")
1348
1363
  memeber_set = set(params.keys())
1349
1364
  for name, value in vars(self).items():
1350
1365
  property_name = name[1:]
@@ -17,6 +17,12 @@
17
17
  # Internal error.
18
18
  INTERNALERROR = 'InternalError'
19
19
 
20
+ # Failed to obtain SSAI ad configuration.
21
+ INTERNALERROR_GETSSAICHANNELSFAILED = 'InternalError.GetSSAIChannelsFailed'
22
+
23
+ # Failed to obtain SSAI ad configuration usage.
24
+ INTERNALERROR_GETSSAIUSAGEPARTIALFAILED = 'InternalError.GetSSAIUsagePartialFailed'
25
+
20
26
  # Invalid `ActionType`.
21
27
  INVALIDPARAMETER_ACTIONTYPE = 'InvalidParameter.ActionType'
22
28
 
@@ -38,6 +44,9 @@ INVALIDPARAMETER_EXCEEDEDQUANTITYLIMIT = 'InvalidParameter.ExceededQuantityLimit
38
44
  # Invalid `Id`.
39
45
  INVALIDPARAMETER_ID = 'InvalidParameter.Id'
40
46
 
47
+ # SSAI channel id is invalid.
48
+ INVALIDPARAMETER_INVALIDPARAMETERCHANNELID = 'InvalidParameter.InvalidParameterChannelId'
49
+
41
50
  # Invalid `LvbDomain`.
42
51
  INVALIDPARAMETER_LVBDOMAIN = 'InvalidParameter.LvbDomain'
43
52
 
@@ -65,5 +74,8 @@ INVALIDPARAMETER_PROTOCOL = 'InvalidParameter.Protocol'
65
74
  # Invalid ad insertion configuration parameters.
66
75
  INVALIDPARAMETER_SSAIINFO = 'InvalidParameter.SSAIInfo'
67
76
 
77
+ # SSAI ad type error.
78
+ INVALIDPARAMETER_TYPE = 'InvalidParameter.Type'
79
+
68
80
  # Invalid `Url`.
69
81
  INVALIDPARAMETER_URL = 'InvalidParameter.Url'
@@ -831,6 +831,29 @@ class MdpClient(AbstractClient):
831
831
  raise TencentCloudSDKException(type(e).__name__, str(e))
832
832
 
833
833
 
834
+ def DescribeStreamPackageSSAIUsage(self, request):
835
+ """This API is used to query SSAI ad replacement usage.
836
+
837
+ :param request: Request instance for DescribeStreamPackageSSAIUsage.
838
+ :type request: :class:`tencentcloud.mdp.v20200527.models.DescribeStreamPackageSSAIUsageRequest`
839
+ :rtype: :class:`tencentcloud.mdp.v20200527.models.DescribeStreamPackageSSAIUsageResponse`
840
+
841
+ """
842
+ try:
843
+ params = request._serialize()
844
+ headers = request.headers
845
+ body = self.call("DescribeStreamPackageSSAIUsage", params, headers=headers)
846
+ response = json.loads(body)
847
+ model = models.DescribeStreamPackageSSAIUsageResponse()
848
+ model._deserialize(response["Response"])
849
+ return model
850
+ except Exception as e:
851
+ if isinstance(e, TencentCloudSDKException):
852
+ raise
853
+ else:
854
+ raise TencentCloudSDKException(type(e).__name__, str(e))
855
+
856
+
834
857
  def DescribeStreamPackageSource(self, request):
835
858
  """Query channel linear assembly Source information.
836
859