Skip to content

Commit 5400ae8

Browse files
author
Phrase
committed
1 parent b3f7fd5 commit 5400ae8

File tree

231 files changed

+239
-321
lines changed

Some content is hidden

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

231 files changed

+239
-321
lines changed

api/openapi.yaml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3760,27 +3760,6 @@ paths:
37603760
schema:
37613761
type: string
37623762
style: simple
3763-
- allowEmptyValue: false
3764-
description: Page number
3765-
example: 1
3766-
explode: true
3767-
in: query
3768-
name: page
3769-
required: false
3770-
schema:
3771-
type: integer
3772-
style: form
3773-
- allowEmptyValue: false
3774-
description: "Limit on the number of objects to be returned, between 1 and\
3775-
\ 100. 25 by default"
3776-
example: 25
3777-
explode: true
3778-
in: query
3779-
name: per_page
3780-
required: false
3781-
schema:
3782-
type: integer
3783-
style: form
37843763
responses:
37853764
"200":
37863765
content:
@@ -32651,18 +32630,14 @@ components:
3265132630
type: object
3265232631
locale_preview_1:
3265332632
example:
32654-
id: abcd1234cdef1234abcd1234cdef1234
3265532633
name: English
3265632634
code: en-GB
3265732635
project:
32658-
id: abcd1234cdef1234abcd1234cdef1234
3265932636
name: My Android Project
3266032637
main_format: xml
3266132638
created_at: 2015-01-28T09:52:53Z
3266232639
updated_at: 2015-01-28T09:52:53Z
3266332640
properties:
32664-
id:
32665-
type: string
3266632641
name:
3266732642
type: string
3266832643
code:

docs/LocalePreview1.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**id** | **String** | | [optional]
109
**name** | **String** | | [optional]
1110
**code** | **String** | | [optional]
1211
**project** | [**ProjectShort**](ProjectShort.md) | | [optional]

docs/LocalesApi.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Method | HTTP request | Description
1515

1616
<a name="accountLocales"></a>
1717
# **accountLocales**
18-
> List&lt;LocalePreview1&gt; accountLocales(id, xPhraseAppOTP, page, perPage)
18+
> List&lt;LocalePreview1&gt; accountLocales(id, xPhraseAppOTP)
1919
2020
List locales used in account
2121

@@ -49,10 +49,8 @@ public class Example {
4949
LocalesApi apiInstance = new LocalesApi(defaultClient);
5050
String id = "id_example"; // String | ID
5151
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
52-
Integer page = 1; // Integer | Page number
53-
Integer perPage = 25; // Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
5452
try {
55-
List<LocalePreview1> result = apiInstance.accountLocales(id, xPhraseAppOTP, page, perPage);
53+
List<LocalePreview1> result = apiInstance.accountLocales(id, xPhraseAppOTP);
5654
System.out.println(result);
5755
} catch (ApiException e) {
5856
System.err.println("Exception when calling LocalesApi#accountLocales");
@@ -71,8 +69,6 @@ Name | Type | Description | Notes
7169
------------- | ------------- | ------------- | -------------
7270
**id** | **String**| ID |
7371
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
74-
**page** | **Integer**| Page number | [optional]
75-
**perPage** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
7672

7773
### Return type
7874

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 = "2025-12-17T11:49:59.766862026Z[Etc/UTC]")
18+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-06T09:06:49.023047988Z[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 = "2025-12-17T11:49:59.766862026Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-06T09:06:49.023047988Z[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 = "2025-12-17T11:49:59.766862026Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-06T09:06:49.023047988Z[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 = "2025-12-17T11:49:59.766862026Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-06T09:06:49.023047988Z[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/LocalesApi.java

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ public void setApiClient(ApiClient apiClient) {
6262
* Build call for accountLocales
6363
* @param id ID (required)
6464
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
65-
* @param page Page number (optional)
66-
* @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional)
6765
* @param _callback Callback for upload/download progress
6866
* @return Call to execute
6967
* @throws ApiException If fail to serialize the request body object
@@ -76,7 +74,7 @@ public void setApiClient(ApiClient apiClient) {
7674
<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>
7775
</table>
7876
*/
79-
public okhttp3.Call accountLocalesCall(String id, String xPhraseAppOTP, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException {
77+
public okhttp3.Call accountLocalesCall(String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException {
8078
Object localVarPostBody = null;
8179

8280
// create path and map variables
@@ -85,14 +83,6 @@ public okhttp3.Call accountLocalesCall(String id, String xPhraseAppOTP, Integer
8583

8684
List<Pair> localVarQueryParams = new ArrayList<Pair>();
8785
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
88-
if (page != null) {
89-
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
90-
}
91-
92-
if (perPage != null) {
93-
localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage));
94-
}
95-
9686
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
9787
if (xPhraseAppOTP != null) {
9888
localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP));
@@ -119,15 +109,15 @@ public okhttp3.Call accountLocalesCall(String id, String xPhraseAppOTP, Integer
119109
}
120110

121111
@SuppressWarnings("rawtypes")
122-
private okhttp3.Call accountLocalesValidateBeforeCall(String id, String xPhraseAppOTP, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException {
112+
private okhttp3.Call accountLocalesValidateBeforeCall(String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException {
123113

124114
// verify the required parameter 'id' is set
125115
if (id == null) {
126116
throw new ApiException("Missing the required parameter 'id' when calling accountLocales(Async)");
127117
}
128118

129119

130-
okhttp3.Call localVarCall = accountLocalesCall(id, xPhraseAppOTP, page, perPage, _callback);
120+
okhttp3.Call localVarCall = accountLocalesCall(id, xPhraseAppOTP, _callback);
131121
return localVarCall;
132122

133123
}
@@ -137,8 +127,6 @@ private okhttp3.Call accountLocalesValidateBeforeCall(String id, String xPhraseA
137127
* List all locales unique by locale code used across all projects within an account.
138128
* @param id ID (required)
139129
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
140-
* @param page Page number (optional)
141-
* @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional)
142130
* @return List&lt;LocalePreview1&gt;
143131
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
144132
* @http.response.details
@@ -150,8 +138,8 @@ private okhttp3.Call accountLocalesValidateBeforeCall(String id, String xPhraseA
150138
<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>
151139
</table>
152140
*/
153-
public List<LocalePreview1> accountLocales(String id, String xPhraseAppOTP, Integer page, Integer perPage) throws ApiException {
154-
ApiResponse<List<LocalePreview1>> localVarResp = accountLocalesWithHttpInfo(id, xPhraseAppOTP, page, perPage);
141+
public List<LocalePreview1> accountLocales(String id, String xPhraseAppOTP) throws ApiException {
142+
ApiResponse<List<LocalePreview1>> localVarResp = accountLocalesWithHttpInfo(id, xPhraseAppOTP);
155143
return localVarResp.getData();
156144
}
157145

@@ -160,8 +148,6 @@ public List<LocalePreview1> accountLocales(String id, String xPhraseAppOTP, Inte
160148
* List all locales unique by locale code used across all projects within an account.
161149
* @param id ID (required)
162150
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
163-
* @param page Page number (optional)
164-
* @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional)
165151
* @return ApiResponse&lt;List&lt;LocalePreview1&gt;&gt;
166152
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
167153
* @http.response.details
@@ -173,8 +159,8 @@ public List<LocalePreview1> accountLocales(String id, String xPhraseAppOTP, Inte
173159
<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>
174160
</table>
175161
*/
176-
public ApiResponse<List<LocalePreview1>> accountLocalesWithHttpInfo(String id, String xPhraseAppOTP, Integer page, Integer perPage) throws ApiException {
177-
okhttp3.Call localVarCall = accountLocalesValidateBeforeCall(id, xPhraseAppOTP, page, perPage, null);
162+
public ApiResponse<List<LocalePreview1>> accountLocalesWithHttpInfo(String id, String xPhraseAppOTP) throws ApiException {
163+
okhttp3.Call localVarCall = accountLocalesValidateBeforeCall(id, xPhraseAppOTP, null);
178164
Type localVarReturnType = new TypeToken<List<LocalePreview1>>(){}.getType();
179165
return localVarApiClient.execute(localVarCall, localVarReturnType);
180166
}
@@ -184,8 +170,6 @@ public ApiResponse<List<LocalePreview1>> accountLocalesWithHttpInfo(String id, S
184170
* List all locales unique by locale code used across all projects within an account.
185171
* @param id ID (required)
186172
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
187-
* @param page Page number (optional)
188-
* @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional)
189173
* @param _callback The callback to be executed when the API call finishes
190174
* @return The request call
191175
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -198,9 +182,9 @@ public ApiResponse<List<LocalePreview1>> accountLocalesWithHttpInfo(String id, S
198182
<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>
199183
</table>
200184
*/
201-
public okhttp3.Call accountLocalesAsync(String id, String xPhraseAppOTP, Integer page, Integer perPage, final ApiCallback<List<LocalePreview1>> _callback) throws ApiException {
185+
public okhttp3.Call accountLocalesAsync(String id, String xPhraseAppOTP, final ApiCallback<List<LocalePreview1>> _callback) throws ApiException {
202186

203-
okhttp3.Call localVarCall = accountLocalesValidateBeforeCall(id, xPhraseAppOTP, page, perPage, _callback);
187+
okhttp3.Call localVarCall = accountLocalesValidateBeforeCall(id, xPhraseAppOTP, _callback);
204188
Type localVarReturnType = new TypeToken<List<LocalePreview1>>(){}.getType();
205189
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
206190
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 = "2025-12-17T11:49:59.766862026Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-06T09:06:49.023047988Z[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 = "2025-12-17T11:49:59.766862026Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-06T09:06:49.023047988Z[Etc/UTC]")
2121
public class HttpBearerAuth implements Authentication {
2222
private final String scheme;
2323
private String bearerToken;

0 commit comments

Comments
 (0)