alibabacloud-lingmou20250527 1.3.0__tar.gz → 1.4.0__tar.gz
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.
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/ChangeLog.md +9 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/PKG-INFO +1 -1
- alibabacloud_lingmou20250527-1.4.0/alibabacloud_lingmou20250527/__init__.py +1 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/alibabacloud_lingmou20250527/client.py +556 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/alibabacloud_lingmou20250527/models.py +1402 -584
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/alibabacloud_lingmou20250527.egg-info/PKG-INFO +1 -1
- alibabacloud_lingmou20250527-1.3.0/alibabacloud_lingmou20250527/__init__.py +0 -1
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/LICENSE +0 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/MANIFEST.in +0 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/README-CN.md +0 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/README.md +0 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/alibabacloud_lingmou20250527.egg-info/SOURCES.txt +0 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/alibabacloud_lingmou20250527.egg-info/dependency_links.txt +0 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/alibabacloud_lingmou20250527.egg-info/requires.txt +0 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/alibabacloud_lingmou20250527.egg-info/top_level.txt +0 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/setup.cfg +0 -0
- {alibabacloud_lingmou20250527-1.3.0 → alibabacloud_lingmou20250527-1.4.0}/setup.py +0 -0
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
2025-11-28 Version: 1.3.0
|
|
2
|
+
- Support API ConfirmTrainPicAvatar.
|
|
3
|
+
- Support API CreateTTSVoiceCustom.
|
|
4
|
+
- Support API CreateTrainPicAvatar.
|
|
5
|
+
- Support API GetTrainPicAvatarStatus.
|
|
6
|
+
- Support API ListPrivateTTSVoicesCustom.
|
|
7
|
+
- Support API ListTemplateMaterial.
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
2025-11-28 Version: 1.2.1
|
|
2
11
|
- Generated python 2025-05-27 for LingMou.
|
|
3
12
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.4.0'
|
|
@@ -373,6 +373,230 @@ class Client(OpenApiClient):
|
|
|
373
373
|
headers = {}
|
|
374
374
|
return await self.create_background_pic_with_options_async(request, headers, runtime)
|
|
375
375
|
|
|
376
|
+
def create_broadcast_sticker_with_options(
|
|
377
|
+
self,
|
|
378
|
+
request: ling_mou_20250527_models.CreateBroadcastStickerRequest,
|
|
379
|
+
headers: Dict[str, str],
|
|
380
|
+
runtime: util_models.RuntimeOptions,
|
|
381
|
+
) -> ling_mou_20250527_models.CreateBroadcastStickerResponse:
|
|
382
|
+
"""
|
|
383
|
+
@summary 创建播报贴图
|
|
384
|
+
|
|
385
|
+
@param request: CreateBroadcastStickerRequest
|
|
386
|
+
@param headers: map
|
|
387
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
388
|
+
@return: CreateBroadcastStickerResponse
|
|
389
|
+
"""
|
|
390
|
+
UtilClient.validate_model(request)
|
|
391
|
+
body = {}
|
|
392
|
+
if not UtilClient.is_unset(request.file_name):
|
|
393
|
+
body['fileName'] = request.file_name
|
|
394
|
+
if not UtilClient.is_unset(request.oss_key):
|
|
395
|
+
body['ossKey'] = request.oss_key
|
|
396
|
+
req = open_api_models.OpenApiRequest(
|
|
397
|
+
headers=headers,
|
|
398
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
399
|
+
)
|
|
400
|
+
params = open_api_models.Params(
|
|
401
|
+
action='CreateBroadcastSticker',
|
|
402
|
+
version='2025-05-27',
|
|
403
|
+
protocol='HTTPS',
|
|
404
|
+
pathname=f'/openapi/customer/broadcast/material/sticker/create',
|
|
405
|
+
method='POST',
|
|
406
|
+
auth_type='AK',
|
|
407
|
+
style='ROA',
|
|
408
|
+
req_body_type='json',
|
|
409
|
+
body_type='json'
|
|
410
|
+
)
|
|
411
|
+
return TeaCore.from_map(
|
|
412
|
+
ling_mou_20250527_models.CreateBroadcastStickerResponse(),
|
|
413
|
+
self.call_api(params, req, runtime)
|
|
414
|
+
)
|
|
415
|
+
|
|
416
|
+
async def create_broadcast_sticker_with_options_async(
|
|
417
|
+
self,
|
|
418
|
+
request: ling_mou_20250527_models.CreateBroadcastStickerRequest,
|
|
419
|
+
headers: Dict[str, str],
|
|
420
|
+
runtime: util_models.RuntimeOptions,
|
|
421
|
+
) -> ling_mou_20250527_models.CreateBroadcastStickerResponse:
|
|
422
|
+
"""
|
|
423
|
+
@summary 创建播报贴图
|
|
424
|
+
|
|
425
|
+
@param request: CreateBroadcastStickerRequest
|
|
426
|
+
@param headers: map
|
|
427
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
428
|
+
@return: CreateBroadcastStickerResponse
|
|
429
|
+
"""
|
|
430
|
+
UtilClient.validate_model(request)
|
|
431
|
+
body = {}
|
|
432
|
+
if not UtilClient.is_unset(request.file_name):
|
|
433
|
+
body['fileName'] = request.file_name
|
|
434
|
+
if not UtilClient.is_unset(request.oss_key):
|
|
435
|
+
body['ossKey'] = request.oss_key
|
|
436
|
+
req = open_api_models.OpenApiRequest(
|
|
437
|
+
headers=headers,
|
|
438
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
439
|
+
)
|
|
440
|
+
params = open_api_models.Params(
|
|
441
|
+
action='CreateBroadcastSticker',
|
|
442
|
+
version='2025-05-27',
|
|
443
|
+
protocol='HTTPS',
|
|
444
|
+
pathname=f'/openapi/customer/broadcast/material/sticker/create',
|
|
445
|
+
method='POST',
|
|
446
|
+
auth_type='AK',
|
|
447
|
+
style='ROA',
|
|
448
|
+
req_body_type='json',
|
|
449
|
+
body_type='json'
|
|
450
|
+
)
|
|
451
|
+
return TeaCore.from_map(
|
|
452
|
+
ling_mou_20250527_models.CreateBroadcastStickerResponse(),
|
|
453
|
+
await self.call_api_async(params, req, runtime)
|
|
454
|
+
)
|
|
455
|
+
|
|
456
|
+
def create_broadcast_sticker(
|
|
457
|
+
self,
|
|
458
|
+
request: ling_mou_20250527_models.CreateBroadcastStickerRequest,
|
|
459
|
+
) -> ling_mou_20250527_models.CreateBroadcastStickerResponse:
|
|
460
|
+
"""
|
|
461
|
+
@summary 创建播报贴图
|
|
462
|
+
|
|
463
|
+
@param request: CreateBroadcastStickerRequest
|
|
464
|
+
@return: CreateBroadcastStickerResponse
|
|
465
|
+
"""
|
|
466
|
+
runtime = util_models.RuntimeOptions()
|
|
467
|
+
headers = {}
|
|
468
|
+
return self.create_broadcast_sticker_with_options(request, headers, runtime)
|
|
469
|
+
|
|
470
|
+
async def create_broadcast_sticker_async(
|
|
471
|
+
self,
|
|
472
|
+
request: ling_mou_20250527_models.CreateBroadcastStickerRequest,
|
|
473
|
+
) -> ling_mou_20250527_models.CreateBroadcastStickerResponse:
|
|
474
|
+
"""
|
|
475
|
+
@summary 创建播报贴图
|
|
476
|
+
|
|
477
|
+
@param request: CreateBroadcastStickerRequest
|
|
478
|
+
@return: CreateBroadcastStickerResponse
|
|
479
|
+
"""
|
|
480
|
+
runtime = util_models.RuntimeOptions()
|
|
481
|
+
headers = {}
|
|
482
|
+
return await self.create_broadcast_sticker_with_options_async(request, headers, runtime)
|
|
483
|
+
|
|
484
|
+
def create_broadcast_video_from_template_with_options(
|
|
485
|
+
self,
|
|
486
|
+
request: ling_mou_20250527_models.CreateBroadcastVideoFromTemplateRequest,
|
|
487
|
+
headers: Dict[str, str],
|
|
488
|
+
runtime: util_models.RuntimeOptions,
|
|
489
|
+
) -> ling_mou_20250527_models.CreateBroadcastVideoFromTemplateResponse:
|
|
490
|
+
"""
|
|
491
|
+
@summary 基于模板创建播报视频
|
|
492
|
+
|
|
493
|
+
@param request: CreateBroadcastVideoFromTemplateRequest
|
|
494
|
+
@param headers: map
|
|
495
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
496
|
+
@return: CreateBroadcastVideoFromTemplateResponse
|
|
497
|
+
"""
|
|
498
|
+
UtilClient.validate_model(request)
|
|
499
|
+
body = {}
|
|
500
|
+
if not UtilClient.is_unset(request.name):
|
|
501
|
+
body['name'] = request.name
|
|
502
|
+
if not UtilClient.is_unset(request.template_id):
|
|
503
|
+
body['templateId'] = request.template_id
|
|
504
|
+
if not UtilClient.is_unset(request.variables):
|
|
505
|
+
body['variables'] = request.variables
|
|
506
|
+
if not UtilClient.is_unset(request.video_options):
|
|
507
|
+
body['videoOptions'] = request.video_options
|
|
508
|
+
req = open_api_models.OpenApiRequest(
|
|
509
|
+
headers=headers,
|
|
510
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
511
|
+
)
|
|
512
|
+
params = open_api_models.Params(
|
|
513
|
+
action='CreateBroadcastVideoFromTemplate',
|
|
514
|
+
version='2025-05-27',
|
|
515
|
+
protocol='HTTPS',
|
|
516
|
+
pathname=f'/api/v1/amp/customer/broadcast/video/createFromTemplate',
|
|
517
|
+
method='POST',
|
|
518
|
+
auth_type='AK',
|
|
519
|
+
style='ROA',
|
|
520
|
+
req_body_type='json',
|
|
521
|
+
body_type='json'
|
|
522
|
+
)
|
|
523
|
+
return TeaCore.from_map(
|
|
524
|
+
ling_mou_20250527_models.CreateBroadcastVideoFromTemplateResponse(),
|
|
525
|
+
self.call_api(params, req, runtime)
|
|
526
|
+
)
|
|
527
|
+
|
|
528
|
+
async def create_broadcast_video_from_template_with_options_async(
|
|
529
|
+
self,
|
|
530
|
+
request: ling_mou_20250527_models.CreateBroadcastVideoFromTemplateRequest,
|
|
531
|
+
headers: Dict[str, str],
|
|
532
|
+
runtime: util_models.RuntimeOptions,
|
|
533
|
+
) -> ling_mou_20250527_models.CreateBroadcastVideoFromTemplateResponse:
|
|
534
|
+
"""
|
|
535
|
+
@summary 基于模板创建播报视频
|
|
536
|
+
|
|
537
|
+
@param request: CreateBroadcastVideoFromTemplateRequest
|
|
538
|
+
@param headers: map
|
|
539
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
540
|
+
@return: CreateBroadcastVideoFromTemplateResponse
|
|
541
|
+
"""
|
|
542
|
+
UtilClient.validate_model(request)
|
|
543
|
+
body = {}
|
|
544
|
+
if not UtilClient.is_unset(request.name):
|
|
545
|
+
body['name'] = request.name
|
|
546
|
+
if not UtilClient.is_unset(request.template_id):
|
|
547
|
+
body['templateId'] = request.template_id
|
|
548
|
+
if not UtilClient.is_unset(request.variables):
|
|
549
|
+
body['variables'] = request.variables
|
|
550
|
+
if not UtilClient.is_unset(request.video_options):
|
|
551
|
+
body['videoOptions'] = request.video_options
|
|
552
|
+
req = open_api_models.OpenApiRequest(
|
|
553
|
+
headers=headers,
|
|
554
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
555
|
+
)
|
|
556
|
+
params = open_api_models.Params(
|
|
557
|
+
action='CreateBroadcastVideoFromTemplate',
|
|
558
|
+
version='2025-05-27',
|
|
559
|
+
protocol='HTTPS',
|
|
560
|
+
pathname=f'/api/v1/amp/customer/broadcast/video/createFromTemplate',
|
|
561
|
+
method='POST',
|
|
562
|
+
auth_type='AK',
|
|
563
|
+
style='ROA',
|
|
564
|
+
req_body_type='json',
|
|
565
|
+
body_type='json'
|
|
566
|
+
)
|
|
567
|
+
return TeaCore.from_map(
|
|
568
|
+
ling_mou_20250527_models.CreateBroadcastVideoFromTemplateResponse(),
|
|
569
|
+
await self.call_api_async(params, req, runtime)
|
|
570
|
+
)
|
|
571
|
+
|
|
572
|
+
def create_broadcast_video_from_template(
|
|
573
|
+
self,
|
|
574
|
+
request: ling_mou_20250527_models.CreateBroadcastVideoFromTemplateRequest,
|
|
575
|
+
) -> ling_mou_20250527_models.CreateBroadcastVideoFromTemplateResponse:
|
|
576
|
+
"""
|
|
577
|
+
@summary 基于模板创建播报视频
|
|
578
|
+
|
|
579
|
+
@param request: CreateBroadcastVideoFromTemplateRequest
|
|
580
|
+
@return: CreateBroadcastVideoFromTemplateResponse
|
|
581
|
+
"""
|
|
582
|
+
runtime = util_models.RuntimeOptions()
|
|
583
|
+
headers = {}
|
|
584
|
+
return self.create_broadcast_video_from_template_with_options(request, headers, runtime)
|
|
585
|
+
|
|
586
|
+
async def create_broadcast_video_from_template_async(
|
|
587
|
+
self,
|
|
588
|
+
request: ling_mou_20250527_models.CreateBroadcastVideoFromTemplateRequest,
|
|
589
|
+
) -> ling_mou_20250527_models.CreateBroadcastVideoFromTemplateResponse:
|
|
590
|
+
"""
|
|
591
|
+
@summary 基于模板创建播报视频
|
|
592
|
+
|
|
593
|
+
@param request: CreateBroadcastVideoFromTemplateRequest
|
|
594
|
+
@return: CreateBroadcastVideoFromTemplateResponse
|
|
595
|
+
"""
|
|
596
|
+
runtime = util_models.RuntimeOptions()
|
|
597
|
+
headers = {}
|
|
598
|
+
return await self.create_broadcast_video_from_template_with_options_async(request, headers, runtime)
|
|
599
|
+
|
|
376
600
|
def create_chat_config_with_options(
|
|
377
601
|
self,
|
|
378
602
|
request: ling_mou_20250527_models.CreateChatConfigRequest,
|
|
@@ -965,6 +1189,110 @@ class Client(OpenApiClient):
|
|
|
965
1189
|
headers = {}
|
|
966
1190
|
return await self.create_train_pic_avatar_with_options_async(request, headers, runtime)
|
|
967
1191
|
|
|
1192
|
+
def get_broadcast_template_with_options(
|
|
1193
|
+
self,
|
|
1194
|
+
request: ling_mou_20250527_models.GetBroadcastTemplateRequest,
|
|
1195
|
+
headers: Dict[str, str],
|
|
1196
|
+
runtime: util_models.RuntimeOptions,
|
|
1197
|
+
) -> ling_mou_20250527_models.GetBroadcastTemplateResponse:
|
|
1198
|
+
"""
|
|
1199
|
+
@summary 查询播报模板详情
|
|
1200
|
+
|
|
1201
|
+
@param request: GetBroadcastTemplateRequest
|
|
1202
|
+
@param headers: map
|
|
1203
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1204
|
+
@return: GetBroadcastTemplateResponse
|
|
1205
|
+
"""
|
|
1206
|
+
UtilClient.validate_model(request)
|
|
1207
|
+
query = {}
|
|
1208
|
+
if not UtilClient.is_unset(request.template_id):
|
|
1209
|
+
query['templateId'] = request.template_id
|
|
1210
|
+
req = open_api_models.OpenApiRequest(
|
|
1211
|
+
headers=headers,
|
|
1212
|
+
query=OpenApiUtilClient.query(query)
|
|
1213
|
+
)
|
|
1214
|
+
params = open_api_models.Params(
|
|
1215
|
+
action='GetBroadcastTemplate',
|
|
1216
|
+
version='2025-05-27',
|
|
1217
|
+
protocol='HTTPS',
|
|
1218
|
+
pathname=f'/openapi/customer/broadcast/template/detail',
|
|
1219
|
+
method='GET',
|
|
1220
|
+
auth_type='AK',
|
|
1221
|
+
style='ROA',
|
|
1222
|
+
req_body_type='json',
|
|
1223
|
+
body_type='json'
|
|
1224
|
+
)
|
|
1225
|
+
return TeaCore.from_map(
|
|
1226
|
+
ling_mou_20250527_models.GetBroadcastTemplateResponse(),
|
|
1227
|
+
self.call_api(params, req, runtime)
|
|
1228
|
+
)
|
|
1229
|
+
|
|
1230
|
+
async def get_broadcast_template_with_options_async(
|
|
1231
|
+
self,
|
|
1232
|
+
request: ling_mou_20250527_models.GetBroadcastTemplateRequest,
|
|
1233
|
+
headers: Dict[str, str],
|
|
1234
|
+
runtime: util_models.RuntimeOptions,
|
|
1235
|
+
) -> ling_mou_20250527_models.GetBroadcastTemplateResponse:
|
|
1236
|
+
"""
|
|
1237
|
+
@summary 查询播报模板详情
|
|
1238
|
+
|
|
1239
|
+
@param request: GetBroadcastTemplateRequest
|
|
1240
|
+
@param headers: map
|
|
1241
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1242
|
+
@return: GetBroadcastTemplateResponse
|
|
1243
|
+
"""
|
|
1244
|
+
UtilClient.validate_model(request)
|
|
1245
|
+
query = {}
|
|
1246
|
+
if not UtilClient.is_unset(request.template_id):
|
|
1247
|
+
query['templateId'] = request.template_id
|
|
1248
|
+
req = open_api_models.OpenApiRequest(
|
|
1249
|
+
headers=headers,
|
|
1250
|
+
query=OpenApiUtilClient.query(query)
|
|
1251
|
+
)
|
|
1252
|
+
params = open_api_models.Params(
|
|
1253
|
+
action='GetBroadcastTemplate',
|
|
1254
|
+
version='2025-05-27',
|
|
1255
|
+
protocol='HTTPS',
|
|
1256
|
+
pathname=f'/openapi/customer/broadcast/template/detail',
|
|
1257
|
+
method='GET',
|
|
1258
|
+
auth_type='AK',
|
|
1259
|
+
style='ROA',
|
|
1260
|
+
req_body_type='json',
|
|
1261
|
+
body_type='json'
|
|
1262
|
+
)
|
|
1263
|
+
return TeaCore.from_map(
|
|
1264
|
+
ling_mou_20250527_models.GetBroadcastTemplateResponse(),
|
|
1265
|
+
await self.call_api_async(params, req, runtime)
|
|
1266
|
+
)
|
|
1267
|
+
|
|
1268
|
+
def get_broadcast_template(
|
|
1269
|
+
self,
|
|
1270
|
+
request: ling_mou_20250527_models.GetBroadcastTemplateRequest,
|
|
1271
|
+
) -> ling_mou_20250527_models.GetBroadcastTemplateResponse:
|
|
1272
|
+
"""
|
|
1273
|
+
@summary 查询播报模板详情
|
|
1274
|
+
|
|
1275
|
+
@param request: GetBroadcastTemplateRequest
|
|
1276
|
+
@return: GetBroadcastTemplateResponse
|
|
1277
|
+
"""
|
|
1278
|
+
runtime = util_models.RuntimeOptions()
|
|
1279
|
+
headers = {}
|
|
1280
|
+
return self.get_broadcast_template_with_options(request, headers, runtime)
|
|
1281
|
+
|
|
1282
|
+
async def get_broadcast_template_async(
|
|
1283
|
+
self,
|
|
1284
|
+
request: ling_mou_20250527_models.GetBroadcastTemplateRequest,
|
|
1285
|
+
) -> ling_mou_20250527_models.GetBroadcastTemplateResponse:
|
|
1286
|
+
"""
|
|
1287
|
+
@summary 查询播报模板详情
|
|
1288
|
+
|
|
1289
|
+
@param request: GetBroadcastTemplateRequest
|
|
1290
|
+
@return: GetBroadcastTemplateResponse
|
|
1291
|
+
"""
|
|
1292
|
+
runtime = util_models.RuntimeOptions()
|
|
1293
|
+
headers = {}
|
|
1294
|
+
return await self.get_broadcast_template_with_options_async(request, headers, runtime)
|
|
1295
|
+
|
|
968
1296
|
def get_train_pic_avatar_status_with_options(
|
|
969
1297
|
self,
|
|
970
1298
|
request: ling_mou_20250527_models.GetTrainPicAvatarStatusRequest,
|
|
@@ -1177,6 +1505,234 @@ class Client(OpenApiClient):
|
|
|
1177
1505
|
headers = {}
|
|
1178
1506
|
return await self.get_upload_policy_with_options_async(request, headers, runtime)
|
|
1179
1507
|
|
|
1508
|
+
def list_broadcast_templates_with_options(
|
|
1509
|
+
self,
|
|
1510
|
+
request: ling_mou_20250527_models.ListBroadcastTemplatesRequest,
|
|
1511
|
+
headers: Dict[str, str],
|
|
1512
|
+
runtime: util_models.RuntimeOptions,
|
|
1513
|
+
) -> ling_mou_20250527_models.ListBroadcastTemplatesResponse:
|
|
1514
|
+
"""
|
|
1515
|
+
@summary 列举播报模板
|
|
1516
|
+
|
|
1517
|
+
@param request: ListBroadcastTemplatesRequest
|
|
1518
|
+
@param headers: map
|
|
1519
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1520
|
+
@return: ListBroadcastTemplatesResponse
|
|
1521
|
+
"""
|
|
1522
|
+
UtilClient.validate_model(request)
|
|
1523
|
+
query = {}
|
|
1524
|
+
if not UtilClient.is_unset(request.max_results):
|
|
1525
|
+
query['maxResults'] = request.max_results
|
|
1526
|
+
if not UtilClient.is_unset(request.next_token):
|
|
1527
|
+
query['nextToken'] = request.next_token
|
|
1528
|
+
if not UtilClient.is_unset(request.page):
|
|
1529
|
+
query['page'] = request.page
|
|
1530
|
+
if not UtilClient.is_unset(request.size):
|
|
1531
|
+
query['size'] = request.size
|
|
1532
|
+
req = open_api_models.OpenApiRequest(
|
|
1533
|
+
headers=headers,
|
|
1534
|
+
query=OpenApiUtilClient.query(query)
|
|
1535
|
+
)
|
|
1536
|
+
params = open_api_models.Params(
|
|
1537
|
+
action='ListBroadcastTemplates',
|
|
1538
|
+
version='2025-05-27',
|
|
1539
|
+
protocol='HTTPS',
|
|
1540
|
+
pathname=f'/openapi/customer/broadcast/template/list',
|
|
1541
|
+
method='GET',
|
|
1542
|
+
auth_type='AK',
|
|
1543
|
+
style='ROA',
|
|
1544
|
+
req_body_type='json',
|
|
1545
|
+
body_type='json'
|
|
1546
|
+
)
|
|
1547
|
+
return TeaCore.from_map(
|
|
1548
|
+
ling_mou_20250527_models.ListBroadcastTemplatesResponse(),
|
|
1549
|
+
self.call_api(params, req, runtime)
|
|
1550
|
+
)
|
|
1551
|
+
|
|
1552
|
+
async def list_broadcast_templates_with_options_async(
|
|
1553
|
+
self,
|
|
1554
|
+
request: ling_mou_20250527_models.ListBroadcastTemplatesRequest,
|
|
1555
|
+
headers: Dict[str, str],
|
|
1556
|
+
runtime: util_models.RuntimeOptions,
|
|
1557
|
+
) -> ling_mou_20250527_models.ListBroadcastTemplatesResponse:
|
|
1558
|
+
"""
|
|
1559
|
+
@summary 列举播报模板
|
|
1560
|
+
|
|
1561
|
+
@param request: ListBroadcastTemplatesRequest
|
|
1562
|
+
@param headers: map
|
|
1563
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1564
|
+
@return: ListBroadcastTemplatesResponse
|
|
1565
|
+
"""
|
|
1566
|
+
UtilClient.validate_model(request)
|
|
1567
|
+
query = {}
|
|
1568
|
+
if not UtilClient.is_unset(request.max_results):
|
|
1569
|
+
query['maxResults'] = request.max_results
|
|
1570
|
+
if not UtilClient.is_unset(request.next_token):
|
|
1571
|
+
query['nextToken'] = request.next_token
|
|
1572
|
+
if not UtilClient.is_unset(request.page):
|
|
1573
|
+
query['page'] = request.page
|
|
1574
|
+
if not UtilClient.is_unset(request.size):
|
|
1575
|
+
query['size'] = request.size
|
|
1576
|
+
req = open_api_models.OpenApiRequest(
|
|
1577
|
+
headers=headers,
|
|
1578
|
+
query=OpenApiUtilClient.query(query)
|
|
1579
|
+
)
|
|
1580
|
+
params = open_api_models.Params(
|
|
1581
|
+
action='ListBroadcastTemplates',
|
|
1582
|
+
version='2025-05-27',
|
|
1583
|
+
protocol='HTTPS',
|
|
1584
|
+
pathname=f'/openapi/customer/broadcast/template/list',
|
|
1585
|
+
method='GET',
|
|
1586
|
+
auth_type='AK',
|
|
1587
|
+
style='ROA',
|
|
1588
|
+
req_body_type='json',
|
|
1589
|
+
body_type='json'
|
|
1590
|
+
)
|
|
1591
|
+
return TeaCore.from_map(
|
|
1592
|
+
ling_mou_20250527_models.ListBroadcastTemplatesResponse(),
|
|
1593
|
+
await self.call_api_async(params, req, runtime)
|
|
1594
|
+
)
|
|
1595
|
+
|
|
1596
|
+
def list_broadcast_templates(
|
|
1597
|
+
self,
|
|
1598
|
+
request: ling_mou_20250527_models.ListBroadcastTemplatesRequest,
|
|
1599
|
+
) -> ling_mou_20250527_models.ListBroadcastTemplatesResponse:
|
|
1600
|
+
"""
|
|
1601
|
+
@summary 列举播报模板
|
|
1602
|
+
|
|
1603
|
+
@param request: ListBroadcastTemplatesRequest
|
|
1604
|
+
@return: ListBroadcastTemplatesResponse
|
|
1605
|
+
"""
|
|
1606
|
+
runtime = util_models.RuntimeOptions()
|
|
1607
|
+
headers = {}
|
|
1608
|
+
return self.list_broadcast_templates_with_options(request, headers, runtime)
|
|
1609
|
+
|
|
1610
|
+
async def list_broadcast_templates_async(
|
|
1611
|
+
self,
|
|
1612
|
+
request: ling_mou_20250527_models.ListBroadcastTemplatesRequest,
|
|
1613
|
+
) -> ling_mou_20250527_models.ListBroadcastTemplatesResponse:
|
|
1614
|
+
"""
|
|
1615
|
+
@summary 列举播报模板
|
|
1616
|
+
|
|
1617
|
+
@param request: ListBroadcastTemplatesRequest
|
|
1618
|
+
@return: ListBroadcastTemplatesResponse
|
|
1619
|
+
"""
|
|
1620
|
+
runtime = util_models.RuntimeOptions()
|
|
1621
|
+
headers = {}
|
|
1622
|
+
return await self.list_broadcast_templates_with_options_async(request, headers, runtime)
|
|
1623
|
+
|
|
1624
|
+
def list_broadcast_videos_by_id_with_options(
|
|
1625
|
+
self,
|
|
1626
|
+
tmp_req: ling_mou_20250527_models.ListBroadcastVideosByIdRequest,
|
|
1627
|
+
headers: Dict[str, str],
|
|
1628
|
+
runtime: util_models.RuntimeOptions,
|
|
1629
|
+
) -> ling_mou_20250527_models.ListBroadcastVideosByIdResponse:
|
|
1630
|
+
"""
|
|
1631
|
+
@summary 根据视频id批量查询播报视频(最多查询100个)
|
|
1632
|
+
|
|
1633
|
+
@param tmp_req: ListBroadcastVideosByIdRequest
|
|
1634
|
+
@param headers: map
|
|
1635
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1636
|
+
@return: ListBroadcastVideosByIdResponse
|
|
1637
|
+
"""
|
|
1638
|
+
UtilClient.validate_model(tmp_req)
|
|
1639
|
+
request = ling_mou_20250527_models.ListBroadcastVideosByIdShrinkRequest()
|
|
1640
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1641
|
+
if not UtilClient.is_unset(tmp_req.video_ids):
|
|
1642
|
+
request.video_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_ids, 'videoIds', 'json')
|
|
1643
|
+
query = {}
|
|
1644
|
+
if not UtilClient.is_unset(request.video_ids_shrink):
|
|
1645
|
+
query['videoIds'] = request.video_ids_shrink
|
|
1646
|
+
req = open_api_models.OpenApiRequest(
|
|
1647
|
+
headers=headers,
|
|
1648
|
+
query=OpenApiUtilClient.query(query)
|
|
1649
|
+
)
|
|
1650
|
+
params = open_api_models.Params(
|
|
1651
|
+
action='ListBroadcastVideosById',
|
|
1652
|
+
version='2025-05-27',
|
|
1653
|
+
protocol='HTTPS',
|
|
1654
|
+
pathname=f'/api/v1/amp/customer/broadcast/video/batchQuery',
|
|
1655
|
+
method='GET',
|
|
1656
|
+
auth_type='AK',
|
|
1657
|
+
style='ROA',
|
|
1658
|
+
req_body_type='json',
|
|
1659
|
+
body_type='json'
|
|
1660
|
+
)
|
|
1661
|
+
return TeaCore.from_map(
|
|
1662
|
+
ling_mou_20250527_models.ListBroadcastVideosByIdResponse(),
|
|
1663
|
+
self.call_api(params, req, runtime)
|
|
1664
|
+
)
|
|
1665
|
+
|
|
1666
|
+
async def list_broadcast_videos_by_id_with_options_async(
|
|
1667
|
+
self,
|
|
1668
|
+
tmp_req: ling_mou_20250527_models.ListBroadcastVideosByIdRequest,
|
|
1669
|
+
headers: Dict[str, str],
|
|
1670
|
+
runtime: util_models.RuntimeOptions,
|
|
1671
|
+
) -> ling_mou_20250527_models.ListBroadcastVideosByIdResponse:
|
|
1672
|
+
"""
|
|
1673
|
+
@summary 根据视频id批量查询播报视频(最多查询100个)
|
|
1674
|
+
|
|
1675
|
+
@param tmp_req: ListBroadcastVideosByIdRequest
|
|
1676
|
+
@param headers: map
|
|
1677
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1678
|
+
@return: ListBroadcastVideosByIdResponse
|
|
1679
|
+
"""
|
|
1680
|
+
UtilClient.validate_model(tmp_req)
|
|
1681
|
+
request = ling_mou_20250527_models.ListBroadcastVideosByIdShrinkRequest()
|
|
1682
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1683
|
+
if not UtilClient.is_unset(tmp_req.video_ids):
|
|
1684
|
+
request.video_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_ids, 'videoIds', 'json')
|
|
1685
|
+
query = {}
|
|
1686
|
+
if not UtilClient.is_unset(request.video_ids_shrink):
|
|
1687
|
+
query['videoIds'] = request.video_ids_shrink
|
|
1688
|
+
req = open_api_models.OpenApiRequest(
|
|
1689
|
+
headers=headers,
|
|
1690
|
+
query=OpenApiUtilClient.query(query)
|
|
1691
|
+
)
|
|
1692
|
+
params = open_api_models.Params(
|
|
1693
|
+
action='ListBroadcastVideosById',
|
|
1694
|
+
version='2025-05-27',
|
|
1695
|
+
protocol='HTTPS',
|
|
1696
|
+
pathname=f'/api/v1/amp/customer/broadcast/video/batchQuery',
|
|
1697
|
+
method='GET',
|
|
1698
|
+
auth_type='AK',
|
|
1699
|
+
style='ROA',
|
|
1700
|
+
req_body_type='json',
|
|
1701
|
+
body_type='json'
|
|
1702
|
+
)
|
|
1703
|
+
return TeaCore.from_map(
|
|
1704
|
+
ling_mou_20250527_models.ListBroadcastVideosByIdResponse(),
|
|
1705
|
+
await self.call_api_async(params, req, runtime)
|
|
1706
|
+
)
|
|
1707
|
+
|
|
1708
|
+
def list_broadcast_videos_by_id(
|
|
1709
|
+
self,
|
|
1710
|
+
request: ling_mou_20250527_models.ListBroadcastVideosByIdRequest,
|
|
1711
|
+
) -> ling_mou_20250527_models.ListBroadcastVideosByIdResponse:
|
|
1712
|
+
"""
|
|
1713
|
+
@summary 根据视频id批量查询播报视频(最多查询100个)
|
|
1714
|
+
|
|
1715
|
+
@param request: ListBroadcastVideosByIdRequest
|
|
1716
|
+
@return: ListBroadcastVideosByIdResponse
|
|
1717
|
+
"""
|
|
1718
|
+
runtime = util_models.RuntimeOptions()
|
|
1719
|
+
headers = {}
|
|
1720
|
+
return self.list_broadcast_videos_by_id_with_options(request, headers, runtime)
|
|
1721
|
+
|
|
1722
|
+
async def list_broadcast_videos_by_id_async(
|
|
1723
|
+
self,
|
|
1724
|
+
request: ling_mou_20250527_models.ListBroadcastVideosByIdRequest,
|
|
1725
|
+
) -> ling_mou_20250527_models.ListBroadcastVideosByIdResponse:
|
|
1726
|
+
"""
|
|
1727
|
+
@summary 根据视频id批量查询播报视频(最多查询100个)
|
|
1728
|
+
|
|
1729
|
+
@param request: ListBroadcastVideosByIdRequest
|
|
1730
|
+
@return: ListBroadcastVideosByIdResponse
|
|
1731
|
+
"""
|
|
1732
|
+
runtime = util_models.RuntimeOptions()
|
|
1733
|
+
headers = {}
|
|
1734
|
+
return await self.list_broadcast_videos_by_id_with_options_async(request, headers, runtime)
|
|
1735
|
+
|
|
1180
1736
|
def list_private_ttsvoices_custom_with_options(
|
|
1181
1737
|
self,
|
|
1182
1738
|
request: ling_mou_20250527_models.ListPrivateTTSVoicesCustomRequest,
|