phrase 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/docs/JobComment.md +29 -0
- data/docs/JobCommentCreateParameters.md +17 -0
- data/docs/JobCommentUpdateParameters.md +17 -0
- data/docs/JobCommentsApi.md +343 -0
- data/docs/ScreenshotsApi.md +12 -6
- data/docs/StyleguideCreateParameters.md +1 -1
- data/docs/StyleguideUpdateParameters.md +1 -1
- data/lib/phrase/api/job_comments_api.rb +411 -0
- data/lib/phrase/api/screenshots_api.rb +17 -11
- data/lib/phrase/models/job_comment.rb +250 -0
- data/lib/phrase/models/job_comment_create_parameters.rb +195 -0
- data/lib/phrase/models/job_comment_update_parameters.rb +195 -0
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +4 -0
- data/spec/api/job_comments_api_spec.rb +101 -0
- data/spec/api/screenshots_api_spec.rb +4 -1
- data/spec/models/job_comment_create_parameters_spec.rb +29 -0
- data/spec/models/job_comment_spec.rb +65 -0
- data/spec/models/job_comment_update_parameters_spec.rb +29 -0
- metadata +214 -198
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62ab3ca7c47d1c5c266a466aeda8cc9dac40f0d5330ae3f8be59259a950d858d
|
4
|
+
data.tar.gz: b93dbcdd89d91e22d73b35196aa553e71f7b4f7484fba64d94ffe113d64add3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 361380faae2aa14ce6a3e553dd2babf8d8b393930ad8c37ce7ce6f55be8ae4b9564fe5726034c2d2509ae12fd00ca0855ea3fade7aaad857356992c4e30ba39c
|
7
|
+
data.tar.gz: 785ac620370cb9aef4904f56f7816ce568bec2728d86f553dc1de0ad6140d96dab8f7d4cd34f42fd751895ecb414f228956bbeef456593f089e5143c8987899b
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Phrase is a translation management platform for software projects. You can colla
|
|
7
7
|
## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 2.7.
|
10
|
+
- Package version: 2.7.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
|
13
13
|
|
@@ -56,10 +56,10 @@ gem build phrase.gemspec
|
|
56
56
|
Then install the gem locally:
|
57
57
|
|
58
58
|
```shell
|
59
|
-
gem install ./phrase-2.7.
|
59
|
+
gem install ./phrase-2.7.1.gem
|
60
60
|
```
|
61
61
|
|
62
|
-
(for development, run `gem install --dev ./phrase-2.7.
|
62
|
+
(for development, run `gem install --dev ./phrase-2.7.1.gem` to install the development dependencies)
|
63
63
|
|
64
64
|
## Getting Started
|
65
65
|
|
@@ -176,6 +176,11 @@ Class | Method | HTTP request | Description
|
|
176
176
|
*Phrase::InvitationsApi* | [**invitation_update**](docs/InvitationsApi.md#invitation_update) | **PATCH** /accounts/{account_id}/invitations/{id} | Update an invitation
|
177
177
|
*Phrase::InvitationsApi* | [**invitation_update_settings**](docs/InvitationsApi.md#invitation_update_settings) | **PATCH** /projects/{project_id}/invitations/{id} | Update a member's invitation access
|
178
178
|
*Phrase::InvitationsApi* | [**invitations_list**](docs/InvitationsApi.md#invitations_list) | **GET** /accounts/{account_id}/invitations | List invitations
|
179
|
+
*Phrase::JobCommentsApi* | [**job_comment_create**](docs/JobCommentsApi.md#job_comment_create) | **POST** /projects/{project_id}/jobs/{job_id}/comments | Create a job comment
|
180
|
+
*Phrase::JobCommentsApi* | [**job_comment_delete**](docs/JobCommentsApi.md#job_comment_delete) | **DELETE** /projects/{project_id}/jobs/{job_id}/comments/{id} | Delete a job comment
|
181
|
+
*Phrase::JobCommentsApi* | [**job_comment_show**](docs/JobCommentsApi.md#job_comment_show) | **GET** /projects/{project_id}/jobs/{job_id}/comments/{id} | Get a single job comment
|
182
|
+
*Phrase::JobCommentsApi* | [**job_comment_update**](docs/JobCommentsApi.md#job_comment_update) | **PATCH** /projects/{project_id}/jobs/{job_id}/comments/{id} | Update a job comment
|
183
|
+
*Phrase::JobCommentsApi* | [**job_comments_list**](docs/JobCommentsApi.md#job_comments_list) | **GET** /projects/{project_id}/jobs/{job_id}/comments | List job comments
|
179
184
|
*Phrase::JobLocalesApi* | [**job_locale_complete**](docs/JobLocalesApi.md#job_locale_complete) | **POST** /projects/{project_id}/jobs/{job_id}/locales/{id}/complete | Complete a job locale
|
180
185
|
*Phrase::JobLocalesApi* | [**job_locale_complete_review**](docs/JobLocalesApi.md#job_locale_complete_review) | **POST** /projects/{project_id}/jobs/{job_id}/locales/{id}/complete_review | Review a job locale
|
181
186
|
*Phrase::JobLocalesApi* | [**job_locale_delete**](docs/JobLocalesApi.md#job_locale_delete) | **DELETE** /projects/{project_id}/jobs/{job_id}/locales/{id} | Delete a job locale
|
@@ -388,6 +393,9 @@ Class | Method | HTTP request | Description
|
|
388
393
|
- [Phrase::InvitationUpdateParameters](docs/InvitationUpdateParameters.md)
|
389
394
|
- [Phrase::InvitationUpdateSettingsParameters](docs/InvitationUpdateSettingsParameters.md)
|
390
395
|
- [Phrase::Job](docs/Job.md)
|
396
|
+
- [Phrase::JobComment](docs/JobComment.md)
|
397
|
+
- [Phrase::JobCommentCreateParameters](docs/JobCommentCreateParameters.md)
|
398
|
+
- [Phrase::JobCommentUpdateParameters](docs/JobCommentUpdateParameters.md)
|
391
399
|
- [Phrase::JobCompleteParameters](docs/JobCompleteParameters.md)
|
392
400
|
- [Phrase::JobCreateParameters](docs/JobCreateParameters.md)
|
393
401
|
- [Phrase::JobDetails](docs/JobDetails.md)
|
data/docs/JobComment.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Phrase::JobComment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**message** | **String** | | [optional]
|
9
|
+
**job_id** | **String** | | [optional]
|
10
|
+
**user** | [**UserPreview**](UserPreview.md) | | [optional]
|
11
|
+
**created_at** | **DateTime** | | [optional]
|
12
|
+
**updated_at** | **DateTime** | | [optional]
|
13
|
+
**mentioned_users** | [**Array<UserPreview>**](UserPreview.md) | | [optional]
|
14
|
+
|
15
|
+
## Code Sample
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'Phrase'
|
19
|
+
|
20
|
+
instance = Phrase::JobComment.new(id: null,
|
21
|
+
message: null,
|
22
|
+
job_id: null,
|
23
|
+
user: null,
|
24
|
+
created_at: null,
|
25
|
+
updated_at: null,
|
26
|
+
mentioned_users: null)
|
27
|
+
```
|
28
|
+
|
29
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Phrase::JobCommentCreateParameters
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**message** | **String** | Job comment message | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Phrase'
|
13
|
+
|
14
|
+
instance = Phrase::JobCommentCreateParameters.new(message: Some message...)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Phrase::JobCommentUpdateParameters
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**message** | **String** | Comment message | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Phrase'
|
13
|
+
|
14
|
+
instance = Phrase::JobCommentUpdateParameters.new(message: Some message...)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,343 @@
|
|
1
|
+
# Phrase::JobCommentsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.phrase.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**job_comment_create**](JobCommentsApi.md#job_comment_create) | **POST** /projects/{project_id}/jobs/{job_id}/comments | Create a job comment
|
8
|
+
[**job_comment_delete**](JobCommentsApi.md#job_comment_delete) | **DELETE** /projects/{project_id}/jobs/{job_id}/comments/{id} | Delete a job comment
|
9
|
+
[**job_comment_show**](JobCommentsApi.md#job_comment_show) | **GET** /projects/{project_id}/jobs/{job_id}/comments/{id} | Get a single job comment
|
10
|
+
[**job_comment_update**](JobCommentsApi.md#job_comment_update) | **PATCH** /projects/{project_id}/jobs/{job_id}/comments/{id} | Update a job comment
|
11
|
+
[**job_comments_list**](JobCommentsApi.md#job_comments_list) | **GET** /projects/{project_id}/jobs/{job_id}/comments | List job comments
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
## job_comment_create
|
16
|
+
|
17
|
+
> JobComment job_comment_create(project_id, job_id, job_comment_create_parameters, opts)
|
18
|
+
|
19
|
+
Create a job comment
|
20
|
+
|
21
|
+
Create a new comment for a job.
|
22
|
+
|
23
|
+
### Example
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
# load the gem
|
27
|
+
require 'phrase'
|
28
|
+
# setup authorization
|
29
|
+
Phrase.configure do |config|
|
30
|
+
# Configure HTTP basic authorization: Basic
|
31
|
+
config.username = 'YOUR USERNAME'
|
32
|
+
config.password = 'YOUR PASSWORD'
|
33
|
+
|
34
|
+
# Configure API key authorization: Token
|
35
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
36
|
+
config.api_key_prefix['Authorization'] = 'token'
|
37
|
+
end
|
38
|
+
|
39
|
+
api_instance = Phrase::JobCommentsApi.new
|
40
|
+
project_id = 'project_id_example' # String | Project ID
|
41
|
+
job_id = 'job_id_example' # String | Job ID
|
42
|
+
job_comment_create_parameters = Phrase::JobCommentCreateParameters.new # JobCommentCreateParameters |
|
43
|
+
opts = {
|
44
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
45
|
+
}
|
46
|
+
|
47
|
+
begin
|
48
|
+
#Create a job comment
|
49
|
+
result = api_instance.job_comment_create(project_id, job_id, job_comment_create_parameters, opts)
|
50
|
+
pp result
|
51
|
+
rescue Phrase::ApiError => e
|
52
|
+
puts "Exception when calling JobCommentsApi->job_comment_create: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
|
59
|
+
Name | Type | Description | Notes
|
60
|
+
------------- | ------------- | ------------- | -------------
|
61
|
+
**project_id** | **String**| Project ID |
|
62
|
+
**job_id** | **String**| Job ID |
|
63
|
+
**job_comment_create_parameters** | [**JobCommentCreateParameters**](JobCommentCreateParameters.md)| |
|
64
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
65
|
+
|
66
|
+
### Return type
|
67
|
+
|
68
|
+
Response<([**JobComment**](JobComment.md))>
|
69
|
+
|
70
|
+
### Authorization
|
71
|
+
|
72
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
73
|
+
|
74
|
+
### HTTP request headers
|
75
|
+
|
76
|
+
- **Content-Type**: application/json
|
77
|
+
- **Accept**: application/json
|
78
|
+
|
79
|
+
|
80
|
+
## job_comment_delete
|
81
|
+
|
82
|
+
> job_comment_delete(project_id, job_id, id, opts)
|
83
|
+
|
84
|
+
Delete a job comment
|
85
|
+
|
86
|
+
Delete an existing job comment.
|
87
|
+
|
88
|
+
### Example
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
# load the gem
|
92
|
+
require 'phrase'
|
93
|
+
# setup authorization
|
94
|
+
Phrase.configure do |config|
|
95
|
+
# Configure HTTP basic authorization: Basic
|
96
|
+
config.username = 'YOUR USERNAME'
|
97
|
+
config.password = 'YOUR PASSWORD'
|
98
|
+
|
99
|
+
# Configure API key authorization: Token
|
100
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
101
|
+
config.api_key_prefix['Authorization'] = 'token'
|
102
|
+
end
|
103
|
+
|
104
|
+
api_instance = Phrase::JobCommentsApi.new
|
105
|
+
project_id = 'project_id_example' # String | Project ID
|
106
|
+
job_id = 'job_id_example' # String | Job ID
|
107
|
+
id = 'id_example' # String | ID
|
108
|
+
opts = {
|
109
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
110
|
+
branch: 'my-feature-branch' # String | specify the branch to use
|
111
|
+
}
|
112
|
+
|
113
|
+
begin
|
114
|
+
#Delete a job comment
|
115
|
+
api_instance.job_comment_delete(project_id, job_id, id, opts)
|
116
|
+
rescue Phrase::ApiError => e
|
117
|
+
puts "Exception when calling JobCommentsApi->job_comment_delete: #{e}"
|
118
|
+
end
|
119
|
+
```
|
120
|
+
|
121
|
+
### Parameters
|
122
|
+
|
123
|
+
|
124
|
+
Name | Type | Description | Notes
|
125
|
+
------------- | ------------- | ------------- | -------------
|
126
|
+
**project_id** | **String**| Project ID |
|
127
|
+
**job_id** | **String**| Job ID |
|
128
|
+
**id** | **String**| ID |
|
129
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
130
|
+
**branch** | **String**| specify the branch to use | [optional]
|
131
|
+
|
132
|
+
### Return type
|
133
|
+
|
134
|
+
Response<(nil (empty response body))>
|
135
|
+
|
136
|
+
### Authorization
|
137
|
+
|
138
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
139
|
+
|
140
|
+
### HTTP request headers
|
141
|
+
|
142
|
+
- **Content-Type**: Not defined
|
143
|
+
- **Accept**: Not defined
|
144
|
+
|
145
|
+
|
146
|
+
## job_comment_show
|
147
|
+
|
148
|
+
> Object job_comment_show(project_id, job_id, id, opts)
|
149
|
+
|
150
|
+
Get a single job comment
|
151
|
+
|
152
|
+
Get details on a single job comment.
|
153
|
+
|
154
|
+
### Example
|
155
|
+
|
156
|
+
```ruby
|
157
|
+
# load the gem
|
158
|
+
require 'phrase'
|
159
|
+
# setup authorization
|
160
|
+
Phrase.configure do |config|
|
161
|
+
# Configure HTTP basic authorization: Basic
|
162
|
+
config.username = 'YOUR USERNAME'
|
163
|
+
config.password = 'YOUR PASSWORD'
|
164
|
+
|
165
|
+
# Configure API key authorization: Token
|
166
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
167
|
+
config.api_key_prefix['Authorization'] = 'token'
|
168
|
+
end
|
169
|
+
|
170
|
+
api_instance = Phrase::JobCommentsApi.new
|
171
|
+
project_id = 'project_id_example' # String | Project ID
|
172
|
+
job_id = 'job_id_example' # String | Job ID
|
173
|
+
id = 'id_example' # String | ID
|
174
|
+
opts = {
|
175
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
176
|
+
branch: 'my-feature-branch' # String | specify the branch to use
|
177
|
+
}
|
178
|
+
|
179
|
+
begin
|
180
|
+
#Get a single job comment
|
181
|
+
result = api_instance.job_comment_show(project_id, job_id, id, opts)
|
182
|
+
pp result
|
183
|
+
rescue Phrase::ApiError => e
|
184
|
+
puts "Exception when calling JobCommentsApi->job_comment_show: #{e}"
|
185
|
+
end
|
186
|
+
```
|
187
|
+
|
188
|
+
### Parameters
|
189
|
+
|
190
|
+
|
191
|
+
Name | Type | Description | Notes
|
192
|
+
------------- | ------------- | ------------- | -------------
|
193
|
+
**project_id** | **String**| Project ID |
|
194
|
+
**job_id** | **String**| Job ID |
|
195
|
+
**id** | **String**| ID |
|
196
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
197
|
+
**branch** | **String**| specify the branch to use | [optional]
|
198
|
+
|
199
|
+
### Return type
|
200
|
+
|
201
|
+
Response<(**Object**)>
|
202
|
+
|
203
|
+
### Authorization
|
204
|
+
|
205
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
206
|
+
|
207
|
+
### HTTP request headers
|
208
|
+
|
209
|
+
- **Content-Type**: Not defined
|
210
|
+
- **Accept**: application/json
|
211
|
+
|
212
|
+
|
213
|
+
## job_comment_update
|
214
|
+
|
215
|
+
> Object job_comment_update(project_id, key_id, id, job_comment_update_parameters, opts)
|
216
|
+
|
217
|
+
Update a job comment
|
218
|
+
|
219
|
+
Update an existing job comment.
|
220
|
+
|
221
|
+
### Example
|
222
|
+
|
223
|
+
```ruby
|
224
|
+
# load the gem
|
225
|
+
require 'phrase'
|
226
|
+
# setup authorization
|
227
|
+
Phrase.configure do |config|
|
228
|
+
# Configure HTTP basic authorization: Basic
|
229
|
+
config.username = 'YOUR USERNAME'
|
230
|
+
config.password = 'YOUR PASSWORD'
|
231
|
+
|
232
|
+
# Configure API key authorization: Token
|
233
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
234
|
+
config.api_key_prefix['Authorization'] = 'token'
|
235
|
+
end
|
236
|
+
|
237
|
+
api_instance = Phrase::JobCommentsApi.new
|
238
|
+
project_id = 'project_id_example' # String | Project ID
|
239
|
+
key_id = 'key_id_example' # String | Translation Key ID
|
240
|
+
id = 'id_example' # String | ID
|
241
|
+
job_comment_update_parameters = Phrase::JobCommentUpdateParameters.new # JobCommentUpdateParameters |
|
242
|
+
opts = {
|
243
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
244
|
+
}
|
245
|
+
|
246
|
+
begin
|
247
|
+
#Update a job comment
|
248
|
+
result = api_instance.job_comment_update(project_id, key_id, id, job_comment_update_parameters, opts)
|
249
|
+
pp result
|
250
|
+
rescue Phrase::ApiError => e
|
251
|
+
puts "Exception when calling JobCommentsApi->job_comment_update: #{e}"
|
252
|
+
end
|
253
|
+
```
|
254
|
+
|
255
|
+
### Parameters
|
256
|
+
|
257
|
+
|
258
|
+
Name | Type | Description | Notes
|
259
|
+
------------- | ------------- | ------------- | -------------
|
260
|
+
**project_id** | **String**| Project ID |
|
261
|
+
**key_id** | **String**| Translation Key ID |
|
262
|
+
**id** | **String**| ID |
|
263
|
+
**job_comment_update_parameters** | [**JobCommentUpdateParameters**](JobCommentUpdateParameters.md)| |
|
264
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
265
|
+
|
266
|
+
### Return type
|
267
|
+
|
268
|
+
Response<(**Object**)>
|
269
|
+
|
270
|
+
### Authorization
|
271
|
+
|
272
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
273
|
+
|
274
|
+
### HTTP request headers
|
275
|
+
|
276
|
+
- **Content-Type**: application/json
|
277
|
+
- **Accept**: application/json
|
278
|
+
|
279
|
+
|
280
|
+
## job_comments_list
|
281
|
+
|
282
|
+
> Array<Object> job_comments_list(project_id, job_id, opts)
|
283
|
+
|
284
|
+
List job comments
|
285
|
+
|
286
|
+
List all comments for a job.
|
287
|
+
|
288
|
+
### Example
|
289
|
+
|
290
|
+
```ruby
|
291
|
+
# load the gem
|
292
|
+
require 'phrase'
|
293
|
+
# setup authorization
|
294
|
+
Phrase.configure do |config|
|
295
|
+
# Configure HTTP basic authorization: Basic
|
296
|
+
config.username = 'YOUR USERNAME'
|
297
|
+
config.password = 'YOUR PASSWORD'
|
298
|
+
|
299
|
+
# Configure API key authorization: Token
|
300
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
301
|
+
config.api_key_prefix['Authorization'] = 'token'
|
302
|
+
end
|
303
|
+
|
304
|
+
api_instance = Phrase::JobCommentsApi.new
|
305
|
+
project_id = 'project_id_example' # String | Project ID
|
306
|
+
job_id = 'job_id_example' # String | Job ID
|
307
|
+
opts = {
|
308
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
309
|
+
branch: 'my-feature-branch' # String | specify the branch to use
|
310
|
+
}
|
311
|
+
|
312
|
+
begin
|
313
|
+
#List job comments
|
314
|
+
result = api_instance.job_comments_list(project_id, job_id, opts)
|
315
|
+
pp result
|
316
|
+
rescue Phrase::ApiError => e
|
317
|
+
puts "Exception when calling JobCommentsApi->job_comments_list: #{e}"
|
318
|
+
end
|
319
|
+
```
|
320
|
+
|
321
|
+
### Parameters
|
322
|
+
|
323
|
+
|
324
|
+
Name | Type | Description | Notes
|
325
|
+
------------- | ------------- | ------------- | -------------
|
326
|
+
**project_id** | **String**| Project ID |
|
327
|
+
**job_id** | **String**| Job ID |
|
328
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
329
|
+
**branch** | **String**| specify the branch to use | [optional]
|
330
|
+
|
331
|
+
### Return type
|
332
|
+
|
333
|
+
Response<(**Array<Object>**)>
|
334
|
+
|
335
|
+
### Authorization
|
336
|
+
|
337
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
338
|
+
|
339
|
+
### HTTP request headers
|
340
|
+
|
341
|
+
- **Content-Type**: Not defined
|
342
|
+
- **Accept**: application/json
|
343
|
+
|
data/docs/ScreenshotsApi.md
CHANGED
@@ -14,7 +14,7 @@ Method | HTTP request | Description
|
|
14
14
|
|
15
15
|
## screenshot_create
|
16
16
|
|
17
|
-
> Screenshot screenshot_create(project_id,
|
17
|
+
> Screenshot screenshot_create(project_id, opts)
|
18
18
|
|
19
19
|
Create a screenshot
|
20
20
|
|
@@ -38,14 +38,17 @@ end
|
|
38
38
|
|
39
39
|
api_instance = Phrase::ScreenshotsApi.new
|
40
40
|
project_id = 'project_id_example' # String | Project ID
|
41
|
-
screenshot_create_parameters = Phrase::ScreenshotCreateParameters.new # ScreenshotCreateParameters |
|
42
41
|
opts = {
|
43
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
42
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
43
|
+
branch: 'branch_example', # String | specify the branch to use
|
44
|
+
name: 'name_example', # String | Name of the screenshot
|
45
|
+
description: 'description_example', # String | Description of the screenshot
|
46
|
+
filename: File.new('/path/to/file') # File | Screenshot file
|
44
47
|
}
|
45
48
|
|
46
49
|
begin
|
47
50
|
#Create a screenshot
|
48
|
-
result = api_instance.screenshot_create(project_id,
|
51
|
+
result = api_instance.screenshot_create(project_id, opts)
|
49
52
|
pp result
|
50
53
|
rescue Phrase::ApiError => e
|
51
54
|
puts "Exception when calling ScreenshotsApi->screenshot_create: #{e}"
|
@@ -58,8 +61,11 @@ end
|
|
58
61
|
Name | Type | Description | Notes
|
59
62
|
------------- | ------------- | ------------- | -------------
|
60
63
|
**project_id** | **String**| Project ID |
|
61
|
-
**screenshot_create_parameters** | [**ScreenshotCreateParameters**](ScreenshotCreateParameters.md)| |
|
62
64
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
65
|
+
**branch** | **String**| specify the branch to use | [optional]
|
66
|
+
**name** | **String**| Name of the screenshot | [optional]
|
67
|
+
**description** | **String**| Description of the screenshot | [optional]
|
68
|
+
**filename** | **File**| Screenshot file | [optional]
|
63
69
|
|
64
70
|
### Return type
|
65
71
|
|
@@ -71,7 +77,7 @@ Response<([**Screenshot**](Screenshot.md))>
|
|
71
77
|
|
72
78
|
### HTTP request headers
|
73
79
|
|
74
|
-
- **Content-Type**:
|
80
|
+
- **Content-Type**: multipart/form-data
|
75
81
|
- **Accept**: application/json
|
76
82
|
|
77
83
|
|
@@ -31,7 +31,7 @@ instance = Phrase::StyleguideCreateParameters.new(title: Web application style g
|
|
31
31
|
business: We are a travel site that helps customers find the best hotels and flights.,
|
32
32
|
company_branding: ACME Inc. should never be translated.,
|
33
33
|
formatting: Never use capital letters,
|
34
|
-
glossary_terms:
|
34
|
+
glossary_terms: Apartment, cabin, loft,
|
35
35
|
grammar_consistency: null,
|
36
36
|
literal_translation: Neutral,
|
37
37
|
overall_tone: Tone should be fun and light,
|
@@ -31,7 +31,7 @@ instance = Phrase::StyleguideUpdateParameters.new(title: Web application style g
|
|
31
31
|
business: We are a travel site that helps customers find the best hotels and flights.,
|
32
32
|
company_branding: ACME Inc. should never be translated.,
|
33
33
|
formatting: Never use capital letters,
|
34
|
-
glossary_terms:
|
34
|
+
glossary_terms: Apartment, cabin, loft,
|
35
35
|
grammar_consistency: null,
|
36
36
|
literal_translation: Neutral,
|
37
37
|
overall_tone: Tone should be fun and light,
|