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,211 @@
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 ProjectsIdBody
16
+ attr_accessor :project
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'project' => :'project'
22
+ }
23
+ end
24
+
25
+ # Attribute type mapping.
26
+ def self.openapi_types
27
+ {
28
+ :'project' => :'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::ProjectsIdBody` 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::ProjectsIdBody`. 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?(:'project')
54
+ self.project = attributes[:'project']
55
+ end
56
+ end
57
+
58
+ # Show invalid properties with the reasons. Usually used together with valid?
59
+ # @return Array for valid properties with the reasons
60
+ def list_invalid_properties
61
+ invalid_properties = Array.new
62
+ if @project.nil?
63
+ invalid_properties.push('invalid value for "project", project cannot be nil.')
64
+ end
65
+
66
+ invalid_properties
67
+ end
68
+
69
+ # Check to see if the all the properties in the model are valid
70
+ # @return true if the model is valid
71
+ def valid?
72
+ return false if @project.nil?
73
+ true
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ project == o.project
82
+ end
83
+
84
+ # @see the `==` method
85
+ # @param [Object] Object to be compared
86
+ def eql?(o)
87
+ self == o
88
+ end
89
+
90
+ # Calculates hash code according to all attributes.
91
+ # @return [Integer] Hash code
92
+ def hash
93
+ [project].hash
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 self.build_from_hash(attributes)
100
+ new.build_from_hash(attributes)
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.openapi_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
118
+ self.send("#{key}=", nil)
119
+ end
120
+ end
121
+
122
+ self
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def _deserialize(type, value)
130
+ case type.to_sym
131
+ when :DateTime
132
+ DateTime.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ OsunyApi.const_get(type).build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ # Returns the string representation of the object
167
+ # @return [String] String presentation of the object
168
+ def to_s
169
+ to_hash.to_s
170
+ end
171
+
172
+ # to_body is an alias to to_hash (backward compatibility)
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_body
175
+ to_hash
176
+ end
177
+
178
+ # Returns the object in the form of hash
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
189
+ hash[param] = _to_hash(value)
190
+ end
191
+ hash
192
+ end
193
+
194
+ # Outputs non-array value in the form of hash
195
+ # For object, use to_hash. Otherwise, just return the value
196
+ # @param [Object] value Any valid value
197
+ # @return [Hash] Returns the value in the form of hash
198
+ def _to_hash(value)
199
+ if value.is_a?(Array)
200
+ value.compact.map { |v| _to_hash(v) }
201
+ elsif value.is_a?(Hash)
202
+ {}.tap do |hash|
203
+ value.each { |k, v| hash[k] = _to_hash(v) }
204
+ end
205
+ elsif value.respond_to? :to_hash
206
+ value.to_hash
207
+ else
208
+ value
209
+ end
210
+ end end
211
+ end
@@ -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 ProjectsUpsertBody
16
+ attr_accessor :projects
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'projects' => :'projects'
22
+ }
23
+ end
24
+
25
+ # Attribute type mapping.
26
+ def self.openapi_types
27
+ {
28
+ :'projects' => :'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::ProjectsUpsertBody` 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::ProjectsUpsertBody`. 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?(:'projects')
54
+ if (value = attributes[:'projects']).is_a?(Array)
55
+ self.projects = 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 @projects.nil?
65
+ invalid_properties.push('invalid value for "projects", projects 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 @projects.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
+ projects == o.projects
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
+ [projects].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'
@@ -19,8 +19,6 @@ module OsunyApi
19
19
 
20
20
  attr_accessor :kind
21
21
 
22
- attr_accessor :active
23
-
24
22
  attr_accessor :email
25
23
 
26
24
  attr_accessor :phone
@@ -78,7 +76,6 @@ module OsunyApi
78
76
  :'id' => :'id',
79
77
  :'migration_identifier' => :'migration_identifier',
80
78
  :'kind' => :'kind',
81
- :'active' => :'active',
82
79
  :'email' => :'email',
83
80
  :'phone' => :'phone',
84
81
  :'address' => :'address',
@@ -102,7 +99,6 @@ module OsunyApi
102
99
  :'id' => :'Object',
103
100
  :'migration_identifier' => :'Object',
104
101
  :'kind' => :'Object',
105
- :'active' => :'Object',
106
102
  :'email' => :'Object',
107
103
  :'phone' => :'Object',
108
104
  :'address' => :'Object',
@@ -164,10 +160,6 @@ module OsunyApi
164
160
  self.kind = attributes[:'kind']
165
161
  end
166
162
 
167
- if attributes.key?(:'active')
168
- self.active = attributes[:'active']
169
- end
170
-
171
163
  if attributes.key?(:'email')
172
164
  self.email = attributes[:'email']
173
165
  end
@@ -239,7 +231,7 @@ module OsunyApi
239
231
  # Check to see if the all the properties in the model are valid
240
232
  # @return true if the model is valid
241
233
  def valid?
242
- kind_validator = EnumAttributeValidator.new('Object', ['company', 'non_profit', 'government'])
234
+ kind_validator = EnumAttributeValidator.new('Object', ['company', 'non_profit', 'government', 'public_organization', 'collective'])
243
235
  return false unless kind_validator.valid?(@kind)
244
236
  true
245
237
  end
@@ -247,7 +239,7 @@ module OsunyApi
247
239
  # Custom attribute writer method checking allowed values (enum).
248
240
  # @param [Object] kind Object to be assigned
249
241
  def kind=(kind)
250
- validator = EnumAttributeValidator.new('Object', ['company', 'non_profit', 'government'])
242
+ validator = EnumAttributeValidator.new('Object', ['company', 'non_profit', 'government', 'public_organization', 'collective'])
251
243
  unless validator.valid?(kind)
252
244
  fail ArgumentError, "invalid value for \"kind\", must be one of #{validator.allowable_values}."
253
245
  end
@@ -262,7 +254,6 @@ module OsunyApi
262
254
  id == o.id &&
263
255
  migration_identifier == o.migration_identifier &&
264
256
  kind == o.kind &&
265
- active == o.active &&
266
257
  email == o.email &&
267
258
  phone == o.phone &&
268
259
  address == o.address &&
@@ -288,7 +279,7 @@ module OsunyApi
288
279
  # Calculates hash code according to all attributes.
289
280
  # @return [Integer] Hash code
290
281
  def hash
291
- [id, migration_identifier, kind, active, email, phone, address, zipcode, city, country, latitude, longitude, nic, siren, localizations, category_ids, created_at, updated_at].hash
282
+ [id, migration_identifier, kind, email, phone, address, zipcode, city, country, latitude, longitude, nic, siren, localizations, category_ids, created_at, updated_at].hash
292
283
  end
293
284
 
294
285
  # 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'
@@ -19,12 +19,24 @@ module OsunyApi
19
19
 
20
20
  attr_accessor :name
21
21
 
22
+ attr_accessor :breadcrumb_title
23
+
22
24
  attr_accessor :featured_image
23
25
 
26
+ attr_accessor :header_cta
27
+
28
+ attr_accessor :header_cta_label
29
+
30
+ attr_accessor :header_cta_url
31
+
32
+ attr_accessor :header_text
33
+
24
34
  attr_accessor :meta_description
25
35
 
26
36
  attr_accessor :slug
27
37
 
38
+ attr_accessor :subtitle
39
+
28
40
  attr_accessor :summary
29
41
 
30
42
  attr_accessor :blocks
@@ -39,9 +51,15 @@ module OsunyApi
39
51
  :'id' => :'id',
40
52
  :'migration_identifier' => :'migration_identifier',
41
53
  :'name' => :'name',
54
+ :'breadcrumb_title' => :'breadcrumb_title',
42
55
  :'featured_image' => :'featured_image',
56
+ :'header_cta' => :'header_cta',
57
+ :'header_cta_label' => :'header_cta_label',
58
+ :'header_cta_url' => :'header_cta_url',
59
+ :'header_text' => :'header_text',
43
60
  :'meta_description' => :'meta_description',
44
61
  :'slug' => :'slug',
62
+ :'subtitle' => :'subtitle',
45
63
  :'summary' => :'summary',
46
64
  :'blocks' => :'blocks',
47
65
  :'created_at' => :'created_at',
@@ -55,9 +73,15 @@ module OsunyApi
55
73
  :'id' => :'Object',
56
74
  :'migration_identifier' => :'Object',
57
75
  :'name' => :'Object',
76
+ :'breadcrumb_title' => :'Object',
58
77
  :'featured_image' => :'Object',
78
+ :'header_cta' => :'Object',
79
+ :'header_cta_label' => :'Object',
80
+ :'header_cta_url' => :'Object',
81
+ :'header_text' => :'Object',
59
82
  :'meta_description' => :'Object',
60
83
  :'slug' => :'Object',
84
+ :'subtitle' => :'Object',
61
85
  :'summary' => :'Object',
62
86
  :'blocks' => :'Object',
63
87
  :'created_at' => :'Object',
@@ -69,7 +93,13 @@ module OsunyApi
69
93
  def self.openapi_nullable
70
94
  Set.new([
71
95
  :'migration_identifier',
96
+ :'breadcrumb_title',
97
+ :'header_cta',
98
+ :'header_cta_label',
99
+ :'header_cta_url',
100
+ :'header_text',
72
101
  :'meta_description',
102
+ :'subtitle',
73
103
  :'summary',
74
104
  ])
75
105
  end
@@ -101,10 +131,30 @@ module OsunyApi
101
131
  self.name = attributes[:'name']
102
132
  end
103
133
 
134
+ if attributes.key?(:'breadcrumb_title')
135
+ self.breadcrumb_title = attributes[:'breadcrumb_title']
136
+ end
137
+
104
138
  if attributes.key?(:'featured_image')
105
139
  self.featured_image = attributes[:'featured_image']
106
140
  end
107
141
 
142
+ if attributes.key?(:'header_cta')
143
+ self.header_cta = attributes[:'header_cta']
144
+ end
145
+
146
+ if attributes.key?(:'header_cta_label')
147
+ self.header_cta_label = attributes[:'header_cta_label']
148
+ end
149
+
150
+ if attributes.key?(:'header_cta_url')
151
+ self.header_cta_url = attributes[:'header_cta_url']
152
+ end
153
+
154
+ if attributes.key?(:'header_text')
155
+ self.header_text = attributes[:'header_text']
156
+ end
157
+
108
158
  if attributes.key?(:'meta_description')
109
159
  self.meta_description = attributes[:'meta_description']
110
160
  end
@@ -113,6 +163,10 @@ module OsunyApi
113
163
  self.slug = attributes[:'slug']
114
164
  end
115
165
 
166
+ if attributes.key?(:'subtitle')
167
+ self.subtitle = attributes[:'subtitle']
168
+ end
169
+
116
170
  if attributes.key?(:'summary')
117
171
  self.summary = attributes[:'summary']
118
172
  end
@@ -153,9 +207,15 @@ module OsunyApi
153
207
  id == o.id &&
154
208
  migration_identifier == o.migration_identifier &&
155
209
  name == o.name &&
210
+ breadcrumb_title == o.breadcrumb_title &&
156
211
  featured_image == o.featured_image &&
212
+ header_cta == o.header_cta &&
213
+ header_cta_label == o.header_cta_label &&
214
+ header_cta_url == o.header_cta_url &&
215
+ header_text == o.header_text &&
157
216
  meta_description == o.meta_description &&
158
217
  slug == o.slug &&
218
+ subtitle == o.subtitle &&
159
219
  summary == o.summary &&
160
220
  blocks == o.blocks &&
161
221
  created_at == o.created_at &&
@@ -171,7 +231,7 @@ module OsunyApi
171
231
  # Calculates hash code according to all attributes.
172
232
  # @return [Integer] Hash code
173
233
  def hash
174
- [id, migration_identifier, name, featured_image, meta_description, slug, summary, blocks, created_at, updated_at].hash
234
+ [id, migration_identifier, name, breadcrumb_title, featured_image, header_cta, header_cta_label, header_cta_url, header_text, meta_description, slug, subtitle, summary, blocks, created_at, updated_at].hash
175
235
  end
176
236
 
177
237
  # Builds the object from hash