Skip to content

Commit b745252

Browse files
author
Phrase
committed
Deploying from phrase/openapi@25e90f46
1 parent 3994348 commit b745252

File tree

233 files changed

+247
-308
lines changed

Some content is hidden

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

233 files changed

+247
-308
lines changed

api/openapi.yaml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,15 +1761,6 @@ paths:
17611761
description: Get a handy list of all localization file formats supported in
17621762
Phrase.
17631763
operationId: formats/list
1764-
parameters:
1765-
- description: Two-Factor-Authentication token (optional)
1766-
explode: false
1767-
in: header
1768-
name: X-PhraseApp-OTP
1769-
required: false
1770-
schema:
1771-
type: string
1772-
style: simple
17731764
responses:
17741765
"200":
17751766
content:
@@ -1779,17 +1770,6 @@ paths:
17791770
$ref: '#/components/schemas/format'
17801771
type: array
17811772
description: OK
1782-
headers:
1783-
X-Rate-Limit-Limit:
1784-
$ref: '#/components/headers/X-Rate-Limit-Limit'
1785-
X-Rate-Limit-Remaining:
1786-
$ref: '#/components/headers/X-Rate-Limit-Remaining'
1787-
X-Rate-Limit-Reset:
1788-
$ref: '#/components/headers/X-Rate-Limit-Reset'
1789-
Link:
1790-
$ref: '#/components/headers/Link'
1791-
Pagination:
1792-
$ref: '#/components/headers/Pagination'
17931773
"400":
17941774
description: Bad request
17951775
headers:
@@ -1799,24 +1779,6 @@ paths:
17991779
$ref: '#/components/headers/X-Rate-Limit-Remaining'
18001780
X-Rate-Limit-Reset:
18011781
$ref: '#/components/headers/X-Rate-Limit-Reset'
1802-
"404":
1803-
description: Not Found
1804-
headers:
1805-
X-Rate-Limit-Limit:
1806-
$ref: '#/components/headers/X-Rate-Limit-Limit'
1807-
X-Rate-Limit-Remaining:
1808-
$ref: '#/components/headers/X-Rate-Limit-Remaining'
1809-
X-Rate-Limit-Reset:
1810-
$ref: '#/components/headers/X-Rate-Limit-Reset'
1811-
"429":
1812-
description: Rate Limiting
1813-
headers:
1814-
X-Rate-Limit-Limit:
1815-
$ref: '#/components/headers/X-Rate-Limit-Limit'
1816-
X-Rate-Limit-Remaining:
1817-
$ref: '#/components/headers/X-Rate-Limit-Remaining'
1818-
X-Rate-Limit-Reset:
1819-
$ref: '#/components/headers/X-Rate-Limit-Reset'
18201782
summary: List formats
18211783
tags:
18221784
- Formats

docs/FormatsApi.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99

1010
<a name="formatsList"></a>
1111
# **formatsList**
12-
> List&lt;Format&gt; formatsList(xPhraseAppOTP)
12+
> List&lt;Format&gt; formatsList()
1313
1414
List formats
1515

@@ -41,9 +41,8 @@ public class Example {
4141
Token.setApiKeyPrefix("token");
4242

4343
FormatsApi apiInstance = new FormatsApi(defaultClient);
44-
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
4544
try {
46-
List<Format> result = apiInstance.formatsList(xPhraseAppOTP);
45+
List<Format> result = apiInstance.formatsList();
4746
System.out.println(result);
4847
} catch (ApiException e) {
4948
System.err.println("Exception when calling FormatsApi#formatsList");
@@ -57,10 +56,7 @@ public class Example {
5756
```
5857

5958
### Parameters
60-
61-
Name | Type | Description | Notes
62-
------------- | ------------- | ------------- | -------------
63-
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
59+
This endpoint does not need any parameter.
6460

6561
### Return type
6662

@@ -78,8 +74,6 @@ Name | Type | Description | Notes
7874
### HTTP response details
7975
| Status code | Description | Response headers |
8076
|-------------|-------------|------------------|
81-
**200** | OK | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> |
77+
**200** | OK | - |
8278
**400** | Bad request | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
83-
**404** | Not Found | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
84-
**429** | Rate Limiting | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
8579

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 = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
18+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[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 = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[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 = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[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 = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[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/FormatsApi.java

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,17 @@ public void setApiClient(ApiClient apiClient) {
5555

5656
/**
5757
* Build call for formatsList
58-
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
5958
* @param _callback Callback for upload/download progress
6059
* @return Call to execute
6160
* @throws ApiException If fail to serialize the request body object
6261
* @http.response.details
6362
<table summary="Response Details" border="1">
6463
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
65-
<tr><td> 200 </td><td> OK </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> </td></tr>
64+
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
6665
<tr><td> 400 </td><td> Bad request </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
67-
<tr><td> 404 </td><td> Not Found </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
68-
<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>
6966
</table>
7067
*/
71-
public okhttp3.Call formatsListCall(String xPhraseAppOTP, final ApiCallback _callback) throws ApiException {
68+
public okhttp3.Call formatsListCall(final ApiCallback _callback) throws ApiException {
7269
Object localVarPostBody = null;
7370

7471
// create path and map variables
@@ -77,10 +74,6 @@ public okhttp3.Call formatsListCall(String xPhraseAppOTP, final ApiCallback _cal
7774
List<Pair> localVarQueryParams = new ArrayList<Pair>();
7875
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
7976
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
80-
if (xPhraseAppOTP != null) {
81-
localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP));
82-
}
83-
8477
Map<String, String> localVarCookieParams = new HashMap<String, String>();
8578
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
8679
final String[] localVarAccepts = {
@@ -102,74 +95,65 @@ public okhttp3.Call formatsListCall(String xPhraseAppOTP, final ApiCallback _cal
10295
}
10396

10497
@SuppressWarnings("rawtypes")
105-
private okhttp3.Call formatsListValidateBeforeCall(String xPhraseAppOTP, final ApiCallback _callback) throws ApiException {
98+
private okhttp3.Call formatsListValidateBeforeCall(final ApiCallback _callback) throws ApiException {
10699

107100

108-
okhttp3.Call localVarCall = formatsListCall(xPhraseAppOTP, _callback);
101+
okhttp3.Call localVarCall = formatsListCall(_callback);
109102
return localVarCall;
110103

111104
}
112105

113106
/**
114107
* List formats
115108
* Get a handy list of all localization file formats supported in Phrase.
116-
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
117109
* @return List&lt;Format&gt;
118110
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
119111
* @http.response.details
120112
<table summary="Response Details" border="1">
121113
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
122-
<tr><td> 200 </td><td> OK </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> </td></tr>
114+
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
123115
<tr><td> 400 </td><td> Bad request </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
124-
<tr><td> 404 </td><td> Not Found </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
125-
<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>
126116
</table>
127117
*/
128-
public List<Format> formatsList(String xPhraseAppOTP) throws ApiException {
129-
ApiResponse<List<Format>> localVarResp = formatsListWithHttpInfo(xPhraseAppOTP);
118+
public List<Format> formatsList() throws ApiException {
119+
ApiResponse<List<Format>> localVarResp = formatsListWithHttpInfo();
130120
return localVarResp.getData();
131121
}
132122

133123
/**
134124
* List formats
135125
* Get a handy list of all localization file formats supported in Phrase.
136-
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
137126
* @return ApiResponse&lt;List&lt;Format&gt;&gt;
138127
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
139128
* @http.response.details
140129
<table summary="Response Details" border="1">
141130
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
142-
<tr><td> 200 </td><td> OK </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> </td></tr>
131+
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
143132
<tr><td> 400 </td><td> Bad request </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
144-
<tr><td> 404 </td><td> Not Found </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
145-
<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>
146133
</table>
147134
*/
148-
public ApiResponse<List<Format>> formatsListWithHttpInfo(String xPhraseAppOTP) throws ApiException {
149-
okhttp3.Call localVarCall = formatsListValidateBeforeCall(xPhraseAppOTP, null);
135+
public ApiResponse<List<Format>> formatsListWithHttpInfo() throws ApiException {
136+
okhttp3.Call localVarCall = formatsListValidateBeforeCall(null);
150137
Type localVarReturnType = new TypeToken<List<Format>>(){}.getType();
151138
return localVarApiClient.execute(localVarCall, localVarReturnType);
152139
}
153140

154141
/**
155142
* List formats (asynchronously)
156143
* Get a handy list of all localization file formats supported in Phrase.
157-
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
158144
* @param _callback The callback to be executed when the API call finishes
159145
* @return The request call
160146
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
161147
* @http.response.details
162148
<table summary="Response Details" border="1">
163149
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
164-
<tr><td> 200 </td><td> OK </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> </td></tr>
150+
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
165151
<tr><td> 400 </td><td> Bad request </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
166-
<tr><td> 404 </td><td> Not Found </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
167-
<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>
168152
</table>
169153
*/
170-
public okhttp3.Call formatsListAsync(String xPhraseAppOTP, final ApiCallback<List<Format>> _callback) throws ApiException {
154+
public okhttp3.Call formatsListAsync(final ApiCallback<List<Format>> _callback) throws ApiException {
171155

172-
okhttp3.Call localVarCall = formatsListValidateBeforeCall(xPhraseAppOTP, _callback);
156+
okhttp3.Call localVarCall = formatsListValidateBeforeCall(_callback);
173157
Type localVarReturnType = new TypeToken<List<Format>>(){}.getType();
174158
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
175159
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 = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[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 = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[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 = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
25+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
2626
public abstract class AbstractOpenApiSchema {
2727

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

0 commit comments

Comments
 (0)