2828
2929import com .phrase .client .model .RepoSync ;
3030import com .phrase .client .model .RepoSyncEvent ;
31+ import com .phrase .client .model .RepoSyncExportParameters ;
3132import com .phrase .client .model .RepoSyncImportParameters ;
3233
3334import java .lang .reflect .Type ;
@@ -342,6 +343,7 @@ public okhttp3.Call repoSyncDeactivateAsync(String accountId, String id, String
342343 * @param accountId Account ID (required)
343344 * @param id ID (required)
344345 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
346+ * @param repoSyncExportParameters (optional)
345347 * @param _callback Callback for upload/download progress
346348 * @return Call to execute
347349 * @throws ApiException If fail to serialize the request body object
@@ -354,8 +356,8 @@ public okhttp3.Call repoSyncDeactivateAsync(String accountId, String id, String
354356 <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>
355357 </table>
356358 */
357- public okhttp3 .Call repoSyncExportCall (String accountId , String id , String xPhraseAppOTP , final ApiCallback _callback ) throws ApiException {
358- Object localVarPostBody = null ;
359+ public okhttp3 .Call repoSyncExportCall (String accountId , String id , String xPhraseAppOTP , RepoSyncExportParameters repoSyncExportParameters , final ApiCallback _callback ) throws ApiException {
360+ Object localVarPostBody = repoSyncExportParameters ;
359361
360362 // create path and map variables
361363 String localVarPath = "/accounts/{account_id}/repo_syncs/{id}/export"
@@ -380,7 +382,7 @@ public okhttp3.Call repoSyncExportCall(String accountId, String id, String xPhra
380382 }
381383
382384 final String [] localVarContentTypes = {
383-
385+ "application/json"
384386 };
385387 final String localVarContentType = localVarApiClient .selectHeaderContentType (localVarContentTypes );
386388 localVarHeaderParams .put ("Content-Type" , localVarContentType );
@@ -390,7 +392,7 @@ public okhttp3.Call repoSyncExportCall(String accountId, String id, String xPhra
390392 }
391393
392394 @ SuppressWarnings ("rawtypes" )
393- private okhttp3 .Call repoSyncExportValidateBeforeCall (String accountId , String id , String xPhraseAppOTP , final ApiCallback _callback ) throws ApiException {
395+ private okhttp3 .Call repoSyncExportValidateBeforeCall (String accountId , String id , String xPhraseAppOTP , RepoSyncExportParameters repoSyncExportParameters , final ApiCallback _callback ) throws ApiException {
394396
395397 // verify the required parameter 'accountId' is set
396398 if (accountId == null ) {
@@ -403,7 +405,7 @@ private okhttp3.Call repoSyncExportValidateBeforeCall(String accountId, String i
403405 }
404406
405407
406- okhttp3 .Call localVarCall = repoSyncExportCall (accountId , id , xPhraseAppOTP , _callback );
408+ okhttp3 .Call localVarCall = repoSyncExportCall (accountId , id , xPhraseAppOTP , repoSyncExportParameters , _callback );
407409 return localVarCall ;
408410
409411 }
@@ -414,6 +416,7 @@ private okhttp3.Call repoSyncExportValidateBeforeCall(String accountId, String i
414416 * @param accountId Account ID (required)
415417 * @param id ID (required)
416418 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
419+ * @param repoSyncExportParameters (optional)
417420 * @return RepoSyncEvent
418421 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
419422 * @http.response.details
@@ -425,8 +428,8 @@ private okhttp3.Call repoSyncExportValidateBeforeCall(String accountId, String i
425428 <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>
426429 </table>
427430 */
428- public RepoSyncEvent repoSyncExport (String accountId , String id , String xPhraseAppOTP ) throws ApiException {
429- ApiResponse <RepoSyncEvent > localVarResp = repoSyncExportWithHttpInfo (accountId , id , xPhraseAppOTP );
431+ public RepoSyncEvent repoSyncExport (String accountId , String id , String xPhraseAppOTP , RepoSyncExportParameters repoSyncExportParameters ) throws ApiException {
432+ ApiResponse <RepoSyncEvent > localVarResp = repoSyncExportWithHttpInfo (accountId , id , xPhraseAppOTP , repoSyncExportParameters );
430433 return localVarResp .getData ();
431434 }
432435
@@ -436,6 +439,7 @@ public RepoSyncEvent repoSyncExport(String accountId, String id, String xPhraseA
436439 * @param accountId Account ID (required)
437440 * @param id ID (required)
438441 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
442+ * @param repoSyncExportParameters (optional)
439443 * @return ApiResponse<RepoSyncEvent>
440444 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
441445 * @http.response.details
@@ -447,8 +451,8 @@ public RepoSyncEvent repoSyncExport(String accountId, String id, String xPhraseA
447451 <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>
448452 </table>
449453 */
450- public ApiResponse <RepoSyncEvent > repoSyncExportWithHttpInfo (String accountId , String id , String xPhraseAppOTP ) throws ApiException {
451- okhttp3 .Call localVarCall = repoSyncExportValidateBeforeCall (accountId , id , xPhraseAppOTP , null );
454+ public ApiResponse <RepoSyncEvent > repoSyncExportWithHttpInfo (String accountId , String id , String xPhraseAppOTP , RepoSyncExportParameters repoSyncExportParameters ) throws ApiException {
455+ okhttp3 .Call localVarCall = repoSyncExportValidateBeforeCall (accountId , id , xPhraseAppOTP , repoSyncExportParameters , null );
452456 Type localVarReturnType = new TypeToken <RepoSyncEvent >(){}.getType ();
453457 return localVarApiClient .execute (localVarCall , localVarReturnType );
454458 }
@@ -459,6 +463,7 @@ public ApiResponse<RepoSyncEvent> repoSyncExportWithHttpInfo(String accountId, S
459463 * @param accountId Account ID (required)
460464 * @param id ID (required)
461465 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
466+ * @param repoSyncExportParameters (optional)
462467 * @param _callback The callback to be executed when the API call finishes
463468 * @return The request call
464469 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -471,9 +476,9 @@ public ApiResponse<RepoSyncEvent> repoSyncExportWithHttpInfo(String accountId, S
471476 <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>
472477 </table>
473478 */
474- public okhttp3 .Call repoSyncExportAsync (String accountId , String id , String xPhraseAppOTP , final ApiCallback <RepoSyncEvent > _callback ) throws ApiException {
479+ public okhttp3 .Call repoSyncExportAsync (String accountId , String id , String xPhraseAppOTP , RepoSyncExportParameters repoSyncExportParameters , final ApiCallback <RepoSyncEvent > _callback ) throws ApiException {
475480
476- okhttp3 .Call localVarCall = repoSyncExportValidateBeforeCall (accountId , id , xPhraseAppOTP , _callback );
481+ okhttp3 .Call localVarCall = repoSyncExportValidateBeforeCall (accountId , id , xPhraseAppOTP , repoSyncExportParameters , _callback );
477482 Type localVarReturnType = new TypeToken <RepoSyncEvent >(){}.getType ();
478483 localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
479484 return localVarCall ;
0 commit comments