phrase 0.4.33 → 1.0.1

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