alibabacloud-quanmiaolightapp20240801 1.0.0__tar.gz → 1.2.0__tar.gz
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.
- alibabacloud_quanmiaolightapp20240801-1.2.0/ChangeLog.md +8 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/PKG-INFO +1 -1
- alibabacloud_quanmiaolightapp20240801-1.2.0/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/alibabacloud_quanmiaolightapp20240801/client.py +124 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/alibabacloud_quanmiaolightapp20240801/models.py +458 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +1 -1
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +1 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/setup.py +1 -1
- alibabacloud_quanmiaolightapp20240801-1.0.0/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/LICENSE +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/MANIFEST.in +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/README-CN.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/README.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/setup.cfg +0 -0
{alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud_quanmiaolightapp20240801
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.2.0'
|
|
@@ -41,6 +41,130 @@ class Client(OpenApiClient):
|
|
|
41
41
|
return endpoint_map.get(region_id)
|
|
42
42
|
return EndpointUtilClient.get_endpoint_rules(product_id, region_id, endpoint_rule, network, suffix)
|
|
43
43
|
|
|
44
|
+
def list_hot_topic_summaries_with_options(
|
|
45
|
+
self,
|
|
46
|
+
workspace_id: str,
|
|
47
|
+
request: quan_miao_light_app_20240801_models.ListHotTopicSummariesRequest,
|
|
48
|
+
headers: Dict[str, str],
|
|
49
|
+
runtime: util_models.RuntimeOptions,
|
|
50
|
+
) -> quan_miao_light_app_20240801_models.ListHotTopicSummariesResponse:
|
|
51
|
+
"""
|
|
52
|
+
@summary 轻应用-新闻播报-获取热点话题摘要列表
|
|
53
|
+
|
|
54
|
+
@param request: ListHotTopicSummariesRequest
|
|
55
|
+
@param headers: map
|
|
56
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
57
|
+
@return: ListHotTopicSummariesResponse
|
|
58
|
+
"""
|
|
59
|
+
UtilClient.validate_model(request)
|
|
60
|
+
body = {}
|
|
61
|
+
if not UtilClient.is_unset(request.category):
|
|
62
|
+
body['category'] = request.category
|
|
63
|
+
if not UtilClient.is_unset(request.hot_topic):
|
|
64
|
+
body['hotTopic'] = request.hot_topic
|
|
65
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
66
|
+
body['hotTopicVersion'] = request.hot_topic_version
|
|
67
|
+
if not UtilClient.is_unset(request.max_results):
|
|
68
|
+
body['maxResults'] = request.max_results
|
|
69
|
+
if not UtilClient.is_unset(request.next_token):
|
|
70
|
+
body['nextToken'] = request.next_token
|
|
71
|
+
req = open_api_models.OpenApiRequest(
|
|
72
|
+
headers=headers,
|
|
73
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
74
|
+
)
|
|
75
|
+
params = open_api_models.Params(
|
|
76
|
+
action='ListHotTopicSummaries',
|
|
77
|
+
version='2024-08-01',
|
|
78
|
+
protocol='HTTPS',
|
|
79
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/listHotTopicSummaries',
|
|
80
|
+
method='POST',
|
|
81
|
+
auth_type='AK',
|
|
82
|
+
style='ROA',
|
|
83
|
+
req_body_type='formData',
|
|
84
|
+
body_type='json'
|
|
85
|
+
)
|
|
86
|
+
return TeaCore.from_map(
|
|
87
|
+
quan_miao_light_app_20240801_models.ListHotTopicSummariesResponse(),
|
|
88
|
+
self.call_api(params, req, runtime)
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
async def list_hot_topic_summaries_with_options_async(
|
|
92
|
+
self,
|
|
93
|
+
workspace_id: str,
|
|
94
|
+
request: quan_miao_light_app_20240801_models.ListHotTopicSummariesRequest,
|
|
95
|
+
headers: Dict[str, str],
|
|
96
|
+
runtime: util_models.RuntimeOptions,
|
|
97
|
+
) -> quan_miao_light_app_20240801_models.ListHotTopicSummariesResponse:
|
|
98
|
+
"""
|
|
99
|
+
@summary 轻应用-新闻播报-获取热点话题摘要列表
|
|
100
|
+
|
|
101
|
+
@param request: ListHotTopicSummariesRequest
|
|
102
|
+
@param headers: map
|
|
103
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
104
|
+
@return: ListHotTopicSummariesResponse
|
|
105
|
+
"""
|
|
106
|
+
UtilClient.validate_model(request)
|
|
107
|
+
body = {}
|
|
108
|
+
if not UtilClient.is_unset(request.category):
|
|
109
|
+
body['category'] = request.category
|
|
110
|
+
if not UtilClient.is_unset(request.hot_topic):
|
|
111
|
+
body['hotTopic'] = request.hot_topic
|
|
112
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
113
|
+
body['hotTopicVersion'] = request.hot_topic_version
|
|
114
|
+
if not UtilClient.is_unset(request.max_results):
|
|
115
|
+
body['maxResults'] = request.max_results
|
|
116
|
+
if not UtilClient.is_unset(request.next_token):
|
|
117
|
+
body['nextToken'] = request.next_token
|
|
118
|
+
req = open_api_models.OpenApiRequest(
|
|
119
|
+
headers=headers,
|
|
120
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
121
|
+
)
|
|
122
|
+
params = open_api_models.Params(
|
|
123
|
+
action='ListHotTopicSummaries',
|
|
124
|
+
version='2024-08-01',
|
|
125
|
+
protocol='HTTPS',
|
|
126
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/listHotTopicSummaries',
|
|
127
|
+
method='POST',
|
|
128
|
+
auth_type='AK',
|
|
129
|
+
style='ROA',
|
|
130
|
+
req_body_type='formData',
|
|
131
|
+
body_type='json'
|
|
132
|
+
)
|
|
133
|
+
return TeaCore.from_map(
|
|
134
|
+
quan_miao_light_app_20240801_models.ListHotTopicSummariesResponse(),
|
|
135
|
+
await self.call_api_async(params, req, runtime)
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
def list_hot_topic_summaries(
|
|
139
|
+
self,
|
|
140
|
+
workspace_id: str,
|
|
141
|
+
request: quan_miao_light_app_20240801_models.ListHotTopicSummariesRequest,
|
|
142
|
+
) -> quan_miao_light_app_20240801_models.ListHotTopicSummariesResponse:
|
|
143
|
+
"""
|
|
144
|
+
@summary 轻应用-新闻播报-获取热点话题摘要列表
|
|
145
|
+
|
|
146
|
+
@param request: ListHotTopicSummariesRequest
|
|
147
|
+
@return: ListHotTopicSummariesResponse
|
|
148
|
+
"""
|
|
149
|
+
runtime = util_models.RuntimeOptions()
|
|
150
|
+
headers = {}
|
|
151
|
+
return self.list_hot_topic_summaries_with_options(workspace_id, request, headers, runtime)
|
|
152
|
+
|
|
153
|
+
async def list_hot_topic_summaries_async(
|
|
154
|
+
self,
|
|
155
|
+
workspace_id: str,
|
|
156
|
+
request: quan_miao_light_app_20240801_models.ListHotTopicSummariesRequest,
|
|
157
|
+
) -> quan_miao_light_app_20240801_models.ListHotTopicSummariesResponse:
|
|
158
|
+
"""
|
|
159
|
+
@summary 轻应用-新闻播报-获取热点话题摘要列表
|
|
160
|
+
|
|
161
|
+
@param request: ListHotTopicSummariesRequest
|
|
162
|
+
@return: ListHotTopicSummariesResponse
|
|
163
|
+
"""
|
|
164
|
+
runtime = util_models.RuntimeOptions()
|
|
165
|
+
headers = {}
|
|
166
|
+
return await self.list_hot_topic_summaries_with_options_async(workspace_id, request, headers, runtime)
|
|
167
|
+
|
|
44
168
|
def run_marketing_information_extract_with_options(
|
|
45
169
|
self,
|
|
46
170
|
workspace_id: str,
|
|
@@ -4,6 +4,416 @@ from Tea.model import TeaModel
|
|
|
4
4
|
from typing import List, Dict
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
class ListHotTopicSummariesRequest(TeaModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
category: str = None,
|
|
11
|
+
hot_topic: str = None,
|
|
12
|
+
hot_topic_version: str = None,
|
|
13
|
+
max_results: int = None,
|
|
14
|
+
next_token: str = None,
|
|
15
|
+
):
|
|
16
|
+
self.category = category
|
|
17
|
+
self.hot_topic = hot_topic
|
|
18
|
+
self.hot_topic_version = hot_topic_version
|
|
19
|
+
self.max_results = max_results
|
|
20
|
+
self.next_token = next_token
|
|
21
|
+
|
|
22
|
+
def validate(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def to_map(self):
|
|
26
|
+
_map = super().to_map()
|
|
27
|
+
if _map is not None:
|
|
28
|
+
return _map
|
|
29
|
+
|
|
30
|
+
result = dict()
|
|
31
|
+
if self.category is not None:
|
|
32
|
+
result['category'] = self.category
|
|
33
|
+
if self.hot_topic is not None:
|
|
34
|
+
result['hotTopic'] = self.hot_topic
|
|
35
|
+
if self.hot_topic_version is not None:
|
|
36
|
+
result['hotTopicVersion'] = self.hot_topic_version
|
|
37
|
+
if self.max_results is not None:
|
|
38
|
+
result['maxResults'] = self.max_results
|
|
39
|
+
if self.next_token is not None:
|
|
40
|
+
result['nextToken'] = self.next_token
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def from_map(self, m: dict = None):
|
|
44
|
+
m = m or dict()
|
|
45
|
+
if m.get('category') is not None:
|
|
46
|
+
self.category = m.get('category')
|
|
47
|
+
if m.get('hotTopic') is not None:
|
|
48
|
+
self.hot_topic = m.get('hotTopic')
|
|
49
|
+
if m.get('hotTopicVersion') is not None:
|
|
50
|
+
self.hot_topic_version = m.get('hotTopicVersion')
|
|
51
|
+
if m.get('maxResults') is not None:
|
|
52
|
+
self.max_results = m.get('maxResults')
|
|
53
|
+
if m.get('nextToken') is not None:
|
|
54
|
+
self.next_token = m.get('nextToken')
|
|
55
|
+
return self
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class ListHotTopicSummariesResponseBodyDataNewsComments(TeaModel):
|
|
59
|
+
def __init__(
|
|
60
|
+
self,
|
|
61
|
+
text: str = None,
|
|
62
|
+
):
|
|
63
|
+
self.text = text
|
|
64
|
+
|
|
65
|
+
def validate(self):
|
|
66
|
+
pass
|
|
67
|
+
|
|
68
|
+
def to_map(self):
|
|
69
|
+
_map = super().to_map()
|
|
70
|
+
if _map is not None:
|
|
71
|
+
return _map
|
|
72
|
+
|
|
73
|
+
result = dict()
|
|
74
|
+
if self.text is not None:
|
|
75
|
+
result['text'] = self.text
|
|
76
|
+
return result
|
|
77
|
+
|
|
78
|
+
def from_map(self, m: dict = None):
|
|
79
|
+
m = m or dict()
|
|
80
|
+
if m.get('text') is not None:
|
|
81
|
+
self.text = m.get('text')
|
|
82
|
+
return self
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
class ListHotTopicSummariesResponseBodyDataNews(TeaModel):
|
|
86
|
+
def __init__(
|
|
87
|
+
self,
|
|
88
|
+
comments: List[ListHotTopicSummariesResponseBodyDataNewsComments] = None,
|
|
89
|
+
content: str = None,
|
|
90
|
+
pub_time: str = None,
|
|
91
|
+
title: str = None,
|
|
92
|
+
url: str = None,
|
|
93
|
+
):
|
|
94
|
+
self.comments = comments
|
|
95
|
+
self.content = content
|
|
96
|
+
self.pub_time = pub_time
|
|
97
|
+
self.title = title
|
|
98
|
+
# url
|
|
99
|
+
self.url = url
|
|
100
|
+
|
|
101
|
+
def validate(self):
|
|
102
|
+
if self.comments:
|
|
103
|
+
for k in self.comments:
|
|
104
|
+
if k:
|
|
105
|
+
k.validate()
|
|
106
|
+
|
|
107
|
+
def to_map(self):
|
|
108
|
+
_map = super().to_map()
|
|
109
|
+
if _map is not None:
|
|
110
|
+
return _map
|
|
111
|
+
|
|
112
|
+
result = dict()
|
|
113
|
+
result['comments'] = []
|
|
114
|
+
if self.comments is not None:
|
|
115
|
+
for k in self.comments:
|
|
116
|
+
result['comments'].append(k.to_map() if k else None)
|
|
117
|
+
if self.content is not None:
|
|
118
|
+
result['content'] = self.content
|
|
119
|
+
if self.pub_time is not None:
|
|
120
|
+
result['pubTime'] = self.pub_time
|
|
121
|
+
if self.title is not None:
|
|
122
|
+
result['title'] = self.title
|
|
123
|
+
if self.url is not None:
|
|
124
|
+
result['url'] = self.url
|
|
125
|
+
return result
|
|
126
|
+
|
|
127
|
+
def from_map(self, m: dict = None):
|
|
128
|
+
m = m or dict()
|
|
129
|
+
self.comments = []
|
|
130
|
+
if m.get('comments') is not None:
|
|
131
|
+
for k in m.get('comments'):
|
|
132
|
+
temp_model = ListHotTopicSummariesResponseBodyDataNewsComments()
|
|
133
|
+
self.comments.append(temp_model.from_map(k))
|
|
134
|
+
if m.get('content') is not None:
|
|
135
|
+
self.content = m.get('content')
|
|
136
|
+
if m.get('pubTime') is not None:
|
|
137
|
+
self.pub_time = m.get('pubTime')
|
|
138
|
+
if m.get('title') is not None:
|
|
139
|
+
self.title = m.get('title')
|
|
140
|
+
if m.get('url') is not None:
|
|
141
|
+
self.url = m.get('url')
|
|
142
|
+
return self
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class ListHotTopicSummariesResponseBodyDataSummarySummaries(TeaModel):
|
|
146
|
+
def __init__(
|
|
147
|
+
self,
|
|
148
|
+
summary: str = None,
|
|
149
|
+
title: str = None,
|
|
150
|
+
):
|
|
151
|
+
self.summary = summary
|
|
152
|
+
self.title = title
|
|
153
|
+
|
|
154
|
+
def validate(self):
|
|
155
|
+
pass
|
|
156
|
+
|
|
157
|
+
def to_map(self):
|
|
158
|
+
_map = super().to_map()
|
|
159
|
+
if _map is not None:
|
|
160
|
+
return _map
|
|
161
|
+
|
|
162
|
+
result = dict()
|
|
163
|
+
if self.summary is not None:
|
|
164
|
+
result['summary'] = self.summary
|
|
165
|
+
if self.title is not None:
|
|
166
|
+
result['title'] = self.title
|
|
167
|
+
return result
|
|
168
|
+
|
|
169
|
+
def from_map(self, m: dict = None):
|
|
170
|
+
m = m or dict()
|
|
171
|
+
if m.get('summary') is not None:
|
|
172
|
+
self.summary = m.get('summary')
|
|
173
|
+
if m.get('title') is not None:
|
|
174
|
+
self.title = m.get('title')
|
|
175
|
+
return self
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class ListHotTopicSummariesResponseBodyDataSummary(TeaModel):
|
|
179
|
+
def __init__(
|
|
180
|
+
self,
|
|
181
|
+
summaries: List[ListHotTopicSummariesResponseBodyDataSummarySummaries] = None,
|
|
182
|
+
):
|
|
183
|
+
self.summaries = summaries
|
|
184
|
+
|
|
185
|
+
def validate(self):
|
|
186
|
+
if self.summaries:
|
|
187
|
+
for k in self.summaries:
|
|
188
|
+
if k:
|
|
189
|
+
k.validate()
|
|
190
|
+
|
|
191
|
+
def to_map(self):
|
|
192
|
+
_map = super().to_map()
|
|
193
|
+
if _map is not None:
|
|
194
|
+
return _map
|
|
195
|
+
|
|
196
|
+
result = dict()
|
|
197
|
+
result['summaries'] = []
|
|
198
|
+
if self.summaries is not None:
|
|
199
|
+
for k in self.summaries:
|
|
200
|
+
result['summaries'].append(k.to_map() if k else None)
|
|
201
|
+
return result
|
|
202
|
+
|
|
203
|
+
def from_map(self, m: dict = None):
|
|
204
|
+
m = m or dict()
|
|
205
|
+
self.summaries = []
|
|
206
|
+
if m.get('summaries') is not None:
|
|
207
|
+
for k in m.get('summaries'):
|
|
208
|
+
temp_model = ListHotTopicSummariesResponseBodyDataSummarySummaries()
|
|
209
|
+
self.summaries.append(temp_model.from_map(k))
|
|
210
|
+
return self
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
class ListHotTopicSummariesResponseBodyData(TeaModel):
|
|
214
|
+
def __init__(
|
|
215
|
+
self,
|
|
216
|
+
category: str = None,
|
|
217
|
+
hot_topic: str = None,
|
|
218
|
+
hot_topic_version: str = None,
|
|
219
|
+
hot_value: float = None,
|
|
220
|
+
id: str = None,
|
|
221
|
+
news: List[ListHotTopicSummariesResponseBodyDataNews] = None,
|
|
222
|
+
summary: ListHotTopicSummariesResponseBodyDataSummary = None,
|
|
223
|
+
text_summary: str = None,
|
|
224
|
+
):
|
|
225
|
+
self.category = category
|
|
226
|
+
self.hot_topic = hot_topic
|
|
227
|
+
self.hot_topic_version = hot_topic_version
|
|
228
|
+
self.hot_value = hot_value
|
|
229
|
+
self.id = id
|
|
230
|
+
self.news = news
|
|
231
|
+
self.summary = summary
|
|
232
|
+
self.text_summary = text_summary
|
|
233
|
+
|
|
234
|
+
def validate(self):
|
|
235
|
+
if self.news:
|
|
236
|
+
for k in self.news:
|
|
237
|
+
if k:
|
|
238
|
+
k.validate()
|
|
239
|
+
if self.summary:
|
|
240
|
+
self.summary.validate()
|
|
241
|
+
|
|
242
|
+
def to_map(self):
|
|
243
|
+
_map = super().to_map()
|
|
244
|
+
if _map is not None:
|
|
245
|
+
return _map
|
|
246
|
+
|
|
247
|
+
result = dict()
|
|
248
|
+
if self.category is not None:
|
|
249
|
+
result['category'] = self.category
|
|
250
|
+
if self.hot_topic is not None:
|
|
251
|
+
result['hotTopic'] = self.hot_topic
|
|
252
|
+
if self.hot_topic_version is not None:
|
|
253
|
+
result['hotTopicVersion'] = self.hot_topic_version
|
|
254
|
+
if self.hot_value is not None:
|
|
255
|
+
result['hotValue'] = self.hot_value
|
|
256
|
+
if self.id is not None:
|
|
257
|
+
result['id'] = self.id
|
|
258
|
+
result['news'] = []
|
|
259
|
+
if self.news is not None:
|
|
260
|
+
for k in self.news:
|
|
261
|
+
result['news'].append(k.to_map() if k else None)
|
|
262
|
+
if self.summary is not None:
|
|
263
|
+
result['summary'] = self.summary.to_map()
|
|
264
|
+
if self.text_summary is not None:
|
|
265
|
+
result['textSummary'] = self.text_summary
|
|
266
|
+
return result
|
|
267
|
+
|
|
268
|
+
def from_map(self, m: dict = None):
|
|
269
|
+
m = m or dict()
|
|
270
|
+
if m.get('category') is not None:
|
|
271
|
+
self.category = m.get('category')
|
|
272
|
+
if m.get('hotTopic') is not None:
|
|
273
|
+
self.hot_topic = m.get('hotTopic')
|
|
274
|
+
if m.get('hotTopicVersion') is not None:
|
|
275
|
+
self.hot_topic_version = m.get('hotTopicVersion')
|
|
276
|
+
if m.get('hotValue') is not None:
|
|
277
|
+
self.hot_value = m.get('hotValue')
|
|
278
|
+
if m.get('id') is not None:
|
|
279
|
+
self.id = m.get('id')
|
|
280
|
+
self.news = []
|
|
281
|
+
if m.get('news') is not None:
|
|
282
|
+
for k in m.get('news'):
|
|
283
|
+
temp_model = ListHotTopicSummariesResponseBodyDataNews()
|
|
284
|
+
self.news.append(temp_model.from_map(k))
|
|
285
|
+
if m.get('summary') is not None:
|
|
286
|
+
temp_model = ListHotTopicSummariesResponseBodyDataSummary()
|
|
287
|
+
self.summary = temp_model.from_map(m['summary'])
|
|
288
|
+
if m.get('textSummary') is not None:
|
|
289
|
+
self.text_summary = m.get('textSummary')
|
|
290
|
+
return self
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
class ListHotTopicSummariesResponseBody(TeaModel):
|
|
294
|
+
def __init__(
|
|
295
|
+
self,
|
|
296
|
+
code: str = None,
|
|
297
|
+
data: List[ListHotTopicSummariesResponseBodyData] = None,
|
|
298
|
+
http_status_code: int = None,
|
|
299
|
+
max_results: int = None,
|
|
300
|
+
message: str = None,
|
|
301
|
+
next_token: str = None,
|
|
302
|
+
request_id: str = None,
|
|
303
|
+
success: bool = None,
|
|
304
|
+
total_count: int = None,
|
|
305
|
+
):
|
|
306
|
+
self.code = code
|
|
307
|
+
self.data = data
|
|
308
|
+
self.http_status_code = http_status_code
|
|
309
|
+
self.max_results = max_results
|
|
310
|
+
self.message = message
|
|
311
|
+
self.next_token = next_token
|
|
312
|
+
self.request_id = request_id
|
|
313
|
+
self.success = success
|
|
314
|
+
self.total_count = total_count
|
|
315
|
+
|
|
316
|
+
def validate(self):
|
|
317
|
+
if self.data:
|
|
318
|
+
for k in self.data:
|
|
319
|
+
if k:
|
|
320
|
+
k.validate()
|
|
321
|
+
|
|
322
|
+
def to_map(self):
|
|
323
|
+
_map = super().to_map()
|
|
324
|
+
if _map is not None:
|
|
325
|
+
return _map
|
|
326
|
+
|
|
327
|
+
result = dict()
|
|
328
|
+
if self.code is not None:
|
|
329
|
+
result['code'] = self.code
|
|
330
|
+
result['data'] = []
|
|
331
|
+
if self.data is not None:
|
|
332
|
+
for k in self.data:
|
|
333
|
+
result['data'].append(k.to_map() if k else None)
|
|
334
|
+
if self.http_status_code is not None:
|
|
335
|
+
result['httpStatusCode'] = self.http_status_code
|
|
336
|
+
if self.max_results is not None:
|
|
337
|
+
result['maxResults'] = self.max_results
|
|
338
|
+
if self.message is not None:
|
|
339
|
+
result['message'] = self.message
|
|
340
|
+
if self.next_token is not None:
|
|
341
|
+
result['nextToken'] = self.next_token
|
|
342
|
+
if self.request_id is not None:
|
|
343
|
+
result['requestId'] = self.request_id
|
|
344
|
+
if self.success is not None:
|
|
345
|
+
result['success'] = self.success
|
|
346
|
+
if self.total_count is not None:
|
|
347
|
+
result['totalCount'] = self.total_count
|
|
348
|
+
return result
|
|
349
|
+
|
|
350
|
+
def from_map(self, m: dict = None):
|
|
351
|
+
m = m or dict()
|
|
352
|
+
if m.get('code') is not None:
|
|
353
|
+
self.code = m.get('code')
|
|
354
|
+
self.data = []
|
|
355
|
+
if m.get('data') is not None:
|
|
356
|
+
for k in m.get('data'):
|
|
357
|
+
temp_model = ListHotTopicSummariesResponseBodyData()
|
|
358
|
+
self.data.append(temp_model.from_map(k))
|
|
359
|
+
if m.get('httpStatusCode') is not None:
|
|
360
|
+
self.http_status_code = m.get('httpStatusCode')
|
|
361
|
+
if m.get('maxResults') is not None:
|
|
362
|
+
self.max_results = m.get('maxResults')
|
|
363
|
+
if m.get('message') is not None:
|
|
364
|
+
self.message = m.get('message')
|
|
365
|
+
if m.get('nextToken') is not None:
|
|
366
|
+
self.next_token = m.get('nextToken')
|
|
367
|
+
if m.get('requestId') is not None:
|
|
368
|
+
self.request_id = m.get('requestId')
|
|
369
|
+
if m.get('success') is not None:
|
|
370
|
+
self.success = m.get('success')
|
|
371
|
+
if m.get('totalCount') is not None:
|
|
372
|
+
self.total_count = m.get('totalCount')
|
|
373
|
+
return self
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
class ListHotTopicSummariesResponse(TeaModel):
|
|
377
|
+
def __init__(
|
|
378
|
+
self,
|
|
379
|
+
headers: Dict[str, str] = None,
|
|
380
|
+
status_code: int = None,
|
|
381
|
+
body: ListHotTopicSummariesResponseBody = None,
|
|
382
|
+
):
|
|
383
|
+
self.headers = headers
|
|
384
|
+
self.status_code = status_code
|
|
385
|
+
self.body = body
|
|
386
|
+
|
|
387
|
+
def validate(self):
|
|
388
|
+
if self.body:
|
|
389
|
+
self.body.validate()
|
|
390
|
+
|
|
391
|
+
def to_map(self):
|
|
392
|
+
_map = super().to_map()
|
|
393
|
+
if _map is not None:
|
|
394
|
+
return _map
|
|
395
|
+
|
|
396
|
+
result = dict()
|
|
397
|
+
if self.headers is not None:
|
|
398
|
+
result['headers'] = self.headers
|
|
399
|
+
if self.status_code is not None:
|
|
400
|
+
result['statusCode'] = self.status_code
|
|
401
|
+
if self.body is not None:
|
|
402
|
+
result['body'] = self.body.to_map()
|
|
403
|
+
return result
|
|
404
|
+
|
|
405
|
+
def from_map(self, m: dict = None):
|
|
406
|
+
m = m or dict()
|
|
407
|
+
if m.get('headers') is not None:
|
|
408
|
+
self.headers = m.get('headers')
|
|
409
|
+
if m.get('statusCode') is not None:
|
|
410
|
+
self.status_code = m.get('statusCode')
|
|
411
|
+
if m.get('body') is not None:
|
|
412
|
+
temp_model = ListHotTopicSummariesResponseBody()
|
|
413
|
+
self.body = temp_model.from_map(m['body'])
|
|
414
|
+
return self
|
|
415
|
+
|
|
416
|
+
|
|
7
417
|
class RunMarketingInformationExtractRequest(TeaModel):
|
|
8
418
|
def __init__(
|
|
9
419
|
self,
|
|
@@ -2473,16 +2883,59 @@ class RunVideoAnalysisResponseBodyPayloadOutput(TeaModel):
|
|
|
2473
2883
|
return self
|
|
2474
2884
|
|
|
2475
2885
|
|
|
2886
|
+
class RunVideoAnalysisResponseBodyPayloadUsage(TeaModel):
|
|
2887
|
+
def __init__(
|
|
2888
|
+
self,
|
|
2889
|
+
input_tokens: int = None,
|
|
2890
|
+
output_tokens: int = None,
|
|
2891
|
+
total_tokens: int = None,
|
|
2892
|
+
):
|
|
2893
|
+
self.input_tokens = input_tokens
|
|
2894
|
+
self.output_tokens = output_tokens
|
|
2895
|
+
self.total_tokens = total_tokens
|
|
2896
|
+
|
|
2897
|
+
def validate(self):
|
|
2898
|
+
pass
|
|
2899
|
+
|
|
2900
|
+
def to_map(self):
|
|
2901
|
+
_map = super().to_map()
|
|
2902
|
+
if _map is not None:
|
|
2903
|
+
return _map
|
|
2904
|
+
|
|
2905
|
+
result = dict()
|
|
2906
|
+
if self.input_tokens is not None:
|
|
2907
|
+
result['inputTokens'] = self.input_tokens
|
|
2908
|
+
if self.output_tokens is not None:
|
|
2909
|
+
result['outputTokens'] = self.output_tokens
|
|
2910
|
+
if self.total_tokens is not None:
|
|
2911
|
+
result['totalTokens'] = self.total_tokens
|
|
2912
|
+
return result
|
|
2913
|
+
|
|
2914
|
+
def from_map(self, m: dict = None):
|
|
2915
|
+
m = m or dict()
|
|
2916
|
+
if m.get('inputTokens') is not None:
|
|
2917
|
+
self.input_tokens = m.get('inputTokens')
|
|
2918
|
+
if m.get('outputTokens') is not None:
|
|
2919
|
+
self.output_tokens = m.get('outputTokens')
|
|
2920
|
+
if m.get('totalTokens') is not None:
|
|
2921
|
+
self.total_tokens = m.get('totalTokens')
|
|
2922
|
+
return self
|
|
2923
|
+
|
|
2924
|
+
|
|
2476
2925
|
class RunVideoAnalysisResponseBodyPayload(TeaModel):
|
|
2477
2926
|
def __init__(
|
|
2478
2927
|
self,
|
|
2479
2928
|
output: RunVideoAnalysisResponseBodyPayloadOutput = None,
|
|
2929
|
+
usage: RunVideoAnalysisResponseBodyPayloadUsage = None,
|
|
2480
2930
|
):
|
|
2481
2931
|
self.output = output
|
|
2932
|
+
self.usage = usage
|
|
2482
2933
|
|
|
2483
2934
|
def validate(self):
|
|
2484
2935
|
if self.output:
|
|
2485
2936
|
self.output.validate()
|
|
2937
|
+
if self.usage:
|
|
2938
|
+
self.usage.validate()
|
|
2486
2939
|
|
|
2487
2940
|
def to_map(self):
|
|
2488
2941
|
_map = super().to_map()
|
|
@@ -2492,6 +2945,8 @@ class RunVideoAnalysisResponseBodyPayload(TeaModel):
|
|
|
2492
2945
|
result = dict()
|
|
2493
2946
|
if self.output is not None:
|
|
2494
2947
|
result['output'] = self.output.to_map()
|
|
2948
|
+
if self.usage is not None:
|
|
2949
|
+
result['usage'] = self.usage.to_map()
|
|
2495
2950
|
return result
|
|
2496
2951
|
|
|
2497
2952
|
def from_map(self, m: dict = None):
|
|
@@ -2499,6 +2954,9 @@ class RunVideoAnalysisResponseBodyPayload(TeaModel):
|
|
|
2499
2954
|
if m.get('output') is not None:
|
|
2500
2955
|
temp_model = RunVideoAnalysisResponseBodyPayloadOutput()
|
|
2501
2956
|
self.output = temp_model.from_map(m['output'])
|
|
2957
|
+
if m.get('usage') is not None:
|
|
2958
|
+
temp_model = RunVideoAnalysisResponseBodyPayloadUsage()
|
|
2959
|
+
self.usage = temp_model.from_map(m['usage'])
|
|
2502
2960
|
return self
|
|
2503
2961
|
|
|
2504
2962
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud-quanmiaolightapp20240801
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
alibabacloud_quanmiaolightapp20240801-1.0.0/alibabacloud_quanmiaolightapp20240801/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.0.0'
|
{alibabacloud_quanmiaolightapp20240801-1.0.0 → alibabacloud_quanmiaolightapp20240801-1.2.0}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|