tencentcloud-sdk-python 3.0.1255__py2.py3-none-any.whl → 3.0.1256__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/cfw/v20190904/cfw_client.py +3 -1
- tencentcloud/cfw/v20190904/models.py +2 -2
- tencentcloud/clb/v20180317/models.py +25 -1
- tencentcloud/cwp/v20180228/cwp_client.py +6 -2
- tencentcloud/cwp/v20180228/models.py +60 -24
- tencentcloud/gaap/v20180529/gaap_client.py +1 -1
- tencentcloud/gaap/v20180529/models.py +67 -39
- tencentcloud/ocr/v20181119/models.py +1 -0
- tencentcloud/pts/v20210728/models.py +13 -0
- tencentcloud/redis/v20180412/models.py +3 -1
- tencentcloud/redis/v20180412/redis_client.py +1 -1
- tencentcloud/tdmq/v20200217/models.py +442 -55
- tencentcloud/tdmq/v20200217/tdmq_client.py +46 -0
- tencentcloud/trocket/v20230308/models.py +25 -1
- tencentcloud/trocket/v20230308/trocket_client.py +2 -2
- tencentcloud/tsi/v20210325/models.py +135 -0
- tencentcloud/vod/v20180717/models.py +878 -7
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1256.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1256.dist-info}/RECORD +23 -23
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1256.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1256.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1256.dist-info}/top_level.txt +0 -0
@@ -7289,7 +7289,7 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7289
7289
|
|
7290
7290
|
def __init__(self):
|
7291
7291
|
r"""
|
7292
|
-
:param _InstanceId:
|
7292
|
+
:param _InstanceId: 集群ID
|
7293
7293
|
:type InstanceId: str
|
7294
7294
|
:param _Name: 实例名称
|
7295
7295
|
:type Name: str
|
@@ -7303,8 +7303,12 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7303
7303
|
:type MessageRetention: int
|
7304
7304
|
:param _ScaledTpsEnabled: 是否开启弹性TPS
|
7305
7305
|
:type ScaledTpsEnabled: bool
|
7306
|
+
:param _AclEnabled: 是否开启ACL
|
7307
|
+
:type AclEnabled: bool
|
7306
7308
|
:param _MaxTopicNum: 最大可创建主题数
|
7307
7309
|
:type MaxTopicNum: int
|
7310
|
+
:param _ExtraTopicNum: 免费额度之外的主题个数
|
7311
|
+
:type ExtraTopicNum: str
|
7308
7312
|
"""
|
7309
7313
|
self._InstanceId = None
|
7310
7314
|
self._Name = None
|
@@ -7313,7 +7317,9 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7313
7317
|
self._SkuCode = None
|
7314
7318
|
self._MessageRetention = None
|
7315
7319
|
self._ScaledTpsEnabled = None
|
7320
|
+
self._AclEnabled = None
|
7316
7321
|
self._MaxTopicNum = None
|
7322
|
+
self._ExtraTopicNum = None
|
7317
7323
|
|
7318
7324
|
@property
|
7319
7325
|
def InstanceId(self):
|
@@ -7371,6 +7377,14 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7371
7377
|
def ScaledTpsEnabled(self, ScaledTpsEnabled):
|
7372
7378
|
self._ScaledTpsEnabled = ScaledTpsEnabled
|
7373
7379
|
|
7380
|
+
@property
|
7381
|
+
def AclEnabled(self):
|
7382
|
+
return self._AclEnabled
|
7383
|
+
|
7384
|
+
@AclEnabled.setter
|
7385
|
+
def AclEnabled(self, AclEnabled):
|
7386
|
+
self._AclEnabled = AclEnabled
|
7387
|
+
|
7374
7388
|
@property
|
7375
7389
|
def MaxTopicNum(self):
|
7376
7390
|
return self._MaxTopicNum
|
@@ -7379,6 +7393,14 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7379
7393
|
def MaxTopicNum(self, MaxTopicNum):
|
7380
7394
|
self._MaxTopicNum = MaxTopicNum
|
7381
7395
|
|
7396
|
+
@property
|
7397
|
+
def ExtraTopicNum(self):
|
7398
|
+
return self._ExtraTopicNum
|
7399
|
+
|
7400
|
+
@ExtraTopicNum.setter
|
7401
|
+
def ExtraTopicNum(self, ExtraTopicNum):
|
7402
|
+
self._ExtraTopicNum = ExtraTopicNum
|
7403
|
+
|
7382
7404
|
|
7383
7405
|
def _deserialize(self, params):
|
7384
7406
|
self._InstanceId = params.get("InstanceId")
|
@@ -7388,7 +7410,9 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7388
7410
|
self._SkuCode = params.get("SkuCode")
|
7389
7411
|
self._MessageRetention = params.get("MessageRetention")
|
7390
7412
|
self._ScaledTpsEnabled = params.get("ScaledTpsEnabled")
|
7413
|
+
self._AclEnabled = params.get("AclEnabled")
|
7391
7414
|
self._MaxTopicNum = params.get("MaxTopicNum")
|
7415
|
+
self._ExtraTopicNum = params.get("ExtraTopicNum")
|
7392
7416
|
memeber_set = set(params.keys())
|
7393
7417
|
for name, value in vars(self).items():
|
7394
7418
|
property_name = name[1:]
|
@@ -518,7 +518,7 @@ class TrocketClient(AbstractClient):
|
|
518
518
|
|
519
519
|
|
520
520
|
def DescribeInstanceList(self, request):
|
521
|
-
"""
|
521
|
+
"""查询集群列表,仅支持 5.x 集群。Filters参数使用说明如下:
|
522
522
|
1. InstanceName, 名称模糊查询
|
523
523
|
2. InstanceId,集群ID查询
|
524
524
|
3. InstanceType, 集群类型查询,支持多选
|
@@ -1002,7 +1002,7 @@ class TrocketClient(AbstractClient):
|
|
1002
1002
|
|
1003
1003
|
|
1004
1004
|
def ModifyInstance(self, request):
|
1005
|
-
"""
|
1005
|
+
"""修改 RocketMQ 5.x 集群属性。
|
1006
1006
|
|
1007
1007
|
:param request: Request instance for ModifyInstance.
|
1008
1008
|
:type request: :class:`tencentcloud.trocket.v20230308.models.ModifyInstanceRequest`
|
@@ -39,6 +39,8 @@ class DisplayInfo(AbstractModel):
|
|
39
39
|
:type EndTime: int
|
40
40
|
:param _IsEnd: 当前句子是否已结束
|
41
41
|
:type IsEnd: bool
|
42
|
+
:param _Audio: base64编码的wav/mp3音频数据
|
43
|
+
:type Audio: str
|
42
44
|
"""
|
43
45
|
self._SeId = None
|
44
46
|
self._SeVer = None
|
@@ -47,6 +49,7 @@ class DisplayInfo(AbstractModel):
|
|
47
49
|
self._StartTime = None
|
48
50
|
self._EndTime = None
|
49
51
|
self._IsEnd = None
|
52
|
+
self._Audio = None
|
50
53
|
|
51
54
|
@property
|
52
55
|
def SeId(self):
|
@@ -104,6 +107,14 @@ class DisplayInfo(AbstractModel):
|
|
104
107
|
def IsEnd(self, IsEnd):
|
105
108
|
self._IsEnd = IsEnd
|
106
109
|
|
110
|
+
@property
|
111
|
+
def Audio(self):
|
112
|
+
return self._Audio
|
113
|
+
|
114
|
+
@Audio.setter
|
115
|
+
def Audio(self, Audio):
|
116
|
+
self._Audio = Audio
|
117
|
+
|
107
118
|
|
108
119
|
def _deserialize(self, params):
|
109
120
|
self._SeId = params.get("SeId")
|
@@ -113,6 +124,102 @@ class DisplayInfo(AbstractModel):
|
|
113
124
|
self._StartTime = params.get("StartTime")
|
114
125
|
self._EndTime = params.get("EndTime")
|
115
126
|
self._IsEnd = params.get("IsEnd")
|
127
|
+
self._Audio = params.get("Audio")
|
128
|
+
memeber_set = set(params.keys())
|
129
|
+
for name, value in vars(self).items():
|
130
|
+
property_name = name[1:]
|
131
|
+
if property_name in memeber_set:
|
132
|
+
memeber_set.remove(property_name)
|
133
|
+
if len(memeber_set) > 0:
|
134
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
class TTS(AbstractModel):
|
139
|
+
"""同传TTS请求参数
|
140
|
+
|
141
|
+
"""
|
142
|
+
|
143
|
+
def __init__(self):
|
144
|
+
r"""
|
145
|
+
:param _Codec: 返回音频格式,可取值:wav,mp3,pcm
|
146
|
+
:type Codec: str
|
147
|
+
:param _VoiceType: 音色 ID,只包括标准音色(注,日文只有一个固定音色)。
|
148
|
+
完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
|
149
|
+
:type VoiceType: int
|
150
|
+
:param _Volume: 音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
|
151
|
+
:type Volume: float
|
152
|
+
:param _Speed: 语速,范围:[-2,6],分别对应不同语速:
|
153
|
+
|
154
|
+
- -2代表0.6倍
|
155
|
+
- -1代表0.8倍
|
156
|
+
- 0代表1.0倍(默认)
|
157
|
+
- 1代表1.2倍
|
158
|
+
- 2代表1.5倍
|
159
|
+
- 6代表2.5倍
|
160
|
+
|
161
|
+
如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。
|
162
|
+
参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
|
163
|
+
:type Speed: float
|
164
|
+
:param _SampleRate: 音频采样率:
|
165
|
+
|
166
|
+
- 16000:16k(默认)
|
167
|
+
- 8000:8k
|
168
|
+
:type SampleRate: int
|
169
|
+
"""
|
170
|
+
self._Codec = None
|
171
|
+
self._VoiceType = None
|
172
|
+
self._Volume = None
|
173
|
+
self._Speed = None
|
174
|
+
self._SampleRate = None
|
175
|
+
|
176
|
+
@property
|
177
|
+
def Codec(self):
|
178
|
+
return self._Codec
|
179
|
+
|
180
|
+
@Codec.setter
|
181
|
+
def Codec(self, Codec):
|
182
|
+
self._Codec = Codec
|
183
|
+
|
184
|
+
@property
|
185
|
+
def VoiceType(self):
|
186
|
+
return self._VoiceType
|
187
|
+
|
188
|
+
@VoiceType.setter
|
189
|
+
def VoiceType(self, VoiceType):
|
190
|
+
self._VoiceType = VoiceType
|
191
|
+
|
192
|
+
@property
|
193
|
+
def Volume(self):
|
194
|
+
return self._Volume
|
195
|
+
|
196
|
+
@Volume.setter
|
197
|
+
def Volume(self, Volume):
|
198
|
+
self._Volume = Volume
|
199
|
+
|
200
|
+
@property
|
201
|
+
def Speed(self):
|
202
|
+
return self._Speed
|
203
|
+
|
204
|
+
@Speed.setter
|
205
|
+
def Speed(self, Speed):
|
206
|
+
self._Speed = Speed
|
207
|
+
|
208
|
+
@property
|
209
|
+
def SampleRate(self):
|
210
|
+
return self._SampleRate
|
211
|
+
|
212
|
+
@SampleRate.setter
|
213
|
+
def SampleRate(self, SampleRate):
|
214
|
+
self._SampleRate = SampleRate
|
215
|
+
|
216
|
+
|
217
|
+
def _deserialize(self, params):
|
218
|
+
self._Codec = params.get("Codec")
|
219
|
+
self._VoiceType = params.get("VoiceType")
|
220
|
+
self._Volume = params.get("Volume")
|
221
|
+
self._Speed = params.get("Speed")
|
222
|
+
self._SampleRate = params.get("SampleRate")
|
116
223
|
memeber_set = set(params.keys())
|
117
224
|
for name, value in vars(self).items():
|
118
225
|
property_name = name[1:]
|
@@ -257,6 +364,8 @@ yue:粤语
|
|
257
364
|
:type TranslateTime: int
|
258
365
|
:param _Data: 语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
|
259
366
|
:type Data: str
|
367
|
+
:param _TTS: TTS播报控制参数
|
368
|
+
:type TTS: :class:`tencentcloud.tsi.v20210325.models.TTS`
|
260
369
|
"""
|
261
370
|
self._SessionUuid = None
|
262
371
|
self._Source = None
|
@@ -267,6 +376,7 @@ yue:粤语
|
|
267
376
|
self._IsEnd = None
|
268
377
|
self._TranslateTime = None
|
269
378
|
self._Data = None
|
379
|
+
self._TTS = None
|
270
380
|
|
271
381
|
@property
|
272
382
|
def SessionUuid(self):
|
@@ -340,6 +450,14 @@ yue:粤语
|
|
340
450
|
def Data(self, Data):
|
341
451
|
self._Data = Data
|
342
452
|
|
453
|
+
@property
|
454
|
+
def TTS(self):
|
455
|
+
return self._TTS
|
456
|
+
|
457
|
+
@TTS.setter
|
458
|
+
def TTS(self, TTS):
|
459
|
+
self._TTS = TTS
|
460
|
+
|
343
461
|
|
344
462
|
def _deserialize(self, params):
|
345
463
|
self._SessionUuid = params.get("SessionUuid")
|
@@ -351,6 +469,9 @@ yue:粤语
|
|
351
469
|
self._IsEnd = params.get("IsEnd")
|
352
470
|
self._TranslateTime = params.get("TranslateTime")
|
353
471
|
self._Data = params.get("Data")
|
472
|
+
if params.get("TTS") is not None:
|
473
|
+
self._TTS = TTS()
|
474
|
+
self._TTS._deserialize(params.get("TTS"))
|
354
475
|
memeber_set = set(params.keys())
|
355
476
|
for name, value in vars(self).items():
|
356
477
|
property_name = name[1:]
|
@@ -421,6 +542,8 @@ yue:粤语
|
|
421
542
|
:type TranslateTime: int
|
422
543
|
:param _Data: 语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
|
423
544
|
:type Data: str
|
545
|
+
:param _TTS: TTS播报控制参数
|
546
|
+
:type TTS: :class:`tencentcloud.tsi.v20210325.models.TTS`
|
424
547
|
"""
|
425
548
|
self._SessionUuid = None
|
426
549
|
self._Source = None
|
@@ -431,6 +554,7 @@ yue:粤语
|
|
431
554
|
self._IsEnd = None
|
432
555
|
self._TranslateTime = None
|
433
556
|
self._Data = None
|
557
|
+
self._TTS = None
|
434
558
|
|
435
559
|
@property
|
436
560
|
def SessionUuid(self):
|
@@ -504,6 +628,14 @@ yue:粤语
|
|
504
628
|
def Data(self, Data):
|
505
629
|
self._Data = Data
|
506
630
|
|
631
|
+
@property
|
632
|
+
def TTS(self):
|
633
|
+
return self._TTS
|
634
|
+
|
635
|
+
@TTS.setter
|
636
|
+
def TTS(self, TTS):
|
637
|
+
self._TTS = TTS
|
638
|
+
|
507
639
|
|
508
640
|
def _deserialize(self, params):
|
509
641
|
self._SessionUuid = params.get("SessionUuid")
|
@@ -515,6 +647,9 @@ yue:粤语
|
|
515
647
|
self._IsEnd = params.get("IsEnd")
|
516
648
|
self._TranslateTime = params.get("TranslateTime")
|
517
649
|
self._Data = params.get("Data")
|
650
|
+
if params.get("TTS") is not None:
|
651
|
+
self._TTS = TTS()
|
652
|
+
self._TTS._deserialize(params.get("TTS"))
|
518
653
|
memeber_set = set(params.keys())
|
519
654
|
for name, value in vars(self).items():
|
520
655
|
property_name = name[1:]
|