phrase 2.2.0 → 2.5.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 +20 -3
- data/docs/AccountsApi.md +8 -2
- data/docs/AuthorizationsApi.md +20 -5
- data/docs/BitbucketSyncApi.md +12 -3
- data/docs/BlacklistedKeysApi.md +20 -5
- data/docs/BranchesApi.md +28 -7
- data/docs/CommentsApi.md +32 -8
- data/docs/Distribution.md +2 -0
- data/docs/DistributionCreateParameters.md +2 -0
- data/docs/DistributionUpdateParameters.md +2 -0
- data/docs/DistributionsApi.md +20 -5
- data/docs/DocumentsApi.md +8 -2
- data/docs/FormatsApi.md +4 -1
- data/docs/GitHubSyncApi.md +8 -2
- data/docs/GitLabSyncApi.md +28 -7
- data/docs/GlossariesApi.md +20 -5
- data/docs/GlossaryTermTranslationsApi.md +12 -3
- data/docs/GlossaryTermsApi.md +20 -5
- data/docs/ICUApi.md +73 -0
- data/docs/Icu.md +17 -0
- data/docs/IcuSkeletonParameters.md +21 -0
- data/docs/InvitationCreateParameters.md +2 -0
- data/docs/InvitationUpdateParameters.md +2 -0
- data/docs/InvitationsApi.md +28 -7
- data/docs/JobLocaleCompleteReviewParameters.md +17 -0
- data/docs/JobLocaleUpdateParameters.md +3 -1
- data/docs/JobLocalesApi.md +99 -7
- data/docs/JobLocalesCreateParameters.md +4 -2
- data/docs/JobTemplateLocalesApi.md +20 -5
- data/docs/JobTemplatesApi.md +20 -5
- data/docs/JobsApi.md +44 -11
- data/docs/KeysApi.md +44 -11
- data/docs/LocalesApi.md +35 -10
- data/docs/Member.md +6 -0
- data/docs/MembersApi.md +20 -5
- data/docs/NotificationGroupsApi.md +12 -3
- data/docs/NotificationsApi.md +12 -3
- data/docs/OrdersApi.md +20 -5
- data/docs/Project.md +2 -0
- data/docs/ProjectDetails.md +2 -0
- data/docs/ProjectsApi.md +20 -5
- data/docs/ReleaseCreateParameters.md +2 -0
- data/docs/ReleasesApi.md +24 -6
- data/docs/ScreenshotMarkersApi.md +20 -5
- data/docs/ScreenshotsApi.md +20 -5
- data/docs/SearchApi.md +4 -1
- data/docs/SpacesApi.md +32 -8
- data/docs/StyleGuidesApi.md +20 -5
- data/docs/TagsApi.md +16 -4
- data/docs/Team1.md +23 -0
- data/docs/TeamsApi.md +44 -11
- data/docs/TranslationsApi.md +68 -17
- data/docs/TranslationsVerifyParameters.md +3 -5
- data/docs/UploadsApi.md +12 -3
- data/docs/UserPreview.md +3 -1
- data/docs/UsersApi.md +4 -1
- data/docs/VariablesApi.md +20 -5
- data/docs/VersionsHistoryApi.md +8 -2
- data/docs/WebhooksApi.md +24 -6
- data/lib/phrase/api/accounts_api.rb +2 -2
- data/lib/phrase/api/authorizations_api.rb +5 -5
- data/lib/phrase/api/bitbucket_sync_api.rb +3 -3
- data/lib/phrase/api/blacklisted_keys_api.rb +5 -5
- data/lib/phrase/api/branches_api.rb +7 -7
- data/lib/phrase/api/comments_api.rb +8 -8
- data/lib/phrase/api/distributions_api.rb +5 -5
- data/lib/phrase/api/documents_api.rb +2 -2
- data/lib/phrase/api/formats_api.rb +1 -1
- data/lib/phrase/api/git_hub_sync_api.rb +2 -2
- data/lib/phrase/api/git_lab_sync_api.rb +7 -7
- data/lib/phrase/api/glossaries_api.rb +5 -5
- data/lib/phrase/api/glossary_term_translations_api.rb +3 -3
- data/lib/phrase/api/glossary_terms_api.rb +5 -5
- data/lib/phrase/api/icu_api.rb +78 -0
- data/lib/phrase/api/invitations_api.rb +7 -7
- data/lib/phrase/api/job_locales_api.rb +93 -7
- data/lib/phrase/api/job_template_locales_api.rb +5 -5
- data/lib/phrase/api/job_templates_api.rb +5 -5
- data/lib/phrase/api/jobs_api.rb +11 -11
- data/lib/phrase/api/keys_api.rb +11 -11
- data/lib/phrase/api/locales_api.rb +20 -11
- data/lib/phrase/api/members_api.rb +5 -5
- data/lib/phrase/api/notification_groups_api.rb +3 -3
- data/lib/phrase/api/notifications_api.rb +3 -3
- data/lib/phrase/api/orders_api.rb +5 -5
- data/lib/phrase/api/projects_api.rb +5 -5
- data/lib/phrase/api/releases_api.rb +6 -6
- data/lib/phrase/api/screenshot_markers_api.rb +5 -5
- data/lib/phrase/api/screenshots_api.rb +5 -5
- data/lib/phrase/api/search_api.rb +1 -1
- data/lib/phrase/api/spaces_api.rb +8 -8
- data/lib/phrase/api/style_guides_api.rb +5 -5
- data/lib/phrase/api/tags_api.rb +4 -4
- data/lib/phrase/api/teams_api.rb +11 -11
- data/lib/phrase/api/translations_api.rb +17 -17
- data/lib/phrase/api/uploads_api.rb +3 -3
- data/lib/phrase/api/users_api.rb +1 -1
- data/lib/phrase/api/variables_api.rb +5 -5
- data/lib/phrase/api/versions_history_api.rb +2 -2
- data/lib/phrase/api/webhooks_api.rb +6 -6
- data/lib/phrase/configuration.rb +8 -0
- data/lib/phrase/models/distribution.rb +12 -1
- data/lib/phrase/models/distribution_create_parameters.rb +13 -1
- data/lib/phrase/models/distribution_update_parameters.rb +13 -1
- data/lib/phrase/models/icu.rb +195 -0
- data/lib/phrase/models/icu_skeleton_parameters.rb +217 -0
- data/lib/phrase/models/invitation_create_parameters.rb +13 -1
- data/lib/phrase/models/invitation_update_parameters.rb +13 -1
- data/lib/phrase/models/job_locale_complete_review_parameters.rb +195 -0
- data/lib/phrase/models/job_locale_update_parameters.rb +16 -4
- data/lib/phrase/models/job_locales_create_parameters.rb +17 -5
- data/lib/phrase/models/member.rb +30 -1
- data/lib/phrase/models/project.rb +10 -1
- data/lib/phrase/models/project_details.rb +10 -1
- data/lib/phrase/models/release_create_parameters.rb +13 -1
- data/lib/phrase/models/team1.rb +221 -0
- data/lib/phrase/models/translations_verify_parameters.rb +14 -24
- data/lib/phrase/models/user_preview.rb +13 -4
- data/lib/phrase/response.rb +1 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +5 -0
- data/phrase.gemspec +2 -2
- data/spec/api/icu_api_spec.rb +36 -0
- data/spec/api/job_locales_api_spec.rb +16 -0
- data/spec/api/locales_api_spec.rb +2 -0
- data/spec/models/distribution_create_parameters_spec.rb +6 -0
- data/spec/models/distribution_spec.rb +6 -0
- data/spec/models/distribution_update_parameters_spec.rb +6 -0
- data/spec/models/icu_skeleton_parameters_spec.rb +41 -0
- data/spec/models/icu_spec.rb +29 -0
- data/spec/models/invitation_create_parameters_spec.rb +6 -0
- data/spec/models/invitation_update_parameters_spec.rb +6 -0
- data/spec/models/job_locale_complete_review_parameters_spec.rb +29 -0
- data/spec/models/job_locale_update_parameters_spec.rb +6 -0
- data/spec/models/job_locales_create_parameters_spec.rb +6 -0
- data/spec/models/member_spec.rb +18 -0
- data/spec/models/project_details_spec.rb +6 -0
- data/spec/models/project_spec.rb +6 -0
- data/spec/models/release_create_parameters_spec.rb +6 -0
- data/spec/models/team1_spec.rb +47 -0
- data/spec/models/translations_verify_parameters_spec.rb +2 -8
- data/spec/models/user_preview_spec.rb +6 -0
- metadata +214 -194
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**name** | **String** | Name of the distribution | [optional]
|
8
8
|
**project_id** | **String** | Project id the distribution should be assigned to. | [optional]
|
9
9
|
**platforms** | **Array<String>** | List of platforms the distribution should support. | [optional]
|
10
|
+
**locale_ids** | **Array<String>** | List of locale ids that will be part of distribution releases | [optional]
|
10
11
|
**format_options** | **Hash<String, String>** | Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>. | [optional]
|
11
12
|
**fallback_to_non_regional_locale** | **Boolean** | Indicates whether to fallback to non regional locale when locale can not be found | [optional]
|
12
13
|
**fallback_to_default_locale** | **Boolean** | Indicates whether to fallback to projects default locale when locale can not be found | [optional]
|
@@ -20,6 +21,7 @@ require 'Phrase'
|
|
20
21
|
instance = Phrase::DistributionCreateParameters.new(name: My Android Distribution,
|
21
22
|
project_id: abcd1234abcd1234abcd1234,
|
22
23
|
platforms: ["android","ios"],
|
24
|
+
locale_ids: ["abcd1234cdef1234abcd1234cdef1234","fff565db236400772368235db2c6117e"],
|
23
25
|
format_options: {xml:{enclose_in_cdata:'1'}},
|
24
26
|
fallback_to_non_regional_locale: true,
|
25
27
|
fallback_to_default_locale: true,
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**name** | **String** | Name of the distribution | [optional]
|
8
8
|
**project_id** | **String** | Project id the distribution should be assigned to. | [optional]
|
9
9
|
**platforms** | **Array<String>** | List of platforms the distribution should support. | [optional]
|
10
|
+
**locale_ids** | **Array<String>** | List of locale ids that will be part of distribution releases | [optional]
|
10
11
|
**format_options** | **Hash<String, String>** | Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>. | [optional]
|
11
12
|
**fallback_to_non_regional_locale** | **Boolean** | Indicates whether to fallback to non regional locale when locale can not be found | [optional]
|
12
13
|
**fallback_to_default_locale** | **Boolean** | Indicates whether to fallback to projects default locale when locale can not be found | [optional]
|
@@ -20,6 +21,7 @@ require 'Phrase'
|
|
20
21
|
instance = Phrase::DistributionUpdateParameters.new(name: My Android Distribution,
|
21
22
|
project_id: abcd1234abcd1234abcd1234,
|
22
23
|
platforms: ["android","ios"],
|
24
|
+
locale_ids: ["abcd1234cdef1234abcd1234cdef1234","fff565db236400772368235db2c6117e"],
|
23
25
|
format_options: {xml:{enclose_in_cdata:'1'}},
|
24
26
|
fallback_to_non_regional_locale: true,
|
25
27
|
fallback_to_default_locale: true,
|
data/docs/DistributionsApi.md
CHANGED
@@ -34,6 +34,9 @@ Phrase.configure do |config|
|
|
34
34
|
# Configure API key authorization: Token
|
35
35
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
36
36
|
config.api_key_prefix['Authorization'] = 'token'
|
37
|
+
|
38
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
39
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
37
40
|
end
|
38
41
|
|
39
42
|
api_instance = Phrase::DistributionsApi.new
|
@@ -67,7 +70,7 @@ Response<([**Distribution**](Distribution.md))>
|
|
67
70
|
|
68
71
|
### Authorization
|
69
72
|
|
70
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
73
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
71
74
|
|
72
75
|
### HTTP request headers
|
73
76
|
|
@@ -97,6 +100,9 @@ Phrase.configure do |config|
|
|
97
100
|
# Configure API key authorization: Token
|
98
101
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
99
102
|
config.api_key_prefix['Authorization'] = 'token'
|
103
|
+
|
104
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
105
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
100
106
|
end
|
101
107
|
|
102
108
|
api_instance = Phrase::DistributionsApi.new
|
@@ -129,7 +135,7 @@ Response<(nil (empty response body))>
|
|
129
135
|
|
130
136
|
### Authorization
|
131
137
|
|
132
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
138
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
133
139
|
|
134
140
|
### HTTP request headers
|
135
141
|
|
@@ -159,6 +165,9 @@ Phrase.configure do |config|
|
|
159
165
|
# Configure API key authorization: Token
|
160
166
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
161
167
|
config.api_key_prefix['Authorization'] = 'token'
|
168
|
+
|
169
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
170
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
162
171
|
end
|
163
172
|
|
164
173
|
api_instance = Phrase::DistributionsApi.new
|
@@ -192,7 +201,7 @@ Response<([**Distribution**](Distribution.md))>
|
|
192
201
|
|
193
202
|
### Authorization
|
194
203
|
|
195
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
204
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
196
205
|
|
197
206
|
### HTTP request headers
|
198
207
|
|
@@ -222,6 +231,9 @@ Phrase.configure do |config|
|
|
222
231
|
# Configure API key authorization: Token
|
223
232
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
224
233
|
config.api_key_prefix['Authorization'] = 'token'
|
234
|
+
|
235
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
236
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
225
237
|
end
|
226
238
|
|
227
239
|
api_instance = Phrase::DistributionsApi.new
|
@@ -257,7 +269,7 @@ Response<([**Distribution**](Distribution.md))>
|
|
257
269
|
|
258
270
|
### Authorization
|
259
271
|
|
260
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
272
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
261
273
|
|
262
274
|
### HTTP request headers
|
263
275
|
|
@@ -287,6 +299,9 @@ Phrase.configure do |config|
|
|
287
299
|
# Configure API key authorization: Token
|
288
300
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
289
301
|
config.api_key_prefix['Authorization'] = 'token'
|
302
|
+
|
303
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
304
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
290
305
|
end
|
291
306
|
|
292
307
|
api_instance = Phrase::DistributionsApi.new
|
@@ -322,7 +337,7 @@ Response<([**Array<DistributionPreview>**](DistributionPreview.md))>
|
|
322
337
|
|
323
338
|
### Authorization
|
324
339
|
|
325
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
340
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
326
341
|
|
327
342
|
### HTTP request headers
|
328
343
|
|
data/docs/DocumentsApi.md
CHANGED
@@ -31,6 +31,9 @@ Phrase.configure do |config|
|
|
31
31
|
# Configure API key authorization: Token
|
32
32
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
33
33
|
config.api_key_prefix['Authorization'] = 'token'
|
34
|
+
|
35
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
36
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
34
37
|
end
|
35
38
|
|
36
39
|
api_instance = Phrase::DocumentsApi.new
|
@@ -63,7 +66,7 @@ Response<(nil (empty response body))>
|
|
63
66
|
|
64
67
|
### Authorization
|
65
68
|
|
66
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
69
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
67
70
|
|
68
71
|
### HTTP request headers
|
69
72
|
|
@@ -93,6 +96,9 @@ Phrase.configure do |config|
|
|
93
96
|
# Configure API key authorization: Token
|
94
97
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
95
98
|
config.api_key_prefix['Authorization'] = 'token'
|
99
|
+
|
100
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
101
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
96
102
|
end
|
97
103
|
|
98
104
|
api_instance = Phrase::DocumentsApi.new
|
@@ -128,7 +134,7 @@ Response<([**Array<Document>**](Document.md))>
|
|
128
134
|
|
129
135
|
### Authorization
|
130
136
|
|
131
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
137
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
132
138
|
|
133
139
|
### HTTP request headers
|
134
140
|
|
data/docs/FormatsApi.md
CHANGED
@@ -30,6 +30,9 @@ Phrase.configure do |config|
|
|
30
30
|
# Configure API key authorization: Token
|
31
31
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
32
32
|
config.api_key_prefix['Authorization'] = 'token'
|
33
|
+
|
34
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
35
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
33
36
|
end
|
34
37
|
|
35
38
|
api_instance = Phrase::FormatsApi.new
|
@@ -59,7 +62,7 @@ Response<([**Array<Format>**](Format.md))>
|
|
59
62
|
|
60
63
|
### Authorization
|
61
64
|
|
62
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
65
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
63
66
|
|
64
67
|
### HTTP request headers
|
65
68
|
|
data/docs/GitHubSyncApi.md
CHANGED
@@ -31,6 +31,9 @@ Phrase.configure do |config|
|
|
31
31
|
# Configure API key authorization: Token
|
32
32
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
33
33
|
config.api_key_prefix['Authorization'] = 'token'
|
34
|
+
|
35
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
36
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
34
37
|
end
|
35
38
|
|
36
39
|
api_instance = Phrase::GitHubSyncApi.new
|
@@ -61,7 +64,7 @@ Response<(nil (empty response body))>
|
|
61
64
|
|
62
65
|
### Authorization
|
63
66
|
|
64
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
67
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
65
68
|
|
66
69
|
### HTTP request headers
|
67
70
|
|
@@ -91,6 +94,9 @@ Phrase.configure do |config|
|
|
91
94
|
# Configure API key authorization: Token
|
92
95
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
93
96
|
config.api_key_prefix['Authorization'] = 'token'
|
97
|
+
|
98
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
99
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
94
100
|
end
|
95
101
|
|
96
102
|
api_instance = Phrase::GitHubSyncApi.new
|
@@ -121,7 +127,7 @@ Response<(nil (empty response body))>
|
|
121
127
|
|
122
128
|
### Authorization
|
123
129
|
|
124
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
130
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
125
131
|
|
126
132
|
### HTTP request headers
|
127
133
|
|
data/docs/GitLabSyncApi.md
CHANGED
@@ -36,6 +36,9 @@ Phrase.configure do |config|
|
|
36
36
|
# Configure API key authorization: Token
|
37
37
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
38
38
|
config.api_key_prefix['Authorization'] = 'token'
|
39
|
+
|
40
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
41
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
39
42
|
end
|
40
43
|
|
41
44
|
api_instance = Phrase::GitLabSyncApi.new
|
@@ -68,7 +71,7 @@ Response<(nil (empty response body))>
|
|
68
71
|
|
69
72
|
### Authorization
|
70
73
|
|
71
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
74
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
72
75
|
|
73
76
|
### HTTP request headers
|
74
77
|
|
@@ -98,6 +101,9 @@ Phrase.configure do |config|
|
|
98
101
|
# Configure API key authorization: Token
|
99
102
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
100
103
|
config.api_key_prefix['Authorization'] = 'token'
|
104
|
+
|
105
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
106
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
101
107
|
end
|
102
108
|
|
103
109
|
api_instance = Phrase::GitLabSyncApi.new
|
@@ -131,7 +137,7 @@ Response<([**GitlabSyncExport**](GitlabSyncExport.md))>
|
|
131
137
|
|
132
138
|
### Authorization
|
133
139
|
|
134
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
140
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
135
141
|
|
136
142
|
### HTTP request headers
|
137
143
|
|
@@ -161,6 +167,9 @@ Phrase.configure do |config|
|
|
161
167
|
# Configure API key authorization: Token
|
162
168
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
163
169
|
config.api_key_prefix['Authorization'] = 'token'
|
170
|
+
|
171
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
172
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
164
173
|
end
|
165
174
|
|
166
175
|
api_instance = Phrase::GitLabSyncApi.new
|
@@ -198,7 +207,7 @@ Response<([**Array<GitlabSyncHistory>**](GitlabSyncHistory.md))>
|
|
198
207
|
|
199
208
|
### Authorization
|
200
209
|
|
201
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
210
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
202
211
|
|
203
212
|
### HTTP request headers
|
204
213
|
|
@@ -228,6 +237,9 @@ Phrase.configure do |config|
|
|
228
237
|
# Configure API key authorization: Token
|
229
238
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
230
239
|
config.api_key_prefix['Authorization'] = 'token'
|
240
|
+
|
241
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
242
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
231
243
|
end
|
232
244
|
|
233
245
|
api_instance = Phrase::GitLabSyncApi.new
|
@@ -261,7 +273,7 @@ Response<([**Array<Upload>**](Upload.md))>
|
|
261
273
|
|
262
274
|
### Authorization
|
263
275
|
|
264
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
276
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
265
277
|
|
266
278
|
### HTTP request headers
|
267
279
|
|
@@ -291,6 +303,9 @@ Phrase.configure do |config|
|
|
291
303
|
# Configure API key authorization: Token
|
292
304
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
293
305
|
config.api_key_prefix['Authorization'] = 'token'
|
306
|
+
|
307
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
308
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
294
309
|
end
|
295
310
|
|
296
311
|
api_instance = Phrase::GitLabSyncApi.new
|
@@ -322,7 +337,7 @@ Response<([**Array<GitlabSync>**](GitlabSync.md))>
|
|
322
337
|
|
323
338
|
### Authorization
|
324
339
|
|
325
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
340
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
326
341
|
|
327
342
|
### HTTP request headers
|
328
343
|
|
@@ -352,6 +367,9 @@ Phrase.configure do |config|
|
|
352
367
|
# Configure API key authorization: Token
|
353
368
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
354
369
|
config.api_key_prefix['Authorization'] = 'token'
|
370
|
+
|
371
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
372
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
355
373
|
end
|
356
374
|
|
357
375
|
api_instance = Phrase::GitLabSyncApi.new
|
@@ -385,7 +403,7 @@ Response<([**GitlabSync**](GitlabSync.md))>
|
|
385
403
|
|
386
404
|
### Authorization
|
387
405
|
|
388
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
406
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
389
407
|
|
390
408
|
### HTTP request headers
|
391
409
|
|
@@ -415,6 +433,9 @@ Phrase.configure do |config|
|
|
415
433
|
# Configure API key authorization: Token
|
416
434
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
417
435
|
config.api_key_prefix['Authorization'] = 'token'
|
436
|
+
|
437
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
438
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
418
439
|
end
|
419
440
|
|
420
441
|
api_instance = Phrase::GitLabSyncApi.new
|
@@ -454,7 +475,7 @@ Response<([**GitlabSync**](GitlabSync.md))>
|
|
454
475
|
|
455
476
|
### Authorization
|
456
477
|
|
457
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
478
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
458
479
|
|
459
480
|
### HTTP request headers
|
460
481
|
|
data/docs/GlossariesApi.md
CHANGED
@@ -34,6 +34,9 @@ Phrase.configure do |config|
|
|
34
34
|
# Configure API key authorization: Token
|
35
35
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
36
36
|
config.api_key_prefix['Authorization'] = 'token'
|
37
|
+
|
38
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
39
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
37
40
|
end
|
38
41
|
|
39
42
|
api_instance = Phrase::GlossariesApi.new
|
@@ -69,7 +72,7 @@ Response<([**Array<Glossary>**](Glossary.md))>
|
|
69
72
|
|
70
73
|
### Authorization
|
71
74
|
|
72
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
75
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
73
76
|
|
74
77
|
### HTTP request headers
|
75
78
|
|
@@ -99,6 +102,9 @@ Phrase.configure do |config|
|
|
99
102
|
# Configure API key authorization: Token
|
100
103
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
101
104
|
config.api_key_prefix['Authorization'] = 'token'
|
105
|
+
|
106
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
107
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
102
108
|
end
|
103
109
|
|
104
110
|
api_instance = Phrase::GlossariesApi.new
|
@@ -132,7 +138,7 @@ Response<([**Glossary**](Glossary.md))>
|
|
132
138
|
|
133
139
|
### Authorization
|
134
140
|
|
135
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
141
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
136
142
|
|
137
143
|
### HTTP request headers
|
138
144
|
|
@@ -162,6 +168,9 @@ Phrase.configure do |config|
|
|
162
168
|
# Configure API key authorization: Token
|
163
169
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
164
170
|
config.api_key_prefix['Authorization'] = 'token'
|
171
|
+
|
172
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
173
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
165
174
|
end
|
166
175
|
|
167
176
|
api_instance = Phrase::GlossariesApi.new
|
@@ -194,7 +203,7 @@ Response<(nil (empty response body))>
|
|
194
203
|
|
195
204
|
### Authorization
|
196
205
|
|
197
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
206
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
198
207
|
|
199
208
|
### HTTP request headers
|
200
209
|
|
@@ -224,6 +233,9 @@ Phrase.configure do |config|
|
|
224
233
|
# Configure API key authorization: Token
|
225
234
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
226
235
|
config.api_key_prefix['Authorization'] = 'token'
|
236
|
+
|
237
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
238
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
227
239
|
end
|
228
240
|
|
229
241
|
api_instance = Phrase::GlossariesApi.new
|
@@ -257,7 +269,7 @@ Response<([**Glossary**](Glossary.md))>
|
|
257
269
|
|
258
270
|
### Authorization
|
259
271
|
|
260
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
272
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
261
273
|
|
262
274
|
### HTTP request headers
|
263
275
|
|
@@ -287,6 +299,9 @@ Phrase.configure do |config|
|
|
287
299
|
# Configure API key authorization: Token
|
288
300
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
289
301
|
config.api_key_prefix['Authorization'] = 'token'
|
302
|
+
|
303
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
304
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
290
305
|
end
|
291
306
|
|
292
307
|
api_instance = Phrase::GlossariesApi.new
|
@@ -322,7 +337,7 @@ Response<([**Glossary**](Glossary.md))>
|
|
322
337
|
|
323
338
|
### Authorization
|
324
339
|
|
325
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
340
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
326
341
|
|
327
342
|
### HTTP request headers
|
328
343
|
|
@@ -32,6 +32,9 @@ Phrase.configure do |config|
|
|
32
32
|
# Configure API key authorization: Token
|
33
33
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
34
34
|
config.api_key_prefix['Authorization'] = 'token'
|
35
|
+
|
36
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
37
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
35
38
|
end
|
36
39
|
|
37
40
|
api_instance = Phrase::GlossaryTermTranslationsApi.new
|
@@ -69,7 +72,7 @@ Response<([**GlossaryTermTranslation**](GlossaryTermTranslation.md))>
|
|
69
72
|
|
70
73
|
### Authorization
|
71
74
|
|
72
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
75
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
73
76
|
|
74
77
|
### HTTP request headers
|
75
78
|
|
@@ -99,6 +102,9 @@ Phrase.configure do |config|
|
|
99
102
|
# Configure API key authorization: Token
|
100
103
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
101
104
|
config.api_key_prefix['Authorization'] = 'token'
|
105
|
+
|
106
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
107
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
102
108
|
end
|
103
109
|
|
104
110
|
api_instance = Phrase::GlossaryTermTranslationsApi.new
|
@@ -135,7 +141,7 @@ Response<(nil (empty response body))>
|
|
135
141
|
|
136
142
|
### Authorization
|
137
143
|
|
138
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
144
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
139
145
|
|
140
146
|
### HTTP request headers
|
141
147
|
|
@@ -165,6 +171,9 @@ Phrase.configure do |config|
|
|
165
171
|
# Configure API key authorization: Token
|
166
172
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
167
173
|
config.api_key_prefix['Authorization'] = 'token'
|
174
|
+
|
175
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
176
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
168
177
|
end
|
169
178
|
|
170
179
|
api_instance = Phrase::GlossaryTermTranslationsApi.new
|
@@ -204,7 +213,7 @@ Response<([**GlossaryTermTranslation**](GlossaryTermTranslation.md))>
|
|
204
213
|
|
205
214
|
### Authorization
|
206
215
|
|
207
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
216
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
208
217
|
|
209
218
|
### HTTP request headers
|
210
219
|
|
data/docs/GlossaryTermsApi.md
CHANGED
@@ -34,6 +34,9 @@ Phrase.configure do |config|
|
|
34
34
|
# Configure API key authorization: Token
|
35
35
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
36
36
|
config.api_key_prefix['Authorization'] = 'token'
|
37
|
+
|
38
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
39
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
37
40
|
end
|
38
41
|
|
39
42
|
api_instance = Phrase::GlossaryTermsApi.new
|
@@ -69,7 +72,7 @@ Response<([**GlossaryTerm**](GlossaryTerm.md))>
|
|
69
72
|
|
70
73
|
### Authorization
|
71
74
|
|
72
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
75
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
73
76
|
|
74
77
|
### HTTP request headers
|
75
78
|
|
@@ -99,6 +102,9 @@ Phrase.configure do |config|
|
|
99
102
|
# Configure API key authorization: Token
|
100
103
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
101
104
|
config.api_key_prefix['Authorization'] = 'token'
|
105
|
+
|
106
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
107
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
102
108
|
end
|
103
109
|
|
104
110
|
api_instance = Phrase::GlossaryTermsApi.new
|
@@ -133,7 +139,7 @@ Response<(nil (empty response body))>
|
|
133
139
|
|
134
140
|
### Authorization
|
135
141
|
|
136
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
142
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
137
143
|
|
138
144
|
### HTTP request headers
|
139
145
|
|
@@ -163,6 +169,9 @@ Phrase.configure do |config|
|
|
163
169
|
# Configure API key authorization: Token
|
164
170
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
165
171
|
config.api_key_prefix['Authorization'] = 'token'
|
172
|
+
|
173
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
174
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
166
175
|
end
|
167
176
|
|
168
177
|
api_instance = Phrase::GlossaryTermsApi.new
|
@@ -198,7 +207,7 @@ Response<([**GlossaryTerm**](GlossaryTerm.md))>
|
|
198
207
|
|
199
208
|
### Authorization
|
200
209
|
|
201
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
210
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
202
211
|
|
203
212
|
### HTTP request headers
|
204
213
|
|
@@ -228,6 +237,9 @@ Phrase.configure do |config|
|
|
228
237
|
# Configure API key authorization: Token
|
229
238
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
230
239
|
config.api_key_prefix['Authorization'] = 'token'
|
240
|
+
|
241
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
242
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
231
243
|
end
|
232
244
|
|
233
245
|
api_instance = Phrase::GlossaryTermsApi.new
|
@@ -265,7 +277,7 @@ Response<([**GlossaryTerm**](GlossaryTerm.md))>
|
|
265
277
|
|
266
278
|
### Authorization
|
267
279
|
|
268
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
280
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
269
281
|
|
270
282
|
### HTTP request headers
|
271
283
|
|
@@ -295,6 +307,9 @@ Phrase.configure do |config|
|
|
295
307
|
# Configure API key authorization: Token
|
296
308
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
297
309
|
config.api_key_prefix['Authorization'] = 'token'
|
310
|
+
|
311
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
312
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
298
313
|
end
|
299
314
|
|
300
315
|
api_instance = Phrase::GlossaryTermsApi.new
|
@@ -332,7 +347,7 @@ Response<([**Array<GlossaryTerm>**](GlossaryTerm.md))>
|
|
332
347
|
|
333
348
|
### Authorization
|
334
349
|
|
335
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
350
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
336
351
|
|
337
352
|
### HTTP request headers
|
338
353
|
|
data/docs/ICUApi.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# Phrase::ICUApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.phrase.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**icu_skeleton**](ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build icu skeletons
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## icu_skeleton
|
12
|
+
|
13
|
+
> Icu icu_skeleton(icu_skeleton_parameters, opts)
|
14
|
+
|
15
|
+
Build icu skeletons
|
16
|
+
|
17
|
+
Returns icu skeletons for multiple locale codes based on a source content.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'phrase'
|
24
|
+
# setup authorization
|
25
|
+
Phrase.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: Basic
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
|
30
|
+
# Configure API key authorization: Token
|
31
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
32
|
+
config.api_key_prefix['Authorization'] = 'token'
|
33
|
+
|
34
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
35
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
36
|
+
end
|
37
|
+
|
38
|
+
api_instance = Phrase::ICUApi.new
|
39
|
+
icu_skeleton_parameters = Phrase::IcuSkeletonParameters.new # IcuSkeletonParameters |
|
40
|
+
opts = {
|
41
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
42
|
+
}
|
43
|
+
|
44
|
+
begin
|
45
|
+
#Build icu skeletons
|
46
|
+
result = api_instance.icu_skeleton(icu_skeleton_parameters, opts)
|
47
|
+
pp result
|
48
|
+
rescue Phrase::ApiError => e
|
49
|
+
puts "Exception when calling ICUApi->icu_skeleton: #{e}"
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
### Parameters
|
54
|
+
|
55
|
+
|
56
|
+
Name | Type | Description | Notes
|
57
|
+
------------- | ------------- | ------------- | -------------
|
58
|
+
**icu_skeleton_parameters** | [**IcuSkeletonParameters**](IcuSkeletonParameters.md)| |
|
59
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
60
|
+
|
61
|
+
### Return type
|
62
|
+
|
63
|
+
Response<([**Icu**](Icu.md))>
|
64
|
+
|
65
|
+
### Authorization
|
66
|
+
|
67
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
68
|
+
|
69
|
+
### HTTP request headers
|
70
|
+
|
71
|
+
- **Content-Type**: application/json
|
72
|
+
- **Accept**: application/json
|
73
|
+
|
data/docs/Icu.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Phrase::Icu
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**locale_code** | **String** | Object keys are dynamic and based on requested locale codes, see example. | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Phrase'
|
13
|
+
|
14
|
+
instance = Phrase::Icu.new(locale_code: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|