Skip to content

Commit

Permalink
Deploying from phrase/openapi@e201d136
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Nov 20, 2024
1 parent a765b3f commit 5fc2378
Show file tree
Hide file tree
Showing 243 changed files with 573 additions and 362 deletions.
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ docs/BranchUpdateParameters.md
docs/BranchesApi.md
docs/Comment.md
docs/CommentCreateParameters.md
docs/CommentCreateParameters1.md
docs/CommentMarkReadParameters.md
docs/CommentReaction.md
docs/CommentReactionsApi.md
Expand Down Expand Up @@ -391,6 +392,7 @@ src/main/java/com/phrase/client/model/BranchName.java
src/main/java/com/phrase/client/model/BranchUpdateParameters.java
src/main/java/com/phrase/client/model/Comment.java
src/main/java/com/phrase/client/model/CommentCreateParameters.java
src/main/java/com/phrase/client/model/CommentCreateParameters1.java
src/main/java/com/phrase/client/model/CommentMarkReadParameters.java
src/main/java/com/phrase/client/model/CommentReaction.java
src/main/java/com/phrase/client/model/CommentUpdateParameters.java
Expand Down Expand Up @@ -666,6 +668,7 @@ src/test/java/com/phrase/client/model/BranchMergeParametersTest.java
src/test/java/com/phrase/client/model/BranchNameTest.java
src/test/java/com/phrase/client/model/BranchTest.java
src/test/java/com/phrase/client/model/BranchUpdateParametersTest.java
src/test/java/com/phrase/client/model/CommentCreateParameters1Test.java
src/test/java/com/phrase/client/model/CommentCreateParametersTest.java
src/test/java/com/phrase/client/model/CommentMarkReadParametersTest.java
src/test/java/com/phrase/client/model/CommentReactionTest.java
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ Class | Method | HTTP request | Description
- [BranchUpdateParameters](docs/BranchUpdateParameters.md)
- [Comment](docs/Comment.md)
- [CommentCreateParameters](docs/CommentCreateParameters.md)
- [CommentCreateParameters1](docs/CommentCreateParameters1.md)
- [CommentMarkReadParameters](docs/CommentMarkReadParameters.md)
- [CommentReaction](docs/CommentReaction.md)
- [CommentUpdateParameters](docs/CommentUpdateParameters.md)
Expand Down
79 changes: 36 additions & 43 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10967,26 +10967,6 @@ paths:
schema:
type: string
style: simple
- description: specify the message for the comment
example: some message...
explode: true
in: query
name: message
required: false
schema:
type: string
style: form
- description: specify the locales for the comment
example: someId
explode: true
in: query
name: locale_ids
required: false
schema:
items:
type: string
type: array
style: form
requestBody:
content:
application/json:
Expand Down Expand Up @@ -12410,24 +12390,12 @@ paths:
schema:
type: string
style: simple
- description: specify the branch to use
example: my-feature-branch
explode: true
in: query
name: branch
required: false
schema:
type: string
style: form
- description: specify the message for the comment
example: some message...
explode: true
in: query
name: message
required: false
schema:
type: string
style: form
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/comment_create_parameters_1'
required: true
responses:
"201":
content:
Expand Down Expand Up @@ -12484,7 +12452,7 @@ paths:
x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments/:comment_id/replies/" \
curl "https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments/:comment_id/replies" \
-u USERNAME_OR_ACCESS_TOKEN \
-X POST \
-d '{"branch":"my-feature-branch", "message":"Some message..."}' \
Expand All @@ -12498,6 +12466,7 @@ paths:
--data '{"branch":"my-feature-branch", "message": "Some message..."]}' \
--access_token <token>
x-cli-version: "2.10"
x-content-type: application/json
x-accepts: application/json
/projects/{project_id}/keys/{key_id}/comments/{comment_id}/replies/{id}:
delete:
Expand Down Expand Up @@ -34061,14 +34030,24 @@ components:
type: object
comment_create_parameters:
properties:
branch:
description: specify the branch to use
example: my-feature-branch
type: string
message:
description: Comment message
example: Some message...
type: string
branch:
description: specify the branch to use
example: my-feature-branch
type: string
locale_ids:
description: specify the locales for the comment
example:
- someId
- someOtherId
items:
type: string
type: array
required:
- message
title: comment/create/parameters
type: object
comment_update_parameters:
Expand Down Expand Up @@ -34115,6 +34094,20 @@ components:
type: string
title: replies/list/parameters
type: object
comment_create_parameters_1:
properties:
message:
description: Reply message body
example: Some message...
type: string
branch:
description: Specify the branch to use
example: my-feature-branch
type: string
required:
- message
title: comment/create/parameters
type: object
webhook_create_parameters:
properties:
callback_url:
Expand Down
3 changes: 2 additions & 1 deletion docs/CommentCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **String** | Comment message |
**branch** | **String** | specify the branch to use | [optional]
**message** | **String** | Comment message | [optional]
**localeIds** | **List&lt;String&gt;** | specify the locales for the comment | [optional]



13 changes: 13 additions & 0 deletions docs/CommentCreateParameters1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# CommentCreateParameters1

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **String** | Reply message body |
**branch** | **String** | Specify the branch to use | [optional]



12 changes: 5 additions & 7 deletions docs/CommentRepliesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Name | Type | Description | Notes

<a name="replyCreate"></a>
# **replyCreate**
> Comment replyCreate(projectId, keyId, commentId, xPhraseAppOTP, branch, message)
> Comment replyCreate(projectId, keyId, commentId, commentCreateParameters1, xPhraseAppOTP)
Create a reply

Expand Down Expand Up @@ -146,11 +146,10 @@ public class Example {
String projectId = "projectId_example"; // String | Project ID
String keyId = "keyId_example"; // String | Translation Key ID
String commentId = "commentId_example"; // String | Comment ID
CommentCreateParameters1 commentCreateParameters1 = new CommentCreateParameters1(); // CommentCreateParameters1 |
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
String branch = "my-feature-branch"; // String | specify the branch to use
String message = "some message..."; // String | specify the message for the comment
try {
Comment result = apiInstance.replyCreate(projectId, keyId, commentId, xPhraseAppOTP, branch, message);
Comment result = apiInstance.replyCreate(projectId, keyId, commentId, commentCreateParameters1, xPhraseAppOTP);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommentRepliesApi#replyCreate");
Expand All @@ -170,9 +169,8 @@ Name | Type | Description | Notes
**projectId** | **String**| Project ID |
**keyId** | **String**| Translation Key ID |
**commentId** | **String**| Comment ID |
**commentCreateParameters1** | [**CommentCreateParameters1**](CommentCreateParameters1.md)| |
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
**branch** | **String**| specify the branch to use | [optional]
**message** | **String**| specify the message for the comment | [optional]

### Return type

Expand All @@ -184,7 +182,7 @@ Name | Type | Description | Notes

### HTTP request headers

- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details
Expand Down
8 changes: 2 additions & 6 deletions docs/CommentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Method | HTTP request | Description

<a name="commentCreate"></a>
# **commentCreate**
> Comment commentCreate(projectId, keyId, commentCreateParameters, xPhraseAppOTP, message, localeIds)
> Comment commentCreate(projectId, keyId, commentCreateParameters, xPhraseAppOTP)
Create a comment

Expand Down Expand Up @@ -52,10 +52,8 @@ public class Example {
String keyId = "keyId_example"; // String | Translation Key ID
CommentCreateParameters commentCreateParameters = new CommentCreateParameters(); // CommentCreateParameters |
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
String message = "some message..."; // String | specify the message for the comment
List<String> localeIds = Arrays.asList(); // List<String> | specify the locales for the comment
try {
Comment result = apiInstance.commentCreate(projectId, keyId, commentCreateParameters, xPhraseAppOTP, message, localeIds);
Comment result = apiInstance.commentCreate(projectId, keyId, commentCreateParameters, xPhraseAppOTP);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommentsApi#commentCreate");
Expand All @@ -76,8 +74,6 @@ Name | Type | Description | Notes
**keyId** | **String**| Translation Key ID |
**commentCreateParameters** | [**CommentCreateParameters**](CommentCreateParameters.md)| |
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
**message** | **String**| specify the message for the comment | [optional]
**localeIds** | [**List&lt;String&gt;**](String.md)| specify the locales for the comment | [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-11-20T10:25:01.780516Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-20T11:04:48.219209Z[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-11-20T10:25:01.780516Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-20T11:04:48.219209Z[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-11-20T10:25:01.780516Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-20T11:04:48.219209Z[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-11-20T10:25:01.780516Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-20T11:04:48.219209Z[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 5fc2378

Please sign in to comment.