@@ -216,22 +216,21 @@ def replies_list_with_http_info(self, project_id, key_id, comment_id, replies_li
216216 _request_timeout = local_var_params .get ('_request_timeout' ),
217217 collection_formats = collection_formats )
218218
219- def reply_create (self , project_id , key_id , comment_id , ** kwargs ): # noqa: E501
219+ def reply_create (self , project_id , key_id , comment_id , comment_create_parameters1 , ** kwargs ): # noqa: E501
220220 """Create a reply # noqa: E501
221221
222222 Create a new reply for a comment. # noqa: E501
223223 This method makes a synchronous HTTP request by default. To make an
224224 asynchronous HTTP request, please pass async_req=True
225- >>> thread = api.reply_create(project_id, key_id, comment_id, async_req=True)
225+ >>> thread = api.reply_create(project_id, key_id, comment_id, comment_create_parameters1, async_req=True)
226226 >>> result = thread.get()
227227
228228 :param async_req bool: execute request asynchronously
229229 :param str project_id: Project ID (required)
230230 :param str key_id: Translation Key ID (required)
231231 :param str comment_id: Comment ID (required)
232+ :param CommentCreateParameters1 comment_create_parameters1: (required)
232233 :param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
233- :param str branch: specify the branch to use
234- :param str message: specify the message for the comment
235234 :param _preload_content: if False, the urllib3.HTTPResponse object will
236235 be returned without reading/decoding response
237236 data. Default is True.
@@ -244,24 +243,23 @@ def reply_create(self, project_id, key_id, comment_id, **kwargs): # noqa: E501
244243 returns the request thread.
245244 """
246245 kwargs ['_return_http_data_only' ] = True
247- return self .reply_create_with_http_info (project_id , key_id , comment_id , ** kwargs ) # noqa: E501
246+ return self .reply_create_with_http_info (project_id , key_id , comment_id , comment_create_parameters1 , ** kwargs ) # noqa: E501
248247
249- def reply_create_with_http_info (self , project_id , key_id , comment_id , ** kwargs ): # noqa: E501
248+ def reply_create_with_http_info (self , project_id , key_id , comment_id , comment_create_parameters1 , ** kwargs ): # noqa: E501
250249 """Create a reply # noqa: E501
251250
252251 Create a new reply for a comment. # noqa: E501
253252 This method makes a synchronous HTTP request by default. To make an
254253 asynchronous HTTP request, please pass async_req=True
255- >>> thread = api.reply_create_with_http_info(project_id, key_id, comment_id, async_req=True)
254+ >>> thread = api.reply_create_with_http_info(project_id, key_id, comment_id, comment_create_parameters1, async_req=True)
256255 >>> result = thread.get()
257256
258257 :param async_req bool: execute request asynchronously
259258 :param str project_id: Project ID (required)
260259 :param str key_id: Translation Key ID (required)
261260 :param str comment_id: Comment ID (required)
261+ :param CommentCreateParameters1 comment_create_parameters1: (required)
262262 :param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
263- :param str branch: specify the branch to use
264- :param str message: specify the message for the comment
265263 :param _return_http_data_only: response data without head status code
266264 and headers
267265 :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -282,9 +280,8 @@ def reply_create_with_http_info(self, project_id, key_id, comment_id, **kwargs):
282280 'project_id' ,
283281 'key_id' ,
284282 'comment_id' ,
285- 'x_phrase_app_otp' ,
286- 'branch' ,
287- 'message'
283+ 'comment_create_parameters1' ,
284+ 'x_phrase_app_otp'
288285 ]
289286 all_params .extend (
290287 [
@@ -315,6 +312,10 @@ def reply_create_with_http_info(self, project_id, key_id, comment_id, **kwargs):
315312 if self .api_client .client_side_validation and ('comment_id' not in local_var_params or # noqa: E501
316313 local_var_params ['comment_id' ] is None ): # noqa: E501
317314 raise ApiValueError ("Missing the required parameter `comment_id` when calling `reply_create`" ) # noqa: E501
315+ # verify the required parameter 'comment_create_parameters1' is set
316+ if self .api_client .client_side_validation and ('comment_create_parameters1' not in local_var_params or # noqa: E501
317+ local_var_params ['comment_create_parameters1' ] is None ): # noqa: E501
318+ raise ApiValueError ("Missing the required parameter `comment_create_parameters1` when calling `reply_create`" ) # noqa: E501
318319
319320 collection_formats = {}
320321
@@ -327,10 +328,6 @@ def reply_create_with_http_info(self, project_id, key_id, comment_id, **kwargs):
327328 path_params ['comment_id' ] = local_var_params ['comment_id' ] # noqa: E501
328329
329330 query_params = []
330- if 'branch' in local_var_params and local_var_params ['branch' ] is not None : # noqa: E501
331- query_params .append (('branch' , local_var_params ['branch' ])) # noqa: E501
332- if 'message' in local_var_params and local_var_params ['message' ] is not None : # noqa: E501
333- query_params .append (('message' , local_var_params ['message' ])) # noqa: E501
334331
335332 header_params = {}
336333 if 'x_phrase_app_otp' in local_var_params :
@@ -340,10 +337,16 @@ def reply_create_with_http_info(self, project_id, key_id, comment_id, **kwargs):
340337 local_var_files = {}
341338
342339 body_params = None
340+ if 'comment_create_parameters1' in local_var_params :
341+ body_params = local_var_params ['comment_create_parameters1' ]
343342 # HTTP header `Accept`
344343 header_params ['Accept' ] = self .api_client .select_header_accept (
345344 ['application/json' ]) # noqa: E501
346345
346+ # HTTP header `Content-Type`
347+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
348+ ['application/json' ]) # noqa: E501
349+
347350 # Authentication setting
348351 auth_settings = ['Basic' , 'Token' ] # noqa: E501
349352
0 commit comments