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,136 @@
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 RunNetworkContentAuditRequest(DaraModel):
11
+ def __init__(
12
+ self,
13
+ api_key: str = None,
14
+ business_type: str = None,
15
+ content: str = None,
16
+ extra_info: str = None,
17
+ model_id: str = None,
18
+ output_format: str = None,
19
+ tags: List[main_models.RunNetworkContentAuditRequestTags] = None,
20
+ task_description: str = None,
21
+ ):
22
+ self.api_key = api_key
23
+ self.business_type = business_type
24
+ # This parameter is required.
25
+ self.content = content
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
+
32
+ def validate(self):
33
+ if self.tags:
34
+ for v1 in self.tags:
35
+ if v1:
36
+ v1.validate()
37
+
38
+ def to_map(self):
39
+ result = dict()
40
+ _map = super().to_map()
41
+ if _map is not None:
42
+ result = _map
43
+ if self.api_key is not None:
44
+ result['apiKey'] = self.api_key
45
+
46
+ if self.business_type is not None:
47
+ result['businessType'] = self.business_type
48
+
49
+ if self.content is not None:
50
+ result['content'] = self.content
51
+
52
+ if self.extra_info is not None:
53
+ result['extraInfo'] = self.extra_info
54
+
55
+ if self.model_id is not None:
56
+ result['modelId'] = self.model_id
57
+
58
+ if self.output_format is not None:
59
+ result['outputFormat'] = self.output_format
60
+
61
+ result['tags'] = []
62
+ if self.tags is not None:
63
+ for k1 in self.tags:
64
+ result['tags'].append(k1.to_map() if k1 else None)
65
+
66
+ if self.task_description is not None:
67
+ result['taskDescription'] = self.task_description
68
+
69
+ return result
70
+
71
+ def from_map(self, m: dict = None):
72
+ m = m or dict()
73
+ if m.get('apiKey') is not None:
74
+ self.api_key = m.get('apiKey')
75
+
76
+ if m.get('businessType') is not None:
77
+ self.business_type = m.get('businessType')
78
+
79
+ if m.get('content') is not None:
80
+ self.content = m.get('content')
81
+
82
+ if m.get('extraInfo') is not None:
83
+ self.extra_info = m.get('extraInfo')
84
+
85
+ if m.get('modelId') is not None:
86
+ self.model_id = m.get('modelId')
87
+
88
+ if m.get('outputFormat') is not None:
89
+ self.output_format = m.get('outputFormat')
90
+
91
+ self.tags = []
92
+ if m.get('tags') is not None:
93
+ for k1 in m.get('tags'):
94
+ temp_model = main_models.RunNetworkContentAuditRequestTags()
95
+ self.tags.append(temp_model.from_map(k1))
96
+
97
+ if m.get('taskDescription') is not None:
98
+ self.task_description = m.get('taskDescription')
99
+
100
+ return self
101
+
102
+ class RunNetworkContentAuditRequestTags(DaraModel):
103
+ def __init__(
104
+ self,
105
+ tag_define_prompt: str = None,
106
+ tag_name: str = None,
107
+ ):
108
+ self.tag_define_prompt = tag_define_prompt
109
+ self.tag_name = tag_name
110
+
111
+ def validate(self):
112
+ pass
113
+
114
+ def to_map(self):
115
+ result = dict()
116
+ _map = super().to_map()
117
+ if _map is not None:
118
+ result = _map
119
+ if self.tag_define_prompt is not None:
120
+ result['tagDefinePrompt'] = self.tag_define_prompt
121
+
122
+ if self.tag_name is not None:
123
+ result['tagName'] = self.tag_name
124
+
125
+ return result
126
+
127
+ def from_map(self, m: dict = None):
128
+ m = m or dict()
129
+ if m.get('tagDefinePrompt') is not None:
130
+ self.tag_define_prompt = m.get('tagDefinePrompt')
131
+
132
+ if m.get('tagName') is not None:
133
+ self.tag_name = m.get('tagName')
134
+
135
+ return self
136
+
@@ -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 RunNetworkContentAuditResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.RunNetworkContentAuditResponseBody = 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.RunNetworkContentAuditResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,233 @@
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 RunNetworkContentAuditResponseBody(DaraModel):
9
+ def __init__(
10
+ self,
11
+ header: main_models.RunNetworkContentAuditResponseBodyHeader = None,
12
+ payload: main_models.RunNetworkContentAuditResponseBodyPayload = None,
13
+ request_id: str = None,
14
+ ):
15
+ self.header = header
16
+ self.payload = payload
17
+ # Id of the request
18
+ self.request_id = request_id
19
+
20
+ def validate(self):
21
+ if self.header:
22
+ self.header.validate()
23
+ if self.payload:
24
+ self.payload.validate()
25
+
26
+ def to_map(self):
27
+ result = dict()
28
+ _map = super().to_map()
29
+ if _map is not None:
30
+ result = _map
31
+ if self.header is not None:
32
+ result['header'] = self.header.to_map()
33
+
34
+ if self.payload is not None:
35
+ result['payload'] = self.payload.to_map()
36
+
37
+ if self.request_id is not None:
38
+ result['requestId'] = self.request_id
39
+
40
+ return result
41
+
42
+ def from_map(self, m: dict = None):
43
+ m = m or dict()
44
+ if m.get('header') is not None:
45
+ temp_model = main_models.RunNetworkContentAuditResponseBodyHeader()
46
+ self.header = temp_model.from_map(m.get('header'))
47
+
48
+ if m.get('payload') is not None:
49
+ temp_model = main_models.RunNetworkContentAuditResponseBodyPayload()
50
+ self.payload = temp_model.from_map(m.get('payload'))
51
+
52
+ if m.get('requestId') is not None:
53
+ self.request_id = m.get('requestId')
54
+
55
+ return self
56
+
57
+ class RunNetworkContentAuditResponseBodyPayload(DaraModel):
58
+ def __init__(
59
+ self,
60
+ output: main_models.RunNetworkContentAuditResponseBodyPayloadOutput = None,
61
+ usage: main_models.RunNetworkContentAuditResponseBodyPayloadUsage = None,
62
+ ):
63
+ self.output = output
64
+ self.usage = usage
65
+
66
+ def validate(self):
67
+ if self.output:
68
+ self.output.validate()
69
+ if self.usage:
70
+ self.usage.validate()
71
+
72
+ def to_map(self):
73
+ result = dict()
74
+ _map = super().to_map()
75
+ if _map is not None:
76
+ result = _map
77
+ if self.output is not None:
78
+ result['output'] = self.output.to_map()
79
+
80
+ if self.usage is not None:
81
+ result['usage'] = self.usage.to_map()
82
+
83
+ return result
84
+
85
+ def from_map(self, m: dict = None):
86
+ m = m or dict()
87
+ if m.get('output') is not None:
88
+ temp_model = main_models.RunNetworkContentAuditResponseBodyPayloadOutput()
89
+ self.output = temp_model.from_map(m.get('output'))
90
+
91
+ if m.get('usage') is not None:
92
+ temp_model = main_models.RunNetworkContentAuditResponseBodyPayloadUsage()
93
+ self.usage = temp_model.from_map(m.get('usage'))
94
+
95
+ return self
96
+
97
+ class RunNetworkContentAuditResponseBodyPayloadUsage(DaraModel):
98
+ def __init__(
99
+ self,
100
+ input_tokens: int = None,
101
+ output_tokens: int = None,
102
+ total_tokens: int = None,
103
+ ):
104
+ self.input_tokens = input_tokens
105
+ self.output_tokens = output_tokens
106
+ self.total_tokens = total_tokens
107
+
108
+ def validate(self):
109
+ pass
110
+
111
+ def to_map(self):
112
+ result = dict()
113
+ _map = super().to_map()
114
+ if _map is not None:
115
+ result = _map
116
+ if self.input_tokens is not None:
117
+ result['inputTokens'] = self.input_tokens
118
+
119
+ if self.output_tokens is not None:
120
+ result['outputTokens'] = self.output_tokens
121
+
122
+ if self.total_tokens is not None:
123
+ result['totalTokens'] = self.total_tokens
124
+
125
+ return result
126
+
127
+ def from_map(self, m: dict = None):
128
+ m = m or dict()
129
+ if m.get('inputTokens') is not None:
130
+ self.input_tokens = m.get('inputTokens')
131
+
132
+ if m.get('outputTokens') is not None:
133
+ self.output_tokens = m.get('outputTokens')
134
+
135
+ if m.get('totalTokens') is not None:
136
+ self.total_tokens = m.get('totalTokens')
137
+
138
+ return self
139
+
140
+ class RunNetworkContentAuditResponseBodyPayloadOutput(DaraModel):
141
+ def __init__(
142
+ self,
143
+ text: str = None,
144
+ ):
145
+ self.text = text
146
+
147
+ def validate(self):
148
+ pass
149
+
150
+ def to_map(self):
151
+ result = dict()
152
+ _map = super().to_map()
153
+ if _map is not None:
154
+ result = _map
155
+ if self.text is not None:
156
+ result['text'] = self.text
157
+
158
+ return result
159
+
160
+ def from_map(self, m: dict = None):
161
+ m = m or dict()
162
+ if m.get('text') is not None:
163
+ self.text = m.get('text')
164
+
165
+ return self
166
+
167
+ class RunNetworkContentAuditResponseBodyHeader(DaraModel):
168
+ def __init__(
169
+ self,
170
+ error_code: str = None,
171
+ error_message: str = None,
172
+ event: str = None,
173
+ session_id: str = None,
174
+ task_id: str = None,
175
+ trace_id: str = None,
176
+ ):
177
+ self.error_code = error_code
178
+ self.error_message = error_message
179
+ self.event = event
180
+ self.session_id = session_id
181
+ self.task_id = task_id
182
+ self.trace_id = trace_id
183
+
184
+ def validate(self):
185
+ pass
186
+
187
+ def to_map(self):
188
+ result = dict()
189
+ _map = super().to_map()
190
+ if _map is not None:
191
+ result = _map
192
+ if self.error_code is not None:
193
+ result['errorCode'] = self.error_code
194
+
195
+ if self.error_message is not None:
196
+ result['errorMessage'] = self.error_message
197
+
198
+ if self.event is not None:
199
+ result['event'] = self.event
200
+
201
+ if self.session_id is not None:
202
+ result['sessionId'] = self.session_id
203
+
204
+ if self.task_id is not None:
205
+ result['taskId'] = self.task_id
206
+
207
+ if self.trace_id is not None:
208
+ result['traceId'] = self.trace_id
209
+
210
+ return result
211
+
212
+ def from_map(self, m: dict = None):
213
+ m = m or dict()
214
+ if m.get('errorCode') is not None:
215
+ self.error_code = m.get('errorCode')
216
+
217
+ if m.get('errorMessage') is not None:
218
+ self.error_message = m.get('errorMessage')
219
+
220
+ if m.get('event') is not None:
221
+ self.event = m.get('event')
222
+
223
+ if m.get('sessionId') is not None:
224
+ self.session_id = m.get('sessionId')
225
+
226
+ if m.get('taskId') is not None:
227
+ self.task_id = m.get('taskId')
228
+
229
+ if m.get('traceId') is not None:
230
+ self.trace_id = m.get('traceId')
231
+
232
+ return self
233
+
@@ -0,0 +1,90 @@
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 RunNetworkContentAuditShrinkRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ api_key: str = None,
11
+ business_type: str = None,
12
+ content: 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
+ ):
19
+ self.api_key = api_key
20
+ self.business_type = business_type
21
+ # This parameter is required.
22
+ self.content = content
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
+
29
+ def validate(self):
30
+ pass
31
+
32
+ def to_map(self):
33
+ result = dict()
34
+ _map = super().to_map()
35
+ if _map is not None:
36
+ result = _map
37
+ if self.api_key is not None:
38
+ result['apiKey'] = self.api_key
39
+
40
+ if self.business_type is not None:
41
+ result['businessType'] = self.business_type
42
+
43
+ if self.content is not None:
44
+ result['content'] = self.content
45
+
46
+ if self.extra_info is not None:
47
+ result['extraInfo'] = self.extra_info
48
+
49
+ if self.model_id is not None:
50
+ result['modelId'] = self.model_id
51
+
52
+ if self.output_format is not None:
53
+ result['outputFormat'] = self.output_format
54
+
55
+ if self.tags_shrink is not None:
56
+ result['tags'] = self.tags_shrink
57
+
58
+ if self.task_description is not None:
59
+ result['taskDescription'] = self.task_description
60
+
61
+ return result
62
+
63
+ def from_map(self, m: dict = None):
64
+ m = m or dict()
65
+ if m.get('apiKey') is not None:
66
+ self.api_key = m.get('apiKey')
67
+
68
+ if m.get('businessType') is not None:
69
+ self.business_type = m.get('businessType')
70
+
71
+ if m.get('content') is not None:
72
+ self.content = m.get('content')
73
+
74
+ if m.get('extraInfo') is not None:
75
+ self.extra_info = m.get('extraInfo')
76
+
77
+ if m.get('modelId') is not None:
78
+ self.model_id = m.get('modelId')
79
+
80
+ if m.get('outputFormat') is not None:
81
+ self.output_format = m.get('outputFormat')
82
+
83
+ if m.get('tags') is not None:
84
+ self.tags_shrink = m.get('tags')
85
+
86
+ if m.get('taskDescription') is not None:
87
+ self.task_description = m.get('taskDescription')
88
+
89
+ return self
90
+
@@ -0,0 +1,49 @@
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 RunOcrParseRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ file_key: str = None,
11
+ model_id: str = None,
12
+ url: str = None,
13
+ ):
14
+ self.file_key = file_key
15
+ self.model_id = model_id
16
+ self.url = url
17
+
18
+ def validate(self):
19
+ pass
20
+
21
+ def to_map(self):
22
+ result = dict()
23
+ _map = super().to_map()
24
+ if _map is not None:
25
+ result = _map
26
+ if self.file_key is not None:
27
+ result['fileKey'] = self.file_key
28
+
29
+ if self.model_id is not None:
30
+ result['modelId'] = self.model_id
31
+
32
+ if self.url is not None:
33
+ result['url'] = self.url
34
+
35
+ return result
36
+
37
+ def from_map(self, m: dict = None):
38
+ m = m or dict()
39
+ if m.get('fileKey') is not None:
40
+ self.file_key = m.get('fileKey')
41
+
42
+ if m.get('modelId') is not None:
43
+ self.model_id = m.get('modelId')
44
+
45
+ if m.get('url') is not None:
46
+ self.url = m.get('url')
47
+
48
+ return self
49
+
@@ -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 RunOcrParseResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.RunOcrParseResponseBody = 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.RunOcrParseResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+