Skip to content

Commit

Permalink
Deploying from phrase/openapi@25e90f46
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Oct 1, 2024
1 parent 3994348 commit b745252
Show file tree
Hide file tree
Showing 233 changed files with 247 additions and 308 deletions.
38 changes: 0 additions & 38 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1761,15 +1761,6 @@ paths:
description: Get a handy list of all localization file formats supported in
Phrase.
operationId: formats/list
parameters:
- description: Two-Factor-Authentication token (optional)
explode: false
in: header
name: X-PhraseApp-OTP
required: false
schema:
type: string
style: simple
responses:
"200":
content:
Expand All @@ -1779,17 +1770,6 @@ paths:
$ref: '#/components/schemas/format'
type: array
description: OK
headers:
X-Rate-Limit-Limit:
$ref: '#/components/headers/X-Rate-Limit-Limit'
X-Rate-Limit-Remaining:
$ref: '#/components/headers/X-Rate-Limit-Remaining'
X-Rate-Limit-Reset:
$ref: '#/components/headers/X-Rate-Limit-Reset'
Link:
$ref: '#/components/headers/Link'
Pagination:
$ref: '#/components/headers/Pagination'
"400":
description: Bad request
headers:
Expand All @@ -1799,24 +1779,6 @@ paths:
$ref: '#/components/headers/X-Rate-Limit-Remaining'
X-Rate-Limit-Reset:
$ref: '#/components/headers/X-Rate-Limit-Reset'
"404":
description: Not Found
headers:
X-Rate-Limit-Limit:
$ref: '#/components/headers/X-Rate-Limit-Limit'
X-Rate-Limit-Remaining:
$ref: '#/components/headers/X-Rate-Limit-Remaining'
X-Rate-Limit-Reset:
$ref: '#/components/headers/X-Rate-Limit-Reset'
"429":
description: Rate Limiting
headers:
X-Rate-Limit-Limit:
$ref: '#/components/headers/X-Rate-Limit-Limit'
X-Rate-Limit-Remaining:
$ref: '#/components/headers/X-Rate-Limit-Remaining'
X-Rate-Limit-Reset:
$ref: '#/components/headers/X-Rate-Limit-Reset'
summary: List formats
tags:
- Formats
Expand Down
14 changes: 4 additions & 10 deletions docs/FormatsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Method | HTTP request | Description

<a name="formatsList"></a>
# **formatsList**
> List&lt;Format&gt; formatsList(xPhraseAppOTP)
> List&lt;Format&gt; formatsList()
List formats

Expand Down Expand Up @@ -41,9 +41,8 @@ public class Example {
Token.setApiKeyPrefix("token");

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

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
This endpoint does not need any parameter.

### Return type

Expand All @@ -78,8 +74,6 @@ Name | Type | Description | Notes
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> |
**200** | OK | - |
**400** | Bad request | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
**404** | Not Found | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
**429** | Rate Limiting | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |

2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

package com.phrase.client;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class Configuration {
private static ApiClient defaultApiClient = new ApiClient();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

package com.phrase.client;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

package com.phrase.client;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
42 changes: 13 additions & 29 deletions src/main/java/com/phrase/client/api/FormatsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,17 @@ public void setApiClient(ApiClient apiClient) {

/**
* Build call for formatsList
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<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>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<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>
<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>
<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>
</table>
*/
public okhttp3.Call formatsListCall(String xPhraseAppOTP, final ApiCallback _callback) throws ApiException {
public okhttp3.Call formatsListCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;

// create path and map variables
Expand All @@ -77,10 +74,6 @@ public okhttp3.Call formatsListCall(String xPhraseAppOTP, final ApiCallback _cal
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
if (xPhraseAppOTP != null) {
localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP));
}

Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
Expand All @@ -102,74 +95,65 @@ public okhttp3.Call formatsListCall(String xPhraseAppOTP, final ApiCallback _cal
}

@SuppressWarnings("rawtypes")
private okhttp3.Call formatsListValidateBeforeCall(String xPhraseAppOTP, final ApiCallback _callback) throws ApiException {
private okhttp3.Call formatsListValidateBeforeCall(final ApiCallback _callback) throws ApiException {


okhttp3.Call localVarCall = formatsListCall(xPhraseAppOTP, _callback);
okhttp3.Call localVarCall = formatsListCall(_callback);
return localVarCall;

}

/**
* List formats
* Get a handy list of all localization file formats supported in Phrase.
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
* @return List&lt;Format&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<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>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<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>
<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>
<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>
</table>
*/
public List<Format> formatsList(String xPhraseAppOTP) throws ApiException {
ApiResponse<List<Format>> localVarResp = formatsListWithHttpInfo(xPhraseAppOTP);
public List<Format> formatsList() throws ApiException {
ApiResponse<List<Format>> localVarResp = formatsListWithHttpInfo();
return localVarResp.getData();
}

/**
* List formats
* Get a handy list of all localization file formats supported in Phrase.
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
* @return ApiResponse&lt;List&lt;Format&gt;&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<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>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<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>
<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>
<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>
</table>
*/
public ApiResponse<List<Format>> formatsListWithHttpInfo(String xPhraseAppOTP) throws ApiException {
okhttp3.Call localVarCall = formatsListValidateBeforeCall(xPhraseAppOTP, null);
public ApiResponse<List<Format>> formatsListWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = formatsListValidateBeforeCall(null);
Type localVarReturnType = new TypeToken<List<Format>>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

/**
* List formats (asynchronously)
* Get a handy list of all localization file formats supported in Phrase.
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<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>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<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>
<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>
<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>
</table>
*/
public okhttp3.Call formatsListAsync(String xPhraseAppOTP, final ApiCallback<List<Format>> _callback) throws ApiException {
public okhttp3.Call formatsListAsync(final ApiCallback<List<Format>> _callback) throws ApiException {

okhttp3.Call localVarCall = formatsListValidateBeforeCall(xPhraseAppOTP, _callback);
okhttp3.Call localVarCall = formatsListValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken<List<Format>>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/auth/ApiKeyAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/auth/HttpBearerAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class HttpBearerAuth implements Authentication {
private final String scheme;
private String bearerToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public abstract class AbstractOpenApiSchema {

// store the actual instance of the schema/object
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/**
* Account
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class Account {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/model/AccountDetails.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* AccountDetails
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class AccountDetails {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
/**
* AccountSearchResult
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class AccountSearchResult {
public static final String SERIALIZED_NAME_QUERY = "query";
@SerializedName(SERIALIZED_NAME_QUERY)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/model/AffectedCount.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* AffectedCount
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class AffectedCount {
public static final String SERIALIZED_NAME_RECORDS_AFFECTED = "records_affected";
@SerializedName(SERIALIZED_NAME_RECORDS_AFFECTED)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* AffectedResources
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class AffectedResources {
public static final String SERIALIZED_NAME_RECORDS_AFFECTED = "records_affected";
@SerializedName(SERIALIZED_NAME_RECORDS_AFFECTED)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/model/Authorization.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* Authorization
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class Authorization {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* AuthorizationCreateParameters
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class AuthorizationCreateParameters {
public static final String SERIALIZED_NAME_NOTE = "note";
@SerializedName(SERIALIZED_NAME_NOTE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* AuthorizationUpdateParameters
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class AuthorizationUpdateParameters {
public static final String SERIALIZED_NAME_NOTE = "note";
@SerializedName(SERIALIZED_NAME_NOTE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* AuthorizationWithToken
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class AuthorizationWithToken {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/phrase/client/model/BitbucketSync.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* BitbucketSync
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T11:27:31.685533Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-01T11:34:28.148097Z[Etc/UTC]")
public class BitbucketSync {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
Expand Down
Loading

0 comments on commit b745252

Please sign in to comment.