Skip to content

Commit 50a9123

Browse files
committed
Update API PodcastTaskResultQuery: add response parameters Body.data.extraResult.
1 parent 1c070c5 commit 50a9123

File tree

5 files changed

+29
-43
lines changed

5 files changed

+29
-43
lines changed

aipodcast-20250228/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-05-30 Version: 1.0.1
2+
- Update API PodcastTaskResultQuery: add response parameters Body.data.extraResult.
3+
4+
15
2025-04-02 Version: 1.0.0
26
- Generated python 2025-02-28 for AIPodcast.
37

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.0'
1+
__version__ = '1.0.1'

aipodcast-20250228/alibabacloud_aipodcast20250228/client.py

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,10 @@ def podcast_task_result_query_with_options(
7676
req_body_type='formData',
7777
body_type='json'
7878
)
79-
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
80-
return TeaCore.from_map(
81-
aipodcast_20250228_models.PodcastTaskResultQueryResponse(),
82-
self.call_api(params, req, runtime)
83-
)
84-
else:
85-
return TeaCore.from_map(
86-
aipodcast_20250228_models.PodcastTaskResultQueryResponse(),
87-
self.execute(params, req, runtime)
88-
)
79+
return TeaCore.from_map(
80+
aipodcast_20250228_models.PodcastTaskResultQueryResponse(),
81+
self.call_api(params, req, runtime)
82+
)
8983

9084
async def podcast_task_result_query_with_options_async(
9185
self,
@@ -122,16 +116,10 @@ async def podcast_task_result_query_with_options_async(
122116
req_body_type='formData',
123117
body_type='json'
124118
)
125-
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
126-
return TeaCore.from_map(
127-
aipodcast_20250228_models.PodcastTaskResultQueryResponse(),
128-
await self.call_api_async(params, req, runtime)
129-
)
130-
else:
131-
return TeaCore.from_map(
132-
aipodcast_20250228_models.PodcastTaskResultQueryResponse(),
133-
await self.execute_async(params, req, runtime)
134-
)
119+
return TeaCore.from_map(
120+
aipodcast_20250228_models.PodcastTaskResultQueryResponse(),
121+
await self.call_api_async(params, req, runtime)
122+
)
135123

136124
def podcast_task_result_query(
137125
self,
@@ -210,16 +198,10 @@ def podcast_task_submit_with_options(
210198
req_body_type='formData',
211199
body_type='json'
212200
)
213-
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
214-
return TeaCore.from_map(
215-
aipodcast_20250228_models.PodcastTaskSubmitResponse(),
216-
self.call_api(params, req, runtime)
217-
)
218-
else:
219-
return TeaCore.from_map(
220-
aipodcast_20250228_models.PodcastTaskSubmitResponse(),
221-
self.execute(params, req, runtime)
222-
)
201+
return TeaCore.from_map(
202+
aipodcast_20250228_models.PodcastTaskSubmitResponse(),
203+
self.call_api(params, req, runtime)
204+
)
223205

224206
async def podcast_task_submit_with_options_async(
225207
self,
@@ -270,16 +252,10 @@ async def podcast_task_submit_with_options_async(
270252
req_body_type='formData',
271253
body_type='json'
272254
)
273-
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
274-
return TeaCore.from_map(
275-
aipodcast_20250228_models.PodcastTaskSubmitResponse(),
276-
await self.call_api_async(params, req, runtime)
277-
)
278-
else:
279-
return TeaCore.from_map(
280-
aipodcast_20250228_models.PodcastTaskSubmitResponse(),
281-
await self.execute_async(params, req, runtime)
282-
)
255+
return TeaCore.from_map(
256+
aipodcast_20250228_models.PodcastTaskSubmitResponse(),
257+
await self.call_api_async(params, req, runtime)
258+
)
283259

284260
def podcast_task_submit(
285261
self,

aipodcast-20250228/alibabacloud_aipodcast20250228/models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ def from_map(self, m: dict = None):
4242
class PodcastTaskResultQueryResponseBodyData(TeaModel):
4343
def __init__(
4444
self,
45+
extra_result: Any = None,
4546
result_url: Any = None,
4647
script: str = None,
4748
task_id: str = None,
4849
task_status: str = None,
4950
):
51+
self.extra_result = extra_result
5052
self.result_url = result_url
5153
self.script = script
5254
self.task_id = task_id
@@ -61,6 +63,8 @@ def to_map(self):
6163
return _map
6264

6365
result = dict()
66+
if self.extra_result is not None:
67+
result['extraResult'] = self.extra_result
6468
if self.result_url is not None:
6569
result['resultUrl'] = self.result_url
6670
if self.script is not None:
@@ -73,6 +77,8 @@ def to_map(self):
7377

7478
def from_map(self, m: dict = None):
7579
m = m or dict()
80+
if m.get('extraResult') is not None:
81+
self.extra_result = m.get('extraResult')
7682
if m.get('resultUrl') is not None:
7783
self.result_url = m.get('resultUrl')
7884
if m.get('script') is not None:

aipodcast-20250228/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"""
2525
setup module for alibabacloud_aipodcast20250228.
2626
27-
Created on 02/04/2025
27+
Created on 30/05/2025
2828
2929
@author: Alibaba Cloud SDK
3030
"""
@@ -38,7 +38,7 @@
3838
VERSION = __import__(PACKAGE).__version__
3939
REQUIRES = [
4040
"alibabacloud_tea_util>=0.3.13, <1.0.0",
41-
"alibabacloud_tea_openapi>=0.3.12, <1.0.0",
41+
"alibabacloud_tea_openapi>=0.3.15, <1.0.0",
4242
"alibabacloud_openapi_util>=0.2.2, <1.0.0",
4343
"alibabacloud_endpoint_util>=0.0.3, <1.0.0"
4444
]

0 commit comments

Comments
 (0)