Skip to content

Commit 32b1b41

Browse files
author
Phrase
committed
1 parent 0baf949 commit 32b1b41

20 files changed

+334
-51
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ docs/BranchUpdateParameters.md
3535
docs/BranchesApi.md
3636
docs/Comment.md
3737
docs/CommentCreateParameters.md
38+
docs/CommentCreateParameters1.md
3839
docs/CommentMarkReadParameters.md
3940
docs/CommentReaction.md
4041
docs/CommentReactionsApi.md
@@ -370,6 +371,7 @@ lib/phrase/models/branch_name.rb
370371
lib/phrase/models/branch_update_parameters.rb
371372
lib/phrase/models/comment.rb
372373
lib/phrase/models/comment_create_parameters.rb
374+
lib/phrase/models/comment_create_parameters1.rb
373375
lib/phrase/models/comment_mark_read_parameters.rb
374376
lib/phrase/models/comment_reaction.rb
375377
lib/phrase/models/comment_update_parameters.rb
@@ -649,6 +651,7 @@ spec/models/branch_merge_parameters_spec.rb
649651
spec/models/branch_name_spec.rb
650652
spec/models/branch_spec.rb
651653
spec/models/branch_update_parameters_spec.rb
654+
spec/models/comment_create_parameters1_spec.rb
652655
spec/models/comment_create_parameters_spec.rb
653656
spec/models/comment_mark_read_parameters_spec.rb
654657
spec/models/comment_reaction_spec.rb

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ Class | Method | HTTP request | Description
436436
- [Phrase::BranchUpdateParameters](docs/BranchUpdateParameters.md)
437437
- [Phrase::Comment](docs/Comment.md)
438438
- [Phrase::CommentCreateParameters](docs/CommentCreateParameters.md)
439+
- [Phrase::CommentCreateParameters1](docs/CommentCreateParameters1.md)
439440
- [Phrase::CommentMarkReadParameters](docs/CommentMarkReadParameters.md)
440441
- [Phrase::CommentReaction](docs/CommentReaction.md)
441442
- [Phrase::CommentUpdateParameters](docs/CommentUpdateParameters.md)

docs/CommentCreateParameters.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**message** | **String** | Comment message |
78
**branch** | **String** | specify the branch to use | [optional]
8-
**message** | **String** | Comment message | [optional]
9+
**locale_ids** | **Array<String>** | specify the locales for the comment | [optional]
910

1011
## Code Sample
1112

1213
```ruby
1314
require 'Phrase'
1415

15-
instance = Phrase::CommentCreateParameters.new(branch: my-feature-branch,
16-
message: Some message...)
16+
instance = Phrase::CommentCreateParameters.new(message: Some message...,
17+
branch: my-feature-branch,
18+
locale_ids: ["someId","someOtherId"])
1719
```
1820

1921

docs/CommentCreateParameters1.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Phrase::CommentCreateParameters1
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**message** | **String** | Reply message body |
8+
**branch** | **String** | Specify the branch to use | [optional]
9+
10+
## Code Sample
11+
12+
```ruby
13+
require 'Phrase'
14+
15+
instance = Phrase::CommentCreateParameters1.new(message: Some message...,
16+
branch: my-feature-branch)
17+
```
18+
19+

docs/CommentRepliesApi.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Response<([**Array&lt;Comment&gt;**](Comment.md))>
9494

9595
## reply_create
9696

97-
> Comment reply_create(project_id, key_id, comment_id, opts)
97+
> Comment reply_create(project_id, key_id, comment_id, comment_create_parameters1, opts)
9898
9999
Create a reply
100100

@@ -120,15 +120,14 @@ api_instance = Phrase::CommentRepliesApi.new
120120
project_id = 'project_id_example' # String | Project ID
121121
key_id = 'key_id_example' # String | Translation Key ID
122122
comment_id = 'comment_id_example' # String | Comment ID
123+
comment_create_parameters1 = Phrase::CommentCreateParameters1.new({message: 'Some message...'}) # CommentCreateParameters1 |
123124
opts = {
124-
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
125-
branch: 'my-feature-branch', # String | specify the branch to use
126-
message: 'some message...' # String | specify the message for the comment
125+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
127126
}
128127

129128
begin
130129
#Create a reply
131-
result = api_instance.reply_create(project_id, key_id, comment_id, opts)
130+
result = api_instance.reply_create(project_id, key_id, comment_id, comment_create_parameters1, opts)
132131
pp result
133132
rescue Phrase::ApiError => e
134133
puts "Exception when calling CommentRepliesApi->reply_create: #{e}"
@@ -143,9 +142,8 @@ Name | Type | Description | Notes
143142
**project_id** | **String**| Project ID |
144143
**key_id** | **String**| Translation Key ID |
145144
**comment_id** | **String**| Comment ID |
145+
**comment_create_parameters1** | [**CommentCreateParameters1**](CommentCreateParameters1.md)| |
146146
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
147-
**branch** | **String**| specify the branch to use | [optional]
148-
**message** | **String**| specify the message for the comment | [optional]
149147

150148
### Return type
151149

@@ -157,7 +155,7 @@ Response<([**Comment**](Comment.md))>
157155

158156
### HTTP request headers
159157

160-
- **Content-Type**: Not defined
158+
- **Content-Type**: application/json
161159
- **Accept**: application/json
162160

163161

docs/CommentsApi.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ end
4242
api_instance = Phrase::CommentsApi.new
4343
project_id = 'project_id_example' # String | Project ID
4444
key_id = 'key_id_example' # String | Translation Key ID
45-
comment_create_parameters = Phrase::CommentCreateParameters.new # CommentCreateParameters |
45+
comment_create_parameters = Phrase::CommentCreateParameters.new({message: 'Some message...'}) # CommentCreateParameters |
4646
opts = {
47-
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
48-
message: 'some message...', # String | specify the message for the comment
49-
locale_ids: ['inner_example'] # Array<String> | specify the locales for the comment
47+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
5048
}
5149

5250
begin
@@ -67,8 +65,6 @@ Name | Type | Description | Notes
6765
**key_id** | **String**| Translation Key ID |
6866
**comment_create_parameters** | [**CommentCreateParameters**](CommentCreateParameters.md)| |
6967
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
70-
**message** | **String**| specify the message for the comment | [optional]
71-
**locale_ids** | [**Array&lt;String&gt;**](String.md)| specify the locales for the comment | [optional]
7268

7369
### Return type
7470

docs/KeyCreateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
3636
data_type: number,
3737
tags: awesome-feature,needs-proofreading,
3838
max_characters_allowed: 140,
39-
screenshot: [B@3c32105c,
39+
screenshot: [B@38b65eb9,
4040
remove_screenshot: null,
4141
unformatted: null,
4242
default_translation_content: Default translation content,

docs/KeyUpdateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
3434
data_type: number,
3535
tags: awesome-feature,needs-proofreading,
3636
max_characters_allowed: 140,
37-
screenshot: [B@39a54d70,
37+
screenshot: [B@3c32105c,
3838
remove_screenshot: null,
3939
unformatted: null,
4040
xml_space_preserve: null,

docs/ProjectCreateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
3737
main_format: yml,
3838
media: Python,
3939
shares_translation_memory: true,
40-
project_image: [B@4c49193a,
40+
project_image: [B@2bd89b8e,
4141
remove_project_image: null,
4242
account_id: abcd1234,
4343
point_of_contact: abcd1234,

docs/ProjectUpdateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
3838
main_format: yml,
3939
media: Python,
4040
shares_translation_memory: true,
41-
project_image: [B@b51d862,
41+
project_image: [B@4c49193a,
4242
remove_project_image: false,
4343
workflow: review,
4444
machine_translation_enabled: true,

0 commit comments

Comments
 (0)