Skip to content

Commit e1dfc0b

Browse files
author
Phrase
committed
1 parent 114988a commit e1dfc0b

231 files changed

Lines changed: 259 additions & 239 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21108,6 +21108,15 @@ paths:
2110821108
schema:
2110921109
type: string
2111021110
style: simple
21111+
- description: Branch to use
21112+
example: my-feature-branch
21113+
explode: true
21114+
in: query
21115+
name: branch
21116+
required: false
21117+
schema:
21118+
type: string
21119+
style: form
2111121120
requestBody:
2111221121
content:
2111321122
application/json:

docs/RepoSyncsApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Name | Type | Description | Notes
254254

255255
<a name="repoSyncImport"></a>
256256
# **repoSyncImport**
257-
> RepoSyncEvent repoSyncImport(accountId, id, xPhraseAppOTP, repoSyncImportParameters)
257+
> RepoSyncEvent repoSyncImport(accountId, id, xPhraseAppOTP, branch, repoSyncImportParameters)
258258
259259
Import from code repository
260260

@@ -289,9 +289,10 @@ public class Example {
289289
String accountId = "accountId_example"; // String | Account ID
290290
String id = "id_example"; // String | ID
291291
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
292+
String branch = "my-feature-branch"; // String | Branch to use
292293
RepoSyncImportParameters repoSyncImportParameters = new RepoSyncImportParameters(); // RepoSyncImportParameters |
293294
try {
294-
RepoSyncEvent result = apiInstance.repoSyncImport(accountId, id, xPhraseAppOTP, repoSyncImportParameters);
295+
RepoSyncEvent result = apiInstance.repoSyncImport(accountId, id, xPhraseAppOTP, branch, repoSyncImportParameters);
295296
System.out.println(result);
296297
} catch (ApiException e) {
297298
System.err.println("Exception when calling RepoSyncsApi#repoSyncImport");
@@ -311,6 +312,7 @@ Name | Type | Description | Notes
311312
**accountId** | **String**| Account ID |
312313
**id** | **String**| ID |
313314
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
315+
**branch** | **String**| Branch to use | [optional]
314316
**repoSyncImportParameters** | [**RepoSyncImportParameters**](RepoSyncImportParameters.md)| | [optional]
315317

316318
### Return type

src/main/java/com/phrase/client/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.Map;
1616
import java.util.List;
1717

18-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:27:29.804514966Z[Etc/UTC]")
18+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:32:26.382339902Z[Etc/UTC]")
1919
public class ApiException extends Exception {
2020
private int code = 0;
2121
private Map<String, List<String>> responseHeaders = null;

src/main/java/com/phrase/client/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:27:29.804514966Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:32:26.382339902Z[Etc/UTC]")
1616
public class Configuration {
1717
private static ApiClient defaultApiClient = new ApiClient();
1818

src/main/java/com/phrase/client/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:27:29.804514966Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:32:26.382339902Z[Etc/UTC]")
1616
public class Pair {
1717
private String name = "";
1818
private String value = "";

src/main/java/com/phrase/client/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:27:29.804514966Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:32:26.382339902Z[Etc/UTC]")
1616
public class StringUtil {
1717
/**
1818
* Check if the given array contains the given value (with case-insensitive comparison).

src/main/java/com/phrase/client/api/RepoSyncsApi.java

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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&lt;RepoSyncEvent&gt;
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;

src/main/java/com/phrase/client/auth/ApiKeyAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.List;
1919

20-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:27:29.804514966Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:32:26.382339902Z[Etc/UTC]")
2121
public class ApiKeyAuth implements Authentication {
2222
private final String location;
2323
private final String paramName;

src/main/java/com/phrase/client/auth/HttpBearerAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.List;
1919

20-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:27:29.804514966Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:32:26.382339902Z[Etc/UTC]")
2121
public class HttpBearerAuth implements Authentication {
2222
private final String scheme;
2323
private String bearerToken;

src/main/java/com/phrase/client/model/AbstractOpenApiSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
2424
*/
25-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:27:29.804514966Z[Etc/UTC]")
25+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-27T07:32:26.382339902Z[Etc/UTC]")
2626
public abstract class AbstractOpenApiSchema {
2727

2828
// store the actual instance of the schema/object

0 commit comments

Comments
 (0)