@@ -483,6 +483,7 @@ public okhttp3.Call repoSyncExportAsync(String accountId, String id, String xPhr
483483 * @param accountId Account ID (required)
484484 * @param id ID (required)
485485 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
486+ * @param branch Branch to use (optional)
486487 * @param repoSyncImportParameters (optional)
487488 * @param _callback Callback for upload/download progress
488489 * @return Call to execute
@@ -496,7 +497,7 @@ public okhttp3.Call repoSyncExportAsync(String accountId, String id, String xPhr
496497 <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>
497498 </table>
498499 */
499- public okhttp3 .Call repoSyncImportCall (String accountId , String id , String xPhraseAppOTP , RepoSyncImportParameters repoSyncImportParameters , final ApiCallback _callback ) throws ApiException {
500+ public okhttp3 .Call repoSyncImportCall (String accountId , String id , String xPhraseAppOTP , String branch , RepoSyncImportParameters repoSyncImportParameters , final ApiCallback _callback ) throws ApiException {
500501 Object localVarPostBody = repoSyncImportParameters ;
501502
502503 // create path and map variables
@@ -506,6 +507,10 @@ public okhttp3.Call repoSyncImportCall(String accountId, String id, String xPhra
506507
507508 List <Pair > localVarQueryParams = new ArrayList <Pair >();
508509 List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
510+ if (branch != null ) {
511+ localVarQueryParams .addAll (localVarApiClient .parameterToPair ("branch" , branch ));
512+ }
513+
509514 Map <String , String > localVarHeaderParams = new HashMap <String , String >();
510515 if (xPhraseAppOTP != null ) {
511516 localVarHeaderParams .put ("X-PhraseApp-OTP" , localVarApiClient .parameterToString (xPhraseAppOTP ));
@@ -532,7 +537,7 @@ public okhttp3.Call repoSyncImportCall(String accountId, String id, String xPhra
532537 }
533538
534539 @ SuppressWarnings ("rawtypes" )
535- private okhttp3 .Call repoSyncImportValidateBeforeCall (String accountId , String id , String xPhraseAppOTP , RepoSyncImportParameters repoSyncImportParameters , final ApiCallback _callback ) throws ApiException {
540+ private okhttp3 .Call repoSyncImportValidateBeforeCall (String accountId , String id , String xPhraseAppOTP , String branch , RepoSyncImportParameters repoSyncImportParameters , final ApiCallback _callback ) throws ApiException {
536541
537542 // verify the required parameter 'accountId' is set
538543 if (accountId == null ) {
@@ -545,7 +550,7 @@ private okhttp3.Call repoSyncImportValidateBeforeCall(String accountId, String i
545550 }
546551
547552
548- okhttp3 .Call localVarCall = repoSyncImportCall (accountId , id , xPhraseAppOTP , repoSyncImportParameters , _callback );
553+ okhttp3 .Call localVarCall = repoSyncImportCall (accountId , id , xPhraseAppOTP , branch , repoSyncImportParameters , _callback );
549554 return localVarCall ;
550555
551556 }
@@ -556,6 +561,7 @@ private okhttp3.Call repoSyncImportValidateBeforeCall(String accountId, String i
556561 * @param accountId Account ID (required)
557562 * @param id ID (required)
558563 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
564+ * @param branch Branch to use (optional)
559565 * @param repoSyncImportParameters (optional)
560566 * @return RepoSyncEvent
561567 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -568,8 +574,8 @@ private okhttp3.Call repoSyncImportValidateBeforeCall(String accountId, String i
568574 <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>
569575 </table>
570576 */
571- public RepoSyncEvent repoSyncImport (String accountId , String id , String xPhraseAppOTP , RepoSyncImportParameters repoSyncImportParameters ) throws ApiException {
572- ApiResponse <RepoSyncEvent > localVarResp = repoSyncImportWithHttpInfo (accountId , id , xPhraseAppOTP , repoSyncImportParameters );
577+ public RepoSyncEvent repoSyncImport (String accountId , String id , String xPhraseAppOTP , String branch , RepoSyncImportParameters repoSyncImportParameters ) throws ApiException {
578+ ApiResponse <RepoSyncEvent > localVarResp = repoSyncImportWithHttpInfo (accountId , id , xPhraseAppOTP , branch , repoSyncImportParameters );
573579 return localVarResp .getData ();
574580 }
575581
@@ -579,6 +585,7 @@ public RepoSyncEvent repoSyncImport(String accountId, String id, String xPhraseA
579585 * @param accountId Account ID (required)
580586 * @param id ID (required)
581587 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
588+ * @param branch Branch to use (optional)
582589 * @param repoSyncImportParameters (optional)
583590 * @return ApiResponse<RepoSyncEvent>
584591 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -591,8 +598,8 @@ public RepoSyncEvent repoSyncImport(String accountId, String id, String xPhraseA
591598 <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>
592599 </table>
593600 */
594- public ApiResponse <RepoSyncEvent > repoSyncImportWithHttpInfo (String accountId , String id , String xPhraseAppOTP , RepoSyncImportParameters repoSyncImportParameters ) throws ApiException {
595- okhttp3 .Call localVarCall = repoSyncImportValidateBeforeCall (accountId , id , xPhraseAppOTP , repoSyncImportParameters , null );
601+ public ApiResponse <RepoSyncEvent > repoSyncImportWithHttpInfo (String accountId , String id , String xPhraseAppOTP , String branch , RepoSyncImportParameters repoSyncImportParameters ) throws ApiException {
602+ okhttp3 .Call localVarCall = repoSyncImportValidateBeforeCall (accountId , id , xPhraseAppOTP , branch , repoSyncImportParameters , null );
596603 Type localVarReturnType = new TypeToken <RepoSyncEvent >(){}.getType ();
597604 return localVarApiClient .execute (localVarCall , localVarReturnType );
598605 }
@@ -603,6 +610,7 @@ public ApiResponse<RepoSyncEvent> repoSyncImportWithHttpInfo(String accountId, S
603610 * @param accountId Account ID (required)
604611 * @param id ID (required)
605612 * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
613+ * @param branch Branch to use (optional)
606614 * @param repoSyncImportParameters (optional)
607615 * @param _callback The callback to be executed when the API call finishes
608616 * @return The request call
@@ -616,9 +624,9 @@ public ApiResponse<RepoSyncEvent> repoSyncImportWithHttpInfo(String accountId, S
616624 <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>
617625 </table>
618626 */
619- public okhttp3 .Call repoSyncImportAsync (String accountId , String id , String xPhraseAppOTP , RepoSyncImportParameters repoSyncImportParameters , final ApiCallback <RepoSyncEvent > _callback ) throws ApiException {
627+ public okhttp3 .Call repoSyncImportAsync (String accountId , String id , String xPhraseAppOTP , String branch , RepoSyncImportParameters repoSyncImportParameters , final ApiCallback <RepoSyncEvent > _callback ) throws ApiException {
620628
621- okhttp3 .Call localVarCall = repoSyncImportValidateBeforeCall (accountId , id , xPhraseAppOTP , repoSyncImportParameters , _callback );
629+ okhttp3 .Call localVarCall = repoSyncImportValidateBeforeCall (accountId , id , xPhraseAppOTP , branch , repoSyncImportParameters , _callback );
622630 Type localVarReturnType = new TypeToken <RepoSyncEvent >(){}.getType ();
623631 localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
624632 return localVarCall ;
0 commit comments