phrase 0.4.31 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +6 -0
- data/LICENSE +17 -18
- data/README.md +449 -280
- data/Rakefile +7 -4
- data/docs/Account.md +27 -0
- data/docs/AccountDetails.md +27 -0
- data/docs/AccountDetails1.md +17 -0
- data/docs/AccountsApi.md +134 -0
- data/docs/AffectedCount.md +17 -0
- data/docs/AffectedResources.md +17 -0
- data/docs/Authorization.md +31 -0
- data/docs/AuthorizationCreateParameters.md +21 -0
- data/docs/AuthorizationUpdateParameters.md +21 -0
- data/docs/AuthorizationWithToken.md +33 -0
- data/docs/AuthorizationWithToken1.md +17 -0
- data/docs/AuthorizationsApi.md +321 -0
- data/docs/BitbucketSync.md +27 -0
- data/docs/BitbucketSyncApi.md +197 -0
- data/docs/BitbucketSyncExportParameters.md +17 -0
- data/docs/BitbucketSyncExportResponse.md +17 -0
- data/docs/BitbucketSyncImportParameters.md +17 -0
- data/docs/BlacklistedKey.md +23 -0
- data/docs/BlacklistedKeyCreateParameters.md +17 -0
- data/docs/BlacklistedKeyUpdateParameters.md +17 -0
- data/docs/BlacklistedKeysApi.md +333 -0
- data/docs/Branch.md +29 -0
- data/docs/BranchCreateParameters.md +17 -0
- data/docs/BranchMergeParameters.md +17 -0
- data/docs/BranchUpdateParameters.md +17 -0
- data/docs/BranchesApi.md +459 -0
- data/docs/Comment.md +25 -0
- data/docs/CommentCreateParameters.md +19 -0
- data/docs/CommentMarkReadParameters.md +17 -0
- data/docs/CommentUpdateParameters.md +19 -0
- data/docs/CommentsApi.md +548 -0
- data/docs/Distribution.md +29 -0
- data/docs/DistributionCreateParameters.md +29 -0
- data/docs/DistributionPreview.md +29 -0
- data/docs/DistributionUpdateParameters.md +29 -0
- data/docs/DistributionsApi.md +331 -0
- data/docs/Document.md +23 -0
- data/docs/DocumentsApi.md +137 -0
- data/docs/Format.md +35 -0
- data/docs/FormatsApi.md +68 -0
- data/docs/GitHubSyncApi.md +130 -0
- data/docs/GitLabSyncApi.md +463 -0
- data/docs/GithubSyncExportParameters.md +17 -0
- data/docs/GithubSyncImportParameters.md +17 -0
- data/docs/GitlabSync.md +37 -0
- data/docs/GitlabSyncExport.md +19 -0
- data/docs/GitlabSyncExportParameters.md +17 -0
- data/docs/GitlabSyncHistory.md +25 -0
- data/docs/GitlabSyncImportParameters.md +17 -0
- data/docs/GlossariesApi.md +331 -0
- data/docs/Glossary.md +25 -0
- data/docs/GlossaryCreateParameters.md +21 -0
- data/docs/GlossaryTerm.md +31 -0
- data/docs/GlossaryTermCreateParameters.md +23 -0
- data/docs/GlossaryTermTranslation.md +25 -0
- data/docs/GlossaryTermTranslationCreateParameters.md +19 -0
- data/docs/GlossaryTermTranslationUpdateParameters.md +19 -0
- data/docs/GlossaryTermTranslationsApi.md +213 -0
- data/docs/GlossaryTermUpdateParameters.md +23 -0
- data/docs/GlossaryTermsApi.md +341 -0
- data/docs/GlossaryUpdateParameters.md +21 -0
- data/docs/InlineResponse422.md +19 -0
- data/docs/InlineResponse422Errors.md +21 -0
- data/docs/Invitation.md +35 -0
- data/docs/InvitationCreateParameters.md +25 -0
- data/docs/InvitationUpdateParameters.md +23 -0
- data/docs/InvitationsApi.md +395 -0
- data/docs/Job.md +29 -0
- data/docs/JobCompleteParameters.md +17 -0
- data/docs/JobCreateParameters.md +27 -0
- data/docs/JobDetails.md +37 -0
- data/docs/JobDetails1.md +23 -0
- data/docs/JobKeysCreateParameters.md +19 -0
- data/docs/JobLocale.md +23 -0
- data/docs/JobLocaleCompleteParameters.md +17 -0
- data/docs/JobLocaleReopenParameters.md +17 -0
- data/docs/JobLocaleUpdateParameters.md +21 -0
- data/docs/JobLocalesApi.md +483 -0
- data/docs/JobLocalesCreateParameters.md +21 -0
- data/docs/JobPreview.md +21 -0
- data/docs/JobReopenParameters.md +17 -0
- data/docs/JobStartParameters.md +17 -0
- data/docs/JobUpdateParameters.md +23 -0
- data/docs/JobsApi.md +674 -0
- data/docs/KeyCreateParameters.md +45 -0
- data/docs/KeyPreview.md +21 -0
- data/docs/KeyUpdateParameters.md +45 -0
- data/docs/KeysApi.md +609 -0
- data/docs/KeysSearchParameters.md +25 -0
- data/docs/KeysTagParameters.md +23 -0
- data/docs/KeysUntagParameters.md +23 -0
- data/docs/Locale.md +35 -0
- data/docs/LocaleCreateParameters.md +35 -0
- data/docs/LocaleDetails.md +37 -0
- data/docs/LocaleDetails1.md +17 -0
- data/docs/LocalePreview.md +21 -0
- data/docs/LocaleStatistics.md +29 -0
- data/docs/LocaleUpdateParameters.md +35 -0
- data/docs/LocalesApi.md +428 -0
- data/docs/Member.md +25 -0
- data/docs/MemberUpdateParameters.md +23 -0
- data/docs/MembersApi.md +267 -0
- data/docs/OrderConfirmParameters.md +17 -0
- data/docs/OrderCreateParameters.md +43 -0
- data/docs/OrdersApi.md +337 -0
- data/docs/Project.md +31 -0
- data/docs/ProjectCreateParameters.md +29 -0
- data/docs/ProjectDetails.md +33 -0
- data/docs/ProjectDetails1.md +19 -0
- data/docs/ProjectLocales.md +27 -0
- data/docs/ProjectLocales1.md +17 -0
- data/docs/ProjectShort.md +25 -0
- data/docs/ProjectUpdateParameters.md +27 -0
- data/docs/ProjectsApi.md +321 -0
- data/docs/Release.md +37 -0
- data/docs/ReleaseCreateParameters.md +21 -0
- data/docs/ReleasePreview.md +37 -0
- data/docs/ReleaseUpdateParameters.md +21 -0
- data/docs/ReleasesApi.md +407 -0
- data/docs/Screenshot.md +29 -0
- data/docs/ScreenshotCreateParameters.md +21 -0
- data/docs/ScreenshotMarker.md +27 -0
- data/docs/ScreenshotMarkerCreateParameters.md +19 -0
- data/docs/ScreenshotMarkerUpdateParameters.md +19 -0
- data/docs/ScreenshotMarkersApi.md +337 -0
- data/docs/ScreenshotUpdateParameters.md +21 -0
- data/docs/ScreenshotsApi.md +331 -0
- data/docs/Space.md +27 -0
- data/docs/SpaceCreateParameters.md +17 -0
- data/docs/SpaceUpdateParameters.md +17 -0
- data/docs/SpacesApi.md +529 -0
- data/docs/SpacesProjectsCreateParameters.md +17 -0
- data/docs/StyleGuidesApi.md +331 -0
- data/docs/Styleguide.md +23 -0
- data/docs/StyleguideCreateParameters.md +41 -0
- data/docs/StyleguideDetails.md +49 -0
- data/docs/StyleguideDetails1.md +41 -0
- data/docs/StyleguidePreview.md +19 -0
- data/docs/StyleguideUpdateParameters.md +41 -0
- data/docs/Tag.md +23 -0
- data/docs/TagCreateParameters.md +19 -0
- data/docs/TagWithStats.md +25 -0
- data/docs/TagWithStats1.md +17 -0
- data/docs/TagWithStats1Statistics.md +23 -0
- data/docs/TagWithStats1Statistics1.md +19 -0
- data/docs/TagsApi.md +271 -0
- data/docs/Team.md +29 -0
- data/docs/TeamCreateParameters.md +17 -0
- data/docs/TeamDetail.md +29 -0
- data/docs/TeamUpdateParameters.md +17 -0
- data/docs/TeamsApi.md +721 -0
- data/docs/TeamsProjectsCreateParameters.md +17 -0
- data/docs/TeamsSpacesCreateParameters.md +17 -0
- data/docs/TeamsUsersCreateParameters.md +17 -0
- data/docs/Translation.md +37 -0
- data/docs/TranslationCreateParameters.md +31 -0
- data/docs/TranslationDetails.md +41 -0
- data/docs/TranslationDetails1.md +19 -0
- data/docs/TranslationExcludeParameters.md +17 -0
- data/docs/TranslationIncludeParameters.md +17 -0
- data/docs/TranslationKey.md +33 -0
- data/docs/TranslationKeyDetails.md +51 -0
- data/docs/TranslationKeyDetails1.md +33 -0
- data/docs/TranslationOrder.md +49 -0
- data/docs/TranslationReviewParameters.md +17 -0
- data/docs/TranslationUnverifyParameters.md +17 -0
- data/docs/TranslationUpdateParameters.md +27 -0
- data/docs/TranslationVerifyParameters.md +17 -0
- data/docs/TranslationVersion.md +31 -0
- data/docs/TranslationVersionWithUser.md +33 -0
- data/docs/TranslationVersionWithUser1.md +17 -0
- data/docs/TranslationsApi.md +1148 -0
- data/docs/TranslationsExcludeParameters.md +23 -0
- data/docs/TranslationsIncludeParameters.md +23 -0
- data/docs/TranslationsReviewParameters.md +19 -0
- data/docs/TranslationsSearchParameters.md +23 -0
- data/docs/TranslationsUnverifyParameters.md +23 -0
- data/docs/TranslationsVerifyParameters.md +23 -0
- data/docs/Upload.md +31 -0
- data/docs/UploadCreateParameters.md +45 -0
- data/docs/UploadSummary.md +31 -0
- data/docs/UploadsApi.md +234 -0
- data/docs/User.md +29 -0
- data/docs/UserPreview.md +21 -0
- data/docs/UsersApi.md +68 -0
- data/docs/VersionsHistoryApi.md +146 -0
- data/docs/Webhook.md +29 -0
- data/docs/WebhookCreateParameters.md +23 -0
- data/docs/WebhookUpdateParameters.md +23 -0
- data/docs/WebhooksApi.md +394 -0
- data/git_push.sh +58 -0
- data/lib/phrase.rb +212 -55
- data/lib/phrase/api/accounts_api.rb +142 -0
- data/lib/phrase/api/authorizations_api.rb +348 -0
- data/lib/phrase/api/bitbucket_sync_api.rb +219 -0
- data/lib/phrase/api/blacklisted_keys_api.rb +381 -0
- data/lib/phrase/api/branches_api.rb +526 -0
- data/lib/phrase/api/comments_api.rb +659 -0
- data/lib/phrase/api/distributions_api.rb +378 -0
- data/lib/phrase/api/documents_api.rb +152 -0
- data/lib/phrase/api/formats_api.rb +70 -0
- data/lib/phrase/api/git_hub_sync_api.rb +146 -0
- data/lib/phrase/api/git_lab_sync_api.rb +510 -0
- data/lib/phrase/api/glossaries_api.rb +378 -0
- data/lib/phrase/api/glossary_term_translations_api.rb +270 -0
- data/lib/phrase/api/glossary_terms_api.rb +408 -0
- data/lib/phrase/api/invitations_api.rb +450 -0
- data/lib/phrase/api/job_locales_api.rb +589 -0
- data/lib/phrase/api/jobs_api.rb +792 -0
- data/lib/phrase/api/keys_api.rb +702 -0
- data/lib/phrase/api/locales_api.rb +499 -0
- data/lib/phrase/api/members_api.rb +304 -0
- data/lib/phrase/api/orders_api.rb +387 -0
- data/lib/phrase/api/projects_api.rb +348 -0
- data/lib/phrase/api/releases_api.rb +486 -0
- data/lib/phrase/api/screenshot_markers_api.rb +396 -0
- data/lib/phrase/api/screenshots_api.rb +378 -0
- data/lib/phrase/api/spaces_api.rb +610 -0
- data/lib/phrase/api/style_guides_api.rb +378 -0
- data/lib/phrase/api/tags_api.rb +307 -0
- data/lib/phrase/api/teams_api.rb +840 -0
- data/lib/phrase/api/translations_api.rb +1353 -0
- data/lib/phrase/api/uploads_api.rb +273 -0
- data/lib/phrase/api/users_api.rb +70 -0
- data/lib/phrase/api/versions_history_api.rb +172 -0
- data/lib/phrase/api/webhooks_api.rb +448 -0
- data/lib/phrase/api_client.rb +376 -0
- data/lib/phrase/api_error.rb +45 -0
- data/lib/phrase/configuration.rb +243 -0
- data/lib/phrase/models/account.rb +239 -0
- data/lib/phrase/models/account_details.rb +247 -0
- data/lib/phrase/models/account_details1.rb +194 -0
- data/lib/phrase/models/affected_count.rb +194 -0
- data/lib/phrase/models/affected_resources.rb +194 -0
- data/lib/phrase/models/authorization.rb +259 -0
- data/lib/phrase/models/authorization_create_parameters.rb +217 -0
- data/lib/phrase/models/authorization_update_parameters.rb +217 -0
- data/lib/phrase/models/authorization_with_token.rb +276 -0
- data/lib/phrase/models/authorization_with_token1.rb +194 -0
- data/lib/phrase/models/bitbucket_sync.rb +241 -0
- data/lib/phrase/models/bitbucket_sync_export_parameters.rb +195 -0
- data/lib/phrase/models/bitbucket_sync_export_response.rb +194 -0
- data/lib/phrase/models/bitbucket_sync_import_parameters.rb +195 -0
- data/lib/phrase/models/blacklisted_key.rb +221 -0
- data/lib/phrase/models/blacklisted_key_create_parameters.rb +195 -0
- data/lib/phrase/models/blacklisted_key_update_parameters.rb +195 -0
- data/lib/phrase/models/branch.rb +248 -0
- data/lib/phrase/models/branch_create_parameters.rb +195 -0
- data/lib/phrase/models/branch_merge_parameters.rb +195 -0
- data/lib/phrase/models/branch_update_parameters.rb +195 -0
- data/lib/phrase/models/comment.rb +230 -0
- data/lib/phrase/models/comment_create_parameters.rb +205 -0
- data/lib/phrase/models/comment_mark_read_parameters.rb +195 -0
- data/lib/phrase/models/comment_update_parameters.rb +205 -0
- data/lib/phrase/models/distribution.rb +252 -0
- data/lib/phrase/models/distribution_create_parameters.rb +259 -0
- data/lib/phrase/models/distribution_preview.rb +250 -0
- data/lib/phrase/models/distribution_update_parameters.rb +259 -0
- data/lib/phrase/models/document.rb +221 -0
- data/lib/phrase/models/format.rb +275 -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/gitlab_sync.rb +284 -0
- data/lib/phrase/models/gitlab_sync_export.rb +203 -0
- data/lib/phrase/models/gitlab_sync_export_parameters.rb +195 -0
- data/lib/phrase/models/gitlab_sync_history.rb +232 -0
- data/lib/phrase/models/gitlab_sync_import_parameters.rb +195 -0
- data/lib/phrase/models/glossary.rb +232 -0
- data/lib/phrase/models/glossary_create_parameters.rb +217 -0
- data/lib/phrase/models/glossary_term.rb +259 -0
- data/lib/phrase/models/glossary_term_create_parameters.rb +225 -0
- data/lib/phrase/models/glossary_term_translation.rb +230 -0
- data/lib/phrase/models/glossary_term_translation_create_parameters.rb +205 -0
- data/lib/phrase/models/glossary_term_translation_update_parameters.rb +205 -0
- data/lib/phrase/models/glossary_term_update_parameters.rb +225 -0
- data/lib/phrase/models/glossary_update_parameters.rb +217 -0
- data/lib/phrase/models/inline_response422.rb +205 -0
- data/lib/phrase/models/inline_response422_errors.rb +212 -0
- data/lib/phrase/models/invitation.rb +279 -0
- data/lib/phrase/models/invitation_create_parameters.rb +237 -0
- data/lib/phrase/models/invitation_update_parameters.rb +227 -0
- data/lib/phrase/models/job.rb +248 -0
- data/lib/phrase/models/job_complete_parameters.rb +195 -0
- data/lib/phrase/models/job_create_parameters.rb +249 -0
- data/lib/phrase/models/job_details.rb +296 -0
- data/lib/phrase/models/job_details1.rb +225 -0
- data/lib/phrase/models/job_keys_create_parameters.rb +207 -0
- data/lib/phrase/models/job_locale.rb +223 -0
- data/lib/phrase/models/job_locale_complete_parameters.rb +195 -0
- data/lib/phrase/models/job_locale_reopen_parameters.rb +195 -0
- data/lib/phrase/models/job_locale_update_parameters.rb +217 -0
- data/lib/phrase/models/job_locales_create_parameters.rb +217 -0
- data/lib/phrase/models/job_preview.rb +212 -0
- data/lib/phrase/models/job_reopen_parameters.rb +195 -0
- data/lib/phrase/models/job_start_parameters.rb +195 -0
- data/lib/phrase/models/job_update_parameters.rb +225 -0
- data/lib/phrase/models/key_create_parameters.rb +335 -0
- data/lib/phrase/models/key_preview.rb +212 -0
- data/lib/phrase/models/key_update_parameters.rb +335 -0
- data/lib/phrase/models/keys_search_parameters.rb +235 -0
- data/lib/phrase/models/keys_tag_parameters.rb +225 -0
- data/lib/phrase/models/keys_untag_parameters.rb +225 -0
- data/lib/phrase/models/locale.rb +277 -0
- data/lib/phrase/models/locale_create_parameters.rb +285 -0
- data/lib/phrase/models/locale_details.rb +294 -0
- data/lib/phrase/models/locale_details1.rb +194 -0
- data/lib/phrase/models/locale_preview.rb +212 -0
- data/lib/phrase/models/locale_statistics.rb +248 -0
- data/lib/phrase/models/locale_update_parameters.rb +285 -0
- data/lib/phrase/models/member.rb +232 -0
- data/lib/phrase/models/member_update_parameters.rb +227 -0
- data/lib/phrase/models/order_confirm_parameters.rb +195 -0
- data/lib/phrase/models/order_create_parameters.rb +327 -0
- data/lib/phrase/models/project.rb +257 -0
- data/lib/phrase/models/project_create_parameters.rb +255 -0
- data/lib/phrase/models/project_details.rb +274 -0
- data/lib/phrase/models/project_details1.rb +203 -0
- data/lib/phrase/models/project_locales.rb +249 -0
- data/lib/phrase/models/project_locales1.rb +196 -0
- data/lib/phrase/models/project_short.rb +230 -0
- data/lib/phrase/models/project_update_parameters.rb +245 -0
- data/lib/phrase/models/release.rb +290 -0
- data/lib/phrase/models/release_create_parameters.rb +217 -0
- data/lib/phrase/models/release_preview.rb +290 -0
- data/lib/phrase/models/release_update_parameters.rb +217 -0
- data/lib/phrase/models/screenshot.rb +248 -0
- data/lib/phrase/models/screenshot_create_parameters.rb +215 -0
- data/lib/phrase/models/screenshot_marker.rb +239 -0
- data/lib/phrase/models/screenshot_marker_create_parameters.rb +205 -0
- data/lib/phrase/models/screenshot_marker_update_parameters.rb +205 -0
- data/lib/phrase/models/screenshot_update_parameters.rb +215 -0
- data/lib/phrase/models/space.rb +241 -0
- data/lib/phrase/models/space_create_parameters.rb +195 -0
- data/lib/phrase/models/space_update_parameters.rb +195 -0
- data/lib/phrase/models/spaces_projects_create_parameters.rb +195 -0
- data/lib/phrase/models/styleguide.rb +221 -0
- data/lib/phrase/models/styleguide_create_parameters.rb +315 -0
- data/lib/phrase/models/styleguide_details.rb +346 -0
- data/lib/phrase/models/styleguide_details1.rb +302 -0
- data/lib/phrase/models/styleguide_preview.rb +203 -0
- data/lib/phrase/models/styleguide_update_parameters.rb +315 -0
- data/lib/phrase/models/tag.rb +221 -0
- data/lib/phrase/models/tag_create_parameters.rb +205 -0
- data/lib/phrase/models/tag_with_stats.rb +240 -0
- data/lib/phrase/models/tag_with_stats1.rb +196 -0
- data/lib/phrase/models/tag_with_stats1_statistics.rb +221 -0
- data/lib/phrase/models/tag_with_stats1_statistics1.rb +203 -0
- data/lib/phrase/models/team.rb +254 -0
- data/lib/phrase/models/team_create_parameters.rb +195 -0
- data/lib/phrase/models/team_detail.rb +254 -0
- data/lib/phrase/models/team_update_parameters.rb +195 -0
- data/lib/phrase/models/teams_projects_create_parameters.rb +195 -0
- data/lib/phrase/models/teams_spaces_create_parameters.rb +195 -0
- data/lib/phrase/models/teams_users_create_parameters.rb +195 -0
- data/lib/phrase/models/translation.rb +286 -0
- data/lib/phrase/models/translation_create_parameters.rb +265 -0
- data/lib/phrase/models/translation_details.rb +312 -0
- data/lib/phrase/models/translation_details1.rb +203 -0
- data/lib/phrase/models/translation_exclude_parameters.rb +195 -0
- data/lib/phrase/models/translation_include_parameters.rb +195 -0
- data/lib/phrase/models/translation_key.rb +268 -0
- data/lib/phrase/models/translation_key_details.rb +357 -0
- data/lib/phrase/models/translation_key_details1.rb +266 -0
- data/lib/phrase/models/translation_order.rb +340 -0
- data/lib/phrase/models/translation_review_parameters.rb +195 -0
- data/lib/phrase/models/translation_unverify_parameters.rb +195 -0
- data/lib/phrase/models/translation_update_parameters.rb +245 -0
- data/lib/phrase/models/translation_verify_parameters.rb +195 -0
- data/lib/phrase/models/translation_version.rb +257 -0
- data/lib/phrase/models/translation_version_with_user.rb +274 -0
- data/lib/phrase/models/translation_version_with_user1.rb +194 -0
- data/lib/phrase/models/translations_exclude_parameters.rb +225 -0
- data/lib/phrase/models/translations_include_parameters.rb +225 -0
- data/lib/phrase/models/translations_review_parameters.rb +205 -0
- data/lib/phrase/models/translations_search_parameters.rb +225 -0
- data/lib/phrase/models/translations_unverify_parameters.rb +225 -0
- data/lib/phrase/models/translations_verify_parameters.rb +225 -0
- data/lib/phrase/models/upload.rb +257 -0
- data/lib/phrase/models/upload_create_parameters.rb +335 -0
- data/lib/phrase/models/upload_summary.rb +257 -0
- data/lib/phrase/models/user.rb +248 -0
- data/lib/phrase/models/user_preview.rb +212 -0
- data/lib/phrase/models/webhook.rb +250 -0
- data/lib/phrase/models/webhook_create_parameters.rb +225 -0
- data/lib/phrase/models/webhook_update_parameters.rb +225 -0
- data/lib/phrase/response.rb +41 -0
- data/lib/phrase/version.rb +1 -1
- data/phrase.gemspec +27 -27
- data/spec/api/accounts_api_spec.rb +50 -0
- data/spec/api/authorizations_api_spec.rb +90 -0
- data/spec/api/bitbucket_sync_api_spec.rb +64 -0
- data/spec/api/blacklisted_keys_api_spec.rb +96 -0
- data/spec/api/branches_api_spec.rb +124 -0
- data/spec/api/comments_api_spec.rb +151 -0
- data/spec/api/distributions_api_spec.rb +95 -0
- data/spec/api/documents_api_spec.rb +52 -0
- data/spec/api/formats_api_spec.rb +35 -0
- data/spec/api/git_hub_sync_api_spec.rb +49 -0
- data/spec/api/git_lab_sync_api_spec.rb +125 -0
- data/spec/api/glossaries_api_spec.rb +95 -0
- data/spec/api/glossary_term_translations_api_spec.rb +72 -0
- data/spec/api/glossary_terms_api_spec.rb +100 -0
- data/spec/api/invitations_api_spec.rb +109 -0
- data/spec/api/job_locales_api_spec.rb +135 -0
- data/spec/api/jobs_api_spec.rb +177 -0
- data/spec/api/keys_api_spec.rb +162 -0
- data/spec/api/locales_api_spec.rb +126 -0
- data/spec/api/members_api_spec.rb +81 -0
- data/spec/api/orders_api_spec.rb +98 -0
- data/spec/api/projects_api_spec.rb +90 -0
- data/spec/api/releases_api_spec.rb +115 -0
- data/spec/api/screenshot_markers_api_spec.rb +98 -0
- data/spec/api/screenshots_api_spec.rb +95 -0
- data/spec/api/spaces_api_spec.rb +141 -0
- data/spec/api/style_guides_api_spec.rb +95 -0
- data/spec/api/tags_api_spec.rb +83 -0
- data/spec/api/teams_api_spec.rb +185 -0
- data/spec/api/translations_api_spec.rb +287 -0
- data/spec/api/uploads_api_spec.rb +82 -0
- data/spec/api/users_api_spec.rb +35 -0
- data/spec/api/versions_history_api_spec.rb +56 -0
- data/spec/api/webhooks_api_spec.rb +109 -0
- data/spec/api_client_spec.rb +214 -0
- data/spec/configuration_spec.rb +30 -0
- data/spec/models/account_details1_spec.rb +29 -0
- data/spec/models/account_details_spec.rb +59 -0
- data/spec/models/account_spec.rb +59 -0
- data/spec/models/affected_count_spec.rb +29 -0
- data/spec/models/affected_resources_spec.rb +29 -0
- data/spec/models/authorization_create_parameters_spec.rb +41 -0
- data/spec/models/authorization_spec.rb +71 -0
- data/spec/models/authorization_update_parameters_spec.rb +41 -0
- data/spec/models/authorization_with_token1_spec.rb +29 -0
- data/spec/models/authorization_with_token_spec.rb +77 -0
- data/spec/models/bitbucket_sync_export_parameters_spec.rb +29 -0
- data/spec/models/bitbucket_sync_export_response_spec.rb +29 -0
- data/spec/models/bitbucket_sync_import_parameters_spec.rb +29 -0
- data/spec/models/bitbucket_sync_spec.rb +59 -0
- data/spec/models/blacklisted_key_create_parameters_spec.rb +29 -0
- data/spec/models/blacklisted_key_spec.rb +47 -0
- data/spec/models/blacklisted_key_update_parameters_spec.rb +29 -0
- data/spec/models/branch_create_parameters_spec.rb +29 -0
- data/spec/models/branch_merge_parameters_spec.rb +29 -0
- data/spec/models/branch_spec.rb +65 -0
- data/spec/models/branch_update_parameters_spec.rb +29 -0
- data/spec/models/comment_create_parameters_spec.rb +35 -0
- data/spec/models/comment_mark_read_parameters_spec.rb +29 -0
- data/spec/models/comment_spec.rb +53 -0
- data/spec/models/comment_update_parameters_spec.rb +35 -0
- data/spec/models/distribution_create_parameters_spec.rb +65 -0
- data/spec/models/distribution_preview_spec.rb +65 -0
- data/spec/models/distribution_spec.rb +65 -0
- data/spec/models/distribution_update_parameters_spec.rb +65 -0
- data/spec/models/document_spec.rb +47 -0
- data/spec/models/format_spec.rb +83 -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/gitlab_sync_export_parameters_spec.rb +29 -0
- data/spec/models/gitlab_sync_export_spec.rb +35 -0
- data/spec/models/gitlab_sync_history_spec.rb +53 -0
- data/spec/models/gitlab_sync_import_parameters_spec.rb +29 -0
- data/spec/models/gitlab_sync_spec.rb +89 -0
- data/spec/models/glossary_create_parameters_spec.rb +41 -0
- data/spec/models/glossary_spec.rb +53 -0
- data/spec/models/glossary_term_create_parameters_spec.rb +47 -0
- data/spec/models/glossary_term_spec.rb +71 -0
- data/spec/models/glossary_term_translation_create_parameters_spec.rb +35 -0
- data/spec/models/glossary_term_translation_spec.rb +53 -0
- data/spec/models/glossary_term_translation_update_parameters_spec.rb +35 -0
- data/spec/models/glossary_term_update_parameters_spec.rb +47 -0
- data/spec/models/glossary_update_parameters_spec.rb +41 -0
- data/spec/models/inline_response422_errors_spec.rb +41 -0
- data/spec/models/inline_response422_spec.rb +35 -0
- data/spec/models/invitation_create_parameters_spec.rb +53 -0
- data/spec/models/invitation_spec.rb +83 -0
- data/spec/models/invitation_update_parameters_spec.rb +47 -0
- data/spec/models/job_complete_parameters_spec.rb +29 -0
- data/spec/models/job_create_parameters_spec.rb +59 -0
- data/spec/models/job_details1_spec.rb +47 -0
- data/spec/models/job_details_spec.rb +89 -0
- data/spec/models/job_keys_create_parameters_spec.rb +35 -0
- data/spec/models/job_locale_complete_parameters_spec.rb +29 -0
- data/spec/models/job_locale_reopen_parameters_spec.rb +29 -0
- data/spec/models/job_locale_spec.rb +47 -0
- data/spec/models/job_locale_update_parameters_spec.rb +41 -0
- data/spec/models/job_locales_create_parameters_spec.rb +41 -0
- data/spec/models/job_preview_spec.rb +41 -0
- data/spec/models/job_reopen_parameters_spec.rb +29 -0
- data/spec/models/job_spec.rb +65 -0
- data/spec/models/job_start_parameters_spec.rb +29 -0
- data/spec/models/job_update_parameters_spec.rb +47 -0
- data/spec/models/key_create_parameters_spec.rb +113 -0
- data/spec/models/key_preview_spec.rb +41 -0
- data/spec/models/key_update_parameters_spec.rb +113 -0
- data/spec/models/keys_search_parameters_spec.rb +53 -0
- data/spec/models/keys_tag_parameters_spec.rb +47 -0
- data/spec/models/keys_untag_parameters_spec.rb +47 -0
- data/spec/models/locale_create_parameters_spec.rb +83 -0
- data/spec/models/locale_details1_spec.rb +29 -0
- data/spec/models/locale_details_spec.rb +89 -0
- data/spec/models/locale_preview_spec.rb +41 -0
- data/spec/models/locale_spec.rb +83 -0
- data/spec/models/locale_statistics_spec.rb +65 -0
- data/spec/models/locale_update_parameters_spec.rb +83 -0
- data/spec/models/member_spec.rb +53 -0
- data/spec/models/member_update_parameters_spec.rb +47 -0
- data/spec/models/order_confirm_parameters_spec.rb +29 -0
- data/spec/models/order_create_parameters_spec.rb +107 -0
- data/spec/models/project_create_parameters_spec.rb +65 -0
- data/spec/models/project_details1_spec.rb +35 -0
- data/spec/models/project_details_spec.rb +77 -0
- data/spec/models/project_locales1_spec.rb +29 -0
- data/spec/models/project_locales_spec.rb +59 -0
- data/spec/models/project_short_spec.rb +53 -0
- data/spec/models/project_spec.rb +71 -0
- data/spec/models/project_update_parameters_spec.rb +59 -0
- data/spec/models/release_create_parameters_spec.rb +41 -0
- data/spec/models/release_preview_spec.rb +89 -0
- data/spec/models/release_spec.rb +89 -0
- data/spec/models/release_update_parameters_spec.rb +41 -0
- data/spec/models/screenshot_create_parameters_spec.rb +41 -0
- data/spec/models/screenshot_marker_create_parameters_spec.rb +35 -0
- data/spec/models/screenshot_marker_spec.rb +59 -0
- data/spec/models/screenshot_marker_update_parameters_spec.rb +35 -0
- data/spec/models/screenshot_spec.rb +65 -0
- data/spec/models/screenshot_update_parameters_spec.rb +41 -0
- data/spec/models/space_create_parameters_spec.rb +29 -0
- data/spec/models/space_spec.rb +59 -0
- data/spec/models/space_update_parameters_spec.rb +29 -0
- data/spec/models/spaces_projects_create_parameters_spec.rb +29 -0
- data/spec/models/styleguide_create_parameters_spec.rb +101 -0
- data/spec/models/styleguide_details1_spec.rb +101 -0
- data/spec/models/styleguide_details_spec.rb +125 -0
- data/spec/models/styleguide_preview_spec.rb +35 -0
- data/spec/models/styleguide_spec.rb +47 -0
- data/spec/models/styleguide_update_parameters_spec.rb +101 -0
- data/spec/models/tag_create_parameters_spec.rb +35 -0
- data/spec/models/tag_spec.rb +47 -0
- data/spec/models/tag_with_stats1_spec.rb +29 -0
- data/spec/models/tag_with_stats1_statistics1_spec.rb +35 -0
- data/spec/models/tag_with_stats1_statistics_spec.rb +47 -0
- data/spec/models/tag_with_stats_spec.rb +53 -0
- data/spec/models/team_create_parameters_spec.rb +29 -0
- data/spec/models/team_detail_spec.rb +65 -0
- data/spec/models/team_spec.rb +65 -0
- data/spec/models/team_update_parameters_spec.rb +29 -0
- data/spec/models/teams_projects_create_parameters_spec.rb +29 -0
- data/spec/models/teams_spaces_create_parameters_spec.rb +29 -0
- data/spec/models/teams_users_create_parameters_spec.rb +29 -0
- data/spec/models/translation_create_parameters_spec.rb +71 -0
- data/spec/models/translation_details1_spec.rb +35 -0
- data/spec/models/translation_details_spec.rb +101 -0
- data/spec/models/translation_exclude_parameters_spec.rb +29 -0
- data/spec/models/translation_include_parameters_spec.rb +29 -0
- data/spec/models/translation_key_details1_spec.rb +77 -0
- data/spec/models/translation_key_details_spec.rb +131 -0
- data/spec/models/translation_key_spec.rb +77 -0
- data/spec/models/translation_order_spec.rb +125 -0
- data/spec/models/translation_review_parameters_spec.rb +29 -0
- data/spec/models/translation_spec.rb +89 -0
- data/spec/models/translation_unverify_parameters_spec.rb +29 -0
- data/spec/models/translation_update_parameters_spec.rb +59 -0
- data/spec/models/translation_verify_parameters_spec.rb +29 -0
- data/spec/models/translation_version_spec.rb +71 -0
- data/spec/models/translation_version_with_user1_spec.rb +29 -0
- data/spec/models/translation_version_with_user_spec.rb +77 -0
- data/spec/models/translations_exclude_parameters_spec.rb +47 -0
- data/spec/models/translations_include_parameters_spec.rb +47 -0
- data/spec/models/translations_review_parameters_spec.rb +35 -0
- data/spec/models/translations_search_parameters_spec.rb +47 -0
- data/spec/models/translations_unverify_parameters_spec.rb +47 -0
- data/spec/models/translations_verify_parameters_spec.rb +47 -0
- data/spec/models/upload_create_parameters_spec.rb +113 -0
- data/spec/models/upload_spec.rb +71 -0
- data/spec/models/upload_summary_spec.rb +71 -0
- data/spec/models/user_preview_spec.rb +41 -0
- data/spec/models/user_spec.rb +65 -0
- data/spec/models/webhook_create_parameters_spec.rb +47 -0
- data/spec/models/webhook_spec.rb +65 -0
- data/spec/models/webhook_update_parameters_spec.rb +47 -0
- data/spec/spec_helper.rb +99 -0
- metadata +819 -188
- data/.gitignore +0 -25
- data/.travis.yml +0 -4
- data/Guardfile +0 -29
- data/bin/phrase +0 -8
- data/cacert.pem +0 -3366
- data/lib/ext/all.rb +0 -5
- data/lib/ext/hash.rb +0 -8
- data/lib/ext/object.rb +0 -130
- data/lib/ext/try.rb +0 -57
- data/lib/generators/phrase/install_generator.rb +0 -37
- data/lib/generators/templates/README +0 -11
- data/lib/generators/templates/phrase.rb +0 -21
- data/lib/phrase/adapters/fast_gettext.rb +0 -25
- data/lib/phrase/adapters/i18n.rb +0 -12
- data/lib/phrase/api.rb +0 -7
- data/lib/phrase/api/client.rb +0 -308
- data/lib/phrase/api/client/http.rb +0 -56
- data/lib/phrase/api/config.rb +0 -34
- data/lib/phrase/api/exceptions.rb +0 -9
- data/lib/phrase/api/query_params.rb +0 -22
- data/lib/phrase/backend.rb +0 -7
- data/lib/phrase/backend/base.rb +0 -6
- data/lib/phrase/backend/phrase_service.rb +0 -163
- data/lib/phrase/cache.rb +0 -34
- data/lib/phrase/config.rb +0 -94
- data/lib/phrase/delegate.rb +0 -36
- data/lib/phrase/delegate/fast_gettext.rb +0 -27
- data/lib/phrase/delegate/i18n.rb +0 -166
- data/lib/phrase/engine.rb +0 -14
- data/lib/phrase/formats.rb +0 -172
- data/lib/phrase/formats/angular_translate.rb +0 -19
- data/lib/phrase/formats/csv.rb +0 -19
- data/lib/phrase/formats/custom.rb +0 -40
- data/lib/phrase/formats/gettext.rb +0 -27
- data/lib/phrase/formats/gettext_template.rb +0 -19
- data/lib/phrase/formats/ini.rb +0 -19
- data/lib/phrase/formats/json.rb +0 -19
- data/lib/phrase/formats/laravel.rb +0 -19
- data/lib/phrase/formats/mozilla_properties.rb +0 -8
- data/lib/phrase/formats/nested_json.rb +0 -19
- data/lib/phrase/formats/node_json.rb +0 -23
- data/lib/phrase/formats/php_array.rb +0 -19
- data/lib/phrase/formats/play_properties.rb +0 -15
- data/lib/phrase/formats/plist.rb +0 -19
- data/lib/phrase/formats/properties.rb +0 -19
- data/lib/phrase/formats/properties_xml.rb +0 -19
- data/lib/phrase/formats/qt_phrase_book.rb +0 -19
- data/lib/phrase/formats/qt_translation_source.rb +0 -19
- data/lib/phrase/formats/resx.rb +0 -19
- data/lib/phrase/formats/resx_windowsphone.rb +0 -19
- data/lib/phrase/formats/simple_json.rb +0 -19
- data/lib/phrase/formats/strings.rb +0 -45
- data/lib/phrase/formats/tmx.rb +0 -19
- data/lib/phrase/formats/windows8_resource.rb +0 -19
- data/lib/phrase/formats/xliff.rb +0 -19
- data/lib/phrase/formats/xml.rb +0 -49
- data/lib/phrase/formats/yaml.rb +0 -19
- data/lib/phrase/formats/yaml_symfony.rb +0 -19
- data/lib/phrase/formats/yaml_symfony2.rb +0 -8
- data/lib/phrase/hash_flattener.rb +0 -21
- data/lib/phrase/tool.rb +0 -46
- data/lib/phrase/tool/commands.rb +0 -56
- data/lib/phrase/tool/commands/base.rb +0 -73
- data/lib/phrase/tool/commands/init.rb +0 -51
- data/lib/phrase/tool/commands/pull.rb +0 -109
- data/lib/phrase/tool/commands/push.rb +0 -163
- data/lib/phrase/tool/commands/show_help.rb +0 -26
- data/lib/phrase/tool/commands/show_version.rb +0 -17
- data/lib/phrase/tool/commands/tags.rb +0 -29
- data/lib/phrase/tool/config.rb +0 -120
- data/lib/phrase/tool/encoding_detector.rb +0 -17
- data/lib/phrase/tool/locale.rb +0 -41
- data/lib/phrase/tool/options.rb +0 -32
- data/lib/phrase/tool/options_factory.rb +0 -150
- data/lib/phrase/tool/tag_validator.rb +0 -9
- data/lib/phrase/view_helpers.rb +0 -19
@@ -0,0 +1,21 @@
|
|
1
|
+
# Phrase::JobLocalesCreateParameters
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**branch** | **String** | specify the branch to use | [optional]
|
8
|
+
**locale_id** | **String** | locale id | [optional]
|
9
|
+
**user_ids** | **Array<String>** | Array of user ids to be assigned to the job locale | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'Phrase'
|
15
|
+
|
16
|
+
instance = Phrase::JobLocalesCreateParameters.new(branch: my-feature-branch,
|
17
|
+
locale_id: abcd1234cdef1234abcd1234cdef1234,
|
18
|
+
user_ids: ["abcd1234cdef1234abcd1234cdef1234"])
|
19
|
+
```
|
20
|
+
|
21
|
+
|
data/docs/JobPreview.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Phrase::JobPreview
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**name** | **String** | | [optional]
|
9
|
+
**state** | **String** | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'Phrase'
|
15
|
+
|
16
|
+
instance = Phrase::JobPreview.new(id: null,
|
17
|
+
name: null,
|
18
|
+
state: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Phrase::JobReopenParameters
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**branch** | **String** | specify the branch to use | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Phrase'
|
13
|
+
|
14
|
+
instance = Phrase::JobReopenParameters.new(branch: my-feature-branch)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Phrase::JobStartParameters
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**branch** | **String** | specify the branch to use | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Phrase'
|
13
|
+
|
14
|
+
instance = Phrase::JobStartParameters.new(branch: my-feature-branch)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Phrase::JobUpdateParameters
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**branch** | **String** | specify the branch to use | [optional]
|
8
|
+
**name** | **String** | Job name | [optional]
|
9
|
+
**briefing** | **String** | Briefing for the translators | [optional]
|
10
|
+
**due_date** | **DateTime** | Date the job should be finished | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'Phrase'
|
16
|
+
|
17
|
+
instance = Phrase::JobUpdateParameters.new(branch: my-feature-branch,
|
18
|
+
name: de,
|
19
|
+
briefing: de-DE,
|
20
|
+
due_date: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
data/docs/JobsApi.md
ADDED
@@ -0,0 +1,674 @@
|
|
1
|
+
# Phrase::JobsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.phrase.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**job_complete**](JobsApi.md#job_complete) | **POST** /projects/{project_id}/jobs/{id}/complete | Complete a job
|
8
|
+
[**job_create**](JobsApi.md#job_create) | **POST** /projects/{project_id}/jobs | Create a job
|
9
|
+
[**job_delete**](JobsApi.md#job_delete) | **DELETE** /projects/{project_id}/jobs/{id} | Delete a job
|
10
|
+
[**job_keys_create**](JobsApi.md#job_keys_create) | **POST** /projects/{project_id}/jobs/{id}/keys | Add keys to job
|
11
|
+
[**job_keys_delete**](JobsApi.md#job_keys_delete) | **DELETE** /projects/{project_id}/jobs/{id}/keys | Remove keys from job
|
12
|
+
[**job_reopen**](JobsApi.md#job_reopen) | **POST** /projects/{project_id}/jobs/{id}/reopen | Reopen a job
|
13
|
+
[**job_show**](JobsApi.md#job_show) | **GET** /projects/{project_id}/jobs/{id} | Get a single job
|
14
|
+
[**job_start**](JobsApi.md#job_start) | **POST** /projects/{project_id}/jobs/{id}/start | Start a job
|
15
|
+
[**job_update**](JobsApi.md#job_update) | **PATCH** /projects/{project_id}/jobs/{id} | Update a job
|
16
|
+
[**jobs_list**](JobsApi.md#jobs_list) | **GET** /projects/{project_id}/jobs | List jobs
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
## job_complete
|
21
|
+
|
22
|
+
> JobDetails job_complete(project_id, id, job_complete_parameters, opts)
|
23
|
+
|
24
|
+
Complete a job
|
25
|
+
|
26
|
+
Mark a job as completed.
|
27
|
+
|
28
|
+
### Example
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# load the gem
|
32
|
+
require 'phrase'
|
33
|
+
# setup authorization
|
34
|
+
Phrase.configure do |config|
|
35
|
+
# Configure HTTP basic authorization: Basic
|
36
|
+
config.username = 'YOUR USERNAME'
|
37
|
+
config.password = 'YOUR PASSWORD'
|
38
|
+
|
39
|
+
# Configure API key authorization: Token
|
40
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
41
|
+
config.api_key_prefix['Authorization'] = 'token'
|
42
|
+
end
|
43
|
+
|
44
|
+
api_instance = Phrase::JobsApi.new
|
45
|
+
project_id = 'project_id_example' # String | Project ID
|
46
|
+
id = 'id_example' # String | ID
|
47
|
+
job_complete_parameters = Phrase::JobCompleteParameters.new # JobCompleteParameters |
|
48
|
+
opts = {
|
49
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
50
|
+
}
|
51
|
+
|
52
|
+
begin
|
53
|
+
#Complete a job
|
54
|
+
result = api_instance.job_complete(project_id, id, job_complete_parameters, opts)
|
55
|
+
pp result
|
56
|
+
rescue Phrase::ApiError => e
|
57
|
+
puts "Exception when calling JobsApi->job_complete: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
|
64
|
+
Name | Type | Description | Notes
|
65
|
+
------------- | ------------- | ------------- | -------------
|
66
|
+
**project_id** | **String**| Project ID |
|
67
|
+
**id** | **String**| ID |
|
68
|
+
**job_complete_parameters** | [**JobCompleteParameters**](JobCompleteParameters.md)| |
|
69
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
70
|
+
|
71
|
+
### Return type
|
72
|
+
|
73
|
+
Response<([**JobDetails**](JobDetails.md))>
|
74
|
+
|
75
|
+
### Authorization
|
76
|
+
|
77
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
78
|
+
|
79
|
+
### HTTP request headers
|
80
|
+
|
81
|
+
- **Content-Type**: application/json
|
82
|
+
- **Accept**: application/json
|
83
|
+
|
84
|
+
|
85
|
+
## job_create
|
86
|
+
|
87
|
+
> JobDetails job_create(project_id, job_create_parameters, opts)
|
88
|
+
|
89
|
+
Create a job
|
90
|
+
|
91
|
+
Create a new job.
|
92
|
+
|
93
|
+
### Example
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
# load the gem
|
97
|
+
require 'phrase'
|
98
|
+
# setup authorization
|
99
|
+
Phrase.configure do |config|
|
100
|
+
# Configure HTTP basic authorization: Basic
|
101
|
+
config.username = 'YOUR USERNAME'
|
102
|
+
config.password = 'YOUR PASSWORD'
|
103
|
+
|
104
|
+
# Configure API key authorization: Token
|
105
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
106
|
+
config.api_key_prefix['Authorization'] = 'token'
|
107
|
+
end
|
108
|
+
|
109
|
+
api_instance = Phrase::JobsApi.new
|
110
|
+
project_id = 'project_id_example' # String | Project ID
|
111
|
+
job_create_parameters = Phrase::JobCreateParameters.new # JobCreateParameters |
|
112
|
+
opts = {
|
113
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
114
|
+
}
|
115
|
+
|
116
|
+
begin
|
117
|
+
#Create a job
|
118
|
+
result = api_instance.job_create(project_id, job_create_parameters, opts)
|
119
|
+
pp result
|
120
|
+
rescue Phrase::ApiError => e
|
121
|
+
puts "Exception when calling JobsApi->job_create: #{e}"
|
122
|
+
end
|
123
|
+
```
|
124
|
+
|
125
|
+
### Parameters
|
126
|
+
|
127
|
+
|
128
|
+
Name | Type | Description | Notes
|
129
|
+
------------- | ------------- | ------------- | -------------
|
130
|
+
**project_id** | **String**| Project ID |
|
131
|
+
**job_create_parameters** | [**JobCreateParameters**](JobCreateParameters.md)| |
|
132
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
133
|
+
|
134
|
+
### Return type
|
135
|
+
|
136
|
+
Response<([**JobDetails**](JobDetails.md))>
|
137
|
+
|
138
|
+
### Authorization
|
139
|
+
|
140
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
141
|
+
|
142
|
+
### HTTP request headers
|
143
|
+
|
144
|
+
- **Content-Type**: application/json
|
145
|
+
- **Accept**: application/json
|
146
|
+
|
147
|
+
|
148
|
+
## job_delete
|
149
|
+
|
150
|
+
> job_delete(project_id, id, opts)
|
151
|
+
|
152
|
+
Delete a job
|
153
|
+
|
154
|
+
Delete an existing job.
|
155
|
+
|
156
|
+
### Example
|
157
|
+
|
158
|
+
```ruby
|
159
|
+
# load the gem
|
160
|
+
require 'phrase'
|
161
|
+
# setup authorization
|
162
|
+
Phrase.configure do |config|
|
163
|
+
# Configure HTTP basic authorization: Basic
|
164
|
+
config.username = 'YOUR USERNAME'
|
165
|
+
config.password = 'YOUR PASSWORD'
|
166
|
+
|
167
|
+
# Configure API key authorization: Token
|
168
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
169
|
+
config.api_key_prefix['Authorization'] = 'token'
|
170
|
+
end
|
171
|
+
|
172
|
+
api_instance = Phrase::JobsApi.new
|
173
|
+
project_id = 'project_id_example' # String | Project ID
|
174
|
+
id = 'id_example' # String | ID
|
175
|
+
opts = {
|
176
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
177
|
+
branch: 'my-feature-branch' # String | specify the branch to use
|
178
|
+
}
|
179
|
+
|
180
|
+
begin
|
181
|
+
#Delete a job
|
182
|
+
api_instance.job_delete(project_id, id, opts)
|
183
|
+
rescue Phrase::ApiError => e
|
184
|
+
puts "Exception when calling JobsApi->job_delete: #{e}"
|
185
|
+
end
|
186
|
+
```
|
187
|
+
|
188
|
+
### Parameters
|
189
|
+
|
190
|
+
|
191
|
+
Name | Type | Description | Notes
|
192
|
+
------------- | ------------- | ------------- | -------------
|
193
|
+
**project_id** | **String**| Project ID |
|
194
|
+
**id** | **String**| ID |
|
195
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
196
|
+
**branch** | **String**| specify the branch to use | [optional]
|
197
|
+
|
198
|
+
### Return type
|
199
|
+
|
200
|
+
Response<(nil (empty response body))>
|
201
|
+
|
202
|
+
### Authorization
|
203
|
+
|
204
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
205
|
+
|
206
|
+
### HTTP request headers
|
207
|
+
|
208
|
+
- **Content-Type**: Not defined
|
209
|
+
- **Accept**: Not defined
|
210
|
+
|
211
|
+
|
212
|
+
## job_keys_create
|
213
|
+
|
214
|
+
> JobDetails job_keys_create(project_id, id, job_keys_create_parameters, opts)
|
215
|
+
|
216
|
+
Add keys to job
|
217
|
+
|
218
|
+
Add multiple keys to a existing job.
|
219
|
+
|
220
|
+
### Example
|
221
|
+
|
222
|
+
```ruby
|
223
|
+
# load the gem
|
224
|
+
require 'phrase'
|
225
|
+
# setup authorization
|
226
|
+
Phrase.configure do |config|
|
227
|
+
# Configure HTTP basic authorization: Basic
|
228
|
+
config.username = 'YOUR USERNAME'
|
229
|
+
config.password = 'YOUR PASSWORD'
|
230
|
+
|
231
|
+
# Configure API key authorization: Token
|
232
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
233
|
+
config.api_key_prefix['Authorization'] = 'token'
|
234
|
+
end
|
235
|
+
|
236
|
+
api_instance = Phrase::JobsApi.new
|
237
|
+
project_id = 'project_id_example' # String | Project ID
|
238
|
+
id = 'id_example' # String | ID
|
239
|
+
job_keys_create_parameters = Phrase::JobKeysCreateParameters.new # JobKeysCreateParameters |
|
240
|
+
opts = {
|
241
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
242
|
+
}
|
243
|
+
|
244
|
+
begin
|
245
|
+
#Add keys to job
|
246
|
+
result = api_instance.job_keys_create(project_id, id, job_keys_create_parameters, opts)
|
247
|
+
pp result
|
248
|
+
rescue Phrase::ApiError => e
|
249
|
+
puts "Exception when calling JobsApi->job_keys_create: #{e}"
|
250
|
+
end
|
251
|
+
```
|
252
|
+
|
253
|
+
### Parameters
|
254
|
+
|
255
|
+
|
256
|
+
Name | Type | Description | Notes
|
257
|
+
------------- | ------------- | ------------- | -------------
|
258
|
+
**project_id** | **String**| Project ID |
|
259
|
+
**id** | **String**| ID |
|
260
|
+
**job_keys_create_parameters** | [**JobKeysCreateParameters**](JobKeysCreateParameters.md)| |
|
261
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
262
|
+
|
263
|
+
### Return type
|
264
|
+
|
265
|
+
Response<([**JobDetails**](JobDetails.md))>
|
266
|
+
|
267
|
+
### Authorization
|
268
|
+
|
269
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
270
|
+
|
271
|
+
### HTTP request headers
|
272
|
+
|
273
|
+
- **Content-Type**: application/json
|
274
|
+
- **Accept**: application/json
|
275
|
+
|
276
|
+
|
277
|
+
## job_keys_delete
|
278
|
+
|
279
|
+
> job_keys_delete(project_id, id, opts)
|
280
|
+
|
281
|
+
Remove keys from job
|
282
|
+
|
283
|
+
Remove multiple keys from existing job.
|
284
|
+
|
285
|
+
### Example
|
286
|
+
|
287
|
+
```ruby
|
288
|
+
# load the gem
|
289
|
+
require 'phrase'
|
290
|
+
# setup authorization
|
291
|
+
Phrase.configure do |config|
|
292
|
+
# Configure HTTP basic authorization: Basic
|
293
|
+
config.username = 'YOUR USERNAME'
|
294
|
+
config.password = 'YOUR PASSWORD'
|
295
|
+
|
296
|
+
# Configure API key authorization: Token
|
297
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
298
|
+
config.api_key_prefix['Authorization'] = 'token'
|
299
|
+
end
|
300
|
+
|
301
|
+
api_instance = Phrase::JobsApi.new
|
302
|
+
project_id = 'project_id_example' # String | Project ID
|
303
|
+
id = 'id_example' # String | ID
|
304
|
+
opts = {
|
305
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
306
|
+
branch: 'my-feature-branch', # String | specify the branch to use
|
307
|
+
translation_key_ids: ['[\"abcd1234cdef1234abcd1234cdef1234\"]'] # Array<String> | ids of keys that should added to the job
|
308
|
+
}
|
309
|
+
|
310
|
+
begin
|
311
|
+
#Remove keys from job
|
312
|
+
api_instance.job_keys_delete(project_id, id, opts)
|
313
|
+
rescue Phrase::ApiError => e
|
314
|
+
puts "Exception when calling JobsApi->job_keys_delete: #{e}"
|
315
|
+
end
|
316
|
+
```
|
317
|
+
|
318
|
+
### Parameters
|
319
|
+
|
320
|
+
|
321
|
+
Name | Type | Description | Notes
|
322
|
+
------------- | ------------- | ------------- | -------------
|
323
|
+
**project_id** | **String**| Project ID |
|
324
|
+
**id** | **String**| ID |
|
325
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
326
|
+
**branch** | **String**| specify the branch to use | [optional]
|
327
|
+
**translation_key_ids** | [**Array<String>**](String.md)| ids of keys that should added to the job | [optional]
|
328
|
+
|
329
|
+
### Return type
|
330
|
+
|
331
|
+
Response<(nil (empty response body))>
|
332
|
+
|
333
|
+
### Authorization
|
334
|
+
|
335
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
336
|
+
|
337
|
+
### HTTP request headers
|
338
|
+
|
339
|
+
- **Content-Type**: Not defined
|
340
|
+
- **Accept**: Not defined
|
341
|
+
|
342
|
+
|
343
|
+
## job_reopen
|
344
|
+
|
345
|
+
> JobDetails job_reopen(project_id, id, job_reopen_parameters, opts)
|
346
|
+
|
347
|
+
Reopen a job
|
348
|
+
|
349
|
+
Mark a job as uncompleted.
|
350
|
+
|
351
|
+
### Example
|
352
|
+
|
353
|
+
```ruby
|
354
|
+
# load the gem
|
355
|
+
require 'phrase'
|
356
|
+
# setup authorization
|
357
|
+
Phrase.configure do |config|
|
358
|
+
# Configure HTTP basic authorization: Basic
|
359
|
+
config.username = 'YOUR USERNAME'
|
360
|
+
config.password = 'YOUR PASSWORD'
|
361
|
+
|
362
|
+
# Configure API key authorization: Token
|
363
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
364
|
+
config.api_key_prefix['Authorization'] = 'token'
|
365
|
+
end
|
366
|
+
|
367
|
+
api_instance = Phrase::JobsApi.new
|
368
|
+
project_id = 'project_id_example' # String | Project ID
|
369
|
+
id = 'id_example' # String | ID
|
370
|
+
job_reopen_parameters = Phrase::JobReopenParameters.new # JobReopenParameters |
|
371
|
+
opts = {
|
372
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
373
|
+
}
|
374
|
+
|
375
|
+
begin
|
376
|
+
#Reopen a job
|
377
|
+
result = api_instance.job_reopen(project_id, id, job_reopen_parameters, opts)
|
378
|
+
pp result
|
379
|
+
rescue Phrase::ApiError => e
|
380
|
+
puts "Exception when calling JobsApi->job_reopen: #{e}"
|
381
|
+
end
|
382
|
+
```
|
383
|
+
|
384
|
+
### Parameters
|
385
|
+
|
386
|
+
|
387
|
+
Name | Type | Description | Notes
|
388
|
+
------------- | ------------- | ------------- | -------------
|
389
|
+
**project_id** | **String**| Project ID |
|
390
|
+
**id** | **String**| ID |
|
391
|
+
**job_reopen_parameters** | [**JobReopenParameters**](JobReopenParameters.md)| |
|
392
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
393
|
+
|
394
|
+
### Return type
|
395
|
+
|
396
|
+
Response<([**JobDetails**](JobDetails.md))>
|
397
|
+
|
398
|
+
### Authorization
|
399
|
+
|
400
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
401
|
+
|
402
|
+
### HTTP request headers
|
403
|
+
|
404
|
+
- **Content-Type**: application/json
|
405
|
+
- **Accept**: application/json
|
406
|
+
|
407
|
+
|
408
|
+
## job_show
|
409
|
+
|
410
|
+
> JobDetails job_show(project_id, id, opts)
|
411
|
+
|
412
|
+
Get a single job
|
413
|
+
|
414
|
+
Get details on a single job for a given project.
|
415
|
+
|
416
|
+
### Example
|
417
|
+
|
418
|
+
```ruby
|
419
|
+
# load the gem
|
420
|
+
require 'phrase'
|
421
|
+
# setup authorization
|
422
|
+
Phrase.configure do |config|
|
423
|
+
# Configure HTTP basic authorization: Basic
|
424
|
+
config.username = 'YOUR USERNAME'
|
425
|
+
config.password = 'YOUR PASSWORD'
|
426
|
+
|
427
|
+
# Configure API key authorization: Token
|
428
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
429
|
+
config.api_key_prefix['Authorization'] = 'token'
|
430
|
+
end
|
431
|
+
|
432
|
+
api_instance = Phrase::JobsApi.new
|
433
|
+
project_id = 'project_id_example' # String | Project ID
|
434
|
+
id = 'id_example' # String | ID
|
435
|
+
opts = {
|
436
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
437
|
+
branch: 'my-feature-branch' # String | specify the branch to use
|
438
|
+
}
|
439
|
+
|
440
|
+
begin
|
441
|
+
#Get a single job
|
442
|
+
result = api_instance.job_show(project_id, id, opts)
|
443
|
+
pp result
|
444
|
+
rescue Phrase::ApiError => e
|
445
|
+
puts "Exception when calling JobsApi->job_show: #{e}"
|
446
|
+
end
|
447
|
+
```
|
448
|
+
|
449
|
+
### Parameters
|
450
|
+
|
451
|
+
|
452
|
+
Name | Type | Description | Notes
|
453
|
+
------------- | ------------- | ------------- | -------------
|
454
|
+
**project_id** | **String**| Project ID |
|
455
|
+
**id** | **String**| ID |
|
456
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
457
|
+
**branch** | **String**| specify the branch to use | [optional]
|
458
|
+
|
459
|
+
### Return type
|
460
|
+
|
461
|
+
Response<([**JobDetails**](JobDetails.md))>
|
462
|
+
|
463
|
+
### Authorization
|
464
|
+
|
465
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
466
|
+
|
467
|
+
### HTTP request headers
|
468
|
+
|
469
|
+
- **Content-Type**: Not defined
|
470
|
+
- **Accept**: application/json
|
471
|
+
|
472
|
+
|
473
|
+
## job_start
|
474
|
+
|
475
|
+
> JobDetails job_start(project_id, id, job_start_parameters, opts)
|
476
|
+
|
477
|
+
Start a job
|
478
|
+
|
479
|
+
Starts an existing job in state draft.
|
480
|
+
|
481
|
+
### Example
|
482
|
+
|
483
|
+
```ruby
|
484
|
+
# load the gem
|
485
|
+
require 'phrase'
|
486
|
+
# setup authorization
|
487
|
+
Phrase.configure do |config|
|
488
|
+
# Configure HTTP basic authorization: Basic
|
489
|
+
config.username = 'YOUR USERNAME'
|
490
|
+
config.password = 'YOUR PASSWORD'
|
491
|
+
|
492
|
+
# Configure API key authorization: Token
|
493
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
494
|
+
config.api_key_prefix['Authorization'] = 'token'
|
495
|
+
end
|
496
|
+
|
497
|
+
api_instance = Phrase::JobsApi.new
|
498
|
+
project_id = 'project_id_example' # String | Project ID
|
499
|
+
id = 'id_example' # String | ID
|
500
|
+
job_start_parameters = Phrase::JobStartParameters.new # JobStartParameters |
|
501
|
+
opts = {
|
502
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
503
|
+
}
|
504
|
+
|
505
|
+
begin
|
506
|
+
#Start a job
|
507
|
+
result = api_instance.job_start(project_id, id, job_start_parameters, opts)
|
508
|
+
pp result
|
509
|
+
rescue Phrase::ApiError => e
|
510
|
+
puts "Exception when calling JobsApi->job_start: #{e}"
|
511
|
+
end
|
512
|
+
```
|
513
|
+
|
514
|
+
### Parameters
|
515
|
+
|
516
|
+
|
517
|
+
Name | Type | Description | Notes
|
518
|
+
------------- | ------------- | ------------- | -------------
|
519
|
+
**project_id** | **String**| Project ID |
|
520
|
+
**id** | **String**| ID |
|
521
|
+
**job_start_parameters** | [**JobStartParameters**](JobStartParameters.md)| |
|
522
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
523
|
+
|
524
|
+
### Return type
|
525
|
+
|
526
|
+
Response<([**JobDetails**](JobDetails.md))>
|
527
|
+
|
528
|
+
### Authorization
|
529
|
+
|
530
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
531
|
+
|
532
|
+
### HTTP request headers
|
533
|
+
|
534
|
+
- **Content-Type**: application/json
|
535
|
+
- **Accept**: application/json
|
536
|
+
|
537
|
+
|
538
|
+
## job_update
|
539
|
+
|
540
|
+
> JobDetails job_update(project_id, id, job_update_parameters, opts)
|
541
|
+
|
542
|
+
Update a job
|
543
|
+
|
544
|
+
Update an existing job.
|
545
|
+
|
546
|
+
### Example
|
547
|
+
|
548
|
+
```ruby
|
549
|
+
# load the gem
|
550
|
+
require 'phrase'
|
551
|
+
# setup authorization
|
552
|
+
Phrase.configure do |config|
|
553
|
+
# Configure HTTP basic authorization: Basic
|
554
|
+
config.username = 'YOUR USERNAME'
|
555
|
+
config.password = 'YOUR PASSWORD'
|
556
|
+
|
557
|
+
# Configure API key authorization: Token
|
558
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
559
|
+
config.api_key_prefix['Authorization'] = 'token'
|
560
|
+
end
|
561
|
+
|
562
|
+
api_instance = Phrase::JobsApi.new
|
563
|
+
project_id = 'project_id_example' # String | Project ID
|
564
|
+
id = 'id_example' # String | ID
|
565
|
+
job_update_parameters = Phrase::JobUpdateParameters.new # JobUpdateParameters |
|
566
|
+
opts = {
|
567
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
568
|
+
}
|
569
|
+
|
570
|
+
begin
|
571
|
+
#Update a job
|
572
|
+
result = api_instance.job_update(project_id, id, job_update_parameters, opts)
|
573
|
+
pp result
|
574
|
+
rescue Phrase::ApiError => e
|
575
|
+
puts "Exception when calling JobsApi->job_update: #{e}"
|
576
|
+
end
|
577
|
+
```
|
578
|
+
|
579
|
+
### Parameters
|
580
|
+
|
581
|
+
|
582
|
+
Name | Type | Description | Notes
|
583
|
+
------------- | ------------- | ------------- | -------------
|
584
|
+
**project_id** | **String**| Project ID |
|
585
|
+
**id** | **String**| ID |
|
586
|
+
**job_update_parameters** | [**JobUpdateParameters**](JobUpdateParameters.md)| |
|
587
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
588
|
+
|
589
|
+
### Return type
|
590
|
+
|
591
|
+
Response<([**JobDetails**](JobDetails.md))>
|
592
|
+
|
593
|
+
### Authorization
|
594
|
+
|
595
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
596
|
+
|
597
|
+
### HTTP request headers
|
598
|
+
|
599
|
+
- **Content-Type**: application/json
|
600
|
+
- **Accept**: application/json
|
601
|
+
|
602
|
+
|
603
|
+
## jobs_list
|
604
|
+
|
605
|
+
> Array<Job> jobs_list(project_id, opts)
|
606
|
+
|
607
|
+
List jobs
|
608
|
+
|
609
|
+
List all jobs for the given project.
|
610
|
+
|
611
|
+
### Example
|
612
|
+
|
613
|
+
```ruby
|
614
|
+
# load the gem
|
615
|
+
require 'phrase'
|
616
|
+
# setup authorization
|
617
|
+
Phrase.configure do |config|
|
618
|
+
# Configure HTTP basic authorization: Basic
|
619
|
+
config.username = 'YOUR USERNAME'
|
620
|
+
config.password = 'YOUR PASSWORD'
|
621
|
+
|
622
|
+
# Configure API key authorization: Token
|
623
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
624
|
+
config.api_key_prefix['Authorization'] = 'token'
|
625
|
+
end
|
626
|
+
|
627
|
+
api_instance = Phrase::JobsApi.new
|
628
|
+
project_id = 'project_id_example' # String | Project ID
|
629
|
+
opts = {
|
630
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
631
|
+
page: 1, # Integer | Page number
|
632
|
+
per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
|
633
|
+
branch: 'my-feature-branch', # String | specify the branch to use
|
634
|
+
owned_by: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user owning job
|
635
|
+
assigned_to: 'abcd1234cdef1234abcd1234cdef1234', # String | filter by user assigned to job
|
636
|
+
state: 'completed' # String | filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code>
|
637
|
+
}
|
638
|
+
|
639
|
+
begin
|
640
|
+
#List jobs
|
641
|
+
result = api_instance.jobs_list(project_id, opts)
|
642
|
+
pp result
|
643
|
+
rescue Phrase::ApiError => e
|
644
|
+
puts "Exception when calling JobsApi->jobs_list: #{e}"
|
645
|
+
end
|
646
|
+
```
|
647
|
+
|
648
|
+
### Parameters
|
649
|
+
|
650
|
+
|
651
|
+
Name | Type | Description | Notes
|
652
|
+
------------- | ------------- | ------------- | -------------
|
653
|
+
**project_id** | **String**| Project ID |
|
654
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
655
|
+
**page** | **Integer**| Page number | [optional]
|
656
|
+
**per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
|
657
|
+
**branch** | **String**| specify the branch to use | [optional]
|
658
|
+
**owned_by** | **String**| filter by user owning job | [optional]
|
659
|
+
**assigned_to** | **String**| filter by user assigned to job | [optional]
|
660
|
+
**state** | **String**| filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code> | [optional]
|
661
|
+
|
662
|
+
### Return type
|
663
|
+
|
664
|
+
Response<([**Array<Job>**](Job.md))>
|
665
|
+
|
666
|
+
### Authorization
|
667
|
+
|
668
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
669
|
+
|
670
|
+
### HTTP request headers
|
671
|
+
|
672
|
+
- **Content-Type**: Not defined
|
673
|
+
- **Accept**: application/json
|
674
|
+
|