Skip to content

Commit

Permalink
Deploying from phrase/openapi@b4e12d04
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Feb 7, 2024
1 parent b8ee711 commit 806c2cb
Show file tree
Hide file tree
Showing 218 changed files with 246 additions and 226 deletions.
9 changes: 9 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3456,6 +3456,15 @@ paths:
schema:
type: integer
style: form
- description: query to find a property by name
example: character_name
explode: true
in: query
name: q
required: false
schema:
type: string
style: form
- description: "Sort criteria. Can be one of: name, data_type, created_at."
example: updated_at
explode: true
Expand Down
6 changes: 4 additions & 2 deletions docs/CustomMetadataApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ null (empty response body)

<a name="customMetadataPropertiesList"></a>
# **customMetadataPropertiesList**
> List&lt;CustomMetadataProperty&gt; customMetadataPropertiesList(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order)
> List&lt;CustomMetadataProperty&gt; customMetadataPropertiesList(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, q, sort, order)
List properties

Expand Down Expand Up @@ -130,10 +130,11 @@ public class Example {
String projectId = "abcd1234cdef1234abcd1234cdef1234"; // String | id of project that the properties belong to
Integer page = 1; // Integer | Page number
Integer perPage = 25; // Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
String q = "character_name"; // String | query to find a property by name
String sort = "updated_at"; // String | Sort criteria. Can be one of: name, data_type, created_at.
String order = "desc"; // String | Order direction. Can be one of: asc, desc.
try {
List<CustomMetadataProperty> result = apiInstance.customMetadataPropertiesList(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order);
List<CustomMetadataProperty> result = apiInstance.customMetadataPropertiesList(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, q, sort, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomMetadataApi#customMetadataPropertiesList");
Expand All @@ -156,6 +157,7 @@ Name | Type | Description | Notes
**projectId** | **String**| id of project that the properties belong to | [optional]
**page** | **Integer**| Page number | [optional]
**perPage** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
**q** | **String**| query to find a property by name | [optional]
**sort** | **String**| Sort criteria. Can be one of: name, data_type, created_at. | [optional]
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]

Expand Down
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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[Etc/UTC]")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
26 changes: 17 additions & 9 deletions src/main/java/com/phrase/client/api/CustomMetadataApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public okhttp3.Call customMetadataPropertiesDeleteAsync(String accountId, String
* @param projectId id of project that the properties belong to (optional)
* @param page Page number (optional)
* @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional)
* @param q query to find a property by name (optional)
* @param sort Sort criteria. Can be one of: name, data_type, created_at. (optional)
* @param order Order direction. Can be one of: asc, desc. (optional)
* @param _callback Callback for upload/download progress
Expand All @@ -216,7 +217,7 @@ public okhttp3.Call customMetadataPropertiesDeleteAsync(String accountId, String
<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 customMetadataPropertiesListCall(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order, final ApiCallback _callback) throws ApiException {
public okhttp3.Call customMetadataPropertiesListCall(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String q, String sort, String order, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;

// create path and map variables
Expand All @@ -241,6 +242,10 @@ public okhttp3.Call customMetadataPropertiesListCall(String accountId, String xP
localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage));
}

if (q != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("q", q));
}

if (sort != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort));
}
Expand Down Expand Up @@ -275,15 +280,15 @@ public okhttp3.Call customMetadataPropertiesListCall(String accountId, String xP
}

@SuppressWarnings("rawtypes")
private okhttp3.Call customMetadataPropertiesListValidateBeforeCall(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order, final ApiCallback _callback) throws ApiException {
private okhttp3.Call customMetadataPropertiesListValidateBeforeCall(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String q, String sort, String order, final ApiCallback _callback) throws ApiException {

// verify the required parameter 'accountId' is set
if (accountId == null) {
throw new ApiException("Missing the required parameter 'accountId' when calling customMetadataPropertiesList(Async)");
}


okhttp3.Call localVarCall = customMetadataPropertiesListCall(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order, _callback);
okhttp3.Call localVarCall = customMetadataPropertiesListCall(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, q, sort, order, _callback);
return localVarCall;

}
Expand All @@ -297,6 +302,7 @@ private okhttp3.Call customMetadataPropertiesListValidateBeforeCall(String accou
* @param projectId id of project that the properties belong to (optional)
* @param page Page number (optional)
* @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional)
* @param q query to find a property by name (optional)
* @param sort Sort criteria. Can be one of: name, data_type, created_at. (optional)
* @param order Order direction. Can be one of: asc, desc. (optional)
* @return List&lt;CustomMetadataProperty&gt;
Expand All @@ -310,8 +316,8 @@ private okhttp3.Call customMetadataPropertiesListValidateBeforeCall(String accou
<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<CustomMetadataProperty> customMetadataPropertiesList(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order) throws ApiException {
ApiResponse<List<CustomMetadataProperty>> localVarResp = customMetadataPropertiesListWithHttpInfo(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order);
public List<CustomMetadataProperty> customMetadataPropertiesList(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String q, String sort, String order) throws ApiException {
ApiResponse<List<CustomMetadataProperty>> localVarResp = customMetadataPropertiesListWithHttpInfo(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, q, sort, order);
return localVarResp.getData();
}

Expand All @@ -324,6 +330,7 @@ public List<CustomMetadataProperty> customMetadataPropertiesList(String accountI
* @param projectId id of project that the properties belong to (optional)
* @param page Page number (optional)
* @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional)
* @param q query to find a property by name (optional)
* @param sort Sort criteria. Can be one of: name, data_type, created_at. (optional)
* @param order Order direction. Can be one of: asc, desc. (optional)
* @return ApiResponse&lt;List&lt;CustomMetadataProperty&gt;&gt;
Expand All @@ -337,8 +344,8 @@ public List<CustomMetadataProperty> customMetadataPropertiesList(String accountI
<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<CustomMetadataProperty>> customMetadataPropertiesListWithHttpInfo(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order) throws ApiException {
okhttp3.Call localVarCall = customMetadataPropertiesListValidateBeforeCall(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order, null);
public ApiResponse<List<CustomMetadataProperty>> customMetadataPropertiesListWithHttpInfo(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String q, String sort, String order) throws ApiException {
okhttp3.Call localVarCall = customMetadataPropertiesListValidateBeforeCall(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, q, sort, order, null);
Type localVarReturnType = new TypeToken<List<CustomMetadataProperty>>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
Expand All @@ -352,6 +359,7 @@ public ApiResponse<List<CustomMetadataProperty>> customMetadataPropertiesListWit
* @param projectId id of project that the properties belong to (optional)
* @param page Page number (optional)
* @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional)
* @param q query to find a property by name (optional)
* @param sort Sort criteria. Can be one of: name, data_type, created_at. (optional)
* @param order Order direction. Can be one of: asc, desc. (optional)
* @param _callback The callback to be executed when the API call finishes
Expand All @@ -366,9 +374,9 @@ public ApiResponse<List<CustomMetadataProperty>> customMetadataPropertiesListWit
<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 customMetadataPropertiesListAsync(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order, final ApiCallback<List<CustomMetadataProperty>> _callback) throws ApiException {
public okhttp3.Call customMetadataPropertiesListAsync(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String q, String sort, String order, final ApiCallback<List<CustomMetadataProperty>> _callback) throws ApiException {

okhttp3.Call localVarCall = customMetadataPropertiesListValidateBeforeCall(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order, _callback);
okhttp3.Call localVarCall = customMetadataPropertiesListValidateBeforeCall(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, q, sort, order, _callback);
Type localVarReturnType = new TypeToken<List<CustomMetadataProperty>>(){}.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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[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-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[Etc/UTC]")
public class BitbucketSync {
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 @@ -26,7 +26,7 @@
/**
* BitbucketSyncExportParameters
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-05T11:02:23.525849Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-07T15:13:10.273765Z[Etc/UTC]")
public class BitbucketSyncExportParameters {
public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id";
@SerializedName(SERIALIZED_NAME_ACCOUNT_ID)
Expand Down
Loading

0 comments on commit 806c2cb

Please sign in to comment.