tencentcloud-sdk-python-intl-en 3.0.1282__py2.py3-none-any.whl → 3.0.1284__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.

@@ -42,6 +42,98 @@ class QuotaClient(AbstractClient):
42
42
  model = models.CreateAlarmResponse()
43
43
  model._deserialize(response["Response"])
44
44
  return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
52
+ def DeleteAlarm(self, request):
53
+ r"""Deletes alarm rules
54
+
55
+ :param request: Request instance for DeleteAlarm.
56
+ :type request: :class:`tencentcloud.quota.v20241204.models.DeleteAlarmRequest`
57
+ :rtype: :class:`tencentcloud.quota.v20241204.models.DeleteAlarmResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("DeleteAlarm", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.DeleteAlarmResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
75
+ def DescribeAlarms(self, request):
76
+ r"""This API is used to query the alarm rule list.
77
+
78
+ :param request: Request instance for DescribeAlarms.
79
+ :type request: :class:`tencentcloud.quota.v20241204.models.DescribeAlarmsRequest`
80
+ :rtype: :class:`tencentcloud.quota.v20241204.models.DescribeAlarmsResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("DescribeAlarms", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.DescribeAlarmsResponse()
89
+ model._deserialize(response["Response"])
90
+ return model
91
+ except Exception as e:
92
+ if isinstance(e, TencentCloudSDKException):
93
+ raise
94
+ else:
95
+ raise TencentCloudSDKException(type(e).__name__, str(e))
96
+
97
+
98
+ def EnableAlarm(self, request):
99
+ r"""This API is used to enable alarm rules.
100
+
101
+ :param request: Request instance for EnableAlarm.
102
+ :type request: :class:`tencentcloud.quota.v20241204.models.EnableAlarmRequest`
103
+ :rtype: :class:`tencentcloud.quota.v20241204.models.EnableAlarmResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("EnableAlarm", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.EnableAlarmResponse()
112
+ model._deserialize(response["Response"])
113
+ return model
114
+ except Exception as e:
115
+ if isinstance(e, TencentCloudSDKException):
116
+ raise
117
+ else:
118
+ raise TencentCloudSDKException(type(e).__name__, str(e))
119
+
120
+
121
+ def UpdateAlarm(self, request):
122
+ r"""Modifies alarm rules
123
+
124
+ :param request: Request instance for UpdateAlarm.
125
+ :type request: :class:`tencentcloud.quota.v20241204.models.UpdateAlarmRequest`
126
+ :rtype: :class:`tencentcloud.quota.v20241204.models.UpdateAlarmResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("UpdateAlarm", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.UpdateAlarmResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
45
137
  except Exception as e:
46
138
  if isinstance(e, TencentCloudSDKException):
47
139
  raise
@@ -17256,29 +17256,30 @@ class DescribeBillingDataRequest(AbstractModel):
17256
17256
 
17257
17257
  def __init__(self):
17258
17258
  r"""
17259
- :param _StartTime: The start time.
17259
+ :param _StartTime: The start time. Data will be returned according to the timezone of the input timestamp.
17260
17260
  :type StartTime: str
17261
- :param _EndTime: End time. the query time range (`EndTime` - `StartTime`) must be less than or equal to 31 days.
17261
+ :param _EndTime: The end time. The query time range (`EndTime` - `StartTime`) must be less than or equal to 31 days. The timezone of the end timestamp must be consistent with the start timestamp, and data will be returned according to the timezone of the input timestamps.
17262
17262
  :type EndTime: str
17263
- :param _ZoneIds: Site ID set. this parameter is required. a maximum of 100 site ids can be imported. use `*` to query data for all sites under the tencent cloud root account. querying account-level data requires permissions for all site resources in this api.
17263
+ :param _ZoneIds: Site ID set. This parameter is required. A maximum of 100 site ids can be imported. Use `*` to query data for all sites under the Tencent Cloud root account. Querying account-level data requires permissions for all site resources in this API.
17264
17264
  :type ZoneIds: list of str
17265
- :param _MetricName: Metric list. values as follows:.
17266
- <b>l4/l7 acceleration traffic:</b><li>acc_flux: specifies content acceleration traffic in bytes.</li><li>smt_flux: specifies smart acceleration traffic in bytes.</li><li>l4_flux: specifies layer 4 acceleration traffic in bytes.</li><li>sec_flux: specifies independent protection traffic in bytes.</li><li>zxctg_flux: specifies network optimization traffic in the chinese mainland in bytes.</li><br><b>l4/l7 acceleration bandwidth:</b><li>acc_bandwidth: specifies content acceleration bandwidth in bps.</li><li>smt_bandwidth: specifies intelligent acceleration bandwidth in bps.</li><li>l4_bandwidth: specifies layer 4 acceleration bandwidth in bps.</li><li>sec_bandwidth: specifies exclusive protection bandwidth in bps.</li><li>zxctg_bandwidth: specifies network optimization bandwidth in the chinese mainland in bps.</li><br><b>HTTP/HTTPS security requests:</b><li>sec_request_clean: specifies HTTP/HTTPS requests by count.</li><br><b>vas usage:</b><li>smt_request_clean: specifies intelligent acceleration requests by count.</li><li>quic_request: specifies quic requests by count.</li><li>bot_request_clean: specifies bot requests by count.</li><li>cls_count: specifies the number of real-time log pushes by count.</li><li>ddos_bandwidth: specifies elastic ddos protection bandwidth in bps.</li><br><b>edge computing usage:</b><li>edgefunction_request: specifies the number of edge function requests by count.</li><li>edgefunction_cpu_time: specifies edge function cpu processing time in milliseconds.</li>.
17267
- <b>Media processing usage:</b> <li>total_transcode: all specification audio, video jit transcoding, repackaging duration, in seconds;</li> <li>remux: repackaging duration, in seconds;</li> <li>transcode_audio: audio transcoding duration, in seconds;</li> <li>transcode_H264_SD: H.264 encoded standard-definition video (short side 480 px) duration, in seconds;</li> <li>transcode_H264_HD: H.264 encoded high-definition video (short side 720 px) duration, in seconds;</li> <li>transcode_H264_FHD: H.264 encoded full HD video (short side 1080 px) duration, in seconds;</li> <li>transcode_H264_2K: H.264 encoded 2K video (short side 1440 px) duration, in seconds.</li>.
17265
+ :param _MetricName: Metric list. Values as follows:.
17266
+ <b>L4/L7 acceleration traffic:</b><li>acc_flux: specifies content acceleration traffic in bytes.</li><li>smt_flux: specifies smart acceleration traffic in bytes.</li><li>l4_flux: specifies layer 4 acceleration traffic in bytes.</li><li>sec_flux: specifies independent protection traffic in bytes.</li><li>zxctg_flux: specifies network optimization traffic in the chinese mainland in bytes.</li><br><b>L4/L7 acceleration bandwidth:</b><li>acc_bandwidth: specifies content acceleration bandwidth in bps.</li><li>smt_bandwidth: specifies intelligent acceleration bandwidth in bps.</li><li>l4_bandwidth: specifies layer 4 acceleration bandwidth in bps.</li><li>sec_bandwidth: specifies exclusive protection bandwidth in bps.</li><li>zxctg_bandwidth: specifies network optimization bandwidth in the chinese mainland in bps.</li><br><b>HTTP/HTTPS security requests:</b><li>sec_request_clean: specifies HTTP/HTTPS requests by count.</li><br><b>Value-added service usage:</b><li>smt_request_clean: specifies intelligent acceleration requests by count.</li><li>quic_request: specifies quic requests by count.</li><li>bot_request_clean: specifies bot requests by count.</li><li>cls_count: specifies the number of real-time log pushes by count.</li><li>ddos_bandwidth: specifies elastic ddos protection bandwidth in bps.</li><br><b>Edge computing usage:</b><li>edgefunction_request: specifies the number of edge function requests by count.</li><li>edgefunction_cpu_time: specifies edge function cpu processing time in milliseconds.</li>
17267
+ <b>Media processing usage:</b> <li>total_transcode: all specification audio, video jit transcoding, repackaging duration, in seconds;</li> <li>remux: repackaging duration, in seconds;</li> <li>transcode_audio: audio transcoding duration, in seconds;</li> <li>transcode_H264_SD: H.264 encoded standard-definition video (short side less than or equal to 480 px) duration, in seconds;</li> <li>transcode_H264_HD: H.264 encoded high-definition video (short side less than or equal to 720 px) duration, in seconds;</li> <li>transcode_H264_FHD: H.264 encoded full HD video (short side less than or equal to 1080 px) duration, in seconds;</li> <li>transcode_H264_2K: H.264 encoded 2K video (short side less than or equal to 1440 px) duration, in seconds.</li>
17268
17268
  :type MetricName: str
17269
17269
  :param _Interval: Time granularity of the query. Valid values:
17270
17270
  <li>5min: 5 minutes;</li>
17271
17271
  <li>hour: 1 hour;</li>
17272
17272
  <li>day: 1 day.</li>
17273
17273
  :type Interval: str
17274
- :param _Filters: Filter criteria. the detailed values of filter criteria are as follows:.
17275
- <li>host: specifies the domain name to filter by. example value: test.example.com.<br></li>.
17276
- <li>proxy-id: specifies the l4 proxy instance id for filtering. example value: sid-2rugn89bkla9.</li>.
17274
+ :param _Filters: Filter criteria. The detailed values of filter criteria are as follows:
17275
+ <li>host: Specifies the domain name to filter by. Example value: test.example.com<br></li>
17276
+ <li>proxy-id: Specifies the L4 proxy instance ID for filtering. Example value: sid-2rugn89bkla9.</li>
17277
17277
  <li>region-id: Filter by billing region. Options:<br> CH: Chinese mainland<br> AF: Africa<br> AS1: Asia-Pacific Region 1<br> AS2: Asia-Pacific Region 2<br> AS3: Asia-Pacific Region 3<br> EU: Europe<br> MidEast: Middle East<br> NA: North America<br> SA: South America</li>
17278
17278
 
17279
- Specifies that `BillingDataFilter` with the same `Type` have an "or" relationship with each other, while those with different `Type` have an "and" relationship between them.
17279
+ Note: `BillingDataFilter` with the same `Type` have an "or" relationship with each other, while those with different `Type` have an "and" relationship between them.
17280
17280
  :type Filters: list of BillingDataFilter
17281
- :param _GroupBy: Grouping aggregate dimension. a maximum of two dimensions can be grouped simultaneously. values are as follows: <li>zone-id: group by site id. if the content identifier functionality is used, priority is given to grouping by content identifier;<br></li> <li>host: group by domain name;<br></li> <li>proxy-id: group by layer 4 proxy instance id;<br></li> <li>region-id: group by billing region.</li>.
17281
+ :param _GroupBy: Aggregation dimensions for grouping. You are allowed to group by up to two dimensions at the same time. Valid values are as follows:<li>zone-id: Group by zone ID. If the content identifier feature is used, it will take precedence and group by content identifier first;<br></li> <li>host: Group by domain name;<br></li> <li>proxy-id: Group by L4 proxy instance ID;<br></li> <li>region-id: Group by billing region.</li>
17282
+ Note: The output parameter's default maximum value for the number of groups is 200. If you encounter an error related to this limit, you should reduce the number of groups in the final output by narrowing down the query scope using `ZoneIds.N` or `Filters.N` parameters, or by decreasing the number of dimensions specified in the `GroupBy.N` parameter.
17282
17283
  :type GroupBy: list of str
17283
17284
  """
17284
17285
  self._StartTime = None
@@ -17291,7 +17292,7 @@ Specifies that `BillingDataFilter` with the same `Type` have an "or" relationshi
17291
17292
 
17292
17293
  @property
17293
17294
  def StartTime(self):
17294
- r"""The start time.
17295
+ r"""The start time. Data will be returned according to the timezone of the input timestamp.
17295
17296
  :rtype: str
17296
17297
  """
17297
17298
  return self._StartTime
@@ -17302,7 +17303,7 @@ Specifies that `BillingDataFilter` with the same `Type` have an "or" relationshi
17302
17303
 
17303
17304
  @property
17304
17305
  def EndTime(self):
17305
- r"""End time. the query time range (`EndTime` - `StartTime`) must be less than or equal to 31 days.
17306
+ r"""The end time. The query time range (`EndTime` - `StartTime`) must be less than or equal to 31 days. The timezone of the end timestamp must be consistent with the start timestamp, and data will be returned according to the timezone of the input timestamps.
17306
17307
  :rtype: str
17307
17308
  """
17308
17309
  return self._EndTime
@@ -17313,7 +17314,7 @@ Specifies that `BillingDataFilter` with the same `Type` have an "or" relationshi
17313
17314
 
17314
17315
  @property
17315
17316
  def ZoneIds(self):
17316
- r"""Site ID set. this parameter is required. a maximum of 100 site ids can be imported. use `*` to query data for all sites under the tencent cloud root account. querying account-level data requires permissions for all site resources in this api.
17317
+ r"""Site ID set. This parameter is required. A maximum of 100 site ids can be imported. Use `*` to query data for all sites under the Tencent Cloud root account. Querying account-level data requires permissions for all site resources in this API.
17317
17318
  :rtype: list of str
17318
17319
  """
17319
17320
  return self._ZoneIds
@@ -17324,9 +17325,9 @@ Specifies that `BillingDataFilter` with the same `Type` have an "or" relationshi
17324
17325
 
17325
17326
  @property
17326
17327
  def MetricName(self):
17327
- r"""Metric list. values as follows:.
17328
- <b>l4/l7 acceleration traffic:</b><li>acc_flux: specifies content acceleration traffic in bytes.</li><li>smt_flux: specifies smart acceleration traffic in bytes.</li><li>l4_flux: specifies layer 4 acceleration traffic in bytes.</li><li>sec_flux: specifies independent protection traffic in bytes.</li><li>zxctg_flux: specifies network optimization traffic in the chinese mainland in bytes.</li><br><b>l4/l7 acceleration bandwidth:</b><li>acc_bandwidth: specifies content acceleration bandwidth in bps.</li><li>smt_bandwidth: specifies intelligent acceleration bandwidth in bps.</li><li>l4_bandwidth: specifies layer 4 acceleration bandwidth in bps.</li><li>sec_bandwidth: specifies exclusive protection bandwidth in bps.</li><li>zxctg_bandwidth: specifies network optimization bandwidth in the chinese mainland in bps.</li><br><b>HTTP/HTTPS security requests:</b><li>sec_request_clean: specifies HTTP/HTTPS requests by count.</li><br><b>vas usage:</b><li>smt_request_clean: specifies intelligent acceleration requests by count.</li><li>quic_request: specifies quic requests by count.</li><li>bot_request_clean: specifies bot requests by count.</li><li>cls_count: specifies the number of real-time log pushes by count.</li><li>ddos_bandwidth: specifies elastic ddos protection bandwidth in bps.</li><br><b>edge computing usage:</b><li>edgefunction_request: specifies the number of edge function requests by count.</li><li>edgefunction_cpu_time: specifies edge function cpu processing time in milliseconds.</li>.
17329
- <b>Media processing usage:</b> <li>total_transcode: all specification audio, video jit transcoding, repackaging duration, in seconds;</li> <li>remux: repackaging duration, in seconds;</li> <li>transcode_audio: audio transcoding duration, in seconds;</li> <li>transcode_H264_SD: H.264 encoded standard-definition video (short side 480 px) duration, in seconds;</li> <li>transcode_H264_HD: H.264 encoded high-definition video (short side 720 px) duration, in seconds;</li> <li>transcode_H264_FHD: H.264 encoded full HD video (short side 1080 px) duration, in seconds;</li> <li>transcode_H264_2K: H.264 encoded 2K video (short side 1440 px) duration, in seconds.</li>.
17328
+ r"""Metric list. Values as follows:.
17329
+ <b>L4/L7 acceleration traffic:</b><li>acc_flux: specifies content acceleration traffic in bytes.</li><li>smt_flux: specifies smart acceleration traffic in bytes.</li><li>l4_flux: specifies layer 4 acceleration traffic in bytes.</li><li>sec_flux: specifies independent protection traffic in bytes.</li><li>zxctg_flux: specifies network optimization traffic in the chinese mainland in bytes.</li><br><b>L4/L7 acceleration bandwidth:</b><li>acc_bandwidth: specifies content acceleration bandwidth in bps.</li><li>smt_bandwidth: specifies intelligent acceleration bandwidth in bps.</li><li>l4_bandwidth: specifies layer 4 acceleration bandwidth in bps.</li><li>sec_bandwidth: specifies exclusive protection bandwidth in bps.</li><li>zxctg_bandwidth: specifies network optimization bandwidth in the chinese mainland in bps.</li><br><b>HTTP/HTTPS security requests:</b><li>sec_request_clean: specifies HTTP/HTTPS requests by count.</li><br><b>Value-added service usage:</b><li>smt_request_clean: specifies intelligent acceleration requests by count.</li><li>quic_request: specifies quic requests by count.</li><li>bot_request_clean: specifies bot requests by count.</li><li>cls_count: specifies the number of real-time log pushes by count.</li><li>ddos_bandwidth: specifies elastic ddos protection bandwidth in bps.</li><br><b>Edge computing usage:</b><li>edgefunction_request: specifies the number of edge function requests by count.</li><li>edgefunction_cpu_time: specifies edge function cpu processing time in milliseconds.</li>
17330
+ <b>Media processing usage:</b> <li>total_transcode: all specification audio, video jit transcoding, repackaging duration, in seconds;</li> <li>remux: repackaging duration, in seconds;</li> <li>transcode_audio: audio transcoding duration, in seconds;</li> <li>transcode_H264_SD: H.264 encoded standard-definition video (short side less than or equal to 480 px) duration, in seconds;</li> <li>transcode_H264_HD: H.264 encoded high-definition video (short side less than or equal to 720 px) duration, in seconds;</li> <li>transcode_H264_FHD: H.264 encoded full HD video (short side less than or equal to 1080 px) duration, in seconds;</li> <li>transcode_H264_2K: H.264 encoded 2K video (short side less than or equal to 1440 px) duration, in seconds.</li>
17330
17331
  :rtype: str
17331
17332
  """
17332
17333
  return self._MetricName
@@ -17351,12 +17352,12 @@ Specifies that `BillingDataFilter` with the same `Type` have an "or" relationshi
17351
17352
 
17352
17353
  @property
17353
17354
  def Filters(self):
17354
- r"""Filter criteria. the detailed values of filter criteria are as follows:.
17355
- <li>host: specifies the domain name to filter by. example value: test.example.com.<br></li>.
17356
- <li>proxy-id: specifies the l4 proxy instance id for filtering. example value: sid-2rugn89bkla9.</li>.
17355
+ r"""Filter criteria. The detailed values of filter criteria are as follows:
17356
+ <li>host: Specifies the domain name to filter by. Example value: test.example.com<br></li>
17357
+ <li>proxy-id: Specifies the L4 proxy instance ID for filtering. Example value: sid-2rugn89bkla9.</li>
17357
17358
  <li>region-id: Filter by billing region. Options:<br> CH: Chinese mainland<br> AF: Africa<br> AS1: Asia-Pacific Region 1<br> AS2: Asia-Pacific Region 2<br> AS3: Asia-Pacific Region 3<br> EU: Europe<br> MidEast: Middle East<br> NA: North America<br> SA: South America</li>
17358
17359
 
17359
- Specifies that `BillingDataFilter` with the same `Type` have an "or" relationship with each other, while those with different `Type` have an "and" relationship between them.
17360
+ Note: `BillingDataFilter` with the same `Type` have an "or" relationship with each other, while those with different `Type` have an "and" relationship between them.
17360
17361
  :rtype: list of BillingDataFilter
17361
17362
  """
17362
17363
  return self._Filters
@@ -17367,7 +17368,8 @@ Specifies that `BillingDataFilter` with the same `Type` have an "or" relationshi
17367
17368
 
17368
17369
  @property
17369
17370
  def GroupBy(self):
17370
- r"""Grouping aggregate dimension. a maximum of two dimensions can be grouped simultaneously. values are as follows: <li>zone-id: group by site id. if the content identifier functionality is used, priority is given to grouping by content identifier;<br></li> <li>host: group by domain name;<br></li> <li>proxy-id: group by layer 4 proxy instance id;<br></li> <li>region-id: group by billing region.</li>.
17371
+ r"""Aggregation dimensions for grouping. You are allowed to group by up to two dimensions at the same time. Valid values are as follows:<li>zone-id: Group by zone ID. If the content identifier feature is used, it will take precedence and group by content identifier first;<br></li> <li>host: Group by domain name;<br></li> <li>proxy-id: Group by L4 proxy instance ID;<br></li> <li>region-id: Group by billing region.</li>
17372
+ Note: The output parameter's default maximum value for the number of groups is 200. If you encounter an error related to this limit, you should reduce the number of groups in the final output by narrowing down the query scope using `ZoneIds.N` or `Filters.N` parameters, or by decreasing the number of dimensions specified in the `GroupBy.N` parameter.
17371
17373
  :rtype: list of str
17372
17374
  """
17373
17375
  return self._GroupBy
@@ -10231,6 +10231,8 @@ class StartAITranscriptionRequest(AbstractModel):
10231
10231
  :type RoomIdType: int
10232
10232
  :param _RecognizeConfig: Speech recognition configuration.
10233
10233
  :type RecognizeConfig: :class:`tencentcloud.trtc.v20190722.models.RecognizeConfig`
10234
+ :param _TranslationConfig: Translation config.
10235
+ :type TranslationConfig: :class:`tencentcloud.trtc.v20190722.models.TranslationConfig`
10234
10236
  """
10235
10237
  self._SdkAppId = None
10236
10238
  self._RoomId = None
@@ -10238,6 +10240,7 @@ class StartAITranscriptionRequest(AbstractModel):
10238
10240
  self._SessionId = None
10239
10241
  self._RoomIdType = None
10240
10242
  self._RecognizeConfig = None
10243
+ self._TranslationConfig = None
10241
10244
 
10242
10245
  @property
10243
10246
  def SdkAppId(self):
@@ -10307,6 +10310,17 @@ class StartAITranscriptionRequest(AbstractModel):
10307
10310
  def RecognizeConfig(self, RecognizeConfig):
10308
10311
  self._RecognizeConfig = RecognizeConfig
10309
10312
 
10313
+ @property
10314
+ def TranslationConfig(self):
10315
+ r"""Translation config.
10316
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TranslationConfig`
10317
+ """
10318
+ return self._TranslationConfig
10319
+
10320
+ @TranslationConfig.setter
10321
+ def TranslationConfig(self, TranslationConfig):
10322
+ self._TranslationConfig = TranslationConfig
10323
+
10310
10324
 
10311
10325
  def _deserialize(self, params):
10312
10326
  self._SdkAppId = params.get("SdkAppId")
@@ -10319,6 +10333,9 @@ class StartAITranscriptionRequest(AbstractModel):
10319
10333
  if params.get("RecognizeConfig") is not None:
10320
10334
  self._RecognizeConfig = RecognizeConfig()
10321
10335
  self._RecognizeConfig._deserialize(params.get("RecognizeConfig"))
10336
+ if params.get("TranslationConfig") is not None:
10337
+ self._TranslationConfig = TranslationConfig()
10338
+ self._TranslationConfig._deserialize(params.get("TranslationConfig"))
10322
10339
  memeber_set = set(params.keys())
10323
10340
  for name, value in vars(self).items():
10324
10341
  property_name = name[1:]
@@ -11909,6 +11926,42 @@ class TRTCDataResult(AbstractModel):
11909
11926
 
11910
11927
 
11911
11928
 
11929
+ class TTSConfig(AbstractModel):
11930
+ r"""
11931
+
11932
+ """
11933
+
11934
+ def __init__(self):
11935
+ r"""
11936
+ :param _VoiceId:
11937
+ :type VoiceId: str
11938
+ """
11939
+ self._VoiceId = None
11940
+
11941
+ @property
11942
+ def VoiceId(self):
11943
+ r"""
11944
+ :rtype: str
11945
+ """
11946
+ return self._VoiceId
11947
+
11948
+ @VoiceId.setter
11949
+ def VoiceId(self, VoiceId):
11950
+ self._VoiceId = VoiceId
11951
+
11952
+
11953
+ def _deserialize(self, params):
11954
+ self._VoiceId = params.get("VoiceId")
11955
+ memeber_set = set(params.keys())
11956
+ for name, value in vars(self).items():
11957
+ property_name = name[1:]
11958
+ if property_name in memeber_set:
11959
+ memeber_set.remove(property_name)
11960
+ if len(memeber_set) > 0:
11961
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11962
+
11963
+
11964
+
11912
11965
  class TencentVod(AbstractModel):
11913
11966
  r"""The Tencent Cloud VOD parameters.
11914
11967
 
@@ -12067,6 +12120,57 @@ The default value is `0`, which means others.
12067
12120
 
12068
12121
 
12069
12122
 
12123
+ class Terminology(AbstractModel):
12124
+ r"""Translation terminology
12125
+
12126
+ """
12127
+
12128
+ def __init__(self):
12129
+ r"""
12130
+ :param _Source: Source terminology
12131
+ :type Source: str
12132
+ :param _Target: Target terminology
12133
+ :type Target: str
12134
+ """
12135
+ self._Source = None
12136
+ self._Target = None
12137
+
12138
+ @property
12139
+ def Source(self):
12140
+ r"""Source terminology
12141
+ :rtype: str
12142
+ """
12143
+ return self._Source
12144
+
12145
+ @Source.setter
12146
+ def Source(self, Source):
12147
+ self._Source = Source
12148
+
12149
+ @property
12150
+ def Target(self):
12151
+ r"""Target terminology
12152
+ :rtype: str
12153
+ """
12154
+ return self._Target
12155
+
12156
+ @Target.setter
12157
+ def Target(self, Target):
12158
+ self._Target = Target
12159
+
12160
+
12161
+ def _deserialize(self, params):
12162
+ self._Source = params.get("Source")
12163
+ self._Target = params.get("Target")
12164
+ memeber_set = set(params.keys())
12165
+ for name, value in vars(self).items():
12166
+ property_name = name[1:]
12167
+ if property_name in memeber_set:
12168
+ memeber_set.remove(property_name)
12169
+ if len(memeber_set) > 0:
12170
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12171
+
12172
+
12173
+
12070
12174
  class TimeValue(AbstractModel):
12071
12175
  r"""The quality data, which consists of the `time` and `value` parameters.
12072
12176
 
@@ -12214,6 +12318,94 @@ class TranscriptionParams(AbstractModel):
12214
12318
 
12215
12319
 
12216
12320
 
12321
+ class TranslationConfig(AbstractModel):
12322
+ r"""Translation config
12323
+
12324
+ """
12325
+
12326
+ def __init__(self):
12327
+ r"""
12328
+ :param _TargetLanguages: Target language, target language list (ISO 639-1).
12329
+ :type TargetLanguages: list of str
12330
+ :param _Mode: 1: Only text translation, 2: Voice simultaneous interpretation.
12331
+ :type Mode: int
12332
+ :param _TTSConfig: Voice simultaneous interpretation configuration: When enabling simultaneous interpretation, this parameter needs to be passed.
12333
+ :type TTSConfig: :class:`tencentcloud.trtc.v20190722.models.TTSConfig`
12334
+ :param _Terminology: Translation terminology.
12335
+ :type Terminology: list of Terminology
12336
+ """
12337
+ self._TargetLanguages = None
12338
+ self._Mode = None
12339
+ self._TTSConfig = None
12340
+ self._Terminology = None
12341
+
12342
+ @property
12343
+ def TargetLanguages(self):
12344
+ r"""Target language, target language list (ISO 639-1).
12345
+ :rtype: list of str
12346
+ """
12347
+ return self._TargetLanguages
12348
+
12349
+ @TargetLanguages.setter
12350
+ def TargetLanguages(self, TargetLanguages):
12351
+ self._TargetLanguages = TargetLanguages
12352
+
12353
+ @property
12354
+ def Mode(self):
12355
+ r"""1: Only text translation, 2: Voice simultaneous interpretation.
12356
+ :rtype: int
12357
+ """
12358
+ return self._Mode
12359
+
12360
+ @Mode.setter
12361
+ def Mode(self, Mode):
12362
+ self._Mode = Mode
12363
+
12364
+ @property
12365
+ def TTSConfig(self):
12366
+ r"""Voice simultaneous interpretation configuration: When enabling simultaneous interpretation, this parameter needs to be passed.
12367
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TTSConfig`
12368
+ """
12369
+ return self._TTSConfig
12370
+
12371
+ @TTSConfig.setter
12372
+ def TTSConfig(self, TTSConfig):
12373
+ self._TTSConfig = TTSConfig
12374
+
12375
+ @property
12376
+ def Terminology(self):
12377
+ r"""Translation terminology.
12378
+ :rtype: list of Terminology
12379
+ """
12380
+ return self._Terminology
12381
+
12382
+ @Terminology.setter
12383
+ def Terminology(self, Terminology):
12384
+ self._Terminology = Terminology
12385
+
12386
+
12387
+ def _deserialize(self, params):
12388
+ self._TargetLanguages = params.get("TargetLanguages")
12389
+ self._Mode = params.get("Mode")
12390
+ if params.get("TTSConfig") is not None:
12391
+ self._TTSConfig = TTSConfig()
12392
+ self._TTSConfig._deserialize(params.get("TTSConfig"))
12393
+ if params.get("Terminology") is not None:
12394
+ self._Terminology = []
12395
+ for item in params.get("Terminology"):
12396
+ obj = Terminology()
12397
+ obj._deserialize(item)
12398
+ self._Terminology.append(obj)
12399
+ memeber_set = set(params.keys())
12400
+ for name, value in vars(self).items():
12401
+ property_name = name[1:]
12402
+ if property_name in memeber_set:
12403
+ memeber_set.remove(property_name)
12404
+ if len(memeber_set) > 0:
12405
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12406
+
12407
+
12408
+
12217
12409
  class TrtcUsage(AbstractModel):
12218
12410
  r"""The TRTC audio/video duration generated in a certain time period.
12219
12411
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-intl-en
3
- Version: 3.0.1282
3
+ Version: 3.0.1284
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python-intl-en
6
6
  Author: Tencent Cloud
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=APNQsAwKY7QxDmeTKQpRUSb_UTDj5aydVbj_LfiF33U,630
1
+ tencentcloud/__init__.py,sha256=6SG3R8YQCmE5kZSMBpUAYjPEYCMfsbrLCUb4dULAX2A,630
2
2
  tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/advisor/v20200721/advisor_client.py,sha256=PI6LX0PouoGb8e_ydQ9rATqY795jQh7JPK2COE_oH-Q,2899
@@ -243,9 +243,9 @@ tencentcloud/dcdb/v20180411/errorcodes.py,sha256=N__WJ70XTRcqJwXxMF2KDrNa6O7LJBO
243
243
  tencentcloud/dcdb/v20180411/models.py,sha256=xXwJdWC2Lafh_p8YrN1aygXt7f0J7f9MirFt2JI97Ls,461989
244
244
  tencentcloud/dlc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
245
245
  tencentcloud/dlc/v20210125/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
246
- tencentcloud/dlc/v20210125/dlc_client.py,sha256=gfiJo7lXVOiEZkc71fFjbEIgNEAvUSXeU0SmX__P7nU,96693
246
+ tencentcloud/dlc/v20210125/dlc_client.py,sha256=hSrnGW-lNLPilMytEIqIbtCwarjNqtc0DSKEvoREMSs,97708
247
247
  tencentcloud/dlc/v20210125/errorcodes.py,sha256=f0QStwofoAwEbv1pTNlRjRnDm5dv0fNcp-PDqVbyr2o,31542
248
- tencentcloud/dlc/v20210125/models.py,sha256=aiSAOQfjY_cpvrkrNRwmDcakwLj78pU9vIoX3ai6McA,804383
248
+ tencentcloud/dlc/v20210125/models.py,sha256=GEr4enUmdhUyxX0PHVt-u4BCYE83ej9gQnUDVgnVAbM,810953
249
249
  tencentcloud/dms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
250
250
  tencentcloud/dms/v20200819/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
251
251
  tencentcloud/dms/v20200819/dms_client.py,sha256=rbd9TqhAUebfyTNh-_MXic9EGgATMaf4WLf29rpq7Ek,2718
@@ -471,9 +471,9 @@ tencentcloud/pts/v20210728/models.py,sha256=3053CQ6soN4lyt7IEJeflxqhRvwkx1hwnyNK
471
471
  tencentcloud/pts/v20210728/pts_client.py,sha256=hzy4uKlbt13m9XX5fY1xAHVa69saLPwvNXAoxd1LJaI,44068
472
472
  tencentcloud/quota/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
473
473
  tencentcloud/quota/v20241204/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
474
- tencentcloud/quota/v20241204/errorcodes.py,sha256=ZasztYeoNpeGLP8OL1LDPRuXvtL0EpL5wV4cSrCOaG8,1187
475
- tencentcloud/quota/v20241204/models.py,sha256=KJobEMRpgk0FA769sy1Tr8niEgQd1kqXqYrJ9zW7mGw,5034
476
- tencentcloud/quota/v20241204/quota_client.py,sha256=zMONi78Kc3aCJK6OA1_uZ-89tiUzzTf5uSZq-QHHBGE,1818
474
+ tencentcloud/quota/v20241204/errorcodes.py,sha256=NqaWi8Bq1Ca0W84xxDLHXSt1B2occnirH00c2B4nWxY,1312
475
+ tencentcloud/quota/v20241204/models.py,sha256=c7m4pFXMOqCaTmiJDzQ6LwjYaqmf1Y1dt6Y9kfl5w_0,24513
476
+ tencentcloud/quota/v20241204/quota_client.py,sha256=662yYRcDR-nOBP_zXYKpUuQq7wDdin1bWCGLKgZE1RY,5240
477
477
  tencentcloud/rce/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
478
478
  tencentcloud/rce/v20201103/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
479
479
  tencentcloud/rce/v20201103/errorcodes.py,sha256=-rA5z1iTPCtgbH3isZetBCczbhBPAutWOZR59F6PoSU,4264
@@ -604,7 +604,7 @@ tencentcloud/teo/v20220106/models.py,sha256=eNaNZe2eNzDvOHeV0YGg2sn23OaQrZ_m_aL1
604
604
  tencentcloud/teo/v20220106/teo_client.py,sha256=pFawOB_-KDT4xTmSKOYiUJCHHGUNx9gmqf32K0GI2po,82968
605
605
  tencentcloud/teo/v20220901/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
606
606
  tencentcloud/teo/v20220901/errorcodes.py,sha256=NfpPrKMLyN7gMLmypQIyc5uKqdeZ_os3MUVmXJRrW7s,64124
607
- tencentcloud/teo/v20220901/models.py,sha256=ZbhQQUG6nDJ8zBUmqARhsIL_T4CmuP42a7wvtR1VeFI,1957671
607
+ tencentcloud/teo/v20220901/models.py,sha256=WEvDhGIs4DIKmsXEdoyHpM5eB2O97Ufa0k-10fcT_Vs,1959023
608
608
  tencentcloud/teo/v20220901/teo_client.py,sha256=THyM3hFYOWCexnuwg12l8Dv2DOqQNgFL3c4GAPRswXI,206275
609
609
  tencentcloud/tione/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
610
610
  tencentcloud/tione/v20211111/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -648,7 +648,7 @@ tencentcloud/trro/v20220325/trro_client.py,sha256=A_qgis3-uoe5EFRevBTYviB806IND2
648
648
  tencentcloud/trtc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
649
649
  tencentcloud/trtc/v20190722/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
650
650
  tencentcloud/trtc/v20190722/errorcodes.py,sha256=OhkumrO8gu8pKrKOwgMrPEBd88RnzJYN_Ii_fTPZa94,8928
651
- tencentcloud/trtc/v20190722/models.py,sha256=QktYDSWQSUaawTJZwFQdp07ey2a2p4MXoHJtp9k4P3k,512491
651
+ tencentcloud/trtc/v20190722/models.py,sha256=wz6zmCsT6VY_sxCkcM751WCMU4jgpMP3vjajgB1Ijbo,518143
652
652
  tencentcloud/trtc/v20190722/trtc_client.py,sha256=OZ-nkw1ulj07Oa5TdATJE5OUpYQIMxBtcLRJI889QMg,78607
653
653
  tencentcloud/tts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
654
654
  tencentcloud/tts/v20190823/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -698,7 +698,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
698
698
  tencentcloud/yunjing/v20180228/errorcodes.py,sha256=g2ac3Fxgbof23WWhGj9VxvuLJZNshnB0Mg7jWUzTh24,3168
699
699
  tencentcloud/yunjing/v20180228/models.py,sha256=nivJxxJYNvW-I_WWuoZj5RJaexdeSctX04e7osSjSUo,331388
700
700
  tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=XYRY2x9Bs-06YaFx6swLlxuqhNRuykLZuIte6bc8T2E,67433
701
- tencentcloud_sdk_python_intl_en-3.0.1282.dist-info/METADATA,sha256=iYo_YgyCBTytLeB7kx1JiJ3vPhqJTVXzbBaIhMZFWZw,1628
702
- tencentcloud_sdk_python_intl_en-3.0.1282.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
703
- tencentcloud_sdk_python_intl_en-3.0.1282.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
704
- tencentcloud_sdk_python_intl_en-3.0.1282.dist-info/RECORD,,
701
+ tencentcloud_sdk_python_intl_en-3.0.1284.dist-info/METADATA,sha256=tK5H5ZWi-Vag7MIUbUf_QBX39nj1azanR0F2Gj-taHA,1628
702
+ tencentcloud_sdk_python_intl_en-3.0.1284.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
703
+ tencentcloud_sdk_python_intl_en-3.0.1284.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
704
+ tencentcloud_sdk_python_intl_en-3.0.1284.dist-info/RECORD,,