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,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 SubmitEssayCorrectionTaskResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.SubmitEssayCorrectionTaskResponseBody = 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.SubmitEssayCorrectionTaskResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,103 @@
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 SubmitEssayCorrectionTaskResponseBody(DaraModel):
9
+ def __init__(
10
+ self,
11
+ code: str = None,
12
+ data: main_models.SubmitEssayCorrectionTaskResponseBodyData = 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
+ self.request_id = request_id
23
+ self.success = success
24
+
25
+ def validate(self):
26
+ if self.data:
27
+ self.data.validate()
28
+
29
+ def to_map(self):
30
+ result = dict()
31
+ _map = super().to_map()
32
+ if _map is not None:
33
+ result = _map
34
+ if self.code is not None:
35
+ result['code'] = self.code
36
+
37
+ if self.data is not None:
38
+ result['data'] = self.data.to_map()
39
+
40
+ if self.http_status_code is not None:
41
+ result['httpStatusCode'] = self.http_status_code
42
+
43
+ if self.message is not None:
44
+ result['message'] = self.message
45
+
46
+ if self.request_id is not None:
47
+ result['requestId'] = self.request_id
48
+
49
+ if self.success is not None:
50
+ result['success'] = self.success
51
+
52
+ return result
53
+
54
+ def from_map(self, m: dict = None):
55
+ m = m or dict()
56
+ if m.get('code') is not None:
57
+ self.code = m.get('code')
58
+
59
+ if m.get('data') is not None:
60
+ temp_model = main_models.SubmitEssayCorrectionTaskResponseBodyData()
61
+ self.data = temp_model.from_map(m.get('data'))
62
+
63
+ if m.get('httpStatusCode') is not None:
64
+ self.http_status_code = m.get('httpStatusCode')
65
+
66
+ if m.get('message') is not None:
67
+ self.message = m.get('message')
68
+
69
+ if m.get('requestId') is not None:
70
+ self.request_id = m.get('requestId')
71
+
72
+ if m.get('success') is not None:
73
+ self.success = m.get('success')
74
+
75
+ return self
76
+
77
+ class SubmitEssayCorrectionTaskResponseBodyData(DaraModel):
78
+ def __init__(
79
+ self,
80
+ task_id: str = None,
81
+ ):
82
+ self.task_id = task_id
83
+
84
+ def validate(self):
85
+ pass
86
+
87
+ def to_map(self):
88
+ result = dict()
89
+ _map = super().to_map()
90
+ if _map is not None:
91
+ result = _map
92
+ if self.task_id is not None:
93
+ result['taskId'] = self.task_id
94
+
95
+ return result
96
+
97
+ def from_map(self, m: dict = None):
98
+ m = m or dict()
99
+ if m.get('taskId') is not None:
100
+ self.task_id = m.get('taskId')
101
+
102
+ return self
103
+
@@ -0,0 +1,81 @@
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 SubmitEssayCorrectionTaskShrinkRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ grade: str = None,
11
+ model_id: str = None,
12
+ other_review_points: str = None,
13
+ question: str = None,
14
+ subject: str = None,
15
+ tasks_shrink: str = None,
16
+ total_score: int = None,
17
+ ):
18
+ self.grade = grade
19
+ self.model_id = model_id
20
+ self.other_review_points = other_review_points
21
+ self.question = question
22
+ self.subject = subject
23
+ self.tasks_shrink = tasks_shrink
24
+ self.total_score = total_score
25
+
26
+ def validate(self):
27
+ pass
28
+
29
+ def to_map(self):
30
+ result = dict()
31
+ _map = super().to_map()
32
+ if _map is not None:
33
+ result = _map
34
+ if self.grade is not None:
35
+ result['grade'] = self.grade
36
+
37
+ if self.model_id is not None:
38
+ result['modelId'] = self.model_id
39
+
40
+ if self.other_review_points is not None:
41
+ result['otherReviewPoints'] = self.other_review_points
42
+
43
+ if self.question is not None:
44
+ result['question'] = self.question
45
+
46
+ if self.subject is not None:
47
+ result['subject'] = self.subject
48
+
49
+ if self.tasks_shrink is not None:
50
+ result['tasks'] = self.tasks_shrink
51
+
52
+ if self.total_score is not None:
53
+ result['totalScore'] = self.total_score
54
+
55
+ return result
56
+
57
+ def from_map(self, m: dict = None):
58
+ m = m or dict()
59
+ if m.get('grade') is not None:
60
+ self.grade = m.get('grade')
61
+
62
+ if m.get('modelId') is not None:
63
+ self.model_id = m.get('modelId')
64
+
65
+ if m.get('otherReviewPoints') is not None:
66
+ self.other_review_points = m.get('otherReviewPoints')
67
+
68
+ if m.get('question') is not None:
69
+ self.question = m.get('question')
70
+
71
+ if m.get('subject') is not None:
72
+ self.subject = m.get('subject')
73
+
74
+ if m.get('tasks') is not None:
75
+ self.tasks_shrink = m.get('tasks')
76
+
77
+ if m.get('totalScore') is not None:
78
+ self.total_score = m.get('totalScore')
79
+
80
+ return self
81
+
@@ -0,0 +1,143 @@
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 SubmitTagMiningAnalysisTaskRequest(DaraModel):
11
+ def __init__(
12
+ self,
13
+ api_key: str = None,
14
+ business_type: str = None,
15
+ contents: List[str] = None,
16
+ extra_info: str = None,
17
+ model_id: str = None,
18
+ output_format: str = None,
19
+ tags: List[main_models.SubmitTagMiningAnalysisTaskRequestTags] = None,
20
+ task_description: str = None,
21
+ url: str = None,
22
+ ):
23
+ self.api_key = api_key
24
+ self.business_type = business_type
25
+ self.contents = contents
26
+ self.extra_info = extra_info
27
+ self.model_id = model_id
28
+ self.output_format = output_format
29
+ self.tags = tags
30
+ self.task_description = task_description
31
+ self.url = url
32
+
33
+ def validate(self):
34
+ if self.tags:
35
+ for v1 in self.tags:
36
+ if v1:
37
+ v1.validate()
38
+
39
+ def to_map(self):
40
+ result = dict()
41
+ _map = super().to_map()
42
+ if _map is not None:
43
+ result = _map
44
+ if self.api_key is not None:
45
+ result['apiKey'] = self.api_key
46
+
47
+ if self.business_type is not None:
48
+ result['businessType'] = self.business_type
49
+
50
+ if self.contents is not None:
51
+ result['contents'] = self.contents
52
+
53
+ if self.extra_info is not None:
54
+ result['extraInfo'] = self.extra_info
55
+
56
+ if self.model_id is not None:
57
+ result['modelId'] = self.model_id
58
+
59
+ if self.output_format is not None:
60
+ result['outputFormat'] = self.output_format
61
+
62
+ result['tags'] = []
63
+ if self.tags is not None:
64
+ for k1 in self.tags:
65
+ result['tags'].append(k1.to_map() if k1 else None)
66
+
67
+ if self.task_description is not None:
68
+ result['taskDescription'] = self.task_description
69
+
70
+ if self.url is not None:
71
+ result['url'] = self.url
72
+
73
+ return result
74
+
75
+ def from_map(self, m: dict = None):
76
+ m = m or dict()
77
+ if m.get('apiKey') is not None:
78
+ self.api_key = m.get('apiKey')
79
+
80
+ if m.get('businessType') is not None:
81
+ self.business_type = m.get('businessType')
82
+
83
+ if m.get('contents') is not None:
84
+ self.contents = m.get('contents')
85
+
86
+ if m.get('extraInfo') is not None:
87
+ self.extra_info = m.get('extraInfo')
88
+
89
+ if m.get('modelId') is not None:
90
+ self.model_id = m.get('modelId')
91
+
92
+ if m.get('outputFormat') is not None:
93
+ self.output_format = m.get('outputFormat')
94
+
95
+ self.tags = []
96
+ if m.get('tags') is not None:
97
+ for k1 in m.get('tags'):
98
+ temp_model = main_models.SubmitTagMiningAnalysisTaskRequestTags()
99
+ self.tags.append(temp_model.from_map(k1))
100
+
101
+ if m.get('taskDescription') is not None:
102
+ self.task_description = m.get('taskDescription')
103
+
104
+ if m.get('url') is not None:
105
+ self.url = m.get('url')
106
+
107
+ return self
108
+
109
+ class SubmitTagMiningAnalysisTaskRequestTags(DaraModel):
110
+ def __init__(
111
+ self,
112
+ tag_define_prompt: str = None,
113
+ tag_name: str = None,
114
+ ):
115
+ self.tag_define_prompt = tag_define_prompt
116
+ self.tag_name = tag_name
117
+
118
+ def validate(self):
119
+ pass
120
+
121
+ def to_map(self):
122
+ result = dict()
123
+ _map = super().to_map()
124
+ if _map is not None:
125
+ result = _map
126
+ if self.tag_define_prompt is not None:
127
+ result['tagDefinePrompt'] = self.tag_define_prompt
128
+
129
+ if self.tag_name is not None:
130
+ result['tagName'] = self.tag_name
131
+
132
+ return result
133
+
134
+ def from_map(self, m: dict = None):
135
+ m = m or dict()
136
+ if m.get('tagDefinePrompt') is not None:
137
+ self.tag_define_prompt = m.get('tagDefinePrompt')
138
+
139
+ if m.get('tagName') is not None:
140
+ self.tag_name = m.get('tagName')
141
+
142
+ return self
143
+
@@ -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 SubmitTagMiningAnalysisTaskResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.SubmitTagMiningAnalysisTaskResponseBody = 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.SubmitTagMiningAnalysisTaskResponseBody()
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 SubmitTagMiningAnalysisTaskResponseBody(DaraModel):
9
+ def __init__(
10
+ self,
11
+ code: str = None,
12
+ data: main_models.SubmitTagMiningAnalysisTaskResponseBodyData = 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.SubmitTagMiningAnalysisTaskResponseBodyData()
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 SubmitTagMiningAnalysisTaskResponseBodyData(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,97 @@
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 SubmitTagMiningAnalysisTaskShrinkRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ api_key: str = None,
11
+ business_type: str = None,
12
+ contents_shrink: str = None,
13
+ extra_info: str = None,
14
+ model_id: str = None,
15
+ output_format: str = None,
16
+ tags_shrink: str = None,
17
+ task_description: str = None,
18
+ url: str = None,
19
+ ):
20
+ self.api_key = api_key
21
+ self.business_type = business_type
22
+ self.contents_shrink = contents_shrink
23
+ self.extra_info = extra_info
24
+ self.model_id = model_id
25
+ self.output_format = output_format
26
+ self.tags_shrink = tags_shrink
27
+ self.task_description = task_description
28
+ self.url = url
29
+
30
+ def validate(self):
31
+ pass
32
+
33
+ def to_map(self):
34
+ result = dict()
35
+ _map = super().to_map()
36
+ if _map is not None:
37
+ result = _map
38
+ if self.api_key is not None:
39
+ result['apiKey'] = self.api_key
40
+
41
+ if self.business_type is not None:
42
+ result['businessType'] = self.business_type
43
+
44
+ if self.contents_shrink is not None:
45
+ result['contents'] = self.contents_shrink
46
+
47
+ if self.extra_info is not None:
48
+ result['extraInfo'] = self.extra_info
49
+
50
+ if self.model_id is not None:
51
+ result['modelId'] = self.model_id
52
+
53
+ if self.output_format is not None:
54
+ result['outputFormat'] = self.output_format
55
+
56
+ if self.tags_shrink is not None:
57
+ result['tags'] = self.tags_shrink
58
+
59
+ if self.task_description is not None:
60
+ result['taskDescription'] = self.task_description
61
+
62
+ if self.url is not None:
63
+ result['url'] = self.url
64
+
65
+ return result
66
+
67
+ def from_map(self, m: dict = None):
68
+ m = m or dict()
69
+ if m.get('apiKey') is not None:
70
+ self.api_key = m.get('apiKey')
71
+
72
+ if m.get('businessType') is not None:
73
+ self.business_type = m.get('businessType')
74
+
75
+ if m.get('contents') is not None:
76
+ self.contents_shrink = m.get('contents')
77
+
78
+ if m.get('extraInfo') is not None:
79
+ self.extra_info = m.get('extraInfo')
80
+
81
+ if m.get('modelId') is not None:
82
+ self.model_id = m.get('modelId')
83
+
84
+ if m.get('outputFormat') is not None:
85
+ self.output_format = m.get('outputFormat')
86
+
87
+ if m.get('tags') is not None:
88
+ self.tags_shrink = m.get('tags')
89
+
90
+ if m.get('taskDescription') is not None:
91
+ self.task_description = m.get('taskDescription')
92
+
93
+ if m.get('url') is not None:
94
+ self.url = m.get('url')
95
+
96
+ return self
97
+