osuny_api 0.2.6 → 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 (530) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -7
  3. data/Gemfile.lock +65 -31
  4. data/README.md +1535 -17
  5. data/Rakefile +8 -7
  6. data/config.json +10 -0
  7. data/docs/AgendaCategoriesBody.md +7 -0
  8. data/docs/AgendaEventsBody.md +7 -0
  9. data/docs/CategoriesIdBody.md +7 -0
  10. data/docs/CategoriesIdBody1.md +7 -0
  11. data/docs/CategoriesIdBody2.md +7 -0
  12. data/docs/CategoriesIdBody3.md +7 -0
  13. data/docs/CategoriesIdBody4.md +7 -0
  14. data/docs/CategoriesUpsertBody.md +7 -0
  15. data/docs/CategoriesUpsertBody1.md +7 -0
  16. data/docs/CategoriesUpsertBody2.md +7 -0
  17. data/docs/CategoriesUpsertBody3.md +7 -0
  18. data/docs/CategoriesUpsertBody4.md +7 -0
  19. data/docs/CommunicationBlockAgenda.md +14 -0
  20. data/docs/CommunicationBlockAgendaData.md +23 -0
  21. data/docs/CommunicationBlockAgendaDataElements.md +7 -0
  22. data/docs/CommunicationBlockCallToAction.md +14 -0
  23. data/docs/CommunicationBlockCallToActionData.md +12 -0
  24. data/docs/CommunicationBlockCallToActionDataElements.md +9 -0
  25. data/docs/CommunicationBlockCallToActionDataImage.md +9 -0
  26. data/docs/CommunicationBlockCategories.md +14 -0
  27. data/docs/CommunicationBlockCategoriesData.md +13 -0
  28. data/docs/CommunicationBlockChapter.md +14 -0
  29. data/docs/CommunicationBlockChapterData.md +12 -0
  30. data/docs/CommunicationBlockChapterDataImage.md +9 -0
  31. data/docs/CommunicationBlockContact.md +14 -0
  32. data/docs/CommunicationBlockContactData.md +27 -0
  33. data/docs/CommunicationBlockContactDataElements.md +9 -0
  34. data/docs/CommunicationBlockContactDataTimeSlotMorning.md +8 -0
  35. data/docs/CommunicationBlockDatatable.md +14 -0
  36. data/docs/CommunicationBlockDatatableData.md +11 -0
  37. data/docs/CommunicationBlockDatatableDataElements.md +7 -0
  38. data/docs/CommunicationBlockDefinitions.md +14 -0
  39. data/docs/CommunicationBlockDefinitionsData.md +8 -0
  40. data/docs/CommunicationBlockDefinitionsDataElements.md +8 -0
  41. data/docs/CommunicationBlockEmbed.md +14 -0
  42. data/docs/CommunicationBlockEmbedData.md +9 -0
  43. data/docs/CommunicationBlockExhibitions.md +14 -0
  44. data/docs/CommunicationBlockExhibitionsData.md +20 -0
  45. data/docs/CommunicationBlockFeatures.md +14 -0
  46. data/docs/CommunicationBlockFeaturesData.md +8 -0
  47. data/docs/CommunicationBlockFeaturesDataElements.md +11 -0
  48. data/docs/CommunicationBlockFiles.md +14 -0
  49. data/docs/CommunicationBlockFilesData.md +8 -0
  50. data/docs/CommunicationBlockFilesDataElements.md +9 -0
  51. data/docs/CommunicationBlockGallery.md +14 -0
  52. data/docs/CommunicationBlockGalleryData.md +9 -0
  53. data/docs/CommunicationBlockGalleryDataElements.md +10 -0
  54. data/docs/CommunicationBlockImage.md +14 -0
  55. data/docs/CommunicationBlockImageData.md +10 -0
  56. data/docs/CommunicationBlockJobs.md +14 -0
  57. data/docs/CommunicationBlockJobsData.md +18 -0
  58. data/docs/CommunicationBlockKeyFigures.md +14 -0
  59. data/docs/CommunicationBlockKeyFiguresData.md +8 -0
  60. data/docs/CommunicationBlockKeyFiguresDataElements.md +10 -0
  61. data/docs/CommunicationBlockLicense.md +14 -0
  62. data/docs/CommunicationBlockLicenseData.md +12 -0
  63. data/docs/CommunicationBlockLinks.md +14 -0
  64. data/docs/CommunicationBlockLinksData.md +10 -0
  65. data/docs/CommunicationBlockLinksDataElements.md +10 -0
  66. data/docs/CommunicationBlockLocations.md +14 -0
  67. data/docs/CommunicationBlockLocationsData.md +10 -0
  68. data/docs/CommunicationBlockLocationsDataElements.md +7 -0
  69. data/docs/CommunicationBlockOrganizations.md +14 -0
  70. data/docs/CommunicationBlockOrganizationsData.md +17 -0
  71. data/docs/CommunicationBlockOrganizationsDataElements.md +11 -0
  72. data/docs/CommunicationBlockPages.md +14 -0
  73. data/docs/CommunicationBlockPagesData.md +16 -0
  74. data/docs/CommunicationBlockPapers.md +14 -0
  75. data/docs/CommunicationBlockPapersData.md +9 -0
  76. data/docs/CommunicationBlockPersons.md +14 -0
  77. data/docs/CommunicationBlockPersonsData.md +16 -0
  78. data/docs/CommunicationBlockPersonsDataElements.md +8 -0
  79. data/docs/CommunicationBlockPosts.md +14 -0
  80. data/docs/CommunicationBlockPostsData.md +18 -0
  81. data/docs/CommunicationBlockPrograms.md +14 -0
  82. data/docs/CommunicationBlockProgramsData.md +11 -0
  83. data/docs/CommunicationBlockProgramsDataElements.md +7 -0
  84. data/docs/CommunicationBlockProjects.md +14 -0
  85. data/docs/CommunicationBlockProjectsData.md +16 -0
  86. data/docs/CommunicationBlockSound.md +14 -0
  87. data/docs/CommunicationBlockSoundData.md +9 -0
  88. data/docs/CommunicationBlockTestimonials.md +14 -0
  89. data/docs/CommunicationBlockTestimonialsData.md +8 -0
  90. data/docs/CommunicationBlockTestimonialsDataElements.md +10 -0
  91. data/docs/CommunicationBlockTimeline.md +14 -0
  92. data/docs/CommunicationBlockTimelineData.md +8 -0
  93. data/docs/CommunicationBlockTimelineDataElements.md +8 -0
  94. data/docs/CommunicationBlockTitle.md +14 -0
  95. data/docs/CommunicationBlockTitleData.md +7 -0
  96. data/docs/CommunicationBlockVideo.md +14 -0
  97. data/docs/CommunicationBlockVideoData.md +11 -0
  98. data/docs/CommunicationBlockVolumes.md +14 -0
  99. data/docs/CommunicationMedia.md +17 -0
  100. data/docs/CommunicationMediaLocalization.md +13 -0
  101. data/docs/CommunicationMediaOriginalBlob.md +10 -0
  102. data/docs/CommunicationMediasBody.md +8 -0
  103. data/docs/CommunicationWebsite.md +16 -0
  104. data/docs/CommunicationWebsiteAgendaCategory.md +14 -0
  105. data/docs/CommunicationWebsiteAgendaCategoryApi.md +334 -0
  106. data/docs/CommunicationWebsiteAgendaCategoryLocalization.md +23 -0
  107. data/docs/CommunicationWebsiteAgendaCategoryLocalizationFeaturedImage.md +10 -0
  108. data/docs/CommunicationWebsiteAgendaEvent.md +18 -0
  109. data/docs/CommunicationWebsiteAgendaEventApi.md +334 -0
  110. data/docs/CommunicationWebsiteAgendaEventLocalization.md +26 -0
  111. data/docs/CommunicationWebsiteAgendaEventLocalizationAddToCalendarUrls.md +11 -0
  112. data/docs/CommunicationWebsiteAgendaEventTimeSlot.md +13 -0
  113. data/docs/CommunicationWebsiteAgendaEventTimeSlotLocalization.md +13 -0
  114. data/docs/CommunicationWebsiteApi.md +114 -0
  115. data/docs/CommunicationWebsiteDeuxfleurs.md +8 -0
  116. data/docs/CommunicationWebsiteFeatures.md +9 -0
  117. data/docs/CommunicationWebsiteGit.md +10 -0
  118. data/docs/CommunicationWebsiteLocalization.md +23 -0
  119. data/docs/CommunicationWebsiteMediaApi.md +61 -0
  120. data/docs/CommunicationWebsitePage.md +17 -0
  121. data/docs/CommunicationWebsitePageApi.md +334 -0
  122. data/docs/CommunicationWebsitePageCategory.md +14 -0
  123. data/docs/CommunicationWebsitePageCategoryApi.md +334 -0
  124. data/docs/CommunicationWebsitePageCategoryLocalization.md +23 -0
  125. data/docs/CommunicationWebsitePageLocalization.md +26 -0
  126. data/docs/CommunicationWebsitePermalink.md +8 -0
  127. data/docs/CommunicationWebsitePortfolioCategory.md +15 -0
  128. data/docs/CommunicationWebsitePortfolioCategoryApi.md +334 -0
  129. data/docs/CommunicationWebsitePortfolioCategoryLocalization.md +23 -0
  130. data/docs/CommunicationWebsitePortfolioProject.md +15 -0
  131. data/docs/CommunicationWebsitePortfolioProjectApi.md +334 -0
  132. data/docs/CommunicationWebsitePortfolioProjectLocalization.md +23 -0
  133. data/docs/CommunicationWebsitePost.md +13 -0
  134. data/docs/CommunicationWebsitePostApi.md +334 -0
  135. data/docs/CommunicationWebsitePostCategory.md +14 -0
  136. data/docs/CommunicationWebsitePostCategoryApi.md +334 -0
  137. data/docs/CommunicationWebsitePostCategoryLocalization.md +23 -0
  138. data/docs/CommunicationWebsitePostLocalization.md +21 -0
  139. data/docs/CommunicationWebsiteShowcase.md +9 -0
  140. data/docs/CommunicationWebsiteShowcaseTags.md +9 -0
  141. data/docs/EventsIdBody.md +7 -0
  142. data/docs/EventsUpsertBody.md +7 -0
  143. data/docs/OneOfcommunicationWebsiteAgendaCategoryLocalizationBlocksItems.md +6 -0
  144. data/docs/OneOfcommunicationWebsiteAgendaEventLocalizationBlocksItems.md +6 -0
  145. data/docs/OneOfcommunicationWebsitePageCategoryLocalizationBlocksItems.md +6 -0
  146. data/docs/OneOfcommunicationWebsitePageLocalizationBlocksItems.md +6 -0
  147. data/docs/OneOfcommunicationWebsitePortfolioCategoryLocalizationBlocksItems.md +6 -0
  148. data/docs/OneOfcommunicationWebsitePortfolioProjectLocalizationBlocksItems.md +6 -0
  149. data/docs/OneOfcommunicationWebsitePostCategoryLocalizationBlocksItems.md +6 -0
  150. data/docs/OneOfcommunicationWebsitePostLocalizationBlocksItems.md +6 -0
  151. data/docs/OneOfuniversityOrganizationCategoryLocalizationBlocksItems.md +6 -0
  152. data/docs/OneOfuniversityOrganizationLocalizationBlocksItems.md +6 -0
  153. data/docs/OrganizationsCategoriesBody.md +7 -0
  154. data/docs/OrganizationsIdBody.md +7 -0
  155. data/docs/OrganizationsUpsertBody.md +7 -0
  156. data/docs/PagesCategoriesBody.md +7 -0
  157. data/docs/PagesIdBody.md +7 -0
  158. data/docs/PagesUpsertBody.md +7 -0
  159. data/docs/PortfolioCategoriesBody.md +7 -0
  160. data/docs/PortfolioProjectsBody.md +7 -0
  161. data/docs/PostsCategoriesBody.md +7 -0
  162. data/docs/PostsIdBody.md +7 -0
  163. data/docs/PostsUpsertBody.md +7 -0
  164. data/docs/ProjectsIdBody.md +7 -0
  165. data/docs/ProjectsUpsertBody.md +7 -0
  166. data/docs/UniversityOrganization.md +23 -0
  167. data/docs/UniversityOrganizationApi.md +322 -0
  168. data/docs/UniversityOrganizationCategory.md +14 -0
  169. data/docs/UniversityOrganizationCategoryApi.md +322 -0
  170. data/docs/UniversityOrganizationCategoryLocalization.md +22 -0
  171. data/docs/UniversityOrganizationLocalization.md +26 -0
  172. data/docs/UniversityOrganizationsBody.md +7 -0
  173. data/docs/WebsiteIdPagesBody.md +7 -0
  174. data/docs/WebsiteIdPostsBody.md +7 -0
  175. data/generate.sh +2 -0
  176. data/git_push.sh +55 -0
  177. data/lib/osuny_api/api/communication_website_agenda_category_api.rb +380 -0
  178. data/lib/osuny_api/api/communication_website_agenda_event_api.rb +380 -0
  179. data/lib/osuny_api/api/communication_website_api.rb +128 -0
  180. data/lib/osuny_api/api/communication_website_media_api.rb +76 -0
  181. data/lib/osuny_api/api/communication_website_page_api.rb +380 -0
  182. data/lib/osuny_api/api/communication_website_page_category_api.rb +380 -0
  183. data/lib/osuny_api/api/communication_website_portfolio_category_api.rb +380 -0
  184. data/lib/osuny_api/api/communication_website_portfolio_project_api.rb +380 -0
  185. data/lib/osuny_api/api/communication_website_post_api.rb +380 -0
  186. data/lib/osuny_api/api/communication_website_post_category_api.rb +380 -0
  187. data/lib/osuny_api/api/university_organization_api.rb +344 -0
  188. data/lib/osuny_api/api/university_organization_category_api.rb +344 -0
  189. data/lib/osuny_api/api_client.rb +388 -0
  190. data/lib/osuny_api/api_error.rb +57 -0
  191. data/lib/osuny_api/configuration.rb +205 -0
  192. data/lib/osuny_api/models/agenda_categories_body.rb +211 -0
  193. data/lib/osuny_api/models/agenda_events_body.rb +211 -0
  194. data/lib/osuny_api/models/categories_id_body.rb +211 -0
  195. data/lib/osuny_api/models/categories_id_body_1.rb +211 -0
  196. data/lib/osuny_api/models/categories_id_body_2.rb +211 -0
  197. data/lib/osuny_api/models/categories_id_body_3.rb +211 -0
  198. data/lib/osuny_api/models/categories_id_body_4.rb +211 -0
  199. data/lib/osuny_api/models/categories_upsert_body.rb +213 -0
  200. data/lib/osuny_api/models/categories_upsert_body_1.rb +213 -0
  201. data/lib/osuny_api/models/categories_upsert_body_2.rb +213 -0
  202. data/lib/osuny_api/models/categories_upsert_body_3.rb +213 -0
  203. data/lib/osuny_api/models/categories_upsert_body_4.rb +213 -0
  204. data/lib/osuny_api/models/communication_block_agenda.rb +312 -0
  205. data/lib/osuny_api/models/communication_block_agenda_data.rb +411 -0
  206. data/lib/osuny_api/models/communication_block_agenda_data_elements.rb +206 -0
  207. data/lib/osuny_api/models/communication_block_call_to_action.rb +312 -0
  208. data/lib/osuny_api/models/communication_block_call_to_action_data.rb +288 -0
  209. data/lib/osuny_api/models/communication_block_call_to_action_data_elements.rb +224 -0
  210. data/lib/osuny_api/models/communication_block_call_to_action_data_image.rb +227 -0
  211. data/lib/osuny_api/models/communication_block_categories.rb +312 -0
  212. data/lib/osuny_api/models/communication_block_categories_data.rb +307 -0
  213. data/lib/osuny_api/models/communication_block_chapter.rb +312 -0
  214. data/lib/osuny_api/models/communication_block_chapter_data.rb +286 -0
  215. data/lib/osuny_api/models/communication_block_chapter_data_image.rb +227 -0
  216. data/lib/osuny_api/models/communication_block_contact.rb +312 -0
  217. data/lib/osuny_api/models/communication_block_contact_data.rb +393 -0
  218. data/lib/osuny_api/models/communication_block_contact_data_elements.rb +224 -0
  219. data/lib/osuny_api/models/communication_block_contact_data_time_slot_morning.rb +215 -0
  220. data/lib/osuny_api/models/communication_block_datatable.rb +312 -0
  221. data/lib/osuny_api/models/communication_block_datatable_data.rb +247 -0
  222. data/lib/osuny_api/models/communication_block_datatable_data_elements.rb +208 -0
  223. data/lib/osuny_api/models/communication_block_definitions.rb +312 -0
  224. data/lib/osuny_api/models/communication_block_definitions_data.rb +218 -0
  225. data/lib/osuny_api/models/communication_block_definitions_data_elements.rb +215 -0
  226. data/lib/osuny_api/models/communication_block_embed.rb +312 -0
  227. data/lib/osuny_api/models/communication_block_embed_data.rb +225 -0
  228. data/lib/osuny_api/models/communication_block_exhibitions.rb +312 -0
  229. data/lib/osuny_api/models/communication_block_exhibitions_data.rb +384 -0
  230. data/lib/osuny_api/models/communication_block_features.rb +312 -0
  231. data/lib/osuny_api/models/communication_block_features_data.rb +218 -0
  232. data/lib/osuny_api/models/communication_block_features_data_elements.rb +242 -0
  233. data/lib/osuny_api/models/communication_block_files.rb +312 -0
  234. data/lib/osuny_api/models/communication_block_files_data.rb +218 -0
  235. data/lib/osuny_api/models/communication_block_files_data_elements.rb +224 -0
  236. data/lib/osuny_api/models/communication_block_gallery.rb +312 -0
  237. data/lib/osuny_api/models/communication_block_gallery_data.rb +261 -0
  238. data/lib/osuny_api/models/communication_block_gallery_data_elements.rb +233 -0
  239. data/lib/osuny_api/models/communication_block_image.rb +312 -0
  240. data/lib/osuny_api/models/communication_block_image_data.rb +234 -0
  241. data/lib/osuny_api/models/communication_block_jobs.rb +312 -0
  242. data/lib/osuny_api/models/communication_block_jobs_data.rb +354 -0
  243. data/lib/osuny_api/models/communication_block_key_figures.rb +312 -0
  244. data/lib/osuny_api/models/communication_block_key_figures_data.rb +218 -0
  245. data/lib/osuny_api/models/communication_block_key_figures_data_elements.rb +233 -0
  246. data/lib/osuny_api/models/communication_block_license.rb +312 -0
  247. data/lib/osuny_api/models/communication_block_license_data.rb +334 -0
  248. data/lib/osuny_api/models/communication_block_links.rb +312 -0
  249. data/lib/osuny_api/models/communication_block_links_data.rb +270 -0
  250. data/lib/osuny_api/models/communication_block_links_data_elements.rb +233 -0
  251. data/lib/osuny_api/models/communication_block_locations.rb +312 -0
  252. data/lib/osuny_api/models/communication_block_locations_data.rb +270 -0
  253. data/lib/osuny_api/models/communication_block_locations_data_elements.rb +206 -0
  254. data/lib/osuny_api/models/communication_block_organizations.rb +312 -0
  255. data/lib/osuny_api/models/communication_block_organizations_data.rb +345 -0
  256. data/lib/osuny_api/models/communication_block_organizations_data_elements.rb +242 -0
  257. data/lib/osuny_api/models/communication_block_pages.rb +312 -0
  258. data/lib/osuny_api/models/communication_block_pages_data.rb +336 -0
  259. data/lib/osuny_api/models/communication_block_papers.rb +312 -0
  260. data/lib/osuny_api/models/communication_block_papers_data.rb +261 -0
  261. data/lib/osuny_api/models/communication_block_persons.rb +312 -0
  262. data/lib/osuny_api/models/communication_block_persons_data.rb +336 -0
  263. data/lib/osuny_api/models/communication_block_persons_data_elements.rb +215 -0
  264. data/lib/osuny_api/models/communication_block_posts.rb +312 -0
  265. data/lib/osuny_api/models/communication_block_posts_data.rb +354 -0
  266. data/lib/osuny_api/models/communication_block_programs.rb +312 -0
  267. data/lib/osuny_api/models/communication_block_programs_data.rb +279 -0
  268. data/lib/osuny_api/models/communication_block_programs_data_elements.rb +206 -0
  269. data/lib/osuny_api/models/communication_block_projects.rb +312 -0
  270. data/lib/osuny_api/models/communication_block_projects_data.rb +336 -0
  271. data/lib/osuny_api/models/communication_block_sound.rb +312 -0
  272. data/lib/osuny_api/models/communication_block_sound_data.rb +225 -0
  273. data/lib/osuny_api/models/communication_block_testimonials.rb +312 -0
  274. data/lib/osuny_api/models/communication_block_testimonials_data.rb +252 -0
  275. data/lib/osuny_api/models/communication_block_testimonials_data_elements.rb +233 -0
  276. data/lib/osuny_api/models/communication_block_timeline.rb +312 -0
  277. data/lib/osuny_api/models/communication_block_timeline_data.rb +252 -0
  278. data/lib/osuny_api/models/communication_block_timeline_data_elements.rb +215 -0
  279. data/lib/osuny_api/models/communication_block_title.rb +312 -0
  280. data/lib/osuny_api/models/communication_block_title_data.rb +241 -0
  281. data/lib/osuny_api/models/communication_block_video.rb +312 -0
  282. data/lib/osuny_api/models/communication_block_video_data.rb +277 -0
  283. data/lib/osuny_api/models/communication_block_volumes.rb +312 -0
  284. data/lib/osuny_api/models/communication_media.rb +339 -0
  285. data/lib/osuny_api/models/communication_media_localization.rb +265 -0
  286. data/lib/osuny_api/models/communication_media_original_blob.rb +237 -0
  287. data/lib/osuny_api/models/communication_medias_body.rb +215 -0
  288. data/lib/osuny_api/models/communication_website.rb +326 -0
  289. data/lib/osuny_api/models/communication_website_agenda_category.rb +274 -0
  290. data/lib/osuny_api/models/communication_website_agenda_category_localization.rb +362 -0
  291. data/lib/osuny_api/models/communication_website_agenda_category_localization_featured_image.rb +237 -0
  292. data/lib/osuny_api/models/communication_website_agenda_event.rb +315 -0
  293. data/lib/osuny_api/models/communication_website_agenda_event_localization.rb +391 -0
  294. data/lib/osuny_api/models/communication_website_agenda_event_localization_add_to_calendar_urls.rb +242 -0
  295. data/lib/osuny_api/models/communication_website_agenda_event_time_slot.rb +265 -0
  296. data/lib/osuny_api/models/communication_website_agenda_event_time_slot_localization.rb +263 -0
  297. data/lib/osuny_api/models/communication_website_deuxfleurs.rb +216 -0
  298. data/lib/osuny_api/models/communication_website_features.rb +224 -0
  299. data/lib/osuny_api/models/communication_website_git.rb +237 -0
  300. data/lib/osuny_api/models/communication_website_localization.rb +362 -0
  301. data/lib/osuny_api/models/communication_website_page.rb +306 -0
  302. data/lib/osuny_api/models/communication_website_page_category.rb +274 -0
  303. data/lib/osuny_api/models/communication_website_page_category_localization.rb +362 -0
  304. data/lib/osuny_api/models/communication_website_page_localization.rb +392 -0
  305. data/lib/osuny_api/models/communication_website_permalink.rb +215 -0
  306. data/lib/osuny_api/models/communication_website_portfolio_category.rb +284 -0
  307. data/lib/osuny_api/models/communication_website_portfolio_category_localization.rb +362 -0
  308. data/lib/osuny_api/models/communication_website_portfolio_project.rb +285 -0
  309. data/lib/osuny_api/models/communication_website_portfolio_project_localization.rb +362 -0
  310. data/lib/osuny_api/models/communication_website_post.rb +266 -0
  311. data/lib/osuny_api/models/communication_website_post_category.rb +274 -0
  312. data/lib/osuny_api/models/communication_website_post_category_localization.rb +362 -0
  313. data/lib/osuny_api/models/communication_website_post_localization.rb +342 -0
  314. data/lib/osuny_api/models/communication_website_showcase.rb +226 -0
  315. data/lib/osuny_api/models/communication_website_showcase_tags.rb +224 -0
  316. data/lib/osuny_api/models/events_id_body.rb +211 -0
  317. data/lib/osuny_api/models/events_upsert_body.rb +213 -0
  318. data/lib/osuny_api/models/one_ofcommunication_website_agenda_category_localization_blocks_items.rb +197 -0
  319. data/lib/osuny_api/models/one_ofcommunication_website_agenda_event_localization_blocks_items.rb +197 -0
  320. data/lib/osuny_api/models/one_ofcommunication_website_page_category_localization_blocks_items.rb +197 -0
  321. data/lib/osuny_api/models/one_ofcommunication_website_page_localization_blocks_items.rb +197 -0
  322. data/lib/osuny_api/models/one_ofcommunication_website_portfolio_category_localization_blocks_items.rb +197 -0
  323. data/lib/osuny_api/models/one_ofcommunication_website_portfolio_project_localization_blocks_items.rb +197 -0
  324. data/lib/osuny_api/models/one_ofcommunication_website_post_category_localization_blocks_items.rb +197 -0
  325. data/lib/osuny_api/models/one_ofcommunication_website_post_localization_blocks_items.rb +197 -0
  326. data/lib/osuny_api/models/one_ofuniversity_organization_category_localization_blocks_items.rb +197 -0
  327. data/lib/osuny_api/models/one_ofuniversity_organization_localization_blocks_items.rb +197 -0
  328. data/lib/osuny_api/models/organizations_categories_body.rb +211 -0
  329. data/lib/osuny_api/models/organizations_id_body.rb +211 -0
  330. data/lib/osuny_api/models/organizations_upsert_body.rb +213 -0
  331. data/lib/osuny_api/models/pages_categories_body.rb +211 -0
  332. data/lib/osuny_api/models/pages_id_body.rb +211 -0
  333. data/lib/osuny_api/models/pages_upsert_body.rb +213 -0
  334. data/lib/osuny_api/models/portfolio_categories_body.rb +211 -0
  335. data/lib/osuny_api/models/portfolio_projects_body.rb +211 -0
  336. data/lib/osuny_api/models/posts_categories_body.rb +211 -0
  337. data/lib/osuny_api/models/posts_id_body.rb +211 -0
  338. data/lib/osuny_api/models/posts_upsert_body.rb +213 -0
  339. data/lib/osuny_api/models/projects_id_body.rb +211 -0
  340. data/lib/osuny_api/models/projects_upsert_body.rb +213 -0
  341. data/lib/osuny_api/models/university_organization.rb +400 -0
  342. data/lib/osuny_api/models/university_organization_category.rb +274 -0
  343. data/lib/osuny_api/models/university_organization_category_localization.rb +352 -0
  344. data/lib/osuny_api/models/university_organization_localization.rb +392 -0
  345. data/lib/osuny_api/models/university_organizations_body.rb +211 -0
  346. data/lib/osuny_api/models/website_id_pages_body.rb +211 -0
  347. data/lib/osuny_api/models/website_id_posts_body.rb +211 -0
  348. data/lib/osuny_api/version.rb +11 -2
  349. data/lib/osuny_api.rb +196 -11
  350. data/osuny_api.gemspec +38 -30
  351. data/spec/api/communication_website_agenda_category_api_spec.rb +106 -0
  352. data/spec/api/communication_website_agenda_event_api_spec.rb +106 -0
  353. data/spec/api/communication_website_api_spec.rb +55 -0
  354. data/spec/api/communication_website_media_api_spec.rb +46 -0
  355. data/spec/api/communication_website_page_api_spec.rb +106 -0
  356. data/spec/api/communication_website_page_category_api_spec.rb +106 -0
  357. data/spec/api/communication_website_portfolio_category_api_spec.rb +108 -0
  358. data/spec/api/communication_website_portfolio_project_api_spec.rb +108 -0
  359. data/spec/api/communication_website_post_api_spec.rb +106 -0
  360. data/spec/api/communication_website_post_category_api_spec.rb +108 -0
  361. data/spec/api/university_organization_api_spec.rb +100 -0
  362. data/spec/api/university_organization_category_api_spec.rb +100 -0
  363. data/spec/api_client_spec.rb +225 -0
  364. data/spec/base_object_spec.rb +109 -0
  365. data/spec/configuration_spec.rb +41 -0
  366. data/spec/models/agenda_categories_body_spec.rb +40 -0
  367. data/spec/models/agenda_events_body_spec.rb +40 -0
  368. data/spec/models/categories_id_body_1_spec.rb +40 -0
  369. data/spec/models/categories_id_body_2_spec.rb +40 -0
  370. data/spec/models/categories_id_body_3_spec.rb +40 -0
  371. data/spec/models/categories_id_body_4_spec.rb +40 -0
  372. data/spec/models/categories_id_body_spec.rb +40 -0
  373. data/spec/models/categories_upsert_body_1_spec.rb +40 -0
  374. data/spec/models/categories_upsert_body_2_spec.rb +40 -0
  375. data/spec/models/categories_upsert_body_3_spec.rb +40 -0
  376. data/spec/models/categories_upsert_body_4_spec.rb +40 -0
  377. data/spec/models/categories_upsert_body_spec.rb +40 -0
  378. data/spec/models/communication_block_agenda_data_elements_spec.rb +40 -0
  379. data/spec/models/communication_block_agenda_data_spec.rb +130 -0
  380. data/spec/models/communication_block_agenda_spec.rb +86 -0
  381. data/spec/models/communication_block_call_to_action_data_elements_spec.rb +52 -0
  382. data/spec/models/communication_block_call_to_action_data_image_spec.rb +52 -0
  383. data/spec/models/communication_block_call_to_action_data_spec.rb +74 -0
  384. data/spec/models/communication_block_call_to_action_spec.rb +86 -0
  385. data/spec/models/communication_block_categories_data_spec.rb +84 -0
  386. data/spec/models/communication_block_categories_spec.rb +86 -0
  387. data/spec/models/communication_block_chapter_data_image_spec.rb +52 -0
  388. data/spec/models/communication_block_chapter_data_spec.rb +74 -0
  389. data/spec/models/communication_block_chapter_spec.rb +86 -0
  390. data/spec/models/communication_block_contact_data_elements_spec.rb +52 -0
  391. data/spec/models/communication_block_contact_data_spec.rb +160 -0
  392. data/spec/models/communication_block_contact_data_time_slot_morning_spec.rb +46 -0
  393. data/spec/models/communication_block_contact_spec.rb +86 -0
  394. data/spec/models/communication_block_datatable_data_elements_spec.rb +40 -0
  395. data/spec/models/communication_block_datatable_data_spec.rb +64 -0
  396. data/spec/models/communication_block_datatable_spec.rb +86 -0
  397. data/spec/models/communication_block_definitions_data_elements_spec.rb +46 -0
  398. data/spec/models/communication_block_definitions_data_spec.rb +46 -0
  399. data/spec/models/communication_block_definitions_spec.rb +86 -0
  400. data/spec/models/communication_block_embed_data_spec.rb +52 -0
  401. data/spec/models/communication_block_embed_spec.rb +86 -0
  402. data/spec/models/communication_block_exhibitions_data_spec.rb +130 -0
  403. data/spec/models/communication_block_exhibitions_spec.rb +86 -0
  404. data/spec/models/communication_block_features_data_elements_spec.rb +64 -0
  405. data/spec/models/communication_block_features_data_spec.rb +46 -0
  406. data/spec/models/communication_block_features_spec.rb +86 -0
  407. data/spec/models/communication_block_files_data_elements_spec.rb +52 -0
  408. data/spec/models/communication_block_files_data_spec.rb +46 -0
  409. data/spec/models/communication_block_files_spec.rb +86 -0
  410. data/spec/models/communication_block_gallery_data_elements_spec.rb +58 -0
  411. data/spec/models/communication_block_gallery_data_spec.rb +56 -0
  412. data/spec/models/communication_block_gallery_spec.rb +86 -0
  413. data/spec/models/communication_block_image_data_spec.rb +58 -0
  414. data/spec/models/communication_block_image_spec.rb +86 -0
  415. data/spec/models/communication_block_jobs_data_spec.rb +114 -0
  416. data/spec/models/communication_block_jobs_spec.rb +86 -0
  417. data/spec/models/communication_block_key_figures_data_elements_spec.rb +58 -0
  418. data/spec/models/communication_block_key_figures_data_spec.rb +46 -0
  419. data/spec/models/communication_block_key_figures_spec.rb +86 -0
  420. data/spec/models/communication_block_license_data_spec.rb +90 -0
  421. data/spec/models/communication_block_license_spec.rb +86 -0
  422. data/spec/models/communication_block_links_data_elements_spec.rb +64 -0
  423. data/spec/models/communication_block_links_data_spec.rb +46 -0
  424. data/spec/models/communication_block_links_spec.rb +86 -0
  425. data/spec/models/communication_block_locations_data_elements_spec.rb +40 -0
  426. data/spec/models/communication_block_locations_data_spec.rb +62 -0
  427. data/spec/models/communication_block_locations_spec.rb +86 -0
  428. data/spec/models/communication_block_organizations_data_elements_spec.rb +58 -0
  429. data/spec/models/communication_block_organizations_data_spec.rb +96 -0
  430. data/spec/models/communication_block_organizations_spec.rb +86 -0
  431. data/spec/models/communication_block_pages_data_spec.rb +96 -0
  432. data/spec/models/communication_block_pages_spec.rb +86 -0
  433. data/spec/models/communication_block_papers_data_spec.rb +56 -0
  434. data/spec/models/communication_block_papers_spec.rb +86 -0
  435. data/spec/models/communication_block_persons_data_elements_spec.rb +46 -0
  436. data/spec/models/communication_block_persons_data_spec.rb +102 -0
  437. data/spec/models/communication_block_persons_spec.rb +86 -0
  438. data/spec/models/communication_block_posts_data_spec.rb +114 -0
  439. data/spec/models/communication_block_posts_spec.rb +86 -0
  440. data/spec/models/communication_block_programs_data_elements_spec.rb +40 -0
  441. data/spec/models/communication_block_programs_data_spec.rb +68 -0
  442. data/spec/models/communication_block_programs_spec.rb +86 -0
  443. data/spec/models/communication_block_projects_data_spec.rb +102 -0
  444. data/spec/models/communication_block_projects_spec.rb +86 -0
  445. data/spec/models/communication_block_sound_data_spec.rb +52 -0
  446. data/spec/models/communication_block_sound_spec.rb +86 -0
  447. data/spec/models/communication_block_testimonials_data_elements_spec.rb +58 -0
  448. data/spec/models/communication_block_testimonials_data_spec.rb +40 -0
  449. data/spec/models/communication_block_testimonials_spec.rb +86 -0
  450. data/spec/models/communication_block_timeline_data_elements_spec.rb +46 -0
  451. data/spec/models/communication_block_timeline_data_spec.rb +50 -0
  452. data/spec/models/communication_block_timeline_spec.rb +86 -0
  453. data/spec/models/communication_block_title_data_spec.rb +44 -0
  454. data/spec/models/communication_block_title_spec.rb +86 -0
  455. data/spec/models/communication_block_video_data_spec.rb +68 -0
  456. data/spec/models/communication_block_video_spec.rb +86 -0
  457. data/spec/models/communication_block_volumes_spec.rb +86 -0
  458. data/spec/models/communication_media_localization_spec.rb +76 -0
  459. data/spec/models/communication_media_original_blob_spec.rb +58 -0
  460. data/spec/models/communication_media_spec.rb +104 -0
  461. data/spec/models/communication_medias_body_spec.rb +46 -0
  462. data/spec/models/communication_website_agenda_category_localization_featured_image_spec.rb +58 -0
  463. data/spec/models/communication_website_agenda_category_localization_spec.rb +100 -0
  464. data/spec/models/communication_website_agenda_category_spec.rb +82 -0
  465. data/spec/models/communication_website_agenda_event_localization_add_to_calendar_urls_spec.rb +64 -0
  466. data/spec/models/communication_website_agenda_event_localization_spec.rb +148 -0
  467. data/spec/models/communication_website_agenda_event_spec.rb +106 -0
  468. data/spec/models/communication_website_agenda_event_time_slot_localization_spec.rb +76 -0
  469. data/spec/models/communication_website_agenda_event_time_slot_spec.rb +76 -0
  470. data/spec/models/communication_website_deuxfleurs_spec.rb +46 -0
  471. data/spec/models/communication_website_features_spec.rb +52 -0
  472. data/spec/models/communication_website_git_spec.rb +58 -0
  473. data/spec/models/communication_website_localization_spec.rb +136 -0
  474. data/spec/models/communication_website_page_category_localization_spec.rb +100 -0
  475. data/spec/models/communication_website_page_category_spec.rb +82 -0
  476. data/spec/models/communication_website_page_localization_spec.rb +142 -0
  477. data/spec/models/communication_website_page_spec.rb +100 -0
  478. data/spec/models/communication_website_permalink_spec.rb +46 -0
  479. data/spec/models/communication_website_portfolio_category_localization_spec.rb +136 -0
  480. data/spec/models/communication_website_portfolio_category_spec.rb +88 -0
  481. data/spec/models/communication_website_portfolio_project_localization_spec.rb +136 -0
  482. data/spec/models/communication_website_portfolio_project_spec.rb +88 -0
  483. data/spec/models/communication_website_post_category_localization_spec.rb +136 -0
  484. data/spec/models/communication_website_post_category_spec.rb +82 -0
  485. data/spec/models/communication_website_post_localization_spec.rb +124 -0
  486. data/spec/models/communication_website_post_spec.rb +70 -0
  487. data/spec/models/communication_website_showcase_spec.rb +52 -0
  488. data/spec/models/communication_website_showcase_tags_spec.rb +52 -0
  489. data/spec/models/communication_website_spec.rb +88 -0
  490. data/spec/models/events_id_body_spec.rb +40 -0
  491. data/spec/models/events_upsert_body_spec.rb +40 -0
  492. data/spec/models/one_ofcommunication_website_agenda_category_localization_blocks_items_spec.rb +34 -0
  493. data/spec/models/one_ofcommunication_website_agenda_event_localization_blocks_items_spec.rb +34 -0
  494. data/spec/models/one_ofcommunication_website_page_category_localization_blocks_items_spec.rb +34 -0
  495. data/spec/models/one_ofcommunication_website_page_localization_blocks_items_spec.rb +34 -0
  496. data/spec/models/one_ofcommunication_website_portfolio_category_localization_blocks_items_spec.rb +34 -0
  497. data/spec/models/one_ofcommunication_website_portfolio_project_localization_blocks_items_spec.rb +34 -0
  498. data/spec/models/one_ofcommunication_website_post_category_localization_blocks_items_spec.rb +34 -0
  499. data/spec/models/one_ofcommunication_website_post_localization_blocks_items_spec.rb +34 -0
  500. data/spec/models/one_ofuniversity_organization_category_localization_blocks_items_spec.rb +34 -0
  501. data/spec/models/one_ofuniversity_organization_localization_blocks_items_spec.rb +34 -0
  502. data/spec/models/organizations_categories_body_spec.rb +40 -0
  503. data/spec/models/organizations_id_body_spec.rb +40 -0
  504. data/spec/models/organizations_upsert_body_spec.rb +40 -0
  505. data/spec/models/pages_categories_body_spec.rb +40 -0
  506. data/spec/models/pages_id_body_spec.rb +40 -0
  507. data/spec/models/pages_upsert_body_spec.rb +40 -0
  508. data/spec/models/portfolio_categories_body_spec.rb +40 -0
  509. data/spec/models/portfolio_projects_body_spec.rb +40 -0
  510. data/spec/models/posts_categories_body_spec.rb +40 -0
  511. data/spec/models/posts_id_body_spec.rb +40 -0
  512. data/spec/models/posts_upsert_body_spec.rb +40 -0
  513. data/spec/models/projects_id_body_spec.rb +40 -0
  514. data/spec/models/projects_upsert_body_spec.rb +40 -0
  515. data/spec/models/university_organization_category_localization_spec.rb +94 -0
  516. data/spec/models/university_organization_category_spec.rb +82 -0
  517. data/spec/models/university_organization_localization_spec.rb +142 -0
  518. data/spec/models/university_organization_spec.rb +146 -0
  519. data/spec/models/university_organizations_body_spec.rb +40 -0
  520. data/spec/models/website_id_pages_body_spec.rb +40 -0
  521. data/spec/models/website_id_posts_body_spec.rb +40 -0
  522. data/spec/spec_helper.rb +110 -0
  523. metadata +764 -24
  524. data/lib/osuny_api/client.rb +0 -41
  525. data/lib/osuny_api/communication/website/page.rb +0 -12
  526. data/lib/osuny_api/communication/website/post.rb +0 -12
  527. data/lib/osuny_api/communication/website.rb +0 -18
  528. data/lib/osuny_api/communication.rb +0 -13
  529. data/lib/osuny_api/error.rb +0 -4
  530. data/lib/osuny_api/resource.rb +0 -20
@@ -0,0 +1,344 @@
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
+ module OsunyApi
13
+ class UniversityOrganizationApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # Lists organizations
20
+ # @param [Hash] opts the optional parameters
21
+ # @option opts [Integer] :page_num Page number (default to 1)
22
+ # @option opts [Integer] :per_page Number of items per page (default to 10000)
23
+ # @return [Array<UniversityOrganization>]
24
+ def university_organizations_get(opts = {})
25
+ data, _status_code, _headers = university_organizations_get_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # Lists organizations
30
+ # @param [Hash] opts the optional parameters
31
+ # @option opts [Integer] :page_num Page number
32
+ # @option opts [Integer] :per_page Number of items per page
33
+ # @return [Array<(Array<UniversityOrganization>, Integer, Hash)>] Array<UniversityOrganization> data, response status code and response headers
34
+ def university_organizations_get_with_http_info(opts = {})
35
+ if @api_client.config.debugging
36
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationApi.university_organizations_get ...'
37
+ end
38
+ # resource path
39
+ local_var_path = '/university/organizations'
40
+
41
+ # query parameters
42
+ query_params = opts[:query_params] || {}
43
+ query_params[:'page_num'] = opts[:'page_num'] if !opts[:'page_num'].nil?
44
+ query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
45
+
46
+ # header parameters
47
+ header_params = opts[:header_params] || {}
48
+ # HTTP header 'Accept' (if needed)
49
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
50
+
51
+ # form parameters
52
+ form_params = opts[:form_params] || {}
53
+
54
+ # http body (model)
55
+ post_body = opts[:body]
56
+
57
+ return_type = opts[:return_type] || 'Array<UniversityOrganization>'
58
+
59
+ auth_names = opts[:auth_names] || ['api_key']
60
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
61
+ :header_params => header_params,
62
+ :query_params => query_params,
63
+ :form_params => form_params,
64
+ :body => post_body,
65
+ :auth_names => auth_names,
66
+ :return_type => return_type)
67
+
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: UniversityOrganizationApi#university_organizations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+ # Deletes an organization
74
+ # @param id Organization identifier
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [nil]
77
+ def university_organizations_id_delete(id, opts = {})
78
+ university_organizations_id_delete_with_http_info(id, opts)
79
+ nil
80
+ end
81
+
82
+ # Deletes an organization
83
+ # @param id Organization identifier
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
86
+ def university_organizations_id_delete_with_http_info(id, opts = {})
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationApi.university_organizations_id_delete ...'
89
+ end
90
+ # verify the required parameter 'id' is set
91
+ if @api_client.config.client_side_validation && id.nil?
92
+ fail ArgumentError, "Missing the required parameter 'id' when calling UniversityOrganizationApi.university_organizations_id_delete"
93
+ end
94
+ # resource path
95
+ local_var_path = '/university/organizations/{id}'.sub('{' + 'id' + '}', id.to_s)
96
+
97
+ # query parameters
98
+ query_params = opts[:query_params] || {}
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+ # HTTP header 'Accept' (if needed)
103
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
104
+
105
+ # form parameters
106
+ form_params = opts[:form_params] || {}
107
+
108
+ # http body (model)
109
+ post_body = opts[:body]
110
+
111
+ return_type = opts[:return_type]
112
+
113
+ auth_names = opts[:auth_names] || ['api_key']
114
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
115
+ :header_params => header_params,
116
+ :query_params => query_params,
117
+ :form_params => form_params,
118
+ :body => post_body,
119
+ :auth_names => auth_names,
120
+ :return_type => return_type)
121
+
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug "API called: UniversityOrganizationApi#university_organizations_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
124
+ end
125
+ return data, status_code, headers
126
+ end
127
+ # Shows an organization
128
+ # @param id Organization identifier
129
+ # @param [Hash] opts the optional parameters
130
+ # @return [nil]
131
+ def university_organizations_id_get(id, opts = {})
132
+ university_organizations_id_get_with_http_info(id, opts)
133
+ nil
134
+ end
135
+
136
+ # Shows an organization
137
+ # @param id Organization identifier
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
140
+ def university_organizations_id_get_with_http_info(id, opts = {})
141
+ if @api_client.config.debugging
142
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationApi.university_organizations_id_get ...'
143
+ end
144
+ # verify the required parameter 'id' is set
145
+ if @api_client.config.client_side_validation && id.nil?
146
+ fail ArgumentError, "Missing the required parameter 'id' when calling UniversityOrganizationApi.university_organizations_id_get"
147
+ end
148
+ # resource path
149
+ local_var_path = '/university/organizations/{id}'.sub('{' + 'id' + '}', id.to_s)
150
+
151
+ # query parameters
152
+ query_params = opts[:query_params] || {}
153
+
154
+ # header parameters
155
+ header_params = opts[:header_params] || {}
156
+ # HTTP header 'Accept' (if needed)
157
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
158
+
159
+ # form parameters
160
+ form_params = opts[:form_params] || {}
161
+
162
+ # http body (model)
163
+ post_body = opts[:body]
164
+
165
+ return_type = opts[:return_type]
166
+
167
+ auth_names = opts[:auth_names] || ['api_key']
168
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
169
+ :header_params => header_params,
170
+ :query_params => query_params,
171
+ :form_params => form_params,
172
+ :body => post_body,
173
+ :auth_names => auth_names,
174
+ :return_type => return_type)
175
+
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug "API called: UniversityOrganizationApi#university_organizations_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
178
+ end
179
+ return data, status_code, headers
180
+ end
181
+ # Updates an organization
182
+ # @param id Organization identifier
183
+ # @param [Hash] opts the optional parameters
184
+ # @option opts [OrganizationsIdBody] :body
185
+ # @return [nil]
186
+ def university_organizations_id_patch(id, opts = {})
187
+ university_organizations_id_patch_with_http_info(id, opts)
188
+ nil
189
+ end
190
+
191
+ # Updates an organization
192
+ # @param id Organization identifier
193
+ # @param [Hash] opts the optional parameters
194
+ # @option opts [OrganizationsIdBody] :body
195
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
196
+ def university_organizations_id_patch_with_http_info(id, opts = {})
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationApi.university_organizations_id_patch ...'
199
+ end
200
+ # verify the required parameter 'id' is set
201
+ if @api_client.config.client_side_validation && id.nil?
202
+ fail ArgumentError, "Missing the required parameter 'id' when calling UniversityOrganizationApi.university_organizations_id_patch"
203
+ end
204
+ # resource path
205
+ local_var_path = '/university/organizations/{id}'.sub('{' + 'id' + '}', id.to_s)
206
+
207
+ # query parameters
208
+ query_params = opts[:query_params] || {}
209
+
210
+ # header parameters
211
+ header_params = opts[:header_params] || {}
212
+ # HTTP header 'Accept' (if needed)
213
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
214
+ # HTTP header 'Content-Type'
215
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
216
+
217
+ # form parameters
218
+ form_params = opts[:form_params] || {}
219
+
220
+ # http body (model)
221
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
222
+
223
+ return_type = opts[:return_type]
224
+
225
+ auth_names = opts[:auth_names] || ['api_key']
226
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
227
+ :header_params => header_params,
228
+ :query_params => query_params,
229
+ :form_params => form_params,
230
+ :body => post_body,
231
+ :auth_names => auth_names,
232
+ :return_type => return_type)
233
+
234
+ if @api_client.config.debugging
235
+ @api_client.config.logger.debug "API called: UniversityOrganizationApi#university_organizations_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
236
+ end
237
+ return data, status_code, headers
238
+ end
239
+ # Creates a organization
240
+ # @param [Hash] opts the optional parameters
241
+ # @option opts [UniversityOrganizationsBody] :body
242
+ # @return [nil]
243
+ def university_organizations_post(opts = {})
244
+ university_organizations_post_with_http_info(opts)
245
+ nil
246
+ end
247
+
248
+ # Creates a organization
249
+ # @param [Hash] opts the optional parameters
250
+ # @option opts [UniversityOrganizationsBody] :body
251
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
252
+ def university_organizations_post_with_http_info(opts = {})
253
+ if @api_client.config.debugging
254
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationApi.university_organizations_post ...'
255
+ end
256
+ # resource path
257
+ local_var_path = '/university/organizations'
258
+
259
+ # query parameters
260
+ query_params = opts[:query_params] || {}
261
+
262
+ # header parameters
263
+ header_params = opts[:header_params] || {}
264
+ # HTTP header 'Accept' (if needed)
265
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
266
+ # HTTP header 'Content-Type'
267
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
268
+
269
+ # form parameters
270
+ form_params = opts[:form_params] || {}
271
+
272
+ # http body (model)
273
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
274
+
275
+ return_type = opts[:return_type]
276
+
277
+ auth_names = opts[:auth_names] || ['api_key']
278
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
279
+ :header_params => header_params,
280
+ :query_params => query_params,
281
+ :form_params => form_params,
282
+ :body => post_body,
283
+ :auth_names => auth_names,
284
+ :return_type => return_type)
285
+
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug "API called: UniversityOrganizationApi#university_organizations_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
288
+ end
289
+ return data, status_code, headers
290
+ end
291
+ # Upsert organizations
292
+ # @param [Hash] opts the optional parameters
293
+ # @option opts [OrganizationsUpsertBody] :body
294
+ # @return [nil]
295
+ def university_organizations_upsert_post(opts = {})
296
+ university_organizations_upsert_post_with_http_info(opts)
297
+ nil
298
+ end
299
+
300
+ # Upsert organizations
301
+ # @param [Hash] opts the optional parameters
302
+ # @option opts [OrganizationsUpsertBody] :body
303
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
304
+ def university_organizations_upsert_post_with_http_info(opts = {})
305
+ if @api_client.config.debugging
306
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationApi.university_organizations_upsert_post ...'
307
+ end
308
+ # resource path
309
+ local_var_path = '/university/organizations/upsert'
310
+
311
+ # query parameters
312
+ query_params = opts[:query_params] || {}
313
+
314
+ # header parameters
315
+ header_params = opts[:header_params] || {}
316
+ # HTTP header 'Accept' (if needed)
317
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
318
+ # HTTP header 'Content-Type'
319
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
320
+
321
+ # form parameters
322
+ form_params = opts[:form_params] || {}
323
+
324
+ # http body (model)
325
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
326
+
327
+ return_type = opts[:return_type]
328
+
329
+ auth_names = opts[:auth_names] || ['api_key']
330
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
331
+ :header_params => header_params,
332
+ :query_params => query_params,
333
+ :form_params => form_params,
334
+ :body => post_body,
335
+ :auth_names => auth_names,
336
+ :return_type => return_type)
337
+
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug "API called: UniversityOrganizationApi#university_organizations_upsert_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
340
+ end
341
+ return data, status_code, headers
342
+ end
343
+ end
344
+ end
@@ -0,0 +1,344 @@
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
+ module OsunyApi
13
+ class UniversityOrganizationCategoryApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # Lists organization categories
20
+ # @param [Hash] opts the optional parameters
21
+ # @option opts [Integer] :page_num Page number (default to 1)
22
+ # @option opts [Integer] :per_page Number of items per page (default to 10000)
23
+ # @return [Array<UniversityOrganizationCategory>]
24
+ def university_organizations_categories_get(opts = {})
25
+ data, _status_code, _headers = university_organizations_categories_get_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # Lists organization categories
30
+ # @param [Hash] opts the optional parameters
31
+ # @option opts [Integer] :page_num Page number
32
+ # @option opts [Integer] :per_page Number of items per page
33
+ # @return [Array<(Array<UniversityOrganizationCategory>, Integer, Hash)>] Array<UniversityOrganizationCategory> data, response status code and response headers
34
+ def university_organizations_categories_get_with_http_info(opts = {})
35
+ if @api_client.config.debugging
36
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationCategoryApi.university_organizations_categories_get ...'
37
+ end
38
+ # resource path
39
+ local_var_path = '/university/organizations/categories'
40
+
41
+ # query parameters
42
+ query_params = opts[:query_params] || {}
43
+ query_params[:'page_num'] = opts[:'page_num'] if !opts[:'page_num'].nil?
44
+ query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
45
+
46
+ # header parameters
47
+ header_params = opts[:header_params] || {}
48
+ # HTTP header 'Accept' (if needed)
49
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
50
+
51
+ # form parameters
52
+ form_params = opts[:form_params] || {}
53
+
54
+ # http body (model)
55
+ post_body = opts[:body]
56
+
57
+ return_type = opts[:return_type] || 'Array<UniversityOrganizationCategory>'
58
+
59
+ auth_names = opts[:auth_names] || ['api_key']
60
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
61
+ :header_params => header_params,
62
+ :query_params => query_params,
63
+ :form_params => form_params,
64
+ :body => post_body,
65
+ :auth_names => auth_names,
66
+ :return_type => return_type)
67
+
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: UniversityOrganizationCategoryApi#university_organizations_categories_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+ # Deletes a organization category
74
+ # @param id Category identifier
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [nil]
77
+ def university_organizations_categories_id_delete(id, opts = {})
78
+ university_organizations_categories_id_delete_with_http_info(id, opts)
79
+ nil
80
+ end
81
+
82
+ # Deletes a organization category
83
+ # @param id Category identifier
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
86
+ def university_organizations_categories_id_delete_with_http_info(id, opts = {})
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationCategoryApi.university_organizations_categories_id_delete ...'
89
+ end
90
+ # verify the required parameter 'id' is set
91
+ if @api_client.config.client_side_validation && id.nil?
92
+ fail ArgumentError, "Missing the required parameter 'id' when calling UniversityOrganizationCategoryApi.university_organizations_categories_id_delete"
93
+ end
94
+ # resource path
95
+ local_var_path = '/university/organizations/categories/{id}'.sub('{' + 'id' + '}', id.to_s)
96
+
97
+ # query parameters
98
+ query_params = opts[:query_params] || {}
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+ # HTTP header 'Accept' (if needed)
103
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
104
+
105
+ # form parameters
106
+ form_params = opts[:form_params] || {}
107
+
108
+ # http body (model)
109
+ post_body = opts[:body]
110
+
111
+ return_type = opts[:return_type]
112
+
113
+ auth_names = opts[:auth_names] || ['api_key']
114
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
115
+ :header_params => header_params,
116
+ :query_params => query_params,
117
+ :form_params => form_params,
118
+ :body => post_body,
119
+ :auth_names => auth_names,
120
+ :return_type => return_type)
121
+
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug "API called: UniversityOrganizationCategoryApi#university_organizations_categories_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
124
+ end
125
+ return data, status_code, headers
126
+ end
127
+ # Shows a organization category
128
+ # @param id Category identifier
129
+ # @param [Hash] opts the optional parameters
130
+ # @return [nil]
131
+ def university_organizations_categories_id_get(id, opts = {})
132
+ university_organizations_categories_id_get_with_http_info(id, opts)
133
+ nil
134
+ end
135
+
136
+ # Shows a organization category
137
+ # @param id Category identifier
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
140
+ def university_organizations_categories_id_get_with_http_info(id, opts = {})
141
+ if @api_client.config.debugging
142
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationCategoryApi.university_organizations_categories_id_get ...'
143
+ end
144
+ # verify the required parameter 'id' is set
145
+ if @api_client.config.client_side_validation && id.nil?
146
+ fail ArgumentError, "Missing the required parameter 'id' when calling UniversityOrganizationCategoryApi.university_organizations_categories_id_get"
147
+ end
148
+ # resource path
149
+ local_var_path = '/university/organizations/categories/{id}'.sub('{' + 'id' + '}', id.to_s)
150
+
151
+ # query parameters
152
+ query_params = opts[:query_params] || {}
153
+
154
+ # header parameters
155
+ header_params = opts[:header_params] || {}
156
+ # HTTP header 'Accept' (if needed)
157
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
158
+
159
+ # form parameters
160
+ form_params = opts[:form_params] || {}
161
+
162
+ # http body (model)
163
+ post_body = opts[:body]
164
+
165
+ return_type = opts[:return_type]
166
+
167
+ auth_names = opts[:auth_names] || ['api_key']
168
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
169
+ :header_params => header_params,
170
+ :query_params => query_params,
171
+ :form_params => form_params,
172
+ :body => post_body,
173
+ :auth_names => auth_names,
174
+ :return_type => return_type)
175
+
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug "API called: UniversityOrganizationCategoryApi#university_organizations_categories_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
178
+ end
179
+ return data, status_code, headers
180
+ end
181
+ # Updates a organization category
182
+ # @param id Category identifier
183
+ # @param [Hash] opts the optional parameters
184
+ # @option opts [CategoriesIdBody4] :body
185
+ # @return [nil]
186
+ def university_organizations_categories_id_patch(id, opts = {})
187
+ university_organizations_categories_id_patch_with_http_info(id, opts)
188
+ nil
189
+ end
190
+
191
+ # Updates a organization category
192
+ # @param id Category identifier
193
+ # @param [Hash] opts the optional parameters
194
+ # @option opts [CategoriesIdBody4] :body
195
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
196
+ def university_organizations_categories_id_patch_with_http_info(id, opts = {})
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationCategoryApi.university_organizations_categories_id_patch ...'
199
+ end
200
+ # verify the required parameter 'id' is set
201
+ if @api_client.config.client_side_validation && id.nil?
202
+ fail ArgumentError, "Missing the required parameter 'id' when calling UniversityOrganizationCategoryApi.university_organizations_categories_id_patch"
203
+ end
204
+ # resource path
205
+ local_var_path = '/university/organizations/categories/{id}'.sub('{' + 'id' + '}', id.to_s)
206
+
207
+ # query parameters
208
+ query_params = opts[:query_params] || {}
209
+
210
+ # header parameters
211
+ header_params = opts[:header_params] || {}
212
+ # HTTP header 'Accept' (if needed)
213
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
214
+ # HTTP header 'Content-Type'
215
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
216
+
217
+ # form parameters
218
+ form_params = opts[:form_params] || {}
219
+
220
+ # http body (model)
221
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
222
+
223
+ return_type = opts[:return_type]
224
+
225
+ auth_names = opts[:auth_names] || ['api_key']
226
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
227
+ :header_params => header_params,
228
+ :query_params => query_params,
229
+ :form_params => form_params,
230
+ :body => post_body,
231
+ :auth_names => auth_names,
232
+ :return_type => return_type)
233
+
234
+ if @api_client.config.debugging
235
+ @api_client.config.logger.debug "API called: UniversityOrganizationCategoryApi#university_organizations_categories_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
236
+ end
237
+ return data, status_code, headers
238
+ end
239
+ # Creates a organization category
240
+ # @param [Hash] opts the optional parameters
241
+ # @option opts [OrganizationsCategoriesBody] :body
242
+ # @return [nil]
243
+ def university_organizations_categories_post(opts = {})
244
+ university_organizations_categories_post_with_http_info(opts)
245
+ nil
246
+ end
247
+
248
+ # Creates a organization category
249
+ # @param [Hash] opts the optional parameters
250
+ # @option opts [OrganizationsCategoriesBody] :body
251
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
252
+ def university_organizations_categories_post_with_http_info(opts = {})
253
+ if @api_client.config.debugging
254
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationCategoryApi.university_organizations_categories_post ...'
255
+ end
256
+ # resource path
257
+ local_var_path = '/university/organizations/categories'
258
+
259
+ # query parameters
260
+ query_params = opts[:query_params] || {}
261
+
262
+ # header parameters
263
+ header_params = opts[:header_params] || {}
264
+ # HTTP header 'Accept' (if needed)
265
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
266
+ # HTTP header 'Content-Type'
267
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
268
+
269
+ # form parameters
270
+ form_params = opts[:form_params] || {}
271
+
272
+ # http body (model)
273
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
274
+
275
+ return_type = opts[:return_type]
276
+
277
+ auth_names = opts[:auth_names] || ['api_key']
278
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
279
+ :header_params => header_params,
280
+ :query_params => query_params,
281
+ :form_params => form_params,
282
+ :body => post_body,
283
+ :auth_names => auth_names,
284
+ :return_type => return_type)
285
+
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug "API called: UniversityOrganizationCategoryApi#university_organizations_categories_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
288
+ end
289
+ return data, status_code, headers
290
+ end
291
+ # Upsert organization categories
292
+ # @param [Hash] opts the optional parameters
293
+ # @option opts [CategoriesUpsertBody4] :body
294
+ # @return [nil]
295
+ def university_organizations_categories_upsert_post(opts = {})
296
+ university_organizations_categories_upsert_post_with_http_info(opts)
297
+ nil
298
+ end
299
+
300
+ # Upsert organization categories
301
+ # @param [Hash] opts the optional parameters
302
+ # @option opts [CategoriesUpsertBody4] :body
303
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
304
+ def university_organizations_categories_upsert_post_with_http_info(opts = {})
305
+ if @api_client.config.debugging
306
+ @api_client.config.logger.debug 'Calling API: UniversityOrganizationCategoryApi.university_organizations_categories_upsert_post ...'
307
+ end
308
+ # resource path
309
+ local_var_path = '/university/organizations/categories/upsert'
310
+
311
+ # query parameters
312
+ query_params = opts[:query_params] || {}
313
+
314
+ # header parameters
315
+ header_params = opts[:header_params] || {}
316
+ # HTTP header 'Accept' (if needed)
317
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
318
+ # HTTP header 'Content-Type'
319
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
320
+
321
+ # form parameters
322
+ form_params = opts[:form_params] || {}
323
+
324
+ # http body (model)
325
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
326
+
327
+ return_type = opts[:return_type]
328
+
329
+ auth_names = opts[:auth_names] || ['api_key']
330
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
331
+ :header_params => header_params,
332
+ :query_params => query_params,
333
+ :form_params => form_params,
334
+ :body => post_body,
335
+ :auth_names => auth_names,
336
+ :return_type => return_type)
337
+
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug "API called: UniversityOrganizationCategoryApi#university_organizations_categories_upsert_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
340
+ end
341
+ return data, status_code, headers
342
+ end
343
+ end
344
+ end