phrase 2.18.0 → 2.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +14 -29
  4. data/docs/Account.md +2 -2
  5. data/docs/AccountDetails.md +2 -2
  6. data/docs/Authorization.md +3 -3
  7. data/docs/AuthorizationCreateParameters.md +1 -1
  8. data/docs/AuthorizationUpdateParameters.md +1 -1
  9. data/docs/AuthorizationWithToken.md +3 -3
  10. data/docs/BitbucketSync.md +2 -2
  11. data/docs/BlacklistedKey.md +2 -2
  12. data/docs/Branch.md +3 -3
  13. data/docs/Comment.md +2 -2
  14. data/docs/CommentReaction.md +2 -2
  15. data/docs/CommentRepliesApi.md +1 -1
  16. data/docs/CommentsApi.md +3 -3
  17. data/docs/CurrentUser.md +2 -2
  18. data/docs/Distribution.md +2 -2
  19. data/docs/DistributionPreview.md +2 -2
  20. data/docs/Document.md +2 -2
  21. data/docs/FigmaAttachment.md +2 -2
  22. data/docs/GitlabSync.md +2 -2
  23. data/docs/GitlabSyncHistory.md +3 -3
  24. data/docs/{GitlabSyncHistoryErrors.md → GitlabSyncHistoryErrorsInner.md} +2 -2
  25. data/docs/Glossary.md +2 -2
  26. data/docs/GlossaryTerm.md +2 -2
  27. data/docs/GlossaryTermTranslation.md +2 -2
  28. data/docs/Invitation.md +5 -5
  29. data/docs/{InlineResponse422.md → InvitationCreate422Response.md} +3 -3
  30. data/docs/{InlineResponse422Errors.md → InvitationCreate422ResponseErrorsInner.md} +2 -2
  31. data/docs/Job.md +3 -3
  32. data/docs/JobComment.md +2 -2
  33. data/docs/JobCreateParameters.md +1 -1
  34. data/docs/JobDetails.md +3 -3
  35. data/docs/JobLocale.md +2 -2
  36. data/docs/JobLocalesApi.md +1 -1
  37. data/docs/JobTemplate.md +2 -2
  38. data/docs/JobTemplateDetails.md +2 -2
  39. data/docs/JobTemplateLocalesApi.md +1 -1
  40. data/docs/JobTemplatesApi.md +2 -2
  41. data/docs/JobUpdateParameters.md +1 -1
  42. data/docs/JobsApi.md +1 -1
  43. data/docs/KeyCreateParameters.md +1 -1
  44. data/docs/KeyUpdateParameters.md +1 -1
  45. data/docs/Locale.md +2 -2
  46. data/docs/LocaleDetails.md +2 -2
  47. data/docs/LocalesApi.md +1 -1
  48. data/docs/Member.md +4 -4
  49. data/docs/MemberProjectDetail.md +3 -3
  50. data/docs/{MemberProjectDetailProjectRoles.md → MemberProjectDetailProjectRolesInner.md} +2 -2
  51. data/docs/{MemberSpaces.md → MemberSpacesInner.md} +4 -4
  52. data/docs/Notification.md +6 -6
  53. data/docs/NotificationGroup.md +2 -2
  54. data/docs/NotificationGroupDetail.md +2 -2
  55. data/docs/OrganizationJobTemplate.md +2 -2
  56. data/docs/OrganizationJobTemplateDetails.md +2 -2
  57. data/docs/OrganizationJobTemplateLocalesApi.md +1 -1
  58. data/docs/OrganizationJobTemplatesApi.md +2 -2
  59. data/docs/Project.md +2 -2
  60. data/docs/ProjectCreateParameters.md +1 -1
  61. data/docs/ProjectDetails.md +2 -2
  62. data/docs/ProjectLocales.md +2 -2
  63. data/docs/ProjectShort.md +2 -2
  64. data/docs/ProjectUpdateParameters.md +1 -1
  65. data/docs/ProjectsApi.md +1 -1
  66. data/docs/Release.md +2 -2
  67. data/docs/ReleasePreview.md +2 -2
  68. data/docs/Screenshot.md +2 -2
  69. data/docs/ScreenshotMarker.md +2 -2
  70. data/docs/ScreenshotUpdateParameters.md +1 -1
  71. data/docs/ScreenshotsApi.md +1 -1
  72. data/docs/Space.md +2 -2
  73. data/docs/Space1.md +2 -2
  74. data/docs/Styleguide.md +2 -2
  75. data/docs/StyleguideCreateParameters.md +1 -1
  76. data/docs/StyleguideDetails.md +2 -2
  77. data/docs/StyleguideUpdateParameters.md +1 -1
  78. data/docs/Tag.md +2 -2
  79. data/docs/TagWithStats.md +2 -2
  80. data/docs/Team.md +2 -2
  81. data/docs/TeamDetail.md +2 -2
  82. data/docs/TeamShort.md +2 -2
  83. data/docs/Translation.md +2 -2
  84. data/docs/TranslationDetails.md +2 -2
  85. data/docs/TranslationKey.md +2 -2
  86. data/docs/TranslationKeyDetails.md +2 -2
  87. data/docs/TranslationOrder.md +2 -2
  88. data/docs/TranslationVersion.md +3 -3
  89. data/docs/TranslationVersionWithUser.md +3 -3
  90. data/docs/Upload.md +2 -2
  91. data/docs/UploadsApi.md +4 -4
  92. data/docs/User.md +2 -2
  93. data/docs/Variable.md +2 -2
  94. data/docs/Webhook.md +2 -2
  95. data/docs/WebhookDelivery.md +3 -3
  96. data/lib/phrase/configuration.rb +6 -6
  97. data/lib/phrase/models/account.rb +3 -1
  98. data/lib/phrase/models/account_details.rb +4 -3
  99. data/lib/phrase/models/account_search_result.rb +3 -1
  100. data/lib/phrase/models/affected_count.rb +3 -1
  101. data/lib/phrase/models/affected_resources.rb +3 -1
  102. data/lib/phrase/models/authorization.rb +3 -1
  103. data/lib/phrase/models/authorization_create_parameters.rb +3 -1
  104. data/lib/phrase/models/authorization_update_parameters.rb +3 -1
  105. data/lib/phrase/models/authorization_with_token.rb +4 -3
  106. data/lib/phrase/models/bitbucket_sync.rb +3 -1
  107. data/lib/phrase/models/bitbucket_sync_export_parameters.rb +3 -1
  108. data/lib/phrase/models/bitbucket_sync_export_response.rb +3 -1
  109. data/lib/phrase/models/bitbucket_sync_import_parameters.rb +3 -1
  110. data/lib/phrase/models/blacklisted_key.rb +3 -1
  111. data/lib/phrase/models/blacklisted_key_create_parameters.rb +3 -1
  112. data/lib/phrase/models/blacklisted_key_update_parameters.rb +3 -1
  113. data/lib/phrase/models/branch.rb +3 -1
  114. data/lib/phrase/models/branch_create_parameters.rb +3 -1
  115. data/lib/phrase/models/branch_merge_parameters.rb +3 -1
  116. data/lib/phrase/models/branch_name.rb +3 -1
  117. data/lib/phrase/models/branch_update_parameters.rb +3 -1
  118. data/lib/phrase/models/comment.rb +3 -1
  119. data/lib/phrase/models/comment_create_parameters.rb +3 -1
  120. data/lib/phrase/models/comment_mark_read_parameters.rb +3 -1
  121. data/lib/phrase/models/comment_reaction.rb +3 -1
  122. data/lib/phrase/models/comment_update_parameters.rb +3 -1
  123. data/lib/phrase/models/comments_list_parameters.rb +3 -1
  124. data/lib/phrase/models/current_user.rb +3 -1
  125. data/lib/phrase/models/distribution.rb +3 -1
  126. data/lib/phrase/models/distribution_create_parameters.rb +3 -1
  127. data/lib/phrase/models/distribution_preview.rb +3 -1
  128. data/lib/phrase/models/distribution_update_parameters.rb +3 -1
  129. data/lib/phrase/models/document.rb +3 -1
  130. data/lib/phrase/models/figma_attachment.rb +3 -1
  131. data/lib/phrase/models/figma_attachment_create_parameters.rb +3 -1
  132. data/lib/phrase/models/figma_attachment_update_parameters.rb +3 -1
  133. data/lib/phrase/models/format.rb +3 -1
  134. data/lib/phrase/models/github_sync_export_parameters.rb +3 -1
  135. data/lib/phrase/models/github_sync_import_parameters.rb +3 -1
  136. data/lib/phrase/models/gitlab_sync.rb +3 -1
  137. data/lib/phrase/models/gitlab_sync_export.rb +3 -1
  138. data/lib/phrase/models/gitlab_sync_export_parameters.rb +3 -1
  139. data/lib/phrase/models/gitlab_sync_history.rb +4 -2
  140. data/lib/phrase/models/{gitlab_sync_history_errors.rb → gitlab_sync_history_errors_inner.rb} +6 -4
  141. data/lib/phrase/models/gitlab_sync_import_parameters.rb +3 -1
  142. data/lib/phrase/models/glossary.rb +3 -1
  143. data/lib/phrase/models/glossary_create_parameters.rb +3 -1
  144. data/lib/phrase/models/glossary_term.rb +3 -1
  145. data/lib/phrase/models/glossary_term_create_parameters.rb +3 -1
  146. data/lib/phrase/models/glossary_term_translation.rb +3 -1
  147. data/lib/phrase/models/glossary_term_translation_create_parameters.rb +3 -1
  148. data/lib/phrase/models/glossary_term_translation_update_parameters.rb +3 -1
  149. data/lib/phrase/models/glossary_term_update_parameters.rb +3 -1
  150. data/lib/phrase/models/glossary_update_parameters.rb +3 -1
  151. data/lib/phrase/models/icu.rb +3 -1
  152. data/lib/phrase/models/icu_skeleton_parameters.rb +3 -1
  153. data/lib/phrase/models/invitation.rb +4 -2
  154. data/lib/phrase/models/{inline_response422.rb → invitation_create422_response.rb} +7 -5
  155. data/lib/phrase/models/{inline_response422_errors.rb → invitation_create422_response_errors_inner.rb} +6 -4
  156. data/lib/phrase/models/invitation_create_parameters.rb +3 -1
  157. data/lib/phrase/models/invitation_update_parameters.rb +3 -1
  158. data/lib/phrase/models/invitation_update_settings_parameters.rb +3 -1
  159. data/lib/phrase/models/job.rb +3 -1
  160. data/lib/phrase/models/job_comment.rb +3 -1
  161. data/lib/phrase/models/job_comment_create_parameters.rb +3 -1
  162. data/lib/phrase/models/job_comment_update_parameters.rb +3 -1
  163. data/lib/phrase/models/job_complete_parameters.rb +3 -1
  164. data/lib/phrase/models/job_create_parameters.rb +3 -1
  165. data/lib/phrase/models/job_details.rb +4 -3
  166. data/lib/phrase/models/job_keys_create_parameters.rb +3 -1
  167. data/lib/phrase/models/job_locale.rb +3 -1
  168. data/lib/phrase/models/job_locale_complete_parameters.rb +3 -1
  169. data/lib/phrase/models/job_locale_complete_review_parameters.rb +3 -1
  170. data/lib/phrase/models/job_locale_reopen_parameters.rb +3 -1
  171. data/lib/phrase/models/job_locale_update_parameters.rb +3 -1
  172. data/lib/phrase/models/job_locales_create_parameters.rb +3 -1
  173. data/lib/phrase/models/job_preview.rb +3 -1
  174. data/lib/phrase/models/job_reopen_parameters.rb +3 -1
  175. data/lib/phrase/models/job_start_parameters.rb +3 -1
  176. data/lib/phrase/models/job_template.rb +3 -1
  177. data/lib/phrase/models/job_template_create_parameters.rb +3 -1
  178. data/lib/phrase/models/job_template_details.rb +4 -3
  179. data/lib/phrase/models/job_template_locale_update_parameters.rb +3 -1
  180. data/lib/phrase/models/job_template_locales.rb +3 -1
  181. data/lib/phrase/models/job_template_locales_create_parameters.rb +3 -1
  182. data/lib/phrase/models/job_template_preview.rb +3 -1
  183. data/lib/phrase/models/job_template_update_parameters.rb +3 -1
  184. data/lib/phrase/models/job_update_parameters.rb +3 -1
  185. data/lib/phrase/models/key_create_parameters.rb +3 -1
  186. data/lib/phrase/models/key_preview.rb +3 -1
  187. data/lib/phrase/models/key_update_parameters.rb +3 -1
  188. data/lib/phrase/models/keys_exclude_parameters.rb +3 -1
  189. data/lib/phrase/models/keys_include_parameters.rb +3 -1
  190. data/lib/phrase/models/keys_search_parameters.rb +3 -1
  191. data/lib/phrase/models/keys_tag_parameters.rb +3 -1
  192. data/lib/phrase/models/keys_untag_parameters.rb +3 -1
  193. data/lib/phrase/models/locale.rb +3 -1
  194. data/lib/phrase/models/locale_create_parameters.rb +3 -1
  195. data/lib/phrase/models/locale_details.rb +4 -3
  196. data/lib/phrase/models/locale_preview.rb +3 -1
  197. data/lib/phrase/models/locale_preview1.rb +3 -1
  198. data/lib/phrase/models/locale_statistics.rb +3 -1
  199. data/lib/phrase/models/locale_team_preview.rb +3 -1
  200. data/lib/phrase/models/locale_update_parameters.rb +3 -1
  201. data/lib/phrase/models/locale_user_preview.rb +3 -1
  202. data/lib/phrase/models/member.rb +4 -2
  203. data/lib/phrase/models/member_project_detail.rb +5 -3
  204. data/lib/phrase/models/{member_project_detail_project_roles.rb → member_project_detail_project_roles_inner.rb} +6 -4
  205. data/lib/phrase/models/{member_spaces.rb → member_spaces_inner.rb} +6 -4
  206. data/lib/phrase/models/member_update_parameters.rb +3 -1
  207. data/lib/phrase/models/member_update_settings_parameters.rb +3 -1
  208. data/lib/phrase/models/notification.rb +3 -1
  209. data/lib/phrase/models/notification_group.rb +3 -1
  210. data/lib/phrase/models/notification_group_detail.rb +3 -1
  211. data/lib/phrase/models/order_confirm_parameters.rb +3 -1
  212. data/lib/phrase/models/order_create_parameters.rb +3 -1
  213. data/lib/phrase/models/organization_job_template.rb +3 -1
  214. data/lib/phrase/models/organization_job_template_create_parameters.rb +3 -1
  215. data/lib/phrase/models/organization_job_template_details.rb +3 -2
  216. data/lib/phrase/models/organization_job_template_locale_update_parameters.rb +3 -1
  217. data/lib/phrase/models/organization_job_template_locales_create_parameters.rb +3 -1
  218. data/lib/phrase/models/organization_job_template_update_parameters.rb +3 -1
  219. data/lib/phrase/models/project.rb +3 -1
  220. data/lib/phrase/models/project_create_parameters.rb +3 -1
  221. data/lib/phrase/models/project_details.rb +4 -3
  222. data/lib/phrase/models/project_locales.rb +3 -9
  223. data/lib/phrase/models/project_short.rb +3 -1
  224. data/lib/phrase/models/project_update_parameters.rb +3 -1
  225. data/lib/phrase/models/release.rb +3 -1
  226. data/lib/phrase/models/release_create_parameters.rb +3 -1
  227. data/lib/phrase/models/release_preview.rb +3 -1
  228. data/lib/phrase/models/release_update_parameters.rb +3 -1
  229. data/lib/phrase/models/replies_list_parameters.rb +3 -1
  230. data/lib/phrase/models/screenshot.rb +3 -1
  231. data/lib/phrase/models/screenshot_marker.rb +3 -1
  232. data/lib/phrase/models/screenshot_marker_create_parameters.rb +3 -1
  233. data/lib/phrase/models/screenshot_marker_update_parameters.rb +3 -1
  234. data/lib/phrase/models/screenshot_update_parameters.rb +3 -1
  235. data/lib/phrase/models/search_in_account_parameters.rb +3 -1
  236. data/lib/phrase/models/space.rb +3 -1
  237. data/lib/phrase/models/space1.rb +3 -1
  238. data/lib/phrase/models/space_create_parameters.rb +3 -1
  239. data/lib/phrase/models/space_update_parameters.rb +3 -1
  240. data/lib/phrase/models/spaces_projects_create_parameters.rb +3 -1
  241. data/lib/phrase/models/styleguide.rb +3 -1
  242. data/lib/phrase/models/styleguide_create_parameters.rb +3 -1
  243. data/lib/phrase/models/styleguide_details.rb +4 -3
  244. data/lib/phrase/models/styleguide_preview.rb +3 -1
  245. data/lib/phrase/models/styleguide_update_parameters.rb +3 -1
  246. data/lib/phrase/models/subscription.rb +3 -1
  247. data/lib/phrase/models/tag.rb +3 -1
  248. data/lib/phrase/models/tag_create_parameters.rb +3 -1
  249. data/lib/phrase/models/tag_with_stats.rb +4 -3
  250. data/lib/phrase/models/tag_with_stats1_statistics.rb +3 -1
  251. data/lib/phrase/models/tag_with_stats1_statistics1.rb +3 -1
  252. data/lib/phrase/models/team.rb +3 -1
  253. data/lib/phrase/models/team_create_parameters.rb +3 -1
  254. data/lib/phrase/models/team_detail.rb +3 -1
  255. data/lib/phrase/models/team_short.rb +3 -1
  256. data/lib/phrase/models/team_update_parameters.rb +3 -1
  257. data/lib/phrase/models/teams_projects_create_parameters.rb +3 -1
  258. data/lib/phrase/models/teams_spaces_create_parameters.rb +3 -1
  259. data/lib/phrase/models/teams_users_create_parameters.rb +3 -1
  260. data/lib/phrase/models/translation.rb +3 -1
  261. data/lib/phrase/models/translation_create_parameters.rb +3 -1
  262. data/lib/phrase/models/translation_details.rb +4 -3
  263. data/lib/phrase/models/translation_exclude_parameters.rb +3 -1
  264. data/lib/phrase/models/translation_include_parameters.rb +3 -1
  265. data/lib/phrase/models/translation_key.rb +3 -1
  266. data/lib/phrase/models/translation_key_details.rb +4 -3
  267. data/lib/phrase/models/translation_order.rb +3 -1
  268. data/lib/phrase/models/translation_review_parameters.rb +3 -1
  269. data/lib/phrase/models/translation_unverify_parameters.rb +3 -1
  270. data/lib/phrase/models/translation_update_parameters.rb +3 -1
  271. data/lib/phrase/models/translation_verify_parameters.rb +3 -1
  272. data/lib/phrase/models/translation_version.rb +3 -1
  273. data/lib/phrase/models/translation_version_with_user.rb +4 -3
  274. data/lib/phrase/models/translations_exclude_parameters.rb +3 -1
  275. data/lib/phrase/models/translations_include_parameters.rb +3 -1
  276. data/lib/phrase/models/translations_review_parameters.rb +3 -1
  277. data/lib/phrase/models/translations_search_parameters.rb +3 -1
  278. data/lib/phrase/models/translations_unverify_parameters.rb +3 -1
  279. data/lib/phrase/models/translations_verify_parameters.rb +3 -1
  280. data/lib/phrase/models/upload.rb +3 -1
  281. data/lib/phrase/models/upload_summary.rb +3 -1
  282. data/lib/phrase/models/user.rb +3 -1
  283. data/lib/phrase/models/user_preview.rb +3 -1
  284. data/lib/phrase/models/variable.rb +3 -1
  285. data/lib/phrase/models/variable_create_parameters.rb +3 -1
  286. data/lib/phrase/models/variable_update_parameters.rb +3 -1
  287. data/lib/phrase/models/webhook.rb +3 -1
  288. data/lib/phrase/models/webhook_create_parameters.rb +3 -1
  289. data/lib/phrase/models/webhook_delivery.rb +3 -1
  290. data/lib/phrase/models/webhook_update_parameters.rb +3 -1
  291. data/lib/phrase/version.rb +1 -1
  292. data/lib/phrase.rb +5 -20
  293. data/spec/models/{gitlab_sync_history_errors_spec.rb → gitlab_sync_history_errors_inner_spec.rb} +6 -6
  294. data/spec/models/{inline_response422_errors_spec.rb → invitation_create422_response_errors_inner_spec.rb} +6 -6
  295. data/spec/models/{inline_response422_spec.rb → invitation_create422_response_spec.rb} +6 -6
  296. data/spec/models/{member_project_detail_project_roles_spec.rb → member_project_detail_project_roles_inner_spec.rb} +6 -6
  297. data/spec/models/{member_spaces_spec.rb → member_spaces_inner_spec.rb} +6 -6
  298. metadata +222 -282
  299. data/docs/AccountDetails1.md +0 -19
  300. data/docs/AuthorizationWithToken1.md +0 -17
  301. data/docs/JobDetails1.md +0 -25
  302. data/docs/JobTemplateDetails1.md +0 -21
  303. data/docs/LocaleDetails1.md +0 -17
  304. data/docs/ProjectDetails1.md +0 -19
  305. data/docs/ProjectLocales1.md +0 -17
  306. data/docs/ProjectMemberSpecific.md +0 -27
  307. data/docs/ScreenshotCreateParameters.md +0 -23
  308. data/docs/StyleguideDetails1.md +0 -41
  309. data/docs/TagWithStats1.md +0 -17
  310. data/docs/TranslationDetails1.md +0 -19
  311. data/docs/TranslationKeyDetails1.md +0 -33
  312. data/docs/TranslationVersionWithUser1.md +0 -17
  313. data/docs/UploadCreateParameters.md +0 -47
  314. data/lib/phrase/models/account_details1.rb +0 -203
  315. data/lib/phrase/models/authorization_with_token1.rb +0 -194
  316. data/lib/phrase/models/job_details1.rb +0 -234
  317. data/lib/phrase/models/job_template_details1.rb +0 -214
  318. data/lib/phrase/models/locale_details1.rb +0 -194
  319. data/lib/phrase/models/project_details1.rb +0 -203
  320. data/lib/phrase/models/project_locales1.rb +0 -196
  321. data/lib/phrase/models/project_member_specific.rb +0 -239
  322. data/lib/phrase/models/screenshot_create_parameters.rb +0 -225
  323. data/lib/phrase/models/styleguide_details1.rb +0 -302
  324. data/lib/phrase/models/tag_with_stats1.rb +0 -196
  325. data/lib/phrase/models/translation_details1.rb +0 -203
  326. data/lib/phrase/models/translation_key_details1.rb +0 -266
  327. data/lib/phrase/models/translation_version_with_user1.rb +0 -194
  328. data/lib/phrase/models/upload_create_parameters.rb +0 -347
  329. data/spec/models/account_details1_spec.rb +0 -35
  330. data/spec/models/authorization_with_token1_spec.rb +0 -29
  331. data/spec/models/job_details1_spec.rb +0 -53
  332. data/spec/models/job_template_details1_spec.rb +0 -41
  333. data/spec/models/locale_details1_spec.rb +0 -29
  334. data/spec/models/project_details1_spec.rb +0 -35
  335. data/spec/models/project_locales1_spec.rb +0 -29
  336. data/spec/models/project_member_specific_spec.rb +0 -59
  337. data/spec/models/screenshot_create_parameters_spec.rb +0 -47
  338. data/spec/models/styleguide_details1_spec.rb +0 -101
  339. data/spec/models/tag_with_stats1_spec.rb +0 -29
  340. data/spec/models/translation_details1_spec.rb +0 -35
  341. data/spec/models/translation_key_details1_spec.rb +0 -77
  342. data/spec/models/translation_version_with_user1_spec.rb +0 -29
  343. data/spec/models/upload_create_parameters_spec.rb +0 -119
@@ -1,19 +0,0 @@
1
- # Phrase::AccountDetails1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **subscription** | [**Subscription**](Subscription.md) | | [optional]
8
- **slug** | **String** | | [optional]
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'Phrase'
14
-
15
- instance = Phrase::AccountDetails1.new(subscription: null,
16
- slug: null)
17
- ```
18
-
19
-
@@ -1,17 +0,0 @@
1
- # Phrase::AuthorizationWithToken1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **token** | **String** | | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'Phrase'
13
-
14
- instance = Phrase::AuthorizationWithToken1.new(token: null)
15
- ```
16
-
17
-
data/docs/JobDetails1.md DELETED
@@ -1,25 +0,0 @@
1
- # Phrase::JobDetails1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **owner** | [**UserPreview**](UserPreview.md) | | [optional]
8
- **job_tag_name** | **String** | | [optional]
9
- **source_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
10
- **locales** | [**Array<LocalePreview>**](LocalePreview.md) | | [optional]
11
- **keys** | [**Array<KeyPreview>**](KeyPreview.md) | | [optional]
12
-
13
- ## Code Sample
14
-
15
- ```ruby
16
- require 'Phrase'
17
-
18
- instance = Phrase::JobDetails1.new(owner: null,
19
- job_tag_name: null,
20
- source_locale: null,
21
- locales: null,
22
- keys: null)
23
- ```
24
-
25
-
@@ -1,21 +0,0 @@
1
- # Phrase::JobTemplateDetails1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **owner** | [**UserPreview**](UserPreview.md) | | [optional]
8
- **creator** | [**UserPreview**](UserPreview.md) | | [optional]
9
- **locales** | [**Array<LocalePreview>**](LocalePreview.md) | | [optional]
10
-
11
- ## Code Sample
12
-
13
- ```ruby
14
- require 'Phrase'
15
-
16
- instance = Phrase::JobTemplateDetails1.new(owner: null,
17
- creator: null,
18
- locales: null)
19
- ```
20
-
21
-
@@ -1,17 +0,0 @@
1
- # Phrase::LocaleDetails1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **statistics** | [**LocaleStatistics**](LocaleStatistics.md) | | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'Phrase'
13
-
14
- instance = Phrase::LocaleDetails1.new(statistics: null)
15
- ```
16
-
17
-
@@ -1,19 +0,0 @@
1
- # Phrase::ProjectDetails1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **slug** | **String** | | [optional]
8
- **shares_translation_memory** | **Boolean** | | [optional]
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'Phrase'
14
-
15
- instance = Phrase::ProjectDetails1.new(slug: null,
16
- shares_translation_memory: null)
17
- ```
18
-
19
-
@@ -1,17 +0,0 @@
1
- # Phrase::ProjectLocales1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **locales** | [**Array<LocalePreview>**](LocalePreview.md) | | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'Phrase'
13
-
14
- instance = Phrase::ProjectLocales1.new(locales: null)
15
- ```
16
-
17
-
@@ -1,27 +0,0 @@
1
- # Phrase::ProjectMemberSpecific
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | | [optional]
8
- **name** | **String** | | [optional]
9
- **project_role** | **String** | | [optional]
10
- **main_format** | **String** | | [optional]
11
- **created_at** | **DateTime** | | [optional]
12
- **updated_at** | **DateTime** | | [optional]
13
-
14
- ## Code Sample
15
-
16
- ```ruby
17
- require 'Phrase'
18
-
19
- instance = Phrase::ProjectMemberSpecific.new(id: null,
20
- name: null,
21
- project_role: null,
22
- main_format: null,
23
- created_at: null,
24
- updated_at: null)
25
- ```
26
-
27
-
@@ -1,23 +0,0 @@
1
- # Phrase::ScreenshotCreateParameters
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **branch** | **String** | specify the branch to use | [optional]
8
- **name** | **String** | Name of the screenshot | [optional]
9
- **description** | **String** | Description of the screenshot | [optional]
10
- **filename** | **File** | Screenshot file | [optional]
11
-
12
- ## Code Sample
13
-
14
- ```ruby
15
- require 'Phrase'
16
-
17
- instance = Phrase::ScreenshotCreateParameters.new(branch: my-feature-branch,
18
- name: A screenshot name,
19
- description: A screenshot description,
20
- filename: null)
21
- ```
22
-
23
-
@@ -1,41 +0,0 @@
1
- # Phrase::StyleguideDetails1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **public_url** | **String** | | [optional]
8
- **audience** | **String** | | [optional]
9
- **target_audience** | **String** | | [optional]
10
- **grammatical_person** | **String** | | [optional]
11
- **vocabulary_type** | **String** | | [optional]
12
- **business** | **String** | | [optional]
13
- **company_branding** | **String** | | [optional]
14
- **formatting** | **String** | | [optional]
15
- **glossary_terms** | **String** | | [optional]
16
- **grammar_consistency** | **String** | | [optional]
17
- **literal_translation** | **String** | | [optional]
18
- **overall_tone** | **String** | | [optional]
19
- **samples** | **String** | | [optional]
20
-
21
- ## Code Sample
22
-
23
- ```ruby
24
- require 'Phrase'
25
-
26
- instance = Phrase::StyleguideDetails1.new(public_url: null,
27
- audience: null,
28
- target_audience: null,
29
- grammatical_person: null,
30
- vocabulary_type: null,
31
- business: null,
32
- company_branding: null,
33
- formatting: null,
34
- glossary_terms: null,
35
- grammar_consistency: null,
36
- literal_translation: null,
37
- overall_tone: null,
38
- samples: null)
39
- ```
40
-
41
-
@@ -1,17 +0,0 @@
1
- # Phrase::TagWithStats1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **statistics** | [**Array<TagWithStats1Statistics1>**](TagWithStats1Statistics1.md) | | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'Phrase'
13
-
14
- instance = Phrase::TagWithStats1.new(statistics: null)
15
- ```
16
-
17
-
@@ -1,19 +0,0 @@
1
- # Phrase::TranslationDetails1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **user** | [**UserPreview**](UserPreview.md) | | [optional]
8
- **word_count** | **Integer** | | [optional]
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'Phrase'
14
-
15
- instance = Phrase::TranslationDetails1.new(user: null,
16
- word_count: null)
17
- ```
18
-
19
-
@@ -1,33 +0,0 @@
1
- # Phrase::TranslationKeyDetails1
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **name_plural** | **String** | | [optional]
8
- **comments_count** | **Integer** | | [optional]
9
- **max_characters_allowed** | **Integer** | | [optional]
10
- **screenshot_url** | **String** | | [optional]
11
- **unformatted** | **Boolean** | | [optional]
12
- **xml_space_preserve** | **Boolean** | | [optional]
13
- **original_file** | **String** | | [optional]
14
- **format_value_type** | **String** | | [optional]
15
- **creator** | [**UserPreview**](UserPreview.md) | | [optional]
16
-
17
- ## Code Sample
18
-
19
- ```ruby
20
- require 'Phrase'
21
-
22
- instance = Phrase::TranslationKeyDetails1.new(name_plural: null,
23
- comments_count: null,
24
- max_characters_allowed: null,
25
- screenshot_url: null,
26
- unformatted: null,
27
- xml_space_preserve: null,
28
- original_file: null,
29
- format_value_type: null,
30
- creator: null)
31
- ```
32
-
33
-
@@ -1,17 +0,0 @@
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
-
@@ -1,47 +0,0 @@
1
- # Phrase::UploadCreateParameters
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **branch** | **String** | specify the branch to use | [optional]
8
- **file** | **File** | File to be imported | [optional]
9
- **file_format** | **String** | File format. Auto-detected when possible and not specified. | [optional]
10
- **locale_id** | **String** | Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id. | [optional]
11
- **tags** | **String** | List of tags separated by comma to be associated with the new keys contained in the upload. | [optional]
12
- **update_translations** | **Boolean** | Indicates whether existing translations should be updated with the file content. | [optional]
13
- **update_descriptions** | **Boolean** | Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. | [optional]
14
- **convert_emoji** | **Boolean** | This option is obsolete. Providing the option will cause a bad request error. | [optional]
15
- **skip_upload_tags** | **Boolean** | Indicates whether the upload should not create upload tags. | [optional]
16
- **skip_unverification** | **Boolean** | Indicates whether the upload should unverify updated translations. | [optional]
17
- **file_encoding** | **String** | Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\". | [optional]
18
- **locale_mapping** | [**Object**](.md) | Optional, format specific mapping between locale names and the columns the translations to those locales are contained in. | [optional]
19
- **format_options** | [**Object**](.md) | Additional options available for specific formats. See our format guide for complete list. | [optional]
20
- **autotranslate** | **Boolean** | If set, translations for the uploaded language will be fetched automatically. | [optional]
21
- **mark_reviewed** | **Boolean** | Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project. | [optional]
22
- **tag_only_affected_keys** | **Boolean** | Indicates whether only keys affected (created or updated) by the upload should be tagged. The default is `false` | [optional] [default to false]
23
-
24
- ## Code Sample
25
-
26
- ```ruby
27
- require 'Phrase'
28
-
29
- instance = Phrase::UploadCreateParameters.new(branch: my-feature-branch,
30
- file: null,
31
- file_format: json,
32
- locale_id: abcd1234cdef1234abcd1234cdef1234,
33
- tags: awesome-feature,needs-proofreading,
34
- update_translations: null,
35
- update_descriptions: null,
36
- convert_emoji: null,
37
- skip_upload_tags: null,
38
- skip_unverification: null,
39
- file_encoding: null,
40
- locale_mapping: {"en": "2"},
41
- format_options: {"foo": "bar"},
42
- autotranslate: null,
43
- mark_reviewed: null,
44
- tag_only_affected_keys: null)
45
- ```
46
-
47
-
@@ -1,203 +0,0 @@
1
- require 'date'
2
-
3
- module Phrase
4
- class AccountDetails1
5
- attr_accessor :subscription
6
-
7
- attr_accessor :slug
8
-
9
- # Attribute mapping from ruby-style variable name to JSON key.
10
- def self.attribute_map
11
- {
12
- :'subscription' => :'subscription',
13
- :'slug' => :'slug'
14
- }
15
- end
16
-
17
- # Attribute type mapping.
18
- def self.openapi_types
19
- {
20
- :'subscription' => :'Subscription',
21
- :'slug' => :'String'
22
- }
23
- end
24
-
25
- # List of attributes with nullable: true
26
- def self.openapi_nullable
27
- Set.new([
28
- ])
29
- end
30
-
31
- # Initializes the object
32
- # @param [Hash] attributes Model attributes in the form of hash
33
- def initialize(attributes = {})
34
- if (!attributes.is_a?(Hash))
35
- fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::AccountDetails1` initialize method"
36
- end
37
-
38
- # check to see if the attribute exists and convert string to symbol for hash key
39
- attributes = attributes.each_with_object({}) { |(k, v), h|
40
- if (!self.class.attribute_map.key?(k.to_sym))
41
- fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::AccountDetails1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
42
- end
43
- h[k.to_sym] = v
44
- }
45
-
46
- if attributes.key?(:'subscription')
47
- self.subscription = attributes[:'subscription']
48
- end
49
-
50
- if attributes.key?(:'slug')
51
- self.slug = attributes[:'slug']
52
- end
53
- end
54
-
55
- # Show invalid properties with the reasons. Usually used together with valid?
56
- # @return Array for valid properties with the reasons
57
- def list_invalid_properties
58
- invalid_properties = Array.new
59
- invalid_properties
60
- end
61
-
62
- # Check to see if the all the properties in the model are valid
63
- # @return true if the model is valid
64
- def valid?
65
- true
66
- end
67
-
68
- # Checks equality by comparing each attribute.
69
- # @param [Object] Object to be compared
70
- def ==(o)
71
- return true if self.equal?(o)
72
- self.class == o.class &&
73
- subscription == o.subscription &&
74
- slug == o.slug
75
- end
76
-
77
- # @see the `==` method
78
- # @param [Object] Object to be compared
79
- def eql?(o)
80
- self == o
81
- end
82
-
83
- # Calculates hash code according to all attributes.
84
- # @return [Integer] Hash code
85
- def hash
86
- [subscription, slug].hash
87
- end
88
-
89
- # Builds the object from hash
90
- # @param [Hash] attributes Model attributes in the form of hash
91
- # @return [Object] Returns the model itself
92
- def self.build_from_hash(attributes)
93
- new.build_from_hash(attributes)
94
- end
95
-
96
- # Builds the object from hash
97
- # @param [Hash] attributes Model attributes in the form of hash
98
- # @return [Object] Returns the model itself
99
- def build_from_hash(attributes)
100
- return nil unless attributes.is_a?(Hash)
101
- self.class.openapi_types.each_pair do |key, type|
102
- if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the attribute
104
- # is documented as an array but the input is not
105
- if attributes[self.class.attribute_map[key]].is_a?(Array)
106
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
107
- end
108
- elsif !attributes[self.class.attribute_map[key]].nil?
109
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
110
- end # or else data not found in attributes(hash), not an issue as the data can be optional
111
- end
112
-
113
- self
114
- end
115
-
116
- # Deserializes the data based on type
117
- # @param string type Data type
118
- # @param string value Value to be deserialized
119
- # @return [Object] Deserialized data
120
- def _deserialize(type, value)
121
- case type.to_sym
122
- when :DateTime
123
- DateTime.parse(value)
124
- when :Date
125
- Date.parse(value)
126
- when :String
127
- value.to_s
128
- when :Integer
129
- value.to_i
130
- when :Float
131
- value.to_f
132
- when :Boolean
133
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
134
- true
135
- else
136
- false
137
- end
138
- when :Object
139
- # generic object (usually a Hash), return directly
140
- value
141
- when /\AArray<(?<inner_type>.+)>\z/
142
- inner_type = Regexp.last_match[:inner_type]
143
- value.map { |v| _deserialize(inner_type, v) }
144
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
145
- k_type = Regexp.last_match[:k_type]
146
- v_type = Regexp.last_match[:v_type]
147
- {}.tap do |hash|
148
- value.each do |k, v|
149
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
150
- end
151
- end
152
- else # model
153
- Phrase.const_get(type).build_from_hash(value)
154
- end
155
- end
156
-
157
- # Returns the string representation of the object
158
- # @return [String] String presentation of the object
159
- def to_s
160
- to_hash.to_s
161
- end
162
-
163
- # to_body is an alias to to_hash (backward compatibility)
164
- # @return [Hash] Returns the object in the form of hash
165
- def to_body
166
- to_hash
167
- end
168
-
169
- # Returns the object in the form of hash
170
- # @return [Hash] Returns the object in the form of hash
171
- def to_hash
172
- hash = {}
173
- self.class.attribute_map.each_pair do |attr, param|
174
- value = self.send(attr)
175
- if value.nil?
176
- is_nullable = self.class.openapi_nullable.include?(attr)
177
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
178
- end
179
-
180
- hash[param] = _to_hash(value)
181
- end
182
- hash
183
- end
184
-
185
- # Outputs non-array value in the form of hash
186
- # For object, use to_hash. Otherwise, just return the value
187
- # @param [Object] value Any valid value
188
- # @return [Hash] Returns the value in the form of hash
189
- def _to_hash(value)
190
- if value.is_a?(Array)
191
- value.compact.map { |v| _to_hash(v) }
192
- elsif value.is_a?(Hash)
193
- {}.tap do |hash|
194
- value.each { |k, v| hash[k] = _to_hash(v) }
195
- end
196
- elsif value.respond_to? :to_hash
197
- value.to_hash
198
- else
199
- value
200
- end
201
- end
202
- end
203
- end