Skip to content

Commit

Permalink
Deploying from phrase/openapi@08d9846b
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Apr 4, 2024
1 parent 06aca5b commit 7c47d74
Show file tree
Hide file tree
Showing 222 changed files with 411 additions and 318 deletions.
57 changes: 49 additions & 8 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27792,10 +27792,18 @@ paths:
schema:
type: string
style: simple
- description: Account ID
- description: Project ID
explode: false
in: path
name: account_id
name: project_id
required: true
schema:
type: string
style: simple
- description: Parent Translation Key ID
explode: false
in: path
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -27848,10 +27856,18 @@ paths:
schema:
type: string
style: simple
- description: Account ID
- description: Project ID
explode: false
in: path
name: account_id
name: project_id
required: true
schema:
type: string
style: simple
- description: Parent Translation Key ID
explode: false
in: path
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -27886,10 +27902,18 @@ paths:
schema:
type: string
style: simple
- description: Account ID
- description: Project ID
explode: false
in: path
name: account_id
name: project_id
required: true
schema:
type: string
style: simple
- description: Parent Translation Key ID
explode: false
in: path
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -27938,10 +27962,18 @@ paths:
schema:
type: string
style: simple
- description: Account ID
- description: Project ID
explode: false
in: path
name: account_id
name: project_id
required: true
schema:
type: string
style: simple
- description: Parent Translation Key ID
explode: false
in: path
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -28135,6 +28167,15 @@ components:
schema:
type: string
style: simple
key_id_as_id:
description: Parent Translation Key ID
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
figma_attachment_id:
description: Figma attachment ID
explode: false
Expand Down
40 changes: 24 additions & 16 deletions docs/LinkedKeysApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Method | HTTP request | Description

<a name="keyLinksBatchDestroy"></a>
# **keyLinksBatchDestroy**
> keyLinksBatchDestroy(accountId, keyLinksBatchDestroyParameters, xPhraseAppOTP, unlinkParent)
> keyLinksBatchDestroy(projectId, id, keyLinksBatchDestroyParameters, xPhraseAppOTP, unlinkParent)
Batch unlink child keys from a parent key

Expand Down Expand Up @@ -44,12 +44,13 @@ public class Example {
Token.setApiKeyPrefix("token");

LinkedKeysApi apiInstance = new LinkedKeysApi(defaultClient);
String accountId = "accountId_example"; // String | Account ID
String projectId = "projectId_example"; // String | Project ID
String id = "id_example"; // String | Parent Translation Key ID
KeyLinksBatchDestroyParameters keyLinksBatchDestroyParameters = new KeyLinksBatchDestroyParameters(); // KeyLinksBatchDestroyParameters |
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
Boolean unlinkParent = true; // Boolean | Whether to unlink the parent key as well and unmark it as linked-key.
try {
apiInstance.keyLinksBatchDestroy(accountId, keyLinksBatchDestroyParameters, xPhraseAppOTP, unlinkParent);
apiInstance.keyLinksBatchDestroy(projectId, id, keyLinksBatchDestroyParameters, xPhraseAppOTP, unlinkParent);
} catch (ApiException e) {
System.err.println("Exception when calling LinkedKeysApi#keyLinksBatchDestroy");
System.err.println("Status code: " + e.getCode());
Expand All @@ -65,7 +66,8 @@ public class Example {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **String**| Account ID |
**projectId** | **String**| Project ID |
**id** | **String**| Parent Translation Key ID |
**keyLinksBatchDestroyParameters** | [**KeyLinksBatchDestroyParameters**](KeyLinksBatchDestroyParameters.md)| |
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
**unlinkParent** | **Boolean**| Whether to unlink the parent key as well and unmark it as linked-key. | [optional]
Expand All @@ -91,7 +93,7 @@ null (empty response body)

<a name="keyLinksCreate"></a>
# **keyLinksCreate**
> KeyLink keyLinksCreate(accountId, keyLinksCreateParameters, xPhraseAppOTP)
> KeyLink keyLinksCreate(projectId, id, keyLinksCreateParameters, xPhraseAppOTP)
Link child keys to a parent key

Expand Down Expand Up @@ -123,11 +125,12 @@ public class Example {
Token.setApiKeyPrefix("token");

LinkedKeysApi apiInstance = new LinkedKeysApi(defaultClient);
String accountId = "accountId_example"; // String | Account ID
String projectId = "projectId_example"; // String | Project ID
String id = "id_example"; // String | Parent Translation Key ID
KeyLinksCreateParameters keyLinksCreateParameters = new KeyLinksCreateParameters(); // KeyLinksCreateParameters |
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
try {
KeyLink result = apiInstance.keyLinksCreate(accountId, keyLinksCreateParameters, xPhraseAppOTP);
KeyLink result = apiInstance.keyLinksCreate(projectId, id, keyLinksCreateParameters, xPhraseAppOTP);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LinkedKeysApi#keyLinksCreate");
Expand All @@ -144,7 +147,8 @@ public class Example {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **String**| Account ID |
**projectId** | **String**| Project ID |
**id** | **String**| Parent Translation Key ID |
**keyLinksCreateParameters** | [**KeyLinksCreateParameters**](KeyLinksCreateParameters.md)| |
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]

Expand All @@ -169,7 +173,7 @@ Name | Type | Description | Notes

<a name="keyLinksDestroy"></a>
# **keyLinksDestroy**
> keyLinksDestroy(accountId, childKeyId, xPhraseAppOTP)
> keyLinksDestroy(projectId, id, childKeyId, xPhraseAppOTP)
Unlink a child key from a parent key

Expand Down Expand Up @@ -201,11 +205,12 @@ public class Example {
Token.setApiKeyPrefix("token");

LinkedKeysApi apiInstance = new LinkedKeysApi(defaultClient);
String accountId = "accountId_example"; // String | Account ID
String projectId = "projectId_example"; // String | Project ID
String id = "id_example"; // String | Parent Translation Key ID
String childKeyId = "childKeyId_example"; // String | The ID of the child key to unlink.
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
try {
apiInstance.keyLinksDestroy(accountId, childKeyId, xPhraseAppOTP);
apiInstance.keyLinksDestroy(projectId, id, childKeyId, xPhraseAppOTP);
} catch (ApiException e) {
System.err.println("Exception when calling LinkedKeysApi#keyLinksDestroy");
System.err.println("Status code: " + e.getCode());
Expand All @@ -221,7 +226,8 @@ public class Example {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **String**| Account ID |
**projectId** | **String**| Project ID |
**id** | **String**| Parent Translation Key ID |
**childKeyId** | **String**| The ID of the child key to unlink. |
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]

Expand All @@ -246,7 +252,7 @@ null (empty response body)

<a name="keyLinksIndex"></a>
# **keyLinksIndex**
> KeyLink keyLinksIndex(accountId, xPhraseAppOTP)
> KeyLink keyLinksIndex(projectId, id, xPhraseAppOTP)
Retrieve all child keys linked to a specific parent key

Expand Down Expand Up @@ -278,10 +284,11 @@ public class Example {
Token.setApiKeyPrefix("token");

LinkedKeysApi apiInstance = new LinkedKeysApi(defaultClient);
String accountId = "accountId_example"; // String | Account ID
String projectId = "projectId_example"; // String | Project ID
String id = "id_example"; // String | Parent Translation Key ID
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
try {
KeyLink result = apiInstance.keyLinksIndex(accountId, xPhraseAppOTP);
KeyLink result = apiInstance.keyLinksIndex(projectId, id, xPhraseAppOTP);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LinkedKeysApi#keyLinksIndex");
Expand All @@ -298,7 +305,8 @@ public class Example {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **String**| Account ID |
**projectId** | **String**| Project ID |
**id** | **String**| Parent Translation Key ID |
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]

### Return type
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-04-03T13:47:53.010049Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-04T07:20:09.103507Z[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-04-03T13:47:53.010049Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-04T07:20:09.103507Z[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-04-03T13:47:53.010049Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-04T07:20:09.103507Z[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-04-03T13:47:53.010049Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-04T07:20:09.103507Z[Etc/UTC]")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
Loading

0 comments on commit 7c47d74

Please sign in to comment.