phrase 4.5.0 → 4.8.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/README.md +12 -3
- data/docs/BranchesApi.md +3 -3
- data/docs/DistributionCreateParameters.md +1 -1
- data/docs/DistributionUpdateParameters.md +1 -1
- data/docs/InvitationCreateParameters.md +2 -2
- data/docs/InvitationsApi.md +7 -7
- data/docs/JobAnnotation.md +23 -0
- data/docs/JobAnnotationShort.md +19 -0
- data/docs/JobAnnotationUpdateParameters.md +19 -0
- data/docs/JobAnnotationsApi.md +416 -0
- data/docs/JobDetails.md +3 -1
- data/docs/JobLocale.md +3 -1
- data/docs/JobLocalesApi.md +6 -2
- data/docs/JobsApi.md +8 -6
- data/docs/KeyCreateParameters.md +3 -1
- data/docs/KeyPreview.md +3 -1
- data/docs/KeyUpdateParameters.md +3 -1
- data/docs/KeysApi.md +4 -4
- data/docs/KeysExcludeParameters.md +1 -1
- data/docs/KeysIncludeParameters.md +1 -1
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/KeysTagParameters.md +1 -1
- data/docs/KeysUntagParameters.md +1 -1
- data/docs/Locale.md +2 -0
- data/docs/LocaleCreateParameters.md +3 -3
- data/docs/LocaleDetails.md +2 -0
- data/docs/LocaleDownloadCreateParameters.md +7 -5
- data/docs/LocaleDownloadsApi.md +8 -8
- data/docs/LocaleUpdateParameters.md +3 -3
- data/docs/LocalesApi.md +17 -15
- data/docs/MemberUpdateParameters.md +1 -1
- data/docs/MembersApi.md +5 -5
- data/docs/OrdersApi.md +1 -1
- data/docs/ProjectCreateParameters.md +5 -5
- data/docs/ProjectUpdateParameters.md +6 -6
- data/docs/ReleaseTriggersApi.md +1 -1
- data/docs/ScreenshotMarkerCreateParameters.md +1 -1
- data/docs/ScreenshotMarkerUpdateParameters.md +1 -1
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/SearchApi.md +1 -1
- data/docs/TagsApi.md +2 -0
- data/docs/TranslationCreateParameters.md +1 -1
- data/docs/TranslationKey.md +2 -0
- data/docs/TranslationKeyDetails.md +2 -0
- data/docs/TranslationUpdateParameters.md +1 -1
- data/docs/TranslationsApi.md +13 -13
- data/docs/TranslationsExcludeParameters.md +1 -1
- data/docs/TranslationsIncludeParameters.md +1 -1
- data/docs/TranslationsReviewParameters.md +1 -1
- data/docs/TranslationsSearchParameters.md +1 -1
- data/docs/TranslationsUnreviewParameters.md +1 -1
- data/docs/TranslationsUnverifyParameters.md +1 -1
- data/docs/TranslationsVerifyParameters.md +1 -1
- data/lib/phrase/api/branches_api.rb +6 -6
- data/lib/phrase/api/invitations_api.rb +14 -14
- data/lib/phrase/api/job_annotations_api.rb +508 -0
- data/lib/phrase/api/job_locales_api.rb +6 -0
- data/lib/phrase/api/jobs_api.rb +9 -6
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locale_downloads_api.rb +8 -8
- data/lib/phrase/api/locales_api.rb +17 -14
- data/lib/phrase/api/members_api.rb +10 -10
- data/lib/phrase/api/orders_api.rb +2 -2
- data/lib/phrase/api/release_triggers_api.rb +2 -2
- data/lib/phrase/api/search_api.rb +2 -2
- data/lib/phrase/api/tags_api.rb +3 -0
- data/lib/phrase/api/translations_api.rb +16 -16
- data/lib/phrase/models/distribution_create_parameters.rb +1 -1
- data/lib/phrase/models/distribution_update_parameters.rb +1 -1
- data/lib/phrase/models/invitation_create_parameters.rb +2 -2
- data/lib/phrase/models/job_annotation.rb +233 -0
- data/lib/phrase/models/job_annotation_short.rb +215 -0
- data/lib/phrase/models/job_annotation_update_parameters.rb +207 -0
- data/lib/phrase/models/job_details.rb +15 -4
- data/lib/phrase/models/job_locale.rb +15 -4
- data/lib/phrase/models/key_create_parameters.rb +11 -1
- data/lib/phrase/models/key_preview.rb +13 -4
- data/lib/phrase/models/key_update_parameters.rb +11 -1
- data/lib/phrase/models/keys_exclude_parameters.rb +1 -1
- data/lib/phrase/models/keys_include_parameters.rb +1 -1
- data/lib/phrase/models/keys_search_parameters.rb +1 -1
- data/lib/phrase/models/keys_tag_parameters.rb +1 -1
- data/lib/phrase/models/keys_untag_parameters.rb +1 -1
- data/lib/phrase/models/locale.rb +12 -1
- data/lib/phrase/models/locale_create_parameters.rb +3 -3
- data/lib/phrase/models/locale_details.rb +12 -1
- data/lib/phrase/models/locale_download_create_parameters.rb +18 -8
- data/lib/phrase/models/locale_update_parameters.rb +3 -3
- data/lib/phrase/models/member_update_parameters.rb +1 -1
- data/lib/phrase/models/project_create_parameters.rb +4 -4
- data/lib/phrase/models/project_update_parameters.rb +5 -5
- data/lib/phrase/models/screenshot_marker_create_parameters.rb +1 -1
- data/lib/phrase/models/screenshot_marker_update_parameters.rb +1 -1
- data/lib/phrase/models/translation_create_parameters.rb +1 -1
- data/lib/phrase/models/translation_key.rb +10 -1
- data/lib/phrase/models/translation_key_details.rb +10 -1
- data/lib/phrase/models/translation_update_parameters.rb +1 -1
- data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
- data/lib/phrase/models/translations_include_parameters.rb +1 -1
- data/lib/phrase/models/translations_review_parameters.rb +1 -1
- data/lib/phrase/models/translations_search_parameters.rb +1 -1
- data/lib/phrase/models/translations_unreview_parameters.rb +1 -1
- data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
- data/lib/phrase/models/translations_verify_parameters.rb +1 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +4 -0
- data/spec/api/branches_api_spec.rb +3 -3
- data/spec/api/invitations_api_spec.rb +7 -7
- data/spec/api/job_annotations_api_spec.rb +120 -0
- data/spec/api/job_locales_api_spec.rb +2 -0
- data/spec/api/jobs_api_spec.rb +4 -3
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/locale_downloads_api_spec.rb +4 -4
- data/spec/api/members_api_spec.rb +5 -5
- data/spec/api/orders_api_spec.rb +1 -1
- data/spec/api/release_triggers_api_spec.rb +1 -1
- data/spec/api/search_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +1 -0
- data/spec/api/translations_api_spec.rb +8 -8
- data/spec/models/job_annotation_short_spec.rb +35 -0
- data/spec/models/job_annotation_spec.rb +47 -0
- data/spec/models/job_annotation_update_parameters_spec.rb +35 -0
- data/spec/models/job_details_spec.rb +6 -0
- data/spec/models/job_locale_spec.rb +6 -0
- data/spec/models/key_create_parameters_spec.rb +6 -0
- data/spec/models/key_preview_spec.rb +6 -0
- data/spec/models/key_update_parameters_spec.rb +6 -0
- data/spec/models/locale_details_spec.rb +6 -0
- data/spec/models/locale_download_create_parameters_spec.rb +6 -0
- data/spec/models/locale_spec.rb +6 -0
- data/spec/models/translation_key_details_spec.rb +6 -0
- data/spec/models/translation_key_spec.rb +6 -0
- metadata +247 -231
@@ -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<JobAnnotation> 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<JobAnnotation>**](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<JobAnnotation> 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<JobAnnotation>**](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<LocalePreview>**](LocalePreview.md) | | [optional]
|
22
22
|
**keys** | [**Array<KeyPreview>**](KeyPreview.md) | | [optional]
|
23
|
+
**annotations** | [**Array<JobAnnotationShort>**](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<JobAnnotationShort>**](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
|
|
data/docs/JobLocalesApi.md
CHANGED
@@ -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 |
|
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**|
|
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
|
|
@@ -761,7 +763,7 @@ opts = {
|
|
761
763
|
per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
762
764
|
owned_by: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user owning job
|
763
765
|
assigned_to: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user assigned to job
|
764
|
-
state: 'completed', # String | filter by state of job; valid states are:
|
766
|
+
state: 'completed', # String | filter by state of job; valid states are: `draft`, `in_progress`, `completed`
|
765
767
|
updated_since: '2013-02-21T00:00:00.000Z' # String | filter by jobs updated since given date
|
766
768
|
}
|
767
769
|
|
@@ -785,7 +787,7 @@ Name | Type | Description | Notes
|
|
785
787
|
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
|
786
788
|
**owned_by** | **String**| filter by user owning job | [optional]
|
787
789
|
**assigned_to** | **String**| filter by user assigned to job | [optional]
|
788
|
-
**state** | **String**| filter by state of job; valid states are:
|
790
|
+
**state** | **String**| filter by state of job; valid states are: `draft`, `in_progress`, `completed` | [optional]
|
789
791
|
**updated_since** | **String**| filter by jobs updated since given date | [optional]
|
790
792
|
|
791
793
|
### Return type
|
@@ -835,7 +837,7 @@ opts = {
|
|
835
837
|
branch: 'my-feature-branch', # String | Branch to use
|
836
838
|
owned_by: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user owning job
|
837
839
|
assigned_to: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user assigned to job
|
838
|
-
state: 'completed', # String | filter by state of job; valid states are:
|
840
|
+
state: 'completed', # String | filter by state of job; valid states are: `draft`, `in_progress`, `completed`
|
839
841
|
updated_since: '2013-02-21T00:00:00.000Z' # String | filter by jobs updated since given date
|
840
842
|
}
|
841
843
|
|
@@ -860,7 +862,7 @@ Name | Type | Description | Notes
|
|
860
862
|
**branch** | **String**| Branch to use | [optional]
|
861
863
|
**owned_by** | **String**| filter by user owning job | [optional]
|
862
864
|
**assigned_to** | **String**| filter by user assigned to job | [optional]
|
863
|
-
**state** | **String**| filter by state of job; valid states are:
|
865
|
+
**state** | **String**| filter by state of job; valid states are: `draft`, `in_progress`, `completed` | [optional]
|
864
866
|
**updated_since** | **String**| filter by jobs updated since given date | [optional]
|
865
867
|
|
866
868
|
### Return type
|
data/docs/KeyCreateParameters.md
CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**name** | **String** | Key name |
|
9
9
|
**description** | **String** | Key description (usually includes contextual information for translators) | [optional]
|
10
10
|
**plural** | **Boolean** | Indicates whether key supports pluralization | [optional]
|
11
|
+
**use_ordinal_rules** | **Boolean** | Indicates whether key uses ordinal rules for pluralization | [optional]
|
11
12
|
**name_plural** | **String** | Plural name for the key (used in some file formats, e.g. Gettext) | [optional]
|
12
13
|
**data_type** | **String** | Type of the key. Can be one of the following: string, number, boolean, array, markdown. | [optional]
|
13
14
|
**tags** | **String** | List of tags separated by comma to be associated with the key. | [optional]
|
@@ -32,11 +33,12 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
|
|
32
33
|
name: home.index.headline,
|
33
34
|
description: Some description worth knowing...,
|
34
35
|
plural: null,
|
36
|
+
use_ordinal_rules: null,
|
35
37
|
name_plural: home.index.headlines,
|
36
38
|
data_type: number,
|
37
39
|
tags: awesome-feature,needs-proofreading,
|
38
40
|
max_characters_allowed: 140,
|
39
|
-
screenshot: [B@
|
41
|
+
screenshot: [B@3e6b4f51,
|
40
42
|
remove_screenshot: null,
|
41
43
|
unformatted: null,
|
42
44
|
default_translation_content: Default translation content,
|
data/docs/KeyPreview.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**id** | **String** | | [optional]
|
8
8
|
**name** | **String** | | [optional]
|
9
9
|
**plural** | **Boolean** | | [optional]
|
10
|
+
**use_ordinal_rules** | **Boolean** | | [optional]
|
10
11
|
|
11
12
|
## Code Sample
|
12
13
|
|
@@ -15,7 +16,8 @@ require 'Phrase'
|
|
15
16
|
|
16
17
|
instance = Phrase::KeyPreview.new(id: null,
|
17
18
|
name: null,
|
18
|
-
plural: null
|
19
|
+
plural: null,
|
20
|
+
use_ordinal_rules: null)
|
19
21
|
```
|
20
22
|
|
21
23
|
|
data/docs/KeyUpdateParameters.md
CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**name** | **String** | Key name | [optional]
|
9
9
|
**description** | **String** | Key description (usually includes contextual information for translators) | [optional]
|
10
10
|
**plural** | **Boolean** | Indicates whether key supports pluralization | [optional]
|
11
|
+
**use_ordinal_rules** | **Boolean** | Indicates whether key uses ordinal rules for pluralization | [optional]
|
11
12
|
**name_plural** | **String** | Plural name for the key (used in some file formats, e.g. Gettext) | [optional]
|
12
13
|
**data_type** | **String** | Type of the key. Can be one of the following: string, number, boolean, array, markdown. | [optional]
|
13
14
|
**tags** | **String** | List of tags separated by comma to be associated with the key. | [optional]
|
@@ -30,11 +31,12 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
|
|
30
31
|
name: home.index.headline,
|
31
32
|
description: Some description worth knowing...,
|
32
33
|
plural: null,
|
34
|
+
use_ordinal_rules: null,
|
33
35
|
name_plural: home.index.headlines,
|
34
36
|
data_type: number,
|
35
37
|
tags: awesome-feature,needs-proofreading,
|
36
38
|
max_characters_allowed: 140,
|
37
|
-
screenshot: [B@
|
39
|
+
screenshot: [B@3ca07d9,
|
38
40
|
remove_screenshot: null,
|
39
41
|
unformatted: null,
|
40
42
|
xml_space_preserve: null,
|
data/docs/KeysApi.md
CHANGED
@@ -304,7 +304,7 @@ project_id = 'project_id_example' # String | Project ID
|
|
304
304
|
opts = {
|
305
305
|
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
306
306
|
branch: 'my-feature-branch', # String | specify the branch to use
|
307
|
-
q: 'mykey* translated:true', # String | Specify a query to do broad search for keys by name (including wildcards)
|
307
|
+
q: 'mykey* translated:true', # String | Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
|
308
308
|
locale_id: 'abcd1234abcd1234abcd1234abcd1234' # String | Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
309
309
|
}
|
310
310
|
|
@@ -325,7 +325,7 @@ Name | Type | Description | Notes
|
|
325
325
|
**project_id** | **String**| Project ID |
|
326
326
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
327
327
|
**branch** | **String**| specify the branch to use | [optional]
|
328
|
-
**q** | **String**| Specify a query to do broad search for keys by name (including wildcards)
|
328
|
+
**q** | **String**| Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
329
329
|
**locale_id** | **String**| Locale used to determine the translation state of a key when filtering for untranslated or translated keys. | [optional]
|
330
330
|
|
331
331
|
### Return type
|
@@ -501,7 +501,7 @@ opts = {
|
|
501
501
|
branch: 'my-feature-branch', # String | specify the branch to use
|
502
502
|
sort: 'updated_at', # String | Sort by field. Can be one of: name, created_at, updated_at.
|
503
503
|
order: 'desc', # String | Order direction. Can be one of: asc, desc.
|
504
|
-
q: 'mykey* translated:true', # String | Specify a query to do broad search for keys by name (including wildcards)
|
504
|
+
q: 'mykey* translated:true', # String | Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
|
505
505
|
locale_id: 'abcd1234abcd1234abcd1234abcd1234' # String | Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
506
506
|
}
|
507
507
|
|
@@ -526,7 +526,7 @@ Name | Type | Description | Notes
|
|
526
526
|
**branch** | **String**| specify the branch to use | [optional]
|
527
527
|
**sort** | **String**| Sort by field. Can be one of: name, created_at, updated_at. | [optional]
|
528
528
|
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
|
529
|
-
**q** | **String**| Specify a query to do broad search for keys by name (including wildcards)
|
529
|
+
**q** | **String**| Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
530
530
|
**locale_id** | **String**| Locale used to determine the translation state of a key when filtering for untranslated or translated keys. | [optional]
|
531
531
|
|
532
532
|
### Return type
|