osuny_api 0.2.6 → 1.0.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.
- checksums.yaml +4 -4
- data/Gemfile +6 -7
- data/Gemfile.lock +55 -31
- data/README.md +1080 -17
- data/Rakefile +1 -1
- data/config.json +10 -0
- data/docs/AgendaCategoriesBody.md +7 -0
- data/docs/AgendaEventsBody.md +7 -0
- data/docs/CategoriesIdBody.md +7 -0
- data/docs/CategoriesIdBody1.md +7 -0
- data/docs/CategoriesIdBody2.md +7 -0
- data/docs/CategoriesUpsertBody.md +7 -0
- data/docs/CategoriesUpsertBody1.md +7 -0
- data/docs/CategoriesUpsertBody2.md +7 -0
- data/docs/CommunicationBlockAgenda.md +14 -0
- data/docs/CommunicationBlockAgendaData.md +20 -0
- data/docs/CommunicationBlockAgendaDataElements.md +7 -0
- data/docs/CommunicationBlockCallToAction.md +14 -0
- data/docs/CommunicationBlockCallToActionData.md +12 -0
- data/docs/CommunicationBlockCallToActionDataElements.md +9 -0
- data/docs/CommunicationBlockCallToActionDataImage.md +9 -0
- data/docs/CommunicationBlockCategories.md +14 -0
- data/docs/CommunicationBlockCategoriesData.md +13 -0
- data/docs/CommunicationBlockChapter.md +14 -0
- data/docs/CommunicationBlockChapterData.md +12 -0
- data/docs/CommunicationBlockContact.md +14 -0
- data/docs/CommunicationBlockContactData.md +27 -0
- data/docs/CommunicationBlockContactDataElements.md +9 -0
- data/docs/CommunicationBlockContactDataTimeSlotMorning.md +8 -0
- data/docs/CommunicationBlockDatatable.md +14 -0
- data/docs/CommunicationBlockDatatableData.md +11 -0
- data/docs/CommunicationBlockDatatableDataElements.md +7 -0
- data/docs/CommunicationBlockDefinitions.md +14 -0
- data/docs/CommunicationBlockDefinitionsData.md +8 -0
- data/docs/CommunicationBlockDefinitionsDataElements.md +8 -0
- data/docs/CommunicationBlockEmbed.md +14 -0
- data/docs/CommunicationBlockEmbedData.md +9 -0
- data/docs/CommunicationBlockFeatures.md +14 -0
- data/docs/CommunicationBlockFeaturesData.md +8 -0
- data/docs/CommunicationBlockFeaturesDataElements.md +11 -0
- data/docs/CommunicationBlockFiles.md +14 -0
- data/docs/CommunicationBlockFilesData.md +8 -0
- data/docs/CommunicationBlockFilesDataElements.md +9 -0
- data/docs/CommunicationBlockGallery.md +14 -0
- data/docs/CommunicationBlockGalleryData.md +9 -0
- data/docs/CommunicationBlockGalleryDataElements.md +10 -0
- data/docs/CommunicationBlockImage.md +14 -0
- data/docs/CommunicationBlockImageData.md +10 -0
- data/docs/CommunicationBlockKeyFigures.md +14 -0
- data/docs/CommunicationBlockKeyFiguresData.md +8 -0
- data/docs/CommunicationBlockKeyFiguresDataElements.md +10 -0
- data/docs/CommunicationBlockLicense.md +14 -0
- data/docs/CommunicationBlockLicenseData.md +12 -0
- data/docs/CommunicationBlockLinks.md +14 -0
- data/docs/CommunicationBlockLinksData.md +8 -0
- data/docs/CommunicationBlockLinksDataElements.md +11 -0
- data/docs/CommunicationBlockLocations.md +14 -0
- data/docs/CommunicationBlockLocationsData.md +10 -0
- data/docs/CommunicationBlockLocationsDataElements.md +7 -0
- data/docs/CommunicationBlockOrganizations.md +14 -0
- data/docs/CommunicationBlockOrganizationsData.md +15 -0
- data/docs/CommunicationBlockOrganizationsDataElements.md +10 -0
- data/docs/CommunicationBlockPages.md +14 -0
- data/docs/CommunicationBlockPagesData.md +15 -0
- data/docs/CommunicationBlockPapers.md +14 -0
- data/docs/CommunicationBlockPapersData.md +9 -0
- data/docs/CommunicationBlockPersons.md +14 -0
- data/docs/CommunicationBlockPersonsData.md +16 -0
- data/docs/CommunicationBlockPersonsDataElements.md +8 -0
- data/docs/CommunicationBlockPosts.md +14 -0
- data/docs/CommunicationBlockPostsData.md +18 -0
- data/docs/CommunicationBlockPrograms.md +14 -0
- data/docs/CommunicationBlockProgramsData.md +11 -0
- data/docs/CommunicationBlockProjects.md +14 -0
- data/docs/CommunicationBlockProjectsData.md +16 -0
- data/docs/CommunicationBlockSound.md +14 -0
- data/docs/CommunicationBlockSoundData.md +9 -0
- data/docs/CommunicationBlockTestimonials.md +14 -0
- data/docs/CommunicationBlockTestimonialsData.md +7 -0
- data/docs/CommunicationBlockTestimonialsDataElements.md +10 -0
- data/docs/CommunicationBlockTimeline.md +14 -0
- data/docs/CommunicationBlockTimelineData.md +8 -0
- data/docs/CommunicationBlockTimelineDataElements.md +8 -0
- data/docs/CommunicationBlockTitle.md +14 -0
- data/docs/CommunicationBlockTitleData.md +7 -0
- data/docs/CommunicationBlockVideo.md +14 -0
- data/docs/CommunicationBlockVideoData.md +11 -0
- data/docs/CommunicationBlockVolumes.md +14 -0
- data/docs/CommunicationWebsite.md +15 -0
- data/docs/CommunicationWebsiteAgendaCategory.md +14 -0
- data/docs/CommunicationWebsiteAgendaCategoryApi.md +329 -0
- data/docs/CommunicationWebsiteAgendaCategoryLocalization.md +17 -0
- data/docs/CommunicationWebsiteAgendaCategoryLocalizationFeaturedImage.md +10 -0
- data/docs/CommunicationWebsiteAgendaEvent.md +18 -0
- data/docs/CommunicationWebsiteAgendaEventApi.md +329 -0
- data/docs/CommunicationWebsiteAgendaEventLocalization.md +25 -0
- data/docs/CommunicationWebsiteAgendaEventLocalizationAddToCalendarUrls.md +11 -0
- data/docs/CommunicationWebsiteAgendaEventTimeSlot.md +13 -0
- data/docs/CommunicationWebsiteAgendaEventTimeSlotLocalization.md +13 -0
- data/docs/CommunicationWebsiteApi.md +106 -0
- data/docs/CommunicationWebsiteDeuxfleurs.md +8 -0
- data/docs/CommunicationWebsiteFeatures.md +9 -0
- data/docs/CommunicationWebsiteGit.md +10 -0
- data/docs/CommunicationWebsiteLocalization.md +23 -0
- data/docs/CommunicationWebsitePage.md +17 -0
- data/docs/CommunicationWebsitePageApi.md +329 -0
- data/docs/CommunicationWebsitePageCategory.md +14 -0
- data/docs/CommunicationWebsitePageCategoryApi.md +329 -0
- data/docs/CommunicationWebsitePageCategoryLocalization.md +17 -0
- data/docs/CommunicationWebsitePageLocalization.md +24 -0
- data/docs/CommunicationWebsitePost.md +12 -0
- data/docs/CommunicationWebsitePostApi.md +329 -0
- data/docs/CommunicationWebsitePostLocalization.md +21 -0
- data/docs/CommunicationWebsiteShowcase.md +9 -0
- data/docs/CommunicationWebsiteShowcaseTags.md +9 -0
- data/docs/EventsIdBody.md +7 -0
- data/docs/EventsUpsertBody.md +7 -0
- data/docs/OneOfcommunicationWebsiteAgendaCategoryLocalizationBlocksItems.md +6 -0
- data/docs/OneOfcommunicationWebsiteAgendaEventLocalizationBlocksItems.md +6 -0
- data/docs/OneOfcommunicationWebsitePageCategoryLocalizationBlocksItems.md +6 -0
- data/docs/OneOfcommunicationWebsitePageLocalizationBlocksItems.md +6 -0
- data/docs/OneOfcommunicationWebsitePostLocalizationBlocksItems.md +6 -0
- data/docs/OneOfuniversityOrganizationCategoryLocalizationBlocksItems.md +6 -0
- data/docs/OneOfuniversityOrganizationLocalizationBlocksItems.md +6 -0
- data/docs/OrganizationsCategoriesBody.md +7 -0
- data/docs/OrganizationsIdBody.md +7 -0
- data/docs/OrganizationsUpsertBody.md +7 -0
- data/docs/PagesCategoriesBody.md +7 -0
- data/docs/PagesIdBody.md +7 -0
- data/docs/PagesUpsertBody.md +7 -0
- data/docs/PostsIdBody.md +7 -0
- data/docs/PostsUpsertBody.md +7 -0
- data/docs/UniversityOrganization.md +24 -0
- data/docs/UniversityOrganizationApi.md +314 -0
- data/docs/UniversityOrganizationCategory.md +14 -0
- data/docs/UniversityOrganizationCategoryApi.md +314 -0
- data/docs/UniversityOrganizationCategoryLocalization.md +16 -0
- data/docs/UniversityOrganizationLocalization.md +24 -0
- data/docs/UniversityOrganizationsBody.md +7 -0
- data/docs/WebsiteIdPagesBody.md +7 -0
- data/docs/WebsiteIdPostsBody.md +7 -0
- data/generate.sh +2 -0
- data/git_push.sh +55 -0
- data/lib/osuny_api/api/communication_website_agenda_category_api.rb +374 -0
- data/lib/osuny_api/api/communication_website_agenda_event_api.rb +374 -0
- data/lib/osuny_api/api/communication_website_api.rb +122 -0
- data/lib/osuny_api/api/communication_website_page_api.rb +374 -0
- data/lib/osuny_api/api/communication_website_page_category_api.rb +374 -0
- data/lib/osuny_api/api/communication_website_post_api.rb +374 -0
- data/lib/osuny_api/api/university_organization_api.rb +338 -0
- data/lib/osuny_api/api/university_organization_category_api.rb +338 -0
- data/lib/osuny_api/api_client.rb +388 -0
- data/lib/osuny_api/api_error.rb +57 -0
- data/lib/osuny_api/configuration.rb +205 -0
- data/lib/osuny_api/models/agenda_categories_body.rb +211 -0
- data/lib/osuny_api/models/agenda_events_body.rb +211 -0
- data/lib/osuny_api/models/categories_id_body.rb +211 -0
- data/lib/osuny_api/models/categories_id_body_1.rb +211 -0
- data/lib/osuny_api/models/categories_id_body_2.rb +211 -0
- data/lib/osuny_api/models/categories_upsert_body.rb +213 -0
- data/lib/osuny_api/models/categories_upsert_body_1.rb +213 -0
- data/lib/osuny_api/models/categories_upsert_body_2.rb +213 -0
- data/lib/osuny_api/models/communication_block_agenda.rb +312 -0
- data/lib/osuny_api/models/communication_block_agenda_data.rb +384 -0
- data/lib/osuny_api/models/communication_block_agenda_data_elements.rb +206 -0
- data/lib/osuny_api/models/communication_block_call_to_action.rb +312 -0
- data/lib/osuny_api/models/communication_block_call_to_action_data.rb +288 -0
- data/lib/osuny_api/models/communication_block_call_to_action_data_elements.rb +224 -0
- data/lib/osuny_api/models/communication_block_call_to_action_data_image.rb +227 -0
- data/lib/osuny_api/models/communication_block_categories.rb +312 -0
- data/lib/osuny_api/models/communication_block_categories_data.rb +307 -0
- data/lib/osuny_api/models/communication_block_chapter.rb +312 -0
- data/lib/osuny_api/models/communication_block_chapter_data.rb +286 -0
- data/lib/osuny_api/models/communication_block_contact.rb +312 -0
- data/lib/osuny_api/models/communication_block_contact_data.rb +393 -0
- data/lib/osuny_api/models/communication_block_contact_data_elements.rb +224 -0
- data/lib/osuny_api/models/communication_block_contact_data_time_slot_morning.rb +215 -0
- data/lib/osuny_api/models/communication_block_datatable.rb +312 -0
- data/lib/osuny_api/models/communication_block_datatable_data.rb +247 -0
- data/lib/osuny_api/models/communication_block_datatable_data_elements.rb +208 -0
- data/lib/osuny_api/models/communication_block_definitions.rb +312 -0
- data/lib/osuny_api/models/communication_block_definitions_data.rb +218 -0
- data/lib/osuny_api/models/communication_block_definitions_data_elements.rb +215 -0
- data/lib/osuny_api/models/communication_block_embed.rb +312 -0
- data/lib/osuny_api/models/communication_block_embed_data.rb +225 -0
- data/lib/osuny_api/models/communication_block_features.rb +312 -0
- data/lib/osuny_api/models/communication_block_features_data.rb +218 -0
- data/lib/osuny_api/models/communication_block_features_data_elements.rb +242 -0
- data/lib/osuny_api/models/communication_block_files.rb +312 -0
- data/lib/osuny_api/models/communication_block_files_data.rb +218 -0
- data/lib/osuny_api/models/communication_block_files_data_elements.rb +224 -0
- data/lib/osuny_api/models/communication_block_gallery.rb +312 -0
- data/lib/osuny_api/models/communication_block_gallery_data.rb +261 -0
- data/lib/osuny_api/models/communication_block_gallery_data_elements.rb +233 -0
- data/lib/osuny_api/models/communication_block_image.rb +312 -0
- data/lib/osuny_api/models/communication_block_image_data.rb +234 -0
- data/lib/osuny_api/models/communication_block_key_figures.rb +312 -0
- data/lib/osuny_api/models/communication_block_key_figures_data.rb +218 -0
- data/lib/osuny_api/models/communication_block_key_figures_data_elements.rb +233 -0
- data/lib/osuny_api/models/communication_block_license.rb +312 -0
- data/lib/osuny_api/models/communication_block_license_data.rb +334 -0
- data/lib/osuny_api/models/communication_block_links.rb +312 -0
- data/lib/osuny_api/models/communication_block_links_data.rb +218 -0
- data/lib/osuny_api/models/communication_block_links_data_elements.rb +242 -0
- data/lib/osuny_api/models/communication_block_locations.rb +312 -0
- data/lib/osuny_api/models/communication_block_locations_data.rb +270 -0
- data/lib/osuny_api/models/communication_block_locations_data_elements.rb +206 -0
- data/lib/osuny_api/models/communication_block_organizations.rb +312 -0
- data/lib/osuny_api/models/communication_block_organizations_data.rb +327 -0
- data/lib/osuny_api/models/communication_block_organizations_data_elements.rb +233 -0
- data/lib/osuny_api/models/communication_block_pages.rb +312 -0
- data/lib/osuny_api/models/communication_block_pages_data.rb +327 -0
- data/lib/osuny_api/models/communication_block_papers.rb +312 -0
- data/lib/osuny_api/models/communication_block_papers_data.rb +261 -0
- data/lib/osuny_api/models/communication_block_persons.rb +312 -0
- data/lib/osuny_api/models/communication_block_persons_data.rb +336 -0
- data/lib/osuny_api/models/communication_block_persons_data_elements.rb +215 -0
- data/lib/osuny_api/models/communication_block_posts.rb +312 -0
- data/lib/osuny_api/models/communication_block_posts_data.rb +354 -0
- data/lib/osuny_api/models/communication_block_programs.rb +312 -0
- data/lib/osuny_api/models/communication_block_programs_data.rb +279 -0
- data/lib/osuny_api/models/communication_block_projects.rb +312 -0
- data/lib/osuny_api/models/communication_block_projects_data.rb +336 -0
- data/lib/osuny_api/models/communication_block_sound.rb +312 -0
- data/lib/osuny_api/models/communication_block_sound_data.rb +225 -0
- data/lib/osuny_api/models/communication_block_testimonials.rb +312 -0
- data/lib/osuny_api/models/communication_block_testimonials_data.rb +209 -0
- data/lib/osuny_api/models/communication_block_testimonials_data_elements.rb +233 -0
- data/lib/osuny_api/models/communication_block_timeline.rb +312 -0
- data/lib/osuny_api/models/communication_block_timeline_data.rb +252 -0
- data/lib/osuny_api/models/communication_block_timeline_data_elements.rb +215 -0
- data/lib/osuny_api/models/communication_block_title.rb +312 -0
- data/lib/osuny_api/models/communication_block_title_data.rb +241 -0
- data/lib/osuny_api/models/communication_block_video.rb +312 -0
- data/lib/osuny_api/models/communication_block_video_data.rb +277 -0
- data/lib/osuny_api/models/communication_block_volumes.rb +312 -0
- data/lib/osuny_api/models/communication_website.rb +282 -0
- data/lib/osuny_api/models/communication_website_agenda_category.rb +274 -0
- data/lib/osuny_api/models/communication_website_agenda_category_localization.rb +302 -0
- data/lib/osuny_api/models/communication_website_agenda_category_localization_featured_image.rb +237 -0
- data/lib/osuny_api/models/communication_website_agenda_event.rb +315 -0
- data/lib/osuny_api/models/communication_website_agenda_event_localization.rb +380 -0
- data/lib/osuny_api/models/communication_website_agenda_event_localization_add_to_calendar_urls.rb +242 -0
- data/lib/osuny_api/models/communication_website_agenda_event_time_slot.rb +265 -0
- data/lib/osuny_api/models/communication_website_agenda_event_time_slot_localization.rb +263 -0
- data/lib/osuny_api/models/communication_website_deuxfleurs.rb +216 -0
- data/lib/osuny_api/models/communication_website_features.rb +224 -0
- data/lib/osuny_api/models/communication_website_git.rb +237 -0
- data/lib/osuny_api/models/communication_website_localization.rb +362 -0
- data/lib/osuny_api/models/communication_website_page.rb +306 -0
- data/lib/osuny_api/models/communication_website_page_category.rb +274 -0
- data/lib/osuny_api/models/communication_website_page_category_localization.rb +302 -0
- data/lib/osuny_api/models/communication_website_page_localization.rb +371 -0
- data/lib/osuny_api/models/communication_website_post.rb +255 -0
- data/lib/osuny_api/models/communication_website_post_localization.rb +341 -0
- data/lib/osuny_api/models/communication_website_showcase.rb +226 -0
- data/lib/osuny_api/models/communication_website_showcase_tags.rb +224 -0
- data/lib/osuny_api/models/events_id_body.rb +211 -0
- data/lib/osuny_api/models/events_upsert_body.rb +213 -0
- data/lib/osuny_api/models/one_ofcommunication_website_agenda_category_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/one_ofcommunication_website_agenda_event_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/one_ofcommunication_website_page_category_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/one_ofcommunication_website_page_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/one_ofcommunication_website_post_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/one_ofuniversity_organization_category_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/one_ofuniversity_organization_localization_blocks_items.rb +197 -0
- data/lib/osuny_api/models/organizations_categories_body.rb +211 -0
- data/lib/osuny_api/models/organizations_id_body.rb +211 -0
- data/lib/osuny_api/models/organizations_upsert_body.rb +213 -0
- data/lib/osuny_api/models/pages_categories_body.rb +211 -0
- data/lib/osuny_api/models/pages_id_body.rb +211 -0
- data/lib/osuny_api/models/pages_upsert_body.rb +213 -0
- data/lib/osuny_api/models/posts_id_body.rb +211 -0
- data/lib/osuny_api/models/posts_upsert_body.rb +213 -0
- data/lib/osuny_api/models/university_organization.rb +409 -0
- data/lib/osuny_api/models/university_organization_category.rb +274 -0
- data/lib/osuny_api/models/university_organization_category_localization.rb +292 -0
- data/lib/osuny_api/models/university_organization_localization.rb +373 -0
- data/lib/osuny_api/models/university_organizations_body.rb +211 -0
- data/lib/osuny_api/models/website_id_pages_body.rb +211 -0
- data/lib/osuny_api/models/website_id_posts_body.rb +211 -0
- data/lib/osuny_api/version.rb +11 -2
- data/lib/osuny_api.rb +165 -11
- data/osuny_api.gemspec +37 -30
- data/pkg/osuny_api-0.2.6.gem +0 -0
- data/pkg/osuny_api-1.0.0.gem +0 -0
- data/spec/api/communication_website_agenda_category_api_spec.rb +106 -0
- data/spec/api/communication_website_agenda_event_api_spec.rb +106 -0
- data/spec/api/communication_website_api_spec.rb +55 -0
- data/spec/api/communication_website_page_api_spec.rb +106 -0
- data/spec/api/communication_website_page_category_api_spec.rb +106 -0
- data/spec/api/communication_website_post_api_spec.rb +106 -0
- data/spec/api/university_organization_api_spec.rb +100 -0
- data/spec/api/university_organization_category_api_spec.rb +100 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/agenda_categories_body_spec.rb +40 -0
- data/spec/models/agenda_events_body_spec.rb +40 -0
- data/spec/models/categories_id_body_1_spec.rb +40 -0
- data/spec/models/categories_id_body_2_spec.rb +40 -0
- data/spec/models/categories_id_body_spec.rb +40 -0
- data/spec/models/categories_upsert_body_1_spec.rb +40 -0
- data/spec/models/categories_upsert_body_2_spec.rb +40 -0
- data/spec/models/categories_upsert_body_spec.rb +40 -0
- data/spec/models/communication_block_agenda_data_elements_spec.rb +40 -0
- data/spec/models/communication_block_agenda_data_spec.rb +130 -0
- data/spec/models/communication_block_agenda_spec.rb +86 -0
- data/spec/models/communication_block_call_to_action_data_elements_spec.rb +52 -0
- data/spec/models/communication_block_call_to_action_data_image_spec.rb +52 -0
- data/spec/models/communication_block_call_to_action_data_spec.rb +74 -0
- data/spec/models/communication_block_call_to_action_spec.rb +86 -0
- data/spec/models/communication_block_categories_data_spec.rb +84 -0
- data/spec/models/communication_block_categories_spec.rb +86 -0
- data/spec/models/communication_block_chapter_data_spec.rb +74 -0
- data/spec/models/communication_block_chapter_spec.rb +86 -0
- data/spec/models/communication_block_contact_data_elements_spec.rb +52 -0
- data/spec/models/communication_block_contact_data_spec.rb +160 -0
- data/spec/models/communication_block_contact_data_time_slot_morning_spec.rb +46 -0
- data/spec/models/communication_block_contact_spec.rb +86 -0
- data/spec/models/communication_block_datatable_data_elements_spec.rb +40 -0
- data/spec/models/communication_block_datatable_data_spec.rb +64 -0
- data/spec/models/communication_block_datatable_spec.rb +86 -0
- data/spec/models/communication_block_definitions_data_elements_spec.rb +46 -0
- data/spec/models/communication_block_definitions_data_spec.rb +46 -0
- data/spec/models/communication_block_definitions_spec.rb +86 -0
- data/spec/models/communication_block_embed_data_spec.rb +52 -0
- data/spec/models/communication_block_embed_spec.rb +86 -0
- data/spec/models/communication_block_features_data_elements_spec.rb +64 -0
- data/spec/models/communication_block_features_data_spec.rb +46 -0
- data/spec/models/communication_block_features_spec.rb +86 -0
- data/spec/models/communication_block_files_data_elements_spec.rb +52 -0
- data/spec/models/communication_block_files_data_spec.rb +46 -0
- data/spec/models/communication_block_files_spec.rb +86 -0
- data/spec/models/communication_block_gallery_data_elements_spec.rb +58 -0
- data/spec/models/communication_block_gallery_data_spec.rb +56 -0
- data/spec/models/communication_block_gallery_spec.rb +86 -0
- data/spec/models/communication_block_image_data_spec.rb +58 -0
- data/spec/models/communication_block_image_spec.rb +86 -0
- data/spec/models/communication_block_key_figures_data_elements_spec.rb +58 -0
- data/spec/models/communication_block_key_figures_data_spec.rb +46 -0
- data/spec/models/communication_block_key_figures_spec.rb +86 -0
- data/spec/models/communication_block_license_data_spec.rb +90 -0
- data/spec/models/communication_block_license_spec.rb +86 -0
- data/spec/models/communication_block_links_data_elements_spec.rb +64 -0
- data/spec/models/communication_block_links_data_spec.rb +46 -0
- data/spec/models/communication_block_links_spec.rb +86 -0
- data/spec/models/communication_block_locations_data_elements_spec.rb +40 -0
- data/spec/models/communication_block_locations_data_spec.rb +62 -0
- data/spec/models/communication_block_locations_spec.rb +86 -0
- data/spec/models/communication_block_organizations_data_elements_spec.rb +58 -0
- data/spec/models/communication_block_organizations_data_spec.rb +96 -0
- data/spec/models/communication_block_organizations_spec.rb +86 -0
- data/spec/models/communication_block_pages_data_spec.rb +96 -0
- data/spec/models/communication_block_pages_spec.rb +86 -0
- data/spec/models/communication_block_papers_data_spec.rb +56 -0
- data/spec/models/communication_block_papers_spec.rb +86 -0
- data/spec/models/communication_block_persons_data_elements_spec.rb +46 -0
- data/spec/models/communication_block_persons_data_spec.rb +102 -0
- data/spec/models/communication_block_persons_spec.rb +86 -0
- data/spec/models/communication_block_posts_data_spec.rb +114 -0
- data/spec/models/communication_block_posts_spec.rb +86 -0
- data/spec/models/communication_block_programs_data_spec.rb +68 -0
- data/spec/models/communication_block_programs_spec.rb +86 -0
- data/spec/models/communication_block_projects_data_spec.rb +102 -0
- data/spec/models/communication_block_projects_spec.rb +86 -0
- data/spec/models/communication_block_sound_data_spec.rb +52 -0
- data/spec/models/communication_block_sound_spec.rb +86 -0
- data/spec/models/communication_block_testimonials_data_elements_spec.rb +58 -0
- data/spec/models/communication_block_testimonials_data_spec.rb +40 -0
- data/spec/models/communication_block_testimonials_spec.rb +86 -0
- data/spec/models/communication_block_timeline_data_elements_spec.rb +46 -0
- data/spec/models/communication_block_timeline_data_spec.rb +50 -0
- data/spec/models/communication_block_timeline_spec.rb +86 -0
- data/spec/models/communication_block_title_data_spec.rb +44 -0
- data/spec/models/communication_block_title_spec.rb +86 -0
- data/spec/models/communication_block_video_data_spec.rb +68 -0
- data/spec/models/communication_block_video_spec.rb +86 -0
- data/spec/models/communication_block_volumes_spec.rb +86 -0
- data/spec/models/communication_website_agenda_category_localization_featured_image_spec.rb +58 -0
- data/spec/models/communication_website_agenda_category_localization_spec.rb +100 -0
- data/spec/models/communication_website_agenda_category_spec.rb +82 -0
- data/spec/models/communication_website_agenda_event_localization_add_to_calendar_urls_spec.rb +64 -0
- data/spec/models/communication_website_agenda_event_localization_spec.rb +148 -0
- data/spec/models/communication_website_agenda_event_spec.rb +106 -0
- data/spec/models/communication_website_agenda_event_time_slot_localization_spec.rb +76 -0
- data/spec/models/communication_website_agenda_event_time_slot_spec.rb +76 -0
- data/spec/models/communication_website_deuxfleurs_spec.rb +46 -0
- data/spec/models/communication_website_features_spec.rb +52 -0
- data/spec/models/communication_website_git_spec.rb +58 -0
- data/spec/models/communication_website_localization_spec.rb +136 -0
- data/spec/models/communication_website_page_category_localization_spec.rb +100 -0
- data/spec/models/communication_website_page_category_spec.rb +82 -0
- data/spec/models/communication_website_page_localization_spec.rb +142 -0
- data/spec/models/communication_website_page_spec.rb +100 -0
- data/spec/models/communication_website_post_localization_spec.rb +124 -0
- data/spec/models/communication_website_post_spec.rb +70 -0
- data/spec/models/communication_website_showcase_spec.rb +52 -0
- data/spec/models/communication_website_showcase_tags_spec.rb +52 -0
- data/spec/models/communication_website_spec.rb +88 -0
- data/spec/models/events_id_body_spec.rb +40 -0
- data/spec/models/events_upsert_body_spec.rb +40 -0
- data/spec/models/one_ofcommunication_website_agenda_category_localization_blocks_items_spec.rb +34 -0
- data/spec/models/one_ofcommunication_website_agenda_event_localization_blocks_items_spec.rb +34 -0
- data/spec/models/one_ofcommunication_website_page_category_localization_blocks_items_spec.rb +34 -0
- data/spec/models/one_ofcommunication_website_page_localization_blocks_items_spec.rb +34 -0
- data/spec/models/one_ofcommunication_website_post_localization_blocks_items_spec.rb +34 -0
- data/spec/models/one_ofuniversity_organization_category_localization_blocks_items_spec.rb +34 -0
- data/spec/models/one_ofuniversity_organization_localization_blocks_items_spec.rb +34 -0
- data/spec/models/organizations_categories_body_spec.rb +40 -0
- data/spec/models/organizations_id_body_spec.rb +40 -0
- data/spec/models/organizations_upsert_body_spec.rb +40 -0
- data/spec/models/pages_categories_body_spec.rb +40 -0
- data/spec/models/pages_id_body_spec.rb +40 -0
- data/spec/models/pages_upsert_body_spec.rb +40 -0
- data/spec/models/posts_id_body_spec.rb +40 -0
- data/spec/models/posts_upsert_body_spec.rb +40 -0
- data/spec/models/university_organization_category_localization_spec.rb +94 -0
- data/spec/models/university_organization_category_spec.rb +82 -0
- data/spec/models/university_organization_localization_spec.rb +142 -0
- data/spec/models/university_organization_spec.rb +146 -0
- data/spec/models/university_organizations_body_spec.rb +40 -0
- data/spec/models/website_id_pages_body_spec.rb +40 -0
- data/spec/models/website_id_posts_body_spec.rb +40 -0
- data/spec/spec_helper.rb +110 -0
- metadata +614 -24
- data/lib/osuny_api/client.rb +0 -41
- data/lib/osuny_api/communication/website/page.rb +0 -12
- data/lib/osuny_api/communication/website/post.rb +0 -12
- data/lib/osuny_api/communication/website.rb +0 -18
- data/lib/osuny_api/communication.rb +0 -13
- data/lib/osuny_api/error.rb +0 -4
- data/lib/osuny_api/resource.rb +0 -20
data/generate.sh
ADDED
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
@@ -0,0 +1,374 @@
|
|
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.68
|
10
|
+
=end
|
11
|
+
|
12
|
+
module OsunyApi
|
13
|
+
class CommunicationWebsiteAgendaCategoryApi
|
14
|
+
attr_accessor :api_client
|
15
|
+
|
16
|
+
def initialize(api_client = ApiClient.default)
|
17
|
+
@api_client = api_client
|
18
|
+
end
|
19
|
+
# Lists a website's agenda categories
|
20
|
+
# @param website_id Website identifier
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [Array<CommunicationWebsiteAgendaCategory>]
|
23
|
+
def communication_websites_website_id_agenda_categories_get(website_id, opts = {})
|
24
|
+
data, _status_code, _headers = communication_websites_website_id_agenda_categories_get_with_http_info(website_id, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# Lists a website's agenda categories
|
29
|
+
# @param website_id Website identifier
|
30
|
+
# @param [Hash] opts the optional parameters
|
31
|
+
# @return [Array<(Array<CommunicationWebsiteAgendaCategory>, Integer, Hash)>] Array<CommunicationWebsiteAgendaCategory> data, response status code and response headers
|
32
|
+
def communication_websites_website_id_agenda_categories_get_with_http_info(website_id, opts = {})
|
33
|
+
if @api_client.config.debugging
|
34
|
+
@api_client.config.logger.debug 'Calling API: CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_get ...'
|
35
|
+
end
|
36
|
+
# verify the required parameter 'website_id' is set
|
37
|
+
if @api_client.config.client_side_validation && website_id.nil?
|
38
|
+
fail ArgumentError, "Missing the required parameter 'website_id' when calling CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_get"
|
39
|
+
end
|
40
|
+
# resource path
|
41
|
+
local_var_path = '/communication/websites/{website_id}/agenda/categories'.sub('{' + 'website_id' + '}', website_id.to_s)
|
42
|
+
|
43
|
+
# query parameters
|
44
|
+
query_params = opts[:query_params] || {}
|
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<CommunicationWebsiteAgendaCategory>'
|
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: CommunicationWebsiteAgendaCategoryApi#communication_websites_website_id_agenda_categories_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
70
|
+
end
|
71
|
+
return data, status_code, headers
|
72
|
+
end
|
73
|
+
# Deletes an agenda category
|
74
|
+
# @param website_id Website identifier
|
75
|
+
# @param id Category identifier
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [nil]
|
78
|
+
def communication_websites_website_id_agenda_categories_id_delete(website_id, id, opts = {})
|
79
|
+
communication_websites_website_id_agenda_categories_id_delete_with_http_info(website_id, id, opts)
|
80
|
+
nil
|
81
|
+
end
|
82
|
+
|
83
|
+
# Deletes an agenda category
|
84
|
+
# @param website_id Website identifier
|
85
|
+
# @param id Category identifier
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
88
|
+
def communication_websites_website_id_agenda_categories_id_delete_with_http_info(website_id, id, opts = {})
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug 'Calling API: CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_id_delete ...'
|
91
|
+
end
|
92
|
+
# verify the required parameter 'website_id' is set
|
93
|
+
if @api_client.config.client_side_validation && website_id.nil?
|
94
|
+
fail ArgumentError, "Missing the required parameter 'website_id' when calling CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_id_delete"
|
95
|
+
end
|
96
|
+
# verify the required parameter 'id' is set
|
97
|
+
if @api_client.config.client_side_validation && id.nil?
|
98
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_id_delete"
|
99
|
+
end
|
100
|
+
# resource path
|
101
|
+
local_var_path = '/communication/websites/{website_id}/agenda/categories/{id}'.sub('{' + 'website_id' + '}', website_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
102
|
+
|
103
|
+
# query parameters
|
104
|
+
query_params = opts[:query_params] || {}
|
105
|
+
|
106
|
+
# header parameters
|
107
|
+
header_params = opts[:header_params] || {}
|
108
|
+
# HTTP header 'Accept' (if needed)
|
109
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
110
|
+
|
111
|
+
# form parameters
|
112
|
+
form_params = opts[:form_params] || {}
|
113
|
+
|
114
|
+
# http body (model)
|
115
|
+
post_body = opts[:body]
|
116
|
+
|
117
|
+
return_type = opts[:return_type]
|
118
|
+
|
119
|
+
auth_names = opts[:auth_names] || ['api_key']
|
120
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
121
|
+
:header_params => header_params,
|
122
|
+
:query_params => query_params,
|
123
|
+
:form_params => form_params,
|
124
|
+
:body => post_body,
|
125
|
+
:auth_names => auth_names,
|
126
|
+
:return_type => return_type)
|
127
|
+
|
128
|
+
if @api_client.config.debugging
|
129
|
+
@api_client.config.logger.debug "API called: CommunicationWebsiteAgendaCategoryApi#communication_websites_website_id_agenda_categories_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
130
|
+
end
|
131
|
+
return data, status_code, headers
|
132
|
+
end
|
133
|
+
# Shows an agenda category
|
134
|
+
# @param website_id Website identifier
|
135
|
+
# @param id Category identifier
|
136
|
+
# @param [Hash] opts the optional parameters
|
137
|
+
# @return [nil]
|
138
|
+
def communication_websites_website_id_agenda_categories_id_get(website_id, id, opts = {})
|
139
|
+
communication_websites_website_id_agenda_categories_id_get_with_http_info(website_id, id, opts)
|
140
|
+
nil
|
141
|
+
end
|
142
|
+
|
143
|
+
# Shows an agenda category
|
144
|
+
# @param website_id Website identifier
|
145
|
+
# @param id Category identifier
|
146
|
+
# @param [Hash] opts the optional parameters
|
147
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
148
|
+
def communication_websites_website_id_agenda_categories_id_get_with_http_info(website_id, id, opts = {})
|
149
|
+
if @api_client.config.debugging
|
150
|
+
@api_client.config.logger.debug 'Calling API: CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_id_get ...'
|
151
|
+
end
|
152
|
+
# verify the required parameter 'website_id' is set
|
153
|
+
if @api_client.config.client_side_validation && website_id.nil?
|
154
|
+
fail ArgumentError, "Missing the required parameter 'website_id' when calling CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_id_get"
|
155
|
+
end
|
156
|
+
# verify the required parameter 'id' is set
|
157
|
+
if @api_client.config.client_side_validation && id.nil?
|
158
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_id_get"
|
159
|
+
end
|
160
|
+
# resource path
|
161
|
+
local_var_path = '/communication/websites/{website_id}/agenda/categories/{id}'.sub('{' + 'website_id' + '}', website_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
162
|
+
|
163
|
+
# query parameters
|
164
|
+
query_params = opts[:query_params] || {}
|
165
|
+
|
166
|
+
# header parameters
|
167
|
+
header_params = opts[:header_params] || {}
|
168
|
+
# HTTP header 'Accept' (if needed)
|
169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
170
|
+
|
171
|
+
# form parameters
|
172
|
+
form_params = opts[:form_params] || {}
|
173
|
+
|
174
|
+
# http body (model)
|
175
|
+
post_body = opts[:body]
|
176
|
+
|
177
|
+
return_type = opts[:return_type]
|
178
|
+
|
179
|
+
auth_names = opts[:auth_names] || ['api_key']
|
180
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
181
|
+
:header_params => header_params,
|
182
|
+
:query_params => query_params,
|
183
|
+
:form_params => form_params,
|
184
|
+
:body => post_body,
|
185
|
+
:auth_names => auth_names,
|
186
|
+
:return_type => return_type)
|
187
|
+
|
188
|
+
if @api_client.config.debugging
|
189
|
+
@api_client.config.logger.debug "API called: CommunicationWebsiteAgendaCategoryApi#communication_websites_website_id_agenda_categories_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
190
|
+
end
|
191
|
+
return data, status_code, headers
|
192
|
+
end
|
193
|
+
# Updates an agenda category
|
194
|
+
# @param website_id Website identifier
|
195
|
+
# @param id Category identifier
|
196
|
+
# @param [Hash] opts the optional parameters
|
197
|
+
# @option opts [CategoriesIdBody] :body
|
198
|
+
# @return [nil]
|
199
|
+
def communication_websites_website_id_agenda_categories_id_patch(website_id, id, opts = {})
|
200
|
+
communication_websites_website_id_agenda_categories_id_patch_with_http_info(website_id, id, opts)
|
201
|
+
nil
|
202
|
+
end
|
203
|
+
|
204
|
+
# Updates an agenda category
|
205
|
+
# @param website_id Website identifier
|
206
|
+
# @param id Category identifier
|
207
|
+
# @param [Hash] opts the optional parameters
|
208
|
+
# @option opts [CategoriesIdBody] :body
|
209
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
210
|
+
def communication_websites_website_id_agenda_categories_id_patch_with_http_info(website_id, id, opts = {})
|
211
|
+
if @api_client.config.debugging
|
212
|
+
@api_client.config.logger.debug 'Calling API: CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_id_patch ...'
|
213
|
+
end
|
214
|
+
# verify the required parameter 'website_id' is set
|
215
|
+
if @api_client.config.client_side_validation && website_id.nil?
|
216
|
+
fail ArgumentError, "Missing the required parameter 'website_id' when calling CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_id_patch"
|
217
|
+
end
|
218
|
+
# verify the required parameter 'id' is set
|
219
|
+
if @api_client.config.client_side_validation && id.nil?
|
220
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_id_patch"
|
221
|
+
end
|
222
|
+
# resource path
|
223
|
+
local_var_path = '/communication/websites/{website_id}/agenda/categories/{id}'.sub('{' + 'website_id' + '}', website_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
224
|
+
|
225
|
+
# query parameters
|
226
|
+
query_params = opts[:query_params] || {}
|
227
|
+
|
228
|
+
# header parameters
|
229
|
+
header_params = opts[:header_params] || {}
|
230
|
+
# HTTP header 'Accept' (if needed)
|
231
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
232
|
+
# HTTP header 'Content-Type'
|
233
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
234
|
+
|
235
|
+
# form parameters
|
236
|
+
form_params = opts[:form_params] || {}
|
237
|
+
|
238
|
+
# http body (model)
|
239
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
|
240
|
+
|
241
|
+
return_type = opts[:return_type]
|
242
|
+
|
243
|
+
auth_names = opts[:auth_names] || ['api_key']
|
244
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
245
|
+
:header_params => header_params,
|
246
|
+
:query_params => query_params,
|
247
|
+
:form_params => form_params,
|
248
|
+
:body => post_body,
|
249
|
+
:auth_names => auth_names,
|
250
|
+
:return_type => return_type)
|
251
|
+
|
252
|
+
if @api_client.config.debugging
|
253
|
+
@api_client.config.logger.debug "API called: CommunicationWebsiteAgendaCategoryApi#communication_websites_website_id_agenda_categories_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
254
|
+
end
|
255
|
+
return data, status_code, headers
|
256
|
+
end
|
257
|
+
# Creates an agenda category
|
258
|
+
# @param website_id Website identifier
|
259
|
+
# @param [Hash] opts the optional parameters
|
260
|
+
# @option opts [AgendaCategoriesBody] :body
|
261
|
+
# @return [nil]
|
262
|
+
def communication_websites_website_id_agenda_categories_post(website_id, opts = {})
|
263
|
+
communication_websites_website_id_agenda_categories_post_with_http_info(website_id, opts)
|
264
|
+
nil
|
265
|
+
end
|
266
|
+
|
267
|
+
# Creates an agenda category
|
268
|
+
# @param website_id Website identifier
|
269
|
+
# @param [Hash] opts the optional parameters
|
270
|
+
# @option opts [AgendaCategoriesBody] :body
|
271
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
272
|
+
def communication_websites_website_id_agenda_categories_post_with_http_info(website_id, opts = {})
|
273
|
+
if @api_client.config.debugging
|
274
|
+
@api_client.config.logger.debug 'Calling API: CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_post ...'
|
275
|
+
end
|
276
|
+
# verify the required parameter 'website_id' is set
|
277
|
+
if @api_client.config.client_side_validation && website_id.nil?
|
278
|
+
fail ArgumentError, "Missing the required parameter 'website_id' when calling CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_post"
|
279
|
+
end
|
280
|
+
# resource path
|
281
|
+
local_var_path = '/communication/websites/{website_id}/agenda/categories'.sub('{' + 'website_id' + '}', website_id.to_s)
|
282
|
+
|
283
|
+
# query parameters
|
284
|
+
query_params = opts[:query_params] || {}
|
285
|
+
|
286
|
+
# header parameters
|
287
|
+
header_params = opts[:header_params] || {}
|
288
|
+
# HTTP header 'Accept' (if needed)
|
289
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
290
|
+
# HTTP header 'Content-Type'
|
291
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
292
|
+
|
293
|
+
# form parameters
|
294
|
+
form_params = opts[:form_params] || {}
|
295
|
+
|
296
|
+
# http body (model)
|
297
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
|
298
|
+
|
299
|
+
return_type = opts[:return_type]
|
300
|
+
|
301
|
+
auth_names = opts[:auth_names] || ['api_key']
|
302
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
303
|
+
:header_params => header_params,
|
304
|
+
:query_params => query_params,
|
305
|
+
:form_params => form_params,
|
306
|
+
:body => post_body,
|
307
|
+
:auth_names => auth_names,
|
308
|
+
:return_type => return_type)
|
309
|
+
|
310
|
+
if @api_client.config.debugging
|
311
|
+
@api_client.config.logger.debug "API called: CommunicationWebsiteAgendaCategoryApi#communication_websites_website_id_agenda_categories_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
312
|
+
end
|
313
|
+
return data, status_code, headers
|
314
|
+
end
|
315
|
+
# Upsert agenda categories
|
316
|
+
# @param website_id Website identifier
|
317
|
+
# @param [Hash] opts the optional parameters
|
318
|
+
# @option opts [CategoriesUpsertBody] :body
|
319
|
+
# @return [nil]
|
320
|
+
def communication_websites_website_id_agenda_categories_upsert_post(website_id, opts = {})
|
321
|
+
communication_websites_website_id_agenda_categories_upsert_post_with_http_info(website_id, opts)
|
322
|
+
nil
|
323
|
+
end
|
324
|
+
|
325
|
+
# Upsert agenda categories
|
326
|
+
# @param website_id Website identifier
|
327
|
+
# @param [Hash] opts the optional parameters
|
328
|
+
# @option opts [CategoriesUpsertBody] :body
|
329
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
330
|
+
def communication_websites_website_id_agenda_categories_upsert_post_with_http_info(website_id, opts = {})
|
331
|
+
if @api_client.config.debugging
|
332
|
+
@api_client.config.logger.debug 'Calling API: CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_upsert_post ...'
|
333
|
+
end
|
334
|
+
# verify the required parameter 'website_id' is set
|
335
|
+
if @api_client.config.client_side_validation && website_id.nil?
|
336
|
+
fail ArgumentError, "Missing the required parameter 'website_id' when calling CommunicationWebsiteAgendaCategoryApi.communication_websites_website_id_agenda_categories_upsert_post"
|
337
|
+
end
|
338
|
+
# resource path
|
339
|
+
local_var_path = '/communication/websites/{website_id}/agenda/categories/upsert'.sub('{' + 'website_id' + '}', website_id.to_s)
|
340
|
+
|
341
|
+
# query parameters
|
342
|
+
query_params = opts[:query_params] || {}
|
343
|
+
|
344
|
+
# header parameters
|
345
|
+
header_params = opts[:header_params] || {}
|
346
|
+
# HTTP header 'Accept' (if needed)
|
347
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
348
|
+
# HTTP header 'Content-Type'
|
349
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
350
|
+
|
351
|
+
# form parameters
|
352
|
+
form_params = opts[:form_params] || {}
|
353
|
+
|
354
|
+
# http body (model)
|
355
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
|
356
|
+
|
357
|
+
return_type = opts[:return_type]
|
358
|
+
|
359
|
+
auth_names = opts[:auth_names] || ['api_key']
|
360
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
361
|
+
:header_params => header_params,
|
362
|
+
:query_params => query_params,
|
363
|
+
:form_params => form_params,
|
364
|
+
:body => post_body,
|
365
|
+
:auth_names => auth_names,
|
366
|
+
:return_type => return_type)
|
367
|
+
|
368
|
+
if @api_client.config.debugging
|
369
|
+
@api_client.config.logger.debug "API called: CommunicationWebsiteAgendaCategoryApi#communication_websites_website_id_agenda_categories_upsert_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
370
|
+
end
|
371
|
+
return data, status_code, headers
|
372
|
+
end
|
373
|
+
end
|
374
|
+
end
|