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
@@ -56,7 +56,7 @@ module Phrase
|
|
56
56
|
return_type = opts[:return_type] || 'AuthorizationWithToken'
|
57
57
|
|
58
58
|
# auth_names
|
59
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
59
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
60
60
|
|
61
61
|
new_options = opts.merge(
|
62
62
|
:header_params => header_params,
|
@@ -120,7 +120,7 @@ module Phrase
|
|
120
120
|
return_type = opts[:return_type]
|
121
121
|
|
122
122
|
# auth_names
|
123
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
123
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
124
124
|
|
125
125
|
new_options = opts.merge(
|
126
126
|
:header_params => header_params,
|
@@ -186,7 +186,7 @@ module Phrase
|
|
186
186
|
return_type = opts[:return_type] || 'Authorization'
|
187
187
|
|
188
188
|
# auth_names
|
189
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
189
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
190
190
|
|
191
191
|
new_options = opts.merge(
|
192
192
|
:header_params => header_params,
|
@@ -260,7 +260,7 @@ module Phrase
|
|
260
260
|
return_type = opts[:return_type] || 'Authorization'
|
261
261
|
|
262
262
|
# auth_names
|
263
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
263
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
264
264
|
|
265
265
|
new_options = opts.merge(
|
266
266
|
:header_params => header_params,
|
@@ -326,7 +326,7 @@ module Phrase
|
|
326
326
|
return_type = opts[:return_type] || 'Array<Authorization>'
|
327
327
|
|
328
328
|
# auth_names
|
329
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
329
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
330
330
|
|
331
331
|
new_options = opts.merge(
|
332
332
|
:header_params => header_params,
|
@@ -62,7 +62,7 @@ module Phrase
|
|
62
62
|
return_type = opts[:return_type] || 'BitbucketSyncExportResponse'
|
63
63
|
|
64
64
|
# auth_names
|
65
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
65
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
66
66
|
|
67
67
|
new_options = opts.merge(
|
68
68
|
:header_params => header_params,
|
@@ -134,7 +134,7 @@ module Phrase
|
|
134
134
|
return_type = opts[:return_type]
|
135
135
|
|
136
136
|
# auth_names
|
137
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
137
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
138
138
|
|
139
139
|
new_options = opts.merge(
|
140
140
|
:header_params => header_params,
|
@@ -197,7 +197,7 @@ module Phrase
|
|
197
197
|
return_type = opts[:return_type] || 'Array<BitbucketSync>'
|
198
198
|
|
199
199
|
# auth_names
|
200
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
200
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
201
201
|
|
202
202
|
new_options = opts.merge(
|
203
203
|
:header_params => header_params,
|
@@ -62,7 +62,7 @@ module Phrase
|
|
62
62
|
return_type = opts[:return_type] || 'BlacklistedKey'
|
63
63
|
|
64
64
|
# auth_names
|
65
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
65
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
66
66
|
|
67
67
|
new_options = opts.merge(
|
68
68
|
:header_params => header_params,
|
@@ -132,7 +132,7 @@ module Phrase
|
|
132
132
|
return_type = opts[:return_type]
|
133
133
|
|
134
134
|
# auth_names
|
135
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
135
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
136
136
|
|
137
137
|
new_options = opts.merge(
|
138
138
|
:header_params => header_params,
|
@@ -204,7 +204,7 @@ module Phrase
|
|
204
204
|
return_type = opts[:return_type] || 'BlacklistedKey'
|
205
205
|
|
206
206
|
# auth_names
|
207
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
207
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
208
208
|
|
209
209
|
new_options = opts.merge(
|
210
210
|
:header_params => header_params,
|
@@ -284,7 +284,7 @@ module Phrase
|
|
284
284
|
return_type = opts[:return_type] || 'BlacklistedKey'
|
285
285
|
|
286
286
|
# auth_names
|
287
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
287
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
288
288
|
|
289
289
|
new_options = opts.merge(
|
290
290
|
:header_params => header_params,
|
@@ -359,7 +359,7 @@ module Phrase
|
|
359
359
|
return_type = opts[:return_type] || 'Array<BlacklistedKey>'
|
360
360
|
|
361
361
|
# auth_names
|
362
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
362
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
363
363
|
|
364
364
|
new_options = opts.merge(
|
365
365
|
:header_params => header_params,
|
@@ -58,7 +58,7 @@ module Phrase
|
|
58
58
|
return_type = opts[:return_type]
|
59
59
|
|
60
60
|
# auth_names
|
61
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
61
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
62
62
|
|
63
63
|
new_options = opts.merge(
|
64
64
|
:header_params => header_params,
|
@@ -132,7 +132,7 @@ module Phrase
|
|
132
132
|
return_type = opts[:return_type] || 'Branch'
|
133
133
|
|
134
134
|
# auth_names
|
135
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
135
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
136
136
|
|
137
137
|
new_options = opts.merge(
|
138
138
|
:header_params => header_params,
|
@@ -202,7 +202,7 @@ module Phrase
|
|
202
202
|
return_type = opts[:return_type]
|
203
203
|
|
204
204
|
# auth_names
|
205
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
205
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
206
206
|
|
207
207
|
new_options = opts.merge(
|
208
208
|
:header_params => header_params,
|
@@ -280,7 +280,7 @@ module Phrase
|
|
280
280
|
return_type = opts[:return_type]
|
281
281
|
|
282
282
|
# auth_names
|
283
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
283
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
284
284
|
|
285
285
|
new_options = opts.merge(
|
286
286
|
:header_params => header_params,
|
@@ -352,7 +352,7 @@ module Phrase
|
|
352
352
|
return_type = opts[:return_type] || 'Branch'
|
353
353
|
|
354
354
|
# auth_names
|
355
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
355
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
356
356
|
|
357
357
|
new_options = opts.merge(
|
358
358
|
:header_params => header_params,
|
@@ -432,7 +432,7 @@ module Phrase
|
|
432
432
|
return_type = opts[:return_type] || 'Branch'
|
433
433
|
|
434
434
|
# auth_names
|
435
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
435
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
436
436
|
|
437
437
|
new_options = opts.merge(
|
438
438
|
:header_params => header_params,
|
@@ -504,7 +504,7 @@ module Phrase
|
|
504
504
|
return_type = opts[:return_type] || 'Array<Branch>'
|
505
505
|
|
506
506
|
# auth_names
|
507
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
507
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
508
508
|
|
509
509
|
new_options = opts.merge(
|
510
510
|
:header_params => header_params,
|
@@ -68,7 +68,7 @@ module Phrase
|
|
68
68
|
return_type = opts[:return_type] || 'Comment'
|
69
69
|
|
70
70
|
# auth_names
|
71
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
71
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
72
72
|
|
73
73
|
new_options = opts.merge(
|
74
74
|
:header_params => header_params,
|
@@ -147,7 +147,7 @@ module Phrase
|
|
147
147
|
return_type = opts[:return_type]
|
148
148
|
|
149
149
|
# auth_names
|
150
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
150
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
151
151
|
|
152
152
|
new_options = opts.merge(
|
153
153
|
:header_params => header_params,
|
@@ -226,7 +226,7 @@ module Phrase
|
|
226
226
|
return_type = opts[:return_type]
|
227
227
|
|
228
228
|
# auth_names
|
229
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
229
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
230
230
|
|
231
231
|
new_options = opts.merge(
|
232
232
|
:header_params => header_params,
|
@@ -310,7 +310,7 @@ module Phrase
|
|
310
310
|
return_type = opts[:return_type]
|
311
311
|
|
312
312
|
# auth_names
|
313
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
313
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
314
314
|
|
315
315
|
new_options = opts.merge(
|
316
316
|
:header_params => header_params,
|
@@ -389,7 +389,7 @@ module Phrase
|
|
389
389
|
return_type = opts[:return_type]
|
390
390
|
|
391
391
|
# auth_names
|
392
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
392
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
393
393
|
|
394
394
|
new_options = opts.merge(
|
395
395
|
:header_params => header_params,
|
@@ -470,7 +470,7 @@ module Phrase
|
|
470
470
|
return_type = opts[:return_type] || 'Comment'
|
471
471
|
|
472
472
|
# auth_names
|
473
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
473
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
474
474
|
|
475
475
|
new_options = opts.merge(
|
476
476
|
:header_params => header_params,
|
@@ -556,7 +556,7 @@ module Phrase
|
|
556
556
|
return_type = opts[:return_type] || 'Comment'
|
557
557
|
|
558
558
|
# auth_names
|
559
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
559
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
560
560
|
|
561
561
|
new_options = opts.merge(
|
562
562
|
:header_params => header_params,
|
@@ -637,7 +637,7 @@ module Phrase
|
|
637
637
|
return_type = opts[:return_type] || 'Array<Comment>'
|
638
638
|
|
639
639
|
# auth_names
|
640
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
640
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
641
641
|
|
642
642
|
new_options = opts.merge(
|
643
643
|
:header_params => header_params,
|
@@ -62,7 +62,7 @@ module Phrase
|
|
62
62
|
return_type = opts[:return_type] || 'Distribution'
|
63
63
|
|
64
64
|
# auth_names
|
65
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
65
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
66
66
|
|
67
67
|
new_options = opts.merge(
|
68
68
|
:header_params => header_params,
|
@@ -132,7 +132,7 @@ module Phrase
|
|
132
132
|
return_type = opts[:return_type]
|
133
133
|
|
134
134
|
# auth_names
|
135
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
135
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
136
136
|
|
137
137
|
new_options = opts.merge(
|
138
138
|
:header_params => header_params,
|
@@ -204,7 +204,7 @@ module Phrase
|
|
204
204
|
return_type = opts[:return_type] || 'Distribution'
|
205
205
|
|
206
206
|
# auth_names
|
207
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
207
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
208
208
|
|
209
209
|
new_options = opts.merge(
|
210
210
|
:header_params => header_params,
|
@@ -284,7 +284,7 @@ module Phrase
|
|
284
284
|
return_type = opts[:return_type] || 'Distribution'
|
285
285
|
|
286
286
|
# auth_names
|
287
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
287
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
288
288
|
|
289
289
|
new_options = opts.merge(
|
290
290
|
:header_params => header_params,
|
@@ -356,7 +356,7 @@ module Phrase
|
|
356
356
|
return_type = opts[:return_type] || 'Array<DistributionPreview>'
|
357
357
|
|
358
358
|
# auth_names
|
359
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
359
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
360
360
|
|
361
361
|
new_options = opts.merge(
|
362
362
|
:header_params => header_params,
|
@@ -58,7 +58,7 @@ module Phrase
|
|
58
58
|
return_type = opts[:return_type]
|
59
59
|
|
60
60
|
# auth_names
|
61
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
61
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
62
62
|
|
63
63
|
new_options = opts.merge(
|
64
64
|
:header_params => header_params,
|
@@ -130,7 +130,7 @@ module Phrase
|
|
130
130
|
return_type = opts[:return_type] || 'Array<Document>'
|
131
131
|
|
132
132
|
# auth_names
|
133
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
133
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
134
134
|
|
135
135
|
new_options = opts.merge(
|
136
136
|
:header_params => header_params,
|
@@ -48,7 +48,7 @@ module Phrase
|
|
48
48
|
return_type = opts[:return_type] || 'Array<Format>'
|
49
49
|
|
50
50
|
# auth_names
|
51
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
51
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
52
52
|
|
53
53
|
new_options = opts.merge(
|
54
54
|
:header_params => header_params,
|
@@ -56,7 +56,7 @@ module Phrase
|
|
56
56
|
return_type = opts[:return_type]
|
57
57
|
|
58
58
|
# auth_names
|
59
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
59
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
60
60
|
|
61
61
|
new_options = opts.merge(
|
62
62
|
:header_params => header_params,
|
@@ -124,7 +124,7 @@ module Phrase
|
|
124
124
|
return_type = opts[:return_type]
|
125
125
|
|
126
126
|
# auth_names
|
127
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
127
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
128
128
|
|
129
129
|
new_options = opts.merge(
|
130
130
|
:header_params => header_params,
|
@@ -55,7 +55,7 @@ module Phrase
|
|
55
55
|
return_type = opts[:return_type]
|
56
56
|
|
57
57
|
# auth_names
|
58
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
58
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
59
59
|
|
60
60
|
new_options = opts.merge(
|
61
61
|
:header_params => header_params,
|
@@ -129,7 +129,7 @@ module Phrase
|
|
129
129
|
return_type = opts[:return_type] || 'GitlabSyncExport'
|
130
130
|
|
131
131
|
# auth_names
|
132
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
132
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
133
133
|
|
134
134
|
new_options = opts.merge(
|
135
135
|
:header_params => header_params,
|
@@ -204,7 +204,7 @@ module Phrase
|
|
204
204
|
return_type = opts[:return_type] || 'Array<GitlabSyncHistory>'
|
205
205
|
|
206
206
|
# auth_names
|
207
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
207
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
208
208
|
|
209
209
|
new_options = opts.merge(
|
210
210
|
:header_params => header_params,
|
@@ -278,7 +278,7 @@ module Phrase
|
|
278
278
|
return_type = opts[:return_type] || 'Array<Upload>'
|
279
279
|
|
280
280
|
# auth_names
|
281
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
281
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
282
282
|
|
283
283
|
new_options = opts.merge(
|
284
284
|
:header_params => header_params,
|
@@ -341,7 +341,7 @@ module Phrase
|
|
341
341
|
return_type = opts[:return_type] || 'Array<GitlabSync>'
|
342
342
|
|
343
343
|
# auth_names
|
344
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
344
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
345
345
|
|
346
346
|
new_options = opts.merge(
|
347
347
|
:header_params => header_params,
|
@@ -410,7 +410,7 @@ module Phrase
|
|
410
410
|
return_type = opts[:return_type] || 'GitlabSync'
|
411
411
|
|
412
412
|
# auth_names
|
413
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
413
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
414
414
|
|
415
415
|
new_options = opts.merge(
|
416
416
|
:header_params => header_params,
|
@@ -488,7 +488,7 @@ module Phrase
|
|
488
488
|
return_type = opts[:return_type] || 'GitlabSync'
|
489
489
|
|
490
490
|
# auth_names
|
491
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
491
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
492
492
|
|
493
493
|
new_options = opts.merge(
|
494
494
|
:header_params => header_params,
|
@@ -60,7 +60,7 @@ module Phrase
|
|
60
60
|
return_type = opts[:return_type] || 'Array<Glossary>'
|
61
61
|
|
62
62
|
# auth_names
|
63
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
63
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
64
64
|
|
65
65
|
new_options = opts.merge(
|
66
66
|
:header_params => header_params,
|
@@ -134,7 +134,7 @@ module Phrase
|
|
134
134
|
return_type = opts[:return_type] || 'Glossary'
|
135
135
|
|
136
136
|
# auth_names
|
137
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
137
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
138
138
|
|
139
139
|
new_options = opts.merge(
|
140
140
|
:header_params => header_params,
|
@@ -204,7 +204,7 @@ module Phrase
|
|
204
204
|
return_type = opts[:return_type]
|
205
205
|
|
206
206
|
# auth_names
|
207
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
207
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
208
208
|
|
209
209
|
new_options = opts.merge(
|
210
210
|
:header_params => header_params,
|
@@ -276,7 +276,7 @@ module Phrase
|
|
276
276
|
return_type = opts[:return_type] || 'Glossary'
|
277
277
|
|
278
278
|
# auth_names
|
279
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
279
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
280
280
|
|
281
281
|
new_options = opts.merge(
|
282
282
|
:header_params => header_params,
|
@@ -356,7 +356,7 @@ module Phrase
|
|
356
356
|
return_type = opts[:return_type] || 'Glossary'
|
357
357
|
|
358
358
|
# auth_names
|
359
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
359
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
360
360
|
|
361
361
|
new_options = opts.merge(
|
362
362
|
:header_params => header_params,
|
@@ -74,7 +74,7 @@ module Phrase
|
|
74
74
|
return_type = opts[:return_type] || 'GlossaryTermTranslation'
|
75
75
|
|
76
76
|
# auth_names
|
77
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
77
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
78
78
|
|
79
79
|
new_options = opts.merge(
|
80
80
|
:header_params => header_params,
|
@@ -156,7 +156,7 @@ module Phrase
|
|
156
156
|
return_type = opts[:return_type]
|
157
157
|
|
158
158
|
# auth_names
|
159
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
159
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
160
160
|
|
161
161
|
new_options = opts.merge(
|
162
162
|
:header_params => header_params,
|
@@ -248,7 +248,7 @@ module Phrase
|
|
248
248
|
return_type = opts[:return_type] || 'GlossaryTermTranslation'
|
249
249
|
|
250
250
|
# auth_names
|
251
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
251
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
252
252
|
|
253
253
|
new_options = opts.merge(
|
254
254
|
:header_params => header_params,
|
@@ -68,7 +68,7 @@ module Phrase
|
|
68
68
|
return_type = opts[:return_type] || 'GlossaryTerm'
|
69
69
|
|
70
70
|
# auth_names
|
71
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
71
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
72
72
|
|
73
73
|
new_options = opts.merge(
|
74
74
|
:header_params => header_params,
|
@@ -144,7 +144,7 @@ module Phrase
|
|
144
144
|
return_type = opts[:return_type]
|
145
145
|
|
146
146
|
# auth_names
|
147
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
147
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
148
148
|
|
149
149
|
new_options = opts.merge(
|
150
150
|
:header_params => header_params,
|
@@ -222,7 +222,7 @@ module Phrase
|
|
222
222
|
return_type = opts[:return_type] || 'GlossaryTerm'
|
223
223
|
|
224
224
|
# auth_names
|
225
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
225
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
226
226
|
|
227
227
|
new_options = opts.merge(
|
228
228
|
:header_params => header_params,
|
@@ -308,7 +308,7 @@ module Phrase
|
|
308
308
|
return_type = opts[:return_type] || 'GlossaryTerm'
|
309
309
|
|
310
310
|
# auth_names
|
311
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
311
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
312
312
|
|
313
313
|
new_options = opts.merge(
|
314
314
|
:header_params => header_params,
|
@@ -386,7 +386,7 @@ module Phrase
|
|
386
386
|
return_type = opts[:return_type] || 'Array<GlossaryTerm>'
|
387
387
|
|
388
388
|
# auth_names
|
389
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
389
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
390
390
|
|
391
391
|
new_options = opts.merge(
|
392
392
|
:header_params => header_params,
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require 'cgi'
|
2
|
+
|
3
|
+
module Phrase
|
4
|
+
class ICUApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = ApiClient.default)
|
8
|
+
@api_client = api_client
|
9
|
+
end
|
10
|
+
# Build icu skeletons
|
11
|
+
# Returns icu skeletons for multiple locale codes based on a source content.
|
12
|
+
# @param icu_skeleton_parameters [IcuSkeletonParameters]
|
13
|
+
# @param [Hash] opts the optional parameters
|
14
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
15
|
+
# @return [Icu]
|
16
|
+
def icu_skeleton(icu_skeleton_parameters, opts = {})
|
17
|
+
data, _status_code, _headers = icu_skeleton_with_http_info(icu_skeleton_parameters, opts)
|
18
|
+
data
|
19
|
+
end
|
20
|
+
|
21
|
+
# Build icu skeletons
|
22
|
+
# Returns icu skeletons for multiple locale codes based on a source content.
|
23
|
+
# @param icu_skeleton_parameters [IcuSkeletonParameters]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
26
|
+
# @return [Array<(Response<(Icu)>, Integer, Hash)>] Response<(Icu)> data, response status code and response headers
|
27
|
+
def icu_skeleton_with_http_info(icu_skeleton_parameters, opts = {})
|
28
|
+
if @api_client.config.debugging
|
29
|
+
@api_client.config.logger.debug 'Calling API: ICUApi.icu_skeleton ...'
|
30
|
+
end
|
31
|
+
# verify the required parameter 'icu_skeleton_parameters' is set
|
32
|
+
if @api_client.config.client_side_validation && icu_skeleton_parameters.nil?
|
33
|
+
fail ArgumentError, "Missing the required parameter 'icu_skeleton_parameters' when calling ICUApi.icu_skeleton"
|
34
|
+
end
|
35
|
+
# resource path
|
36
|
+
local_var_path = '/icu/skeleton'
|
37
|
+
|
38
|
+
# query parameters
|
39
|
+
query_params = opts[:query_params] || {}
|
40
|
+
|
41
|
+
# header parameters
|
42
|
+
header_params = opts[:header_params] || {}
|
43
|
+
# HTTP header 'Accept' (if needed)
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
45
|
+
# HTTP header 'Content-Type'
|
46
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
47
|
+
header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
|
48
|
+
|
49
|
+
# form parameters
|
50
|
+
form_params = opts[:form_params] || {}
|
51
|
+
|
52
|
+
# http body (model)
|
53
|
+
post_body = opts[:body] || @api_client.object_to_http_body(icu_skeleton_parameters)
|
54
|
+
|
55
|
+
# return_type
|
56
|
+
return_type = opts[:return_type] || 'Icu'
|
57
|
+
|
58
|
+
# auth_names
|
59
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
60
|
+
|
61
|
+
new_options = opts.merge(
|
62
|
+
:header_params => header_params,
|
63
|
+
:query_params => query_params,
|
64
|
+
:form_params => form_params,
|
65
|
+
:body => post_body,
|
66
|
+
:auth_names => auth_names,
|
67
|
+
:return_type => return_type
|
68
|
+
)
|
69
|
+
|
70
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
71
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: ICUApi#icu_skeleton\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
response = ::Phrase::Response.new(data, headers)
|
75
|
+
return response, status_code, headers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -62,7 +62,7 @@ module Phrase
|
|
62
62
|
return_type = opts[:return_type] || 'Invitation'
|
63
63
|
|
64
64
|
# auth_names
|
65
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
65
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
66
66
|
|
67
67
|
new_options = opts.merge(
|
68
68
|
:header_params => header_params,
|
@@ -132,7 +132,7 @@ module Phrase
|
|
132
132
|
return_type = opts[:return_type]
|
133
133
|
|
134
134
|
# auth_names
|
135
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
135
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
136
136
|
|
137
137
|
new_options = opts.merge(
|
138
138
|
:header_params => header_params,
|
@@ -204,7 +204,7 @@ module Phrase
|
|
204
204
|
return_type = opts[:return_type] || 'Invitation'
|
205
205
|
|
206
206
|
# auth_names
|
207
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
207
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
208
208
|
|
209
209
|
new_options = opts.merge(
|
210
210
|
:header_params => header_params,
|
@@ -276,7 +276,7 @@ module Phrase
|
|
276
276
|
return_type = opts[:return_type] || 'Invitation'
|
277
277
|
|
278
278
|
# auth_names
|
279
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
279
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
280
280
|
|
281
281
|
new_options = opts.merge(
|
282
282
|
:header_params => header_params,
|
@@ -356,7 +356,7 @@ module Phrase
|
|
356
356
|
return_type = opts[:return_type] || 'Invitation'
|
357
357
|
|
358
358
|
# auth_names
|
359
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
359
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
360
360
|
|
361
361
|
new_options = opts.merge(
|
362
362
|
:header_params => header_params,
|
@@ -436,7 +436,7 @@ module Phrase
|
|
436
436
|
return_type = opts[:return_type] || 'Invitation'
|
437
437
|
|
438
438
|
# auth_names
|
439
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
439
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
440
440
|
|
441
441
|
new_options = opts.merge(
|
442
442
|
:header_params => header_params,
|
@@ -508,7 +508,7 @@ module Phrase
|
|
508
508
|
return_type = opts[:return_type] || 'Array<Invitation>'
|
509
509
|
|
510
510
|
# auth_names
|
511
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
511
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
512
512
|
|
513
513
|
new_options = opts.merge(
|
514
514
|
:header_params => header_params,
|