alibabacloud-quanmiaolightapp20240801 2.13.2__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 +4448 -3769
  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.2.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 -16578
  145. alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info/RECORD +0 -8
  146. {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/LICENSE +0 -0
  147. {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/WHEEL +0 -0
  148. {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,636 @@
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 RunHotTopicChatResponseBody(DaraModel):
11
+ def __init__(
12
+ self,
13
+ header: main_models.RunHotTopicChatResponseBodyHeader = None,
14
+ payload: main_models.RunHotTopicChatResponseBodyPayload = None,
15
+ request_id: str = None,
16
+ ):
17
+ self.header = header
18
+ self.payload = payload
19
+ self.request_id = request_id
20
+
21
+ def validate(self):
22
+ if self.header:
23
+ self.header.validate()
24
+ if self.payload:
25
+ self.payload.validate()
26
+
27
+ def to_map(self):
28
+ result = dict()
29
+ _map = super().to_map()
30
+ if _map is not None:
31
+ result = _map
32
+ if self.header is not None:
33
+ result['header'] = self.header.to_map()
34
+
35
+ if self.payload is not None:
36
+ result['payload'] = self.payload.to_map()
37
+
38
+ if self.request_id is not None:
39
+ result['requestId'] = self.request_id
40
+
41
+ return result
42
+
43
+ def from_map(self, m: dict = None):
44
+ m = m or dict()
45
+ if m.get('header') is not None:
46
+ temp_model = main_models.RunHotTopicChatResponseBodyHeader()
47
+ self.header = temp_model.from_map(m.get('header'))
48
+
49
+ if m.get('payload') is not None:
50
+ temp_model = main_models.RunHotTopicChatResponseBodyPayload()
51
+ self.payload = temp_model.from_map(m.get('payload'))
52
+
53
+ if m.get('requestId') is not None:
54
+ self.request_id = m.get('requestId')
55
+
56
+ return self
57
+
58
+ class RunHotTopicChatResponseBodyPayload(DaraModel):
59
+ def __init__(
60
+ self,
61
+ output: main_models.RunHotTopicChatResponseBodyPayloadOutput = None,
62
+ usage: main_models.RunHotTopicChatResponseBodyPayloadUsage = None,
63
+ ):
64
+ self.output = output
65
+ self.usage = usage
66
+
67
+ def validate(self):
68
+ if self.output:
69
+ self.output.validate()
70
+ if self.usage:
71
+ self.usage.validate()
72
+
73
+ def to_map(self):
74
+ result = dict()
75
+ _map = super().to_map()
76
+ if _map is not None:
77
+ result = _map
78
+ if self.output is not None:
79
+ result['output'] = self.output.to_map()
80
+
81
+ if self.usage is not None:
82
+ result['usage'] = self.usage.to_map()
83
+
84
+ return result
85
+
86
+ def from_map(self, m: dict = None):
87
+ m = m or dict()
88
+ if m.get('output') is not None:
89
+ temp_model = main_models.RunHotTopicChatResponseBodyPayloadOutput()
90
+ self.output = temp_model.from_map(m.get('output'))
91
+
92
+ if m.get('usage') is not None:
93
+ temp_model = main_models.RunHotTopicChatResponseBodyPayloadUsage()
94
+ self.usage = temp_model.from_map(m.get('usage'))
95
+
96
+ return self
97
+
98
+ class RunHotTopicChatResponseBodyPayloadUsage(DaraModel):
99
+ def __init__(
100
+ self,
101
+ input_tokens: int = None,
102
+ output_tokens: int = None,
103
+ total_tokens: int = None,
104
+ ):
105
+ self.input_tokens = input_tokens
106
+ self.output_tokens = output_tokens
107
+ self.total_tokens = total_tokens
108
+
109
+ def validate(self):
110
+ pass
111
+
112
+ def to_map(self):
113
+ result = dict()
114
+ _map = super().to_map()
115
+ if _map is not None:
116
+ result = _map
117
+ if self.input_tokens is not None:
118
+ result['inputTokens'] = self.input_tokens
119
+
120
+ if self.output_tokens is not None:
121
+ result['outputTokens'] = self.output_tokens
122
+
123
+ if self.total_tokens is not None:
124
+ result['totalTokens'] = self.total_tokens
125
+
126
+ return result
127
+
128
+ def from_map(self, m: dict = None):
129
+ m = m or dict()
130
+ if m.get('inputTokens') is not None:
131
+ self.input_tokens = m.get('inputTokens')
132
+
133
+ if m.get('outputTokens') is not None:
134
+ self.output_tokens = m.get('outputTokens')
135
+
136
+ if m.get('totalTokens') is not None:
137
+ self.total_tokens = m.get('totalTokens')
138
+
139
+ return self
140
+
141
+ class RunHotTopicChatResponseBodyPayloadOutput(DaraModel):
142
+ def __init__(
143
+ self,
144
+ articles: List[main_models.RunHotTopicChatResponseBodyPayloadOutputArticles] = None,
145
+ category: str = None,
146
+ hot_topic_summaries: List[main_models.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries] = None,
147
+ keyword: str = None,
148
+ location: str = None,
149
+ multimodal_medias: List[main_models.RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias] = None,
150
+ recommend_queries: List[str] = None,
151
+ search_query: str = None,
152
+ text: str = None,
153
+ ):
154
+ self.articles = articles
155
+ self.category = category
156
+ self.hot_topic_summaries = hot_topic_summaries
157
+ self.keyword = keyword
158
+ self.location = location
159
+ self.multimodal_medias = multimodal_medias
160
+ self.recommend_queries = recommend_queries
161
+ self.search_query = search_query
162
+ self.text = text
163
+
164
+ def validate(self):
165
+ if self.articles:
166
+ for v1 in self.articles:
167
+ if v1:
168
+ v1.validate()
169
+ if self.hot_topic_summaries:
170
+ for v1 in self.hot_topic_summaries:
171
+ if v1:
172
+ v1.validate()
173
+ if self.multimodal_medias:
174
+ for v1 in self.multimodal_medias:
175
+ if v1:
176
+ v1.validate()
177
+
178
+ def to_map(self):
179
+ result = dict()
180
+ _map = super().to_map()
181
+ if _map is not None:
182
+ result = _map
183
+ result['articles'] = []
184
+ if self.articles is not None:
185
+ for k1 in self.articles:
186
+ result['articles'].append(k1.to_map() if k1 else None)
187
+
188
+ if self.category is not None:
189
+ result['category'] = self.category
190
+
191
+ result['hotTopicSummaries'] = []
192
+ if self.hot_topic_summaries is not None:
193
+ for k1 in self.hot_topic_summaries:
194
+ result['hotTopicSummaries'].append(k1.to_map() if k1 else None)
195
+
196
+ if self.keyword is not None:
197
+ result['keyword'] = self.keyword
198
+
199
+ if self.location is not None:
200
+ result['location'] = self.location
201
+
202
+ result['multimodalMedias'] = []
203
+ if self.multimodal_medias is not None:
204
+ for k1 in self.multimodal_medias:
205
+ result['multimodalMedias'].append(k1.to_map() if k1 else None)
206
+
207
+ if self.recommend_queries is not None:
208
+ result['recommendQueries'] = self.recommend_queries
209
+
210
+ if self.search_query is not None:
211
+ result['searchQuery'] = self.search_query
212
+
213
+ if self.text is not None:
214
+ result['text'] = self.text
215
+
216
+ return result
217
+
218
+ def from_map(self, m: dict = None):
219
+ m = m or dict()
220
+ self.articles = []
221
+ if m.get('articles') is not None:
222
+ for k1 in m.get('articles'):
223
+ temp_model = main_models.RunHotTopicChatResponseBodyPayloadOutputArticles()
224
+ self.articles.append(temp_model.from_map(k1))
225
+
226
+ if m.get('category') is not None:
227
+ self.category = m.get('category')
228
+
229
+ self.hot_topic_summaries = []
230
+ if m.get('hotTopicSummaries') is not None:
231
+ for k1 in m.get('hotTopicSummaries'):
232
+ temp_model = main_models.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries()
233
+ self.hot_topic_summaries.append(temp_model.from_map(k1))
234
+
235
+ if m.get('keyword') is not None:
236
+ self.keyword = m.get('keyword')
237
+
238
+ if m.get('location') is not None:
239
+ self.location = m.get('location')
240
+
241
+ self.multimodal_medias = []
242
+ if m.get('multimodalMedias') is not None:
243
+ for k1 in m.get('multimodalMedias'):
244
+ temp_model = main_models.RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias()
245
+ self.multimodal_medias.append(temp_model.from_map(k1))
246
+
247
+ if m.get('recommendQueries') is not None:
248
+ self.recommend_queries = m.get('recommendQueries')
249
+
250
+ if m.get('searchQuery') is not None:
251
+ self.search_query = m.get('searchQuery')
252
+
253
+ if m.get('text') is not None:
254
+ self.text = m.get('text')
255
+
256
+ return self
257
+
258
+ class RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias(DaraModel):
259
+ def __init__(
260
+ self,
261
+ file_url: str = None,
262
+ media_type: str = None,
263
+ sort_score: float = None,
264
+ ):
265
+ self.file_url = file_url
266
+ self.media_type = media_type
267
+ self.sort_score = sort_score
268
+
269
+ def validate(self):
270
+ pass
271
+
272
+ def to_map(self):
273
+ result = dict()
274
+ _map = super().to_map()
275
+ if _map is not None:
276
+ result = _map
277
+ if self.file_url is not None:
278
+ result['fileUrl'] = self.file_url
279
+
280
+ if self.media_type is not None:
281
+ result['mediaType'] = self.media_type
282
+
283
+ if self.sort_score is not None:
284
+ result['sortScore'] = self.sort_score
285
+
286
+ return result
287
+
288
+ def from_map(self, m: dict = None):
289
+ m = m or dict()
290
+ if m.get('fileUrl') is not None:
291
+ self.file_url = m.get('fileUrl')
292
+
293
+ if m.get('mediaType') is not None:
294
+ self.media_type = m.get('mediaType')
295
+
296
+ if m.get('sortScore') is not None:
297
+ self.sort_score = m.get('sortScore')
298
+
299
+ return self
300
+
301
+ class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries(DaraModel):
302
+ def __init__(
303
+ self,
304
+ custom_hot_value: float = None,
305
+ custom_text_summary: str = None,
306
+ hot_topic: str = None,
307
+ hot_topic_version: str = None,
308
+ hot_value: float = None,
309
+ images: List[main_models.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages] = None,
310
+ news: List[main_models.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews] = None,
311
+ pub_time: str = None,
312
+ text_summary: str = None,
313
+ url: str = None,
314
+ ):
315
+ self.custom_hot_value = custom_hot_value
316
+ self.custom_text_summary = custom_text_summary
317
+ self.hot_topic = hot_topic
318
+ self.hot_topic_version = hot_topic_version
319
+ self.hot_value = hot_value
320
+ self.images = images
321
+ self.news = news
322
+ self.pub_time = pub_time
323
+ self.text_summary = text_summary
324
+ self.url = url
325
+
326
+ def validate(self):
327
+ if self.images:
328
+ for v1 in self.images:
329
+ if v1:
330
+ v1.validate()
331
+ if self.news:
332
+ for v1 in self.news:
333
+ if v1:
334
+ v1.validate()
335
+
336
+ def to_map(self):
337
+ result = dict()
338
+ _map = super().to_map()
339
+ if _map is not None:
340
+ result = _map
341
+ if self.custom_hot_value is not None:
342
+ result['customHotValue'] = self.custom_hot_value
343
+
344
+ if self.custom_text_summary is not None:
345
+ result['customTextSummary'] = self.custom_text_summary
346
+
347
+ if self.hot_topic is not None:
348
+ result['hotTopic'] = self.hot_topic
349
+
350
+ if self.hot_topic_version is not None:
351
+ result['hotTopicVersion'] = self.hot_topic_version
352
+
353
+ if self.hot_value is not None:
354
+ result['hotValue'] = self.hot_value
355
+
356
+ result['images'] = []
357
+ if self.images is not None:
358
+ for k1 in self.images:
359
+ result['images'].append(k1.to_map() if k1 else None)
360
+
361
+ result['news'] = []
362
+ if self.news is not None:
363
+ for k1 in self.news:
364
+ result['news'].append(k1.to_map() if k1 else None)
365
+
366
+ if self.pub_time is not None:
367
+ result['pubTime'] = self.pub_time
368
+
369
+ if self.text_summary is not None:
370
+ result['textSummary'] = self.text_summary
371
+
372
+ if self.url is not None:
373
+ result['url'] = self.url
374
+
375
+ return result
376
+
377
+ def from_map(self, m: dict = None):
378
+ m = m or dict()
379
+ if m.get('customHotValue') is not None:
380
+ self.custom_hot_value = m.get('customHotValue')
381
+
382
+ if m.get('customTextSummary') is not None:
383
+ self.custom_text_summary = m.get('customTextSummary')
384
+
385
+ if m.get('hotTopic') is not None:
386
+ self.hot_topic = m.get('hotTopic')
387
+
388
+ if m.get('hotTopicVersion') is not None:
389
+ self.hot_topic_version = m.get('hotTopicVersion')
390
+
391
+ if m.get('hotValue') is not None:
392
+ self.hot_value = m.get('hotValue')
393
+
394
+ self.images = []
395
+ if m.get('images') is not None:
396
+ for k1 in m.get('images'):
397
+ temp_model = main_models.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages()
398
+ self.images.append(temp_model.from_map(k1))
399
+
400
+ self.news = []
401
+ if m.get('news') is not None:
402
+ for k1 in m.get('news'):
403
+ temp_model = main_models.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews()
404
+ self.news.append(temp_model.from_map(k1))
405
+
406
+ if m.get('pubTime') is not None:
407
+ self.pub_time = m.get('pubTime')
408
+
409
+ if m.get('textSummary') is not None:
410
+ self.text_summary = m.get('textSummary')
411
+
412
+ if m.get('url') is not None:
413
+ self.url = m.get('url')
414
+
415
+ return self
416
+
417
+ class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews(DaraModel):
418
+ def __init__(
419
+ self,
420
+ title: str = None,
421
+ url: str = None,
422
+ ):
423
+ self.title = title
424
+ self.url = url
425
+
426
+ def validate(self):
427
+ pass
428
+
429
+ def to_map(self):
430
+ result = dict()
431
+ _map = super().to_map()
432
+ if _map is not None:
433
+ result = _map
434
+ if self.title is not None:
435
+ result['title'] = self.title
436
+
437
+ if self.url is not None:
438
+ result['url'] = self.url
439
+
440
+ return result
441
+
442
+ def from_map(self, m: dict = None):
443
+ m = m or dict()
444
+ if m.get('title') is not None:
445
+ self.title = m.get('title')
446
+
447
+ if m.get('url') is not None:
448
+ self.url = m.get('url')
449
+
450
+ return self
451
+
452
+ class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages(DaraModel):
453
+ def __init__(
454
+ self,
455
+ url: str = None,
456
+ ):
457
+ self.url = url
458
+
459
+ def validate(self):
460
+ pass
461
+
462
+ def to_map(self):
463
+ result = dict()
464
+ _map = super().to_map()
465
+ if _map is not None:
466
+ result = _map
467
+ if self.url is not None:
468
+ result['url'] = self.url
469
+
470
+ return result
471
+
472
+ def from_map(self, m: dict = None):
473
+ m = m or dict()
474
+ if m.get('url') is not None:
475
+ self.url = m.get('url')
476
+
477
+ return self
478
+
479
+ class RunHotTopicChatResponseBodyPayloadOutputArticles(DaraModel):
480
+ def __init__(
481
+ self,
482
+ content: str = None,
483
+ pub_time: str = None,
484
+ score: float = None,
485
+ search_source_name: str = None,
486
+ select: bool = None,
487
+ summary: str = None,
488
+ title: str = None,
489
+ url: str = None,
490
+ ):
491
+ self.content = content
492
+ self.pub_time = pub_time
493
+ self.score = score
494
+ self.search_source_name = search_source_name
495
+ self.select = select
496
+ self.summary = summary
497
+ self.title = title
498
+ self.url = url
499
+
500
+ def validate(self):
501
+ pass
502
+
503
+ def to_map(self):
504
+ result = dict()
505
+ _map = super().to_map()
506
+ if _map is not None:
507
+ result = _map
508
+ if self.content is not None:
509
+ result['content'] = self.content
510
+
511
+ if self.pub_time is not None:
512
+ result['pubTime'] = self.pub_time
513
+
514
+ if self.score is not None:
515
+ result['score'] = self.score
516
+
517
+ if self.search_source_name is not None:
518
+ result['searchSourceName'] = self.search_source_name
519
+
520
+ if self.select is not None:
521
+ result['select'] = self.select
522
+
523
+ if self.summary is not None:
524
+ result['summary'] = self.summary
525
+
526
+ if self.title is not None:
527
+ result['title'] = self.title
528
+
529
+ if self.url is not None:
530
+ result['url'] = self.url
531
+
532
+ return result
533
+
534
+ def from_map(self, m: dict = None):
535
+ m = m or dict()
536
+ if m.get('content') is not None:
537
+ self.content = m.get('content')
538
+
539
+ if m.get('pubTime') is not None:
540
+ self.pub_time = m.get('pubTime')
541
+
542
+ if m.get('score') is not None:
543
+ self.score = m.get('score')
544
+
545
+ if m.get('searchSourceName') is not None:
546
+ self.search_source_name = m.get('searchSourceName')
547
+
548
+ if m.get('select') is not None:
549
+ self.select = m.get('select')
550
+
551
+ if m.get('summary') is not None:
552
+ self.summary = m.get('summary')
553
+
554
+ if m.get('title') is not None:
555
+ self.title = m.get('title')
556
+
557
+ if m.get('url') is not None:
558
+ self.url = m.get('url')
559
+
560
+ return self
561
+
562
+ class RunHotTopicChatResponseBodyHeader(DaraModel):
563
+ def __init__(
564
+ self,
565
+ error_code: str = None,
566
+ error_message: str = None,
567
+ event: str = None,
568
+ event_info: str = None,
569
+ session_id: str = None,
570
+ task_id: str = None,
571
+ trace_id: str = None,
572
+ ):
573
+ self.error_code = error_code
574
+ self.error_message = error_message
575
+ self.event = event
576
+ self.event_info = event_info
577
+ self.session_id = session_id
578
+ self.task_id = task_id
579
+ self.trace_id = trace_id
580
+
581
+ def validate(self):
582
+ pass
583
+
584
+ def to_map(self):
585
+ result = dict()
586
+ _map = super().to_map()
587
+ if _map is not None:
588
+ result = _map
589
+ if self.error_code is not None:
590
+ result['errorCode'] = self.error_code
591
+
592
+ if self.error_message is not None:
593
+ result['errorMessage'] = self.error_message
594
+
595
+ if self.event is not None:
596
+ result['event'] = self.event
597
+
598
+ if self.event_info is not None:
599
+ result['eventInfo'] = self.event_info
600
+
601
+ if self.session_id is not None:
602
+ result['sessionId'] = self.session_id
603
+
604
+ if self.task_id is not None:
605
+ result['taskId'] = self.task_id
606
+
607
+ if self.trace_id is not None:
608
+ result['traceId'] = self.trace_id
609
+
610
+ return result
611
+
612
+ def from_map(self, m: dict = None):
613
+ m = m or dict()
614
+ if m.get('errorCode') is not None:
615
+ self.error_code = m.get('errorCode')
616
+
617
+ if m.get('errorMessage') is not None:
618
+ self.error_message = m.get('errorMessage')
619
+
620
+ if m.get('event') is not None:
621
+ self.event = m.get('event')
622
+
623
+ if m.get('eventInfo') is not None:
624
+ self.event_info = m.get('eventInfo')
625
+
626
+ if m.get('sessionId') is not None:
627
+ self.session_id = m.get('sessionId')
628
+
629
+ if m.get('taskId') is not None:
630
+ self.task_id = m.get('taskId')
631
+
632
+ if m.get('traceId') is not None:
633
+ self.trace_id = m.get('traceId')
634
+
635
+ return self
636
+