osuny_api 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +33 -23
  3. data/README.md +513 -58
  4. data/Rakefile +8 -7
  5. data/docs/CategoriesIdBody2.md +1 -1
  6. data/docs/CategoriesIdBody3.md +7 -0
  7. data/docs/CategoriesIdBody4.md +7 -0
  8. data/docs/CategoriesUpsertBody2.md +1 -1
  9. data/docs/CategoriesUpsertBody3.md +7 -0
  10. data/docs/CategoriesUpsertBody4.md +7 -0
  11. data/docs/CommunicationBlockAgendaData.md +3 -0
  12. data/docs/CommunicationBlockCallToActionData.md +1 -1
  13. data/docs/CommunicationBlockChapterData.md +1 -1
  14. data/docs/CommunicationBlockChapterDataImage.md +9 -0
  15. data/docs/CommunicationBlockExhibitions.md +14 -0
  16. data/docs/CommunicationBlockExhibitionsData.md +20 -0
  17. data/docs/CommunicationBlockFeaturesDataElements.md +1 -1
  18. data/docs/CommunicationBlockFilesDataElements.md +2 -2
  19. data/docs/CommunicationBlockGalleryDataElements.md +1 -1
  20. data/docs/CommunicationBlockImageData.md +1 -1
  21. data/docs/CommunicationBlockJobs.md +14 -0
  22. data/docs/CommunicationBlockJobsData.md +18 -0
  23. data/docs/CommunicationBlockKeyFiguresDataElements.md +1 -1
  24. data/docs/CommunicationBlockLinksData.md +2 -0
  25. data/docs/CommunicationBlockLinksDataElements.md +1 -2
  26. data/docs/CommunicationBlockLocationsData.md +1 -1
  27. data/docs/CommunicationBlockOrganizationsData.md +2 -0
  28. data/docs/CommunicationBlockOrganizationsDataElements.md +2 -1
  29. data/docs/CommunicationBlockPagesData.md +2 -1
  30. data/docs/CommunicationBlockPapersData.md +1 -1
  31. data/docs/CommunicationBlockPostsData.md +1 -1
  32. data/docs/CommunicationBlockProgramsData.md +1 -1
  33. data/docs/CommunicationBlockProgramsDataElements.md +7 -0
  34. data/docs/CommunicationBlockProjectsData.md +1 -1
  35. data/docs/CommunicationBlockSoundData.md +1 -1
  36. data/docs/CommunicationBlockTestimonialsData.md +1 -0
  37. data/docs/CommunicationBlockTestimonialsDataElements.md +1 -1
  38. data/docs/CommunicationMedia.md +17 -0
  39. data/docs/CommunicationMediaLocalization.md +13 -0
  40. data/docs/CommunicationMediaOriginalBlob.md +10 -0
  41. data/docs/CommunicationMediasBody.md +8 -0
  42. data/docs/CommunicationWebsite.md +1 -0
  43. data/docs/CommunicationWebsiteAgendaCategoryApi.md +8 -3
  44. data/docs/CommunicationWebsiteAgendaCategoryLocalization.md +6 -0
  45. data/docs/CommunicationWebsiteAgendaEventApi.md +8 -3
  46. data/docs/CommunicationWebsiteAgendaEventLocalization.md +1 -0
  47. data/docs/CommunicationWebsiteApi.md +11 -3
  48. data/docs/CommunicationWebsiteMediaApi.md +61 -0
  49. data/docs/CommunicationWebsitePageApi.md +8 -3
  50. data/docs/CommunicationWebsitePageCategoryApi.md +8 -3
  51. data/docs/CommunicationWebsitePageCategoryLocalization.md +6 -0
  52. data/docs/CommunicationWebsitePageLocalization.md +2 -0
  53. data/docs/CommunicationWebsitePermalink.md +8 -0
  54. data/docs/CommunicationWebsitePortfolioCategory.md +15 -0
  55. data/docs/CommunicationWebsitePortfolioCategoryApi.md +334 -0
  56. data/docs/CommunicationWebsitePortfolioCategoryLocalization.md +23 -0
  57. data/docs/CommunicationWebsitePortfolioProject.md +15 -0
  58. data/docs/CommunicationWebsitePortfolioProjectApi.md +334 -0
  59. data/docs/CommunicationWebsitePortfolioProjectLocalization.md +23 -0
  60. data/docs/CommunicationWebsitePost.md +1 -0
  61. data/docs/CommunicationWebsitePostApi.md +8 -3
  62. data/docs/CommunicationWebsitePostCategory.md +14 -0
  63. data/docs/CommunicationWebsitePostCategoryApi.md +334 -0
  64. data/docs/CommunicationWebsitePostCategoryLocalization.md +23 -0
  65. data/docs/CommunicationWebsitePostLocalization.md +1 -1
  66. data/docs/OneOfcommunicationWebsitePortfolioCategoryLocalizationBlocksItems.md +6 -0
  67. data/docs/OneOfcommunicationWebsitePortfolioProjectLocalizationBlocksItems.md +6 -0
  68. data/docs/OneOfcommunicationWebsitePostCategoryLocalizationBlocksItems.md +6 -0
  69. data/docs/PortfolioCategoriesBody.md +7 -0
  70. data/docs/PortfolioProjectsBody.md +7 -0
  71. data/docs/PostsCategoriesBody.md +7 -0
  72. data/docs/ProjectsIdBody.md +7 -0
  73. data/docs/ProjectsUpsertBody.md +7 -0
  74. data/docs/UniversityOrganization.md +0 -1
  75. data/docs/UniversityOrganizationApi.md +11 -3
  76. data/docs/UniversityOrganizationCategoryApi.md +15 -7
  77. data/docs/UniversityOrganizationCategoryLocalization.md +6 -0
  78. data/docs/UniversityOrganizationLocalization.md +2 -0
  79. data/generate.sh +0 -0
  80. data/lib/osuny_api/api/communication_website_agenda_category_api.rb +7 -1
  81. data/lib/osuny_api/api/communication_website_agenda_event_api.rb +7 -1
  82. data/lib/osuny_api/api/communication_website_api.rb +7 -1
  83. data/lib/osuny_api/api/communication_website_media_api.rb +76 -0
  84. data/lib/osuny_api/api/communication_website_page_api.rb +7 -1
  85. data/lib/osuny_api/api/communication_website_page_category_api.rb +7 -1
  86. data/lib/osuny_api/api/communication_website_portfolio_category_api.rb +380 -0
  87. data/lib/osuny_api/api/communication_website_portfolio_project_api.rb +380 -0
  88. data/lib/osuny_api/api/communication_website_post_api.rb +7 -1
  89. data/lib/osuny_api/api/communication_website_post_category_api.rb +380 -0
  90. data/lib/osuny_api/api/university_organization_api.rb +7 -1
  91. data/lib/osuny_api/api/university_organization_category_api.rb +11 -5
  92. data/lib/osuny_api/api_client.rb +1 -1
  93. data/lib/osuny_api/api_error.rb +1 -1
  94. data/lib/osuny_api/configuration.rb +1 -1
  95. data/lib/osuny_api/models/agenda_categories_body.rb +1 -1
  96. data/lib/osuny_api/models/agenda_events_body.rb +1 -1
  97. data/lib/osuny_api/models/categories_id_body.rb +1 -1
  98. data/lib/osuny_api/models/categories_id_body_1.rb +1 -1
  99. data/lib/osuny_api/models/categories_id_body_2.rb +1 -1
  100. data/lib/osuny_api/models/categories_id_body_3.rb +211 -0
  101. data/lib/osuny_api/models/categories_id_body_4.rb +211 -0
  102. data/lib/osuny_api/models/categories_upsert_body.rb +1 -1
  103. data/lib/osuny_api/models/categories_upsert_body_1.rb +1 -1
  104. data/lib/osuny_api/models/categories_upsert_body_2.rb +1 -1
  105. data/lib/osuny_api/models/categories_upsert_body_3.rb +213 -0
  106. data/lib/osuny_api/models/categories_upsert_body_4.rb +213 -0
  107. data/lib/osuny_api/models/communication_block_agenda.rb +1 -1
  108. data/lib/osuny_api/models/communication_block_agenda_data.rb +31 -4
  109. data/lib/osuny_api/models/communication_block_agenda_data_elements.rb +1 -1
  110. data/lib/osuny_api/models/communication_block_call_to_action.rb +1 -1
  111. data/lib/osuny_api/models/communication_block_call_to_action_data.rb +1 -1
  112. data/lib/osuny_api/models/communication_block_call_to_action_data_elements.rb +1 -1
  113. data/lib/osuny_api/models/communication_block_categories.rb +1 -1
  114. data/lib/osuny_api/models/communication_block_categories_data.rb +3 -3
  115. data/lib/osuny_api/models/communication_block_chapter.rb +1 -1
  116. data/lib/osuny_api/models/communication_block_chapter_data.rb +1 -1
  117. data/lib/osuny_api/models/communication_block_chapter_data_image.rb +227 -0
  118. data/lib/osuny_api/models/communication_block_contact.rb +1 -1
  119. data/lib/osuny_api/models/communication_block_contact_data.rb +1 -1
  120. data/lib/osuny_api/models/communication_block_contact_data_elements.rb +1 -1
  121. data/lib/osuny_api/models/communication_block_contact_data_time_slot_morning.rb +1 -1
  122. data/lib/osuny_api/models/communication_block_datatable.rb +1 -1
  123. data/lib/osuny_api/models/communication_block_datatable_data.rb +1 -1
  124. data/lib/osuny_api/models/communication_block_datatable_data_elements.rb +1 -1
  125. data/lib/osuny_api/models/communication_block_definitions.rb +1 -1
  126. data/lib/osuny_api/models/communication_block_definitions_data.rb +1 -1
  127. data/lib/osuny_api/models/communication_block_definitions_data_elements.rb +1 -1
  128. data/lib/osuny_api/models/communication_block_embed.rb +1 -1
  129. data/lib/osuny_api/models/communication_block_embed_data.rb +1 -1
  130. data/lib/osuny_api/models/communication_block_exhibitions.rb +312 -0
  131. data/lib/osuny_api/models/communication_block_exhibitions_data.rb +384 -0
  132. data/lib/osuny_api/models/communication_block_features.rb +1 -1
  133. data/lib/osuny_api/models/communication_block_features_data.rb +1 -1
  134. data/lib/osuny_api/models/communication_block_features_data_elements.rb +1 -1
  135. data/lib/osuny_api/models/communication_block_files.rb +1 -1
  136. data/lib/osuny_api/models/communication_block_files_data.rb +1 -1
  137. data/lib/osuny_api/models/communication_block_files_data_elements.rb +1 -1
  138. data/lib/osuny_api/models/communication_block_gallery.rb +1 -1
  139. data/lib/osuny_api/models/communication_block_gallery_data.rb +1 -1
  140. data/lib/osuny_api/models/communication_block_gallery_data_elements.rb +1 -1
  141. data/lib/osuny_api/models/communication_block_image.rb +1 -1
  142. data/lib/osuny_api/models/communication_block_image_data.rb +1 -1
  143. data/lib/osuny_api/models/communication_block_jobs.rb +312 -0
  144. data/lib/osuny_api/models/communication_block_jobs_data.rb +354 -0
  145. data/lib/osuny_api/models/communication_block_key_figures.rb +1 -1
  146. data/lib/osuny_api/models/communication_block_key_figures_data.rb +1 -1
  147. data/lib/osuny_api/models/communication_block_key_figures_data_elements.rb +1 -1
  148. data/lib/osuny_api/models/communication_block_license.rb +1 -1
  149. data/lib/osuny_api/models/communication_block_license_data.rb +1 -1
  150. data/lib/osuny_api/models/communication_block_links.rb +1 -1
  151. data/lib/osuny_api/models/communication_block_links_data.rb +54 -2
  152. data/lib/osuny_api/models/communication_block_links_data_elements.rb +2 -11
  153. data/lib/osuny_api/models/communication_block_locations.rb +1 -1
  154. data/lib/osuny_api/models/communication_block_locations_data.rb +1 -1
  155. data/lib/osuny_api/models/communication_block_organizations.rb +1 -1
  156. data/lib/osuny_api/models/communication_block_organizations_data.rb +22 -4
  157. data/lib/osuny_api/models/communication_block_organizations_data_elements.rb +14 -5
  158. data/lib/osuny_api/models/communication_block_pages.rb +1 -1
  159. data/lib/osuny_api/models/communication_block_pages_data.rb +11 -2
  160. data/lib/osuny_api/models/communication_block_papers.rb +1 -1
  161. data/lib/osuny_api/models/communication_block_papers_data.rb +1 -1
  162. data/lib/osuny_api/models/communication_block_persons.rb +1 -1
  163. data/lib/osuny_api/models/communication_block_persons_data.rb +1 -1
  164. data/lib/osuny_api/models/communication_block_persons_data_elements.rb +1 -1
  165. data/lib/osuny_api/models/communication_block_posts.rb +1 -1
  166. data/lib/osuny_api/models/communication_block_posts_data.rb +1 -1
  167. data/lib/osuny_api/models/communication_block_programs.rb +1 -1
  168. data/lib/osuny_api/models/communication_block_programs_data.rb +1 -1
  169. data/lib/osuny_api/models/communication_block_programs_data_elements.rb +206 -0
  170. data/lib/osuny_api/models/communication_block_projects.rb +1 -1
  171. data/lib/osuny_api/models/communication_block_projects_data.rb +1 -1
  172. data/lib/osuny_api/models/communication_block_sound.rb +1 -1
  173. data/lib/osuny_api/models/communication_block_sound_data.rb +1 -1
  174. data/lib/osuny_api/models/communication_block_testimonials.rb +1 -1
  175. data/lib/osuny_api/models/communication_block_testimonials_data.rb +45 -2
  176. data/lib/osuny_api/models/communication_block_testimonials_data_elements.rb +1 -1
  177. data/lib/osuny_api/models/communication_block_timeline.rb +1 -1
  178. data/lib/osuny_api/models/communication_block_timeline_data.rb +1 -1
  179. data/lib/osuny_api/models/communication_block_timeline_data_elements.rb +1 -1
  180. data/lib/osuny_api/models/communication_block_title.rb +1 -1
  181. data/lib/osuny_api/models/communication_block_title_data.rb +1 -1
  182. data/lib/osuny_api/models/communication_block_video.rb +1 -1
  183. data/lib/osuny_api/models/communication_block_video_data.rb +1 -1
  184. data/lib/osuny_api/models/communication_block_volumes.rb +1 -1
  185. data/lib/osuny_api/models/communication_media.rb +339 -0
  186. data/lib/osuny_api/models/communication_media_localization.rb +265 -0
  187. data/lib/osuny_api/models/communication_media_original_blob.rb +237 -0
  188. data/lib/osuny_api/models/communication_medias_body.rb +215 -0
  189. data/lib/osuny_api/models/communication_website.rb +46 -2
  190. data/lib/osuny_api/models/communication_website_agenda_category.rb +1 -1
  191. data/lib/osuny_api/models/communication_website_agenda_category_localization.rb +62 -2
  192. data/lib/osuny_api/models/communication_website_agenda_category_localization_featured_image.rb +1 -1
  193. data/lib/osuny_api/models/communication_website_agenda_event.rb +1 -1
  194. data/lib/osuny_api/models/communication_website_agenda_event_localization.rb +13 -2
  195. data/lib/osuny_api/models/communication_website_agenda_event_localization_add_to_calendar_urls.rb +1 -1
  196. data/lib/osuny_api/models/communication_website_agenda_event_time_slot.rb +1 -1
  197. data/lib/osuny_api/models/communication_website_agenda_event_time_slot_localization.rb +1 -1
  198. data/lib/osuny_api/models/communication_website_deuxfleurs.rb +1 -1
  199. data/lib/osuny_api/models/communication_website_features.rb +1 -1
  200. data/lib/osuny_api/models/communication_website_git.rb +1 -1
  201. data/lib/osuny_api/models/communication_website_localization.rb +1 -1
  202. data/lib/osuny_api/models/communication_website_page.rb +1 -1
  203. data/lib/osuny_api/models/communication_website_page_category.rb +1 -1
  204. data/lib/osuny_api/models/communication_website_page_category_localization.rb +62 -2
  205. data/lib/osuny_api/models/communication_website_page_localization.rb +23 -2
  206. data/lib/osuny_api/models/communication_website_permalink.rb +215 -0
  207. data/lib/osuny_api/models/communication_website_portfolio_category.rb +284 -0
  208. data/lib/osuny_api/models/communication_website_portfolio_category_localization.rb +362 -0
  209. data/lib/osuny_api/models/communication_website_portfolio_project.rb +285 -0
  210. data/lib/osuny_api/models/communication_website_portfolio_project_localization.rb +362 -0
  211. data/lib/osuny_api/models/communication_website_post.rb +13 -2
  212. data/lib/osuny_api/models/communication_website_post_category.rb +274 -0
  213. data/lib/osuny_api/models/communication_website_post_category_localization.rb +362 -0
  214. data/lib/osuny_api/models/communication_website_post_localization.rb +10 -9
  215. data/lib/osuny_api/models/communication_website_showcase.rb +1 -1
  216. data/lib/osuny_api/models/communication_website_showcase_tags.rb +1 -1
  217. data/lib/osuny_api/models/events_id_body.rb +1 -1
  218. data/lib/osuny_api/models/events_upsert_body.rb +1 -1
  219. data/lib/osuny_api/models/one_ofcommunication_website_agenda_category_localization_blocks_items.rb +1 -1
  220. data/lib/osuny_api/models/one_ofcommunication_website_agenda_event_localization_blocks_items.rb +1 -1
  221. data/lib/osuny_api/models/one_ofcommunication_website_page_category_localization_blocks_items.rb +1 -1
  222. data/lib/osuny_api/models/one_ofcommunication_website_page_localization_blocks_items.rb +1 -1
  223. data/lib/osuny_api/models/one_ofcommunication_website_portfolio_category_localization_blocks_items.rb +197 -0
  224. data/lib/osuny_api/models/one_ofcommunication_website_portfolio_project_localization_blocks_items.rb +197 -0
  225. data/lib/osuny_api/models/one_ofcommunication_website_post_category_localization_blocks_items.rb +197 -0
  226. data/lib/osuny_api/models/one_ofcommunication_website_post_localization_blocks_items.rb +1 -1
  227. data/lib/osuny_api/models/one_ofuniversity_organization_category_localization_blocks_items.rb +1 -1
  228. data/lib/osuny_api/models/one_ofuniversity_organization_localization_blocks_items.rb +1 -1
  229. data/lib/osuny_api/models/organizations_categories_body.rb +1 -1
  230. data/lib/osuny_api/models/organizations_id_body.rb +1 -1
  231. data/lib/osuny_api/models/organizations_upsert_body.rb +1 -1
  232. data/lib/osuny_api/models/pages_categories_body.rb +1 -1
  233. data/lib/osuny_api/models/pages_id_body.rb +1 -1
  234. data/lib/osuny_api/models/pages_upsert_body.rb +1 -1
  235. data/lib/osuny_api/models/portfolio_categories_body.rb +211 -0
  236. data/lib/osuny_api/models/portfolio_projects_body.rb +211 -0
  237. data/lib/osuny_api/models/posts_categories_body.rb +211 -0
  238. data/lib/osuny_api/models/posts_id_body.rb +1 -1
  239. data/lib/osuny_api/models/posts_upsert_body.rb +1 -1
  240. data/lib/osuny_api/models/projects_id_body.rb +211 -0
  241. data/lib/osuny_api/models/projects_upsert_body.rb +213 -0
  242. data/lib/osuny_api/models/university_organization.rb +4 -13
  243. data/lib/osuny_api/models/university_organization_category.rb +1 -1
  244. data/lib/osuny_api/models/university_organization_category_localization.rb +62 -2
  245. data/lib/osuny_api/models/university_organization_localization.rb +21 -2
  246. data/lib/osuny_api/models/university_organizations_body.rb +1 -1
  247. data/lib/osuny_api/models/website_id_pages_body.rb +1 -1
  248. data/lib/osuny_api/models/website_id_posts_body.rb +1 -1
  249. data/lib/osuny_api/version.rb +2 -2
  250. data/lib/osuny_api.rb +34 -3
  251. data/osuny_api.gemspec +2 -1
  252. data/spec/api/communication_website_media_api_spec.rb +46 -0
  253. data/spec/api/communication_website_portfolio_category_api_spec.rb +108 -0
  254. data/spec/api/communication_website_portfolio_project_api_spec.rb +108 -0
  255. data/spec/api/communication_website_post_category_api_spec.rb +108 -0
  256. data/spec/models/categories_id_body_3_spec.rb +40 -0
  257. data/spec/models/categories_id_body_4_spec.rb +40 -0
  258. data/spec/models/categories_upsert_body_3_spec.rb +40 -0
  259. data/spec/models/categories_upsert_body_4_spec.rb +40 -0
  260. data/spec/models/communication_block_chapter_data_image_spec.rb +52 -0
  261. data/spec/models/communication_block_exhibitions_data_spec.rb +130 -0
  262. data/spec/models/communication_block_exhibitions_spec.rb +86 -0
  263. data/spec/models/communication_block_jobs_data_spec.rb +114 -0
  264. data/spec/models/communication_block_jobs_spec.rb +86 -0
  265. data/spec/models/communication_block_programs_data_elements_spec.rb +40 -0
  266. data/spec/models/communication_media_localization_spec.rb +76 -0
  267. data/spec/models/communication_media_original_blob_spec.rb +58 -0
  268. data/spec/models/communication_media_spec.rb +104 -0
  269. data/spec/models/communication_medias_body_spec.rb +46 -0
  270. data/spec/models/communication_website_permalink_spec.rb +46 -0
  271. data/spec/models/communication_website_portfolio_category_localization_spec.rb +136 -0
  272. data/spec/models/communication_website_portfolio_category_spec.rb +88 -0
  273. data/spec/models/communication_website_portfolio_project_localization_spec.rb +136 -0
  274. data/spec/models/communication_website_portfolio_project_spec.rb +88 -0
  275. data/spec/models/communication_website_post_category_localization_spec.rb +136 -0
  276. data/spec/models/communication_website_post_category_spec.rb +82 -0
  277. data/spec/models/one_ofcommunication_website_portfolio_category_localization_blocks_items_spec.rb +34 -0
  278. data/spec/models/one_ofcommunication_website_portfolio_project_localization_blocks_items_spec.rb +34 -0
  279. data/spec/models/one_ofcommunication_website_post_category_localization_blocks_items_spec.rb +34 -0
  280. data/spec/models/portfolio_categories_body_spec.rb +40 -0
  281. data/spec/models/portfolio_projects_body_spec.rb +40 -0
  282. data/spec/models/posts_categories_body_spec.rb +40 -0
  283. data/spec/models/projects_id_body_spec.rb +40 -0
  284. data/spec/models/projects_upsert_body_spec.rb +40 -0
  285. metadata +266 -116
  286. data/pkg/osuny_api-0.2.6.gem +0 -0
  287. data/pkg/osuny_api-1.0.0.gem +0 -0
@@ -0,0 +1,362 @@
1
+ =begin
2
+ #Osuny
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.77
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module OsunyApi
15
+ class CommunicationWebsitePortfolioProjectLocalization
16
+ attr_accessor :id
17
+
18
+ attr_accessor :migration_identifier
19
+
20
+ attr_accessor :title
21
+
22
+ attr_accessor :featured_image
23
+
24
+ attr_accessor :header_cta
25
+
26
+ attr_accessor :header_cta_label
27
+
28
+ attr_accessor :header_cta_url
29
+
30
+ attr_accessor :meta_description
31
+
32
+ attr_accessor :published
33
+
34
+ attr_accessor :published_at
35
+
36
+ attr_accessor :slug
37
+
38
+ attr_accessor :subtitle
39
+
40
+ attr_accessor :summary
41
+
42
+ attr_accessor :aliases
43
+
44
+ attr_accessor :blocks
45
+
46
+ attr_accessor :created_at
47
+
48
+ attr_accessor :updated_at
49
+
50
+ # Attribute mapping from ruby-style variable name to JSON key.
51
+ def self.attribute_map
52
+ {
53
+ :'id' => :'id',
54
+ :'migration_identifier' => :'migration_identifier',
55
+ :'title' => :'title',
56
+ :'featured_image' => :'featured_image',
57
+ :'header_cta' => :'header_cta',
58
+ :'header_cta_label' => :'header_cta_label',
59
+ :'header_cta_url' => :'header_cta_url',
60
+ :'meta_description' => :'meta_description',
61
+ :'published' => :'published',
62
+ :'published_at' => :'published_at',
63
+ :'slug' => :'slug',
64
+ :'subtitle' => :'subtitle',
65
+ :'summary' => :'summary',
66
+ :'aliases' => :'aliases',
67
+ :'blocks' => :'blocks',
68
+ :'created_at' => :'created_at',
69
+ :'updated_at' => :'updated_at'
70
+ }
71
+ end
72
+
73
+ # Attribute type mapping.
74
+ def self.openapi_types
75
+ {
76
+ :'id' => :'Object',
77
+ :'migration_identifier' => :'Object',
78
+ :'title' => :'Object',
79
+ :'featured_image' => :'Object',
80
+ :'header_cta' => :'Object',
81
+ :'header_cta_label' => :'Object',
82
+ :'header_cta_url' => :'Object',
83
+ :'meta_description' => :'Object',
84
+ :'published' => :'Object',
85
+ :'published_at' => :'Object',
86
+ :'slug' => :'Object',
87
+ :'subtitle' => :'Object',
88
+ :'summary' => :'Object',
89
+ :'aliases' => :'Object',
90
+ :'blocks' => :'Object',
91
+ :'created_at' => :'Object',
92
+ :'updated_at' => :'Object'
93
+ }
94
+ end
95
+
96
+ # List of attributes with nullable: true
97
+ def self.openapi_nullable
98
+ Set.new([
99
+ :'migration_identifier',
100
+ :'header_cta',
101
+ :'header_cta_label',
102
+ :'header_cta_url',
103
+ :'meta_description',
104
+ :'published_at',
105
+ :'subtitle',
106
+ :'summary',
107
+ ])
108
+ end
109
+
110
+ # Initializes the object
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ def initialize(attributes = {})
113
+ if (!attributes.is_a?(Hash))
114
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OsunyApi::CommunicationWebsitePortfolioProjectLocalization` initialize method"
115
+ end
116
+
117
+ # check to see if the attribute exists and convert string to symbol for hash key
118
+ attributes = attributes.each_with_object({}) { |(k, v), h|
119
+ if (!self.class.attribute_map.key?(k.to_sym))
120
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OsunyApi::CommunicationWebsitePortfolioProjectLocalization`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
121
+ end
122
+ h[k.to_sym] = v
123
+ }
124
+
125
+ if attributes.key?(:'id')
126
+ self.id = attributes[:'id']
127
+ end
128
+
129
+ if attributes.key?(:'migration_identifier')
130
+ self.migration_identifier = attributes[:'migration_identifier']
131
+ end
132
+
133
+ if attributes.key?(:'title')
134
+ self.title = attributes[:'title']
135
+ end
136
+
137
+ if attributes.key?(:'featured_image')
138
+ self.featured_image = attributes[:'featured_image']
139
+ end
140
+
141
+ if attributes.key?(:'header_cta')
142
+ self.header_cta = attributes[:'header_cta']
143
+ end
144
+
145
+ if attributes.key?(:'header_cta_label')
146
+ self.header_cta_label = attributes[:'header_cta_label']
147
+ end
148
+
149
+ if attributes.key?(:'header_cta_url')
150
+ self.header_cta_url = attributes[:'header_cta_url']
151
+ end
152
+
153
+ if attributes.key?(:'meta_description')
154
+ self.meta_description = attributes[:'meta_description']
155
+ end
156
+
157
+ if attributes.key?(:'published')
158
+ self.published = attributes[:'published']
159
+ end
160
+
161
+ if attributes.key?(:'published_at')
162
+ self.published_at = attributes[:'published_at']
163
+ end
164
+
165
+ if attributes.key?(:'slug')
166
+ self.slug = attributes[:'slug']
167
+ end
168
+
169
+ if attributes.key?(:'subtitle')
170
+ self.subtitle = attributes[:'subtitle']
171
+ end
172
+
173
+ if attributes.key?(:'summary')
174
+ self.summary = attributes[:'summary']
175
+ end
176
+
177
+ if attributes.key?(:'aliases')
178
+ if (value = attributes[:'aliases']).is_a?(Array)
179
+ self.aliases = value
180
+ end
181
+ end
182
+
183
+ if attributes.key?(:'blocks')
184
+ if (value = attributes[:'blocks']).is_a?(Array)
185
+ self.blocks = value
186
+ end
187
+ end
188
+
189
+ if attributes.key?(:'created_at')
190
+ self.created_at = attributes[:'created_at']
191
+ end
192
+
193
+ if attributes.key?(:'updated_at')
194
+ self.updated_at = attributes[:'updated_at']
195
+ end
196
+ end
197
+
198
+ # Show invalid properties with the reasons. Usually used together with valid?
199
+ # @return Array for valid properties with the reasons
200
+ def list_invalid_properties
201
+ invalid_properties = Array.new
202
+ invalid_properties
203
+ end
204
+
205
+ # Check to see if the all the properties in the model are valid
206
+ # @return true if the model is valid
207
+ def valid?
208
+ true
209
+ end
210
+
211
+ # Checks equality by comparing each attribute.
212
+ # @param [Object] Object to be compared
213
+ def ==(o)
214
+ return true if self.equal?(o)
215
+ self.class == o.class &&
216
+ id == o.id &&
217
+ migration_identifier == o.migration_identifier &&
218
+ title == o.title &&
219
+ featured_image == o.featured_image &&
220
+ header_cta == o.header_cta &&
221
+ header_cta_label == o.header_cta_label &&
222
+ header_cta_url == o.header_cta_url &&
223
+ meta_description == o.meta_description &&
224
+ published == o.published &&
225
+ published_at == o.published_at &&
226
+ slug == o.slug &&
227
+ subtitle == o.subtitle &&
228
+ summary == o.summary &&
229
+ aliases == o.aliases &&
230
+ blocks == o.blocks &&
231
+ created_at == o.created_at &&
232
+ updated_at == o.updated_at
233
+ end
234
+
235
+ # @see the `==` method
236
+ # @param [Object] Object to be compared
237
+ def eql?(o)
238
+ self == o
239
+ end
240
+
241
+ # Calculates hash code according to all attributes.
242
+ # @return [Integer] Hash code
243
+ def hash
244
+ [id, migration_identifier, title, featured_image, header_cta, header_cta_label, header_cta_url, meta_description, published, published_at, slug, subtitle, summary, aliases, blocks, created_at, updated_at].hash
245
+ end
246
+
247
+ # Builds the object from hash
248
+ # @param [Hash] attributes Model attributes in the form of hash
249
+ # @return [Object] Returns the model itself
250
+ def self.build_from_hash(attributes)
251
+ new.build_from_hash(attributes)
252
+ end
253
+
254
+ # Builds the object from hash
255
+ # @param [Hash] attributes Model attributes in the form of hash
256
+ # @return [Object] Returns the model itself
257
+ def build_from_hash(attributes)
258
+ return nil unless attributes.is_a?(Hash)
259
+ self.class.openapi_types.each_pair do |key, type|
260
+ if type =~ /\AArray<(.*)>/i
261
+ # check to ensure the input is an array given that the attribute
262
+ # is documented as an array but the input is not
263
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
264
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
265
+ end
266
+ elsif !attributes[self.class.attribute_map[key]].nil?
267
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
268
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
269
+ self.send("#{key}=", nil)
270
+ end
271
+ end
272
+
273
+ self
274
+ end
275
+
276
+ # Deserializes the data based on type
277
+ # @param string type Data type
278
+ # @param string value Value to be deserialized
279
+ # @return [Object] Deserialized data
280
+ def _deserialize(type, value)
281
+ case type.to_sym
282
+ when :DateTime
283
+ DateTime.parse(value)
284
+ when :Date
285
+ Date.parse(value)
286
+ when :String
287
+ value.to_s
288
+ when :Integer
289
+ value.to_i
290
+ when :Float
291
+ value.to_f
292
+ when :Boolean
293
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
294
+ true
295
+ else
296
+ false
297
+ end
298
+ when :Object
299
+ # generic object (usually a Hash), return directly
300
+ value
301
+ when /\AArray<(?<inner_type>.+)>\z/
302
+ inner_type = Regexp.last_match[:inner_type]
303
+ value.map { |v| _deserialize(inner_type, v) }
304
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
305
+ k_type = Regexp.last_match[:k_type]
306
+ v_type = Regexp.last_match[:v_type]
307
+ {}.tap do |hash|
308
+ value.each do |k, v|
309
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
310
+ end
311
+ end
312
+ else # model
313
+ OsunyApi.const_get(type).build_from_hash(value)
314
+ end
315
+ end
316
+
317
+ # Returns the string representation of the object
318
+ # @return [String] String presentation of the object
319
+ def to_s
320
+ to_hash.to_s
321
+ end
322
+
323
+ # to_body is an alias to to_hash (backward compatibility)
324
+ # @return [Hash] Returns the object in the form of hash
325
+ def to_body
326
+ to_hash
327
+ end
328
+
329
+ # Returns the object in the form of hash
330
+ # @return [Hash] Returns the object in the form of hash
331
+ def to_hash
332
+ hash = {}
333
+ self.class.attribute_map.each_pair do |attr, param|
334
+ value = self.send(attr)
335
+ if value.nil?
336
+ is_nullable = self.class.openapi_nullable.include?(attr)
337
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
338
+ end
339
+
340
+ hash[param] = _to_hash(value)
341
+ end
342
+ hash
343
+ end
344
+
345
+ # Outputs non-array value in the form of hash
346
+ # For object, use to_hash. Otherwise, just return the value
347
+ # @param [Object] value Any valid value
348
+ # @return [Hash] Returns the value in the form of hash
349
+ def _to_hash(value)
350
+ if value.is_a?(Array)
351
+ value.compact.map { |v| _to_hash(v) }
352
+ elsif value.is_a?(Hash)
353
+ {}.tap do |hash|
354
+ value.each { |k, v| hash[k] = _to_hash(v) }
355
+ end
356
+ elsif value.respond_to? :to_hash
357
+ value.to_hash
358
+ else
359
+ value
360
+ end
361
+ end end
362
+ end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.68
9
+ Swagger Codegen version: 3.0.77
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -22,6 +22,8 @@ module OsunyApi
22
22
  # Localizations of the post. The key is the language's ISO 639-1 code.
23
23
  attr_accessor :localizations
24
24
 
25
+ attr_accessor :category_ids
26
+
25
27
  attr_accessor :created_at
26
28
 
27
29
  attr_accessor :updated_at
@@ -33,6 +35,7 @@ module OsunyApi
33
35
  :'migration_identifier' => :'migration_identifier',
34
36
  :'full_width' => :'full_width',
35
37
  :'localizations' => :'localizations',
38
+ :'category_ids' => :'category_ids',
36
39
  :'created_at' => :'created_at',
37
40
  :'updated_at' => :'updated_at'
38
41
  }
@@ -45,6 +48,7 @@ module OsunyApi
45
48
  :'migration_identifier' => :'Object',
46
49
  :'full_width' => :'Object',
47
50
  :'localizations' => :'Object',
51
+ :'category_ids' => :'Object',
48
52
  :'created_at' => :'Object',
49
53
  :'updated_at' => :'Object'
50
54
  }
@@ -90,6 +94,12 @@ module OsunyApi
90
94
  end
91
95
  end
92
96
 
97
+ if attributes.key?(:'category_ids')
98
+ if (value = attributes[:'category_ids']).is_a?(Array)
99
+ self.category_ids = value
100
+ end
101
+ end
102
+
93
103
  if attributes.key?(:'created_at')
94
104
  self.created_at = attributes[:'created_at']
95
105
  end
@@ -121,6 +131,7 @@ module OsunyApi
121
131
  migration_identifier == o.migration_identifier &&
122
132
  full_width == o.full_width &&
123
133
  localizations == o.localizations &&
134
+ category_ids == o.category_ids &&
124
135
  created_at == o.created_at &&
125
136
  updated_at == o.updated_at
126
137
  end
@@ -134,7 +145,7 @@ module OsunyApi
134
145
  # Calculates hash code according to all attributes.
135
146
  # @return [Integer] Hash code
136
147
  def hash
137
- [id, migration_identifier, full_width, localizations, created_at, updated_at].hash
148
+ [id, migration_identifier, full_width, localizations, category_ids, created_at, updated_at].hash
138
149
  end
139
150
 
140
151
  # Builds the object from hash
@@ -0,0 +1,274 @@
1
+ =begin
2
+ #Osuny
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.77
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module OsunyApi
15
+ class CommunicationWebsitePostCategory
16
+ attr_accessor :id
17
+
18
+ attr_accessor :migration_identifier
19
+
20
+ attr_accessor :parent_id
21
+
22
+ attr_accessor :position
23
+
24
+ attr_accessor :is_taxonomy
25
+
26
+ # Localizations of the category. The key is the language's ISO 639-1 code.
27
+ attr_accessor :localizations
28
+
29
+ attr_accessor :created_at
30
+
31
+ attr_accessor :updated_at
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'id' => :'id',
37
+ :'migration_identifier' => :'migration_identifier',
38
+ :'parent_id' => :'parent_id',
39
+ :'position' => :'position',
40
+ :'is_taxonomy' => :'is_taxonomy',
41
+ :'localizations' => :'localizations',
42
+ :'created_at' => :'created_at',
43
+ :'updated_at' => :'updated_at'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'id' => :'Object',
51
+ :'migration_identifier' => :'Object',
52
+ :'parent_id' => :'Object',
53
+ :'position' => :'Object',
54
+ :'is_taxonomy' => :'Object',
55
+ :'localizations' => :'Object',
56
+ :'created_at' => :'Object',
57
+ :'updated_at' => :'Object'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ :'migration_identifier',
65
+ :'parent_id',
66
+ ])
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ if (!attributes.is_a?(Hash))
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OsunyApi::CommunicationWebsitePostCategory` initialize method"
74
+ end
75
+
76
+ # check to see if the attribute exists and convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h|
78
+ if (!self.class.attribute_map.key?(k.to_sym))
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OsunyApi::CommunicationWebsitePostCategory`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ end
81
+ h[k.to_sym] = v
82
+ }
83
+
84
+ if attributes.key?(:'id')
85
+ self.id = attributes[:'id']
86
+ end
87
+
88
+ if attributes.key?(:'migration_identifier')
89
+ self.migration_identifier = attributes[:'migration_identifier']
90
+ end
91
+
92
+ if attributes.key?(:'parent_id')
93
+ self.parent_id = attributes[:'parent_id']
94
+ end
95
+
96
+ if attributes.key?(:'position')
97
+ self.position = attributes[:'position']
98
+ end
99
+
100
+ if attributes.key?(:'is_taxonomy')
101
+ self.is_taxonomy = attributes[:'is_taxonomy']
102
+ end
103
+
104
+ if attributes.key?(:'localizations')
105
+ if (value = attributes[:'localizations']).is_a?(Hash)
106
+ self.localizations = value
107
+ end
108
+ end
109
+
110
+ if attributes.key?(:'created_at')
111
+ self.created_at = attributes[:'created_at']
112
+ end
113
+
114
+ if attributes.key?(:'updated_at')
115
+ self.updated_at = attributes[:'updated_at']
116
+ end
117
+ end
118
+
119
+ # Show invalid properties with the reasons. Usually used together with valid?
120
+ # @return Array for valid properties with the reasons
121
+ def list_invalid_properties
122
+ invalid_properties = Array.new
123
+ invalid_properties
124
+ end
125
+
126
+ # Check to see if the all the properties in the model are valid
127
+ # @return true if the model is valid
128
+ def valid?
129
+ true
130
+ end
131
+
132
+ # Checks equality by comparing each attribute.
133
+ # @param [Object] Object to be compared
134
+ def ==(o)
135
+ return true if self.equal?(o)
136
+ self.class == o.class &&
137
+ id == o.id &&
138
+ migration_identifier == o.migration_identifier &&
139
+ parent_id == o.parent_id &&
140
+ position == o.position &&
141
+ is_taxonomy == o.is_taxonomy &&
142
+ localizations == o.localizations &&
143
+ created_at == o.created_at &&
144
+ updated_at == o.updated_at
145
+ end
146
+
147
+ # @see the `==` method
148
+ # @param [Object] Object to be compared
149
+ def eql?(o)
150
+ self == o
151
+ end
152
+
153
+ # Calculates hash code according to all attributes.
154
+ # @return [Integer] Hash code
155
+ def hash
156
+ [id, migration_identifier, parent_id, position, is_taxonomy, localizations, created_at, updated_at].hash
157
+ end
158
+
159
+ # Builds the object from hash
160
+ # @param [Hash] attributes Model attributes in the form of hash
161
+ # @return [Object] Returns the model itself
162
+ def self.build_from_hash(attributes)
163
+ new.build_from_hash(attributes)
164
+ end
165
+
166
+ # Builds the object from hash
167
+ # @param [Hash] attributes Model attributes in the form of hash
168
+ # @return [Object] Returns the model itself
169
+ def build_from_hash(attributes)
170
+ return nil unless attributes.is_a?(Hash)
171
+ self.class.openapi_types.each_pair do |key, type|
172
+ if type =~ /\AArray<(.*)>/i
173
+ # check to ensure the input is an array given that the attribute
174
+ # is documented as an array but the input is not
175
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
176
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
177
+ end
178
+ elsif !attributes[self.class.attribute_map[key]].nil?
179
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
180
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
181
+ self.send("#{key}=", nil)
182
+ end
183
+ end
184
+
185
+ self
186
+ end
187
+
188
+ # Deserializes the data based on type
189
+ # @param string type Data type
190
+ # @param string value Value to be deserialized
191
+ # @return [Object] Deserialized data
192
+ def _deserialize(type, value)
193
+ case type.to_sym
194
+ when :DateTime
195
+ DateTime.parse(value)
196
+ when :Date
197
+ Date.parse(value)
198
+ when :String
199
+ value.to_s
200
+ when :Integer
201
+ value.to_i
202
+ when :Float
203
+ value.to_f
204
+ when :Boolean
205
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
206
+ true
207
+ else
208
+ false
209
+ end
210
+ when :Object
211
+ # generic object (usually a Hash), return directly
212
+ value
213
+ when /\AArray<(?<inner_type>.+)>\z/
214
+ inner_type = Regexp.last_match[:inner_type]
215
+ value.map { |v| _deserialize(inner_type, v) }
216
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
217
+ k_type = Regexp.last_match[:k_type]
218
+ v_type = Regexp.last_match[:v_type]
219
+ {}.tap do |hash|
220
+ value.each do |k, v|
221
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
222
+ end
223
+ end
224
+ else # model
225
+ OsunyApi.const_get(type).build_from_hash(value)
226
+ end
227
+ end
228
+
229
+ # Returns the string representation of the object
230
+ # @return [String] String presentation of the object
231
+ def to_s
232
+ to_hash.to_s
233
+ end
234
+
235
+ # to_body is an alias to to_hash (backward compatibility)
236
+ # @return [Hash] Returns the object in the form of hash
237
+ def to_body
238
+ to_hash
239
+ end
240
+
241
+ # Returns the object in the form of hash
242
+ # @return [Hash] Returns the object in the form of hash
243
+ def to_hash
244
+ hash = {}
245
+ self.class.attribute_map.each_pair do |attr, param|
246
+ value = self.send(attr)
247
+ if value.nil?
248
+ is_nullable = self.class.openapi_nullable.include?(attr)
249
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
250
+ end
251
+
252
+ hash[param] = _to_hash(value)
253
+ end
254
+ hash
255
+ end
256
+
257
+ # Outputs non-array value in the form of hash
258
+ # For object, use to_hash. Otherwise, just return the value
259
+ # @param [Object] value Any valid value
260
+ # @return [Hash] Returns the value in the form of hash
261
+ def _to_hash(value)
262
+ if value.is_a?(Array)
263
+ value.compact.map { |v| _to_hash(v) }
264
+ elsif value.is_a?(Hash)
265
+ {}.tap do |hash|
266
+ value.each { |k, v| hash[k] = _to_hash(v) }
267
+ end
268
+ elsif value.respond_to? :to_hash
269
+ value.to_hash
270
+ else
271
+ value
272
+ end
273
+ end end
274
+ end