alibabacloud-quanmiaolightapp20240801 2.13.1__py3-none-any.whl → 2.13.3__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.
Files changed (148) hide show
  1. alibabacloud_quanmiaolightapp20240801/__init__.py +1 -1
  2. alibabacloud_quanmiaolightapp20240801/client.py +4452 -3757
  3. alibabacloud_quanmiaolightapp20240801/models/__init__.py +691 -0
  4. alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_request.py +33 -0
  5. alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response.py +54 -0
  6. alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response_body.py +74 -0
  7. alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_request.py +52 -0
  8. alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_response.py +54 -0
  9. alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_response_body.py +66 -0
  10. alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_shrink_request.py +50 -0
  11. alibabacloud_quanmiaolightapp20240801/models/_generate_broadcast_news_request.py +34 -0
  12. alibabacloud_quanmiaolightapp20240801/models/_generate_broadcast_news_response.py +54 -0
  13. alibabacloud_quanmiaolightapp20240801/models/_generate_broadcast_news_response_body.py +303 -0
  14. alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_request.py +112 -0
  15. alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_response.py +54 -0
  16. alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_response_body.py +104 -0
  17. alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_shrink_request.py +66 -0
  18. alibabacloud_quanmiaolightapp20240801/models/_get_enterprise_voc_analysis_task_request.py +33 -0
  19. alibabacloud_quanmiaolightapp20240801/models/_get_enterprise_voc_analysis_task_response.py +54 -0
  20. alibabacloud_quanmiaolightapp20240801/models/_get_enterprise_voc_analysis_task_response_body.py +374 -0
  21. alibabacloud_quanmiaolightapp20240801/models/_get_essay_correction_task_request.py +33 -0
  22. alibabacloud_quanmiaolightapp20240801/models/_get_essay_correction_task_response.py +54 -0
  23. alibabacloud_quanmiaolightapp20240801/models/_get_essay_correction_task_response_body.py +174 -0
  24. alibabacloud_quanmiaolightapp20240801/models/_get_file_content_request.py +33 -0
  25. alibabacloud_quanmiaolightapp20240801/models/_get_file_content_response.py +54 -0
  26. alibabacloud_quanmiaolightapp20240801/models/_get_file_content_response_body.py +104 -0
  27. alibabacloud_quanmiaolightapp20240801/models/_get_tag_mining_analysis_task_request.py +33 -0
  28. alibabacloud_quanmiaolightapp20240801/models/_get_tag_mining_analysis_task_response.py +54 -0
  29. alibabacloud_quanmiaolightapp20240801/models/_get_tag_mining_analysis_task_response_body.py +347 -0
  30. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_config_response.py +54 -0
  31. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_config_response_body.py +104 -0
  32. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_task_request.py +34 -0
  33. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_task_response.py +54 -0
  34. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_task_response_body.py +1620 -0
  35. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_config_response.py +54 -0
  36. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_config_response_body.py +106 -0
  37. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_task_request.py +34 -0
  38. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_task_response.py +54 -0
  39. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_task_response_body.py +494 -0
  40. alibabacloud_quanmiaolightapp20240801/models/_hot_news_recommend_request.py +33 -0
  41. alibabacloud_quanmiaolightapp20240801/models/_hot_news_recommend_response.py +54 -0
  42. alibabacloud_quanmiaolightapp20240801/models/_hot_news_recommend_response_body.py +180 -0
  43. alibabacloud_quanmiaolightapp20240801/models/_list_analysis_tag_detail_by_task_id_request.py +50 -0
  44. alibabacloud_quanmiaolightapp20240801/models/_list_analysis_tag_detail_by_task_id_response.py +54 -0
  45. alibabacloud_quanmiaolightapp20240801/models/_list_analysis_tag_detail_by_task_id_response_body.py +196 -0
  46. alibabacloud_quanmiaolightapp20240801/models/_list_hot_topic_summaries_request.py +65 -0
  47. alibabacloud_quanmiaolightapp20240801/models/_list_hot_topic_summaries_response.py +54 -0
  48. alibabacloud_quanmiaolightapp20240801/models/_list_hot_topic_summaries_response_body.py +367 -0
  49. alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_request.py +203 -0
  50. alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_response.py +54 -0
  51. alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_response_body.py +331 -0
  52. alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_shrink_request.py +109 -0
  53. alibabacloud_quanmiaolightapp20240801/models/_run_essay_correction_request.py +81 -0
  54. alibabacloud_quanmiaolightapp20240801/models/_run_essay_correction_response.py +54 -0
  55. alibabacloud_quanmiaolightapp20240801/models/_run_essay_correction_response_body.py +241 -0
  56. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_request.py +264 -0
  57. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_response.py +54 -0
  58. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_response_body.py +636 -0
  59. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_shrink_request.py +121 -0
  60. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_request.py +100 -0
  61. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_response.py +54 -0
  62. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_response_body.py +241 -0
  63. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_shrink_request.py +52 -0
  64. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_request.py +59 -0
  65. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response.py +54 -0
  66. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response_body.py +232 -0
  67. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_shrink_request.py +57 -0
  68. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_request.py +89 -0
  69. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response.py +54 -0
  70. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response_body.py +248 -0
  71. alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_request.py +136 -0
  72. alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response.py +54 -0
  73. alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response_body.py +233 -0
  74. alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_shrink_request.py +90 -0
  75. alibabacloud_quanmiaolightapp20240801/models/_run_ocr_parse_request.py +49 -0
  76. alibabacloud_quanmiaolightapp20240801/models/_run_ocr_parse_response.py +54 -0
  77. alibabacloud_quanmiaolightapp20240801/models/_run_ocr_parse_response_body.py +233 -0
  78. alibabacloud_quanmiaolightapp20240801/models/_run_script_chat_request.py +42 -0
  79. alibabacloud_quanmiaolightapp20240801/models/_run_script_chat_response.py +54 -0
  80. alibabacloud_quanmiaolightapp20240801/models/_run_script_chat_response_body.py +248 -0
  81. alibabacloud_quanmiaolightapp20240801/models/_run_script_continue_request.py +50 -0
  82. alibabacloud_quanmiaolightapp20240801/models/_run_script_continue_response.py +54 -0
  83. alibabacloud_quanmiaolightapp20240801/models/_run_script_continue_response_body.py +248 -0
  84. alibabacloud_quanmiaolightapp20240801/models/_run_script_planning_request.py +82 -0
  85. alibabacloud_quanmiaolightapp20240801/models/_run_script_planning_response.py +54 -0
  86. alibabacloud_quanmiaolightapp20240801/models/_run_script_planning_response_body.py +248 -0
  87. alibabacloud_quanmiaolightapp20240801/models/_run_script_refine_request.py +33 -0
  88. alibabacloud_quanmiaolightapp20240801/models/_run_script_refine_response.py +54 -0
  89. alibabacloud_quanmiaolightapp20240801/models/_run_script_refine_response_body.py +290 -0
  90. alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_request.py +75 -0
  91. alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_response.py +54 -0
  92. alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_response_body.py +248 -0
  93. alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_shrink_request.py +73 -0
  94. alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_request.py +136 -0
  95. alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_response.py +54 -0
  96. alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_response_body.py +233 -0
  97. alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_shrink_request.py +90 -0
  98. alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_request.py +600 -0
  99. alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_response.py +54 -0
  100. alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_response_body.py +1668 -0
  101. alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_shrink_request.py +209 -0
  102. alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_request.py +142 -0
  103. alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_response.py +54 -0
  104. alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_response_body.py +363 -0
  105. alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_shrink_request.py +140 -0
  106. alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_request.py +247 -0
  107. alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_response.py +54 -0
  108. alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_response_body.py +104 -0
  109. alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_shrink_request.py +113 -0
  110. alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_request.py +167 -0
  111. alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_response.py +54 -0
  112. alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_response_body.py +103 -0
  113. alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_shrink_request.py +81 -0
  114. alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_request.py +143 -0
  115. alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_response.py +54 -0
  116. alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_response_body.py +104 -0
  117. alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_shrink_request.py +97 -0
  118. alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_request.py +593 -0
  119. alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_response.py +54 -0
  120. alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_response_body.py +103 -0
  121. alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_shrink_request.py +202 -0
  122. alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_request.py +148 -0
  123. alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_response.py +54 -0
  124. alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_response_body.py +104 -0
  125. alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_shrink_request.py +146 -0
  126. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_config_request.py +34 -0
  127. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_config_response.py +54 -0
  128. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_config_response_body.py +66 -0
  129. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_task_request.py +43 -0
  130. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_task_response.py +54 -0
  131. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_task_response_body.py +119 -0
  132. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_request.py +45 -0
  133. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_response.py +54 -0
  134. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_response_body.py +136 -0
  135. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_shrink_request.py +43 -0
  136. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_request.py +34 -0
  137. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_response.py +54 -0
  138. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_response_body.py +66 -0
  139. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_request.py +43 -0
  140. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response.py +54 -0
  141. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response_body.py +120 -0
  142. {alibabacloud_quanmiaolightapp20240801-2.13.1.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/METADATA +7 -7
  143. alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info/RECORD +146 -0
  144. alibabacloud_quanmiaolightapp20240801/models.py +0 -16030
  145. alibabacloud_quanmiaolightapp20240801-2.13.1.dist-info/RECORD +0 -8
  146. {alibabacloud_quanmiaolightapp20240801-2.13.1.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/LICENSE +0 -0
  147. {alibabacloud_quanmiaolightapp20240801-2.13.1.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/WHEEL +0 -0
  148. {alibabacloud_quanmiaolightapp20240801-2.13.1.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,33 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class GetFileContentRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ file_key: str = None,
11
+ ):
12
+ self.file_key = file_key
13
+
14
+ def validate(self):
15
+ pass
16
+
17
+ def to_map(self):
18
+ result = dict()
19
+ _map = super().to_map()
20
+ if _map is not None:
21
+ result = _map
22
+ if self.file_key is not None:
23
+ result['fileKey'] = self.file_key
24
+
25
+ return result
26
+
27
+ def from_map(self, m: dict = None):
28
+ m = m or dict()
29
+ if m.get('fileKey') is not None:
30
+ self.file_key = m.get('fileKey')
31
+
32
+ return self
33
+
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_quanmiaolightapp20240801 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class GetFileContentResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.GetFileContentResponseBody = None,
16
+ ):
17
+ self.headers = headers
18
+ self.status_code = status_code
19
+ self.body = body
20
+
21
+ def validate(self):
22
+ if self.body:
23
+ self.body.validate()
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.headers is not None:
31
+ result['headers'] = self.headers
32
+
33
+ if self.status_code is not None:
34
+ result['statusCode'] = self.status_code
35
+
36
+ if self.body is not None:
37
+ result['body'] = self.body.to_map()
38
+
39
+ return result
40
+
41
+ def from_map(self, m: dict = None):
42
+ m = m or dict()
43
+ if m.get('headers') is not None:
44
+ self.headers = m.get('headers')
45
+
46
+ if m.get('statusCode') is not None:
47
+ self.status_code = m.get('statusCode')
48
+
49
+ if m.get('body') is not None:
50
+ temp_model = main_models.GetFileContentResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,104 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from alibabacloud_quanmiaolightapp20240801 import models as main_models
6
+ from darabonba.model import DaraModel
7
+
8
+ class GetFileContentResponseBody(DaraModel):
9
+ def __init__(
10
+ self,
11
+ code: str = None,
12
+ data: main_models.GetFileContentResponseBodyData = None,
13
+ http_status_code: int = None,
14
+ message: str = None,
15
+ request_id: str = None,
16
+ success: str = None,
17
+ ):
18
+ self.code = code
19
+ self.data = data
20
+ self.http_status_code = http_status_code
21
+ self.message = message
22
+ # Id of the request
23
+ self.request_id = request_id
24
+ self.success = success
25
+
26
+ def validate(self):
27
+ if self.data:
28
+ self.data.validate()
29
+
30
+ def to_map(self):
31
+ result = dict()
32
+ _map = super().to_map()
33
+ if _map is not None:
34
+ result = _map
35
+ if self.code is not None:
36
+ result['code'] = self.code
37
+
38
+ if self.data is not None:
39
+ result['data'] = self.data.to_map()
40
+
41
+ if self.http_status_code is not None:
42
+ result['httpStatusCode'] = self.http_status_code
43
+
44
+ if self.message is not None:
45
+ result['message'] = self.message
46
+
47
+ if self.request_id is not None:
48
+ result['requestId'] = self.request_id
49
+
50
+ if self.success is not None:
51
+ result['success'] = self.success
52
+
53
+ return result
54
+
55
+ def from_map(self, m: dict = None):
56
+ m = m or dict()
57
+ if m.get('code') is not None:
58
+ self.code = m.get('code')
59
+
60
+ if m.get('data') is not None:
61
+ temp_model = main_models.GetFileContentResponseBodyData()
62
+ self.data = temp_model.from_map(m.get('data'))
63
+
64
+ if m.get('httpStatusCode') is not None:
65
+ self.http_status_code = m.get('httpStatusCode')
66
+
67
+ if m.get('message') is not None:
68
+ self.message = m.get('message')
69
+
70
+ if m.get('requestId') is not None:
71
+ self.request_id = m.get('requestId')
72
+
73
+ if m.get('success') is not None:
74
+ self.success = m.get('success')
75
+
76
+ return self
77
+
78
+ class GetFileContentResponseBodyData(DaraModel):
79
+ def __init__(
80
+ self,
81
+ content: str = None,
82
+ ):
83
+ self.content = content
84
+
85
+ def validate(self):
86
+ pass
87
+
88
+ def to_map(self):
89
+ result = dict()
90
+ _map = super().to_map()
91
+ if _map is not None:
92
+ result = _map
93
+ if self.content is not None:
94
+ result['content'] = self.content
95
+
96
+ return result
97
+
98
+ def from_map(self, m: dict = None):
99
+ m = m or dict()
100
+ if m.get('content') is not None:
101
+ self.content = m.get('content')
102
+
103
+ return self
104
+
@@ -0,0 +1,33 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class GetTagMiningAnalysisTaskRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ task_id: str = None,
11
+ ):
12
+ self.task_id = task_id
13
+
14
+ def validate(self):
15
+ pass
16
+
17
+ def to_map(self):
18
+ result = dict()
19
+ _map = super().to_map()
20
+ if _map is not None:
21
+ result = _map
22
+ if self.task_id is not None:
23
+ result['taskId'] = self.task_id
24
+
25
+ return result
26
+
27
+ def from_map(self, m: dict = None):
28
+ m = m or dict()
29
+ if m.get('taskId') is not None:
30
+ self.task_id = m.get('taskId')
31
+
32
+ return self
33
+
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_quanmiaolightapp20240801 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class GetTagMiningAnalysisTaskResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.GetTagMiningAnalysisTaskResponseBody = None,
16
+ ):
17
+ self.headers = headers
18
+ self.status_code = status_code
19
+ self.body = body
20
+
21
+ def validate(self):
22
+ if self.body:
23
+ self.body.validate()
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.headers is not None:
31
+ result['headers'] = self.headers
32
+
33
+ if self.status_code is not None:
34
+ result['statusCode'] = self.status_code
35
+
36
+ if self.body is not None:
37
+ result['body'] = self.body.to_map()
38
+
39
+ return result
40
+
41
+ def from_map(self, m: dict = None):
42
+ m = m or dict()
43
+ if m.get('headers') is not None:
44
+ self.headers = m.get('headers')
45
+
46
+ if m.get('statusCode') is not None:
47
+ self.status_code = m.get('statusCode')
48
+
49
+ if m.get('body') is not None:
50
+ temp_model = main_models.GetTagMiningAnalysisTaskResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,347 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import List
6
+
7
+ from alibabacloud_quanmiaolightapp20240801 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class GetTagMiningAnalysisTaskResponseBody(DaraModel):
11
+ def __init__(
12
+ self,
13
+ code: str = None,
14
+ data: main_models.GetTagMiningAnalysisTaskResponseBodyData = None,
15
+ http_status_code: str = None,
16
+ message: str = None,
17
+ request_id: str = None,
18
+ success: bool = None,
19
+ ):
20
+ self.code = code
21
+ self.data = data
22
+ self.http_status_code = http_status_code
23
+ self.message = message
24
+ # requestId
25
+ self.request_id = request_id
26
+ self.success = success
27
+
28
+ def validate(self):
29
+ if self.data:
30
+ self.data.validate()
31
+
32
+ def to_map(self):
33
+ result = dict()
34
+ _map = super().to_map()
35
+ if _map is not None:
36
+ result = _map
37
+ if self.code is not None:
38
+ result['code'] = self.code
39
+
40
+ if self.data is not None:
41
+ result['data'] = self.data.to_map()
42
+
43
+ if self.http_status_code is not None:
44
+ result['httpStatusCode'] = self.http_status_code
45
+
46
+ if self.message is not None:
47
+ result['message'] = self.message
48
+
49
+ if self.request_id is not None:
50
+ result['requestId'] = self.request_id
51
+
52
+ if self.success is not None:
53
+ result['success'] = self.success
54
+
55
+ return result
56
+
57
+ def from_map(self, m: dict = None):
58
+ m = m or dict()
59
+ if m.get('code') is not None:
60
+ self.code = m.get('code')
61
+
62
+ if m.get('data') is not None:
63
+ temp_model = main_models.GetTagMiningAnalysisTaskResponseBodyData()
64
+ self.data = temp_model.from_map(m.get('data'))
65
+
66
+ if m.get('httpStatusCode') is not None:
67
+ self.http_status_code = m.get('httpStatusCode')
68
+
69
+ if m.get('message') is not None:
70
+ self.message = m.get('message')
71
+
72
+ if m.get('requestId') is not None:
73
+ self.request_id = m.get('requestId')
74
+
75
+ if m.get('success') is not None:
76
+ self.success = m.get('success')
77
+
78
+ return self
79
+
80
+ class GetTagMiningAnalysisTaskResponseBodyData(DaraModel):
81
+ def __init__(
82
+ self,
83
+ error_code: str = None,
84
+ error_message: str = None,
85
+ results: List[main_models.GetTagMiningAnalysisTaskResponseBodyDataResults] = None,
86
+ status: str = None,
87
+ ):
88
+ self.error_code = error_code
89
+ self.error_message = error_message
90
+ self.results = results
91
+ self.status = status
92
+
93
+ def validate(self):
94
+ if self.results:
95
+ for v1 in self.results:
96
+ if v1:
97
+ v1.validate()
98
+
99
+ def to_map(self):
100
+ result = dict()
101
+ _map = super().to_map()
102
+ if _map is not None:
103
+ result = _map
104
+ if self.error_code is not None:
105
+ result['errorCode'] = self.error_code
106
+
107
+ if self.error_message is not None:
108
+ result['errorMessage'] = self.error_message
109
+
110
+ result['results'] = []
111
+ if self.results is not None:
112
+ for k1 in self.results:
113
+ result['results'].append(k1.to_map() if k1 else None)
114
+
115
+ if self.status is not None:
116
+ result['status'] = self.status
117
+
118
+ return result
119
+
120
+ def from_map(self, m: dict = None):
121
+ m = m or dict()
122
+ if m.get('errorCode') is not None:
123
+ self.error_code = m.get('errorCode')
124
+
125
+ if m.get('errorMessage') is not None:
126
+ self.error_message = m.get('errorMessage')
127
+
128
+ self.results = []
129
+ if m.get('results') is not None:
130
+ for k1 in m.get('results'):
131
+ temp_model = main_models.GetTagMiningAnalysisTaskResponseBodyDataResults()
132
+ self.results.append(temp_model.from_map(k1))
133
+
134
+ if m.get('status') is not None:
135
+ self.status = m.get('status')
136
+
137
+ return self
138
+
139
+ class GetTagMiningAnalysisTaskResponseBodyDataResults(DaraModel):
140
+ def __init__(
141
+ self,
142
+ custom_id: str = None,
143
+ header: main_models.GetTagMiningAnalysisTaskResponseBodyDataResultsHeader = None,
144
+ payload: main_models.GetTagMiningAnalysisTaskResponseBodyDataResultsPayload = None,
145
+ ):
146
+ self.custom_id = custom_id
147
+ self.header = header
148
+ self.payload = payload
149
+
150
+ def validate(self):
151
+ if self.header:
152
+ self.header.validate()
153
+ if self.payload:
154
+ self.payload.validate()
155
+
156
+ def to_map(self):
157
+ result = dict()
158
+ _map = super().to_map()
159
+ if _map is not None:
160
+ result = _map
161
+ if self.custom_id is not None:
162
+ result['customId'] = self.custom_id
163
+
164
+ if self.header is not None:
165
+ result['header'] = self.header.to_map()
166
+
167
+ if self.payload is not None:
168
+ result['payload'] = self.payload.to_map()
169
+
170
+ return result
171
+
172
+ def from_map(self, m: dict = None):
173
+ m = m or dict()
174
+ if m.get('customId') is not None:
175
+ self.custom_id = m.get('customId')
176
+
177
+ if m.get('header') is not None:
178
+ temp_model = main_models.GetTagMiningAnalysisTaskResponseBodyDataResultsHeader()
179
+ self.header = temp_model.from_map(m.get('header'))
180
+
181
+ if m.get('payload') is not None:
182
+ temp_model = main_models.GetTagMiningAnalysisTaskResponseBodyDataResultsPayload()
183
+ self.payload = temp_model.from_map(m.get('payload'))
184
+
185
+ return self
186
+
187
+ class GetTagMiningAnalysisTaskResponseBodyDataResultsPayload(DaraModel):
188
+ def __init__(
189
+ self,
190
+ output: main_models.GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadOutput = None,
191
+ usage: main_models.GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadUsage = None,
192
+ ):
193
+ self.output = output
194
+ self.usage = usage
195
+
196
+ def validate(self):
197
+ if self.output:
198
+ self.output.validate()
199
+ if self.usage:
200
+ self.usage.validate()
201
+
202
+ def to_map(self):
203
+ result = dict()
204
+ _map = super().to_map()
205
+ if _map is not None:
206
+ result = _map
207
+ if self.output is not None:
208
+ result['output'] = self.output.to_map()
209
+
210
+ if self.usage is not None:
211
+ result['usage'] = self.usage.to_map()
212
+
213
+ return result
214
+
215
+ def from_map(self, m: dict = None):
216
+ m = m or dict()
217
+ if m.get('output') is not None:
218
+ temp_model = main_models.GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadOutput()
219
+ self.output = temp_model.from_map(m.get('output'))
220
+
221
+ if m.get('usage') is not None:
222
+ temp_model = main_models.GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadUsage()
223
+ self.usage = temp_model.from_map(m.get('usage'))
224
+
225
+ return self
226
+
227
+ class GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadUsage(DaraModel):
228
+ def __init__(
229
+ self,
230
+ input_token: int = None,
231
+ output_token: int = None,
232
+ total_token: int = None,
233
+ ):
234
+ self.input_token = input_token
235
+ self.output_token = output_token
236
+ self.total_token = total_token
237
+
238
+ def validate(self):
239
+ pass
240
+
241
+ def to_map(self):
242
+ result = dict()
243
+ _map = super().to_map()
244
+ if _map is not None:
245
+ result = _map
246
+ if self.input_token is not None:
247
+ result['inputToken'] = self.input_token
248
+
249
+ if self.output_token is not None:
250
+ result['outputToken'] = self.output_token
251
+
252
+ if self.total_token is not None:
253
+ result['totalToken'] = self.total_token
254
+
255
+ return result
256
+
257
+ def from_map(self, m: dict = None):
258
+ m = m or dict()
259
+ if m.get('inputToken') is not None:
260
+ self.input_token = m.get('inputToken')
261
+
262
+ if m.get('outputToken') is not None:
263
+ self.output_token = m.get('outputToken')
264
+
265
+ if m.get('totalToken') is not None:
266
+ self.total_token = m.get('totalToken')
267
+
268
+ return self
269
+
270
+ class GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadOutput(DaraModel):
271
+ def __init__(
272
+ self,
273
+ text: str = None,
274
+ ):
275
+ self.text = text
276
+
277
+ def validate(self):
278
+ pass
279
+
280
+ def to_map(self):
281
+ result = dict()
282
+ _map = super().to_map()
283
+ if _map is not None:
284
+ result = _map
285
+ if self.text is not None:
286
+ result['text'] = self.text
287
+
288
+ return result
289
+
290
+ def from_map(self, m: dict = None):
291
+ m = m or dict()
292
+ if m.get('text') is not None:
293
+ self.text = m.get('text')
294
+
295
+ return self
296
+
297
+ class GetTagMiningAnalysisTaskResponseBodyDataResultsHeader(DaraModel):
298
+ def __init__(
299
+ self,
300
+ error_code: str = None,
301
+ error_message: str = None,
302
+ event: str = None,
303
+ request_id: str = None,
304
+ ):
305
+ self.error_code = error_code
306
+ self.error_message = error_message
307
+ self.event = event
308
+ self.request_id = request_id
309
+
310
+ def validate(self):
311
+ pass
312
+
313
+ def to_map(self):
314
+ result = dict()
315
+ _map = super().to_map()
316
+ if _map is not None:
317
+ result = _map
318
+ if self.error_code is not None:
319
+ result['errorCode'] = self.error_code
320
+
321
+ if self.error_message is not None:
322
+ result['errorMessage'] = self.error_message
323
+
324
+ if self.event is not None:
325
+ result['event'] = self.event
326
+
327
+ if self.request_id is not None:
328
+ result['requestId'] = self.request_id
329
+
330
+ return result
331
+
332
+ def from_map(self, m: dict = None):
333
+ m = m or dict()
334
+ if m.get('errorCode') is not None:
335
+ self.error_code = m.get('errorCode')
336
+
337
+ if m.get('errorMessage') is not None:
338
+ self.error_message = m.get('errorMessage')
339
+
340
+ if m.get('event') is not None:
341
+ self.event = m.get('event')
342
+
343
+ if m.get('requestId') is not None:
344
+ self.request_id = m.get('requestId')
345
+
346
+ return self
347
+
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_quanmiaolightapp20240801 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class GetVideoAnalysisConfigResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.GetVideoAnalysisConfigResponseBody = None,
16
+ ):
17
+ self.headers = headers
18
+ self.status_code = status_code
19
+ self.body = body
20
+
21
+ def validate(self):
22
+ if self.body:
23
+ self.body.validate()
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.headers is not None:
31
+ result['headers'] = self.headers
32
+
33
+ if self.status_code is not None:
34
+ result['statusCode'] = self.status_code
35
+
36
+ if self.body is not None:
37
+ result['body'] = self.body.to_map()
38
+
39
+ return result
40
+
41
+ def from_map(self, m: dict = None):
42
+ m = m or dict()
43
+ if m.get('headers') is not None:
44
+ self.headers = m.get('headers')
45
+
46
+ if m.get('statusCode') is not None:
47
+ self.status_code = m.get('statusCode')
48
+
49
+ if m.get('body') is not None:
50
+ temp_model = main_models.GetVideoAnalysisConfigResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+