@@ -33,6 +33,103 @@ def __init__(self, api_client=None):
3333 api_client = volcenginesdkcore .ApiClient ()
3434 self .api_client = api_client
3535
36+ def continue_ai_translation_workflow (self , body , ** kwargs ): # noqa: E501
37+ """continue_ai_translation_workflow # noqa: E501
38+
39+ This method makes a synchronous HTTP request by default. To make an
40+ asynchronous HTTP request, please pass async_req=True
41+ >>> thread = api.continue_ai_translation_workflow(body, async_req=True)
42+ >>> result = thread.get()
43+
44+ :param async_req bool
45+ :param ContinueAITranslationWorkflowRequest body: (required)
46+ :return: ContinueAITranslationWorkflowResponse
47+ If the method is called asynchronously,
48+ returns the request thread.
49+ """
50+ kwargs ['_return_http_data_only' ] = True
51+ if kwargs .get ('async_req' ):
52+ return self .continue_ai_translation_workflow_with_http_info (body , ** kwargs ) # noqa: E501
53+ else :
54+ (data ) = self .continue_ai_translation_workflow_with_http_info (body , ** kwargs ) # noqa: E501
55+ return data
56+
57+ def continue_ai_translation_workflow_with_http_info (self , body , ** kwargs ): # noqa: E501
58+ """continue_ai_translation_workflow # noqa: E501
59+
60+ This method makes a synchronous HTTP request by default. To make an
61+ asynchronous HTTP request, please pass async_req=True
62+ >>> thread = api.continue_ai_translation_workflow_with_http_info(body, async_req=True)
63+ >>> result = thread.get()
64+
65+ :param async_req bool
66+ :param ContinueAITranslationWorkflowRequest body: (required)
67+ :return: ContinueAITranslationWorkflowResponse
68+ If the method is called asynchronously,
69+ returns the request thread.
70+ """
71+
72+ all_params = ['body' ] # noqa: E501
73+ all_params .append ('async_req' )
74+ all_params .append ('_return_http_data_only' )
75+ all_params .append ('_preload_content' )
76+ all_params .append ('_request_timeout' )
77+
78+ params = locals ()
79+ for key , val in six .iteritems (params ['kwargs' ]):
80+ if key not in all_params :
81+ raise TypeError (
82+ "Got an unexpected keyword argument '%s'"
83+ " to method continue_ai_translation_workflow" % key
84+ )
85+ params [key ] = val
86+ del params ['kwargs' ]
87+ # verify the required parameter 'body' is set
88+ if self .api_client .client_side_validation and ('body' not in params or
89+ params ['body' ] is None ): # noqa: E501
90+ raise ValueError ("Missing the required parameter `body` when calling `continue_ai_translation_workflow`" ) # noqa: E501
91+
92+ collection_formats = {}
93+
94+ path_params = {}
95+
96+ query_params = []
97+
98+ header_params = {}
99+
100+ form_params = []
101+ local_var_files = {}
102+
103+ body_params = None
104+ if 'body' in params :
105+ body_params = params ['body' ]
106+ # HTTP header `Accept`
107+ header_params ['Accept' ] = self .api_client .select_header_accept (
108+ ['application/json' ]) # noqa: E501
109+
110+ # HTTP header `Content-Type`
111+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
112+ ['application/json' ]) # noqa: E501
113+
114+ # Authentication setting
115+ auth_settings = ['volcengineSign' ] # noqa: E501
116+
117+ return self .api_client .call_api (
118+ '/ContinueAITranslationWorkflow/2025-01-01/vod/post/application_json/' , 'POST' ,
119+ path_params ,
120+ query_params ,
121+ header_params ,
122+ body = body_params ,
123+ post_params = form_params ,
124+ files = local_var_files ,
125+ response_type = 'ContinueAITranslationWorkflowResponse' , # noqa: E501
126+ auth_settings = auth_settings ,
127+ async_req = params .get ('async_req' ),
128+ _return_http_data_only = params .get ('_return_http_data_only' ),
129+ _preload_content = params .get ('_preload_content' , True ),
130+ _request_timeout = params .get ('_request_timeout' ),
131+ collection_formats = collection_formats )
132+
36133 def get_ai_translation_project (self , body , ** kwargs ): # noqa: E501
37134 """get_ai_translation_project # noqa: E501
38135
@@ -517,3 +614,100 @@ def submit_ai_translation_workflow_with_http_info(self, body, **kwargs): # noqa
517614 _preload_content = params .get ('_preload_content' , True ),
518615 _request_timeout = params .get ('_request_timeout' ),
519616 collection_formats = collection_formats )
617+
618+ def update_ai_translation_utterances (self , body , ** kwargs ): # noqa: E501
619+ """update_ai_translation_utterances # noqa: E501
620+
621+ This method makes a synchronous HTTP request by default. To make an
622+ asynchronous HTTP request, please pass async_req=True
623+ >>> thread = api.update_ai_translation_utterances(body, async_req=True)
624+ >>> result = thread.get()
625+
626+ :param async_req bool
627+ :param UpdateAITranslationUtterancesRequest body: (required)
628+ :return: UpdateAITranslationUtterancesResponse
629+ If the method is called asynchronously,
630+ returns the request thread.
631+ """
632+ kwargs ['_return_http_data_only' ] = True
633+ if kwargs .get ('async_req' ):
634+ return self .update_ai_translation_utterances_with_http_info (body , ** kwargs ) # noqa: E501
635+ else :
636+ (data ) = self .update_ai_translation_utterances_with_http_info (body , ** kwargs ) # noqa: E501
637+ return data
638+
639+ def update_ai_translation_utterances_with_http_info (self , body , ** kwargs ): # noqa: E501
640+ """update_ai_translation_utterances # noqa: E501
641+
642+ This method makes a synchronous HTTP request by default. To make an
643+ asynchronous HTTP request, please pass async_req=True
644+ >>> thread = api.update_ai_translation_utterances_with_http_info(body, async_req=True)
645+ >>> result = thread.get()
646+
647+ :param async_req bool
648+ :param UpdateAITranslationUtterancesRequest body: (required)
649+ :return: UpdateAITranslationUtterancesResponse
650+ If the method is called asynchronously,
651+ returns the request thread.
652+ """
653+
654+ all_params = ['body' ] # noqa: E501
655+ all_params .append ('async_req' )
656+ all_params .append ('_return_http_data_only' )
657+ all_params .append ('_preload_content' )
658+ all_params .append ('_request_timeout' )
659+
660+ params = locals ()
661+ for key , val in six .iteritems (params ['kwargs' ]):
662+ if key not in all_params :
663+ raise TypeError (
664+ "Got an unexpected keyword argument '%s'"
665+ " to method update_ai_translation_utterances" % key
666+ )
667+ params [key ] = val
668+ del params ['kwargs' ]
669+ # verify the required parameter 'body' is set
670+ if self .api_client .client_side_validation and ('body' not in params or
671+ params ['body' ] is None ): # noqa: E501
672+ raise ValueError ("Missing the required parameter `body` when calling `update_ai_translation_utterances`" ) # noqa: E501
673+
674+ collection_formats = {}
675+
676+ path_params = {}
677+
678+ query_params = []
679+
680+ header_params = {}
681+
682+ form_params = []
683+ local_var_files = {}
684+
685+ body_params = None
686+ if 'body' in params :
687+ body_params = params ['body' ]
688+ # HTTP header `Accept`
689+ header_params ['Accept' ] = self .api_client .select_header_accept (
690+ ['application/json' ]) # noqa: E501
691+
692+ # HTTP header `Content-Type`
693+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
694+ ['application/json' ]) # noqa: E501
695+
696+ # Authentication setting
697+ auth_settings = ['volcengineSign' ] # noqa: E501
698+
699+ return self .api_client .call_api (
700+ '/UpdateAITranslationUtterances/2025-01-01/vod/post/application_json/' , 'POST' ,
701+ path_params ,
702+ query_params ,
703+ header_params ,
704+ body = body_params ,
705+ post_params = form_params ,
706+ files = local_var_files ,
707+ response_type = 'UpdateAITranslationUtterancesResponse' , # noqa: E501
708+ auth_settings = auth_settings ,
709+ async_req = params .get ('async_req' ),
710+ _return_http_data_only = params .get ('_return_http_data_only' ),
711+ _preload_content = params .get ('_preload_content' , True ),
712+ _request_timeout = params .get ('_request_timeout' ),
713+ collection_formats = collection_formats )
0 commit comments