Skip to content

Commit 2673016

Browse files
author
BitsAdmin
committed
Merge branch 'vod-Python-2025-01-01-online-1463-2025_08_20_11_47_30' into 'integration_2025-08-21_1037026207234'
feat: [development task] vod-1463-Python (1576831) See merge request iaasng/volcengine-python-sdk!759
2 parents 13d4786 + 77d542f commit 2673016

File tree

106 files changed

+13712
-403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+13712
-403
lines changed

volcenginesdkvod20250101/__init__.py

Lines changed: 67 additions & 0 deletions
Large diffs are not rendered by default.

volcenginesdkvod20250101/api/vod20250101_api.py

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,103 @@ def continue_ai_translation_workflow_with_http_info(self, body, **kwargs): # no
130130
_request_timeout=params.get('_request_timeout'),
131131
collection_formats=collection_formats)
132132

133+
def generate_ai_translation_utterance_audio(self, body, **kwargs): # noqa: E501
134+
"""generate_ai_translation_utterance_audio # noqa: E501
135+
136+
This method makes a synchronous HTTP request by default. To make an
137+
asynchronous HTTP request, please pass async_req=True
138+
>>> thread = api.generate_ai_translation_utterance_audio(body, async_req=True)
139+
>>> result = thread.get()
140+
141+
:param async_req bool
142+
:param GenerateAITranslationUtteranceAudioRequest body: (required)
143+
:return: GenerateAITranslationUtteranceAudioResponse
144+
If the method is called asynchronously,
145+
returns the request thread.
146+
"""
147+
kwargs['_return_http_data_only'] = True
148+
if kwargs.get('async_req'):
149+
return self.generate_ai_translation_utterance_audio_with_http_info(body, **kwargs) # noqa: E501
150+
else:
151+
(data) = self.generate_ai_translation_utterance_audio_with_http_info(body, **kwargs) # noqa: E501
152+
return data
153+
154+
def generate_ai_translation_utterance_audio_with_http_info(self, body, **kwargs): # noqa: E501
155+
"""generate_ai_translation_utterance_audio # noqa: E501
156+
157+
This method makes a synchronous HTTP request by default. To make an
158+
asynchronous HTTP request, please pass async_req=True
159+
>>> thread = api.generate_ai_translation_utterance_audio_with_http_info(body, async_req=True)
160+
>>> result = thread.get()
161+
162+
:param async_req bool
163+
:param GenerateAITranslationUtteranceAudioRequest body: (required)
164+
:return: GenerateAITranslationUtteranceAudioResponse
165+
If the method is called asynchronously,
166+
returns the request thread.
167+
"""
168+
169+
all_params = ['body'] # noqa: E501
170+
all_params.append('async_req')
171+
all_params.append('_return_http_data_only')
172+
all_params.append('_preload_content')
173+
all_params.append('_request_timeout')
174+
175+
params = locals()
176+
for key, val in six.iteritems(params['kwargs']):
177+
if key not in all_params:
178+
raise TypeError(
179+
"Got an unexpected keyword argument '%s'"
180+
" to method generate_ai_translation_utterance_audio" % key
181+
)
182+
params[key] = val
183+
del params['kwargs']
184+
# verify the required parameter 'body' is set
185+
if self.api_client.client_side_validation and ('body' not in params or
186+
params['body'] is None): # noqa: E501
187+
raise ValueError("Missing the required parameter `body` when calling `generate_ai_translation_utterance_audio`") # noqa: E501
188+
189+
collection_formats = {}
190+
191+
path_params = {}
192+
193+
query_params = []
194+
195+
header_params = {}
196+
197+
form_params = []
198+
local_var_files = {}
199+
200+
body_params = None
201+
if 'body' in params:
202+
body_params = params['body']
203+
# HTTP header `Accept`
204+
header_params['Accept'] = self.api_client.select_header_accept(
205+
['application/json']) # noqa: E501
206+
207+
# HTTP header `Content-Type`
208+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
209+
['application/json']) # noqa: E501
210+
211+
# Authentication setting
212+
auth_settings = ['volcengineSign'] # noqa: E501
213+
214+
return self.api_client.call_api(
215+
'/GenerateAITranslationUtteranceAudio/2025-01-01/vod/post/application_json/', 'POST',
216+
path_params,
217+
query_params,
218+
header_params,
219+
body=body_params,
220+
post_params=form_params,
221+
files=local_var_files,
222+
response_type='GenerateAITranslationUtteranceAudioResponse', # noqa: E501
223+
auth_settings=auth_settings,
224+
async_req=params.get('async_req'),
225+
_return_http_data_only=params.get('_return_http_data_only'),
226+
_preload_content=params.get('_preload_content', True),
227+
_request_timeout=params.get('_request_timeout'),
228+
collection_formats=collection_formats)
229+
133230
def get_ai_translation_project(self, body, **kwargs): # noqa: E501
134231
"""get_ai_translation_project # noqa: E501
135232
@@ -712,6 +809,103 @@ def submit_ai_translation_workflow_with_http_info(self, body, **kwargs): # noqa
712809
_request_timeout=params.get('_request_timeout'),
713810
collection_formats=collection_formats)
714811

812+
def update_ai_translation_speakers(self, body, **kwargs): # noqa: E501
813+
"""update_ai_translation_speakers # noqa: E501
814+
815+
This method makes a synchronous HTTP request by default. To make an
816+
asynchronous HTTP request, please pass async_req=True
817+
>>> thread = api.update_ai_translation_speakers(body, async_req=True)
818+
>>> result = thread.get()
819+
820+
:param async_req bool
821+
:param UpdateAITranslationSpeakersRequest body: (required)
822+
:return: UpdateAITranslationSpeakersResponse
823+
If the method is called asynchronously,
824+
returns the request thread.
825+
"""
826+
kwargs['_return_http_data_only'] = True
827+
if kwargs.get('async_req'):
828+
return self.update_ai_translation_speakers_with_http_info(body, **kwargs) # noqa: E501
829+
else:
830+
(data) = self.update_ai_translation_speakers_with_http_info(body, **kwargs) # noqa: E501
831+
return data
832+
833+
def update_ai_translation_speakers_with_http_info(self, body, **kwargs): # noqa: E501
834+
"""update_ai_translation_speakers # noqa: E501
835+
836+
This method makes a synchronous HTTP request by default. To make an
837+
asynchronous HTTP request, please pass async_req=True
838+
>>> thread = api.update_ai_translation_speakers_with_http_info(body, async_req=True)
839+
>>> result = thread.get()
840+
841+
:param async_req bool
842+
:param UpdateAITranslationSpeakersRequest body: (required)
843+
:return: UpdateAITranslationSpeakersResponse
844+
If the method is called asynchronously,
845+
returns the request thread.
846+
"""
847+
848+
all_params = ['body'] # noqa: E501
849+
all_params.append('async_req')
850+
all_params.append('_return_http_data_only')
851+
all_params.append('_preload_content')
852+
all_params.append('_request_timeout')
853+
854+
params = locals()
855+
for key, val in six.iteritems(params['kwargs']):
856+
if key not in all_params:
857+
raise TypeError(
858+
"Got an unexpected keyword argument '%s'"
859+
" to method update_ai_translation_speakers" % key
860+
)
861+
params[key] = val
862+
del params['kwargs']
863+
# verify the required parameter 'body' is set
864+
if self.api_client.client_side_validation and ('body' not in params or
865+
params['body'] is None): # noqa: E501
866+
raise ValueError("Missing the required parameter `body` when calling `update_ai_translation_speakers`") # noqa: E501
867+
868+
collection_formats = {}
869+
870+
path_params = {}
871+
872+
query_params = []
873+
874+
header_params = {}
875+
876+
form_params = []
877+
local_var_files = {}
878+
879+
body_params = None
880+
if 'body' in params:
881+
body_params = params['body']
882+
# HTTP header `Accept`
883+
header_params['Accept'] = self.api_client.select_header_accept(
884+
['application/json']) # noqa: E501
885+
886+
# HTTP header `Content-Type`
887+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
888+
['application/json']) # noqa: E501
889+
890+
# Authentication setting
891+
auth_settings = ['volcengineSign'] # noqa: E501
892+
893+
return self.api_client.call_api(
894+
'/UpdateAITranslationSpeakers/2025-01-01/vod/post/application_json/', 'POST',
895+
path_params,
896+
query_params,
897+
header_params,
898+
body=body_params,
899+
post_params=form_params,
900+
files=local_var_files,
901+
response_type='UpdateAITranslationSpeakersResponse', # noqa: E501
902+
auth_settings=auth_settings,
903+
async_req=params.get('async_req'),
904+
_return_http_data_only=params.get('_return_http_data_only'),
905+
_preload_content=params.get('_preload_content', True),
906+
_request_timeout=params.get('_request_timeout'),
907+
collection_formats=collection_formats)
908+
715909
def update_ai_translation_utterances(self, body, **kwargs): # noqa: E501
716910
"""update_ai_translation_utterances # noqa: E501
717911

0 commit comments

Comments
 (0)