phrase 0.4.31 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (663) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +6 -0
  3. data/LICENSE +17 -18
  4. data/README.md +449 -280
  5. data/Rakefile +7 -4
  6. data/docs/Account.md +27 -0
  7. data/docs/AccountDetails.md +27 -0
  8. data/docs/AccountDetails1.md +17 -0
  9. data/docs/AccountsApi.md +134 -0
  10. data/docs/AffectedCount.md +17 -0
  11. data/docs/AffectedResources.md +17 -0
  12. data/docs/Authorization.md +31 -0
  13. data/docs/AuthorizationCreateParameters.md +21 -0
  14. data/docs/AuthorizationUpdateParameters.md +21 -0
  15. data/docs/AuthorizationWithToken.md +33 -0
  16. data/docs/AuthorizationWithToken1.md +17 -0
  17. data/docs/AuthorizationsApi.md +321 -0
  18. data/docs/BitbucketSync.md +27 -0
  19. data/docs/BitbucketSyncApi.md +197 -0
  20. data/docs/BitbucketSyncExportParameters.md +17 -0
  21. data/docs/BitbucketSyncExportResponse.md +17 -0
  22. data/docs/BitbucketSyncImportParameters.md +17 -0
  23. data/docs/BlacklistedKey.md +23 -0
  24. data/docs/BlacklistedKeyCreateParameters.md +17 -0
  25. data/docs/BlacklistedKeyUpdateParameters.md +17 -0
  26. data/docs/BlacklistedKeysApi.md +333 -0
  27. data/docs/Branch.md +29 -0
  28. data/docs/BranchCreateParameters.md +17 -0
  29. data/docs/BranchMergeParameters.md +17 -0
  30. data/docs/BranchUpdateParameters.md +17 -0
  31. data/docs/BranchesApi.md +459 -0
  32. data/docs/Comment.md +25 -0
  33. data/docs/CommentCreateParameters.md +19 -0
  34. data/docs/CommentMarkReadParameters.md +17 -0
  35. data/docs/CommentUpdateParameters.md +19 -0
  36. data/docs/CommentsApi.md +548 -0
  37. data/docs/Distribution.md +29 -0
  38. data/docs/DistributionCreateParameters.md +29 -0
  39. data/docs/DistributionPreview.md +29 -0
  40. data/docs/DistributionUpdateParameters.md +29 -0
  41. data/docs/DistributionsApi.md +331 -0
  42. data/docs/Document.md +23 -0
  43. data/docs/DocumentsApi.md +137 -0
  44. data/docs/Format.md +35 -0
  45. data/docs/FormatsApi.md +68 -0
  46. data/docs/GitHubSyncApi.md +130 -0
  47. data/docs/GitLabSyncApi.md +463 -0
  48. data/docs/GithubSyncExportParameters.md +17 -0
  49. data/docs/GithubSyncImportParameters.md +17 -0
  50. data/docs/GitlabSync.md +37 -0
  51. data/docs/GitlabSyncExport.md +19 -0
  52. data/docs/GitlabSyncExportParameters.md +17 -0
  53. data/docs/GitlabSyncHistory.md +25 -0
  54. data/docs/GitlabSyncImportParameters.md +17 -0
  55. data/docs/GlossariesApi.md +331 -0
  56. data/docs/Glossary.md +25 -0
  57. data/docs/GlossaryCreateParameters.md +21 -0
  58. data/docs/GlossaryTerm.md +31 -0
  59. data/docs/GlossaryTermCreateParameters.md +23 -0
  60. data/docs/GlossaryTermTranslation.md +25 -0
  61. data/docs/GlossaryTermTranslationCreateParameters.md +19 -0
  62. data/docs/GlossaryTermTranslationUpdateParameters.md +19 -0
  63. data/docs/GlossaryTermTranslationsApi.md +213 -0
  64. data/docs/GlossaryTermUpdateParameters.md +23 -0
  65. data/docs/GlossaryTermsApi.md +341 -0
  66. data/docs/GlossaryUpdateParameters.md +21 -0
  67. data/docs/InlineResponse422.md +19 -0
  68. data/docs/InlineResponse422Errors.md +21 -0
  69. data/docs/Invitation.md +35 -0
  70. data/docs/InvitationCreateParameters.md +25 -0
  71. data/docs/InvitationUpdateParameters.md +23 -0
  72. data/docs/InvitationsApi.md +395 -0
  73. data/docs/Job.md +29 -0
  74. data/docs/JobCompleteParameters.md +17 -0
  75. data/docs/JobCreateParameters.md +27 -0
  76. data/docs/JobDetails.md +37 -0
  77. data/docs/JobDetails1.md +23 -0
  78. data/docs/JobKeysCreateParameters.md +19 -0
  79. data/docs/JobLocale.md +23 -0
  80. data/docs/JobLocaleCompleteParameters.md +17 -0
  81. data/docs/JobLocaleReopenParameters.md +17 -0
  82. data/docs/JobLocaleUpdateParameters.md +21 -0
  83. data/docs/JobLocalesApi.md +483 -0
  84. data/docs/JobLocalesCreateParameters.md +21 -0
  85. data/docs/JobPreview.md +21 -0
  86. data/docs/JobReopenParameters.md +17 -0
  87. data/docs/JobStartParameters.md +17 -0
  88. data/docs/JobUpdateParameters.md +23 -0
  89. data/docs/JobsApi.md +674 -0
  90. data/docs/KeyCreateParameters.md +45 -0
  91. data/docs/KeyPreview.md +21 -0
  92. data/docs/KeyUpdateParameters.md +45 -0
  93. data/docs/KeysApi.md +609 -0
  94. data/docs/KeysSearchParameters.md +25 -0
  95. data/docs/KeysTagParameters.md +23 -0
  96. data/docs/KeysUntagParameters.md +23 -0
  97. data/docs/Locale.md +35 -0
  98. data/docs/LocaleCreateParameters.md +35 -0
  99. data/docs/LocaleDetails.md +37 -0
  100. data/docs/LocaleDetails1.md +17 -0
  101. data/docs/LocalePreview.md +21 -0
  102. data/docs/LocaleStatistics.md +29 -0
  103. data/docs/LocaleUpdateParameters.md +35 -0
  104. data/docs/LocalesApi.md +428 -0
  105. data/docs/Member.md +25 -0
  106. data/docs/MemberUpdateParameters.md +23 -0
  107. data/docs/MembersApi.md +267 -0
  108. data/docs/OrderConfirmParameters.md +17 -0
  109. data/docs/OrderCreateParameters.md +43 -0
  110. data/docs/OrdersApi.md +337 -0
  111. data/docs/Project.md +31 -0
  112. data/docs/ProjectCreateParameters.md +29 -0
  113. data/docs/ProjectDetails.md +33 -0
  114. data/docs/ProjectDetails1.md +19 -0
  115. data/docs/ProjectLocales.md +27 -0
  116. data/docs/ProjectLocales1.md +17 -0
  117. data/docs/ProjectShort.md +25 -0
  118. data/docs/ProjectUpdateParameters.md +27 -0
  119. data/docs/ProjectsApi.md +321 -0
  120. data/docs/Release.md +37 -0
  121. data/docs/ReleaseCreateParameters.md +21 -0
  122. data/docs/ReleasePreview.md +37 -0
  123. data/docs/ReleaseUpdateParameters.md +21 -0
  124. data/docs/ReleasesApi.md +407 -0
  125. data/docs/Screenshot.md +29 -0
  126. data/docs/ScreenshotCreateParameters.md +21 -0
  127. data/docs/ScreenshotMarker.md +27 -0
  128. data/docs/ScreenshotMarkerCreateParameters.md +19 -0
  129. data/docs/ScreenshotMarkerUpdateParameters.md +19 -0
  130. data/docs/ScreenshotMarkersApi.md +337 -0
  131. data/docs/ScreenshotUpdateParameters.md +21 -0
  132. data/docs/ScreenshotsApi.md +331 -0
  133. data/docs/Space.md +27 -0
  134. data/docs/SpaceCreateParameters.md +17 -0
  135. data/docs/SpaceUpdateParameters.md +17 -0
  136. data/docs/SpacesApi.md +529 -0
  137. data/docs/SpacesProjectsCreateParameters.md +17 -0
  138. data/docs/StyleGuidesApi.md +331 -0
  139. data/docs/Styleguide.md +23 -0
  140. data/docs/StyleguideCreateParameters.md +41 -0
  141. data/docs/StyleguideDetails.md +49 -0
  142. data/docs/StyleguideDetails1.md +41 -0
  143. data/docs/StyleguidePreview.md +19 -0
  144. data/docs/StyleguideUpdateParameters.md +41 -0
  145. data/docs/Tag.md +23 -0
  146. data/docs/TagCreateParameters.md +19 -0
  147. data/docs/TagWithStats.md +25 -0
  148. data/docs/TagWithStats1.md +17 -0
  149. data/docs/TagWithStats1Statistics.md +23 -0
  150. data/docs/TagWithStats1Statistics1.md +19 -0
  151. data/docs/TagsApi.md +271 -0
  152. data/docs/Team.md +29 -0
  153. data/docs/TeamCreateParameters.md +17 -0
  154. data/docs/TeamDetail.md +29 -0
  155. data/docs/TeamUpdateParameters.md +17 -0
  156. data/docs/TeamsApi.md +721 -0
  157. data/docs/TeamsProjectsCreateParameters.md +17 -0
  158. data/docs/TeamsSpacesCreateParameters.md +17 -0
  159. data/docs/TeamsUsersCreateParameters.md +17 -0
  160. data/docs/Translation.md +37 -0
  161. data/docs/TranslationCreateParameters.md +31 -0
  162. data/docs/TranslationDetails.md +41 -0
  163. data/docs/TranslationDetails1.md +19 -0
  164. data/docs/TranslationExcludeParameters.md +17 -0
  165. data/docs/TranslationIncludeParameters.md +17 -0
  166. data/docs/TranslationKey.md +33 -0
  167. data/docs/TranslationKeyDetails.md +51 -0
  168. data/docs/TranslationKeyDetails1.md +33 -0
  169. data/docs/TranslationOrder.md +49 -0
  170. data/docs/TranslationReviewParameters.md +17 -0
  171. data/docs/TranslationUnverifyParameters.md +17 -0
  172. data/docs/TranslationUpdateParameters.md +27 -0
  173. data/docs/TranslationVerifyParameters.md +17 -0
  174. data/docs/TranslationVersion.md +31 -0
  175. data/docs/TranslationVersionWithUser.md +33 -0
  176. data/docs/TranslationVersionWithUser1.md +17 -0
  177. data/docs/TranslationsApi.md +1148 -0
  178. data/docs/TranslationsExcludeParameters.md +23 -0
  179. data/docs/TranslationsIncludeParameters.md +23 -0
  180. data/docs/TranslationsReviewParameters.md +19 -0
  181. data/docs/TranslationsSearchParameters.md +23 -0
  182. data/docs/TranslationsUnverifyParameters.md +23 -0
  183. data/docs/TranslationsVerifyParameters.md +23 -0
  184. data/docs/Upload.md +31 -0
  185. data/docs/UploadCreateParameters.md +45 -0
  186. data/docs/UploadSummary.md +31 -0
  187. data/docs/UploadsApi.md +234 -0
  188. data/docs/User.md +29 -0
  189. data/docs/UserPreview.md +21 -0
  190. data/docs/UsersApi.md +68 -0
  191. data/docs/VersionsHistoryApi.md +146 -0
  192. data/docs/Webhook.md +29 -0
  193. data/docs/WebhookCreateParameters.md +23 -0
  194. data/docs/WebhookUpdateParameters.md +23 -0
  195. data/docs/WebhooksApi.md +394 -0
  196. data/git_push.sh +58 -0
  197. data/lib/phrase.rb +212 -55
  198. data/lib/phrase/api/accounts_api.rb +142 -0
  199. data/lib/phrase/api/authorizations_api.rb +348 -0
  200. data/lib/phrase/api/bitbucket_sync_api.rb +219 -0
  201. data/lib/phrase/api/blacklisted_keys_api.rb +381 -0
  202. data/lib/phrase/api/branches_api.rb +526 -0
  203. data/lib/phrase/api/comments_api.rb +659 -0
  204. data/lib/phrase/api/distributions_api.rb +378 -0
  205. data/lib/phrase/api/documents_api.rb +152 -0
  206. data/lib/phrase/api/formats_api.rb +70 -0
  207. data/lib/phrase/api/git_hub_sync_api.rb +146 -0
  208. data/lib/phrase/api/git_lab_sync_api.rb +510 -0
  209. data/lib/phrase/api/glossaries_api.rb +378 -0
  210. data/lib/phrase/api/glossary_term_translations_api.rb +270 -0
  211. data/lib/phrase/api/glossary_terms_api.rb +408 -0
  212. data/lib/phrase/api/invitations_api.rb +450 -0
  213. data/lib/phrase/api/job_locales_api.rb +589 -0
  214. data/lib/phrase/api/jobs_api.rb +792 -0
  215. data/lib/phrase/api/keys_api.rb +702 -0
  216. data/lib/phrase/api/locales_api.rb +499 -0
  217. data/lib/phrase/api/members_api.rb +304 -0
  218. data/lib/phrase/api/orders_api.rb +387 -0
  219. data/lib/phrase/api/projects_api.rb +348 -0
  220. data/lib/phrase/api/releases_api.rb +486 -0
  221. data/lib/phrase/api/screenshot_markers_api.rb +396 -0
  222. data/lib/phrase/api/screenshots_api.rb +378 -0
  223. data/lib/phrase/api/spaces_api.rb +610 -0
  224. data/lib/phrase/api/style_guides_api.rb +378 -0
  225. data/lib/phrase/api/tags_api.rb +307 -0
  226. data/lib/phrase/api/teams_api.rb +840 -0
  227. data/lib/phrase/api/translations_api.rb +1353 -0
  228. data/lib/phrase/api/uploads_api.rb +273 -0
  229. data/lib/phrase/api/users_api.rb +70 -0
  230. data/lib/phrase/api/versions_history_api.rb +172 -0
  231. data/lib/phrase/api/webhooks_api.rb +448 -0
  232. data/lib/phrase/api_client.rb +376 -0
  233. data/lib/phrase/api_error.rb +45 -0
  234. data/lib/phrase/configuration.rb +243 -0
  235. data/lib/phrase/models/account.rb +239 -0
  236. data/lib/phrase/models/account_details.rb +247 -0
  237. data/lib/phrase/models/account_details1.rb +194 -0
  238. data/lib/phrase/models/affected_count.rb +194 -0
  239. data/lib/phrase/models/affected_resources.rb +194 -0
  240. data/lib/phrase/models/authorization.rb +259 -0
  241. data/lib/phrase/models/authorization_create_parameters.rb +217 -0
  242. data/lib/phrase/models/authorization_update_parameters.rb +217 -0
  243. data/lib/phrase/models/authorization_with_token.rb +276 -0
  244. data/lib/phrase/models/authorization_with_token1.rb +194 -0
  245. data/lib/phrase/models/bitbucket_sync.rb +241 -0
  246. data/lib/phrase/models/bitbucket_sync_export_parameters.rb +195 -0
  247. data/lib/phrase/models/bitbucket_sync_export_response.rb +194 -0
  248. data/lib/phrase/models/bitbucket_sync_import_parameters.rb +195 -0
  249. data/lib/phrase/models/blacklisted_key.rb +221 -0
  250. data/lib/phrase/models/blacklisted_key_create_parameters.rb +195 -0
  251. data/lib/phrase/models/blacklisted_key_update_parameters.rb +195 -0
  252. data/lib/phrase/models/branch.rb +248 -0
  253. data/lib/phrase/models/branch_create_parameters.rb +195 -0
  254. data/lib/phrase/models/branch_merge_parameters.rb +195 -0
  255. data/lib/phrase/models/branch_update_parameters.rb +195 -0
  256. data/lib/phrase/models/comment.rb +230 -0
  257. data/lib/phrase/models/comment_create_parameters.rb +205 -0
  258. data/lib/phrase/models/comment_mark_read_parameters.rb +195 -0
  259. data/lib/phrase/models/comment_update_parameters.rb +205 -0
  260. data/lib/phrase/models/distribution.rb +252 -0
  261. data/lib/phrase/models/distribution_create_parameters.rb +259 -0
  262. data/lib/phrase/models/distribution_preview.rb +250 -0
  263. data/lib/phrase/models/distribution_update_parameters.rb +259 -0
  264. data/lib/phrase/models/document.rb +221 -0
  265. data/lib/phrase/models/format.rb +275 -0
  266. data/lib/phrase/models/github_sync_export_parameters.rb +195 -0
  267. data/lib/phrase/models/github_sync_import_parameters.rb +195 -0
  268. data/lib/phrase/models/gitlab_sync.rb +284 -0
  269. data/lib/phrase/models/gitlab_sync_export.rb +203 -0
  270. data/lib/phrase/models/gitlab_sync_export_parameters.rb +195 -0
  271. data/lib/phrase/models/gitlab_sync_history.rb +232 -0
  272. data/lib/phrase/models/gitlab_sync_import_parameters.rb +195 -0
  273. data/lib/phrase/models/glossary.rb +232 -0
  274. data/lib/phrase/models/glossary_create_parameters.rb +217 -0
  275. data/lib/phrase/models/glossary_term.rb +259 -0
  276. data/lib/phrase/models/glossary_term_create_parameters.rb +225 -0
  277. data/lib/phrase/models/glossary_term_translation.rb +230 -0
  278. data/lib/phrase/models/glossary_term_translation_create_parameters.rb +205 -0
  279. data/lib/phrase/models/glossary_term_translation_update_parameters.rb +205 -0
  280. data/lib/phrase/models/glossary_term_update_parameters.rb +225 -0
  281. data/lib/phrase/models/glossary_update_parameters.rb +217 -0
  282. data/lib/phrase/models/inline_response422.rb +205 -0
  283. data/lib/phrase/models/inline_response422_errors.rb +212 -0
  284. data/lib/phrase/models/invitation.rb +279 -0
  285. data/lib/phrase/models/invitation_create_parameters.rb +237 -0
  286. data/lib/phrase/models/invitation_update_parameters.rb +227 -0
  287. data/lib/phrase/models/job.rb +248 -0
  288. data/lib/phrase/models/job_complete_parameters.rb +195 -0
  289. data/lib/phrase/models/job_create_parameters.rb +249 -0
  290. data/lib/phrase/models/job_details.rb +296 -0
  291. data/lib/phrase/models/job_details1.rb +225 -0
  292. data/lib/phrase/models/job_keys_create_parameters.rb +207 -0
  293. data/lib/phrase/models/job_locale.rb +223 -0
  294. data/lib/phrase/models/job_locale_complete_parameters.rb +195 -0
  295. data/lib/phrase/models/job_locale_reopen_parameters.rb +195 -0
  296. data/lib/phrase/models/job_locale_update_parameters.rb +217 -0
  297. data/lib/phrase/models/job_locales_create_parameters.rb +217 -0
  298. data/lib/phrase/models/job_preview.rb +212 -0
  299. data/lib/phrase/models/job_reopen_parameters.rb +195 -0
  300. data/lib/phrase/models/job_start_parameters.rb +195 -0
  301. data/lib/phrase/models/job_update_parameters.rb +225 -0
  302. data/lib/phrase/models/key_create_parameters.rb +335 -0
  303. data/lib/phrase/models/key_preview.rb +212 -0
  304. data/lib/phrase/models/key_update_parameters.rb +335 -0
  305. data/lib/phrase/models/keys_search_parameters.rb +235 -0
  306. data/lib/phrase/models/keys_tag_parameters.rb +225 -0
  307. data/lib/phrase/models/keys_untag_parameters.rb +225 -0
  308. data/lib/phrase/models/locale.rb +277 -0
  309. data/lib/phrase/models/locale_create_parameters.rb +285 -0
  310. data/lib/phrase/models/locale_details.rb +294 -0
  311. data/lib/phrase/models/locale_details1.rb +194 -0
  312. data/lib/phrase/models/locale_preview.rb +212 -0
  313. data/lib/phrase/models/locale_statistics.rb +248 -0
  314. data/lib/phrase/models/locale_update_parameters.rb +285 -0
  315. data/lib/phrase/models/member.rb +232 -0
  316. data/lib/phrase/models/member_update_parameters.rb +227 -0
  317. data/lib/phrase/models/order_confirm_parameters.rb +195 -0
  318. data/lib/phrase/models/order_create_parameters.rb +327 -0
  319. data/lib/phrase/models/project.rb +257 -0
  320. data/lib/phrase/models/project_create_parameters.rb +255 -0
  321. data/lib/phrase/models/project_details.rb +274 -0
  322. data/lib/phrase/models/project_details1.rb +203 -0
  323. data/lib/phrase/models/project_locales.rb +249 -0
  324. data/lib/phrase/models/project_locales1.rb +196 -0
  325. data/lib/phrase/models/project_short.rb +230 -0
  326. data/lib/phrase/models/project_update_parameters.rb +245 -0
  327. data/lib/phrase/models/release.rb +290 -0
  328. data/lib/phrase/models/release_create_parameters.rb +217 -0
  329. data/lib/phrase/models/release_preview.rb +290 -0
  330. data/lib/phrase/models/release_update_parameters.rb +217 -0
  331. data/lib/phrase/models/screenshot.rb +248 -0
  332. data/lib/phrase/models/screenshot_create_parameters.rb +215 -0
  333. data/lib/phrase/models/screenshot_marker.rb +239 -0
  334. data/lib/phrase/models/screenshot_marker_create_parameters.rb +205 -0
  335. data/lib/phrase/models/screenshot_marker_update_parameters.rb +205 -0
  336. data/lib/phrase/models/screenshot_update_parameters.rb +215 -0
  337. data/lib/phrase/models/space.rb +241 -0
  338. data/lib/phrase/models/space_create_parameters.rb +195 -0
  339. data/lib/phrase/models/space_update_parameters.rb +195 -0
  340. data/lib/phrase/models/spaces_projects_create_parameters.rb +195 -0
  341. data/lib/phrase/models/styleguide.rb +221 -0
  342. data/lib/phrase/models/styleguide_create_parameters.rb +315 -0
  343. data/lib/phrase/models/styleguide_details.rb +346 -0
  344. data/lib/phrase/models/styleguide_details1.rb +302 -0
  345. data/lib/phrase/models/styleguide_preview.rb +203 -0
  346. data/lib/phrase/models/styleguide_update_parameters.rb +315 -0
  347. data/lib/phrase/models/tag.rb +221 -0
  348. data/lib/phrase/models/tag_create_parameters.rb +205 -0
  349. data/lib/phrase/models/tag_with_stats.rb +240 -0
  350. data/lib/phrase/models/tag_with_stats1.rb +196 -0
  351. data/lib/phrase/models/tag_with_stats1_statistics.rb +221 -0
  352. data/lib/phrase/models/tag_with_stats1_statistics1.rb +203 -0
  353. data/lib/phrase/models/team.rb +254 -0
  354. data/lib/phrase/models/team_create_parameters.rb +195 -0
  355. data/lib/phrase/models/team_detail.rb +254 -0
  356. data/lib/phrase/models/team_update_parameters.rb +195 -0
  357. data/lib/phrase/models/teams_projects_create_parameters.rb +195 -0
  358. data/lib/phrase/models/teams_spaces_create_parameters.rb +195 -0
  359. data/lib/phrase/models/teams_users_create_parameters.rb +195 -0
  360. data/lib/phrase/models/translation.rb +286 -0
  361. data/lib/phrase/models/translation_create_parameters.rb +265 -0
  362. data/lib/phrase/models/translation_details.rb +312 -0
  363. data/lib/phrase/models/translation_details1.rb +203 -0
  364. data/lib/phrase/models/translation_exclude_parameters.rb +195 -0
  365. data/lib/phrase/models/translation_include_parameters.rb +195 -0
  366. data/lib/phrase/models/translation_key.rb +268 -0
  367. data/lib/phrase/models/translation_key_details.rb +357 -0
  368. data/lib/phrase/models/translation_key_details1.rb +266 -0
  369. data/lib/phrase/models/translation_order.rb +340 -0
  370. data/lib/phrase/models/translation_review_parameters.rb +195 -0
  371. data/lib/phrase/models/translation_unverify_parameters.rb +195 -0
  372. data/lib/phrase/models/translation_update_parameters.rb +245 -0
  373. data/lib/phrase/models/translation_verify_parameters.rb +195 -0
  374. data/lib/phrase/models/translation_version.rb +257 -0
  375. data/lib/phrase/models/translation_version_with_user.rb +274 -0
  376. data/lib/phrase/models/translation_version_with_user1.rb +194 -0
  377. data/lib/phrase/models/translations_exclude_parameters.rb +225 -0
  378. data/lib/phrase/models/translations_include_parameters.rb +225 -0
  379. data/lib/phrase/models/translations_review_parameters.rb +205 -0
  380. data/lib/phrase/models/translations_search_parameters.rb +225 -0
  381. data/lib/phrase/models/translations_unverify_parameters.rb +225 -0
  382. data/lib/phrase/models/translations_verify_parameters.rb +225 -0
  383. data/lib/phrase/models/upload.rb +257 -0
  384. data/lib/phrase/models/upload_create_parameters.rb +335 -0
  385. data/lib/phrase/models/upload_summary.rb +257 -0
  386. data/lib/phrase/models/user.rb +248 -0
  387. data/lib/phrase/models/user_preview.rb +212 -0
  388. data/lib/phrase/models/webhook.rb +250 -0
  389. data/lib/phrase/models/webhook_create_parameters.rb +225 -0
  390. data/lib/phrase/models/webhook_update_parameters.rb +225 -0
  391. data/lib/phrase/response.rb +41 -0
  392. data/lib/phrase/version.rb +1 -1
  393. data/phrase.gemspec +27 -27
  394. data/spec/api/accounts_api_spec.rb +50 -0
  395. data/spec/api/authorizations_api_spec.rb +90 -0
  396. data/spec/api/bitbucket_sync_api_spec.rb +64 -0
  397. data/spec/api/blacklisted_keys_api_spec.rb +96 -0
  398. data/spec/api/branches_api_spec.rb +124 -0
  399. data/spec/api/comments_api_spec.rb +151 -0
  400. data/spec/api/distributions_api_spec.rb +95 -0
  401. data/spec/api/documents_api_spec.rb +52 -0
  402. data/spec/api/formats_api_spec.rb +35 -0
  403. data/spec/api/git_hub_sync_api_spec.rb +49 -0
  404. data/spec/api/git_lab_sync_api_spec.rb +125 -0
  405. data/spec/api/glossaries_api_spec.rb +95 -0
  406. data/spec/api/glossary_term_translations_api_spec.rb +72 -0
  407. data/spec/api/glossary_terms_api_spec.rb +100 -0
  408. data/spec/api/invitations_api_spec.rb +109 -0
  409. data/spec/api/job_locales_api_spec.rb +135 -0
  410. data/spec/api/jobs_api_spec.rb +177 -0
  411. data/spec/api/keys_api_spec.rb +162 -0
  412. data/spec/api/locales_api_spec.rb +126 -0
  413. data/spec/api/members_api_spec.rb +81 -0
  414. data/spec/api/orders_api_spec.rb +98 -0
  415. data/spec/api/projects_api_spec.rb +90 -0
  416. data/spec/api/releases_api_spec.rb +115 -0
  417. data/spec/api/screenshot_markers_api_spec.rb +98 -0
  418. data/spec/api/screenshots_api_spec.rb +95 -0
  419. data/spec/api/spaces_api_spec.rb +141 -0
  420. data/spec/api/style_guides_api_spec.rb +95 -0
  421. data/spec/api/tags_api_spec.rb +83 -0
  422. data/spec/api/teams_api_spec.rb +185 -0
  423. data/spec/api/translations_api_spec.rb +287 -0
  424. data/spec/api/uploads_api_spec.rb +82 -0
  425. data/spec/api/users_api_spec.rb +35 -0
  426. data/spec/api/versions_history_api_spec.rb +56 -0
  427. data/spec/api/webhooks_api_spec.rb +109 -0
  428. data/spec/api_client_spec.rb +214 -0
  429. data/spec/configuration_spec.rb +30 -0
  430. data/spec/models/account_details1_spec.rb +29 -0
  431. data/spec/models/account_details_spec.rb +59 -0
  432. data/spec/models/account_spec.rb +59 -0
  433. data/spec/models/affected_count_spec.rb +29 -0
  434. data/spec/models/affected_resources_spec.rb +29 -0
  435. data/spec/models/authorization_create_parameters_spec.rb +41 -0
  436. data/spec/models/authorization_spec.rb +71 -0
  437. data/spec/models/authorization_update_parameters_spec.rb +41 -0
  438. data/spec/models/authorization_with_token1_spec.rb +29 -0
  439. data/spec/models/authorization_with_token_spec.rb +77 -0
  440. data/spec/models/bitbucket_sync_export_parameters_spec.rb +29 -0
  441. data/spec/models/bitbucket_sync_export_response_spec.rb +29 -0
  442. data/spec/models/bitbucket_sync_import_parameters_spec.rb +29 -0
  443. data/spec/models/bitbucket_sync_spec.rb +59 -0
  444. data/spec/models/blacklisted_key_create_parameters_spec.rb +29 -0
  445. data/spec/models/blacklisted_key_spec.rb +47 -0
  446. data/spec/models/blacklisted_key_update_parameters_spec.rb +29 -0
  447. data/spec/models/branch_create_parameters_spec.rb +29 -0
  448. data/spec/models/branch_merge_parameters_spec.rb +29 -0
  449. data/spec/models/branch_spec.rb +65 -0
  450. data/spec/models/branch_update_parameters_spec.rb +29 -0
  451. data/spec/models/comment_create_parameters_spec.rb +35 -0
  452. data/spec/models/comment_mark_read_parameters_spec.rb +29 -0
  453. data/spec/models/comment_spec.rb +53 -0
  454. data/spec/models/comment_update_parameters_spec.rb +35 -0
  455. data/spec/models/distribution_create_parameters_spec.rb +65 -0
  456. data/spec/models/distribution_preview_spec.rb +65 -0
  457. data/spec/models/distribution_spec.rb +65 -0
  458. data/spec/models/distribution_update_parameters_spec.rb +65 -0
  459. data/spec/models/document_spec.rb +47 -0
  460. data/spec/models/format_spec.rb +83 -0
  461. data/spec/models/github_sync_export_parameters_spec.rb +29 -0
  462. data/spec/models/github_sync_import_parameters_spec.rb +29 -0
  463. data/spec/models/gitlab_sync_export_parameters_spec.rb +29 -0
  464. data/spec/models/gitlab_sync_export_spec.rb +35 -0
  465. data/spec/models/gitlab_sync_history_spec.rb +53 -0
  466. data/spec/models/gitlab_sync_import_parameters_spec.rb +29 -0
  467. data/spec/models/gitlab_sync_spec.rb +89 -0
  468. data/spec/models/glossary_create_parameters_spec.rb +41 -0
  469. data/spec/models/glossary_spec.rb +53 -0
  470. data/spec/models/glossary_term_create_parameters_spec.rb +47 -0
  471. data/spec/models/glossary_term_spec.rb +71 -0
  472. data/spec/models/glossary_term_translation_create_parameters_spec.rb +35 -0
  473. data/spec/models/glossary_term_translation_spec.rb +53 -0
  474. data/spec/models/glossary_term_translation_update_parameters_spec.rb +35 -0
  475. data/spec/models/glossary_term_update_parameters_spec.rb +47 -0
  476. data/spec/models/glossary_update_parameters_spec.rb +41 -0
  477. data/spec/models/inline_response422_errors_spec.rb +41 -0
  478. data/spec/models/inline_response422_spec.rb +35 -0
  479. data/spec/models/invitation_create_parameters_spec.rb +53 -0
  480. data/spec/models/invitation_spec.rb +83 -0
  481. data/spec/models/invitation_update_parameters_spec.rb +47 -0
  482. data/spec/models/job_complete_parameters_spec.rb +29 -0
  483. data/spec/models/job_create_parameters_spec.rb +59 -0
  484. data/spec/models/job_details1_spec.rb +47 -0
  485. data/spec/models/job_details_spec.rb +89 -0
  486. data/spec/models/job_keys_create_parameters_spec.rb +35 -0
  487. data/spec/models/job_locale_complete_parameters_spec.rb +29 -0
  488. data/spec/models/job_locale_reopen_parameters_spec.rb +29 -0
  489. data/spec/models/job_locale_spec.rb +47 -0
  490. data/spec/models/job_locale_update_parameters_spec.rb +41 -0
  491. data/spec/models/job_locales_create_parameters_spec.rb +41 -0
  492. data/spec/models/job_preview_spec.rb +41 -0
  493. data/spec/models/job_reopen_parameters_spec.rb +29 -0
  494. data/spec/models/job_spec.rb +65 -0
  495. data/spec/models/job_start_parameters_spec.rb +29 -0
  496. data/spec/models/job_update_parameters_spec.rb +47 -0
  497. data/spec/models/key_create_parameters_spec.rb +113 -0
  498. data/spec/models/key_preview_spec.rb +41 -0
  499. data/spec/models/key_update_parameters_spec.rb +113 -0
  500. data/spec/models/keys_search_parameters_spec.rb +53 -0
  501. data/spec/models/keys_tag_parameters_spec.rb +47 -0
  502. data/spec/models/keys_untag_parameters_spec.rb +47 -0
  503. data/spec/models/locale_create_parameters_spec.rb +83 -0
  504. data/spec/models/locale_details1_spec.rb +29 -0
  505. data/spec/models/locale_details_spec.rb +89 -0
  506. data/spec/models/locale_preview_spec.rb +41 -0
  507. data/spec/models/locale_spec.rb +83 -0
  508. data/spec/models/locale_statistics_spec.rb +65 -0
  509. data/spec/models/locale_update_parameters_spec.rb +83 -0
  510. data/spec/models/member_spec.rb +53 -0
  511. data/spec/models/member_update_parameters_spec.rb +47 -0
  512. data/spec/models/order_confirm_parameters_spec.rb +29 -0
  513. data/spec/models/order_create_parameters_spec.rb +107 -0
  514. data/spec/models/project_create_parameters_spec.rb +65 -0
  515. data/spec/models/project_details1_spec.rb +35 -0
  516. data/spec/models/project_details_spec.rb +77 -0
  517. data/spec/models/project_locales1_spec.rb +29 -0
  518. data/spec/models/project_locales_spec.rb +59 -0
  519. data/spec/models/project_short_spec.rb +53 -0
  520. data/spec/models/project_spec.rb +71 -0
  521. data/spec/models/project_update_parameters_spec.rb +59 -0
  522. data/spec/models/release_create_parameters_spec.rb +41 -0
  523. data/spec/models/release_preview_spec.rb +89 -0
  524. data/spec/models/release_spec.rb +89 -0
  525. data/spec/models/release_update_parameters_spec.rb +41 -0
  526. data/spec/models/screenshot_create_parameters_spec.rb +41 -0
  527. data/spec/models/screenshot_marker_create_parameters_spec.rb +35 -0
  528. data/spec/models/screenshot_marker_spec.rb +59 -0
  529. data/spec/models/screenshot_marker_update_parameters_spec.rb +35 -0
  530. data/spec/models/screenshot_spec.rb +65 -0
  531. data/spec/models/screenshot_update_parameters_spec.rb +41 -0
  532. data/spec/models/space_create_parameters_spec.rb +29 -0
  533. data/spec/models/space_spec.rb +59 -0
  534. data/spec/models/space_update_parameters_spec.rb +29 -0
  535. data/spec/models/spaces_projects_create_parameters_spec.rb +29 -0
  536. data/spec/models/styleguide_create_parameters_spec.rb +101 -0
  537. data/spec/models/styleguide_details1_spec.rb +101 -0
  538. data/spec/models/styleguide_details_spec.rb +125 -0
  539. data/spec/models/styleguide_preview_spec.rb +35 -0
  540. data/spec/models/styleguide_spec.rb +47 -0
  541. data/spec/models/styleguide_update_parameters_spec.rb +101 -0
  542. data/spec/models/tag_create_parameters_spec.rb +35 -0
  543. data/spec/models/tag_spec.rb +47 -0
  544. data/spec/models/tag_with_stats1_spec.rb +29 -0
  545. data/spec/models/tag_with_stats1_statistics1_spec.rb +35 -0
  546. data/spec/models/tag_with_stats1_statistics_spec.rb +47 -0
  547. data/spec/models/tag_with_stats_spec.rb +53 -0
  548. data/spec/models/team_create_parameters_spec.rb +29 -0
  549. data/spec/models/team_detail_spec.rb +65 -0
  550. data/spec/models/team_spec.rb +65 -0
  551. data/spec/models/team_update_parameters_spec.rb +29 -0
  552. data/spec/models/teams_projects_create_parameters_spec.rb +29 -0
  553. data/spec/models/teams_spaces_create_parameters_spec.rb +29 -0
  554. data/spec/models/teams_users_create_parameters_spec.rb +29 -0
  555. data/spec/models/translation_create_parameters_spec.rb +71 -0
  556. data/spec/models/translation_details1_spec.rb +35 -0
  557. data/spec/models/translation_details_spec.rb +101 -0
  558. data/spec/models/translation_exclude_parameters_spec.rb +29 -0
  559. data/spec/models/translation_include_parameters_spec.rb +29 -0
  560. data/spec/models/translation_key_details1_spec.rb +77 -0
  561. data/spec/models/translation_key_details_spec.rb +131 -0
  562. data/spec/models/translation_key_spec.rb +77 -0
  563. data/spec/models/translation_order_spec.rb +125 -0
  564. data/spec/models/translation_review_parameters_spec.rb +29 -0
  565. data/spec/models/translation_spec.rb +89 -0
  566. data/spec/models/translation_unverify_parameters_spec.rb +29 -0
  567. data/spec/models/translation_update_parameters_spec.rb +59 -0
  568. data/spec/models/translation_verify_parameters_spec.rb +29 -0
  569. data/spec/models/translation_version_spec.rb +71 -0
  570. data/spec/models/translation_version_with_user1_spec.rb +29 -0
  571. data/spec/models/translation_version_with_user_spec.rb +77 -0
  572. data/spec/models/translations_exclude_parameters_spec.rb +47 -0
  573. data/spec/models/translations_include_parameters_spec.rb +47 -0
  574. data/spec/models/translations_review_parameters_spec.rb +35 -0
  575. data/spec/models/translations_search_parameters_spec.rb +47 -0
  576. data/spec/models/translations_unverify_parameters_spec.rb +47 -0
  577. data/spec/models/translations_verify_parameters_spec.rb +47 -0
  578. data/spec/models/upload_create_parameters_spec.rb +113 -0
  579. data/spec/models/upload_spec.rb +71 -0
  580. data/spec/models/upload_summary_spec.rb +71 -0
  581. data/spec/models/user_preview_spec.rb +41 -0
  582. data/spec/models/user_spec.rb +65 -0
  583. data/spec/models/webhook_create_parameters_spec.rb +47 -0
  584. data/spec/models/webhook_spec.rb +65 -0
  585. data/spec/models/webhook_update_parameters_spec.rb +47 -0
  586. data/spec/spec_helper.rb +99 -0
  587. metadata +819 -188
  588. data/.gitignore +0 -25
  589. data/.travis.yml +0 -4
  590. data/Guardfile +0 -29
  591. data/bin/phrase +0 -8
  592. data/cacert.pem +0 -3366
  593. data/lib/ext/all.rb +0 -5
  594. data/lib/ext/hash.rb +0 -8
  595. data/lib/ext/object.rb +0 -130
  596. data/lib/ext/try.rb +0 -57
  597. data/lib/generators/phrase/install_generator.rb +0 -37
  598. data/lib/generators/templates/README +0 -11
  599. data/lib/generators/templates/phrase.rb +0 -21
  600. data/lib/phrase/adapters/fast_gettext.rb +0 -25
  601. data/lib/phrase/adapters/i18n.rb +0 -12
  602. data/lib/phrase/api.rb +0 -7
  603. data/lib/phrase/api/client.rb +0 -308
  604. data/lib/phrase/api/client/http.rb +0 -56
  605. data/lib/phrase/api/config.rb +0 -34
  606. data/lib/phrase/api/exceptions.rb +0 -9
  607. data/lib/phrase/api/query_params.rb +0 -22
  608. data/lib/phrase/backend.rb +0 -7
  609. data/lib/phrase/backend/base.rb +0 -6
  610. data/lib/phrase/backend/phrase_service.rb +0 -163
  611. data/lib/phrase/cache.rb +0 -34
  612. data/lib/phrase/config.rb +0 -94
  613. data/lib/phrase/delegate.rb +0 -36
  614. data/lib/phrase/delegate/fast_gettext.rb +0 -27
  615. data/lib/phrase/delegate/i18n.rb +0 -166
  616. data/lib/phrase/engine.rb +0 -14
  617. data/lib/phrase/formats.rb +0 -172
  618. data/lib/phrase/formats/angular_translate.rb +0 -19
  619. data/lib/phrase/formats/csv.rb +0 -19
  620. data/lib/phrase/formats/custom.rb +0 -40
  621. data/lib/phrase/formats/gettext.rb +0 -27
  622. data/lib/phrase/formats/gettext_template.rb +0 -19
  623. data/lib/phrase/formats/ini.rb +0 -19
  624. data/lib/phrase/formats/json.rb +0 -19
  625. data/lib/phrase/formats/laravel.rb +0 -19
  626. data/lib/phrase/formats/mozilla_properties.rb +0 -8
  627. data/lib/phrase/formats/nested_json.rb +0 -19
  628. data/lib/phrase/formats/node_json.rb +0 -23
  629. data/lib/phrase/formats/php_array.rb +0 -19
  630. data/lib/phrase/formats/play_properties.rb +0 -15
  631. data/lib/phrase/formats/plist.rb +0 -19
  632. data/lib/phrase/formats/properties.rb +0 -19
  633. data/lib/phrase/formats/properties_xml.rb +0 -19
  634. data/lib/phrase/formats/qt_phrase_book.rb +0 -19
  635. data/lib/phrase/formats/qt_translation_source.rb +0 -19
  636. data/lib/phrase/formats/resx.rb +0 -19
  637. data/lib/phrase/formats/resx_windowsphone.rb +0 -19
  638. data/lib/phrase/formats/simple_json.rb +0 -19
  639. data/lib/phrase/formats/strings.rb +0 -45
  640. data/lib/phrase/formats/tmx.rb +0 -19
  641. data/lib/phrase/formats/windows8_resource.rb +0 -19
  642. data/lib/phrase/formats/xliff.rb +0 -19
  643. data/lib/phrase/formats/xml.rb +0 -49
  644. data/lib/phrase/formats/yaml.rb +0 -19
  645. data/lib/phrase/formats/yaml_symfony.rb +0 -19
  646. data/lib/phrase/formats/yaml_symfony2.rb +0 -8
  647. data/lib/phrase/hash_flattener.rb +0 -21
  648. data/lib/phrase/tool.rb +0 -46
  649. data/lib/phrase/tool/commands.rb +0 -56
  650. data/lib/phrase/tool/commands/base.rb +0 -73
  651. data/lib/phrase/tool/commands/init.rb +0 -51
  652. data/lib/phrase/tool/commands/pull.rb +0 -109
  653. data/lib/phrase/tool/commands/push.rb +0 -163
  654. data/lib/phrase/tool/commands/show_help.rb +0 -26
  655. data/lib/phrase/tool/commands/show_version.rb +0 -17
  656. data/lib/phrase/tool/commands/tags.rb +0 -29
  657. data/lib/phrase/tool/config.rb +0 -120
  658. data/lib/phrase/tool/encoding_detector.rb +0 -17
  659. data/lib/phrase/tool/locale.rb +0 -41
  660. data/lib/phrase/tool/options.rb +0 -32
  661. data/lib/phrase/tool/options_factory.rb +0 -150
  662. data/lib/phrase/tool/tag_validator.rb +0 -9
  663. data/lib/phrase/view_helpers.rb +0 -19
@@ -0,0 +1,17 @@
1
+ # Phrase::TranslationVerifyParameters
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::TranslationVerifyParameters.new(branch: my-feature-branch)
15
+ ```
16
+
17
+
@@ -0,0 +1,31 @@
1
+ # Phrase::TranslationVersion
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | | [optional]
8
+ **content** | **String** | | [optional]
9
+ **plural_suffix** | **String** | | [optional]
10
+ **key** | [**KeyPreview**](KeyPreview.md) | | [optional]
11
+ **locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
12
+ **created_at** | **DateTime** | | [optional]
13
+ **updated_at** | **DateTime** | | [optional]
14
+ **changed_at** | **DateTime** | | [optional]
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'Phrase'
20
+
21
+ instance = Phrase::TranslationVersion.new(id: null,
22
+ content: null,
23
+ plural_suffix: null,
24
+ key: null,
25
+ locale: null,
26
+ created_at: null,
27
+ updated_at: null,
28
+ changed_at: null)
29
+ ```
30
+
31
+
@@ -0,0 +1,33 @@
1
+ # Phrase::TranslationVersionWithUser
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | | [optional]
8
+ **content** | **String** | | [optional]
9
+ **plural_suffix** | **String** | | [optional]
10
+ **key** | [**KeyPreview**](KeyPreview.md) | | [optional]
11
+ **locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
12
+ **created_at** | **DateTime** | | [optional]
13
+ **updated_at** | **DateTime** | | [optional]
14
+ **changed_at** | **DateTime** | | [optional]
15
+ **user** | [**UserPreview**](UserPreview.md) | | [optional]
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'Phrase'
21
+
22
+ instance = Phrase::TranslationVersionWithUser.new(id: null,
23
+ content: null,
24
+ plural_suffix: null,
25
+ key: null,
26
+ locale: null,
27
+ created_at: null,
28
+ updated_at: null,
29
+ changed_at: null,
30
+ user: null)
31
+ ```
32
+
33
+
@@ -0,0 +1,17 @@
1
+ # Phrase::TranslationVersionWithUser1
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **user** | [**UserPreview**](UserPreview.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'Phrase'
13
+
14
+ instance = Phrase::TranslationVersionWithUser1.new(user: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,1148 @@
1
+ # Phrase::TranslationsApi
2
+
3
+ All URIs are relative to *https://api.phrase.com/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**translation_create**](TranslationsApi.md#translation_create) | **POST** /projects/{project_id}/translations | Create a translation
8
+ [**translation_exclude**](TranslationsApi.md#translation_exclude) | **PATCH** /projects/{project_id}/translations/{id}/exclude | Exclude a translation from export
9
+ [**translation_include**](TranslationsApi.md#translation_include) | **PATCH** /projects/{project_id}/translations/{id}/include | Revoke exclusion of a translation in export
10
+ [**translation_review**](TranslationsApi.md#translation_review) | **PATCH** /projects/{project_id}/translations/{id}/review | Review a translation
11
+ [**translation_show**](TranslationsApi.md#translation_show) | **GET** /projects/{project_id}/translations/{id} | Get a single translation
12
+ [**translation_unverify**](TranslationsApi.md#translation_unverify) | **PATCH** /projects/{project_id}/translations/{id}/unverify | Mark a translation as unverified
13
+ [**translation_update**](TranslationsApi.md#translation_update) | **PATCH** /projects/{project_id}/translations/{id} | Update a translation
14
+ [**translation_verify**](TranslationsApi.md#translation_verify) | **PATCH** /projects/{project_id}/translations/{id}/verify | Verify a translation
15
+ [**translations_by_key**](TranslationsApi.md#translations_by_key) | **GET** /projects/{project_id}/keys/{key_id}/translations | List translations by key
16
+ [**translations_by_locale**](TranslationsApi.md#translations_by_locale) | **GET** /projects/{project_id}/locales/{locale_id}/translations | List translations by locale
17
+ [**translations_exclude**](TranslationsApi.md#translations_exclude) | **PATCH** /projects/{project_id}/translations/exclude | Set exclude from export flag on translations selected by query
18
+ [**translations_include**](TranslationsApi.md#translations_include) | **PATCH** /projects/{project_id}/translations/include | Remove exlude from import flag from translations selected by query
19
+ [**translations_list**](TranslationsApi.md#translations_list) | **GET** /projects/{project_id}/translations | List all translations
20
+ [**translations_review**](TranslationsApi.md#translations_review) | **PATCH** /projects/{project_id}/translations/review | Review translations selected by query
21
+ [**translations_search**](TranslationsApi.md#translations_search) | **POST** /projects/{project_id}/translations/search | Search translations
22
+ [**translations_unverify**](TranslationsApi.md#translations_unverify) | **PATCH** /projects/{project_id}/translations/unverify | Mark translations selected by query as unverified
23
+ [**translations_verify**](TranslationsApi.md#translations_verify) | **PATCH** /projects/{project_id}/translations/verify | Verify translations selected by query
24
+
25
+
26
+
27
+ ## translation_create
28
+
29
+ > TranslationDetails translation_create(project_id, translation_create_parameters, opts)
30
+
31
+ Create a translation
32
+
33
+ Create a translation.
34
+
35
+ ### Example
36
+
37
+ ```ruby
38
+ # load the gem
39
+ require 'phrase'
40
+ # setup authorization
41
+ Phrase.configure do |config|
42
+ # Configure HTTP basic authorization: Basic
43
+ config.username = 'YOUR USERNAME'
44
+ config.password = 'YOUR PASSWORD'
45
+
46
+ # Configure API key authorization: Token
47
+ config.api_key['Authorization'] = 'YOUR API KEY'
48
+ config.api_key_prefix['Authorization'] = 'token'
49
+ end
50
+
51
+ api_instance = Phrase::TranslationsApi.new
52
+ project_id = 'project_id_example' # String | Project ID
53
+ translation_create_parameters = Phrase::TranslationCreateParameters.new # TranslationCreateParameters |
54
+ opts = {
55
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
56
+ }
57
+
58
+ begin
59
+ #Create a translation
60
+ result = api_instance.translation_create(project_id, translation_create_parameters, opts)
61
+ pp result
62
+ rescue Phrase::ApiError => e
63
+ puts "Exception when calling TranslationsApi->translation_create: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+
70
+ Name | Type | Description | Notes
71
+ ------------- | ------------- | ------------- | -------------
72
+ **project_id** | **String**| Project ID |
73
+ **translation_create_parameters** | [**TranslationCreateParameters**](TranslationCreateParameters.md)| |
74
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
75
+
76
+ ### Return type
77
+
78
+ Response<([**TranslationDetails**](TranslationDetails.md))>
79
+
80
+ ### Authorization
81
+
82
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: application/json
87
+ - **Accept**: application/json
88
+
89
+
90
+ ## translation_exclude
91
+
92
+ > TranslationDetails translation_exclude(project_id, id, translation_exclude_parameters, opts)
93
+
94
+ Exclude a translation from export
95
+
96
+ Set exclude from export flag on an existing translation.
97
+
98
+ ### Example
99
+
100
+ ```ruby
101
+ # load the gem
102
+ require 'phrase'
103
+ # setup authorization
104
+ Phrase.configure do |config|
105
+ # Configure HTTP basic authorization: Basic
106
+ config.username = 'YOUR USERNAME'
107
+ config.password = 'YOUR PASSWORD'
108
+
109
+ # Configure API key authorization: Token
110
+ config.api_key['Authorization'] = 'YOUR API KEY'
111
+ config.api_key_prefix['Authorization'] = 'token'
112
+ end
113
+
114
+ api_instance = Phrase::TranslationsApi.new
115
+ project_id = 'project_id_example' # String | Project ID
116
+ id = 'id_example' # String | ID
117
+ translation_exclude_parameters = Phrase::TranslationExcludeParameters.new # TranslationExcludeParameters |
118
+ opts = {
119
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
120
+ }
121
+
122
+ begin
123
+ #Exclude a translation from export
124
+ result = api_instance.translation_exclude(project_id, id, translation_exclude_parameters, opts)
125
+ pp result
126
+ rescue Phrase::ApiError => e
127
+ puts "Exception when calling TranslationsApi->translation_exclude: #{e}"
128
+ end
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+
134
+ Name | Type | Description | Notes
135
+ ------------- | ------------- | ------------- | -------------
136
+ **project_id** | **String**| Project ID |
137
+ **id** | **String**| ID |
138
+ **translation_exclude_parameters** | [**TranslationExcludeParameters**](TranslationExcludeParameters.md)| |
139
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
140
+
141
+ ### Return type
142
+
143
+ Response<([**TranslationDetails**](TranslationDetails.md))>
144
+
145
+ ### Authorization
146
+
147
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: application/json
152
+ - **Accept**: application/json
153
+
154
+
155
+ ## translation_include
156
+
157
+ > TranslationDetails translation_include(project_id, id, translation_include_parameters, opts)
158
+
159
+ Revoke exclusion of a translation in export
160
+
161
+ Remove exclude from export flag from an existing translation.
162
+
163
+ ### Example
164
+
165
+ ```ruby
166
+ # load the gem
167
+ require 'phrase'
168
+ # setup authorization
169
+ Phrase.configure do |config|
170
+ # Configure HTTP basic authorization: Basic
171
+ config.username = 'YOUR USERNAME'
172
+ config.password = 'YOUR PASSWORD'
173
+
174
+ # Configure API key authorization: Token
175
+ config.api_key['Authorization'] = 'YOUR API KEY'
176
+ config.api_key_prefix['Authorization'] = 'token'
177
+ end
178
+
179
+ api_instance = Phrase::TranslationsApi.new
180
+ project_id = 'project_id_example' # String | Project ID
181
+ id = 'id_example' # String | ID
182
+ translation_include_parameters = Phrase::TranslationIncludeParameters.new # TranslationIncludeParameters |
183
+ opts = {
184
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
185
+ }
186
+
187
+ begin
188
+ #Revoke exclusion of a translation in export
189
+ result = api_instance.translation_include(project_id, id, translation_include_parameters, opts)
190
+ pp result
191
+ rescue Phrase::ApiError => e
192
+ puts "Exception when calling TranslationsApi->translation_include: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+
199
+ Name | Type | Description | Notes
200
+ ------------- | ------------- | ------------- | -------------
201
+ **project_id** | **String**| Project ID |
202
+ **id** | **String**| ID |
203
+ **translation_include_parameters** | [**TranslationIncludeParameters**](TranslationIncludeParameters.md)| |
204
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
205
+
206
+ ### Return type
207
+
208
+ Response<([**TranslationDetails**](TranslationDetails.md))>
209
+
210
+ ### Authorization
211
+
212
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
213
+
214
+ ### HTTP request headers
215
+
216
+ - **Content-Type**: application/json
217
+ - **Accept**: application/json
218
+
219
+
220
+ ## translation_review
221
+
222
+ > TranslationDetails translation_review(project_id, id, translation_review_parameters, opts)
223
+
224
+ Review a translation
225
+
226
+ Mark an existing translation as reviewed.
227
+
228
+ ### Example
229
+
230
+ ```ruby
231
+ # load the gem
232
+ require 'phrase'
233
+ # setup authorization
234
+ Phrase.configure do |config|
235
+ # Configure HTTP basic authorization: Basic
236
+ config.username = 'YOUR USERNAME'
237
+ config.password = 'YOUR PASSWORD'
238
+
239
+ # Configure API key authorization: Token
240
+ config.api_key['Authorization'] = 'YOUR API KEY'
241
+ config.api_key_prefix['Authorization'] = 'token'
242
+ end
243
+
244
+ api_instance = Phrase::TranslationsApi.new
245
+ project_id = 'project_id_example' # String | Project ID
246
+ id = 'id_example' # String | ID
247
+ translation_review_parameters = Phrase::TranslationReviewParameters.new # TranslationReviewParameters |
248
+ opts = {
249
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
250
+ }
251
+
252
+ begin
253
+ #Review a translation
254
+ result = api_instance.translation_review(project_id, id, translation_review_parameters, opts)
255
+ pp result
256
+ rescue Phrase::ApiError => e
257
+ puts "Exception when calling TranslationsApi->translation_review: #{e}"
258
+ end
259
+ ```
260
+
261
+ ### Parameters
262
+
263
+
264
+ Name | Type | Description | Notes
265
+ ------------- | ------------- | ------------- | -------------
266
+ **project_id** | **String**| Project ID |
267
+ **id** | **String**| ID |
268
+ **translation_review_parameters** | [**TranslationReviewParameters**](TranslationReviewParameters.md)| |
269
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
270
+
271
+ ### Return type
272
+
273
+ Response<([**TranslationDetails**](TranslationDetails.md))>
274
+
275
+ ### Authorization
276
+
277
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
278
+
279
+ ### HTTP request headers
280
+
281
+ - **Content-Type**: application/json
282
+ - **Accept**: application/json
283
+
284
+
285
+ ## translation_show
286
+
287
+ > TranslationDetails translation_show(project_id, id, opts)
288
+
289
+ Get a single translation
290
+
291
+ Get details on a single translation.
292
+
293
+ ### Example
294
+
295
+ ```ruby
296
+ # load the gem
297
+ require 'phrase'
298
+ # setup authorization
299
+ Phrase.configure do |config|
300
+ # Configure HTTP basic authorization: Basic
301
+ config.username = 'YOUR USERNAME'
302
+ config.password = 'YOUR PASSWORD'
303
+
304
+ # Configure API key authorization: Token
305
+ config.api_key['Authorization'] = 'YOUR API KEY'
306
+ config.api_key_prefix['Authorization'] = 'token'
307
+ end
308
+
309
+ api_instance = Phrase::TranslationsApi.new
310
+ project_id = 'project_id_example' # String | Project ID
311
+ id = 'id_example' # String | ID
312
+ opts = {
313
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
314
+ branch: 'my-feature-branch' # String | specify the branch to use
315
+ }
316
+
317
+ begin
318
+ #Get a single translation
319
+ result = api_instance.translation_show(project_id, id, opts)
320
+ pp result
321
+ rescue Phrase::ApiError => e
322
+ puts "Exception when calling TranslationsApi->translation_show: #{e}"
323
+ end
324
+ ```
325
+
326
+ ### Parameters
327
+
328
+
329
+ Name | Type | Description | Notes
330
+ ------------- | ------------- | ------------- | -------------
331
+ **project_id** | **String**| Project ID |
332
+ **id** | **String**| ID |
333
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
334
+ **branch** | **String**| specify the branch to use | [optional]
335
+
336
+ ### Return type
337
+
338
+ Response<([**TranslationDetails**](TranslationDetails.md))>
339
+
340
+ ### Authorization
341
+
342
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
343
+
344
+ ### HTTP request headers
345
+
346
+ - **Content-Type**: Not defined
347
+ - **Accept**: application/json
348
+
349
+
350
+ ## translation_unverify
351
+
352
+ > TranslationDetails translation_unverify(project_id, id, translation_unverify_parameters, opts)
353
+
354
+ Mark a translation as unverified
355
+
356
+ Mark an existing translation as unverified.
357
+
358
+ ### Example
359
+
360
+ ```ruby
361
+ # load the gem
362
+ require 'phrase'
363
+ # setup authorization
364
+ Phrase.configure do |config|
365
+ # Configure HTTP basic authorization: Basic
366
+ config.username = 'YOUR USERNAME'
367
+ config.password = 'YOUR PASSWORD'
368
+
369
+ # Configure API key authorization: Token
370
+ config.api_key['Authorization'] = 'YOUR API KEY'
371
+ config.api_key_prefix['Authorization'] = 'token'
372
+ end
373
+
374
+ api_instance = Phrase::TranslationsApi.new
375
+ project_id = 'project_id_example' # String | Project ID
376
+ id = 'id_example' # String | ID
377
+ translation_unverify_parameters = Phrase::TranslationUnverifyParameters.new # TranslationUnverifyParameters |
378
+ opts = {
379
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
380
+ }
381
+
382
+ begin
383
+ #Mark a translation as unverified
384
+ result = api_instance.translation_unverify(project_id, id, translation_unverify_parameters, opts)
385
+ pp result
386
+ rescue Phrase::ApiError => e
387
+ puts "Exception when calling TranslationsApi->translation_unverify: #{e}"
388
+ end
389
+ ```
390
+
391
+ ### Parameters
392
+
393
+
394
+ Name | Type | Description | Notes
395
+ ------------- | ------------- | ------------- | -------------
396
+ **project_id** | **String**| Project ID |
397
+ **id** | **String**| ID |
398
+ **translation_unverify_parameters** | [**TranslationUnverifyParameters**](TranslationUnverifyParameters.md)| |
399
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
400
+
401
+ ### Return type
402
+
403
+ Response<([**TranslationDetails**](TranslationDetails.md))>
404
+
405
+ ### Authorization
406
+
407
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
408
+
409
+ ### HTTP request headers
410
+
411
+ - **Content-Type**: application/json
412
+ - **Accept**: application/json
413
+
414
+
415
+ ## translation_update
416
+
417
+ > TranslationDetails translation_update(project_id, id, translation_update_parameters, opts)
418
+
419
+ Update a translation
420
+
421
+ Update an existing translation.
422
+
423
+ ### Example
424
+
425
+ ```ruby
426
+ # load the gem
427
+ require 'phrase'
428
+ # setup authorization
429
+ Phrase.configure do |config|
430
+ # Configure HTTP basic authorization: Basic
431
+ config.username = 'YOUR USERNAME'
432
+ config.password = 'YOUR PASSWORD'
433
+
434
+ # Configure API key authorization: Token
435
+ config.api_key['Authorization'] = 'YOUR API KEY'
436
+ config.api_key_prefix['Authorization'] = 'token'
437
+ end
438
+
439
+ api_instance = Phrase::TranslationsApi.new
440
+ project_id = 'project_id_example' # String | Project ID
441
+ id = 'id_example' # String | ID
442
+ translation_update_parameters = Phrase::TranslationUpdateParameters.new # TranslationUpdateParameters |
443
+ opts = {
444
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
445
+ }
446
+
447
+ begin
448
+ #Update a translation
449
+ result = api_instance.translation_update(project_id, id, translation_update_parameters, opts)
450
+ pp result
451
+ rescue Phrase::ApiError => e
452
+ puts "Exception when calling TranslationsApi->translation_update: #{e}"
453
+ end
454
+ ```
455
+
456
+ ### Parameters
457
+
458
+
459
+ Name | Type | Description | Notes
460
+ ------------- | ------------- | ------------- | -------------
461
+ **project_id** | **String**| Project ID |
462
+ **id** | **String**| ID |
463
+ **translation_update_parameters** | [**TranslationUpdateParameters**](TranslationUpdateParameters.md)| |
464
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
465
+
466
+ ### Return type
467
+
468
+ Response<([**TranslationDetails**](TranslationDetails.md))>
469
+
470
+ ### Authorization
471
+
472
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
473
+
474
+ ### HTTP request headers
475
+
476
+ - **Content-Type**: application/json
477
+ - **Accept**: application/json
478
+
479
+
480
+ ## translation_verify
481
+
482
+ > TranslationDetails translation_verify(project_id, id, translation_verify_parameters, opts)
483
+
484
+ Verify a translation
485
+
486
+ Verify an existing translation.
487
+
488
+ ### Example
489
+
490
+ ```ruby
491
+ # load the gem
492
+ require 'phrase'
493
+ # setup authorization
494
+ Phrase.configure do |config|
495
+ # Configure HTTP basic authorization: Basic
496
+ config.username = 'YOUR USERNAME'
497
+ config.password = 'YOUR PASSWORD'
498
+
499
+ # Configure API key authorization: Token
500
+ config.api_key['Authorization'] = 'YOUR API KEY'
501
+ config.api_key_prefix['Authorization'] = 'token'
502
+ end
503
+
504
+ api_instance = Phrase::TranslationsApi.new
505
+ project_id = 'project_id_example' # String | Project ID
506
+ id = 'id_example' # String | ID
507
+ translation_verify_parameters = Phrase::TranslationVerifyParameters.new # TranslationVerifyParameters |
508
+ opts = {
509
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
510
+ }
511
+
512
+ begin
513
+ #Verify a translation
514
+ result = api_instance.translation_verify(project_id, id, translation_verify_parameters, opts)
515
+ pp result
516
+ rescue Phrase::ApiError => e
517
+ puts "Exception when calling TranslationsApi->translation_verify: #{e}"
518
+ end
519
+ ```
520
+
521
+ ### Parameters
522
+
523
+
524
+ Name | Type | Description | Notes
525
+ ------------- | ------------- | ------------- | -------------
526
+ **project_id** | **String**| Project ID |
527
+ **id** | **String**| ID |
528
+ **translation_verify_parameters** | [**TranslationVerifyParameters**](TranslationVerifyParameters.md)| |
529
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
530
+
531
+ ### Return type
532
+
533
+ Response<([**TranslationDetails**](TranslationDetails.md))>
534
+
535
+ ### Authorization
536
+
537
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
538
+
539
+ ### HTTP request headers
540
+
541
+ - **Content-Type**: application/json
542
+ - **Accept**: application/json
543
+
544
+
545
+ ## translations_by_key
546
+
547
+ > Array&lt;Translation&gt; translations_by_key(project_id, key_id, opts)
548
+
549
+ List translations by key
550
+
551
+ List translations for a specific key.
552
+
553
+ ### Example
554
+
555
+ ```ruby
556
+ # load the gem
557
+ require 'phrase'
558
+ # setup authorization
559
+ Phrase.configure do |config|
560
+ # Configure HTTP basic authorization: Basic
561
+ config.username = 'YOUR USERNAME'
562
+ config.password = 'YOUR PASSWORD'
563
+
564
+ # Configure API key authorization: Token
565
+ config.api_key['Authorization'] = 'YOUR API KEY'
566
+ config.api_key_prefix['Authorization'] = 'token'
567
+ end
568
+
569
+ api_instance = Phrase::TranslationsApi.new
570
+ project_id = 'project_id_example' # String | Project ID
571
+ key_id = 'key_id_example' # String | Translation Key ID
572
+ opts = {
573
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
574
+ page: 1, # Integer | Page number
575
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
576
+ branch: 'my-feature-branch', # String | specify the branch to use
577
+ sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
578
+ order: 'desc', # String | Order direction. Can be one of: asc, desc.
579
+ q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
580
+ }
581
+
582
+ begin
583
+ #List translations by key
584
+ result = api_instance.translations_by_key(project_id, key_id, opts)
585
+ pp result
586
+ rescue Phrase::ApiError => e
587
+ puts "Exception when calling TranslationsApi->translations_by_key: #{e}"
588
+ end
589
+ ```
590
+
591
+ ### Parameters
592
+
593
+
594
+ Name | Type | Description | Notes
595
+ ------------- | ------------- | ------------- | -------------
596
+ **project_id** | **String**| Project ID |
597
+ **key_id** | **String**| Translation Key ID |
598
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
599
+ **page** | **Integer**| Page number | [optional]
600
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
601
+ **branch** | **String**| specify the branch to use | [optional]
602
+ **sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
603
+ **order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
604
+ **q** | **String**| Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;. | [optional]
605
+
606
+ ### Return type
607
+
608
+ Response<([**Array&lt;Translation&gt;**](Translation.md))>
609
+
610
+ ### Authorization
611
+
612
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
613
+
614
+ ### HTTP request headers
615
+
616
+ - **Content-Type**: Not defined
617
+ - **Accept**: application/json
618
+
619
+
620
+ ## translations_by_locale
621
+
622
+ > Array&lt;Translation&gt; translations_by_locale(project_id, locale_id, opts)
623
+
624
+ List translations by locale
625
+
626
+ List translations for a specific locale. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
627
+
628
+ ### Example
629
+
630
+ ```ruby
631
+ # load the gem
632
+ require 'phrase'
633
+ # setup authorization
634
+ Phrase.configure do |config|
635
+ # Configure HTTP basic authorization: Basic
636
+ config.username = 'YOUR USERNAME'
637
+ config.password = 'YOUR PASSWORD'
638
+
639
+ # Configure API key authorization: Token
640
+ config.api_key['Authorization'] = 'YOUR API KEY'
641
+ config.api_key_prefix['Authorization'] = 'token'
642
+ end
643
+
644
+ api_instance = Phrase::TranslationsApi.new
645
+ project_id = 'project_id_example' # String | Project ID
646
+ locale_id = 'locale_id_example' # String | Locale ID
647
+ opts = {
648
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
649
+ page: 1, # Integer | Page number
650
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
651
+ branch: 'my-feature-branch', # String | specify the branch to use
652
+ sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
653
+ order: 'desc', # String | Order direction. Can be one of: asc, desc.
654
+ q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
655
+ }
656
+
657
+ begin
658
+ #List translations by locale
659
+ result = api_instance.translations_by_locale(project_id, locale_id, opts)
660
+ pp result
661
+ rescue Phrase::ApiError => e
662
+ puts "Exception when calling TranslationsApi->translations_by_locale: #{e}"
663
+ end
664
+ ```
665
+
666
+ ### Parameters
667
+
668
+
669
+ Name | Type | Description | Notes
670
+ ------------- | ------------- | ------------- | -------------
671
+ **project_id** | **String**| Project ID |
672
+ **locale_id** | **String**| Locale ID |
673
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
674
+ **page** | **Integer**| Page number | [optional]
675
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
676
+ **branch** | **String**| specify the branch to use | [optional]
677
+ **sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
678
+ **order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
679
+ **q** | **String**| Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;. | [optional]
680
+
681
+ ### Return type
682
+
683
+ Response<([**Array&lt;Translation&gt;**](Translation.md))>
684
+
685
+ ### Authorization
686
+
687
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
688
+
689
+ ### HTTP request headers
690
+
691
+ - **Content-Type**: Not defined
692
+ - **Accept**: application/json
693
+
694
+
695
+ ## translations_exclude
696
+
697
+ > AffectedCount translations_exclude(project_id, translations_exclude_parameters, opts)
698
+
699
+ Set exclude from export flag on translations selected by query
700
+
701
+ Exclude translations matching query from locale export.
702
+
703
+ ### Example
704
+
705
+ ```ruby
706
+ # load the gem
707
+ require 'phrase'
708
+ # setup authorization
709
+ Phrase.configure do |config|
710
+ # Configure HTTP basic authorization: Basic
711
+ config.username = 'YOUR USERNAME'
712
+ config.password = 'YOUR PASSWORD'
713
+
714
+ # Configure API key authorization: Token
715
+ config.api_key['Authorization'] = 'YOUR API KEY'
716
+ config.api_key_prefix['Authorization'] = 'token'
717
+ end
718
+
719
+ api_instance = Phrase::TranslationsApi.new
720
+ project_id = 'project_id_example' # String | Project ID
721
+ translations_exclude_parameters = Phrase::TranslationsExcludeParameters.new # TranslationsExcludeParameters |
722
+ opts = {
723
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
724
+ }
725
+
726
+ begin
727
+ #Set exclude from export flag on translations selected by query
728
+ result = api_instance.translations_exclude(project_id, translations_exclude_parameters, opts)
729
+ pp result
730
+ rescue Phrase::ApiError => e
731
+ puts "Exception when calling TranslationsApi->translations_exclude: #{e}"
732
+ end
733
+ ```
734
+
735
+ ### Parameters
736
+
737
+
738
+ Name | Type | Description | Notes
739
+ ------------- | ------------- | ------------- | -------------
740
+ **project_id** | **String**| Project ID |
741
+ **translations_exclude_parameters** | [**TranslationsExcludeParameters**](TranslationsExcludeParameters.md)| |
742
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
743
+
744
+ ### Return type
745
+
746
+ Response<([**AffectedCount**](AffectedCount.md))>
747
+
748
+ ### Authorization
749
+
750
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
751
+
752
+ ### HTTP request headers
753
+
754
+ - **Content-Type**: application/json
755
+ - **Accept**: application/json
756
+
757
+
758
+ ## translations_include
759
+
760
+ > AffectedCount translations_include(project_id, translations_include_parameters, opts)
761
+
762
+ Remove exlude from import flag from translations selected by query
763
+
764
+ Include translations matching query in locale export.
765
+
766
+ ### Example
767
+
768
+ ```ruby
769
+ # load the gem
770
+ require 'phrase'
771
+ # setup authorization
772
+ Phrase.configure do |config|
773
+ # Configure HTTP basic authorization: Basic
774
+ config.username = 'YOUR USERNAME'
775
+ config.password = 'YOUR PASSWORD'
776
+
777
+ # Configure API key authorization: Token
778
+ config.api_key['Authorization'] = 'YOUR API KEY'
779
+ config.api_key_prefix['Authorization'] = 'token'
780
+ end
781
+
782
+ api_instance = Phrase::TranslationsApi.new
783
+ project_id = 'project_id_example' # String | Project ID
784
+ translations_include_parameters = Phrase::TranslationsIncludeParameters.new # TranslationsIncludeParameters |
785
+ opts = {
786
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
787
+ }
788
+
789
+ begin
790
+ #Remove exlude from import flag from translations selected by query
791
+ result = api_instance.translations_include(project_id, translations_include_parameters, opts)
792
+ pp result
793
+ rescue Phrase::ApiError => e
794
+ puts "Exception when calling TranslationsApi->translations_include: #{e}"
795
+ end
796
+ ```
797
+
798
+ ### Parameters
799
+
800
+
801
+ Name | Type | Description | Notes
802
+ ------------- | ------------- | ------------- | -------------
803
+ **project_id** | **String**| Project ID |
804
+ **translations_include_parameters** | [**TranslationsIncludeParameters**](TranslationsIncludeParameters.md)| |
805
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
806
+
807
+ ### Return type
808
+
809
+ Response<([**AffectedCount**](AffectedCount.md))>
810
+
811
+ ### Authorization
812
+
813
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
814
+
815
+ ### HTTP request headers
816
+
817
+ - **Content-Type**: application/json
818
+ - **Accept**: application/json
819
+
820
+
821
+ ## translations_list
822
+
823
+ > Array&lt;Translation&gt; translations_list(project_id, opts)
824
+
825
+ List all translations
826
+
827
+ List translations for the given project. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
828
+
829
+ ### Example
830
+
831
+ ```ruby
832
+ # load the gem
833
+ require 'phrase'
834
+ # setup authorization
835
+ Phrase.configure do |config|
836
+ # Configure HTTP basic authorization: Basic
837
+ config.username = 'YOUR USERNAME'
838
+ config.password = 'YOUR PASSWORD'
839
+
840
+ # Configure API key authorization: Token
841
+ config.api_key['Authorization'] = 'YOUR API KEY'
842
+ config.api_key_prefix['Authorization'] = 'token'
843
+ end
844
+
845
+ api_instance = Phrase::TranslationsApi.new
846
+ project_id = 'project_id_example' # String | Project ID
847
+ opts = {
848
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
849
+ page: 1, # Integer | Page number
850
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
851
+ branch: 'my-feature-branch', # String | specify the branch to use
852
+ sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
853
+ order: 'desc', # String | Order direction. Can be one of: asc, desc.
854
+ q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
855
+ }
856
+
857
+ begin
858
+ #List all translations
859
+ result = api_instance.translations_list(project_id, opts)
860
+ pp result
861
+ rescue Phrase::ApiError => e
862
+ puts "Exception when calling TranslationsApi->translations_list: #{e}"
863
+ end
864
+ ```
865
+
866
+ ### Parameters
867
+
868
+
869
+ Name | Type | Description | Notes
870
+ ------------- | ------------- | ------------- | -------------
871
+ **project_id** | **String**| Project ID |
872
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
873
+ **page** | **Integer**| Page number | [optional]
874
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
875
+ **branch** | **String**| specify the branch to use | [optional]
876
+ **sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
877
+ **order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
878
+ **q** | **String**| Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;. | [optional]
879
+
880
+ ### Return type
881
+
882
+ Response<([**Array&lt;Translation&gt;**](Translation.md))>
883
+
884
+ ### Authorization
885
+
886
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
887
+
888
+ ### HTTP request headers
889
+
890
+ - **Content-Type**: Not defined
891
+ - **Accept**: application/json
892
+
893
+
894
+ ## translations_review
895
+
896
+ > AffectedCount translations_review(project_id, translations_review_parameters, opts)
897
+
898
+ Review translations selected by query
899
+
900
+ Review translations matching query.
901
+
902
+ ### Example
903
+
904
+ ```ruby
905
+ # load the gem
906
+ require 'phrase'
907
+ # setup authorization
908
+ Phrase.configure do |config|
909
+ # Configure HTTP basic authorization: Basic
910
+ config.username = 'YOUR USERNAME'
911
+ config.password = 'YOUR PASSWORD'
912
+
913
+ # Configure API key authorization: Token
914
+ config.api_key['Authorization'] = 'YOUR API KEY'
915
+ config.api_key_prefix['Authorization'] = 'token'
916
+ end
917
+
918
+ api_instance = Phrase::TranslationsApi.new
919
+ project_id = 'project_id_example' # String | Project ID
920
+ translations_review_parameters = Phrase::TranslationsReviewParameters.new # TranslationsReviewParameters |
921
+ opts = {
922
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
923
+ }
924
+
925
+ begin
926
+ #Review translations selected by query
927
+ result = api_instance.translations_review(project_id, translations_review_parameters, opts)
928
+ pp result
929
+ rescue Phrase::ApiError => e
930
+ puts "Exception when calling TranslationsApi->translations_review: #{e}"
931
+ end
932
+ ```
933
+
934
+ ### Parameters
935
+
936
+
937
+ Name | Type | Description | Notes
938
+ ------------- | ------------- | ------------- | -------------
939
+ **project_id** | **String**| Project ID |
940
+ **translations_review_parameters** | [**TranslationsReviewParameters**](TranslationsReviewParameters.md)| |
941
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
942
+
943
+ ### Return type
944
+
945
+ Response<([**AffectedCount**](AffectedCount.md))>
946
+
947
+ ### Authorization
948
+
949
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
950
+
951
+ ### HTTP request headers
952
+
953
+ - **Content-Type**: application/json
954
+ - **Accept**: application/json
955
+
956
+
957
+ ## translations_search
958
+
959
+ > Array&lt;Translation&gt; translations_search(project_id, translations_search_parameters, opts)
960
+
961
+ Search translations
962
+
963
+ Search translations for the given project. Provides the same search interface as <code>translations#index</code> but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
964
+
965
+ ### Example
966
+
967
+ ```ruby
968
+ # load the gem
969
+ require 'phrase'
970
+ # setup authorization
971
+ Phrase.configure do |config|
972
+ # Configure HTTP basic authorization: Basic
973
+ config.username = 'YOUR USERNAME'
974
+ config.password = 'YOUR PASSWORD'
975
+
976
+ # Configure API key authorization: Token
977
+ config.api_key['Authorization'] = 'YOUR API KEY'
978
+ config.api_key_prefix['Authorization'] = 'token'
979
+ end
980
+
981
+ api_instance = Phrase::TranslationsApi.new
982
+ project_id = 'project_id_example' # String | Project ID
983
+ translations_search_parameters = Phrase::TranslationsSearchParameters.new # TranslationsSearchParameters |
984
+ opts = {
985
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
986
+ page: 1, # Integer | Page number
987
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
988
+ }
989
+
990
+ begin
991
+ #Search translations
992
+ result = api_instance.translations_search(project_id, translations_search_parameters, opts)
993
+ pp result
994
+ rescue Phrase::ApiError => e
995
+ puts "Exception when calling TranslationsApi->translations_search: #{e}"
996
+ end
997
+ ```
998
+
999
+ ### Parameters
1000
+
1001
+
1002
+ Name | Type | Description | Notes
1003
+ ------------- | ------------- | ------------- | -------------
1004
+ **project_id** | **String**| Project ID |
1005
+ **translations_search_parameters** | [**TranslationsSearchParameters**](TranslationsSearchParameters.md)| |
1006
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
1007
+ **page** | **Integer**| Page number | [optional]
1008
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
1009
+
1010
+ ### Return type
1011
+
1012
+ Response<([**Array&lt;Translation&gt;**](Translation.md))>
1013
+
1014
+ ### Authorization
1015
+
1016
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
1017
+
1018
+ ### HTTP request headers
1019
+
1020
+ - **Content-Type**: application/json
1021
+ - **Accept**: application/json
1022
+
1023
+
1024
+ ## translations_unverify
1025
+
1026
+ > AffectedCount translations_unverify(project_id, translations_unverify_parameters, opts)
1027
+
1028
+ Mark translations selected by query as unverified
1029
+
1030
+ Mark translations matching query as unverified.
1031
+
1032
+ ### Example
1033
+
1034
+ ```ruby
1035
+ # load the gem
1036
+ require 'phrase'
1037
+ # setup authorization
1038
+ Phrase.configure do |config|
1039
+ # Configure HTTP basic authorization: Basic
1040
+ config.username = 'YOUR USERNAME'
1041
+ config.password = 'YOUR PASSWORD'
1042
+
1043
+ # Configure API key authorization: Token
1044
+ config.api_key['Authorization'] = 'YOUR API KEY'
1045
+ config.api_key_prefix['Authorization'] = 'token'
1046
+ end
1047
+
1048
+ api_instance = Phrase::TranslationsApi.new
1049
+ project_id = 'project_id_example' # String | Project ID
1050
+ translations_unverify_parameters = Phrase::TranslationsUnverifyParameters.new # TranslationsUnverifyParameters |
1051
+ opts = {
1052
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
1053
+ }
1054
+
1055
+ begin
1056
+ #Mark translations selected by query as unverified
1057
+ result = api_instance.translations_unverify(project_id, translations_unverify_parameters, opts)
1058
+ pp result
1059
+ rescue Phrase::ApiError => e
1060
+ puts "Exception when calling TranslationsApi->translations_unverify: #{e}"
1061
+ end
1062
+ ```
1063
+
1064
+ ### Parameters
1065
+
1066
+
1067
+ Name | Type | Description | Notes
1068
+ ------------- | ------------- | ------------- | -------------
1069
+ **project_id** | **String**| Project ID |
1070
+ **translations_unverify_parameters** | [**TranslationsUnverifyParameters**](TranslationsUnverifyParameters.md)| |
1071
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
1072
+
1073
+ ### Return type
1074
+
1075
+ Response<([**AffectedCount**](AffectedCount.md))>
1076
+
1077
+ ### Authorization
1078
+
1079
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
1080
+
1081
+ ### HTTP request headers
1082
+
1083
+ - **Content-Type**: application/json
1084
+ - **Accept**: application/json
1085
+
1086
+
1087
+ ## translations_verify
1088
+
1089
+ > AffectedCount translations_verify(project_id, translations_verify_parameters, opts)
1090
+
1091
+ Verify translations selected by query
1092
+
1093
+ Verify translations matching query.
1094
+
1095
+ ### Example
1096
+
1097
+ ```ruby
1098
+ # load the gem
1099
+ require 'phrase'
1100
+ # setup authorization
1101
+ Phrase.configure do |config|
1102
+ # Configure HTTP basic authorization: Basic
1103
+ config.username = 'YOUR USERNAME'
1104
+ config.password = 'YOUR PASSWORD'
1105
+
1106
+ # Configure API key authorization: Token
1107
+ config.api_key['Authorization'] = 'YOUR API KEY'
1108
+ config.api_key_prefix['Authorization'] = 'token'
1109
+ end
1110
+
1111
+ api_instance = Phrase::TranslationsApi.new
1112
+ project_id = 'project_id_example' # String | Project ID
1113
+ translations_verify_parameters = Phrase::TranslationsVerifyParameters.new # TranslationsVerifyParameters |
1114
+ opts = {
1115
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
1116
+ }
1117
+
1118
+ begin
1119
+ #Verify translations selected by query
1120
+ result = api_instance.translations_verify(project_id, translations_verify_parameters, opts)
1121
+ pp result
1122
+ rescue Phrase::ApiError => e
1123
+ puts "Exception when calling TranslationsApi->translations_verify: #{e}"
1124
+ end
1125
+ ```
1126
+
1127
+ ### Parameters
1128
+
1129
+
1130
+ Name | Type | Description | Notes
1131
+ ------------- | ------------- | ------------- | -------------
1132
+ **project_id** | **String**| Project ID |
1133
+ **translations_verify_parameters** | [**TranslationsVerifyParameters**](TranslationsVerifyParameters.md)| |
1134
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
1135
+
1136
+ ### Return type
1137
+
1138
+ Response<([**AffectedCount**](AffectedCount.md))>
1139
+
1140
+ ### Authorization
1141
+
1142
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
1143
+
1144
+ ### HTTP request headers
1145
+
1146
+ - **Content-Type**: application/json
1147
+ - **Accept**: application/json
1148
+