3131import com .phrase .client .model .JobCreateParameters ;
3232import com .phrase .client .model .JobDetails ;
3333import com .phrase .client .model .JobKeysCreateParameters ;
34+ import com .phrase .client .model .JobKeysDeleteParameters ;
3435import com .phrase .client .model .JobReopenParameters ;
3536import com .phrase .client .model .JobStartParameters ;
3637import com .phrase .client .model .JobUpdateParameters ;
@@ -649,9 +650,8 @@ public okhttp3.Call jobKeysCreateAsync(String projectId, String id, JobKeysCreat
649650 * Build call for jobKeysDelete
650651 * @param projectId Project ID (required)
651652 * @param id ID (required)
653+ * @param jobKeysDeleteParameters (required)
652654 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
653- * @param branch specify the branch to use (optional)
654- * @param translationKeyIds ids of keys that should be removed from the job (optional)
655655 * @param _callback Callback for upload/download progress
656656 * @return Call to execute
657657 * @throws ApiException If fail to serialize the request body object
@@ -664,8 +664,8 @@ public okhttp3.Call jobKeysCreateAsync(String projectId, String id, JobKeysCreat
664664 <tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
665665 </table>
666666 */
667- public okhttp3 .Call jobKeysDeleteCall (String projectId , String id , String xPhraseAppOTP , String branch , List < String > translationKeyIds , final ApiCallback _callback ) throws ApiException {
668- Object localVarPostBody = null ;
667+ public okhttp3 .Call jobKeysDeleteCall (String projectId , String id , JobKeysDeleteParameters jobKeysDeleteParameters , String xPhraseAppOTP , final ApiCallback _callback ) throws ApiException {
668+ Object localVarPostBody = jobKeysDeleteParameters ;
669669
670670 // create path and map variables
671671 String localVarPath = "/projects/{project_id}/jobs/{id}/keys"
@@ -674,14 +674,6 @@ public okhttp3.Call jobKeysDeleteCall(String projectId, String id, String xPhras
674674
675675 List <Pair > localVarQueryParams = new ArrayList <Pair >();
676676 List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
677- if (branch != null ) {
678- localVarQueryParams .addAll (localVarApiClient .parameterToPair ("branch" , branch ));
679- }
680-
681- if (translationKeyIds != null ) {
682- localVarCollectionQueryParams .addAll (localVarApiClient .parameterToPairs ("multi" , "translation_key_ids" , translationKeyIds ));
683- }
684-
685677 Map <String , String > localVarHeaderParams = new HashMap <String , String >();
686678 if (xPhraseAppOTP != null ) {
687679 localVarHeaderParams .put ("X-PhraseApp-OTP" , localVarApiClient .parameterToString (xPhraseAppOTP ));
@@ -698,7 +690,7 @@ public okhttp3.Call jobKeysDeleteCall(String projectId, String id, String xPhras
698690 }
699691
700692 final String [] localVarContentTypes = {
701-
693+ "application/json"
702694 };
703695 final String localVarContentType = localVarApiClient .selectHeaderContentType (localVarContentTypes );
704696 localVarHeaderParams .put ("Content-Type" , localVarContentType );
@@ -708,7 +700,7 @@ public okhttp3.Call jobKeysDeleteCall(String projectId, String id, String xPhras
708700 }
709701
710702 @ SuppressWarnings ("rawtypes" )
711- private okhttp3 .Call jobKeysDeleteValidateBeforeCall (String projectId , String id , String xPhraseAppOTP , String branch , List < String > translationKeyIds , final ApiCallback _callback ) throws ApiException {
703+ private okhttp3 .Call jobKeysDeleteValidateBeforeCall (String projectId , String id , JobKeysDeleteParameters jobKeysDeleteParameters , String xPhraseAppOTP , final ApiCallback _callback ) throws ApiException {
712704
713705 // verify the required parameter 'projectId' is set
714706 if (projectId == null ) {
@@ -720,8 +712,13 @@ private okhttp3.Call jobKeysDeleteValidateBeforeCall(String projectId, String id
720712 throw new ApiException ("Missing the required parameter 'id' when calling jobKeysDelete(Async)" );
721713 }
722714
715+ // verify the required parameter 'jobKeysDeleteParameters' is set
716+ if (jobKeysDeleteParameters == null ) {
717+ throw new ApiException ("Missing the required parameter 'jobKeysDeleteParameters' when calling jobKeysDelete(Async)" );
718+ }
719+
723720
724- okhttp3 .Call localVarCall = jobKeysDeleteCall (projectId , id , xPhraseAppOTP , branch , translationKeyIds , _callback );
721+ okhttp3 .Call localVarCall = jobKeysDeleteCall (projectId , id , jobKeysDeleteParameters , xPhraseAppOTP , _callback );
725722 return localVarCall ;
726723
727724 }
@@ -731,9 +728,8 @@ private okhttp3.Call jobKeysDeleteValidateBeforeCall(String projectId, String id
731728 * Remove multiple keys from existing job.
732729 * @param projectId Project ID (required)
733730 * @param id ID (required)
731+ * @param jobKeysDeleteParameters (required)
734732 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
735- * @param branch specify the branch to use (optional)
736- * @param translationKeyIds ids of keys that should be removed from the job (optional)
737733 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
738734 * @http.response.details
739735 <table summary="Response Details" border="1">
@@ -744,18 +740,17 @@ private okhttp3.Call jobKeysDeleteValidateBeforeCall(String projectId, String id
744740 <tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
745741 </table>
746742 */
747- public void jobKeysDelete (String projectId , String id , String xPhraseAppOTP , String branch , List < String > translationKeyIds ) throws ApiException {
748- jobKeysDeleteWithHttpInfo (projectId , id , xPhraseAppOTP , branch , translationKeyIds );
743+ public void jobKeysDelete (String projectId , String id , JobKeysDeleteParameters jobKeysDeleteParameters , String xPhraseAppOTP ) throws ApiException {
744+ jobKeysDeleteWithHttpInfo (projectId , id , jobKeysDeleteParameters , xPhraseAppOTP );
749745 }
750746
751747 /**
752748 * Remove keys from job
753749 * Remove multiple keys from existing job.
754750 * @param projectId Project ID (required)
755751 * @param id ID (required)
752+ * @param jobKeysDeleteParameters (required)
756753 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
757- * @param branch specify the branch to use (optional)
758- * @param translationKeyIds ids of keys that should be removed from the job (optional)
759754 * @return ApiResponse<Void>
760755 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
761756 * @http.response.details
@@ -767,8 +762,8 @@ public void jobKeysDelete(String projectId, String id, String xPhraseAppOTP, Str
767762 <tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
768763 </table>
769764 */
770- public ApiResponse <Void > jobKeysDeleteWithHttpInfo (String projectId , String id , String xPhraseAppOTP , String branch , List < String > translationKeyIds ) throws ApiException {
771- okhttp3 .Call localVarCall = jobKeysDeleteValidateBeforeCall (projectId , id , xPhraseAppOTP , branch , translationKeyIds , null );
765+ public ApiResponse <Void > jobKeysDeleteWithHttpInfo (String projectId , String id , JobKeysDeleteParameters jobKeysDeleteParameters , String xPhraseAppOTP ) throws ApiException {
766+ okhttp3 .Call localVarCall = jobKeysDeleteValidateBeforeCall (projectId , id , jobKeysDeleteParameters , xPhraseAppOTP , null );
772767 return localVarApiClient .execute (localVarCall );
773768 }
774769
@@ -777,9 +772,8 @@ public ApiResponse<Void> jobKeysDeleteWithHttpInfo(String projectId, String id,
777772 * Remove multiple keys from existing job.
778773 * @param projectId Project ID (required)
779774 * @param id ID (required)
775+ * @param jobKeysDeleteParameters (required)
780776 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
781- * @param branch specify the branch to use (optional)
782- * @param translationKeyIds ids of keys that should be removed from the job (optional)
783777 * @param _callback The callback to be executed when the API call finishes
784778 * @return The request call
785779 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -792,9 +786,9 @@ public ApiResponse<Void> jobKeysDeleteWithHttpInfo(String projectId, String id,
792786 <tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
793787 </table>
794788 */
795- public okhttp3 .Call jobKeysDeleteAsync (String projectId , String id , String xPhraseAppOTP , String branch , List < String > translationKeyIds , final ApiCallback <Void > _callback ) throws ApiException {
789+ public okhttp3 .Call jobKeysDeleteAsync (String projectId , String id , JobKeysDeleteParameters jobKeysDeleteParameters , String xPhraseAppOTP , final ApiCallback <Void > _callback ) throws ApiException {
796790
797- okhttp3 .Call localVarCall = jobKeysDeleteValidateBeforeCall (projectId , id , xPhraseAppOTP , branch , translationKeyIds , _callback );
791+ okhttp3 .Call localVarCall = jobKeysDeleteValidateBeforeCall (projectId , id , jobKeysDeleteParameters , xPhraseAppOTP , _callback );
798792 localVarApiClient .executeAsync (localVarCall , _callback );
799793 return localVarCall ;
800794 }
0 commit comments