phrase 4.7.0 → 4.9.0

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +12 -3
  4. data/docs/JobAnnotation.md +23 -0
  5. data/docs/JobAnnotationShort.md +19 -0
  6. data/docs/JobAnnotationUpdateParameters.md +19 -0
  7. data/docs/JobAnnotationsApi.md +416 -0
  8. data/docs/JobDetails.md +3 -1
  9. data/docs/JobLocale.md +3 -1
  10. data/docs/JobLocalesApi.md +6 -2
  11. data/docs/JobsApi.md +4 -2
  12. data/docs/KeyCreateParameters.md +1 -1
  13. data/docs/KeyUpdateParameters.md +1 -1
  14. data/docs/ProjectCreateParameters.md +1 -1
  15. data/docs/ProjectUpdateParameters.md +1 -1
  16. data/docs/ScreenshotUpdateParameters.md +1 -1
  17. data/docs/UploadsApi.md +2 -0
  18. data/lib/phrase/api/job_annotations_api.rb +508 -0
  19. data/lib/phrase/api/job_locales_api.rb +6 -0
  20. data/lib/phrase/api/jobs_api.rb +5 -2
  21. data/lib/phrase/api/uploads_api.rb +3 -0
  22. data/lib/phrase/models/job_annotation.rb +233 -0
  23. data/lib/phrase/models/job_annotation_short.rb +215 -0
  24. data/lib/phrase/models/job_annotation_update_parameters.rb +207 -0
  25. data/lib/phrase/models/job_details.rb +15 -4
  26. data/lib/phrase/models/job_locale.rb +15 -4
  27. data/lib/phrase/version.rb +1 -1
  28. data/lib/phrase.rb +4 -0
  29. data/spec/api/job_annotations_api_spec.rb +120 -0
  30. data/spec/api/job_locales_api_spec.rb +2 -0
  31. data/spec/api/jobs_api_spec.rb +2 -1
  32. data/spec/models/job_annotation_short_spec.rb +35 -0
  33. data/spec/models/job_annotation_spec.rb +47 -0
  34. data/spec/models/job_annotation_update_parameters_spec.rb +35 -0
  35. data/spec/models/job_details_spec.rb +6 -0
  36. data/spec/models/job_locale_spec.rb +6 -0
  37. metadata +18 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 948f5fdc24faee23c2c48762da38f24b474b4e194c7b53c67158dc98a42d5753
4
- data.tar.gz: 804500983b26670344bc10b91dc1cd638da8a724fa8292c2d592ce4a1ca34eec
3
+ metadata.gz: 409fc307ec1cf1fe89bd1944ca88b9a7998ec360ee909ab4d0c6944d78f7ffa6
4
+ data.tar.gz: dc6493d8a07d03cdaf7713ee90e2a323bff7baac98e9a596a0ac27a1126cab66
5
5
  SHA512:
6
- metadata.gz: 30aeb12b985801bd58736231829c440ea343ff09a5d96b0911d61f15f565b2eaceef62014be0abfdae1dadfbfcb73a56f2c5b11dc50fe69ef5f29ab16d8bf0b1
7
- data.tar.gz: 225496bb4df91acbaa6902c78ef4c939ac8c067c14869cc73911526b5fa4d51c0165c0e142c93ba24004b63f6f54e56ba821fc3ed4d8f28806f1c9ea28220f7f
6
+ metadata.gz: 0211d3d1ab6721de5775140a05496a1995c99bb42af00952884edd3aff4546c34810427783c74af787d284b68b5c2ec47feb582410af5241b178914c93b560e5
7
+ data.tar.gz: 4a1a9d7b2ae64db7802b7c5502db5cb8710e85509083e01d937d78c2a04b281d3e1411e499a4a46f24d1a722b1d340481b7aa8c2033a703787bd51ff78a16d7e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.9.0](https://github.com/phrase/openapi/compare/ruby-v4.8.0...ruby-v4.9.0) (2025-08-01)
4
+
5
+
6
+ ### Features
7
+
8
+ * **API:** Add support for `update_custom_metadata` option on upload ([#882](https://github.com/phrase/openapi/issues/882)) ([5b486ea](https://github.com/phrase/openapi/commit/5b486eabf30c84402a8e31911a5ba6fe3b343a89))
9
+
10
+ ## [4.8.0](https://github.com/phrase/openapi/compare/ruby-v4.7.0...ruby-v4.8.0) (2025-07-23)
11
+
12
+
13
+ ### Features
14
+
15
+ * **API:** Job and job locale annotations #SCD-145 ([#867](https://github.com/phrase/openapi/issues/867)) ([95b6c2a](https://github.com/phrase/openapi/commit/95b6c2a2ab798d01f9bc0d53a22dbf817a5eb0ee))
16
+
3
17
  ## [4.7.0](https://github.com/phrase/openapi/compare/ruby-v4.6.0...ruby-v4.7.0) (2025-07-18)
4
18
 
5
19
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
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: 4.7.0
10
+ - Package version: 4.9.0
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-4.7.0.gem
59
+ gem install ./phrase-4.9.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.7.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.9.0.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -206,6 +206,12 @@ Class | Method | HTTP request | Description
206
206
  *Phrase::InvitationsApi* | [**invitation_update**](docs/InvitationsApi.md#invitation_update) | **PATCH** /accounts/{account_id}/invitations/{id} | Update an invitation
207
207
  *Phrase::InvitationsApi* | [**invitation_update_settings**](docs/InvitationsApi.md#invitation_update_settings) | **PATCH** /projects/{project_id}/invitations/{id} | Update a member's invitation access
208
208
  *Phrase::InvitationsApi* | [**invitations_list**](docs/InvitationsApi.md#invitations_list) | **GET** /accounts/{account_id}/invitations | List invitations
209
+ *Phrase::JobAnnotationsApi* | [**job_annotation_delete**](docs/JobAnnotationsApi.md#job_annotation_delete) | **DELETE** /projects/{project_id}/jobs/{job_id}/annotations/{id} | Delete a job annotation
210
+ *Phrase::JobAnnotationsApi* | [**job_annotation_update**](docs/JobAnnotationsApi.md#job_annotation_update) | **PATCH** /projects/{project_id}/jobs/{job_id}/annotations/{id} | Create/Update a job annotation
211
+ *Phrase::JobAnnotationsApi* | [**job_annotations_list**](docs/JobAnnotationsApi.md#job_annotations_list) | **GET** /projects/{project_id}/jobs/{job_id}/annotations | List job annotations
212
+ *Phrase::JobAnnotationsApi* | [**job_locale_annotation_delete**](docs/JobAnnotationsApi.md#job_locale_annotation_delete) | **DELETE** /projects/{project_id}/jobs/{job_id}/locales/{job_locale_id}/annotations/{id} | Delete a job locale annotation
213
+ *Phrase::JobAnnotationsApi* | [**job_locale_annotation_update**](docs/JobAnnotationsApi.md#job_locale_annotation_update) | **PATCH** /projects/{project_id}/jobs/{job_id}/locales/{job_locale_id}/annotations/{id} | Create/Update a job locale annotation
214
+ *Phrase::JobAnnotationsApi* | [**job_locale_annotations_list**](docs/JobAnnotationsApi.md#job_locale_annotations_list) | **GET** /projects/{project_id}/jobs/{job_id}/locales/{job_locale_id}/annotations | List job locale annotations
209
215
  *Phrase::JobCommentsApi* | [**job_comment_create**](docs/JobCommentsApi.md#job_comment_create) | **POST** /projects/{project_id}/jobs/{job_id}/comments | Create a job comment
210
216
  *Phrase::JobCommentsApi* | [**job_comment_delete**](docs/JobCommentsApi.md#job_comment_delete) | **DELETE** /projects/{project_id}/jobs/{job_id}/comments/{id} | Delete a job comment
211
217
  *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
@@ -460,6 +466,9 @@ Class | Method | HTTP request | Description
460
466
  - [Phrase::InvitationUpdateParameters](docs/InvitationUpdateParameters.md)
461
467
  - [Phrase::InvitationUpdateSettingsParameters](docs/InvitationUpdateSettingsParameters.md)
462
468
  - [Phrase::Job](docs/Job.md)
469
+ - [Phrase::JobAnnotation](docs/JobAnnotation.md)
470
+ - [Phrase::JobAnnotationShort](docs/JobAnnotationShort.md)
471
+ - [Phrase::JobAnnotationUpdateParameters](docs/JobAnnotationUpdateParameters.md)
463
472
  - [Phrase::JobComment](docs/JobComment.md)
464
473
  - [Phrase::JobCommentCreateParameters](docs/JobCommentCreateParameters.md)
465
474
  - [Phrase::JobCommentUpdateParameters](docs/JobCommentUpdateParameters.md)
@@ -0,0 +1,23 @@
1
+ # Phrase::JobAnnotation
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | |
8
+ **value** | **String** | |
9
+ **created_at** | **Time** | | [optional]
10
+ **updated_at** | **Time** | | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'Phrase'
16
+
17
+ instance = Phrase::JobAnnotation.new(name: null,
18
+ value: null,
19
+ created_at: null,
20
+ updated_at: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,19 @@
1
+ # Phrase::JobAnnotationShort
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | |
8
+ **value** | **String** | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'Phrase'
14
+
15
+ instance = Phrase::JobAnnotationShort.new(name: null,
16
+ value: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # Phrase::JobAnnotationUpdateParameters
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **value** | **String** | Annotation value | [optional]
8
+ **branch** | **String** | Branch name of the job | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'Phrase'
14
+
15
+ instance = Phrase::JobAnnotationUpdateParameters.new(value: Some value...,
16
+ branch: my-feature-branch)
17
+ ```
18
+
19
+
@@ -0,0 +1,416 @@
1
+ # Phrase::JobAnnotationsApi
2
+
3
+ All URIs are relative to *https://api.phrase.com/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**job_annotation_delete**](JobAnnotationsApi.md#job_annotation_delete) | **DELETE** /projects/{project_id}/jobs/{job_id}/annotations/{id} | Delete a job annotation
8
+ [**job_annotation_update**](JobAnnotationsApi.md#job_annotation_update) | **PATCH** /projects/{project_id}/jobs/{job_id}/annotations/{id} | Create/Update a job annotation
9
+ [**job_annotations_list**](JobAnnotationsApi.md#job_annotations_list) | **GET** /projects/{project_id}/jobs/{job_id}/annotations | List job annotations
10
+ [**job_locale_annotation_delete**](JobAnnotationsApi.md#job_locale_annotation_delete) | **DELETE** /projects/{project_id}/jobs/{job_id}/locales/{job_locale_id}/annotations/{id} | Delete a job locale annotation
11
+ [**job_locale_annotation_update**](JobAnnotationsApi.md#job_locale_annotation_update) | **PATCH** /projects/{project_id}/jobs/{job_id}/locales/{job_locale_id}/annotations/{id} | Create/Update a job locale annotation
12
+ [**job_locale_annotations_list**](JobAnnotationsApi.md#job_locale_annotations_list) | **GET** /projects/{project_id}/jobs/{job_id}/locales/{job_locale_id}/annotations | List job locale annotations
13
+
14
+
15
+
16
+ ## job_annotation_delete
17
+
18
+ > job_annotation_delete(project_id, job_id, id, opts)
19
+
20
+ Delete a job annotation
21
+
22
+ Delete an annotation for a job.
23
+
24
+ ### Example
25
+
26
+ ```ruby
27
+ # load the gem
28
+ require 'phrase'
29
+ # setup authorization
30
+ Phrase.configure do |config|
31
+ # Configure HTTP basic authorization: Basic
32
+ config.username = 'YOUR USERNAME'
33
+ config.password = 'YOUR PASSWORD'
34
+
35
+ # Configure API key authorization: Token
36
+ config.api_key['Authorization'] = 'YOUR API KEY'
37
+ config.api_key_prefix['Authorization'] = 'token'
38
+ end
39
+
40
+ api_instance = Phrase::JobAnnotationsApi.new
41
+ project_id = 'project_id_example' # String | Project ID
42
+ job_id = 'job_id_example' # String | Job ID
43
+ id = 'id_example' # String | Name of the annotation to delete.
44
+ opts = {
45
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
46
+ branch: 'my-feature-branch' # String | Branch to use
47
+ }
48
+
49
+ begin
50
+ #Delete a job annotation
51
+ api_instance.job_annotation_delete(project_id, job_id, id, opts)
52
+ rescue Phrase::ApiError => e
53
+ puts "Exception when calling JobAnnotationsApi->job_annotation_delete: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+
60
+ Name | Type | Description | Notes
61
+ ------------- | ------------- | ------------- | -------------
62
+ **project_id** | **String**| Project ID |
63
+ **job_id** | **String**| Job ID |
64
+ **id** | **String**| Name of the annotation to delete. |
65
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
66
+ **branch** | **String**| Branch to use | [optional]
67
+
68
+ ### Return type
69
+
70
+ Response<(nil (empty response body))>
71
+
72
+ ### Authorization
73
+
74
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: Not defined
79
+ - **Accept**: Not defined
80
+
81
+
82
+ ## job_annotation_update
83
+
84
+ > JobAnnotation job_annotation_update(project_id, job_id, id, job_annotation_update_parameters, opts)
85
+
86
+ Create/Update a job annotation
87
+
88
+ Create or update an annotation for a job. If the annotation already exists, it will be updated; otherwise, a new annotation will be created.
89
+
90
+ ### Example
91
+
92
+ ```ruby
93
+ # load the gem
94
+ require 'phrase'
95
+ # setup authorization
96
+ Phrase.configure do |config|
97
+ # Configure HTTP basic authorization: Basic
98
+ config.username = 'YOUR USERNAME'
99
+ config.password = 'YOUR PASSWORD'
100
+
101
+ # Configure API key authorization: Token
102
+ config.api_key['Authorization'] = 'YOUR API KEY'
103
+ config.api_key_prefix['Authorization'] = 'token'
104
+ end
105
+
106
+ api_instance = Phrase::JobAnnotationsApi.new
107
+ project_id = 'project_id_example' # String | Project ID
108
+ job_id = 'job_id_example' # String | Job ID
109
+ id = 'id_example' # String | Name of the annotation to set or update.
110
+ job_annotation_update_parameters = Phrase::JobAnnotationUpdateParameters.new # JobAnnotationUpdateParameters |
111
+ opts = {
112
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
113
+ }
114
+
115
+ begin
116
+ #Create/Update a job annotation
117
+ result = api_instance.job_annotation_update(project_id, job_id, id, job_annotation_update_parameters, opts)
118
+ pp result
119
+ rescue Phrase::ApiError => e
120
+ puts "Exception when calling JobAnnotationsApi->job_annotation_update: #{e}"
121
+ end
122
+ ```
123
+
124
+ ### Parameters
125
+
126
+
127
+ Name | Type | Description | Notes
128
+ ------------- | ------------- | ------------- | -------------
129
+ **project_id** | **String**| Project ID |
130
+ **job_id** | **String**| Job ID |
131
+ **id** | **String**| Name of the annotation to set or update. |
132
+ **job_annotation_update_parameters** | [**JobAnnotationUpdateParameters**](JobAnnotationUpdateParameters.md)| |
133
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
134
+
135
+ ### Return type
136
+
137
+ Response<([**JobAnnotation**](JobAnnotation.md))>
138
+
139
+ ### Authorization
140
+
141
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: application/json
146
+ - **Accept**: application/json
147
+
148
+
149
+ ## job_annotations_list
150
+
151
+ > Array&lt;JobAnnotation&gt; job_annotations_list(project_id, job_id, opts)
152
+
153
+ List job annotations
154
+
155
+ Retrieve a list of annotations for a job.
156
+
157
+ ### Example
158
+
159
+ ```ruby
160
+ # load the gem
161
+ require 'phrase'
162
+ # setup authorization
163
+ Phrase.configure do |config|
164
+ # Configure HTTP basic authorization: Basic
165
+ config.username = 'YOUR USERNAME'
166
+ config.password = 'YOUR PASSWORD'
167
+
168
+ # Configure API key authorization: Token
169
+ config.api_key['Authorization'] = 'YOUR API KEY'
170
+ config.api_key_prefix['Authorization'] = 'token'
171
+ end
172
+
173
+ api_instance = Phrase::JobAnnotationsApi.new
174
+ project_id = 'project_id_example' # String | Project ID
175
+ job_id = 'job_id_example' # String | Job ID
176
+ opts = {
177
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
178
+ branch: 'my-feature-branch' # String | Branch to use
179
+ }
180
+
181
+ begin
182
+ #List job annotations
183
+ result = api_instance.job_annotations_list(project_id, job_id, opts)
184
+ pp result
185
+ rescue Phrase::ApiError => e
186
+ puts "Exception when calling JobAnnotationsApi->job_annotations_list: #{e}"
187
+ end
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+
193
+ Name | Type | Description | Notes
194
+ ------------- | ------------- | ------------- | -------------
195
+ **project_id** | **String**| Project ID |
196
+ **job_id** | **String**| Job ID |
197
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
198
+ **branch** | **String**| Branch to use | [optional]
199
+
200
+ ### Return type
201
+
202
+ Response<([**Array&lt;JobAnnotation&gt;**](JobAnnotation.md))>
203
+
204
+ ### Authorization
205
+
206
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
207
+
208
+ ### HTTP request headers
209
+
210
+ - **Content-Type**: Not defined
211
+ - **Accept**: application/json
212
+
213
+
214
+ ## job_locale_annotation_delete
215
+
216
+ > job_locale_annotation_delete(project_id, job_id, job_locale_id, id, opts)
217
+
218
+ Delete a job locale annotation
219
+
220
+ Delete an annotation for a job locale.
221
+
222
+ ### Example
223
+
224
+ ```ruby
225
+ # load the gem
226
+ require 'phrase'
227
+ # setup authorization
228
+ Phrase.configure do |config|
229
+ # Configure HTTP basic authorization: Basic
230
+ config.username = 'YOUR USERNAME'
231
+ config.password = 'YOUR PASSWORD'
232
+
233
+ # Configure API key authorization: Token
234
+ config.api_key['Authorization'] = 'YOUR API KEY'
235
+ config.api_key_prefix['Authorization'] = 'token'
236
+ end
237
+
238
+ api_instance = Phrase::JobAnnotationsApi.new
239
+ project_id = 'project_id_example' # String | Project ID
240
+ job_id = 'job_id_example' # String | Job ID
241
+ job_locale_id = 'job_locale_id_example' # String | Job Locale ID
242
+ id = 'id_example' # String | Name of the annotation to delete.
243
+ opts = {
244
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
245
+ branch: 'my-feature-branch' # String | Branch to use
246
+ }
247
+
248
+ begin
249
+ #Delete a job locale annotation
250
+ api_instance.job_locale_annotation_delete(project_id, job_id, job_locale_id, id, opts)
251
+ rescue Phrase::ApiError => e
252
+ puts "Exception when calling JobAnnotationsApi->job_locale_annotation_delete: #{e}"
253
+ end
254
+ ```
255
+
256
+ ### Parameters
257
+
258
+
259
+ Name | Type | Description | Notes
260
+ ------------- | ------------- | ------------- | -------------
261
+ **project_id** | **String**| Project ID |
262
+ **job_id** | **String**| Job ID |
263
+ **job_locale_id** | **String**| Job Locale ID |
264
+ **id** | **String**| Name of the annotation to delete. |
265
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
266
+ **branch** | **String**| Branch to use | [optional]
267
+
268
+ ### Return type
269
+
270
+ Response<(nil (empty response body))>
271
+
272
+ ### Authorization
273
+
274
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
275
+
276
+ ### HTTP request headers
277
+
278
+ - **Content-Type**: Not defined
279
+ - **Accept**: Not defined
280
+
281
+
282
+ ## job_locale_annotation_update
283
+
284
+ > JobAnnotation job_locale_annotation_update(project_id, job_id, job_locale_id, id, job_annotation_update_parameters, opts)
285
+
286
+ Create/Update a job locale annotation
287
+
288
+ Create or update an annotation for a job locale. If the annotation already exists, it will be updated; otherwise, a new annotation will be created.
289
+
290
+ ### Example
291
+
292
+ ```ruby
293
+ # load the gem
294
+ require 'phrase'
295
+ # setup authorization
296
+ Phrase.configure do |config|
297
+ # Configure HTTP basic authorization: Basic
298
+ config.username = 'YOUR USERNAME'
299
+ config.password = 'YOUR PASSWORD'
300
+
301
+ # Configure API key authorization: Token
302
+ config.api_key['Authorization'] = 'YOUR API KEY'
303
+ config.api_key_prefix['Authorization'] = 'token'
304
+ end
305
+
306
+ api_instance = Phrase::JobAnnotationsApi.new
307
+ project_id = 'project_id_example' # String | Project ID
308
+ job_id = 'job_id_example' # String | Job ID
309
+ job_locale_id = 'job_locale_id_example' # String | Job Locale ID
310
+ id = 'id_example' # String | Name of the annotation to set or update.
311
+ job_annotation_update_parameters = Phrase::JobAnnotationUpdateParameters.new # JobAnnotationUpdateParameters |
312
+ opts = {
313
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
314
+ }
315
+
316
+ begin
317
+ #Create/Update a job locale annotation
318
+ result = api_instance.job_locale_annotation_update(project_id, job_id, job_locale_id, id, job_annotation_update_parameters, opts)
319
+ pp result
320
+ rescue Phrase::ApiError => e
321
+ puts "Exception when calling JobAnnotationsApi->job_locale_annotation_update: #{e}"
322
+ end
323
+ ```
324
+
325
+ ### Parameters
326
+
327
+
328
+ Name | Type | Description | Notes
329
+ ------------- | ------------- | ------------- | -------------
330
+ **project_id** | **String**| Project ID |
331
+ **job_id** | **String**| Job ID |
332
+ **job_locale_id** | **String**| Job Locale ID |
333
+ **id** | **String**| Name of the annotation to set or update. |
334
+ **job_annotation_update_parameters** | [**JobAnnotationUpdateParameters**](JobAnnotationUpdateParameters.md)| |
335
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
336
+
337
+ ### Return type
338
+
339
+ Response<([**JobAnnotation**](JobAnnotation.md))>
340
+
341
+ ### Authorization
342
+
343
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
344
+
345
+ ### HTTP request headers
346
+
347
+ - **Content-Type**: application/json
348
+ - **Accept**: application/json
349
+
350
+
351
+ ## job_locale_annotations_list
352
+
353
+ > Array&lt;JobAnnotation&gt; job_locale_annotations_list(project_id, job_id, job_locale_id, opts)
354
+
355
+ List job locale annotations
356
+
357
+ Retrieve a list of annotations for a job locale.
358
+
359
+ ### Example
360
+
361
+ ```ruby
362
+ # load the gem
363
+ require 'phrase'
364
+ # setup authorization
365
+ Phrase.configure do |config|
366
+ # Configure HTTP basic authorization: Basic
367
+ config.username = 'YOUR USERNAME'
368
+ config.password = 'YOUR PASSWORD'
369
+
370
+ # Configure API key authorization: Token
371
+ config.api_key['Authorization'] = 'YOUR API KEY'
372
+ config.api_key_prefix['Authorization'] = 'token'
373
+ end
374
+
375
+ api_instance = Phrase::JobAnnotationsApi.new
376
+ project_id = 'project_id_example' # String | Project ID
377
+ job_id = 'job_id_example' # String | Job ID
378
+ job_locale_id = 'job_locale_id_example' # String | Job Locale ID
379
+ opts = {
380
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
381
+ branch: 'my-feature-branch' # String | Branch to use
382
+ }
383
+
384
+ begin
385
+ #List job locale annotations
386
+ result = api_instance.job_locale_annotations_list(project_id, job_id, job_locale_id, opts)
387
+ pp result
388
+ rescue Phrase::ApiError => e
389
+ puts "Exception when calling JobAnnotationsApi->job_locale_annotations_list: #{e}"
390
+ end
391
+ ```
392
+
393
+ ### Parameters
394
+
395
+
396
+ Name | Type | Description | Notes
397
+ ------------- | ------------- | ------------- | -------------
398
+ **project_id** | **String**| Project ID |
399
+ **job_id** | **String**| Job ID |
400
+ **job_locale_id** | **String**| Job Locale ID |
401
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
402
+ **branch** | **String**| Branch to use | [optional]
403
+
404
+ ### Return type
405
+
406
+ Response<([**Array&lt;JobAnnotation&gt;**](JobAnnotation.md))>
407
+
408
+ ### Authorization
409
+
410
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
411
+
412
+ ### HTTP request headers
413
+
414
+ - **Content-Type**: Not defined
415
+ - **Accept**: application/json
416
+
data/docs/JobDetails.md CHANGED
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
20
20
  **source_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
21
21
  **locales** | [**Array&lt;LocalePreview&gt;**](LocalePreview.md) | | [optional]
22
22
  **keys** | [**Array&lt;KeyPreview&gt;**](KeyPreview.md) | | [optional]
23
+ **annotations** | [**Array&lt;JobAnnotationShort&gt;**](JobAnnotationShort.md) | | [optional]
23
24
 
24
25
  ## Code Sample
25
26
 
@@ -41,7 +42,8 @@ instance = Phrase::JobDetails.new(id: null,
41
42
  source_translations_updated_at: null,
42
43
  source_locale: null,
43
44
  locales: null,
44
- keys: null)
45
+ keys: null,
46
+ annotations: null)
45
47
  ```
46
48
 
47
49
 
data/docs/JobLocale.md CHANGED
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **completed** | **Boolean** | | [optional]
13
13
  **translation_completed_at** | **Time** | | [optional]
14
14
  **review_completed_at** | **Time** | | [optional]
15
+ **annotations** | [**Array&lt;JobAnnotationShort&gt;**](JobAnnotationShort.md) | | [optional]
15
16
 
16
17
  ## Code Sample
17
18
 
@@ -25,7 +26,8 @@ instance = Phrase::JobLocale.new(id: null,
25
26
  teams: null,
26
27
  completed: null,
27
28
  translation_completed_at: null,
28
- review_completed_at: null)
29
+ review_completed_at: null,
30
+ annotations: null)
29
31
  ```
30
32
 
31
33
 
@@ -312,7 +312,8 @@ job_id = 'job_id_example' # String | Job ID
312
312
  id = 'id_example' # String | ID
313
313
  opts = {
314
314
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
315
- branch: 'my-feature-branch' # String | Branch to use
315
+ branch: 'my-feature-branch', # String | Branch to use
316
+ include_annotations: true # Boolean | Include job-locale annotations in the response
316
317
  }
317
318
 
318
319
  begin
@@ -334,6 +335,7 @@ Name | Type | Description | Notes
334
335
  **id** | **String**| ID |
335
336
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
336
337
  **branch** | **String**| Branch to use | [optional]
338
+ **include_annotations** | **Boolean**| Include job-locale annotations in the response | [optional] [default to false]
337
339
 
338
340
  ### Return type
339
341
 
@@ -512,7 +514,8 @@ opts = {
512
514
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
513
515
  page: 1, # Integer | Page number
514
516
  per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
515
- branch: 'my-feature-branch' # String | Branch to use
517
+ branch: 'my-feature-branch', # String | Branch to use
518
+ include_annotations: true # Boolean | Include job-locale annotations in the response
516
519
  }
517
520
 
518
521
  begin
@@ -535,6 +538,7 @@ Name | Type | Description | Notes
535
538
  **page** | **Integer**| Page number | [optional]
536
539
  **per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
537
540
  **branch** | **String**| Branch to use | [optional]
541
+ **include_annotations** | **Boolean**| Include job-locale annotations in the response | [optional] [default to false]
538
542
 
539
543
  ### Return type
540
544
 
data/docs/JobsApi.md CHANGED
@@ -499,7 +499,8 @@ project_id = 'project_id_example' # String | Project ID
499
499
  id = 'id_example' # String | ID
500
500
  opts = {
501
501
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
502
- branch: 'my-feature-branch' # String | specify the branch to use
502
+ branch: 'my-feature-branch', # String | Branch to use
503
+ include_annotations: true # Boolean | Include job-locale annotations in the response
503
504
  }
504
505
 
505
506
  begin
@@ -519,7 +520,8 @@ Name | Type | Description | Notes
519
520
  **project_id** | **String**| Project ID |
520
521
  **id** | **String**| ID |
521
522
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
522
- **branch** | **String**| specify the branch to use | [optional]
523
+ **branch** | **String**| Branch to use | [optional]
524
+ **include_annotations** | **Boolean**| Include job-locale annotations in the response | [optional] [default to false]
523
525
 
524
526
  ### Return type
525
527
 
@@ -38,7 +38,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
38
38
  data_type: number,
39
39
  tags: awesome-feature,needs-proofreading,
40
40
  max_characters_allowed: 140,
41
- screenshot: [B@283dd82a,
41
+ screenshot: [B@307b954,
42
42
  remove_screenshot: null,
43
43
  unformatted: null,
44
44
  default_translation_content: Default translation content,
@@ -36,7 +36,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
36
36
  data_type: number,
37
37
  tags: awesome-feature,needs-proofreading,
38
38
  max_characters_allowed: 140,
39
- screenshot: [B@53365a58,
39
+ screenshot: [B@52fd6b76,
40
40
  remove_screenshot: null,
41
41
  unformatted: null,
42
42
  xml_space_preserve: null,
@@ -37,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
37
37
  main_format: yml,
38
38
  media: Python,
39
39
  shares_translation_memory: true,
40
- project_image: [B@70d7282a,
40
+ project_image: [B@3feafba2,
41
41
  remove_project_image: null,
42
42
  account_id: abcd1234,
43
43
  point_of_contact: abcd1234,