phrase 1.0.2 → 1.0.7
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 +13 -3
- data/docs/Account.md +2 -0
- data/docs/AccountDetails.md +3 -3
- data/docs/AccountsApi.md +2 -2
- data/docs/AuthorizationsApi.md +2 -2
- data/docs/BlacklistedKeysApi.md +4 -2
- data/docs/BranchesApi.md +2 -2
- data/docs/CommentsApi.md +2 -2
- data/docs/DistributionsApi.md +2 -2
- data/docs/Document.md +23 -0
- data/docs/DocumentsApi.md +137 -0
- data/docs/GitHubSyncApi.md +130 -0
- data/docs/GitLabSyncApi.md +2 -2
- data/docs/GithubSyncExportParameters.md +17 -0
- data/docs/GithubSyncImportParameters.md +17 -0
- data/docs/GlossariesApi.md +2 -2
- data/docs/GlossaryTermsApi.md +2 -2
- data/docs/InlineResponse422.md +19 -0
- data/docs/InlineResponse422Errors.md +21 -0
- data/docs/InvitationsApi.md +2 -2
- data/docs/Job.md +5 -1
- data/docs/JobCreateParameters.md +2 -0
- data/docs/JobDetails.md +4 -0
- data/docs/JobLocalesApi.md +2 -2
- data/docs/JobUpdateParameters.md +3 -1
- data/docs/JobsApi.md +74 -2
- data/docs/KeysApi.md +4 -4
- data/docs/LocalesApi.md +2 -2
- data/docs/MembersApi.md +2 -2
- data/docs/OrdersApi.md +2 -2
- data/docs/Project.md +2 -0
- data/docs/ProjectDetails.md +2 -2
- data/docs/ProjectsApi.md +2 -2
- data/docs/ReleasesApi.md +2 -2
- data/docs/ScreenshotMarkersApi.md +2 -2
- data/docs/ScreenshotsApi.md +4 -2
- data/docs/SpacesApi.md +4 -4
- data/docs/StyleGuidesApi.md +2 -2
- data/docs/TagsApi.md +2 -2
- data/docs/TeamsApi.md +2 -2
- data/docs/TranslationsApi.md +8 -8
- data/docs/UploadsApi.md +2 -2
- data/docs/VersionsHistoryApi.md +2 -2
- data/docs/WebhookCreateParameters.md +2 -0
- data/docs/WebhookUpdateParameters.md +2 -0
- data/docs/WebhooksApi.md +2 -2
- data/lib/phrase.rb +7 -0
- data/lib/phrase/api/accounts_api.rb +2 -2
- data/lib/phrase/api/authorizations_api.rb +2 -2
- data/lib/phrase/api/blacklisted_keys_api.rb +5 -2
- data/lib/phrase/api/branches_api.rb +2 -2
- data/lib/phrase/api/comments_api.rb +2 -2
- data/lib/phrase/api/distributions_api.rb +2 -2
- data/lib/phrase/api/documents_api.rb +152 -0
- data/lib/phrase/api/git_hub_sync_api.rb +146 -0
- data/lib/phrase/api/git_lab_sync_api.rb +2 -2
- data/lib/phrase/api/glossaries_api.rb +2 -2
- data/lib/phrase/api/glossary_terms_api.rb +2 -2
- data/lib/phrase/api/invitations_api.rb +2 -2
- data/lib/phrase/api/job_locales_api.rb +2 -2
- data/lib/phrase/api/jobs_api.rb +83 -2
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locales_api.rb +2 -2
- data/lib/phrase/api/members_api.rb +2 -2
- data/lib/phrase/api/orders_api.rb +2 -2
- data/lib/phrase/api/projects_api.rb +2 -2
- data/lib/phrase/api/releases_api.rb +2 -2
- data/lib/phrase/api/screenshot_markers_api.rb +2 -2
- data/lib/phrase/api/screenshots_api.rb +5 -2
- data/lib/phrase/api/spaces_api.rb +4 -4
- data/lib/phrase/api/style_guides_api.rb +2 -2
- data/lib/phrase/api/tags_api.rb +2 -2
- data/lib/phrase/api/teams_api.rb +2 -2
- data/lib/phrase/api/translations_api.rb +8 -8
- data/lib/phrase/api/uploads_api.rb +2 -2
- data/lib/phrase/api/versions_history_api.rb +2 -2
- data/lib/phrase/api/webhooks_api.rb +2 -2
- data/lib/phrase/api_client.rb +2 -2
- data/lib/phrase/models/account.rb +10 -1
- data/lib/phrase/models/account_details.rb +13 -13
- data/lib/phrase/models/document.rb +221 -0
- data/lib/phrase/models/github_sync_export_parameters.rb +195 -0
- data/lib/phrase/models/github_sync_import_parameters.rb +195 -0
- data/lib/phrase/models/inline_response422.rb +205 -0
- data/lib/phrase/models/inline_response422_errors.rb +212 -0
- data/lib/phrase/models/job.rb +22 -4
- data/lib/phrase/models/job_create_parameters.rb +11 -1
- data/lib/phrase/models/job_details.rb +19 -1
- data/lib/phrase/models/job_update_parameters.rb +14 -4
- data/lib/phrase/models/project.rb +10 -1
- data/lib/phrase/models/project_details.rb +10 -10
- data/lib/phrase/models/webhook_create_parameters.rb +11 -1
- data/lib/phrase/models/webhook_update_parameters.rb +11 -1
- data/lib/phrase/version.rb +1 -1
- data/spec/api/accounts_api_spec.rb +1 -1
- data/spec/api/authorizations_api_spec.rb +1 -1
- data/spec/api/blacklisted_keys_api_spec.rb +2 -1
- data/spec/api/branches_api_spec.rb +1 -1
- data/spec/api/comments_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +1 -1
- data/spec/api/documents_api_spec.rb +52 -0
- data/spec/api/git_hub_sync_api_spec.rb +49 -0
- data/spec/api/git_lab_sync_api_spec.rb +1 -1
- data/spec/api/glossaries_api_spec.rb +1 -1
- data/spec/api/glossary_terms_api_spec.rb +1 -1
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/job_locales_api_spec.rb +1 -1
- data/spec/api/jobs_api_spec.rb +19 -1
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/locales_api_spec.rb +1 -1
- data/spec/api/members_api_spec.rb +1 -1
- data/spec/api/orders_api_spec.rb +1 -1
- data/spec/api/projects_api_spec.rb +1 -1
- data/spec/api/releases_api_spec.rb +1 -1
- data/spec/api/screenshot_markers_api_spec.rb +1 -1
- data/spec/api/screenshots_api_spec.rb +2 -1
- data/spec/api/spaces_api_spec.rb +2 -2
- data/spec/api/style_guides_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +1 -1
- data/spec/api/translations_api_spec.rb +4 -4
- data/spec/api/uploads_api_spec.rb +1 -1
- data/spec/api/versions_history_api_spec.rb +1 -1
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/models/account_details_spec.rb +4 -4
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/document_spec.rb +47 -0
- data/spec/models/github_sync_export_parameters_spec.rb +29 -0
- data/spec/models/github_sync_import_parameters_spec.rb +29 -0
- data/spec/models/inline_response422_errors_spec.rb +41 -0
- data/spec/models/inline_response422_spec.rb +35 -0
- data/spec/models/job_create_parameters_spec.rb +6 -0
- data/spec/models/job_details_spec.rb +12 -0
- data/spec/models/job_spec.rb +12 -0
- data/spec/models/job_update_parameters_spec.rb +6 -0
- data/spec/models/project_details_spec.rb +6 -6
- data/spec/models/project_spec.rb +6 -0
- data/spec/models/webhook_create_parameters_spec.rb +6 -0
- data/spec/models/webhook_update_parameters_spec.rb +6 -0
- metadata +183 -155
data/lib/phrase/api/keys_api.rb
CHANGED
|
@@ -390,7 +390,7 @@ module Phrase
|
|
|
390
390
|
# @param [Hash] opts the optional parameters
|
|
391
391
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
392
392
|
# @option opts [Integer] :page Page number
|
|
393
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
393
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
394
394
|
# @option opts [String] :branch specify the branch to use
|
|
395
395
|
# @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
|
|
396
396
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -408,7 +408,7 @@ module Phrase
|
|
|
408
408
|
# @param [Hash] opts the optional parameters
|
|
409
409
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
410
410
|
# @option opts [Integer] :page Page number
|
|
411
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
411
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
412
412
|
# @option opts [String] :branch specify the branch to use
|
|
413
413
|
# @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
|
|
414
414
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -478,7 +478,7 @@ module Phrase
|
|
|
478
478
|
# @param [Hash] opts the optional parameters
|
|
479
479
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
480
480
|
# @option opts [Integer] :page Page number
|
|
481
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
481
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
482
482
|
# @return [Array<TranslationKey>]
|
|
483
483
|
def keys_search(project_id, keys_search_parameters, opts = {})
|
|
484
484
|
data, _status_code, _headers = keys_search_with_http_info(project_id, keys_search_parameters, opts)
|
|
@@ -492,7 +492,7 @@ module Phrase
|
|
|
492
492
|
# @param [Hash] opts the optional parameters
|
|
493
493
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
494
494
|
# @option opts [Integer] :page Page number
|
|
495
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
495
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
496
496
|
# @return [Array<(Response<(Array<TranslationKey>)>, Integer, Hash)>] Response<(Array<TranslationKey>)> data, response status code and response headers
|
|
497
497
|
def keys_search_with_http_info(project_id, keys_search_parameters, opts = {})
|
|
498
498
|
if @api_client.config.debugging
|
|
@@ -427,7 +427,7 @@ module Phrase
|
|
|
427
427
|
# @param [Hash] opts the optional parameters
|
|
428
428
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
429
429
|
# @option opts [Integer] :page Page number
|
|
430
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
430
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
431
431
|
# @option opts [String] :branch specify the branch to use
|
|
432
432
|
# @return [Array<Locale>]
|
|
433
433
|
def locales_list(project_id, opts = {})
|
|
@@ -441,7 +441,7 @@ module Phrase
|
|
|
441
441
|
# @param [Hash] opts the optional parameters
|
|
442
442
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
443
443
|
# @option opts [Integer] :page Page number
|
|
444
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
444
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
445
445
|
# @option opts [String] :branch specify the branch to use
|
|
446
446
|
# @return [Array<(Response<(Array<Locale>)>, Integer, Hash)>] Response<(Array<Locale>)> data, response status code and response headers
|
|
447
447
|
def locales_list_with_http_info(project_id, opts = {})
|
|
@@ -235,7 +235,7 @@ module Phrase
|
|
|
235
235
|
# @param [Hash] opts the optional parameters
|
|
236
236
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
237
237
|
# @option opts [Integer] :page Page number
|
|
238
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
238
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
239
239
|
# @return [Array<Member>]
|
|
240
240
|
def members_list(account_id, opts = {})
|
|
241
241
|
data, _status_code, _headers = members_list_with_http_info(account_id, opts)
|
|
@@ -248,7 +248,7 @@ module Phrase
|
|
|
248
248
|
# @param [Hash] opts the optional parameters
|
|
249
249
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
250
250
|
# @option opts [Integer] :page Page number
|
|
251
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
251
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
252
252
|
# @return [Array<(Response<(Array<Member>)>, Integer, Hash)>] Response<(Array<Member>)> data, response status code and response headers
|
|
253
253
|
def members_list_with_http_info(account_id, opts = {})
|
|
254
254
|
if @api_client.config.debugging
|
|
@@ -315,7 +315,7 @@ module Phrase
|
|
|
315
315
|
# @param [Hash] opts the optional parameters
|
|
316
316
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
317
317
|
# @option opts [Integer] :page Page number
|
|
318
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
318
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
319
319
|
# @option opts [String] :branch specify the branch to use
|
|
320
320
|
# @return [Array<TranslationOrder>]
|
|
321
321
|
def orders_list(project_id, opts = {})
|
|
@@ -329,7 +329,7 @@ module Phrase
|
|
|
329
329
|
# @param [Hash] opts the optional parameters
|
|
330
330
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
331
331
|
# @option opts [Integer] :page Page number
|
|
332
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
332
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
333
333
|
# @option opts [String] :branch specify the branch to use
|
|
334
334
|
# @return [Array<(Response<(Array<TranslationOrder>)>, Integer, Hash)>] Response<(Array<TranslationOrder>)> data, response status code and response headers
|
|
335
335
|
def orders_list_with_http_info(project_id, opts = {})
|
|
@@ -284,7 +284,7 @@ module Phrase
|
|
|
284
284
|
# @param [Hash] opts the optional parameters
|
|
285
285
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
286
286
|
# @option opts [Integer] :page Page number
|
|
287
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
287
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
288
288
|
# @return [Array<Project>]
|
|
289
289
|
def projects_list(opts = {})
|
|
290
290
|
data, _status_code, _headers = projects_list_with_http_info(opts)
|
|
@@ -296,7 +296,7 @@ module Phrase
|
|
|
296
296
|
# @param [Hash] opts the optional parameters
|
|
297
297
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
298
298
|
# @option opts [Integer] :page Page number
|
|
299
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
299
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
300
300
|
# @return [Array<(Response<(Array<Project>)>, Integer, Hash)>] Response<(Array<Project>)> data, response status code and response headers
|
|
301
301
|
def projects_list_with_http_info(opts = {})
|
|
302
302
|
if @api_client.config.debugging
|
|
@@ -412,7 +412,7 @@ module Phrase
|
|
|
412
412
|
# @param [Hash] opts the optional parameters
|
|
413
413
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
414
414
|
# @option opts [Integer] :page Page number
|
|
415
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
415
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
416
416
|
# @return [Array<ReleasePreview>]
|
|
417
417
|
def releases_list(account_id, distribution_id, opts = {})
|
|
418
418
|
data, _status_code, _headers = releases_list_with_http_info(account_id, distribution_id, opts)
|
|
@@ -426,7 +426,7 @@ module Phrase
|
|
|
426
426
|
# @param [Hash] opts the optional parameters
|
|
427
427
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
428
428
|
# @option opts [Integer] :page Page number
|
|
429
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
429
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
430
430
|
# @return [Array<(Response<(Array<ReleasePreview>)>, Integer, Hash)>] Response<(Array<ReleasePreview>)> data, response status code and response headers
|
|
431
431
|
def releases_list_with_http_info(account_id, distribution_id, opts = {})
|
|
432
432
|
if @api_client.config.debugging
|
|
@@ -322,7 +322,7 @@ module Phrase
|
|
|
322
322
|
# @param [Hash] opts the optional parameters
|
|
323
323
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
324
324
|
# @option opts [Integer] :page Page number
|
|
325
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
325
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
326
326
|
# @return [Array<ScreenshotMarker>]
|
|
327
327
|
def screenshot_markers_list(project_id, id, opts = {})
|
|
328
328
|
data, _status_code, _headers = screenshot_markers_list_with_http_info(project_id, id, opts)
|
|
@@ -336,7 +336,7 @@ module Phrase
|
|
|
336
336
|
# @param [Hash] opts the optional parameters
|
|
337
337
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
338
338
|
# @option opts [Integer] :page Page number
|
|
339
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
339
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
340
340
|
# @return [Array<(Response<(Array<ScreenshotMarker>)>, Integer, Hash)>] Response<(Array<ScreenshotMarker>)> data, response status code and response headers
|
|
341
341
|
def screenshot_markers_list_with_http_info(project_id, id, opts = {})
|
|
342
342
|
if @api_client.config.debugging
|
|
@@ -309,7 +309,8 @@ module Phrase
|
|
|
309
309
|
# @param [Hash] opts the optional parameters
|
|
310
310
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
311
311
|
# @option opts [Integer] :page Page number
|
|
312
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
312
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
313
|
+
# @option opts [String] :key_id filter by key
|
|
313
314
|
# @return [Array<Screenshot>]
|
|
314
315
|
def screenshots_list(project_id, opts = {})
|
|
315
316
|
data, _status_code, _headers = screenshots_list_with_http_info(project_id, opts)
|
|
@@ -322,7 +323,8 @@ module Phrase
|
|
|
322
323
|
# @param [Hash] opts the optional parameters
|
|
323
324
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
324
325
|
# @option opts [Integer] :page Page number
|
|
325
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
326
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
327
|
+
# @option opts [String] :key_id filter by key
|
|
326
328
|
# @return [Array<(Response<(Array<Screenshot>)>, Integer, Hash)>] Response<(Array<Screenshot>)> data, response status code and response headers
|
|
327
329
|
def screenshots_list_with_http_info(project_id, opts = {})
|
|
328
330
|
if @api_client.config.debugging
|
|
@@ -339,6 +341,7 @@ module Phrase
|
|
|
339
341
|
query_params = opts[:query_params] || {}
|
|
340
342
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
341
343
|
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
344
|
+
query_params[:'key_id'] = opts[:'key_id'] if !opts[:'key_id'].nil?
|
|
342
345
|
|
|
343
346
|
# header parameters
|
|
344
347
|
header_params = opts[:header_params] || {}
|
|
@@ -309,7 +309,7 @@ module Phrase
|
|
|
309
309
|
# @param [Hash] opts the optional parameters
|
|
310
310
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
311
311
|
# @option opts [Integer] :page Page number
|
|
312
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
312
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
313
313
|
# @return [Array<Space>]
|
|
314
314
|
def spaces_list(account_id, opts = {})
|
|
315
315
|
data, _status_code, _headers = spaces_list_with_http_info(account_id, opts)
|
|
@@ -322,7 +322,7 @@ module Phrase
|
|
|
322
322
|
# @param [Hash] opts the optional parameters
|
|
323
323
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
324
324
|
# @option opts [Integer] :page Page number
|
|
325
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
325
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
326
326
|
# @return [Array<(Response<(Array<Space>)>, Integer, Hash)>] Response<(Array<Space>)> data, response status code and response headers
|
|
327
327
|
def spaces_list_with_http_info(account_id, opts = {})
|
|
328
328
|
if @api_client.config.debugging
|
|
@@ -536,7 +536,7 @@ module Phrase
|
|
|
536
536
|
# @param [Hash] opts the optional parameters
|
|
537
537
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
538
538
|
# @option opts [Integer] :page Page number
|
|
539
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
539
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
540
540
|
# @return [Array<Project>]
|
|
541
541
|
def spaces_projects_list(account_id, space_id, opts = {})
|
|
542
542
|
data, _status_code, _headers = spaces_projects_list_with_http_info(account_id, space_id, opts)
|
|
@@ -550,7 +550,7 @@ module Phrase
|
|
|
550
550
|
# @param [Hash] opts the optional parameters
|
|
551
551
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
552
552
|
# @option opts [Integer] :page Page number
|
|
553
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
553
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
554
554
|
# @return [Array<(Response<(Array<Project>)>, Integer, Hash)>] Response<(Array<Project>)> data, response status code and response headers
|
|
555
555
|
def spaces_projects_list_with_http_info(account_id, space_id, opts = {})
|
|
556
556
|
if @api_client.config.debugging
|
|
@@ -309,7 +309,7 @@ module Phrase
|
|
|
309
309
|
# @param [Hash] opts the optional parameters
|
|
310
310
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
311
311
|
# @option opts [Integer] :page Page number
|
|
312
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
312
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
313
313
|
# @return [Array<Styleguide>]
|
|
314
314
|
def styleguides_list(project_id, opts = {})
|
|
315
315
|
data, _status_code, _headers = styleguides_list_with_http_info(project_id, opts)
|
|
@@ -322,7 +322,7 @@ module Phrase
|
|
|
322
322
|
# @param [Hash] opts the optional parameters
|
|
323
323
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
324
324
|
# @option opts [Integer] :page Page number
|
|
325
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
325
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
326
326
|
# @return [Array<(Response<(Array<Styleguide>)>, Integer, Hash)>] Response<(Array<Styleguide>)> data, response status code and response headers
|
|
327
327
|
def styleguides_list_with_http_info(project_id, opts = {})
|
|
328
328
|
if @api_client.config.debugging
|
data/lib/phrase/api/tags_api.rb
CHANGED
|
@@ -235,7 +235,7 @@ module Phrase
|
|
|
235
235
|
# @param [Hash] opts the optional parameters
|
|
236
236
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
237
237
|
# @option opts [Integer] :page Page number
|
|
238
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
238
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
239
239
|
# @option opts [String] :branch specify the branch to use
|
|
240
240
|
# @return [Array<Tag>]
|
|
241
241
|
def tags_list(project_id, opts = {})
|
|
@@ -249,7 +249,7 @@ module Phrase
|
|
|
249
249
|
# @param [Hash] opts the optional parameters
|
|
250
250
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
251
251
|
# @option opts [Integer] :page Page number
|
|
252
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
252
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
253
253
|
# @option opts [String] :branch specify the branch to use
|
|
254
254
|
# @return [Array<(Response<(Array<Tag>)>, Integer, Hash)>] Response<(Array<Tag>)> data, response status code and response headers
|
|
255
255
|
def tags_list_with_http_info(project_id, opts = {})
|
data/lib/phrase/api/teams_api.rb
CHANGED
|
@@ -309,7 +309,7 @@ module Phrase
|
|
|
309
309
|
# @param [Hash] opts the optional parameters
|
|
310
310
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
311
311
|
# @option opts [Integer] :page Page number
|
|
312
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
312
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
313
313
|
# @return [Array<Team>]
|
|
314
314
|
def teams_list(account_id, opts = {})
|
|
315
315
|
data, _status_code, _headers = teams_list_with_http_info(account_id, opts)
|
|
@@ -322,7 +322,7 @@ module Phrase
|
|
|
322
322
|
# @param [Hash] opts the optional parameters
|
|
323
323
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
324
324
|
# @option opts [Integer] :page Page number
|
|
325
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
325
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
326
326
|
# @return [Array<(Response<(Array<Team>)>, Integer, Hash)>] Response<(Array<Team>)> data, response status code and response headers
|
|
327
327
|
def teams_list_with_http_info(account_id, opts = {})
|
|
328
328
|
if @api_client.config.debugging
|
|
@@ -643,7 +643,7 @@ module Phrase
|
|
|
643
643
|
# @param [Hash] opts the optional parameters
|
|
644
644
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
645
645
|
# @option opts [Integer] :page Page number
|
|
646
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
646
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
647
647
|
# @option opts [String] :branch specify the branch to use
|
|
648
648
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
649
649
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -661,7 +661,7 @@ module Phrase
|
|
|
661
661
|
# @param [Hash] opts the optional parameters
|
|
662
662
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
663
663
|
# @option opts [Integer] :page Page number
|
|
664
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
664
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
665
665
|
# @option opts [String] :branch specify the branch to use
|
|
666
666
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
667
667
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -733,7 +733,7 @@ module Phrase
|
|
|
733
733
|
# @param [Hash] opts the optional parameters
|
|
734
734
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
735
735
|
# @option opts [Integer] :page Page number
|
|
736
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
736
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
737
737
|
# @option opts [String] :branch specify the branch to use
|
|
738
738
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
739
739
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -751,7 +751,7 @@ module Phrase
|
|
|
751
751
|
# @param [Hash] opts the optional parameters
|
|
752
752
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
753
753
|
# @option opts [Integer] :page Page number
|
|
754
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
754
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
755
755
|
# @option opts [String] :branch specify the branch to use
|
|
756
756
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
757
757
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -970,7 +970,7 @@ module Phrase
|
|
|
970
970
|
# @param [Hash] opts the optional parameters
|
|
971
971
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
972
972
|
# @option opts [Integer] :page Page number
|
|
973
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
973
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
974
974
|
# @option opts [String] :branch specify the branch to use
|
|
975
975
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
976
976
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -987,7 +987,7 @@ module Phrase
|
|
|
987
987
|
# @param [Hash] opts the optional parameters
|
|
988
988
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
989
989
|
# @option opts [Integer] :page Page number
|
|
990
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
990
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
991
991
|
# @option opts [String] :branch specify the branch to use
|
|
992
992
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
993
993
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -1129,7 +1129,7 @@ module Phrase
|
|
|
1129
1129
|
# @param [Hash] opts the optional parameters
|
|
1130
1130
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
1131
1131
|
# @option opts [Integer] :page Page number
|
|
1132
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
1132
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
1133
1133
|
# @return [Array<Translation>]
|
|
1134
1134
|
def translations_search(project_id, translations_search_parameters, opts = {})
|
|
1135
1135
|
data, _status_code, _headers = translations_search_with_http_info(project_id, translations_search_parameters, opts)
|
|
@@ -1143,7 +1143,7 @@ module Phrase
|
|
|
1143
1143
|
# @param [Hash] opts the optional parameters
|
|
1144
1144
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
1145
1145
|
# @option opts [Integer] :page Page number
|
|
1146
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
1146
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
1147
1147
|
# @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
|
|
1148
1148
|
def translations_search_with_http_info(project_id, translations_search_parameters, opts = {})
|
|
1149
1149
|
if @api_client.config.debugging
|
|
@@ -201,7 +201,7 @@ module Phrase
|
|
|
201
201
|
# @param [Hash] opts the optional parameters
|
|
202
202
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
203
203
|
# @option opts [Integer] :page Page number
|
|
204
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
204
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
205
205
|
# @option opts [String] :branch specify the branch to use
|
|
206
206
|
# @return [Array<Upload>]
|
|
207
207
|
def uploads_list(project_id, opts = {})
|
|
@@ -215,7 +215,7 @@ module Phrase
|
|
|
215
215
|
# @param [Hash] opts the optional parameters
|
|
216
216
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
217
217
|
# @option opts [Integer] :page Page number
|
|
218
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
218
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
219
219
|
# @option opts [String] :branch specify the branch to use
|
|
220
220
|
# @return [Array<(Response<(Array<Upload>)>, Integer, Hash)>] Response<(Array<Upload>)> data, response status code and response headers
|
|
221
221
|
def uploads_list_with_http_info(project_id, opts = {})
|
|
@@ -95,7 +95,7 @@ module Phrase
|
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
97
97
|
# @option opts [Integer] :page Page number
|
|
98
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
98
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
99
99
|
# @option opts [String] :branch specify the branch to use
|
|
100
100
|
# @return [Array<TranslationVersion>]
|
|
101
101
|
def versions_list(project_id, translation_id, opts = {})
|
|
@@ -110,7 +110,7 @@ module Phrase
|
|
|
110
110
|
# @param [Hash] opts the optional parameters
|
|
111
111
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
112
112
|
# @option opts [Integer] :page Page number
|
|
113
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
113
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
114
114
|
# @option opts [String] :branch specify the branch to use
|
|
115
115
|
# @return [Array<(Response<(Array<TranslationVersion>)>, Integer, Hash)>] Response<(Array<TranslationVersion>)> data, response status code and response headers
|
|
116
116
|
def versions_list_with_http_info(project_id, translation_id, opts = {})
|
|
@@ -379,7 +379,7 @@ module Phrase
|
|
|
379
379
|
# @param [Hash] opts the optional parameters
|
|
380
380
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
381
381
|
# @option opts [Integer] :page Page number
|
|
382
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
382
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
383
383
|
# @return [Array<Webhook>]
|
|
384
384
|
def webhooks_list(project_id, opts = {})
|
|
385
385
|
data, _status_code, _headers = webhooks_list_with_http_info(project_id, opts)
|
|
@@ -392,7 +392,7 @@ module Phrase
|
|
|
392
392
|
# @param [Hash] opts the optional parameters
|
|
393
393
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
394
394
|
# @option opts [Integer] :page Page number
|
|
395
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
|
395
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
396
396
|
# @return [Array<(Response<(Array<Webhook>)>, Integer, Hash)>] Response<(Array<Webhook>)> data, response status code and response headers
|
|
397
397
|
def webhooks_list_with_http_info(project_id, opts = {})
|
|
398
398
|
if @api_client.config.debugging
|
data/lib/phrase/api_client.rb
CHANGED
|
@@ -128,8 +128,8 @@ module Phrase
|
|
|
128
128
|
data = {}
|
|
129
129
|
form_params.each do |key, value|
|
|
130
130
|
case value
|
|
131
|
-
when ::File, ::Array, nil
|
|
132
|
-
# let typhoeus handle File, Array and nil parameters
|
|
131
|
+
when ::File, ::Tempfile, ::Array, nil
|
|
132
|
+
# let typhoeus handle File, Tempfile, Array and nil parameters
|
|
133
133
|
data[key] = value
|
|
134
134
|
else
|
|
135
135
|
data[key] = value.to_s
|
|
@@ -6,6 +6,8 @@ module Phrase
|
|
|
6
6
|
|
|
7
7
|
attr_accessor :name
|
|
8
8
|
|
|
9
|
+
attr_accessor :slug
|
|
10
|
+
|
|
9
11
|
attr_accessor :company
|
|
10
12
|
|
|
11
13
|
attr_accessor :created_at
|
|
@@ -17,6 +19,7 @@ module Phrase
|
|
|
17
19
|
{
|
|
18
20
|
:'id' => :'id',
|
|
19
21
|
:'name' => :'name',
|
|
22
|
+
:'slug' => :'slug',
|
|
20
23
|
:'company' => :'company',
|
|
21
24
|
:'created_at' => :'created_at',
|
|
22
25
|
:'updated_at' => :'updated_at'
|
|
@@ -28,6 +31,7 @@ module Phrase
|
|
|
28
31
|
{
|
|
29
32
|
:'id' => :'String',
|
|
30
33
|
:'name' => :'String',
|
|
34
|
+
:'slug' => :'String',
|
|
31
35
|
:'company' => :'String',
|
|
32
36
|
:'created_at' => :'DateTime',
|
|
33
37
|
:'updated_at' => :'DateTime'
|
|
@@ -63,6 +67,10 @@ module Phrase
|
|
|
63
67
|
self.name = attributes[:'name']
|
|
64
68
|
end
|
|
65
69
|
|
|
70
|
+
if attributes.key?(:'slug')
|
|
71
|
+
self.slug = attributes[:'slug']
|
|
72
|
+
end
|
|
73
|
+
|
|
66
74
|
if attributes.key?(:'company')
|
|
67
75
|
self.company = attributes[:'company']
|
|
68
76
|
end
|
|
@@ -96,6 +104,7 @@ module Phrase
|
|
|
96
104
|
self.class == o.class &&
|
|
97
105
|
id == o.id &&
|
|
98
106
|
name == o.name &&
|
|
107
|
+
slug == o.slug &&
|
|
99
108
|
company == o.company &&
|
|
100
109
|
created_at == o.created_at &&
|
|
101
110
|
updated_at == o.updated_at
|
|
@@ -110,7 +119,7 @@ module Phrase
|
|
|
110
119
|
# Calculates hash code according to all attributes.
|
|
111
120
|
# @return [Integer] Hash code
|
|
112
121
|
def hash
|
|
113
|
-
[id, name, company, created_at, updated_at].hash
|
|
122
|
+
[id, name, slug, company, created_at, updated_at].hash
|
|
114
123
|
end
|
|
115
124
|
|
|
116
125
|
# Builds the object from hash
|