@@ -578,21 +578,20 @@ def job_keys_create_with_http_info(self, project_id, id, job_keys_create_paramet
578578 _request_timeout = local_var_params .get ('_request_timeout' ),
579579 collection_formats = collection_formats )
580580
581- def job_keys_delete (self , project_id , id , ** kwargs ): # noqa: E501
581+ def job_keys_delete (self , project_id , id , job_keys_delete_parameters , ** kwargs ): # noqa: E501
582582 """Remove keys from job # noqa: E501
583583
584584 Remove multiple keys from existing job. # noqa: E501
585585 This method makes a synchronous HTTP request by default. To make an
586586 asynchronous HTTP request, please pass async_req=True
587- >>> thread = api.job_keys_delete(project_id, id, async_req=True)
587+ >>> thread = api.job_keys_delete(project_id, id, job_keys_delete_parameters, async_req=True)
588588 >>> result = thread.get()
589589
590590 :param async_req bool: execute request asynchronously
591591 :param str project_id: Project ID (required)
592592 :param str id: ID (required)
593+ :param JobKeysDeleteParameters job_keys_delete_parameters: (required)
593594 :param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
594- :param str branch: specify the branch to use
595- :param List[str] translation_key_ids: ids of keys that should be removed from the job
596595 :param _preload_content: if False, the urllib3.HTTPResponse object will
597596 be returned without reading/decoding response
598597 data. Default is True.
@@ -605,23 +604,22 @@ def job_keys_delete(self, project_id, id, **kwargs): # noqa: E501
605604 returns the request thread.
606605 """
607606 kwargs ['_return_http_data_only' ] = True
608- return self .job_keys_delete_with_http_info (project_id , id , ** kwargs ) # noqa: E501
607+ return self .job_keys_delete_with_http_info (project_id , id , job_keys_delete_parameters , ** kwargs ) # noqa: E501
609608
610- def job_keys_delete_with_http_info (self , project_id , id , ** kwargs ): # noqa: E501
609+ def job_keys_delete_with_http_info (self , project_id , id , job_keys_delete_parameters , ** kwargs ): # noqa: E501
611610 """Remove keys from job # noqa: E501
612611
613612 Remove multiple keys from existing job. # noqa: E501
614613 This method makes a synchronous HTTP request by default. To make an
615614 asynchronous HTTP request, please pass async_req=True
616- >>> thread = api.job_keys_delete_with_http_info(project_id, id, async_req=True)
615+ >>> thread = api.job_keys_delete_with_http_info(project_id, id, job_keys_delete_parameters, async_req=True)
617616 >>> result = thread.get()
618617
619618 :param async_req bool: execute request asynchronously
620619 :param str project_id: Project ID (required)
621620 :param str id: ID (required)
621+ :param JobKeysDeleteParameters job_keys_delete_parameters: (required)
622622 :param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
623- :param str branch: specify the branch to use
624- :param List[str] translation_key_ids: ids of keys that should be removed from the job
625623 :param _return_http_data_only: response data without head status code
626624 and headers
627625 :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -641,9 +639,8 @@ def job_keys_delete_with_http_info(self, project_id, id, **kwargs): # noqa: E50
641639 all_params = [
642640 'project_id' ,
643641 'id' ,
644- 'x_phrase_app_otp' ,
645- 'branch' ,
646- 'translation_key_ids'
642+ 'job_keys_delete_parameters' ,
643+ 'x_phrase_app_otp'
647644 ]
648645 all_params .extend (
649646 [
@@ -670,6 +667,10 @@ def job_keys_delete_with_http_info(self, project_id, id, **kwargs): # noqa: E50
670667 if self .api_client .client_side_validation and ('id' not in local_var_params or # noqa: E501
671668 local_var_params ['id' ] is None ): # noqa: E501
672669 raise ApiValueError ("Missing the required parameter `id` when calling `job_keys_delete`" ) # noqa: E501
670+ # verify the required parameter 'job_keys_delete_parameters' is set
671+ if self .api_client .client_side_validation and ('job_keys_delete_parameters' not in local_var_params or # noqa: E501
672+ local_var_params ['job_keys_delete_parameters' ] is None ): # noqa: E501
673+ raise ApiValueError ("Missing the required parameter `job_keys_delete_parameters` when calling `job_keys_delete`" ) # noqa: E501
673674
674675 collection_formats = {}
675676
@@ -680,11 +681,6 @@ def job_keys_delete_with_http_info(self, project_id, id, **kwargs): # noqa: E50
680681 path_params ['id' ] = local_var_params ['id' ] # noqa: E501
681682
682683 query_params = []
683- if 'branch' in local_var_params and local_var_params ['branch' ] is not None : # noqa: E501
684- query_params .append (('branch' , local_var_params ['branch' ])) # noqa: E501
685- if 'translation_key_ids' in local_var_params and local_var_params ['translation_key_ids' ] is not None : # noqa: E501
686- query_params .append (('translation_key_ids' , local_var_params ['translation_key_ids' ])) # noqa: E501
687- collection_formats ['translation_key_ids' ] = 'multi' # noqa: E501
688684
689685 header_params = {}
690686 if 'x_phrase_app_otp' in local_var_params :
@@ -694,6 +690,12 @@ def job_keys_delete_with_http_info(self, project_id, id, **kwargs): # noqa: E50
694690 local_var_files = {}
695691
696692 body_params = None
693+ if 'job_keys_delete_parameters' in local_var_params :
694+ body_params = local_var_params ['job_keys_delete_parameters' ]
695+ # HTTP header `Content-Type`
696+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
697+ ['application/json' ]) # noqa: E501
698+
697699 # Authentication setting
698700 auth_settings = ['Basic' , 'Token' ] # noqa: E501
699701
0 commit comments