phrase 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -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/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/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 +28 -7
- 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/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/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 +7 -7
- 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/icu.rb +195 -0
- data/lib/phrase/models/icu_skeleton_parameters.rb +217 -0
- 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/team1.rb +221 -0
- 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/models/icu_skeleton_parameters_spec.rb +41 -0
- data/spec/models/icu_spec.rb +29 -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/team1_spec.rb +47 -0
- data/spec/models/user_preview_spec.rb +6 -0
- metadata +218 -198
|
@@ -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,
|
|
@@ -60,7 +60,7 @@ module Phrase
|
|
|
60
60
|
return_type = opts[:return_type] || 'Array<LocalePreview1>'
|
|
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] || 'LocaleDetails'
|
|
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,
|
|
@@ -207,7 +207,7 @@ module Phrase
|
|
|
207
207
|
return_type = opts[:return_type]
|
|
208
208
|
|
|
209
209
|
# auth_names
|
|
210
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
210
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
|
211
211
|
|
|
212
212
|
new_options = opts.merge(
|
|
213
213
|
:header_params => header_params,
|
|
@@ -327,7 +327,7 @@ module Phrase
|
|
|
327
327
|
return_type = opts[:return_type] || 'File'
|
|
328
328
|
|
|
329
329
|
# auth_names
|
|
330
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
330
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
|
331
331
|
|
|
332
332
|
new_options = opts.merge(
|
|
333
333
|
:header_params => header_params,
|
|
@@ -402,7 +402,7 @@ module Phrase
|
|
|
402
402
|
return_type = opts[:return_type] || 'LocaleDetails'
|
|
403
403
|
|
|
404
404
|
# auth_names
|
|
405
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
405
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
|
406
406
|
|
|
407
407
|
new_options = opts.merge(
|
|
408
408
|
:header_params => header_params,
|
|
@@ -482,7 +482,7 @@ module Phrase
|
|
|
482
482
|
return_type = opts[:return_type] || 'LocaleDetails'
|
|
483
483
|
|
|
484
484
|
# auth_names
|
|
485
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
485
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
|
486
486
|
|
|
487
487
|
new_options = opts.merge(
|
|
488
488
|
:header_params => header_params,
|
|
@@ -560,7 +560,7 @@ module Phrase
|
|
|
560
560
|
return_type = opts[:return_type] || 'Array<Locale>'
|
|
561
561
|
|
|
562
562
|
# auth_names
|
|
563
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
563
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
|
564
564
|
|
|
565
565
|
new_options = opts.merge(
|
|
566
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,
|
|
@@ -68,7 +68,7 @@ module Phrase
|
|
|
68
68
|
return_type = opts[:return_type] || 'TranslationOrder'
|
|
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] || 'TranslationOrder'
|
|
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,
|
|
@@ -290,7 +290,7 @@ module Phrase
|
|
|
290
290
|
return_type = opts[:return_type] || 'TranslationOrder'
|
|
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<TranslationOrder>'
|
|
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,
|