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,213 @@
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 CategoriesUpsertBody4
16
+ attr_accessor :categories
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'categories' => :'categories'
22
+ }
23
+ end
24
+
25
+ # Attribute type mapping.
26
+ def self.openapi_types
27
+ {
28
+ :'categories' => :'Object'
29
+ }
30
+ end
31
+
32
+ # List of attributes with nullable: true
33
+ def self.openapi_nullable
34
+ Set.new([
35
+ ])
36
+ end
37
+
38
+ # Initializes the object
39
+ # @param [Hash] attributes Model attributes in the form of hash
40
+ def initialize(attributes = {})
41
+ if (!attributes.is_a?(Hash))
42
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OsunyApi::CategoriesUpsertBody4` initialize method"
43
+ end
44
+
45
+ # check to see if the attribute exists and convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}) { |(k, v), h|
47
+ if (!self.class.attribute_map.key?(k.to_sym))
48
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OsunyApi::CategoriesUpsertBody4`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
+ end
50
+ h[k.to_sym] = v
51
+ }
52
+
53
+ if attributes.key?(:'categories')
54
+ if (value = attributes[:'categories']).is_a?(Array)
55
+ self.categories = value
56
+ end
57
+ end
58
+ end
59
+
60
+ # Show invalid properties with the reasons. Usually used together with valid?
61
+ # @return Array for valid properties with the reasons
62
+ def list_invalid_properties
63
+ invalid_properties = Array.new
64
+ if @categories.nil?
65
+ invalid_properties.push('invalid value for "categories", categories cannot be nil.')
66
+ end
67
+
68
+ invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ return false if @categories.nil?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ categories == o.categories
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [categories].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.openapi_types.each_pair do |key, type|
111
+ if type =~ /\AArray<(.*)>/i
112
+ # check to ensure the input is an array given that the attribute
113
+ # is documented as an array but the input is not
114
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
115
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
116
+ end
117
+ elsif !attributes[self.class.attribute_map[key]].nil?
118
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
120
+ self.send("#{key}=", nil)
121
+ end
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ # Deserializes the data based on type
128
+ # @param string type Data type
129
+ # @param string value Value to be deserialized
130
+ # @return [Object] Deserialized data
131
+ def _deserialize(type, value)
132
+ case type.to_sym
133
+ when :DateTime
134
+ DateTime.parse(value)
135
+ when :Date
136
+ Date.parse(value)
137
+ when :String
138
+ value.to_s
139
+ when :Integer
140
+ value.to_i
141
+ when :Float
142
+ value.to_f
143
+ when :Boolean
144
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
145
+ true
146
+ else
147
+ false
148
+ end
149
+ when :Object
150
+ # generic object (usually a Hash), return directly
151
+ value
152
+ when /\AArray<(?<inner_type>.+)>\z/
153
+ inner_type = Regexp.last_match[:inner_type]
154
+ value.map { |v| _deserialize(inner_type, v) }
155
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
156
+ k_type = Regexp.last_match[:k_type]
157
+ v_type = Regexp.last_match[:v_type]
158
+ {}.tap do |hash|
159
+ value.each do |k, v|
160
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
161
+ end
162
+ end
163
+ else # model
164
+ OsunyApi.const_get(type).build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ if value.nil?
187
+ is_nullable = self.class.openapi_nullable.include?(attr)
188
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
+ end
190
+
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end end
213
+ 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'
@@ -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'
@@ -40,6 +40,12 @@ module OsunyApi
40
40
 
41
41
  attr_accessor :option_status
42
42
 
43
+ attr_accessor :kind_parent
44
+
45
+ attr_accessor :kind_child
46
+
47
+ attr_accessor :kind_recurring
48
+
43
49
  attr_accessor :elements
44
50
 
45
51
  class EnumAttributeValidator
@@ -80,6 +86,9 @@ module OsunyApi
80
86
  :'option_subtitle' => :'option_subtitle',
81
87
  :'option_summary' => :'option_summary',
82
88
  :'option_status' => :'option_status',
89
+ :'kind_parent' => :'kind_parent',
90
+ :'kind_child' => :'kind_child',
91
+ :'kind_recurring' => :'kind_recurring',
83
92
  :'elements' => :'elements'
84
93
  }
85
94
  end
@@ -100,6 +109,9 @@ module OsunyApi
100
109
  :'option_subtitle' => :'Object',
101
110
  :'option_summary' => :'Object',
102
111
  :'option_status' => :'Object',
112
+ :'kind_parent' => :'Object',
113
+ :'kind_child' => :'Object',
114
+ :'kind_recurring' => :'Object',
103
115
  :'elements' => :'Object'
104
116
  }
105
117
  end
@@ -177,6 +189,18 @@ module OsunyApi
177
189
  self.option_status = attributes[:'option_status']
178
190
  end
179
191
 
192
+ if attributes.key?(:'kind_parent')
193
+ self.kind_parent = attributes[:'kind_parent']
194
+ end
195
+
196
+ if attributes.key?(:'kind_child')
197
+ self.kind_child = attributes[:'kind_child']
198
+ end
199
+
200
+ if attributes.key?(:'kind_recurring')
201
+ self.kind_recurring = attributes[:'kind_recurring']
202
+ end
203
+
180
204
  if attributes.key?(:'elements')
181
205
  if (value = attributes[:'elements']).is_a?(Array)
182
206
  self.elements = value
@@ -198,7 +222,7 @@ module OsunyApi
198
222
  return false unless layout_validator.valid?(@layout)
199
223
  mode_validator = EnumAttributeValidator.new('Object', ['all', 'category', 'selection'])
200
224
  return false unless mode_validator.valid?(@mode)
201
- time_validator = EnumAttributeValidator.new('Object', ['future_or_current', 'future', 'current', 'archive'])
225
+ time_validator = EnumAttributeValidator.new('Object', ['current', 'future_or_current', 'future', 'archive'])
202
226
  return false unless time_validator.valid?(@time)
203
227
  true
204
228
  end
@@ -226,7 +250,7 @@ module OsunyApi
226
250
  # Custom attribute writer method checking allowed values (enum).
227
251
  # @param [Object] time Object to be assigned
228
252
  def time=(time)
229
- validator = EnumAttributeValidator.new('Object', ['future_or_current', 'future', 'current', 'archive'])
253
+ validator = EnumAttributeValidator.new('Object', ['current', 'future_or_current', 'future', 'archive'])
230
254
  unless validator.valid?(time)
231
255
  fail ArgumentError, "invalid value for \"time\", must be one of #{validator.allowable_values}."
232
256
  end
@@ -251,6 +275,9 @@ module OsunyApi
251
275
  option_subtitle == o.option_subtitle &&
252
276
  option_summary == o.option_summary &&
253
277
  option_status == o.option_status &&
278
+ kind_parent == o.kind_parent &&
279
+ kind_child == o.kind_child &&
280
+ kind_recurring == o.kind_recurring &&
254
281
  elements == o.elements
255
282
  end
256
283
 
@@ -263,7 +290,7 @@ module OsunyApi
263
290
  # Calculates hash code according to all attributes.
264
291
  # @return [Integer] Hash code
265
292
  def hash
266
- [layout, mode, category_id, description, quantity, time, no_event_message, option_categories, option_dates, option_image, option_subtitle, option_summary, option_status, elements].hash
293
+ [layout, mode, category_id, description, quantity, time, no_event_message, option_categories, option_dates, option_image, option_subtitle, option_summary, option_status, kind_parent, kind_child, kind_recurring, elements].hash
267
294
  end
268
295
 
269
296
  # Builds the object from hash
@@ -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'
@@ -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'
@@ -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'
@@ -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'
@@ -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'
@@ -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'
@@ -138,7 +138,7 @@ module OsunyApi
138
138
  def valid?
139
139
  layout_validator = EnumAttributeValidator.new('Object', ['grid', 'list', 'cards', 'alternate', 'large'])
140
140
  return false unless layout_validator.valid?(@layout)
141
- category_kind_validator = EnumAttributeValidator.new('Object', ['pages', 'posts', 'persons', 'organizations', 'agenda', 'programs', 'projects'])
141
+ category_kind_validator = EnumAttributeValidator.new('Object', ['pages', 'posts', 'persons', 'organizations', 'agenda', 'exhibitions', 'programs', 'projects', 'jobs'])
142
142
  return false unless category_kind_validator.valid?(@category_kind)
143
143
  true
144
144
  end
@@ -156,7 +156,7 @@ module OsunyApi
156
156
  # Custom attribute writer method checking allowed values (enum).
157
157
  # @param [Object] category_kind Object to be assigned
158
158
  def category_kind=(category_kind)
159
- validator = EnumAttributeValidator.new('Object', ['pages', 'posts', 'persons', 'organizations', 'agenda', 'programs', 'projects'])
159
+ validator = EnumAttributeValidator.new('Object', ['pages', 'posts', 'persons', 'organizations', 'agenda', 'exhibitions', 'programs', 'projects', 'jobs'])
160
160
  unless validator.valid?(category_kind)
161
161
  fail ArgumentError, "invalid value for \"category_kind\", must be one of #{validator.allowable_values}."
162
162
  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'
@@ -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'
@@ -0,0 +1,227 @@
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 CommunicationBlockChapterDataImage
16
+ attr_accessor :id
17
+
18
+ attr_accessor :filename
19
+
20
+ attr_accessor :signed_id
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'id' => :'id',
26
+ :'filename' => :'filename',
27
+ :'signed_id' => :'signed_id'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.openapi_types
33
+ {
34
+ :'id' => :'Object',
35
+ :'filename' => :'Object',
36
+ :'signed_id' => :'Object'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ :'id',
44
+ :'filename',
45
+ :'signed_id'
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OsunyApi::CommunicationBlockChapterDataImage` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OsunyApi::CommunicationBlockChapterDataImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'id')
65
+ self.id = attributes[:'id']
66
+ end
67
+
68
+ if attributes.key?(:'filename')
69
+ self.filename = attributes[:'filename']
70
+ end
71
+
72
+ if attributes.key?(:'signed_id')
73
+ self.signed_id = attributes[:'signed_id']
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ true
88
+ end
89
+
90
+ # Checks equality by comparing each attribute.
91
+ # @param [Object] Object to be compared
92
+ def ==(o)
93
+ return true if self.equal?(o)
94
+ self.class == o.class &&
95
+ id == o.id &&
96
+ filename == o.filename &&
97
+ signed_id == o.signed_id
98
+ end
99
+
100
+ # @see the `==` method
101
+ # @param [Object] Object to be compared
102
+ def eql?(o)
103
+ self == o
104
+ end
105
+
106
+ # Calculates hash code according to all attributes.
107
+ # @return [Integer] Hash code
108
+ def hash
109
+ [id, filename, signed_id].hash
110
+ end
111
+
112
+ # Builds the object from hash
113
+ # @param [Hash] attributes Model attributes in the form of hash
114
+ # @return [Object] Returns the model itself
115
+ def self.build_from_hash(attributes)
116
+ new.build_from_hash(attributes)
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def build_from_hash(attributes)
123
+ return nil unless attributes.is_a?(Hash)
124
+ self.class.openapi_types.each_pair do |key, type|
125
+ if type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ end
131
+ elsif !attributes[self.class.attribute_map[key]].nil?
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
134
+ self.send("#{key}=", nil)
135
+ end
136
+ end
137
+
138
+ self
139
+ end
140
+
141
+ # Deserializes the data based on type
142
+ # @param string type Data type
143
+ # @param string value Value to be deserialized
144
+ # @return [Object] Deserialized data
145
+ def _deserialize(type, value)
146
+ case type.to_sym
147
+ when :DateTime
148
+ DateTime.parse(value)
149
+ when :Date
150
+ Date.parse(value)
151
+ when :String
152
+ value.to_s
153
+ when :Integer
154
+ value.to_i
155
+ when :Float
156
+ value.to_f
157
+ when :Boolean
158
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
+ true
160
+ else
161
+ false
162
+ end
163
+ when :Object
164
+ # generic object (usually a Hash), return directly
165
+ value
166
+ when /\AArray<(?<inner_type>.+)>\z/
167
+ inner_type = Regexp.last_match[:inner_type]
168
+ value.map { |v| _deserialize(inner_type, v) }
169
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
+ k_type = Regexp.last_match[:k_type]
171
+ v_type = Regexp.last_match[:v_type]
172
+ {}.tap do |hash|
173
+ value.each do |k, v|
174
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
+ end
176
+ end
177
+ else # model
178
+ OsunyApi.const_get(type).build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end end
227
+ 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'
@@ -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'
@@ -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'
@@ -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'
@@ -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'