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
@@ -74,7 +74,7 @@ module Phrase
|
|
74
74
|
return_type = opts[:return_type] || 'JobLocale'
|
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,
|
@@ -93,6 +93,92 @@ module Phrase
|
|
93
93
|
return response, status_code, headers
|
94
94
|
end
|
95
95
|
|
96
|
+
# Review a job locale
|
97
|
+
# Mark job locale as reviewed.
|
98
|
+
# @param project_id [String] Project ID
|
99
|
+
# @param job_id [String] Job ID
|
100
|
+
# @param id [String] ID
|
101
|
+
# @param job_locale_complete_review_parameters [JobLocaleCompleteReviewParameters]
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
104
|
+
# @return [JobLocale]
|
105
|
+
def job_locale_complete_review(project_id, job_id, id, job_locale_complete_review_parameters, opts = {})
|
106
|
+
data, _status_code, _headers = job_locale_complete_review_with_http_info(project_id, job_id, id, job_locale_complete_review_parameters, opts)
|
107
|
+
data
|
108
|
+
end
|
109
|
+
|
110
|
+
# Review a job locale
|
111
|
+
# Mark job locale as reviewed.
|
112
|
+
# @param project_id [String] Project ID
|
113
|
+
# @param job_id [String] Job ID
|
114
|
+
# @param id [String] ID
|
115
|
+
# @param job_locale_complete_review_parameters [JobLocaleCompleteReviewParameters]
|
116
|
+
# @param [Hash] opts the optional parameters
|
117
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
118
|
+
# @return [Array<(Response<(JobLocale)>, Integer, Hash)>] Response<(JobLocale)> data, response status code and response headers
|
119
|
+
def job_locale_complete_review_with_http_info(project_id, job_id, id, job_locale_complete_review_parameters, opts = {})
|
120
|
+
if @api_client.config.debugging
|
121
|
+
@api_client.config.logger.debug 'Calling API: JobLocalesApi.job_locale_complete_review ...'
|
122
|
+
end
|
123
|
+
# verify the required parameter 'project_id' is set
|
124
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling JobLocalesApi.job_locale_complete_review"
|
126
|
+
end
|
127
|
+
# verify the required parameter 'job_id' is set
|
128
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
129
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling JobLocalesApi.job_locale_complete_review"
|
130
|
+
end
|
131
|
+
# verify the required parameter 'id' is set
|
132
|
+
if @api_client.config.client_side_validation && id.nil?
|
133
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobLocalesApi.job_locale_complete_review"
|
134
|
+
end
|
135
|
+
# verify the required parameter 'job_locale_complete_review_parameters' is set
|
136
|
+
if @api_client.config.client_side_validation && job_locale_complete_review_parameters.nil?
|
137
|
+
fail ArgumentError, "Missing the required parameter 'job_locale_complete_review_parameters' when calling JobLocalesApi.job_locale_complete_review"
|
138
|
+
end
|
139
|
+
# resource path
|
140
|
+
local_var_path = '/projects/{project_id}/jobs/{job_id}/locales/{id}/complete_review'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'job_id' + '}', CGI.escape(job_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
141
|
+
|
142
|
+
# query parameters
|
143
|
+
query_params = opts[:query_params] || {}
|
144
|
+
|
145
|
+
# header parameters
|
146
|
+
header_params = opts[:header_params] || {}
|
147
|
+
# HTTP header 'Accept' (if needed)
|
148
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
149
|
+
# HTTP header 'Content-Type'
|
150
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
151
|
+
header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
|
152
|
+
|
153
|
+
# form parameters
|
154
|
+
form_params = opts[:form_params] || {}
|
155
|
+
|
156
|
+
# http body (model)
|
157
|
+
post_body = opts[:body] || @api_client.object_to_http_body(job_locale_complete_review_parameters)
|
158
|
+
|
159
|
+
# return_type
|
160
|
+
return_type = opts[:return_type] || 'JobLocale'
|
161
|
+
|
162
|
+
# auth_names
|
163
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
164
|
+
|
165
|
+
new_options = opts.merge(
|
166
|
+
:header_params => header_params,
|
167
|
+
:query_params => query_params,
|
168
|
+
:form_params => form_params,
|
169
|
+
:body => post_body,
|
170
|
+
:auth_names => auth_names,
|
171
|
+
:return_type => return_type
|
172
|
+
)
|
173
|
+
|
174
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
175
|
+
if @api_client.config.debugging
|
176
|
+
@api_client.config.logger.debug "API called: JobLocalesApi#job_locale_complete_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
177
|
+
end
|
178
|
+
response = ::Phrase::Response.new(data, headers)
|
179
|
+
return response, status_code, headers
|
180
|
+
end
|
181
|
+
|
96
182
|
# Delete a job locale
|
97
183
|
# Delete an existing job locale.
|
98
184
|
# @param project_id [String] Project ID
|
@@ -153,7 +239,7 @@ module Phrase
|
|
153
239
|
return_type = opts[:return_type]
|
154
240
|
|
155
241
|
# auth_names
|
156
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
242
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
157
243
|
|
158
244
|
new_options = opts.merge(
|
159
245
|
:header_params => header_params,
|
@@ -239,7 +325,7 @@ module Phrase
|
|
239
325
|
return_type = opts[:return_type] || 'JobLocale'
|
240
326
|
|
241
327
|
# auth_names
|
242
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
328
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
243
329
|
|
244
330
|
new_options = opts.merge(
|
245
331
|
:header_params => header_params,
|
@@ -320,7 +406,7 @@ module Phrase
|
|
320
406
|
return_type = opts[:return_type] || 'JobLocale'
|
321
407
|
|
322
408
|
# auth_names
|
323
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
409
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
324
410
|
|
325
411
|
new_options = opts.merge(
|
326
412
|
:header_params => header_params,
|
@@ -406,7 +492,7 @@ module Phrase
|
|
406
492
|
return_type = opts[:return_type] || 'JobLocale'
|
407
493
|
|
408
494
|
# auth_names
|
409
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
495
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
410
496
|
|
411
497
|
new_options = opts.merge(
|
412
498
|
:header_params => header_params,
|
@@ -486,7 +572,7 @@ module Phrase
|
|
486
572
|
return_type = opts[:return_type] || 'JobLocale'
|
487
573
|
|
488
574
|
# auth_names
|
489
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
575
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
490
576
|
|
491
577
|
new_options = opts.merge(
|
492
578
|
:header_params => header_params,
|
@@ -567,7 +653,7 @@ module Phrase
|
|
567
653
|
return_type = opts[:return_type] || 'Array<JobLocale>'
|
568
654
|
|
569
655
|
# auth_names
|
570
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
656
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
571
657
|
|
572
658
|
new_options = opts.merge(
|
573
659
|
:header_params => header_params,
|
@@ -67,7 +67,7 @@ module Phrase
|
|
67
67
|
return_type = opts[:return_type]
|
68
68
|
|
69
69
|
# auth_names
|
70
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
70
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
71
71
|
|
72
72
|
new_options = opts.merge(
|
73
73
|
:header_params => header_params,
|
@@ -148,7 +148,7 @@ module Phrase
|
|
148
148
|
return_type = opts[:return_type] || 'Object'
|
149
149
|
|
150
150
|
# auth_names
|
151
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
151
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
152
152
|
|
153
153
|
new_options = opts.merge(
|
154
154
|
:header_params => header_params,
|
@@ -234,7 +234,7 @@ module Phrase
|
|
234
234
|
return_type = opts[:return_type] || 'Object'
|
235
235
|
|
236
236
|
# auth_names
|
237
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
237
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
238
238
|
|
239
239
|
new_options = opts.merge(
|
240
240
|
:header_params => header_params,
|
@@ -314,7 +314,7 @@ module Phrase
|
|
314
314
|
return_type = opts[:return_type] || 'JobTemplateLocale'
|
315
315
|
|
316
316
|
# auth_names
|
317
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
317
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
318
318
|
|
319
319
|
new_options = opts.merge(
|
320
320
|
:header_params => header_params,
|
@@ -395,7 +395,7 @@ module Phrase
|
|
395
395
|
return_type = opts[:return_type] || 'Array<Object>'
|
396
396
|
|
397
397
|
# auth_names
|
398
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
398
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
399
399
|
|
400
400
|
new_options = opts.merge(
|
401
401
|
:header_params => header_params,
|
@@ -62,7 +62,7 @@ module Phrase
|
|
62
62
|
return_type = opts[:return_type] || 'Object'
|
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,
|
@@ -135,7 +135,7 @@ module Phrase
|
|
135
135
|
return_type = opts[:return_type]
|
136
136
|
|
137
137
|
# auth_names
|
138
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
138
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
139
139
|
|
140
140
|
new_options = opts.merge(
|
141
141
|
:header_params => header_params,
|
@@ -210,7 +210,7 @@ module Phrase
|
|
210
210
|
return_type = opts[:return_type] || 'Object'
|
211
211
|
|
212
212
|
# auth_names
|
213
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
213
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
214
214
|
|
215
215
|
new_options = opts.merge(
|
216
216
|
:header_params => header_params,
|
@@ -290,7 +290,7 @@ module Phrase
|
|
290
290
|
return_type = opts[:return_type] || 'Object'
|
291
291
|
|
292
292
|
# auth_names
|
293
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
293
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
294
294
|
|
295
295
|
new_options = opts.merge(
|
296
296
|
:header_params => header_params,
|
@@ -365,7 +365,7 @@ module Phrase
|
|
365
365
|
return_type = opts[:return_type] || 'Array<JobTemplate>'
|
366
366
|
|
367
367
|
# auth_names
|
368
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
368
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
369
369
|
|
370
370
|
new_options = opts.merge(
|
371
371
|
:header_params => header_params,
|
data/lib/phrase/api/jobs_api.rb
CHANGED
@@ -68,7 +68,7 @@ module Phrase
|
|
68
68
|
return_type = opts[:return_type] || 'JobDetails'
|
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,
|
@@ -142,7 +142,7 @@ module Phrase
|
|
142
142
|
return_type = opts[:return_type] || 'JobDetails'
|
143
143
|
|
144
144
|
# auth_names
|
145
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
145
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
146
146
|
|
147
147
|
new_options = opts.merge(
|
148
148
|
:header_params => header_params,
|
@@ -215,7 +215,7 @@ module Phrase
|
|
215
215
|
return_type = opts[:return_type]
|
216
216
|
|
217
217
|
# auth_names
|
218
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
218
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
219
219
|
|
220
220
|
new_options = opts.merge(
|
221
221
|
:header_params => header_params,
|
@@ -295,7 +295,7 @@ module Phrase
|
|
295
295
|
return_type = opts[:return_type] || 'JobDetails'
|
296
296
|
|
297
297
|
# auth_names
|
298
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
298
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
299
299
|
|
300
300
|
new_options = opts.merge(
|
301
301
|
:header_params => header_params,
|
@@ -371,7 +371,7 @@ module Phrase
|
|
371
371
|
return_type = opts[:return_type]
|
372
372
|
|
373
373
|
# auth_names
|
374
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
374
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
375
375
|
|
376
376
|
new_options = opts.merge(
|
377
377
|
:header_params => header_params,
|
@@ -451,7 +451,7 @@ module Phrase
|
|
451
451
|
return_type = opts[:return_type] || 'JobDetails'
|
452
452
|
|
453
453
|
# auth_names
|
454
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
454
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
455
455
|
|
456
456
|
new_options = opts.merge(
|
457
457
|
:header_params => header_params,
|
@@ -526,7 +526,7 @@ module Phrase
|
|
526
526
|
return_type = opts[:return_type] || 'JobDetails'
|
527
527
|
|
528
528
|
# auth_names
|
529
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
529
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
530
530
|
|
531
531
|
new_options = opts.merge(
|
532
532
|
:header_params => header_params,
|
@@ -606,7 +606,7 @@ module Phrase
|
|
606
606
|
return_type = opts[:return_type] || 'JobDetails'
|
607
607
|
|
608
608
|
# auth_names
|
609
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
609
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
610
610
|
|
611
611
|
new_options = opts.merge(
|
612
612
|
:header_params => header_params,
|
@@ -686,7 +686,7 @@ module Phrase
|
|
686
686
|
return_type = opts[:return_type] || 'JobDetails'
|
687
687
|
|
688
688
|
# auth_names
|
689
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
689
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
690
690
|
|
691
691
|
new_options = opts.merge(
|
692
692
|
:header_params => header_params,
|
@@ -767,7 +767,7 @@ module Phrase
|
|
767
767
|
return_type = opts[:return_type] || 'Array<Job>'
|
768
768
|
|
769
769
|
# auth_names
|
770
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
770
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
771
771
|
|
772
772
|
new_options = opts.merge(
|
773
773
|
:header_params => header_params,
|
@@ -851,7 +851,7 @@ module Phrase
|
|
851
851
|
return_type = opts[:return_type] || 'Array<Job>'
|
852
852
|
|
853
853
|
# auth_names
|
854
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
854
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
855
855
|
|
856
856
|
new_options = opts.merge(
|
857
857
|
:header_params => header_params,
|
data/lib/phrase/api/keys_api.rb
CHANGED
@@ -62,7 +62,7 @@ module Phrase
|
|
62
62
|
return_type = opts[:return_type] || 'TranslationKeyDetails'
|
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,
|
@@ -135,7 +135,7 @@ module Phrase
|
|
135
135
|
return_type = opts[:return_type]
|
136
136
|
|
137
137
|
# auth_names
|
138
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
138
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
139
139
|
|
140
140
|
new_options = opts.merge(
|
141
141
|
:header_params => header_params,
|
@@ -210,7 +210,7 @@ module Phrase
|
|
210
210
|
return_type = opts[:return_type] || 'TranslationKeyDetails'
|
211
211
|
|
212
212
|
# auth_names
|
213
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
213
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
214
214
|
|
215
215
|
new_options = opts.merge(
|
216
216
|
:header_params => header_params,
|
@@ -290,7 +290,7 @@ module Phrase
|
|
290
290
|
return_type = opts[:return_type] || 'TranslationKeyDetails'
|
291
291
|
|
292
292
|
# auth_names
|
293
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
293
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
294
294
|
|
295
295
|
new_options = opts.merge(
|
296
296
|
:header_params => header_params,
|
@@ -365,7 +365,7 @@ module Phrase
|
|
365
365
|
return_type = opts[:return_type] || 'AffectedResources'
|
366
366
|
|
367
367
|
# auth_names
|
368
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
368
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
369
369
|
|
370
370
|
new_options = opts.merge(
|
371
371
|
:header_params => header_params,
|
@@ -439,7 +439,7 @@ module Phrase
|
|
439
439
|
return_type = opts[:return_type] || 'AffectedResources'
|
440
440
|
|
441
441
|
# auth_names
|
442
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
442
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
443
443
|
|
444
444
|
new_options = opts.merge(
|
445
445
|
:header_params => header_params,
|
@@ -513,7 +513,7 @@ module Phrase
|
|
513
513
|
return_type = opts[:return_type] || 'AffectedResources'
|
514
514
|
|
515
515
|
# auth_names
|
516
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
516
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
517
517
|
|
518
518
|
new_options = opts.merge(
|
519
519
|
:header_params => header_params,
|
@@ -600,7 +600,7 @@ module Phrase
|
|
600
600
|
return_type = opts[:return_type] || 'Array<TranslationKey>'
|
601
601
|
|
602
602
|
# auth_names
|
603
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
603
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
604
604
|
|
605
605
|
new_options = opts.merge(
|
606
606
|
:header_params => header_params,
|
@@ -680,7 +680,7 @@ module Phrase
|
|
680
680
|
return_type = opts[:return_type] || 'Array<TranslationKey>'
|
681
681
|
|
682
682
|
# auth_names
|
683
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
683
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
684
684
|
|
685
685
|
new_options = opts.merge(
|
686
686
|
:header_params => header_params,
|
@@ -754,7 +754,7 @@ module Phrase
|
|
754
754
|
return_type = opts[:return_type] || 'AffectedResources'
|
755
755
|
|
756
756
|
# auth_names
|
757
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
757
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
758
758
|
|
759
759
|
new_options = opts.merge(
|
760
760
|
:header_params => header_params,
|
@@ -828,7 +828,7 @@ module Phrase
|
|
828
828
|
return_type = opts[:return_type] || 'AffectedResources'
|
829
829
|
|
830
830
|
# auth_names
|
831
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
831
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
832
832
|
|
833
833
|
new_options = opts.merge(
|
834
834
|
:header_params => header_params,
|
@@ -9,29 +9,35 @@ module Phrase
|
|
9
9
|
end
|
10
10
|
# List locales used in account
|
11
11
|
# List all locales unique by locale code used across all projects within an account.
|
12
|
+
# @param id [String] ID
|
12
13
|
# @param [Hash] opts the optional parameters
|
13
14
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
14
15
|
# @option opts [Integer] :page Page number
|
15
16
|
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
16
17
|
# @return [Array<LocalePreview1>]
|
17
|
-
def account_locales(opts = {})
|
18
|
-
data, _status_code, _headers = account_locales_with_http_info(opts)
|
18
|
+
def account_locales(id, opts = {})
|
19
|
+
data, _status_code, _headers = account_locales_with_http_info(id, opts)
|
19
20
|
data
|
20
21
|
end
|
21
22
|
|
22
23
|
# List locales used in account
|
23
24
|
# List all locales unique by locale code used across all projects within an account.
|
25
|
+
# @param id [String] ID
|
24
26
|
# @param [Hash] opts the optional parameters
|
25
27
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
26
28
|
# @option opts [Integer] :page Page number
|
27
29
|
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
28
30
|
# @return [Array<(Response<(Array<LocalePreview1>)>, Integer, Hash)>] Response<(Array<LocalePreview1>)> data, response status code and response headers
|
29
|
-
def account_locales_with_http_info(opts = {})
|
31
|
+
def account_locales_with_http_info(id, opts = {})
|
30
32
|
if @api_client.config.debugging
|
31
33
|
@api_client.config.logger.debug 'Calling API: LocalesApi.account_locales ...'
|
32
34
|
end
|
35
|
+
# verify the required parameter 'id' is set
|
36
|
+
if @api_client.config.client_side_validation && id.nil?
|
37
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LocalesApi.account_locales"
|
38
|
+
end
|
33
39
|
# resource path
|
34
|
-
local_var_path = '/accounts/{account_id}/locales'
|
40
|
+
local_var_path = '/accounts/{account_id}/locales'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
35
41
|
|
36
42
|
# query parameters
|
37
43
|
query_params = opts[:query_params] || {}
|
@@ -54,7 +60,7 @@ module Phrase
|
|
54
60
|
return_type = opts[:return_type] || 'Array<LocalePreview1>'
|
55
61
|
|
56
62
|
# auth_names
|
57
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
63
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
58
64
|
|
59
65
|
new_options = opts.merge(
|
60
66
|
:header_params => header_params,
|
@@ -128,7 +134,7 @@ module Phrase
|
|
128
134
|
return_type = opts[:return_type] || 'LocaleDetails'
|
129
135
|
|
130
136
|
# auth_names
|
131
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
137
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
132
138
|
|
133
139
|
new_options = opts.merge(
|
134
140
|
:header_params => header_params,
|
@@ -201,7 +207,7 @@ module Phrase
|
|
201
207
|
return_type = opts[:return_type]
|
202
208
|
|
203
209
|
# auth_names
|
204
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
210
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
205
211
|
|
206
212
|
new_options = opts.merge(
|
207
213
|
:header_params => header_params,
|
@@ -241,6 +247,7 @@ module Phrase
|
|
241
247
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
242
248
|
# @option opts [Boolean] :use_last_reviewed_version If set to true the last reviewed version of a translation is used. This is only available if the review workflow (currently in beta) is enabled for the project.
|
243
249
|
# @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>.
|
250
|
+
# @option opts [String] :source_locale_id Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a <code>tag</code> parameter indicating a specific job.
|
244
251
|
# @return [File]
|
245
252
|
def locale_download(project_id, id, opts = {})
|
246
253
|
data, _status_code, _headers = locale_download_with_http_info(project_id, id, opts)
|
@@ -268,6 +275,7 @@ module Phrase
|
|
268
275
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
269
276
|
# @option opts [Boolean] :use_last_reviewed_version If set to true the last reviewed version of a translation is used. This is only available if the review workflow (currently in beta) is enabled for the project.
|
270
277
|
# @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>.
|
278
|
+
# @option opts [String] :source_locale_id Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a <code>tag</code> parameter indicating a specific job.
|
271
279
|
# @return [Array<(Response<(File)>, Integer, Hash)>] Response<(File)> data, response status code and response headers
|
272
280
|
def locale_download_with_http_info(project_id, id, opts = {})
|
273
281
|
if @api_client.config.debugging
|
@@ -301,6 +309,7 @@ module Phrase
|
|
301
309
|
query_params[:'include_unverified_translations'] = opts[:'include_unverified_translations'] if !opts[:'include_unverified_translations'].nil?
|
302
310
|
query_params[:'use_last_reviewed_version'] = opts[:'use_last_reviewed_version'] if !opts[:'use_last_reviewed_version'].nil?
|
303
311
|
query_params[:'fallback_locale_id'] = opts[:'fallback_locale_id'] if !opts[:'fallback_locale_id'].nil?
|
312
|
+
query_params[:'source_locale_id'] = opts[:'source_locale_id'] if !opts[:'source_locale_id'].nil?
|
304
313
|
|
305
314
|
# header parameters
|
306
315
|
header_params = opts[:header_params] || {}
|
@@ -318,7 +327,7 @@ module Phrase
|
|
318
327
|
return_type = opts[:return_type] || 'File'
|
319
328
|
|
320
329
|
# auth_names
|
321
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
330
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
322
331
|
|
323
332
|
new_options = opts.merge(
|
324
333
|
:header_params => header_params,
|
@@ -393,7 +402,7 @@ module Phrase
|
|
393
402
|
return_type = opts[:return_type] || 'LocaleDetails'
|
394
403
|
|
395
404
|
# auth_names
|
396
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
405
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
397
406
|
|
398
407
|
new_options = opts.merge(
|
399
408
|
:header_params => header_params,
|
@@ -473,7 +482,7 @@ module Phrase
|
|
473
482
|
return_type = opts[:return_type] || 'LocaleDetails'
|
474
483
|
|
475
484
|
# auth_names
|
476
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
485
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
477
486
|
|
478
487
|
new_options = opts.merge(
|
479
488
|
:header_params => header_params,
|
@@ -551,7 +560,7 @@ module Phrase
|
|
551
560
|
return_type = opts[:return_type] || 'Array<Locale>'
|
552
561
|
|
553
562
|
# auth_names
|
554
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
563
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
555
564
|
|
556
565
|
new_options = opts.merge(
|
557
566
|
: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] || 'Member'
|
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,
|
@@ -210,7 +210,7 @@ module Phrase
|
|
210
210
|
return_type = opts[:return_type] || 'Member'
|
211
211
|
|
212
212
|
# auth_names
|
213
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
213
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
214
214
|
|
215
215
|
new_options = opts.merge(
|
216
216
|
:header_params => header_params,
|
@@ -290,7 +290,7 @@ module Phrase
|
|
290
290
|
return_type = opts[:return_type] || 'MemberProjectDetail'
|
291
291
|
|
292
292
|
# auth_names
|
293
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
293
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
294
294
|
|
295
295
|
new_options = opts.merge(
|
296
296
|
:header_params => header_params,
|
@@ -362,7 +362,7 @@ module Phrase
|
|
362
362
|
return_type = opts[:return_type] || 'Array<Member>'
|
363
363
|
|
364
364
|
# auth_names
|
365
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
365
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
366
366
|
|
367
367
|
new_options = opts.merge(
|
368
368
|
:header_params => header_params,
|
@@ -54,7 +54,7 @@ module Phrase
|
|
54
54
|
return_type = opts[:return_type] || 'Array<Object>'
|
55
55
|
|
56
56
|
# auth_names
|
57
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
57
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
58
58
|
|
59
59
|
new_options = opts.merge(
|
60
60
|
:header_params => header_params,
|
@@ -114,7 +114,7 @@ module Phrase
|
|
114
114
|
return_type = opts[:return_type] || 'Array<Object>'
|
115
115
|
|
116
116
|
# auth_names
|
117
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
117
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
118
118
|
|
119
119
|
new_options = opts.merge(
|
120
120
|
:header_params => header_params,
|
@@ -180,7 +180,7 @@ module Phrase
|
|
180
180
|
return_type = opts[:return_type] || 'NotificationGroupDetail'
|
181
181
|
|
182
182
|
# auth_names
|
183
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
183
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
184
184
|
|
185
185
|
new_options = opts.merge(
|
186
186
|
:header_params => header_params,
|
@@ -54,7 +54,7 @@ module Phrase
|
|
54
54
|
return_type = opts[:return_type] || 'Array<Object>'
|
55
55
|
|
56
56
|
# auth_names
|
57
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
57
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
58
58
|
|
59
59
|
new_options = opts.merge(
|
60
60
|
:header_params => header_params,
|
@@ -114,7 +114,7 @@ module Phrase
|
|
114
114
|
return_type = opts[:return_type] || 'Array<Object>'
|
115
115
|
|
116
116
|
# auth_names
|
117
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
117
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
118
118
|
|
119
119
|
new_options = opts.merge(
|
120
120
|
:header_params => header_params,
|
@@ -180,7 +180,7 @@ module Phrase
|
|
180
180
|
return_type = opts[:return_type] || 'Notification'
|
181
181
|
|
182
182
|
# auth_names
|
183
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
183
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
184
184
|
|
185
185
|
new_options = opts.merge(
|
186
186
|
:header_params => header_params,
|