alibabacloud-quanmiaolightapp20240801 2.7.2__tar.gz → 2.8.1__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.
Files changed (17) hide show
  1. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/ChangeLog.md +12 -0
  2. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/PKG-INFO +1 -1
  3. alibabacloud_quanmiaolightapp20240801-2.8.1/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
  4. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/alibabacloud_quanmiaolightapp20240801/client.py +244 -0
  5. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/alibabacloud_quanmiaolightapp20240801/models.py +628 -0
  6. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +1 -1
  7. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +1 -1
  8. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/setup.py +2 -2
  9. alibabacloud_quanmiaolightapp20240801-2.7.2/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
  10. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/LICENSE +0 -0
  11. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/MANIFEST.in +0 -0
  12. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/README-CN.md +0 -0
  13. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/README.md +0 -0
  14. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +0 -0
  15. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
  16. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
  17. {alibabacloud_quanmiaolightapp20240801-2.7.2 → alibabacloud_quanmiaolightapp20240801-2.8.1}/setup.cfg +0 -0
@@ -1,3 +1,15 @@
1
+ 2025-05-15 Version: 2.8.0
2
+ - Support API ListAnalysisTagDetailByTaskId.
3
+ - Support API UpdateVideoAnalysisTask.
4
+ - Update API GetVideoAnalysisTask: add response parameters Body.data.payload.output.videoCaptionResult.videoCaptions.$.speaker.
5
+ - Update API RunVideoAnalysis: add request parameters videoCaptionInfo.
6
+ - Update API RunVideoAnalysis: add response parameters Body.payload.output.videoCaptionResult.videoCaptions.$.speaker.
7
+ - Update API SubmitVideoAnalysisTask: add request parameters videoCaptionInfo.
8
+
9
+
10
+ 2025-04-29 Version: 2.7.2
11
+ - Generated python 2024-08-01 for QuanMiaoLightApp.
12
+
1
13
  2025-04-17 Version: 2.7.1
2
14
  - Update API RunEnterpriseVocAnalysis: add request parameters akProxy.
3
15
  - Update API RunEnterpriseVocAnalysis: add request parameters apiKey.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud_quanmiaolightapp20240801
3
- Version: 2.7.2
3
+ Version: 2.8.1
4
4
  Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -927,6 +927,122 @@ class Client(OpenApiClient):
927
927
  headers = {}
928
928
  return await self.get_video_analysis_task_with_options_async(workspace_id, request, headers, runtime)
929
929
 
930
+ def list_analysis_tag_detail_by_task_id_with_options(
931
+ self,
932
+ workspace_id: str,
933
+ request: quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdRequest,
934
+ headers: Dict[str, str],
935
+ runtime: util_models.RuntimeOptions,
936
+ ) -> quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdResponse:
937
+ """
938
+ @summary 获取挖掘分析结果明细列表
939
+
940
+ @param request: ListAnalysisTagDetailByTaskIdRequest
941
+ @param headers: map
942
+ @param runtime: runtime options for this request RuntimeOptions
943
+ @return: ListAnalysisTagDetailByTaskIdResponse
944
+ """
945
+ UtilClient.validate_model(request)
946
+ query = {}
947
+ if not UtilClient.is_unset(request.max_results):
948
+ query['maxResults'] = request.max_results
949
+ if not UtilClient.is_unset(request.next_token):
950
+ query['nextToken'] = request.next_token
951
+ if not UtilClient.is_unset(request.task_id):
952
+ query['taskId'] = request.task_id
953
+ req = open_api_models.OpenApiRequest(
954
+ headers=headers,
955
+ query=OpenApiUtilClient.query(query)
956
+ )
957
+ params = open_api_models.Params(
958
+ action='ListAnalysisTagDetailByTaskId',
959
+ version='2024-08-01',
960
+ protocol='HTTPS',
961
+ pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/listAnalysisTagDetailByTaskId',
962
+ method='GET',
963
+ auth_type='AK',
964
+ style='ROA',
965
+ req_body_type='json',
966
+ body_type='json'
967
+ )
968
+ return TeaCore.from_map(
969
+ quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdResponse(),
970
+ self.call_api(params, req, runtime)
971
+ )
972
+
973
+ async def list_analysis_tag_detail_by_task_id_with_options_async(
974
+ self,
975
+ workspace_id: str,
976
+ request: quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdRequest,
977
+ headers: Dict[str, str],
978
+ runtime: util_models.RuntimeOptions,
979
+ ) -> quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdResponse:
980
+ """
981
+ @summary 获取挖掘分析结果明细列表
982
+
983
+ @param request: ListAnalysisTagDetailByTaskIdRequest
984
+ @param headers: map
985
+ @param runtime: runtime options for this request RuntimeOptions
986
+ @return: ListAnalysisTagDetailByTaskIdResponse
987
+ """
988
+ UtilClient.validate_model(request)
989
+ query = {}
990
+ if not UtilClient.is_unset(request.max_results):
991
+ query['maxResults'] = request.max_results
992
+ if not UtilClient.is_unset(request.next_token):
993
+ query['nextToken'] = request.next_token
994
+ if not UtilClient.is_unset(request.task_id):
995
+ query['taskId'] = request.task_id
996
+ req = open_api_models.OpenApiRequest(
997
+ headers=headers,
998
+ query=OpenApiUtilClient.query(query)
999
+ )
1000
+ params = open_api_models.Params(
1001
+ action='ListAnalysisTagDetailByTaskId',
1002
+ version='2024-08-01',
1003
+ protocol='HTTPS',
1004
+ pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/listAnalysisTagDetailByTaskId',
1005
+ method='GET',
1006
+ auth_type='AK',
1007
+ style='ROA',
1008
+ req_body_type='json',
1009
+ body_type='json'
1010
+ )
1011
+ return TeaCore.from_map(
1012
+ quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdResponse(),
1013
+ await self.call_api_async(params, req, runtime)
1014
+ )
1015
+
1016
+ def list_analysis_tag_detail_by_task_id(
1017
+ self,
1018
+ workspace_id: str,
1019
+ request: quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdRequest,
1020
+ ) -> quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdResponse:
1021
+ """
1022
+ @summary 获取挖掘分析结果明细列表
1023
+
1024
+ @param request: ListAnalysisTagDetailByTaskIdRequest
1025
+ @return: ListAnalysisTagDetailByTaskIdResponse
1026
+ """
1027
+ runtime = util_models.RuntimeOptions()
1028
+ headers = {}
1029
+ return self.list_analysis_tag_detail_by_task_id_with_options(workspace_id, request, headers, runtime)
1030
+
1031
+ async def list_analysis_tag_detail_by_task_id_async(
1032
+ self,
1033
+ workspace_id: str,
1034
+ request: quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdRequest,
1035
+ ) -> quan_miao_light_app_20240801_models.ListAnalysisTagDetailByTaskIdResponse:
1036
+ """
1037
+ @summary 获取挖掘分析结果明细列表
1038
+
1039
+ @param request: ListAnalysisTagDetailByTaskIdRequest
1040
+ @return: ListAnalysisTagDetailByTaskIdResponse
1041
+ """
1042
+ runtime = util_models.RuntimeOptions()
1043
+ headers = {}
1044
+ return await self.list_analysis_tag_detail_by_task_id_with_options_async(workspace_id, request, headers, runtime)
1045
+
930
1046
  def list_hot_topic_summaries_with_options(
931
1047
  self,
932
1048
  workspace_id: str,
@@ -2689,6 +2805,8 @@ class Client(OpenApiClient):
2689
2805
  request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
2690
2806
  if not UtilClient.is_unset(tmp_req.text_process_tasks):
2691
2807
  request.text_process_tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.text_process_tasks, 'textProcessTasks', 'json')
2808
+ if not UtilClient.is_unset(tmp_req.video_caption_info):
2809
+ request.video_caption_info_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_caption_info, 'videoCaptionInfo', 'json')
2692
2810
  if not UtilClient.is_unset(tmp_req.video_roles):
2693
2811
  request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'videoRoles', 'json')
2694
2812
  body = {}
@@ -2718,6 +2836,8 @@ class Client(OpenApiClient):
2718
2836
  body['taskId'] = request.task_id
2719
2837
  if not UtilClient.is_unset(request.text_process_tasks_shrink):
2720
2838
  body['textProcessTasks'] = request.text_process_tasks_shrink
2839
+ if not UtilClient.is_unset(request.video_caption_info_shrink):
2840
+ body['videoCaptionInfo'] = request.video_caption_info_shrink
2721
2841
  if not UtilClient.is_unset(request.video_extra_info):
2722
2842
  body['videoExtraInfo'] = request.video_extra_info
2723
2843
  if not UtilClient.is_unset(request.video_model_custom_prompt_template):
@@ -2776,6 +2896,8 @@ class Client(OpenApiClient):
2776
2896
  request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
2777
2897
  if not UtilClient.is_unset(tmp_req.text_process_tasks):
2778
2898
  request.text_process_tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.text_process_tasks, 'textProcessTasks', 'json')
2899
+ if not UtilClient.is_unset(tmp_req.video_caption_info):
2900
+ request.video_caption_info_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_caption_info, 'videoCaptionInfo', 'json')
2779
2901
  if not UtilClient.is_unset(tmp_req.video_roles):
2780
2902
  request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'videoRoles', 'json')
2781
2903
  body = {}
@@ -2805,6 +2927,8 @@ class Client(OpenApiClient):
2805
2927
  body['taskId'] = request.task_id
2806
2928
  if not UtilClient.is_unset(request.text_process_tasks_shrink):
2807
2929
  body['textProcessTasks'] = request.text_process_tasks_shrink
2930
+ if not UtilClient.is_unset(request.video_caption_info_shrink):
2931
+ body['videoCaptionInfo'] = request.video_caption_info_shrink
2808
2932
  if not UtilClient.is_unset(request.video_extra_info):
2809
2933
  body['videoExtraInfo'] = request.video_extra_info
2810
2934
  if not UtilClient.is_unset(request.video_model_custom_prompt_template):
@@ -3205,6 +3329,8 @@ class Client(OpenApiClient):
3205
3329
  request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
3206
3330
  if not UtilClient.is_unset(tmp_req.text_process_tasks):
3207
3331
  request.text_process_tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.text_process_tasks, 'textProcessTasks', 'json')
3332
+ if not UtilClient.is_unset(tmp_req.video_caption_info):
3333
+ request.video_caption_info_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_caption_info, 'videoCaptionInfo', 'json')
3208
3334
  if not UtilClient.is_unset(tmp_req.video_roles):
3209
3335
  request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'videoRoles', 'json')
3210
3336
  body = {}
@@ -3232,6 +3358,8 @@ class Client(OpenApiClient):
3232
3358
  body['splitInterval'] = request.split_interval
3233
3359
  if not UtilClient.is_unset(request.text_process_tasks_shrink):
3234
3360
  body['textProcessTasks'] = request.text_process_tasks_shrink
3361
+ if not UtilClient.is_unset(request.video_caption_info_shrink):
3362
+ body['videoCaptionInfo'] = request.video_caption_info_shrink
3235
3363
  if not UtilClient.is_unset(request.video_extra_info):
3236
3364
  body['videoExtraInfo'] = request.video_extra_info
3237
3365
  if not UtilClient.is_unset(request.video_model_custom_prompt_template):
@@ -3290,6 +3418,8 @@ class Client(OpenApiClient):
3290
3418
  request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
3291
3419
  if not UtilClient.is_unset(tmp_req.text_process_tasks):
3292
3420
  request.text_process_tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.text_process_tasks, 'textProcessTasks', 'json')
3421
+ if not UtilClient.is_unset(tmp_req.video_caption_info):
3422
+ request.video_caption_info_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_caption_info, 'videoCaptionInfo', 'json')
3293
3423
  if not UtilClient.is_unset(tmp_req.video_roles):
3294
3424
  request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'videoRoles', 'json')
3295
3425
  body = {}
@@ -3317,6 +3447,8 @@ class Client(OpenApiClient):
3317
3447
  body['splitInterval'] = request.split_interval
3318
3448
  if not UtilClient.is_unset(request.text_process_tasks_shrink):
3319
3449
  body['textProcessTasks'] = request.text_process_tasks_shrink
3450
+ if not UtilClient.is_unset(request.video_caption_info_shrink):
3451
+ body['videoCaptionInfo'] = request.video_caption_info_shrink
3320
3452
  if not UtilClient.is_unset(request.video_extra_info):
3321
3453
  body['videoExtraInfo'] = request.video_extra_info
3322
3454
  if not UtilClient.is_unset(request.video_model_custom_prompt_template):
@@ -3486,3 +3618,115 @@ class Client(OpenApiClient):
3486
3618
  runtime = util_models.RuntimeOptions()
3487
3619
  headers = {}
3488
3620
  return await self.update_video_analysis_config_with_options_async(workspace_id, request, headers, runtime)
3621
+
3622
+ def update_video_analysis_task_with_options(
3623
+ self,
3624
+ workspace_id: str,
3625
+ request: quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskRequest,
3626
+ headers: Dict[str, str],
3627
+ runtime: util_models.RuntimeOptions,
3628
+ ) -> quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskResponse:
3629
+ """
3630
+ @summary 视频理解-修改任务状态
3631
+
3632
+ @param request: UpdateVideoAnalysisTaskRequest
3633
+ @param headers: map
3634
+ @param runtime: runtime options for this request RuntimeOptions
3635
+ @return: UpdateVideoAnalysisTaskResponse
3636
+ """
3637
+ UtilClient.validate_model(request)
3638
+ body = {}
3639
+ if not UtilClient.is_unset(request.task_id):
3640
+ body['taskId'] = request.task_id
3641
+ if not UtilClient.is_unset(request.task_status):
3642
+ body['taskStatus'] = request.task_status
3643
+ req = open_api_models.OpenApiRequest(
3644
+ headers=headers,
3645
+ body=OpenApiUtilClient.parse_to_map(body)
3646
+ )
3647
+ params = open_api_models.Params(
3648
+ action='UpdateVideoAnalysisTask',
3649
+ version='2024-08-01',
3650
+ protocol='HTTPS',
3651
+ pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/videoAnalysis/updateVideoAnalysisTask',
3652
+ method='PUT',
3653
+ auth_type='AK',
3654
+ style='ROA',
3655
+ req_body_type='formData',
3656
+ body_type='json'
3657
+ )
3658
+ return TeaCore.from_map(
3659
+ quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskResponse(),
3660
+ self.call_api(params, req, runtime)
3661
+ )
3662
+
3663
+ async def update_video_analysis_task_with_options_async(
3664
+ self,
3665
+ workspace_id: str,
3666
+ request: quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskRequest,
3667
+ headers: Dict[str, str],
3668
+ runtime: util_models.RuntimeOptions,
3669
+ ) -> quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskResponse:
3670
+ """
3671
+ @summary 视频理解-修改任务状态
3672
+
3673
+ @param request: UpdateVideoAnalysisTaskRequest
3674
+ @param headers: map
3675
+ @param runtime: runtime options for this request RuntimeOptions
3676
+ @return: UpdateVideoAnalysisTaskResponse
3677
+ """
3678
+ UtilClient.validate_model(request)
3679
+ body = {}
3680
+ if not UtilClient.is_unset(request.task_id):
3681
+ body['taskId'] = request.task_id
3682
+ if not UtilClient.is_unset(request.task_status):
3683
+ body['taskStatus'] = request.task_status
3684
+ req = open_api_models.OpenApiRequest(
3685
+ headers=headers,
3686
+ body=OpenApiUtilClient.parse_to_map(body)
3687
+ )
3688
+ params = open_api_models.Params(
3689
+ action='UpdateVideoAnalysisTask',
3690
+ version='2024-08-01',
3691
+ protocol='HTTPS',
3692
+ pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/videoAnalysis/updateVideoAnalysisTask',
3693
+ method='PUT',
3694
+ auth_type='AK',
3695
+ style='ROA',
3696
+ req_body_type='formData',
3697
+ body_type='json'
3698
+ )
3699
+ return TeaCore.from_map(
3700
+ quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskResponse(),
3701
+ await self.call_api_async(params, req, runtime)
3702
+ )
3703
+
3704
+ def update_video_analysis_task(
3705
+ self,
3706
+ workspace_id: str,
3707
+ request: quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskRequest,
3708
+ ) -> quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskResponse:
3709
+ """
3710
+ @summary 视频理解-修改任务状态
3711
+
3712
+ @param request: UpdateVideoAnalysisTaskRequest
3713
+ @return: UpdateVideoAnalysisTaskResponse
3714
+ """
3715
+ runtime = util_models.RuntimeOptions()
3716
+ headers = {}
3717
+ return self.update_video_analysis_task_with_options(workspace_id, request, headers, runtime)
3718
+
3719
+ async def update_video_analysis_task_async(
3720
+ self,
3721
+ workspace_id: str,
3722
+ request: quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskRequest,
3723
+ ) -> quan_miao_light_app_20240801_models.UpdateVideoAnalysisTaskResponse:
3724
+ """
3725
+ @summary 视频理解-修改任务状态
3726
+
3727
+ @param request: UpdateVideoAnalysisTaskRequest
3728
+ @return: UpdateVideoAnalysisTaskResponse
3729
+ """
3730
+ runtime = util_models.RuntimeOptions()
3731
+ headers = {}
3732
+ return await self.update_video_analysis_task_with_options_async(workspace_id, request, headers, runtime)
@@ -2038,12 +2038,14 @@ class GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoCaptionResultVideoCa
2038
2038
  self,
2039
2039
  end_time: int = None,
2040
2040
  end_time_format: str = None,
2041
+ speaker: str = None,
2041
2042
  start_time: int = None,
2042
2043
  start_time_format: str = None,
2043
2044
  text: str = None,
2044
2045
  ):
2045
2046
  self.end_time = end_time
2046
2047
  self.end_time_format = end_time_format
2048
+ self.speaker = speaker
2047
2049
  self.start_time = start_time
2048
2050
  self.start_time_format = start_time_format
2049
2051
  self.text = text
@@ -2061,6 +2063,8 @@ class GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoCaptionResultVideoCa
2061
2063
  result['endTime'] = self.end_time
2062
2064
  if self.end_time_format is not None:
2063
2065
  result['endTimeFormat'] = self.end_time_format
2066
+ if self.speaker is not None:
2067
+ result['speaker'] = self.speaker
2064
2068
  if self.start_time is not None:
2065
2069
  result['startTime'] = self.start_time
2066
2070
  if self.start_time_format is not None:
@@ -2075,6 +2079,8 @@ class GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoCaptionResultVideoCa
2075
2079
  self.end_time = m.get('endTime')
2076
2080
  if m.get('endTimeFormat') is not None:
2077
2081
  self.end_time_format = m.get('endTimeFormat')
2082
+ if m.get('speaker') is not None:
2083
+ self.speaker = m.get('speaker')
2078
2084
  if m.get('startTime') is not None:
2079
2085
  self.start_time = m.get('startTime')
2080
2086
  if m.get('startTimeFormat') is not None:
@@ -2973,6 +2979,246 @@ class GetVideoAnalysisTaskResponse(TeaModel):
2973
2979
  return self
2974
2980
 
2975
2981
 
2982
+ class ListAnalysisTagDetailByTaskIdRequest(TeaModel):
2983
+ def __init__(
2984
+ self,
2985
+ max_results: int = None,
2986
+ next_token: str = None,
2987
+ task_id: str = None,
2988
+ ):
2989
+ self.max_results = max_results
2990
+ self.next_token = next_token
2991
+ # This parameter is required.
2992
+ self.task_id = task_id
2993
+
2994
+ def validate(self):
2995
+ pass
2996
+
2997
+ def to_map(self):
2998
+ _map = super().to_map()
2999
+ if _map is not None:
3000
+ return _map
3001
+
3002
+ result = dict()
3003
+ if self.max_results is not None:
3004
+ result['maxResults'] = self.max_results
3005
+ if self.next_token is not None:
3006
+ result['nextToken'] = self.next_token
3007
+ if self.task_id is not None:
3008
+ result['taskId'] = self.task_id
3009
+ return result
3010
+
3011
+ def from_map(self, m: dict = None):
3012
+ m = m or dict()
3013
+ if m.get('maxResults') is not None:
3014
+ self.max_results = m.get('maxResults')
3015
+ if m.get('nextToken') is not None:
3016
+ self.next_token = m.get('nextToken')
3017
+ if m.get('taskId') is not None:
3018
+ self.task_id = m.get('taskId')
3019
+ return self
3020
+
3021
+
3022
+ class ListAnalysisTagDetailByTaskIdResponseBodyDataContentTags(TeaModel):
3023
+ def __init__(
3024
+ self,
3025
+ tag_name: str = None,
3026
+ tags: List[str] = None,
3027
+ ):
3028
+ self.tag_name = tag_name
3029
+ self.tags = tags
3030
+
3031
+ def validate(self):
3032
+ pass
3033
+
3034
+ def to_map(self):
3035
+ _map = super().to_map()
3036
+ if _map is not None:
3037
+ return _map
3038
+
3039
+ result = dict()
3040
+ if self.tag_name is not None:
3041
+ result['tagName'] = self.tag_name
3042
+ if self.tags is not None:
3043
+ result['tags'] = self.tags
3044
+ return result
3045
+
3046
+ def from_map(self, m: dict = None):
3047
+ m = m or dict()
3048
+ if m.get('tagName') is not None:
3049
+ self.tag_name = m.get('tagName')
3050
+ if m.get('tags') is not None:
3051
+ self.tags = m.get('tags')
3052
+ return self
3053
+
3054
+
3055
+ class ListAnalysisTagDetailByTaskIdResponseBodyData(TeaModel):
3056
+ def __init__(
3057
+ self,
3058
+ content: str = None,
3059
+ content_tags: List[ListAnalysisTagDetailByTaskIdResponseBodyDataContentTags] = None,
3060
+ origin_response: str = None,
3061
+ ):
3062
+ self.content = content
3063
+ self.content_tags = content_tags
3064
+ self.origin_response = origin_response
3065
+
3066
+ def validate(self):
3067
+ if self.content_tags:
3068
+ for k in self.content_tags:
3069
+ if k:
3070
+ k.validate()
3071
+
3072
+ def to_map(self):
3073
+ _map = super().to_map()
3074
+ if _map is not None:
3075
+ return _map
3076
+
3077
+ result = dict()
3078
+ if self.content is not None:
3079
+ result['content'] = self.content
3080
+ result['contentTags'] = []
3081
+ if self.content_tags is not None:
3082
+ for k in self.content_tags:
3083
+ result['contentTags'].append(k.to_map() if k else None)
3084
+ if self.origin_response is not None:
3085
+ result['originResponse'] = self.origin_response
3086
+ return result
3087
+
3088
+ def from_map(self, m: dict = None):
3089
+ m = m or dict()
3090
+ if m.get('content') is not None:
3091
+ self.content = m.get('content')
3092
+ self.content_tags = []
3093
+ if m.get('contentTags') is not None:
3094
+ for k in m.get('contentTags'):
3095
+ temp_model = ListAnalysisTagDetailByTaskIdResponseBodyDataContentTags()
3096
+ self.content_tags.append(temp_model.from_map(k))
3097
+ if m.get('originResponse') is not None:
3098
+ self.origin_response = m.get('originResponse')
3099
+ return self
3100
+
3101
+
3102
+ class ListAnalysisTagDetailByTaskIdResponseBody(TeaModel):
3103
+ def __init__(
3104
+ self,
3105
+ code: str = None,
3106
+ data: List[ListAnalysisTagDetailByTaskIdResponseBodyData] = None,
3107
+ max_results: int = None,
3108
+ message: str = None,
3109
+ next_token: str = None,
3110
+ request_id: str = None,
3111
+ success: bool = None,
3112
+ total_count: int = None,
3113
+ ):
3114
+ self.code = code
3115
+ self.data = data
3116
+ self.max_results = max_results
3117
+ self.message = message
3118
+ # This parameter is required.
3119
+ self.next_token = next_token
3120
+ # Id of the request
3121
+ self.request_id = request_id
3122
+ self.success = success
3123
+ self.total_count = total_count
3124
+
3125
+ def validate(self):
3126
+ if self.data:
3127
+ for k in self.data:
3128
+ if k:
3129
+ k.validate()
3130
+
3131
+ def to_map(self):
3132
+ _map = super().to_map()
3133
+ if _map is not None:
3134
+ return _map
3135
+
3136
+ result = dict()
3137
+ if self.code is not None:
3138
+ result['code'] = self.code
3139
+ result['data'] = []
3140
+ if self.data is not None:
3141
+ for k in self.data:
3142
+ result['data'].append(k.to_map() if k else None)
3143
+ if self.max_results is not None:
3144
+ result['maxResults'] = self.max_results
3145
+ if self.message is not None:
3146
+ result['message'] = self.message
3147
+ if self.next_token is not None:
3148
+ result['nextToken'] = self.next_token
3149
+ if self.request_id is not None:
3150
+ result['requestId'] = self.request_id
3151
+ if self.success is not None:
3152
+ result['success'] = self.success
3153
+ if self.total_count is not None:
3154
+ result['totalCount'] = self.total_count
3155
+ return result
3156
+
3157
+ def from_map(self, m: dict = None):
3158
+ m = m or dict()
3159
+ if m.get('code') is not None:
3160
+ self.code = m.get('code')
3161
+ self.data = []
3162
+ if m.get('data') is not None:
3163
+ for k in m.get('data'):
3164
+ temp_model = ListAnalysisTagDetailByTaskIdResponseBodyData()
3165
+ self.data.append(temp_model.from_map(k))
3166
+ if m.get('maxResults') is not None:
3167
+ self.max_results = m.get('maxResults')
3168
+ if m.get('message') is not None:
3169
+ self.message = m.get('message')
3170
+ if m.get('nextToken') is not None:
3171
+ self.next_token = m.get('nextToken')
3172
+ if m.get('requestId') is not None:
3173
+ self.request_id = m.get('requestId')
3174
+ if m.get('success') is not None:
3175
+ self.success = m.get('success')
3176
+ if m.get('totalCount') is not None:
3177
+ self.total_count = m.get('totalCount')
3178
+ return self
3179
+
3180
+
3181
+ class ListAnalysisTagDetailByTaskIdResponse(TeaModel):
3182
+ def __init__(
3183
+ self,
3184
+ headers: Dict[str, str] = None,
3185
+ status_code: int = None,
3186
+ body: ListAnalysisTagDetailByTaskIdResponseBody = None,
3187
+ ):
3188
+ self.headers = headers
3189
+ self.status_code = status_code
3190
+ self.body = body
3191
+
3192
+ def validate(self):
3193
+ if self.body:
3194
+ self.body.validate()
3195
+
3196
+ def to_map(self):
3197
+ _map = super().to_map()
3198
+ if _map is not None:
3199
+ return _map
3200
+
3201
+ result = dict()
3202
+ if self.headers is not None:
3203
+ result['headers'] = self.headers
3204
+ if self.status_code is not None:
3205
+ result['statusCode'] = self.status_code
3206
+ if self.body is not None:
3207
+ result['body'] = self.body.to_map()
3208
+ return result
3209
+
3210
+ def from_map(self, m: dict = None):
3211
+ m = m or dict()
3212
+ if m.get('headers') is not None:
3213
+ self.headers = m.get('headers')
3214
+ if m.get('statusCode') is not None:
3215
+ self.status_code = m.get('statusCode')
3216
+ if m.get('body') is not None:
3217
+ temp_model = ListAnalysisTagDetailByTaskIdResponseBody()
3218
+ self.body = temp_model.from_map(m['body'])
3219
+ return self
3220
+
3221
+
2976
3222
  class ListHotTopicSummariesRequest(TeaModel):
2977
3223
  def __init__(
2978
3224
  self,
@@ -8403,6 +8649,92 @@ class RunVideoAnalysisRequestTextProcessTasks(TeaModel):
8403
8649
  return self
8404
8650
 
8405
8651
 
8652
+ class RunVideoAnalysisRequestVideoCaptionInfoVideoCaptions(TeaModel):
8653
+ def __init__(
8654
+ self,
8655
+ end_time: int = None,
8656
+ speaker: str = None,
8657
+ start_time: int = None,
8658
+ text: str = None,
8659
+ ):
8660
+ self.end_time = end_time
8661
+ self.speaker = speaker
8662
+ self.start_time = start_time
8663
+ self.text = text
8664
+
8665
+ def validate(self):
8666
+ pass
8667
+
8668
+ def to_map(self):
8669
+ _map = super().to_map()
8670
+ if _map is not None:
8671
+ return _map
8672
+
8673
+ result = dict()
8674
+ if self.end_time is not None:
8675
+ result['endTime'] = self.end_time
8676
+ if self.speaker is not None:
8677
+ result['speaker'] = self.speaker
8678
+ if self.start_time is not None:
8679
+ result['startTime'] = self.start_time
8680
+ if self.text is not None:
8681
+ result['text'] = self.text
8682
+ return result
8683
+
8684
+ def from_map(self, m: dict = None):
8685
+ m = m or dict()
8686
+ if m.get('endTime') is not None:
8687
+ self.end_time = m.get('endTime')
8688
+ if m.get('speaker') is not None:
8689
+ self.speaker = m.get('speaker')
8690
+ if m.get('startTime') is not None:
8691
+ self.start_time = m.get('startTime')
8692
+ if m.get('text') is not None:
8693
+ self.text = m.get('text')
8694
+ return self
8695
+
8696
+
8697
+ class RunVideoAnalysisRequestVideoCaptionInfo(TeaModel):
8698
+ def __init__(
8699
+ self,
8700
+ video_caption_file_url: str = None,
8701
+ video_captions: List[RunVideoAnalysisRequestVideoCaptionInfoVideoCaptions] = None,
8702
+ ):
8703
+ self.video_caption_file_url = video_caption_file_url
8704
+ self.video_captions = video_captions
8705
+
8706
+ def validate(self):
8707
+ if self.video_captions:
8708
+ for k in self.video_captions:
8709
+ if k:
8710
+ k.validate()
8711
+
8712
+ def to_map(self):
8713
+ _map = super().to_map()
8714
+ if _map is not None:
8715
+ return _map
8716
+
8717
+ result = dict()
8718
+ if self.video_caption_file_url is not None:
8719
+ result['videoCaptionFileUrl'] = self.video_caption_file_url
8720
+ result['videoCaptions'] = []
8721
+ if self.video_captions is not None:
8722
+ for k in self.video_captions:
8723
+ result['videoCaptions'].append(k.to_map() if k else None)
8724
+ return result
8725
+
8726
+ def from_map(self, m: dict = None):
8727
+ m = m or dict()
8728
+ if m.get('videoCaptionFileUrl') is not None:
8729
+ self.video_caption_file_url = m.get('videoCaptionFileUrl')
8730
+ self.video_captions = []
8731
+ if m.get('videoCaptions') is not None:
8732
+ for k in m.get('videoCaptions'):
8733
+ temp_model = RunVideoAnalysisRequestVideoCaptionInfoVideoCaptions()
8734
+ self.video_captions.append(temp_model.from_map(k))
8735
+ return self
8736
+
8737
+
8406
8738
  class RunVideoAnalysisRequestVideoRoles(TeaModel):
8407
8739
  def __init__(
8408
8740
  self,
@@ -8458,6 +8790,7 @@ class RunVideoAnalysisRequest(TeaModel):
8458
8790
  split_interval: int = None,
8459
8791
  task_id: str = None,
8460
8792
  text_process_tasks: List[RunVideoAnalysisRequestTextProcessTasks] = None,
8793
+ video_caption_info: RunVideoAnalysisRequestVideoCaptionInfo = None,
8461
8794
  video_extra_info: str = None,
8462
8795
  video_model_custom_prompt_template: str = None,
8463
8796
  video_model_id: str = None,
@@ -8478,6 +8811,7 @@ class RunVideoAnalysisRequest(TeaModel):
8478
8811
  self.split_interval = split_interval
8479
8812
  self.task_id = task_id
8480
8813
  self.text_process_tasks = text_process_tasks
8814
+ self.video_caption_info = video_caption_info
8481
8815
  self.video_extra_info = video_extra_info
8482
8816
  self.video_model_custom_prompt_template = video_model_custom_prompt_template
8483
8817
  self.video_model_id = video_model_id
@@ -8492,6 +8826,8 @@ class RunVideoAnalysisRequest(TeaModel):
8492
8826
  for k in self.text_process_tasks:
8493
8827
  if k:
8494
8828
  k.validate()
8829
+ if self.video_caption_info:
8830
+ self.video_caption_info.validate()
8495
8831
  if self.video_roles:
8496
8832
  for k in self.video_roles:
8497
8833
  if k:
@@ -8531,6 +8867,8 @@ class RunVideoAnalysisRequest(TeaModel):
8531
8867
  if self.text_process_tasks is not None:
8532
8868
  for k in self.text_process_tasks:
8533
8869
  result['textProcessTasks'].append(k.to_map() if k else None)
8870
+ if self.video_caption_info is not None:
8871
+ result['videoCaptionInfo'] = self.video_caption_info.to_map()
8534
8872
  if self.video_extra_info is not None:
8535
8873
  result['videoExtraInfo'] = self.video_extra_info
8536
8874
  if self.video_model_custom_prompt_template is not None:
@@ -8579,6 +8917,9 @@ class RunVideoAnalysisRequest(TeaModel):
8579
8917
  for k in m.get('textProcessTasks'):
8580
8918
  temp_model = RunVideoAnalysisRequestTextProcessTasks()
8581
8919
  self.text_process_tasks.append(temp_model.from_map(k))
8920
+ if m.get('videoCaptionInfo') is not None:
8921
+ temp_model = RunVideoAnalysisRequestVideoCaptionInfo()
8922
+ self.video_caption_info = temp_model.from_map(m['videoCaptionInfo'])
8582
8923
  if m.get('videoExtraInfo') is not None:
8583
8924
  self.video_extra_info = m.get('videoExtraInfo')
8584
8925
  if m.get('videoModelCustomPromptTemplate') is not None:
@@ -8613,6 +8954,7 @@ class RunVideoAnalysisShrinkRequest(TeaModel):
8613
8954
  split_interval: int = None,
8614
8955
  task_id: str = None,
8615
8956
  text_process_tasks_shrink: str = None,
8957
+ video_caption_info_shrink: str = None,
8616
8958
  video_extra_info: str = None,
8617
8959
  video_model_custom_prompt_template: str = None,
8618
8960
  video_model_id: str = None,
@@ -8633,6 +8975,7 @@ class RunVideoAnalysisShrinkRequest(TeaModel):
8633
8975
  self.split_interval = split_interval
8634
8976
  self.task_id = task_id
8635
8977
  self.text_process_tasks_shrink = text_process_tasks_shrink
8978
+ self.video_caption_info_shrink = video_caption_info_shrink
8636
8979
  self.video_extra_info = video_extra_info
8637
8980
  self.video_model_custom_prompt_template = video_model_custom_prompt_template
8638
8981
  self.video_model_id = video_model_id
@@ -8675,6 +9018,8 @@ class RunVideoAnalysisShrinkRequest(TeaModel):
8675
9018
  result['taskId'] = self.task_id
8676
9019
  if self.text_process_tasks_shrink is not None:
8677
9020
  result['textProcessTasks'] = self.text_process_tasks_shrink
9021
+ if self.video_caption_info_shrink is not None:
9022
+ result['videoCaptionInfo'] = self.video_caption_info_shrink
8678
9023
  if self.video_extra_info is not None:
8679
9024
  result['videoExtraInfo'] = self.video_extra_info
8680
9025
  if self.video_model_custom_prompt_template is not None:
@@ -8717,6 +9062,8 @@ class RunVideoAnalysisShrinkRequest(TeaModel):
8717
9062
  self.task_id = m.get('taskId')
8718
9063
  if m.get('textProcessTasks') is not None:
8719
9064
  self.text_process_tasks_shrink = m.get('textProcessTasks')
9065
+ if m.get('videoCaptionInfo') is not None:
9066
+ self.video_caption_info_shrink = m.get('videoCaptionInfo')
8720
9067
  if m.get('videoExtraInfo') is not None:
8721
9068
  self.video_extra_info = m.get('videoExtraInfo')
8722
9069
  if m.get('videoModelCustomPromptTemplate') is not None:
@@ -8940,12 +9287,14 @@ class RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResultVideoCaptions(T
8940
9287
  self,
8941
9288
  end_time: int = None,
8942
9289
  end_time_format: str = None,
9290
+ speaker: str = None,
8943
9291
  start_time: int = None,
8944
9292
  start_time_format: str = None,
8945
9293
  text: str = None,
8946
9294
  ):
8947
9295
  self.end_time = end_time
8948
9296
  self.end_time_format = end_time_format
9297
+ self.speaker = speaker
8949
9298
  self.start_time = start_time
8950
9299
  self.start_time_format = start_time_format
8951
9300
  self.text = text
@@ -8963,6 +9312,8 @@ class RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResultVideoCaptions(T
8963
9312
  result['endTime'] = self.end_time
8964
9313
  if self.end_time_format is not None:
8965
9314
  result['endTimeFormat'] = self.end_time_format
9315
+ if self.speaker is not None:
9316
+ result['speaker'] = self.speaker
8966
9317
  if self.start_time is not None:
8967
9318
  result['startTime'] = self.start_time
8968
9319
  if self.start_time_format is not None:
@@ -8977,6 +9328,8 @@ class RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResultVideoCaptions(T
8977
9328
  self.end_time = m.get('endTime')
8978
9329
  if m.get('endTimeFormat') is not None:
8979
9330
  self.end_time_format = m.get('endTimeFormat')
9331
+ if m.get('speaker') is not None:
9332
+ self.speaker = m.get('speaker')
8980
9333
  if m.get('startTime') is not None:
8981
9334
  self.start_time = m.get('startTime')
8982
9335
  if m.get('startTimeFormat') is not None:
@@ -10727,6 +11080,92 @@ class SubmitVideoAnalysisTaskRequestTextProcessTasks(TeaModel):
10727
11080
  return self
10728
11081
 
10729
11082
 
11083
+ class SubmitVideoAnalysisTaskRequestVideoCaptionInfoVideoCaptions(TeaModel):
11084
+ def __init__(
11085
+ self,
11086
+ end_time: int = None,
11087
+ speaker: str = None,
11088
+ start_time: int = None,
11089
+ text: str = None,
11090
+ ):
11091
+ self.end_time = end_time
11092
+ self.speaker = speaker
11093
+ self.start_time = start_time
11094
+ self.text = text
11095
+
11096
+ def validate(self):
11097
+ pass
11098
+
11099
+ def to_map(self):
11100
+ _map = super().to_map()
11101
+ if _map is not None:
11102
+ return _map
11103
+
11104
+ result = dict()
11105
+ if self.end_time is not None:
11106
+ result['endTime'] = self.end_time
11107
+ if self.speaker is not None:
11108
+ result['speaker'] = self.speaker
11109
+ if self.start_time is not None:
11110
+ result['startTime'] = self.start_time
11111
+ if self.text is not None:
11112
+ result['text'] = self.text
11113
+ return result
11114
+
11115
+ def from_map(self, m: dict = None):
11116
+ m = m or dict()
11117
+ if m.get('endTime') is not None:
11118
+ self.end_time = m.get('endTime')
11119
+ if m.get('speaker') is not None:
11120
+ self.speaker = m.get('speaker')
11121
+ if m.get('startTime') is not None:
11122
+ self.start_time = m.get('startTime')
11123
+ if m.get('text') is not None:
11124
+ self.text = m.get('text')
11125
+ return self
11126
+
11127
+
11128
+ class SubmitVideoAnalysisTaskRequestVideoCaptionInfo(TeaModel):
11129
+ def __init__(
11130
+ self,
11131
+ video_caption_file_url: str = None,
11132
+ video_captions: List[SubmitVideoAnalysisTaskRequestVideoCaptionInfoVideoCaptions] = None,
11133
+ ):
11134
+ self.video_caption_file_url = video_caption_file_url
11135
+ self.video_captions = video_captions
11136
+
11137
+ def validate(self):
11138
+ if self.video_captions:
11139
+ for k in self.video_captions:
11140
+ if k:
11141
+ k.validate()
11142
+
11143
+ def to_map(self):
11144
+ _map = super().to_map()
11145
+ if _map is not None:
11146
+ return _map
11147
+
11148
+ result = dict()
11149
+ if self.video_caption_file_url is not None:
11150
+ result['videoCaptionFileUrl'] = self.video_caption_file_url
11151
+ result['videoCaptions'] = []
11152
+ if self.video_captions is not None:
11153
+ for k in self.video_captions:
11154
+ result['videoCaptions'].append(k.to_map() if k else None)
11155
+ return result
11156
+
11157
+ def from_map(self, m: dict = None):
11158
+ m = m or dict()
11159
+ if m.get('videoCaptionFileUrl') is not None:
11160
+ self.video_caption_file_url = m.get('videoCaptionFileUrl')
11161
+ self.video_captions = []
11162
+ if m.get('videoCaptions') is not None:
11163
+ for k in m.get('videoCaptions'):
11164
+ temp_model = SubmitVideoAnalysisTaskRequestVideoCaptionInfoVideoCaptions()
11165
+ self.video_captions.append(temp_model.from_map(k))
11166
+ return self
11167
+
11168
+
10730
11169
  class SubmitVideoAnalysisTaskRequestVideoRoles(TeaModel):
10731
11170
  def __init__(
10732
11171
  self,
@@ -10781,6 +11220,7 @@ class SubmitVideoAnalysisTaskRequest(TeaModel):
10781
11220
  snapshot_interval: float = None,
10782
11221
  split_interval: int = None,
10783
11222
  text_process_tasks: List[SubmitVideoAnalysisTaskRequestTextProcessTasks] = None,
11223
+ video_caption_info: SubmitVideoAnalysisTaskRequestVideoCaptionInfo = None,
10784
11224
  video_extra_info: str = None,
10785
11225
  video_model_custom_prompt_template: str = None,
10786
11226
  video_model_id: str = None,
@@ -10800,6 +11240,7 @@ class SubmitVideoAnalysisTaskRequest(TeaModel):
10800
11240
  self.snapshot_interval = snapshot_interval
10801
11241
  self.split_interval = split_interval
10802
11242
  self.text_process_tasks = text_process_tasks
11243
+ self.video_caption_info = video_caption_info
10803
11244
  self.video_extra_info = video_extra_info
10804
11245
  self.video_model_custom_prompt_template = video_model_custom_prompt_template
10805
11246
  self.video_model_id = video_model_id
@@ -10815,6 +11256,8 @@ class SubmitVideoAnalysisTaskRequest(TeaModel):
10815
11256
  for k in self.text_process_tasks:
10816
11257
  if k:
10817
11258
  k.validate()
11259
+ if self.video_caption_info:
11260
+ self.video_caption_info.validate()
10818
11261
  if self.video_roles:
10819
11262
  for k in self.video_roles:
10820
11263
  if k:
@@ -10852,6 +11295,8 @@ class SubmitVideoAnalysisTaskRequest(TeaModel):
10852
11295
  if self.text_process_tasks is not None:
10853
11296
  for k in self.text_process_tasks:
10854
11297
  result['textProcessTasks'].append(k.to_map() if k else None)
11298
+ if self.video_caption_info is not None:
11299
+ result['videoCaptionInfo'] = self.video_caption_info.to_map()
10855
11300
  if self.video_extra_info is not None:
10856
11301
  result['videoExtraInfo'] = self.video_extra_info
10857
11302
  if self.video_model_custom_prompt_template is not None:
@@ -10898,6 +11343,9 @@ class SubmitVideoAnalysisTaskRequest(TeaModel):
10898
11343
  for k in m.get('textProcessTasks'):
10899
11344
  temp_model = SubmitVideoAnalysisTaskRequestTextProcessTasks()
10900
11345
  self.text_process_tasks.append(temp_model.from_map(k))
11346
+ if m.get('videoCaptionInfo') is not None:
11347
+ temp_model = SubmitVideoAnalysisTaskRequestVideoCaptionInfo()
11348
+ self.video_caption_info = temp_model.from_map(m['videoCaptionInfo'])
10901
11349
  if m.get('videoExtraInfo') is not None:
10902
11350
  self.video_extra_info = m.get('videoExtraInfo')
10903
11351
  if m.get('videoModelCustomPromptTemplate') is not None:
@@ -10931,6 +11379,7 @@ class SubmitVideoAnalysisTaskShrinkRequest(TeaModel):
10931
11379
  snapshot_interval: float = None,
10932
11380
  split_interval: int = None,
10933
11381
  text_process_tasks_shrink: str = None,
11382
+ video_caption_info_shrink: str = None,
10934
11383
  video_extra_info: str = None,
10935
11384
  video_model_custom_prompt_template: str = None,
10936
11385
  video_model_id: str = None,
@@ -10950,6 +11399,7 @@ class SubmitVideoAnalysisTaskShrinkRequest(TeaModel):
10950
11399
  self.snapshot_interval = snapshot_interval
10951
11400
  self.split_interval = split_interval
10952
11401
  self.text_process_tasks_shrink = text_process_tasks_shrink
11402
+ self.video_caption_info_shrink = video_caption_info_shrink
10953
11403
  self.video_extra_info = video_extra_info
10954
11404
  self.video_model_custom_prompt_template = video_model_custom_prompt_template
10955
11405
  self.video_model_id = video_model_id
@@ -10991,6 +11441,8 @@ class SubmitVideoAnalysisTaskShrinkRequest(TeaModel):
10991
11441
  result['splitInterval'] = self.split_interval
10992
11442
  if self.text_process_tasks_shrink is not None:
10993
11443
  result['textProcessTasks'] = self.text_process_tasks_shrink
11444
+ if self.video_caption_info_shrink is not None:
11445
+ result['videoCaptionInfo'] = self.video_caption_info_shrink
10994
11446
  if self.video_extra_info is not None:
10995
11447
  result['videoExtraInfo'] = self.video_extra_info
10996
11448
  if self.video_model_custom_prompt_template is not None:
@@ -11031,6 +11483,8 @@ class SubmitVideoAnalysisTaskShrinkRequest(TeaModel):
11031
11483
  self.split_interval = m.get('splitInterval')
11032
11484
  if m.get('textProcessTasks') is not None:
11033
11485
  self.text_process_tasks_shrink = m.get('textProcessTasks')
11486
+ if m.get('videoCaptionInfo') is not None:
11487
+ self.video_caption_info_shrink = m.get('videoCaptionInfo')
11034
11488
  if m.get('videoExtraInfo') is not None:
11035
11489
  self.video_extra_info = m.get('videoExtraInfo')
11036
11490
  if m.get('videoModelCustomPromptTemplate') is not None:
@@ -11294,3 +11748,177 @@ class UpdateVideoAnalysisConfigResponse(TeaModel):
11294
11748
  return self
11295
11749
 
11296
11750
 
11751
+ class UpdateVideoAnalysisTaskRequest(TeaModel):
11752
+ def __init__(
11753
+ self,
11754
+ task_id: str = None,
11755
+ task_status: str = None,
11756
+ ):
11757
+ # This parameter is required.
11758
+ self.task_id = task_id
11759
+ # This parameter is required.
11760
+ self.task_status = task_status
11761
+
11762
+ def validate(self):
11763
+ pass
11764
+
11765
+ def to_map(self):
11766
+ _map = super().to_map()
11767
+ if _map is not None:
11768
+ return _map
11769
+
11770
+ result = dict()
11771
+ if self.task_id is not None:
11772
+ result['taskId'] = self.task_id
11773
+ if self.task_status is not None:
11774
+ result['taskStatus'] = self.task_status
11775
+ return result
11776
+
11777
+ def from_map(self, m: dict = None):
11778
+ m = m or dict()
11779
+ if m.get('taskId') is not None:
11780
+ self.task_id = m.get('taskId')
11781
+ if m.get('taskStatus') is not None:
11782
+ self.task_status = m.get('taskStatus')
11783
+ return self
11784
+
11785
+
11786
+ class UpdateVideoAnalysisTaskResponseBodyData(TeaModel):
11787
+ def __init__(
11788
+ self,
11789
+ task_error_message: str = None,
11790
+ task_id: str = None,
11791
+ task_status: str = None,
11792
+ ):
11793
+ self.task_error_message = task_error_message
11794
+ self.task_id = task_id
11795
+ self.task_status = task_status
11796
+
11797
+ def validate(self):
11798
+ pass
11799
+
11800
+ def to_map(self):
11801
+ _map = super().to_map()
11802
+ if _map is not None:
11803
+ return _map
11804
+
11805
+ result = dict()
11806
+ if self.task_error_message is not None:
11807
+ result['taskErrorMessage'] = self.task_error_message
11808
+ if self.task_id is not None:
11809
+ result['taskId'] = self.task_id
11810
+ if self.task_status is not None:
11811
+ result['taskStatus'] = self.task_status
11812
+ return result
11813
+
11814
+ def from_map(self, m: dict = None):
11815
+ m = m or dict()
11816
+ if m.get('taskErrorMessage') is not None:
11817
+ self.task_error_message = m.get('taskErrorMessage')
11818
+ if m.get('taskId') is not None:
11819
+ self.task_id = m.get('taskId')
11820
+ if m.get('taskStatus') is not None:
11821
+ self.task_status = m.get('taskStatus')
11822
+ return self
11823
+
11824
+
11825
+ class UpdateVideoAnalysisTaskResponseBody(TeaModel):
11826
+ def __init__(
11827
+ self,
11828
+ code: str = None,
11829
+ data: UpdateVideoAnalysisTaskResponseBodyData = None,
11830
+ http_status_code: int = None,
11831
+ message: str = None,
11832
+ request_id: str = None,
11833
+ success: bool = None,
11834
+ ):
11835
+ self.code = code
11836
+ self.data = data
11837
+ self.http_status_code = http_status_code
11838
+ self.message = message
11839
+ self.request_id = request_id
11840
+ self.success = success
11841
+
11842
+ def validate(self):
11843
+ if self.data:
11844
+ self.data.validate()
11845
+
11846
+ def to_map(self):
11847
+ _map = super().to_map()
11848
+ if _map is not None:
11849
+ return _map
11850
+
11851
+ result = dict()
11852
+ if self.code is not None:
11853
+ result['code'] = self.code
11854
+ if self.data is not None:
11855
+ result['data'] = self.data.to_map()
11856
+ if self.http_status_code is not None:
11857
+ result['httpStatusCode'] = self.http_status_code
11858
+ if self.message is not None:
11859
+ result['message'] = self.message
11860
+ if self.request_id is not None:
11861
+ result['requestId'] = self.request_id
11862
+ if self.success is not None:
11863
+ result['success'] = self.success
11864
+ return result
11865
+
11866
+ def from_map(self, m: dict = None):
11867
+ m = m or dict()
11868
+ if m.get('code') is not None:
11869
+ self.code = m.get('code')
11870
+ if m.get('data') is not None:
11871
+ temp_model = UpdateVideoAnalysisTaskResponseBodyData()
11872
+ self.data = temp_model.from_map(m['data'])
11873
+ if m.get('httpStatusCode') is not None:
11874
+ self.http_status_code = m.get('httpStatusCode')
11875
+ if m.get('message') is not None:
11876
+ self.message = m.get('message')
11877
+ if m.get('requestId') is not None:
11878
+ self.request_id = m.get('requestId')
11879
+ if m.get('success') is not None:
11880
+ self.success = m.get('success')
11881
+ return self
11882
+
11883
+
11884
+ class UpdateVideoAnalysisTaskResponse(TeaModel):
11885
+ def __init__(
11886
+ self,
11887
+ headers: Dict[str, str] = None,
11888
+ status_code: int = None,
11889
+ body: UpdateVideoAnalysisTaskResponseBody = None,
11890
+ ):
11891
+ self.headers = headers
11892
+ self.status_code = status_code
11893
+ self.body = body
11894
+
11895
+ def validate(self):
11896
+ if self.body:
11897
+ self.body.validate()
11898
+
11899
+ def to_map(self):
11900
+ _map = super().to_map()
11901
+ if _map is not None:
11902
+ return _map
11903
+
11904
+ result = dict()
11905
+ if self.headers is not None:
11906
+ result['headers'] = self.headers
11907
+ if self.status_code is not None:
11908
+ result['statusCode'] = self.status_code
11909
+ if self.body is not None:
11910
+ result['body'] = self.body.to_map()
11911
+ return result
11912
+
11913
+ def from_map(self, m: dict = None):
11914
+ m = m or dict()
11915
+ if m.get('headers') is not None:
11916
+ self.headers = m.get('headers')
11917
+ if m.get('statusCode') is not None:
11918
+ self.status_code = m.get('statusCode')
11919
+ if m.get('body') is not None:
11920
+ temp_model = UpdateVideoAnalysisTaskResponseBody()
11921
+ self.body = temp_model.from_map(m['body'])
11922
+ return self
11923
+
11924
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-quanmiaolightapp20240801
3
- Version: 2.7.2
3
+ Version: 2.8.1
4
4
  Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -1,4 +1,4 @@
1
1
  alibabacloud_endpoint_util<1.0.0,>=0.0.3
2
2
  alibabacloud_openapi_util<1.0.0,>=0.2.2
3
- alibabacloud_tea_openapi<1.0.0,>=0.3.14
3
+ alibabacloud_tea_openapi<1.0.0,>=0.3.15
4
4
  alibabacloud_tea_util<1.0.0,>=0.3.13
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
24
24
  """
25
25
  setup module for alibabacloud_quanmiaolightapp20240801.
26
26
 
27
- Created on 29/04/2025
27
+ Created on 20/05/2025
28
28
 
29
29
  @author: Alibaba Cloud SDK
30
30
  """
@@ -38,7 +38,7 @@ URL = "https://github.com/aliyun/alibabacloud-python-sdk"
38
38
  VERSION = __import__(PACKAGE).__version__
39
39
  REQUIRES = [
40
40
  "alibabacloud_tea_util>=0.3.13, <1.0.0",
41
- "alibabacloud_tea_openapi>=0.3.14, <1.0.0",
41
+ "alibabacloud_tea_openapi>=0.3.15, <1.0.0",
42
42
  "alibabacloud_openapi_util>=0.2.2, <1.0.0",
43
43
  "alibabacloud_endpoint_util>=0.0.3, <1.0.0"
44
44
  ]