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,247 @@
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 SubmitEnterpriseVocAnalysisTaskRequest(DaraModel):
11
+ def __init__(
12
+ self,
13
+ api_key: str = None,
14
+ contents: List[main_models.SubmitEnterpriseVocAnalysisTaskRequestContents] = None,
15
+ extra_info: str = None,
16
+ file_key: str = None,
17
+ filter_tags: List[main_models.SubmitEnterpriseVocAnalysisTaskRequestFilterTags] = None,
18
+ model_id: str = None,
19
+ output_format: str = None,
20
+ source_trace: bool = None,
21
+ tags: List[main_models.SubmitEnterpriseVocAnalysisTaskRequestTags] = None,
22
+ task_description: str = None,
23
+ url: str = None,
24
+ ):
25
+ self.api_key = api_key
26
+ self.contents = contents
27
+ self.extra_info = extra_info
28
+ self.file_key = file_key
29
+ self.filter_tags = filter_tags
30
+ self.model_id = model_id
31
+ self.output_format = output_format
32
+ self.source_trace = source_trace
33
+ self.tags = tags
34
+ self.task_description = task_description
35
+ self.url = url
36
+
37
+ def validate(self):
38
+ if self.contents:
39
+ for v1 in self.contents:
40
+ if v1:
41
+ v1.validate()
42
+ if self.filter_tags:
43
+ for v1 in self.filter_tags:
44
+ if v1:
45
+ v1.validate()
46
+ if self.tags:
47
+ for v1 in self.tags:
48
+ if v1:
49
+ v1.validate()
50
+
51
+ def to_map(self):
52
+ result = dict()
53
+ _map = super().to_map()
54
+ if _map is not None:
55
+ result = _map
56
+ if self.api_key is not None:
57
+ result['apiKey'] = self.api_key
58
+
59
+ result['contents'] = []
60
+ if self.contents is not None:
61
+ for k1 in self.contents:
62
+ result['contents'].append(k1.to_map() if k1 else None)
63
+
64
+ if self.extra_info is not None:
65
+ result['extraInfo'] = self.extra_info
66
+
67
+ if self.file_key is not None:
68
+ result['fileKey'] = self.file_key
69
+
70
+ result['filterTags'] = []
71
+ if self.filter_tags is not None:
72
+ for k1 in self.filter_tags:
73
+ result['filterTags'].append(k1.to_map() if k1 else None)
74
+
75
+ if self.model_id is not None:
76
+ result['modelId'] = self.model_id
77
+
78
+ if self.output_format is not None:
79
+ result['outputFormat'] = self.output_format
80
+
81
+ if self.source_trace is not None:
82
+ result['sourceTrace'] = self.source_trace
83
+
84
+ result['tags'] = []
85
+ if self.tags is not None:
86
+ for k1 in self.tags:
87
+ result['tags'].append(k1.to_map() if k1 else None)
88
+
89
+ if self.task_description is not None:
90
+ result['taskDescription'] = self.task_description
91
+
92
+ if self.url is not None:
93
+ result['url'] = self.url
94
+
95
+ return result
96
+
97
+ def from_map(self, m: dict = None):
98
+ m = m or dict()
99
+ if m.get('apiKey') is not None:
100
+ self.api_key = m.get('apiKey')
101
+
102
+ self.contents = []
103
+ if m.get('contents') is not None:
104
+ for k1 in m.get('contents'):
105
+ temp_model = main_models.SubmitEnterpriseVocAnalysisTaskRequestContents()
106
+ self.contents.append(temp_model.from_map(k1))
107
+
108
+ if m.get('extraInfo') is not None:
109
+ self.extra_info = m.get('extraInfo')
110
+
111
+ if m.get('fileKey') is not None:
112
+ self.file_key = m.get('fileKey')
113
+
114
+ self.filter_tags = []
115
+ if m.get('filterTags') is not None:
116
+ for k1 in m.get('filterTags'):
117
+ temp_model = main_models.SubmitEnterpriseVocAnalysisTaskRequestFilterTags()
118
+ self.filter_tags.append(temp_model.from_map(k1))
119
+
120
+ if m.get('modelId') is not None:
121
+ self.model_id = m.get('modelId')
122
+
123
+ if m.get('outputFormat') is not None:
124
+ self.output_format = m.get('outputFormat')
125
+
126
+ if m.get('sourceTrace') is not None:
127
+ self.source_trace = m.get('sourceTrace')
128
+
129
+ self.tags = []
130
+ if m.get('tags') is not None:
131
+ for k1 in m.get('tags'):
132
+ temp_model = main_models.SubmitEnterpriseVocAnalysisTaskRequestTags()
133
+ self.tags.append(temp_model.from_map(k1))
134
+
135
+ if m.get('taskDescription') is not None:
136
+ self.task_description = m.get('taskDescription')
137
+
138
+ if m.get('url') is not None:
139
+ self.url = m.get('url')
140
+
141
+ return self
142
+
143
+ class SubmitEnterpriseVocAnalysisTaskRequestTags(DaraModel):
144
+ def __init__(
145
+ self,
146
+ tag_define_prompt: str = None,
147
+ tag_name: str = None,
148
+ ):
149
+ self.tag_define_prompt = tag_define_prompt
150
+ self.tag_name = tag_name
151
+
152
+ def validate(self):
153
+ pass
154
+
155
+ def to_map(self):
156
+ result = dict()
157
+ _map = super().to_map()
158
+ if _map is not None:
159
+ result = _map
160
+ if self.tag_define_prompt is not None:
161
+ result['tagDefinePrompt'] = self.tag_define_prompt
162
+
163
+ if self.tag_name is not None:
164
+ result['tagName'] = self.tag_name
165
+
166
+ return result
167
+
168
+ def from_map(self, m: dict = None):
169
+ m = m or dict()
170
+ if m.get('tagDefinePrompt') is not None:
171
+ self.tag_define_prompt = m.get('tagDefinePrompt')
172
+
173
+ if m.get('tagName') is not None:
174
+ self.tag_name = m.get('tagName')
175
+
176
+ return self
177
+
178
+ class SubmitEnterpriseVocAnalysisTaskRequestFilterTags(DaraModel):
179
+ def __init__(
180
+ self,
181
+ tag_define_prompt: str = None,
182
+ tag_name: str = None,
183
+ ):
184
+ self.tag_define_prompt = tag_define_prompt
185
+ self.tag_name = tag_name
186
+
187
+ def validate(self):
188
+ pass
189
+
190
+ def to_map(self):
191
+ result = dict()
192
+ _map = super().to_map()
193
+ if _map is not None:
194
+ result = _map
195
+ if self.tag_define_prompt is not None:
196
+ result['tagDefinePrompt'] = self.tag_define_prompt
197
+
198
+ if self.tag_name is not None:
199
+ result['tagName'] = self.tag_name
200
+
201
+ return result
202
+
203
+ def from_map(self, m: dict = None):
204
+ m = m or dict()
205
+ if m.get('tagDefinePrompt') is not None:
206
+ self.tag_define_prompt = m.get('tagDefinePrompt')
207
+
208
+ if m.get('tagName') is not None:
209
+ self.tag_name = m.get('tagName')
210
+
211
+ return self
212
+
213
+ class SubmitEnterpriseVocAnalysisTaskRequestContents(DaraModel):
214
+ def __init__(
215
+ self,
216
+ id: str = None,
217
+ text: str = None,
218
+ ):
219
+ self.id = id
220
+ self.text = text
221
+
222
+ def validate(self):
223
+ pass
224
+
225
+ def to_map(self):
226
+ result = dict()
227
+ _map = super().to_map()
228
+ if _map is not None:
229
+ result = _map
230
+ if self.id is not None:
231
+ result['id'] = self.id
232
+
233
+ if self.text is not None:
234
+ result['text'] = self.text
235
+
236
+ return result
237
+
238
+ def from_map(self, m: dict = None):
239
+ m = m or dict()
240
+ if m.get('id') is not None:
241
+ self.id = m.get('id')
242
+
243
+ if m.get('text') is not None:
244
+ self.text = m.get('text')
245
+
246
+ return self
247
+
@@ -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 SubmitEnterpriseVocAnalysisTaskResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.SubmitEnterpriseVocAnalysisTaskResponseBody = 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.SubmitEnterpriseVocAnalysisTaskResponseBody()
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 SubmitEnterpriseVocAnalysisTaskResponseBody(DaraModel):
9
+ def __init__(
10
+ self,
11
+ code: str = None,
12
+ data: main_models.SubmitEnterpriseVocAnalysisTaskResponseBodyData = None,
13
+ http_status_code: int = None,
14
+ message: str = None,
15
+ request_id: str = None,
16
+ success: bool = 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.SubmitEnterpriseVocAnalysisTaskResponseBodyData()
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 SubmitEnterpriseVocAnalysisTaskResponseBodyData(DaraModel):
79
+ def __init__(
80
+ self,
81
+ task_id: str = None,
82
+ ):
83
+ self.task_id = task_id
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.task_id is not None:
94
+ result['taskId'] = self.task_id
95
+
96
+ return result
97
+
98
+ def from_map(self, m: dict = None):
99
+ m = m or dict()
100
+ if m.get('taskId') is not None:
101
+ self.task_id = m.get('taskId')
102
+
103
+ return self
104
+
@@ -0,0 +1,113 @@
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 SubmitEnterpriseVocAnalysisTaskShrinkRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ api_key: str = None,
11
+ contents_shrink: str = None,
12
+ extra_info: str = None,
13
+ file_key: str = None,
14
+ filter_tags_shrink: str = None,
15
+ model_id: str = None,
16
+ output_format: str = None,
17
+ source_trace: bool = None,
18
+ tags_shrink: str = None,
19
+ task_description: str = None,
20
+ url: str = None,
21
+ ):
22
+ self.api_key = api_key
23
+ self.contents_shrink = contents_shrink
24
+ self.extra_info = extra_info
25
+ self.file_key = file_key
26
+ self.filter_tags_shrink = filter_tags_shrink
27
+ self.model_id = model_id
28
+ self.output_format = output_format
29
+ self.source_trace = source_trace
30
+ self.tags_shrink = tags_shrink
31
+ self.task_description = task_description
32
+ self.url = url
33
+
34
+ def validate(self):
35
+ pass
36
+
37
+ def to_map(self):
38
+ result = dict()
39
+ _map = super().to_map()
40
+ if _map is not None:
41
+ result = _map
42
+ if self.api_key is not None:
43
+ result['apiKey'] = self.api_key
44
+
45
+ if self.contents_shrink is not None:
46
+ result['contents'] = self.contents_shrink
47
+
48
+ if self.extra_info is not None:
49
+ result['extraInfo'] = self.extra_info
50
+
51
+ if self.file_key is not None:
52
+ result['fileKey'] = self.file_key
53
+
54
+ if self.filter_tags_shrink is not None:
55
+ result['filterTags'] = self.filter_tags_shrink
56
+
57
+ if self.model_id is not None:
58
+ result['modelId'] = self.model_id
59
+
60
+ if self.output_format is not None:
61
+ result['outputFormat'] = self.output_format
62
+
63
+ if self.source_trace is not None:
64
+ result['sourceTrace'] = self.source_trace
65
+
66
+ if self.tags_shrink is not None:
67
+ result['tags'] = self.tags_shrink
68
+
69
+ if self.task_description is not None:
70
+ result['taskDescription'] = self.task_description
71
+
72
+ if self.url is not None:
73
+ result['url'] = self.url
74
+
75
+ return result
76
+
77
+ def from_map(self, m: dict = None):
78
+ m = m or dict()
79
+ if m.get('apiKey') is not None:
80
+ self.api_key = m.get('apiKey')
81
+
82
+ if m.get('contents') is not None:
83
+ self.contents_shrink = m.get('contents')
84
+
85
+ if m.get('extraInfo') is not None:
86
+ self.extra_info = m.get('extraInfo')
87
+
88
+ if m.get('fileKey') is not None:
89
+ self.file_key = m.get('fileKey')
90
+
91
+ if m.get('filterTags') is not None:
92
+ self.filter_tags_shrink = m.get('filterTags')
93
+
94
+ if m.get('modelId') is not None:
95
+ self.model_id = m.get('modelId')
96
+
97
+ if m.get('outputFormat') is not None:
98
+ self.output_format = m.get('outputFormat')
99
+
100
+ if m.get('sourceTrace') is not None:
101
+ self.source_trace = m.get('sourceTrace')
102
+
103
+ if m.get('tags') is not None:
104
+ self.tags_shrink = m.get('tags')
105
+
106
+ if m.get('taskDescription') is not None:
107
+ self.task_description = m.get('taskDescription')
108
+
109
+ if m.get('url') is not None:
110
+ self.url = m.get('url')
111
+
112
+ return self
113
+
@@ -0,0 +1,167 @@
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 SubmitEssayCorrectionTaskRequest(DaraModel):
11
+ def __init__(
12
+ self,
13
+ grade: str = None,
14
+ model_id: str = None,
15
+ other_review_points: str = None,
16
+ question: str = None,
17
+ subject: str = None,
18
+ tasks: List[main_models.SubmitEssayCorrectionTaskRequestTasks] = None,
19
+ total_score: int = None,
20
+ ):
21
+ self.grade = grade
22
+ self.model_id = model_id
23
+ self.other_review_points = other_review_points
24
+ self.question = question
25
+ self.subject = subject
26
+ self.tasks = tasks
27
+ self.total_score = total_score
28
+
29
+ def validate(self):
30
+ if self.tasks:
31
+ for v1 in self.tasks:
32
+ if v1:
33
+ v1.validate()
34
+
35
+ def to_map(self):
36
+ result = dict()
37
+ _map = super().to_map()
38
+ if _map is not None:
39
+ result = _map
40
+ if self.grade is not None:
41
+ result['grade'] = self.grade
42
+
43
+ if self.model_id is not None:
44
+ result['modelId'] = self.model_id
45
+
46
+ if self.other_review_points is not None:
47
+ result['otherReviewPoints'] = self.other_review_points
48
+
49
+ if self.question is not None:
50
+ result['question'] = self.question
51
+
52
+ if self.subject is not None:
53
+ result['subject'] = self.subject
54
+
55
+ result['tasks'] = []
56
+ if self.tasks is not None:
57
+ for k1 in self.tasks:
58
+ result['tasks'].append(k1.to_map() if k1 else None)
59
+
60
+ if self.total_score is not None:
61
+ result['totalScore'] = self.total_score
62
+
63
+ return result
64
+
65
+ def from_map(self, m: dict = None):
66
+ m = m or dict()
67
+ if m.get('grade') is not None:
68
+ self.grade = m.get('grade')
69
+
70
+ if m.get('modelId') is not None:
71
+ self.model_id = m.get('modelId')
72
+
73
+ if m.get('otherReviewPoints') is not None:
74
+ self.other_review_points = m.get('otherReviewPoints')
75
+
76
+ if m.get('question') is not None:
77
+ self.question = m.get('question')
78
+
79
+ if m.get('subject') is not None:
80
+ self.subject = m.get('subject')
81
+
82
+ self.tasks = []
83
+ if m.get('tasks') is not None:
84
+ for k1 in m.get('tasks'):
85
+ temp_model = main_models.SubmitEssayCorrectionTaskRequestTasks()
86
+ self.tasks.append(temp_model.from_map(k1))
87
+
88
+ if m.get('totalScore') is not None:
89
+ self.total_score = m.get('totalScore')
90
+
91
+ return self
92
+
93
+ class SubmitEssayCorrectionTaskRequestTasks(DaraModel):
94
+ def __init__(
95
+ self,
96
+ answer: str = None,
97
+ custom_id: str = None,
98
+ grade: str = None,
99
+ other_review_points: str = None,
100
+ question: str = None,
101
+ subject: str = None,
102
+ total_score: int = None,
103
+ ):
104
+ self.answer = answer
105
+ self.custom_id = custom_id
106
+ self.grade = grade
107
+ self.other_review_points = other_review_points
108
+ self.question = question
109
+ self.subject = subject
110
+ self.total_score = total_score
111
+
112
+ def validate(self):
113
+ pass
114
+
115
+ def to_map(self):
116
+ result = dict()
117
+ _map = super().to_map()
118
+ if _map is not None:
119
+ result = _map
120
+ if self.answer is not None:
121
+ result['answer'] = self.answer
122
+
123
+ if self.custom_id is not None:
124
+ result['customId'] = self.custom_id
125
+
126
+ if self.grade is not None:
127
+ result['grade'] = self.grade
128
+
129
+ if self.other_review_points is not None:
130
+ result['otherReviewPoints'] = self.other_review_points
131
+
132
+ if self.question is not None:
133
+ result['question'] = self.question
134
+
135
+ if self.subject is not None:
136
+ result['subject'] = self.subject
137
+
138
+ if self.total_score is not None:
139
+ result['totalScore'] = self.total_score
140
+
141
+ return result
142
+
143
+ def from_map(self, m: dict = None):
144
+ m = m or dict()
145
+ if m.get('answer') is not None:
146
+ self.answer = m.get('answer')
147
+
148
+ if m.get('customId') is not None:
149
+ self.custom_id = m.get('customId')
150
+
151
+ if m.get('grade') is not None:
152
+ self.grade = m.get('grade')
153
+
154
+ if m.get('otherReviewPoints') is not None:
155
+ self.other_review_points = m.get('otherReviewPoints')
156
+
157
+ if m.get('question') is not None:
158
+ self.question = m.get('question')
159
+
160
+ if m.get('subject') is not None:
161
+ self.subject = m.get('subject')
162
+
163
+ if m.get('totalScore') is not None:
164
+ self.total_score = m.get('totalScore')
165
+
166
+ return self
167
+