phrase 2.7.0 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -21
- data/docs/BlacklistedKeyCreateParameters.md +1 -1
- data/docs/BlacklistedKeyUpdateParameters.md +1 -1
- data/docs/BlacklistedKeysApi.md +20 -20
- data/docs/DistributionCreateParameters.md +2 -0
- data/docs/DistributionUpdateParameters.md +2 -0
- data/docs/GlossariesApi.md +20 -20
- data/docs/GlossaryTermTranslationsApi.md +12 -12
- data/docs/GlossaryTermsApi.md +20 -20
- 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/Locale.md +2 -0
- data/docs/LocaleCreateParameters.md +2 -0
- data/docs/LocaleDetails.md +2 -0
- data/docs/LocaleUpdateParameters.md +2 -0
- data/docs/ScreenshotsApi.md +12 -6
- data/docs/StyleguideCreateParameters.md +1 -1
- data/docs/StyleguideUpdateParameters.md +1 -1
- data/docs/VersionsHistoryApi.md +1 -1
- data/docs/WebhookDeliveriesApi.md +206 -0
- data/docs/WebhookDelivery.md +29 -0
- data/lib/phrase/api/blacklisted_keys_api.rb +20 -20
- data/lib/phrase/api/glossaries_api.rb +20 -20
- data/lib/phrase/api/glossary_term_translations_api.rb +12 -12
- data/lib/phrase/api/glossary_terms_api.rb +20 -20
- data/lib/phrase/api/job_comments_api.rb +411 -0
- data/lib/phrase/api/screenshots_api.rb +17 -11
- data/lib/phrase/api/versions_history_api.rb +2 -2
- data/lib/phrase/api/webhook_deliveries_api.rb +241 -0
- data/lib/phrase/models/blacklisted_key_create_parameters.rb +1 -1
- data/lib/phrase/models/blacklisted_key_update_parameters.rb +1 -1
- data/lib/phrase/models/distribution_create_parameters.rb +11 -1
- data/lib/phrase/models/distribution_update_parameters.rb +11 -1
- 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/models/locale.rb +10 -1
- data/lib/phrase/models/locale_create_parameters.rb +11 -1
- data/lib/phrase/models/locale_details.rb +10 -1
- data/lib/phrase/models/locale_update_parameters.rb +11 -1
- data/lib/phrase/models/webhook_delivery.rb +248 -0
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +6 -0
- data/spec/api/blacklisted_keys_api_spec.rb +10 -10
- data/spec/api/glossaries_api_spec.rb +10 -10
- data/spec/api/glossary_term_translations_api_spec.rb +6 -6
- data/spec/api/glossary_terms_api_spec.rb +10 -10
- data/spec/api/job_comments_api_spec.rb +101 -0
- data/spec/api/screenshots_api_spec.rb +4 -1
- data/spec/api/versions_history_api_spec.rb +1 -1
- data/spec/api/webhook_deliveries_api_spec.rb +68 -0
- data/spec/models/distribution_create_parameters_spec.rb +6 -0
- data/spec/models/distribution_update_parameters_spec.rb +6 -0
- 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
- data/spec/models/locale_create_parameters_spec.rb +6 -0
- data/spec/models/locale_details_spec.rb +6 -0
- data/spec/models/locale_spec.rb +6 -0
- data/spec/models/locale_update_parameters_spec.rb +6 -0
- data/spec/models/webhook_delivery_spec.rb +65 -0
- metadata +221 -197
@@ -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/Locale.md
CHANGED
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
12
12
|
**rtl** | **Boolean** | | [optional]
|
13
13
|
**plural_forms** | **Array<String>** | | [optional]
|
14
14
|
**source_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
|
15
|
+
**fallback_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
|
15
16
|
**created_at** | **DateTime** | | [optional]
|
16
17
|
**updated_at** | **DateTime** | | [optional]
|
17
18
|
|
@@ -28,6 +29,7 @@ instance = Phrase::Locale.new(id: null,
|
|
28
29
|
rtl: null,
|
29
30
|
plural_forms: null,
|
30
31
|
source_locale: null,
|
32
|
+
fallback_locale: null,
|
31
33
|
created_at: null,
|
32
34
|
updated_at: null)
|
33
35
|
```
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**main** | **Boolean** | Indicates whether locale is a main locale. Main locales are part of the <a href=\"https://help.phrase.com/help/verification-and-proofreading\" target=\"_blank\">Verification System</a> feature. | [optional]
|
12
12
|
**rtl** | **Boolean** | Indicates whether locale is a RTL (Right-to-Left) locale. | [optional]
|
13
13
|
**source_locale_id** | **String** | Source locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
|
14
|
+
**fallback_locale_id** | **String** | Fallback locale for empty translations. Can be a locale name or id. | [optional]
|
14
15
|
**unverify_new_translations** | **Boolean** | Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://help.phrase.com/help/verification-and-proofreading\" target=\"_blank\">Advanced Workflows</a> feature. | [optional]
|
15
16
|
**unverify_updated_translations** | **Boolean** | Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=\"https://help.phrase.com/help/verification-and-proofreading\" target=\"_blank\">Advanced Workflows</a> feature. | [optional]
|
16
17
|
**autotranslate** | **Boolean** | If set, translations for this locale will be fetched automatically, right after creation. | [optional]
|
@@ -27,6 +28,7 @@ instance = Phrase::LocaleCreateParameters.new(branch: my-feature-branch,
|
|
27
28
|
main: null,
|
28
29
|
rtl: null,
|
29
30
|
source_locale_id: abcd1234abcd1234abcd1234abcd1234,
|
31
|
+
fallback_locale_id: abcd1234abcd1234abcd1234abcd1234,
|
30
32
|
unverify_new_translations: null,
|
31
33
|
unverify_updated_translations: null,
|
32
34
|
autotranslate: null)
|
data/docs/LocaleDetails.md
CHANGED
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
12
12
|
**rtl** | **Boolean** | | [optional]
|
13
13
|
**plural_forms** | **Array<String>** | | [optional]
|
14
14
|
**source_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
|
15
|
+
**fallback_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
|
15
16
|
**created_at** | **DateTime** | | [optional]
|
16
17
|
**updated_at** | **DateTime** | | [optional]
|
17
18
|
**statistics** | [**LocaleStatistics**](LocaleStatistics.md) | | [optional]
|
@@ -29,6 +30,7 @@ instance = Phrase::LocaleDetails.new(id: null,
|
|
29
30
|
rtl: null,
|
30
31
|
plural_forms: null,
|
31
32
|
source_locale: null,
|
33
|
+
fallback_locale: null,
|
32
34
|
created_at: null,
|
33
35
|
updated_at: null,
|
34
36
|
statistics: null)
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**main** | **Boolean** | Indicates whether locale is a main locale. Main locales are part of the <a href=\"https://help.phrase.com/help/verification-and-proofreading\" target=\"_blank\">Verification System</a> feature. | [optional]
|
12
12
|
**rtl** | **Boolean** | Indicates whether locale is a RTL (Right-to-Left) locale. | [optional]
|
13
13
|
**source_locale_id** | **String** | Source locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
|
14
|
+
**fallback_locale_id** | **String** | Fallback locale for empty translations. Can be a locale name or id. | [optional]
|
14
15
|
**unverify_new_translations** | **Boolean** | Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://help.phrase.com/help/verification-and-proofreading\" target=\"_blank\">Advanced Workflows</a> feature. | [optional]
|
15
16
|
**unverify_updated_translations** | **Boolean** | Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=\"https://help.phrase.com/help/verification-and-proofreading\" target=\"_blank\">Advanced Workflows</a> feature. | [optional]
|
16
17
|
**autotranslate** | **Boolean** | If set, translations for this locale will be fetched automatically, right after creation. | [optional]
|
@@ -27,6 +28,7 @@ instance = Phrase::LocaleUpdateParameters.new(branch: my-feature-branch,
|
|
27
28
|
main: null,
|
28
29
|
rtl: null,
|
29
30
|
source_locale_id: abcd1234abcd1234abcd1234abcd1234,
|
31
|
+
fallback_locale_id: abcd1234abcd1234abcd1234abcd1234,
|
30
32
|
unverify_new_translations: null,
|
31
33
|
unverify_updated_translations: null,
|
32
34
|
autotranslate: null)
|
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,
|
data/docs/VersionsHistoryApi.md
CHANGED