radiomanager_client 1.0.1
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 +7 -0
- data/Gemfile +7 -0
- data/README.md +297 -0
- data/Rakefile +8 -0
- data/docs/Block.md +15 -0
- data/docs/BlockApi.md +233 -0
- data/docs/BlockRelations.md +10 -0
- data/docs/BlockRelationsBroadcast.md +11 -0
- data/docs/BlockRelationsBroadcastParams.md +8 -0
- data/docs/BlockRelationsItems.md +11 -0
- data/docs/BlockRelationsItemsParams.md +8 -0
- data/docs/BlockRelationsProgram.md +11 -0
- data/docs/BlockResult.md +18 -0
- data/docs/BlockResults.md +17 -0
- data/docs/Broadcast.md +29 -0
- data/docs/BroadcastApi.md +641 -0
- data/docs/BroadcastDataInput.md +31 -0
- data/docs/BroadcastFieldValues.md +8 -0
- data/docs/BroadcastInputOnly.md +9 -0
- data/docs/BroadcastOutputOnly.md +12 -0
- data/docs/BroadcastRelations.md +13 -0
- data/docs/BroadcastRelationsBlocks.md +11 -0
- data/docs/BroadcastRelationsItems.md +11 -0
- data/docs/BroadcastRelationsItemsParams.md +8 -0
- data/docs/BroadcastRelationsModelType.md +11 -0
- data/docs/BroadcastRelationsPresenters.md +11 -0
- data/docs/BroadcastRelationsTags.md +11 -0
- data/docs/BroadcastResult.md +40 -0
- data/docs/BroadcastResults.md +17 -0
- data/docs/Campaign.md +14 -0
- data/docs/CampaignApi.md +302 -0
- data/docs/CampaignDataInput.md +14 -0
- data/docs/CampaignOutputOnly.md +13 -0
- data/docs/CampaignRelations.md +9 -0
- data/docs/CampaignRelationsItems.md +11 -0
- data/docs/CampaignRelationsItemsParams.md +8 -0
- data/docs/CampaignResult.md +22 -0
- data/docs/CampaignResults.md +17 -0
- data/docs/Contact.md +13 -0
- data/docs/ContactApi.md +300 -0
- data/docs/ContactDataInput.md +13 -0
- data/docs/ContactFieldValues.md +8 -0
- data/docs/ContactOutputOnly.md +12 -0
- data/docs/ContactRelations.md +10 -0
- data/docs/ContactRelationsItems.md +11 -0
- data/docs/ContactRelationsTags.md +11 -0
- data/docs/ContactRelationsTagsParams.md +8 -0
- data/docs/ContactResult.md +21 -0
- data/docs/ContactResults.md +17 -0
- data/docs/Data.md +9 -0
- data/docs/Data1.md +9 -0
- data/docs/EPGBroadcast.md +10 -0
- data/docs/ExternalMessageApi.md +63 -0
- data/docs/ExternalMessageQueueData.md +14 -0
- data/docs/Forbidden.md +9 -0
- data/docs/Genre.md +11 -0
- data/docs/GenreApi.md +131 -0
- data/docs/GenreOutputOnly.md +8 -0
- data/docs/GenreRelations.md +9 -0
- data/docs/GenreRelationsBroadcasts.md +11 -0
- data/docs/GenreRelationsBroadcastsParams.md +8 -0
- data/docs/GenreRelationsPrograms.md +11 -0
- data/docs/GenreResult.md +14 -0
- data/docs/GenreResults.md +17 -0
- data/docs/ImportItem.md +18 -0
- data/docs/ImportItemFieldValues.md +8 -0
- data/docs/InlineResponse202.md +8 -0
- data/docs/InternalServerError.md +9 -0
- data/docs/InviteUserData.md +9 -0
- data/docs/InviteUserSuccess.md +8 -0
- data/docs/Item.md +23 -0
- data/docs/ItemApi.md +553 -0
- data/docs/ItemDataInput.md +26 -0
- data/docs/ItemInputOnly.md +10 -0
- data/docs/ItemOutputOnly.md +16 -0
- data/docs/ItemRelations.md +14 -0
- data/docs/ItemRelationsBlock.md +11 -0
- data/docs/ItemRelationsCampaign.md +11 -0
- data/docs/ItemRelationsContacts.md +11 -0
- data/docs/ItemRelationsContactsParams.md +8 -0
- data/docs/ItemRelationsProgram.md +11 -0
- data/docs/ItemRelationsTags.md +11 -0
- data/docs/ItemResult.md +39 -0
- data/docs/ItemResults.md +16 -0
- data/docs/ModelType.md +15 -0
- data/docs/ModelTypeApi.md +139 -0
- data/docs/ModelTypeOptions.md +8 -0
- data/docs/ModelTypeOutputOnly.md +8 -0
- data/docs/ModelTypeRelations.md +13 -0
- data/docs/ModelTypeRelationsBroadcasts.md +11 -0
- data/docs/ModelTypeRelationsCampaigns.md +11 -0
- data/docs/ModelTypeRelationsCampaignsParams.md +8 -0
- data/docs/ModelTypeRelationsContacts.md +11 -0
- data/docs/ModelTypeRelationsItems.md +11 -0
- data/docs/ModelTypeRelationsPresenters.md +11 -0
- data/docs/ModelTypeRelationsPrograms.md +11 -0
- data/docs/ModelTypeResult.md +22 -0
- data/docs/ModelTypeResults.md +17 -0
- data/docs/NotFound.md +9 -0
- data/docs/PostSuccess.md +9 -0
- data/docs/Presenter.md +13 -0
- data/docs/PresenterApi.md +300 -0
- data/docs/PresenterDataInput.md +13 -0
- data/docs/PresenterOutputOnly.md +12 -0
- data/docs/PresenterRelations.md +10 -0
- data/docs/PresenterRelationsBroadcasts.md +11 -0
- data/docs/PresenterRelationsPrograms.md +11 -0
- data/docs/PresenterRelationsProgramsParams.md +8 -0
- data/docs/PresenterResult.md +21 -0
- data/docs/PresenterResults.md +17 -0
- data/docs/Program.md +20 -0
- data/docs/ProgramApi.md +308 -0
- data/docs/ProgramDataInput.md +22 -0
- data/docs/ProgramFieldValues.md +8 -0
- data/docs/ProgramInputOnly.md +9 -0
- data/docs/ProgramOutputOnly.md +12 -0
- data/docs/ProgramRelations.md +13 -0
- data/docs/ProgramRelationsBlocks.md +11 -0
- data/docs/ProgramRelationsBroadcasts.md +11 -0
- data/docs/ProgramRelationsItems.md +11 -0
- data/docs/ProgramRelationsItemsParams.md +8 -0
- data/docs/ProgramRelationsPresenters.md +11 -0
- data/docs/ProgramRelationsTags.md +11 -0
- data/docs/ProgramResult.md +31 -0
- data/docs/ProgramResults.md +17 -0
- data/docs/ReadOnly.md +9 -0
- data/docs/RelationsPlaceholder.md +11 -0
- data/docs/StringApi.md +66 -0
- data/docs/Success.md +8 -0
- data/docs/Tag.md +8 -0
- data/docs/TagApi.md +302 -0
- data/docs/TagDataInput.md +8 -0
- data/docs/TagOutputOnly.md +12 -0
- data/docs/TagRelations.md +11 -0
- data/docs/TagRelationsBroadcasts.md +11 -0
- data/docs/TagRelationsBroadcastsParams.md +8 -0
- data/docs/TagRelationsContacts.md +11 -0
- data/docs/TagRelationsItems.md +11 -0
- data/docs/TagRelationsPrograms.md +11 -0
- data/docs/TagResult.md +17 -0
- data/docs/TagResults.md +16 -0
- data/docs/TextString.md +12 -0
- data/docs/TooManyRequests.md +8 -0
- data/docs/UnprocessableEntity.md +8 -0
- data/docs/UserApi.md +231 -0
- data/docs/UserResult.md +19 -0
- data/docs/UserResultSettings.md +13 -0
- data/docs/UserResults.md +17 -0
- data/docs/VisualResult.md +8 -0
- data/docs/VisualSlideApi.md +106 -0
- data/git_push.sh +55 -0
- data/lib/radiomanager_client.rb +185 -0
- data/lib/radiomanager_client/api/block_api.rb +257 -0
- data/lib/radiomanager_client/api/broadcast_api.rb +668 -0
- data/lib/radiomanager_client/api/campaign_api.rb +331 -0
- data/lib/radiomanager_client/api/contact_api.rb +328 -0
- data/lib/radiomanager_client/api/external_message_api.rb +78 -0
- data/lib/radiomanager_client/api/genre_api.rb +153 -0
- data/lib/radiomanager_client/api/item_api.rb +576 -0
- data/lib/radiomanager_client/api/model_type_api.rb +168 -0
- data/lib/radiomanager_client/api/presenter_api.rb +328 -0
- data/lib/radiomanager_client/api/program_api.rb +340 -0
- data/lib/radiomanager_client/api/string_api.rb +85 -0
- data/lib/radiomanager_client/api/tag_api.rb +331 -0
- data/lib/radiomanager_client/api/user_api.rb +255 -0
- data/lib/radiomanager_client/api/visual_slide_api.rb +121 -0
- data/lib/radiomanager_client/api_client.rb +389 -0
- data/lib/radiomanager_client/api_error.rb +38 -0
- data/lib/radiomanager_client/configuration.rb +209 -0
- data/lib/radiomanager_client/models/block.rb +293 -0
- data/lib/radiomanager_client/models/block_relations.rb +206 -0
- data/lib/radiomanager_client/models/block_relations_broadcast.rb +215 -0
- data/lib/radiomanager_client/models/block_relations_broadcast_params.rb +188 -0
- data/lib/radiomanager_client/models/block_relations_items.rb +215 -0
- data/lib/radiomanager_client/models/block_relations_items_params.rb +188 -0
- data/lib/radiomanager_client/models/block_relations_program.rb +215 -0
- data/lib/radiomanager_client/models/block_result.rb +320 -0
- data/lib/radiomanager_client/models/block_results.rb +271 -0
- data/lib/radiomanager_client/models/broadcast.rb +428 -0
- data/lib/radiomanager_client/models/broadcast_data_input.rb +450 -0
- data/lib/radiomanager_client/models/broadcast_field_values.rb +188 -0
- data/lib/radiomanager_client/models/broadcast_input_only.rb +201 -0
- data/lib/radiomanager_client/models/broadcast_output_only.rb +244 -0
- data/lib/radiomanager_client/models/broadcast_relations.rb +233 -0
- data/lib/radiomanager_client/models/broadcast_relations_blocks.rb +215 -0
- data/lib/radiomanager_client/models/broadcast_relations_items.rb +215 -0
- data/lib/radiomanager_client/models/broadcast_relations_items_params.rb +188 -0
- data/lib/radiomanager_client/models/broadcast_relations_model_type.rb +215 -0
- data/lib/radiomanager_client/models/broadcast_relations_presenters.rb +215 -0
- data/lib/radiomanager_client/models/broadcast_relations_tags.rb +215 -0
- data/lib/radiomanager_client/models/broadcast_result.rb +547 -0
- data/lib/radiomanager_client/models/broadcast_results.rb +271 -0
- data/lib/radiomanager_client/models/campaign.rb +259 -0
- data/lib/radiomanager_client/models/campaign_data_input.rb +259 -0
- data/lib/radiomanager_client/models/campaign_output_only.rb +255 -0
- data/lib/radiomanager_client/models/campaign_relations.rb +197 -0
- data/lib/radiomanager_client/models/campaign_relations_items.rb +215 -0
- data/lib/radiomanager_client/models/campaign_relations_items_params.rb +188 -0
- data/lib/radiomanager_client/models/campaign_result.rb +353 -0
- data/lib/radiomanager_client/models/campaign_results.rb +271 -0
- data/lib/radiomanager_client/models/contact.rb +248 -0
- data/lib/radiomanager_client/models/contact_data_input.rb +248 -0
- data/lib/radiomanager_client/models/contact_field_values.rb +188 -0
- data/lib/radiomanager_client/models/contact_output_only.rb +224 -0
- data/lib/radiomanager_client/models/contact_relations.rb +206 -0
- data/lib/radiomanager_client/models/contact_relations_items.rb +215 -0
- data/lib/radiomanager_client/models/contact_relations_tags.rb +215 -0
- data/lib/radiomanager_client/models/contact_relations_tags_params.rb +188 -0
- data/lib/radiomanager_client/models/contact_result.rb +320 -0
- data/lib/radiomanager_client/models/contact_results.rb +271 -0
- data/lib/radiomanager_client/models/data.rb +199 -0
- data/lib/radiomanager_client/models/data_1.rb +199 -0
- data/lib/radiomanager_client/models/epg_broadcast.rb +227 -0
- data/lib/radiomanager_client/models/external_message_queue_data.rb +333 -0
- data/lib/radiomanager_client/models/forbidden.rb +209 -0
- data/lib/radiomanager_client/models/genre.rb +225 -0
- data/lib/radiomanager_client/models/genre_output_only.rb +188 -0
- data/lib/radiomanager_client/models/genre_relations.rb +197 -0
- data/lib/radiomanager_client/models/genre_relations_broadcasts.rb +215 -0
- data/lib/radiomanager_client/models/genre_relations_broadcasts_params.rb +188 -0
- data/lib/radiomanager_client/models/genre_relations_programs.rb +215 -0
- data/lib/radiomanager_client/models/genre_result.rb +252 -0
- data/lib/radiomanager_client/models/genre_results.rb +271 -0
- data/lib/radiomanager_client/models/import_item.rb +292 -0
- data/lib/radiomanager_client/models/import_item_field_values.rb +188 -0
- data/lib/radiomanager_client/models/inline_response_202.rb +188 -0
- data/lib/radiomanager_client/models/internal_server_error.rb +209 -0
- data/lib/radiomanager_client/models/invite_user_data.rb +207 -0
- data/lib/radiomanager_client/models/invite_user_success.rb +188 -0
- data/lib/radiomanager_client/models/item.rb +366 -0
- data/lib/radiomanager_client/models/item_data_input.rb +397 -0
- data/lib/radiomanager_client/models/item_input_only.rb +210 -0
- data/lib/radiomanager_client/models/item_output_only.rb +260 -0
- data/lib/radiomanager_client/models/item_relations.rb +242 -0
- data/lib/radiomanager_client/models/item_relations_block.rb +215 -0
- data/lib/radiomanager_client/models/item_relations_campaign.rb +215 -0
- data/lib/radiomanager_client/models/item_relations_contacts.rb +215 -0
- data/lib/radiomanager_client/models/item_relations_contacts_params.rb +188 -0
- data/lib/radiomanager_client/models/item_relations_program.rb +215 -0
- data/lib/radiomanager_client/models/item_relations_tags.rb +215 -0
- data/lib/radiomanager_client/models/item_result.rb +510 -0
- data/lib/radiomanager_client/models/item_results.rb +262 -0
- data/lib/radiomanager_client/models/model_type.rb +289 -0
- data/lib/radiomanager_client/models/model_type_options.rb +188 -0
- data/lib/radiomanager_client/models/model_type_output_only.rb +188 -0
- data/lib/radiomanager_client/models/model_type_relations.rb +233 -0
- data/lib/radiomanager_client/models/model_type_relations_broadcasts.rb +215 -0
- data/lib/radiomanager_client/models/model_type_relations_campaigns.rb +215 -0
- data/lib/radiomanager_client/models/model_type_relations_campaigns_params.rb +188 -0
- data/lib/radiomanager_client/models/model_type_relations_contacts.rb +215 -0
- data/lib/radiomanager_client/models/model_type_relations_items.rb +215 -0
- data/lib/radiomanager_client/models/model_type_relations_presenters.rb +215 -0
- data/lib/radiomanager_client/models/model_type_relations_programs.rb +215 -0
- data/lib/radiomanager_client/models/model_type_result.rb +352 -0
- data/lib/radiomanager_client/models/model_type_results.rb +271 -0
- data/lib/radiomanager_client/models/not_found.rb +209 -0
- data/lib/radiomanager_client/models/post_success.rb +204 -0
- data/lib/radiomanager_client/models/presenter.rb +240 -0
- data/lib/radiomanager_client/models/presenter_data_input.rb +240 -0
- data/lib/radiomanager_client/models/presenter_output_only.rb +244 -0
- data/lib/radiomanager_client/models/presenter_relations.rb +206 -0
- data/lib/radiomanager_client/models/presenter_relations_broadcasts.rb +215 -0
- data/lib/radiomanager_client/models/presenter_relations_programs.rb +215 -0
- data/lib/radiomanager_client/models/presenter_relations_programs_params.rb +188 -0
- data/lib/radiomanager_client/models/presenter_result.rb +332 -0
- data/lib/radiomanager_client/models/presenter_results.rb +271 -0
- data/lib/radiomanager_client/models/program.rb +306 -0
- data/lib/radiomanager_client/models/program_data_input.rb +328 -0
- data/lib/radiomanager_client/models/program_field_values.rb +188 -0
- data/lib/radiomanager_client/models/program_input_only.rb +201 -0
- data/lib/radiomanager_client/models/program_output_only.rb +244 -0
- data/lib/radiomanager_client/models/program_relations.rb +233 -0
- data/lib/radiomanager_client/models/program_relations_blocks.rb +215 -0
- data/lib/radiomanager_client/models/program_relations_broadcasts.rb +215 -0
- data/lib/radiomanager_client/models/program_relations_items.rb +215 -0
- data/lib/radiomanager_client/models/program_relations_items_params.rb +188 -0
- data/lib/radiomanager_client/models/program_relations_presenters.rb +215 -0
- data/lib/radiomanager_client/models/program_relations_tags.rb +215 -0
- data/lib/radiomanager_client/models/program_result.rb +425 -0
- data/lib/radiomanager_client/models/program_results.rb +271 -0
- data/lib/radiomanager_client/models/read_only.rb +209 -0
- data/lib/radiomanager_client/models/relations_placeholder.rb +239 -0
- data/lib/radiomanager_client/models/success.rb +194 -0
- data/lib/radiomanager_client/models/tag.rb +193 -0
- data/lib/radiomanager_client/models/tag_data_input.rb +193 -0
- data/lib/radiomanager_client/models/tag_output_only.rb +229 -0
- data/lib/radiomanager_client/models/tag_relations.rb +215 -0
- data/lib/radiomanager_client/models/tag_relations_broadcasts.rb +215 -0
- data/lib/radiomanager_client/models/tag_relations_broadcasts_params.rb +188 -0
- data/lib/radiomanager_client/models/tag_relations_contacts.rb +215 -0
- data/lib/radiomanager_client/models/tag_relations_items.rb +215 -0
- data/lib/radiomanager_client/models/tag_relations_programs.rb +215 -0
- data/lib/radiomanager_client/models/tag_result.rb +279 -0
- data/lib/radiomanager_client/models/tag_results.rb +262 -0
- data/lib/radiomanager_client/models/text_string.rb +239 -0
- data/lib/radiomanager_client/models/too_many_requests.rb +193 -0
- data/lib/radiomanager_client/models/unprocessable_entity.rb +196 -0
- data/lib/radiomanager_client/models/user_result.rb +307 -0
- data/lib/radiomanager_client/models/user_result_settings.rb +233 -0
- data/lib/radiomanager_client/models/user_results.rb +271 -0
- data/lib/radiomanager_client/models/visual_result.rb +188 -0
- data/lib/radiomanager_client/version.rb +15 -0
- data/radiomanager_client-1.0.0.gem +0 -0
- data/radiomanager_client.gemspec +46 -0
- data/spec/api/block_api_spec.rb +88 -0
- data/spec/api/broadcast_api_spec.rb +180 -0
- data/spec/api/campaign_api_spec.rb +102 -0
- data/spec/api/contact_api_spec.rb +101 -0
- data/spec/api/external_message_api_spec.rb +47 -0
- data/spec/api/genre_api_spec.rb +64 -0
- data/spec/api/item_api_spec.rb +163 -0
- data/spec/api/model_type_api_spec.rb +68 -0
- data/spec/api/presenter_api_spec.rb +101 -0
- data/spec/api/program_api_spec.rb +105 -0
- data/spec/api/string_api_spec.rb +48 -0
- data/spec/api/tag_api_spec.rb +102 -0
- data/spec/api/user_api_spec.rb +84 -0
- data/spec/api/visual_slide_api_spec.rb +57 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/block_relations_broadcast_params_spec.rb +42 -0
- data/spec/models/block_relations_broadcast_spec.rb +60 -0
- data/spec/models/block_relations_items_params_spec.rb +42 -0
- data/spec/models/block_relations_items_spec.rb +60 -0
- data/spec/models/block_relations_program_spec.rb +60 -0
- data/spec/models/block_relations_spec.rb +54 -0
- data/spec/models/block_result_spec.rb +102 -0
- data/spec/models/block_results_spec.rb +96 -0
- data/spec/models/block_spec.rb +84 -0
- data/spec/models/broadcast_data_input_spec.rb +184 -0
- data/spec/models/broadcast_field_values_spec.rb +42 -0
- data/spec/models/broadcast_input_only_spec.rb +48 -0
- data/spec/models/broadcast_output_only_spec.rb +66 -0
- data/spec/models/broadcast_relations_blocks_spec.rb +60 -0
- data/spec/models/broadcast_relations_items_params_spec.rb +42 -0
- data/spec/models/broadcast_relations_items_spec.rb +60 -0
- data/spec/models/broadcast_relations_model_type_spec.rb +60 -0
- data/spec/models/broadcast_relations_presenters_spec.rb +60 -0
- data/spec/models/broadcast_relations_spec.rb +72 -0
- data/spec/models/broadcast_relations_tags_spec.rb +60 -0
- data/spec/models/broadcast_result_spec.rb +238 -0
- data/spec/models/broadcast_results_spec.rb +96 -0
- data/spec/models/broadcast_spec.rb +172 -0
- data/spec/models/campaign_data_input_spec.rb +78 -0
- data/spec/models/campaign_output_only_spec.rb +72 -0
- data/spec/models/campaign_relations_items_params_spec.rb +42 -0
- data/spec/models/campaign_relations_items_spec.rb +60 -0
- data/spec/models/campaign_relations_spec.rb +48 -0
- data/spec/models/campaign_result_spec.rb +126 -0
- data/spec/models/campaign_results_spec.rb +96 -0
- data/spec/models/campaign_spec.rb +78 -0
- data/spec/models/contact_data_input_spec.rb +72 -0
- data/spec/models/contact_field_values_spec.rb +42 -0
- data/spec/models/contact_output_only_spec.rb +66 -0
- data/spec/models/contact_relations_items_spec.rb +60 -0
- data/spec/models/contact_relations_spec.rb +54 -0
- data/spec/models/contact_relations_tags_params_spec.rb +42 -0
- data/spec/models/contact_relations_tags_spec.rb +60 -0
- data/spec/models/contact_result_spec.rb +120 -0
- data/spec/models/contact_results_spec.rb +96 -0
- data/spec/models/contact_spec.rb +72 -0
- data/spec/models/data_1_spec.rb +48 -0
- data/spec/models/data_spec.rb +48 -0
- data/spec/models/epg_broadcast_spec.rb +54 -0
- data/spec/models/external_message_queue_data_spec.rb +78 -0
- data/spec/models/forbidden_spec.rb +48 -0
- data/spec/models/genre_output_only_spec.rb +42 -0
- data/spec/models/genre_relations_broadcasts_params_spec.rb +42 -0
- data/spec/models/genre_relations_broadcasts_spec.rb +60 -0
- data/spec/models/genre_relations_programs_spec.rb +60 -0
- data/spec/models/genre_relations_spec.rb +48 -0
- data/spec/models/genre_result_spec.rb +78 -0
- data/spec/models/genre_results_spec.rb +96 -0
- data/spec/models/genre_spec.rb +60 -0
- data/spec/models/import_item_field_values_spec.rb +42 -0
- data/spec/models/import_item_spec.rb +102 -0
- data/spec/models/inline_response_202_spec.rb +42 -0
- data/spec/models/internal_server_error_spec.rb +48 -0
- data/spec/models/invite_user_data_spec.rb +48 -0
- data/spec/models/invite_user_success_spec.rb +42 -0
- data/spec/models/item_data_input_spec.rb +154 -0
- data/spec/models/item_input_only_spec.rb +54 -0
- data/spec/models/item_output_only_spec.rb +90 -0
- data/spec/models/item_relations_block_spec.rb +60 -0
- data/spec/models/item_relations_campaign_spec.rb +60 -0
- data/spec/models/item_relations_contacts_params_spec.rb +42 -0
- data/spec/models/item_relations_contacts_spec.rb +60 -0
- data/spec/models/item_relations_program_spec.rb +60 -0
- data/spec/models/item_relations_spec.rb +78 -0
- data/spec/models/item_relations_tags_spec.rb +60 -0
- data/spec/models/item_result_spec.rb +232 -0
- data/spec/models/item_results_spec.rb +90 -0
- data/spec/models/item_spec.rb +136 -0
- data/spec/models/model_type_options_spec.rb +42 -0
- data/spec/models/model_type_output_only_spec.rb +42 -0
- data/spec/models/model_type_relations_broadcasts_spec.rb +60 -0
- data/spec/models/model_type_relations_campaigns_params_spec.rb +42 -0
- data/spec/models/model_type_relations_campaigns_spec.rb +60 -0
- data/spec/models/model_type_relations_contacts_spec.rb +60 -0
- data/spec/models/model_type_relations_items_spec.rb +60 -0
- data/spec/models/model_type_relations_presenters_spec.rb +60 -0
- data/spec/models/model_type_relations_programs_spec.rb +60 -0
- data/spec/models/model_type_relations_spec.rb +72 -0
- data/spec/models/model_type_result_spec.rb +130 -0
- data/spec/models/model_type_results_spec.rb +96 -0
- data/spec/models/model_type_spec.rb +88 -0
- data/spec/models/not_found_spec.rb +48 -0
- data/spec/models/post_success_spec.rb +48 -0
- data/spec/models/presenter_data_input_spec.rb +72 -0
- data/spec/models/presenter_output_only_spec.rb +66 -0
- data/spec/models/presenter_relations_broadcasts_spec.rb +60 -0
- data/spec/models/presenter_relations_programs_params_spec.rb +42 -0
- data/spec/models/presenter_relations_programs_spec.rb +60 -0
- data/spec/models/presenter_relations_spec.rb +54 -0
- data/spec/models/presenter_result_spec.rb +120 -0
- data/spec/models/presenter_results_spec.rb +96 -0
- data/spec/models/presenter_spec.rb +72 -0
- data/spec/models/program_data_input_spec.rb +126 -0
- data/spec/models/program_field_values_spec.rb +42 -0
- data/spec/models/program_input_only_spec.rb +48 -0
- data/spec/models/program_output_only_spec.rb +66 -0
- data/spec/models/program_relations_blocks_spec.rb +60 -0
- data/spec/models/program_relations_broadcasts_spec.rb +60 -0
- data/spec/models/program_relations_items_params_spec.rb +42 -0
- data/spec/models/program_relations_items_spec.rb +60 -0
- data/spec/models/program_relations_presenters_spec.rb +60 -0
- data/spec/models/program_relations_spec.rb +72 -0
- data/spec/models/program_relations_tags_spec.rb +60 -0
- data/spec/models/program_result_spec.rb +180 -0
- data/spec/models/program_results_spec.rb +96 -0
- data/spec/models/program_spec.rb +114 -0
- data/spec/models/read_only_spec.rb +48 -0
- data/spec/models/relations_placeholder_spec.rb +60 -0
- data/spec/models/success_spec.rb +42 -0
- data/spec/models/tag_data_input_spec.rb +42 -0
- data/spec/models/tag_output_only_spec.rb +66 -0
- data/spec/models/tag_relations_broadcasts_params_spec.rb +42 -0
- data/spec/models/tag_relations_broadcasts_spec.rb +60 -0
- data/spec/models/tag_relations_contacts_spec.rb +60 -0
- data/spec/models/tag_relations_items_spec.rb +60 -0
- data/spec/models/tag_relations_programs_spec.rb +60 -0
- data/spec/models/tag_relations_spec.rb +60 -0
- data/spec/models/tag_result_spec.rb +96 -0
- data/spec/models/tag_results_spec.rb +90 -0
- data/spec/models/tag_spec.rb +42 -0
- data/spec/models/text_string_spec.rb +66 -0
- data/spec/models/too_many_requests_spec.rb +42 -0
- data/spec/models/unprocessable_entity_spec.rb +42 -0
- data/spec/models/user_result_settings_spec.rb +72 -0
- data/spec/models/user_result_spec.rb +108 -0
- data/spec/models/user_results_spec.rb +96 -0
- data/spec/models/visual_result_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +825 -0
@@ -0,0 +1,340 @@
|
|
1
|
+
=begin
|
2
|
+
#RadioManager
|
3
|
+
|
4
|
+
#RadioManager
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
Contact: support@pluxbox.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module RadioManagerClient
|
16
|
+
class ProgramApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Create program.
|
24
|
+
# Create program.
|
25
|
+
# @param data Data **(Required)**
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [PostSuccess]
|
28
|
+
def create_program(data, opts = {})
|
29
|
+
data, _status_code, _headers = create_program_with_http_info(data, opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Create program.
|
34
|
+
# Create program.
|
35
|
+
# @param data Data **(Required)**
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(PostSuccess, Fixnum, Hash)>] PostSuccess data, response status code and response headers
|
38
|
+
def create_program_with_http_info(data, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: ProgramApi.create_program ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'data' is set
|
43
|
+
if @api_client.config.client_side_validation && data.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ProgramApi.create_program"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/programs"
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = @api_client.object_to_http_body(data)
|
64
|
+
auth_names = ['API Key']
|
65
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'PostSuccess')
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: ProgramApi#create_program\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
|
78
|
+
# Delete program by id
|
79
|
+
# Delete program by id
|
80
|
+
# @param id ID of program **(Required)**
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @return [Success]
|
83
|
+
def delete_program_by_id(id, opts = {})
|
84
|
+
data, _status_code, _headers = delete_program_by_id_with_http_info(id, opts)
|
85
|
+
return data
|
86
|
+
end
|
87
|
+
|
88
|
+
# Delete program by id
|
89
|
+
# Delete program by id
|
90
|
+
# @param id ID of program **(Required)**
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [Array<(Success, Fixnum, Hash)>] Success data, response status code and response headers
|
93
|
+
def delete_program_by_id_with_http_info(id, opts = {})
|
94
|
+
if @api_client.config.debugging
|
95
|
+
@api_client.config.logger.debug "Calling API: ProgramApi.delete_program_by_id ..."
|
96
|
+
end
|
97
|
+
# verify the required parameter 'id' is set
|
98
|
+
if @api_client.config.client_side_validation && id.nil?
|
99
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProgramApi.delete_program_by_id"
|
100
|
+
end
|
101
|
+
if @api_client.config.client_side_validation && id < 0
|
102
|
+
fail ArgumentError, 'invalid value for "id" when calling ProgramApi.delete_program_by_id, must be greater than or equal to 0.'
|
103
|
+
end
|
104
|
+
|
105
|
+
# resource path
|
106
|
+
local_var_path = "/programs/{id}".sub('{' + 'id' + '}', id.to_s)
|
107
|
+
|
108
|
+
# query parameters
|
109
|
+
query_params = {}
|
110
|
+
|
111
|
+
# header parameters
|
112
|
+
header_params = {}
|
113
|
+
# HTTP header 'Accept' (if needed)
|
114
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
115
|
+
# HTTP header 'Content-Type'
|
116
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
117
|
+
|
118
|
+
# form parameters
|
119
|
+
form_params = {}
|
120
|
+
|
121
|
+
# http body (model)
|
122
|
+
post_body = nil
|
123
|
+
auth_names = ['API Key']
|
124
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
125
|
+
:header_params => header_params,
|
126
|
+
:query_params => query_params,
|
127
|
+
:form_params => form_params,
|
128
|
+
:body => post_body,
|
129
|
+
:auth_names => auth_names,
|
130
|
+
:return_type => 'Success')
|
131
|
+
if @api_client.config.debugging
|
132
|
+
@api_client.config.logger.debug "API called: ProgramApi#delete_program_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
133
|
+
end
|
134
|
+
return data, status_code, headers
|
135
|
+
end
|
136
|
+
|
137
|
+
# Get program by id
|
138
|
+
# Get program by id
|
139
|
+
# @param id ID of Program **(Required)**
|
140
|
+
# @param [Hash] opts the optional parameters
|
141
|
+
# @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
|
142
|
+
# @return [ProgramResult]
|
143
|
+
def get_program_by_id(id, opts = {})
|
144
|
+
data, _status_code, _headers = get_program_by_id_with_http_info(id, opts)
|
145
|
+
return data
|
146
|
+
end
|
147
|
+
|
148
|
+
# Get program by id
|
149
|
+
# Get program by id
|
150
|
+
# @param id ID of Program **(Required)**
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
|
153
|
+
# @return [Array<(ProgramResult, Fixnum, Hash)>] ProgramResult data, response status code and response headers
|
154
|
+
def get_program_by_id_with_http_info(id, opts = {})
|
155
|
+
if @api_client.config.debugging
|
156
|
+
@api_client.config.logger.debug "Calling API: ProgramApi.get_program_by_id ..."
|
157
|
+
end
|
158
|
+
# verify the required parameter 'id' is set
|
159
|
+
if @api_client.config.client_side_validation && id.nil?
|
160
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProgramApi.get_program_by_id"
|
161
|
+
end
|
162
|
+
if @api_client.config.client_side_validation && id < 0
|
163
|
+
fail ArgumentError, 'invalid value for "id" when calling ProgramApi.get_program_by_id, must be greater than or equal to 0.'
|
164
|
+
end
|
165
|
+
|
166
|
+
# resource path
|
167
|
+
local_var_path = "/programs/{id}".sub('{' + 'id' + '}', id.to_s)
|
168
|
+
|
169
|
+
# query parameters
|
170
|
+
query_params = {}
|
171
|
+
query_params[:'_external_station_id'] = opts[:'_external_station_id'] if !opts[:'_external_station_id'].nil?
|
172
|
+
|
173
|
+
# header parameters
|
174
|
+
header_params = {}
|
175
|
+
# HTTP header 'Accept' (if needed)
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
177
|
+
# HTTP header 'Content-Type'
|
178
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
179
|
+
|
180
|
+
# form parameters
|
181
|
+
form_params = {}
|
182
|
+
|
183
|
+
# http body (model)
|
184
|
+
post_body = nil
|
185
|
+
auth_names = ['API Key']
|
186
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
187
|
+
:header_params => header_params,
|
188
|
+
:query_params => query_params,
|
189
|
+
:form_params => form_params,
|
190
|
+
:body => post_body,
|
191
|
+
:auth_names => auth_names,
|
192
|
+
:return_type => 'ProgramResult')
|
193
|
+
if @api_client.config.debugging
|
194
|
+
@api_client.config.logger.debug "API called: ProgramApi#get_program_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
195
|
+
end
|
196
|
+
return data, status_code, headers
|
197
|
+
end
|
198
|
+
|
199
|
+
# Get all programs.
|
200
|
+
# List all programs.
|
201
|
+
# @param [Hash] opts the optional parameters
|
202
|
+
# @option opts [Integer] :page Current page *(Optional)*
|
203
|
+
# @option opts [Integer] :genre_id Search on Genre ID *(Optional)*
|
204
|
+
# @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)*
|
205
|
+
# @option opts [Integer] :presenter_id Search on Presenter ID *(Optional)* `(Relation)`
|
206
|
+
# @option opts [Integer] :tag_id Search on Tag ID *(Optional)* `(Relation)`
|
207
|
+
# @option opts [Integer] :broadcast_id Search on Broadcast ID *(Optional)* `(Relation)`
|
208
|
+
# @option opts [Integer] :item_id Search on Item ID *(Optional)* `(Relation)`
|
209
|
+
# @option opts [Integer] :block_id Search on Block ID *(Optional)* `(Relation)`
|
210
|
+
# @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
|
211
|
+
# @return [ProgramResults]
|
212
|
+
def list_programs(opts = {})
|
213
|
+
data, _status_code, _headers = list_programs_with_http_info(opts)
|
214
|
+
return data
|
215
|
+
end
|
216
|
+
|
217
|
+
# Get all programs.
|
218
|
+
# List all programs.
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @option opts [Integer] :page Current page *(Optional)*
|
221
|
+
# @option opts [Integer] :genre_id Search on Genre ID *(Optional)*
|
222
|
+
# @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)*
|
223
|
+
# @option opts [Integer] :presenter_id Search on Presenter ID *(Optional)* `(Relation)`
|
224
|
+
# @option opts [Integer] :tag_id Search on Tag ID *(Optional)* `(Relation)`
|
225
|
+
# @option opts [Integer] :broadcast_id Search on Broadcast ID *(Optional)* `(Relation)`
|
226
|
+
# @option opts [Integer] :item_id Search on Item ID *(Optional)* `(Relation)`
|
227
|
+
# @option opts [Integer] :block_id Search on Block ID *(Optional)* `(Relation)`
|
228
|
+
# @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
|
229
|
+
# @return [Array<(ProgramResults, Fixnum, Hash)>] ProgramResults data, response status code and response headers
|
230
|
+
def list_programs_with_http_info(opts = {})
|
231
|
+
if @api_client.config.debugging
|
232
|
+
@api_client.config.logger.debug "Calling API: ProgramApi.list_programs ..."
|
233
|
+
end
|
234
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
|
235
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ProgramApi.list_programs, must be greater than or equal to 0.'
|
236
|
+
end
|
237
|
+
|
238
|
+
# resource path
|
239
|
+
local_var_path = "/programs"
|
240
|
+
|
241
|
+
# query parameters
|
242
|
+
query_params = {}
|
243
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
244
|
+
query_params[:'genre_id'] = opts[:'genre_id'] if !opts[:'genre_id'].nil?
|
245
|
+
query_params[:'model_type_id'] = opts[:'model_type_id'] if !opts[:'model_type_id'].nil?
|
246
|
+
query_params[:'presenter_id'] = opts[:'presenter_id'] if !opts[:'presenter_id'].nil?
|
247
|
+
query_params[:'tag_id'] = opts[:'tag_id'] if !opts[:'tag_id'].nil?
|
248
|
+
query_params[:'broadcast_id'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
249
|
+
query_params[:'item_id'] = opts[:'item_id'] if !opts[:'item_id'].nil?
|
250
|
+
query_params[:'block_id'] = opts[:'block_id'] if !opts[:'block_id'].nil?
|
251
|
+
query_params[:'_external_station_id'] = opts[:'_external_station_id'] if !opts[:'_external_station_id'].nil?
|
252
|
+
|
253
|
+
# header parameters
|
254
|
+
header_params = {}
|
255
|
+
# HTTP header 'Accept' (if needed)
|
256
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
257
|
+
# HTTP header 'Content-Type'
|
258
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
259
|
+
|
260
|
+
# form parameters
|
261
|
+
form_params = {}
|
262
|
+
|
263
|
+
# http body (model)
|
264
|
+
post_body = nil
|
265
|
+
auth_names = ['API Key']
|
266
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
267
|
+
:header_params => header_params,
|
268
|
+
:query_params => query_params,
|
269
|
+
:form_params => form_params,
|
270
|
+
:body => post_body,
|
271
|
+
:auth_names => auth_names,
|
272
|
+
:return_type => 'ProgramResults')
|
273
|
+
if @api_client.config.debugging
|
274
|
+
@api_client.config.logger.debug "API called: ProgramApi#list_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
275
|
+
end
|
276
|
+
return data, status_code, headers
|
277
|
+
end
|
278
|
+
|
279
|
+
# Update program by id
|
280
|
+
# Update program by id
|
281
|
+
# @param id ID of Program **(Required)**
|
282
|
+
# @param [Hash] opts the optional parameters
|
283
|
+
# @option opts [ProgramDataInput] :data Data *(Optional)*
|
284
|
+
# @return [Success]
|
285
|
+
def update_program_by_id(id, opts = {})
|
286
|
+
data, _status_code, _headers = update_program_by_id_with_http_info(id, opts)
|
287
|
+
return data
|
288
|
+
end
|
289
|
+
|
290
|
+
# Update program by id
|
291
|
+
# Update program by id
|
292
|
+
# @param id ID of Program **(Required)**
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [ProgramDataInput] :data Data *(Optional)*
|
295
|
+
# @return [Array<(Success, Fixnum, Hash)>] Success data, response status code and response headers
|
296
|
+
def update_program_by_id_with_http_info(id, opts = {})
|
297
|
+
if @api_client.config.debugging
|
298
|
+
@api_client.config.logger.debug "Calling API: ProgramApi.update_program_by_id ..."
|
299
|
+
end
|
300
|
+
# verify the required parameter 'id' is set
|
301
|
+
if @api_client.config.client_side_validation && id.nil?
|
302
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProgramApi.update_program_by_id"
|
303
|
+
end
|
304
|
+
if @api_client.config.client_side_validation && id < 0
|
305
|
+
fail ArgumentError, 'invalid value for "id" when calling ProgramApi.update_program_by_id, must be greater than or equal to 0.'
|
306
|
+
end
|
307
|
+
|
308
|
+
# resource path
|
309
|
+
local_var_path = "/programs/{id}".sub('{' + 'id' + '}', id.to_s)
|
310
|
+
|
311
|
+
# query parameters
|
312
|
+
query_params = {}
|
313
|
+
|
314
|
+
# header parameters
|
315
|
+
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 = {}
|
323
|
+
|
324
|
+
# http body (model)
|
325
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
326
|
+
auth_names = ['API Key']
|
327
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
328
|
+
:header_params => header_params,
|
329
|
+
:query_params => query_params,
|
330
|
+
:form_params => form_params,
|
331
|
+
:body => post_body,
|
332
|
+
:auth_names => auth_names,
|
333
|
+
:return_type => 'Success')
|
334
|
+
if @api_client.config.debugging
|
335
|
+
@api_client.config.logger.debug "API called: ProgramApi#update_program_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
336
|
+
end
|
337
|
+
return data, status_code, headers
|
338
|
+
end
|
339
|
+
end
|
340
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
=begin
|
2
|
+
#RadioManager
|
3
|
+
|
4
|
+
#RadioManager
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
Contact: support@pluxbox.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module RadioManagerClient
|
16
|
+
class StringApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Get Strings (formatted)
|
24
|
+
# Get Strings (formatted)
|
25
|
+
# @param name Name of Strings **(Required)**
|
26
|
+
# @param full_model Full model or content only **(Required)**
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [TextString]
|
29
|
+
def get_strings_by_name(name, full_model, opts = {})
|
30
|
+
data, _status_code, _headers = get_strings_by_name_with_http_info(name, full_model, opts)
|
31
|
+
return data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get Strings (formatted)
|
35
|
+
# Get Strings (formatted)
|
36
|
+
# @param name Name of Strings **(Required)**
|
37
|
+
# @param full_model Full model or content only **(Required)**
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(TextString, Fixnum, Hash)>] TextString data, response status code and response headers
|
40
|
+
def get_strings_by_name_with_http_info(name, full_model, opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug "Calling API: StringApi.get_strings_by_name ..."
|
43
|
+
end
|
44
|
+
# verify the required parameter 'name' is set
|
45
|
+
if @api_client.config.client_side_validation && name.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling StringApi.get_strings_by_name"
|
47
|
+
end
|
48
|
+
# verify the required parameter 'full_model' is set
|
49
|
+
if @api_client.config.client_side_validation && full_model.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'full_model' when calling StringApi.get_strings_by_name"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = "/strings/{name}".sub('{' + 'name' + '}', name.to_s)
|
54
|
+
|
55
|
+
# query parameters
|
56
|
+
query_params = {}
|
57
|
+
query_params[:'full_model'] = full_model
|
58
|
+
|
59
|
+
# header parameters
|
60
|
+
header_params = {}
|
61
|
+
# HTTP header 'Accept' (if needed)
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
63
|
+
# HTTP header 'Content-Type'
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
auth_names = ['API Key']
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => 'TextString')
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: StringApi#get_strings_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,331 @@
|
|
1
|
+
=begin
|
2
|
+
#RadioManager
|
3
|
+
|
4
|
+
#RadioManager
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
Contact: support@pluxbox.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module RadioManagerClient
|
16
|
+
class TagApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Create tag.
|
24
|
+
# Create tag.
|
25
|
+
# @param data Data **(Required)**
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [PostSuccess]
|
28
|
+
def create_tag(data, opts = {})
|
29
|
+
data, _status_code, _headers = create_tag_with_http_info(data, opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Create tag.
|
34
|
+
# Create tag.
|
35
|
+
# @param data Data **(Required)**
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(PostSuccess, Fixnum, Hash)>] PostSuccess data, response status code and response headers
|
38
|
+
def create_tag_with_http_info(data, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: TagApi.create_tag ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'data' is set
|
43
|
+
if @api_client.config.client_side_validation && data.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling TagApi.create_tag"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/tags"
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = @api_client.object_to_http_body(data)
|
64
|
+
auth_names = ['API Key']
|
65
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'PostSuccess')
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: TagApi#create_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
|
78
|
+
# Delete tag by id
|
79
|
+
# Delete tag by id
|
80
|
+
# @param id ID of Tag **(Required)**
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @return [Success]
|
83
|
+
def delete_tag_by_id(id, opts = {})
|
84
|
+
data, _status_code, _headers = delete_tag_by_id_with_http_info(id, opts)
|
85
|
+
return data
|
86
|
+
end
|
87
|
+
|
88
|
+
# Delete tag by id
|
89
|
+
# Delete tag by id
|
90
|
+
# @param id ID of Tag **(Required)**
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [Array<(Success, Fixnum, Hash)>] Success data, response status code and response headers
|
93
|
+
def delete_tag_by_id_with_http_info(id, opts = {})
|
94
|
+
if @api_client.config.debugging
|
95
|
+
@api_client.config.logger.debug "Calling API: TagApi.delete_tag_by_id ..."
|
96
|
+
end
|
97
|
+
# verify the required parameter 'id' is set
|
98
|
+
if @api_client.config.client_side_validation && id.nil?
|
99
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TagApi.delete_tag_by_id"
|
100
|
+
end
|
101
|
+
if @api_client.config.client_side_validation && id < 0
|
102
|
+
fail ArgumentError, 'invalid value for "id" when calling TagApi.delete_tag_by_id, must be greater than or equal to 0.'
|
103
|
+
end
|
104
|
+
|
105
|
+
# resource path
|
106
|
+
local_var_path = "/tags/{id}".sub('{' + 'id' + '}', id.to_s)
|
107
|
+
|
108
|
+
# query parameters
|
109
|
+
query_params = {}
|
110
|
+
|
111
|
+
# header parameters
|
112
|
+
header_params = {}
|
113
|
+
# HTTP header 'Accept' (if needed)
|
114
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
115
|
+
# HTTP header 'Content-Type'
|
116
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
117
|
+
|
118
|
+
# form parameters
|
119
|
+
form_params = {}
|
120
|
+
|
121
|
+
# http body (model)
|
122
|
+
post_body = nil
|
123
|
+
auth_names = ['API Key']
|
124
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
125
|
+
:header_params => header_params,
|
126
|
+
:query_params => query_params,
|
127
|
+
:form_params => form_params,
|
128
|
+
:body => post_body,
|
129
|
+
:auth_names => auth_names,
|
130
|
+
:return_type => 'Success')
|
131
|
+
if @api_client.config.debugging
|
132
|
+
@api_client.config.logger.debug "API called: TagApi#delete_tag_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
133
|
+
end
|
134
|
+
return data, status_code, headers
|
135
|
+
end
|
136
|
+
|
137
|
+
# Get tags by id
|
138
|
+
# Get tags by id
|
139
|
+
# @param id ID of Tag **(Required)**
|
140
|
+
# @param [Hash] opts the optional parameters
|
141
|
+
# @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
|
142
|
+
# @return [TagResult]
|
143
|
+
def get_tag_by_id(id, opts = {})
|
144
|
+
data, _status_code, _headers = get_tag_by_id_with_http_info(id, opts)
|
145
|
+
return data
|
146
|
+
end
|
147
|
+
|
148
|
+
# Get tags by id
|
149
|
+
# Get tags by id
|
150
|
+
# @param id ID of Tag **(Required)**
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
|
153
|
+
# @return [Array<(TagResult, Fixnum, Hash)>] TagResult data, response status code and response headers
|
154
|
+
def get_tag_by_id_with_http_info(id, opts = {})
|
155
|
+
if @api_client.config.debugging
|
156
|
+
@api_client.config.logger.debug "Calling API: TagApi.get_tag_by_id ..."
|
157
|
+
end
|
158
|
+
# verify the required parameter 'id' is set
|
159
|
+
if @api_client.config.client_side_validation && id.nil?
|
160
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TagApi.get_tag_by_id"
|
161
|
+
end
|
162
|
+
if @api_client.config.client_side_validation && id < 0
|
163
|
+
fail ArgumentError, 'invalid value for "id" when calling TagApi.get_tag_by_id, must be greater than or equal to 0.'
|
164
|
+
end
|
165
|
+
|
166
|
+
# resource path
|
167
|
+
local_var_path = "/tags/{id}".sub('{' + 'id' + '}', id.to_s)
|
168
|
+
|
169
|
+
# query parameters
|
170
|
+
query_params = {}
|
171
|
+
query_params[:'_external_station_id'] = opts[:'_external_station_id'] if !opts[:'_external_station_id'].nil?
|
172
|
+
|
173
|
+
# header parameters
|
174
|
+
header_params = {}
|
175
|
+
# HTTP header 'Accept' (if needed)
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
177
|
+
# HTTP header 'Content-Type'
|
178
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
179
|
+
|
180
|
+
# form parameters
|
181
|
+
form_params = {}
|
182
|
+
|
183
|
+
# http body (model)
|
184
|
+
post_body = nil
|
185
|
+
auth_names = ['API Key']
|
186
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
187
|
+
:header_params => header_params,
|
188
|
+
:query_params => query_params,
|
189
|
+
:form_params => form_params,
|
190
|
+
:body => post_body,
|
191
|
+
:auth_names => auth_names,
|
192
|
+
:return_type => 'TagResult')
|
193
|
+
if @api_client.config.debugging
|
194
|
+
@api_client.config.logger.debug "API called: TagApi#get_tag_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
195
|
+
end
|
196
|
+
return data, status_code, headers
|
197
|
+
end
|
198
|
+
|
199
|
+
# Get a list of all the tags currently in your station.
|
200
|
+
# Get a list of all the tags currently in your station. This feature supports pagination and will give a maximum results of 50 tags back.
|
201
|
+
# @param [Hash] opts the optional parameters
|
202
|
+
# @option opts [Integer] :page Current page *(Optional)*
|
203
|
+
# @option opts [Integer] :program_id Search on Program ID *(Optional)* `(Relation)`
|
204
|
+
# @option opts [Integer] :item_id Search on Item ID *(Optional)* `(Relation)`
|
205
|
+
# @option opts [Integer] :broadcast_id Search on Broadcast ID *(Optional)* `(Relation)`
|
206
|
+
# @option opts [Integer] :contact_id Search on Contact ID *(Optional)* `(Relation)`
|
207
|
+
# @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
|
208
|
+
# @return [TagResults]
|
209
|
+
def list_tags(opts = {})
|
210
|
+
data, _status_code, _headers = list_tags_with_http_info(opts)
|
211
|
+
return data
|
212
|
+
end
|
213
|
+
|
214
|
+
# Get a list of all the tags currently in your station.
|
215
|
+
# Get a list of all the tags currently in your station. This feature supports pagination and will give a maximum results of 50 tags back.
|
216
|
+
# @param [Hash] opts the optional parameters
|
217
|
+
# @option opts [Integer] :page Current page *(Optional)*
|
218
|
+
# @option opts [Integer] :program_id Search on Program ID *(Optional)* `(Relation)`
|
219
|
+
# @option opts [Integer] :item_id Search on Item ID *(Optional)* `(Relation)`
|
220
|
+
# @option opts [Integer] :broadcast_id Search on Broadcast ID *(Optional)* `(Relation)`
|
221
|
+
# @option opts [Integer] :contact_id Search on Contact ID *(Optional)* `(Relation)`
|
222
|
+
# @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
|
223
|
+
# @return [Array<(TagResults, Fixnum, Hash)>] TagResults data, response status code and response headers
|
224
|
+
def list_tags_with_http_info(opts = {})
|
225
|
+
if @api_client.config.debugging
|
226
|
+
@api_client.config.logger.debug "Calling API: TagApi.list_tags ..."
|
227
|
+
end
|
228
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
229
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling TagApi.list_tags, must be greater than or equal to 1.'
|
230
|
+
end
|
231
|
+
|
232
|
+
# resource path
|
233
|
+
local_var_path = "/tags"
|
234
|
+
|
235
|
+
# query parameters
|
236
|
+
query_params = {}
|
237
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
238
|
+
query_params[:'program_id'] = opts[:'program_id'] if !opts[:'program_id'].nil?
|
239
|
+
query_params[:'item_id'] = opts[:'item_id'] if !opts[:'item_id'].nil?
|
240
|
+
query_params[:'broadcast_id'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
|
241
|
+
query_params[:'contact_id'] = opts[:'contact_id'] if !opts[:'contact_id'].nil?
|
242
|
+
query_params[:'_external_station_id'] = opts[:'_external_station_id'] if !opts[:'_external_station_id'].nil?
|
243
|
+
|
244
|
+
# header parameters
|
245
|
+
header_params = {}
|
246
|
+
# HTTP header 'Accept' (if needed)
|
247
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
248
|
+
# HTTP header 'Content-Type'
|
249
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
250
|
+
|
251
|
+
# form parameters
|
252
|
+
form_params = {}
|
253
|
+
|
254
|
+
# http body (model)
|
255
|
+
post_body = nil
|
256
|
+
auth_names = ['API Key']
|
257
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
258
|
+
:header_params => header_params,
|
259
|
+
:query_params => query_params,
|
260
|
+
:form_params => form_params,
|
261
|
+
:body => post_body,
|
262
|
+
:auth_names => auth_names,
|
263
|
+
:return_type => 'TagResults')
|
264
|
+
if @api_client.config.debugging
|
265
|
+
@api_client.config.logger.debug "API called: TagApi#list_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
266
|
+
end
|
267
|
+
return data, status_code, headers
|
268
|
+
end
|
269
|
+
|
270
|
+
# Update tag by id
|
271
|
+
# Update tag by id
|
272
|
+
# @param id ID of Tag **(Required)**
|
273
|
+
# @param [Hash] opts the optional parameters
|
274
|
+
# @option opts [TagDataInput] :data Data *(Optional)*
|
275
|
+
# @return [Success]
|
276
|
+
def update_tag_by_id(id, opts = {})
|
277
|
+
data, _status_code, _headers = update_tag_by_id_with_http_info(id, opts)
|
278
|
+
return data
|
279
|
+
end
|
280
|
+
|
281
|
+
# Update tag by id
|
282
|
+
# Update tag by id
|
283
|
+
# @param id ID of Tag **(Required)**
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @option opts [TagDataInput] :data Data *(Optional)*
|
286
|
+
# @return [Array<(Success, Fixnum, Hash)>] Success data, response status code and response headers
|
287
|
+
def update_tag_by_id_with_http_info(id, opts = {})
|
288
|
+
if @api_client.config.debugging
|
289
|
+
@api_client.config.logger.debug "Calling API: TagApi.update_tag_by_id ..."
|
290
|
+
end
|
291
|
+
# verify the required parameter 'id' is set
|
292
|
+
if @api_client.config.client_side_validation && id.nil?
|
293
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TagApi.update_tag_by_id"
|
294
|
+
end
|
295
|
+
if @api_client.config.client_side_validation && id < 0
|
296
|
+
fail ArgumentError, 'invalid value for "id" when calling TagApi.update_tag_by_id, must be greater than or equal to 0.'
|
297
|
+
end
|
298
|
+
|
299
|
+
# resource path
|
300
|
+
local_var_path = "/tags/{id}".sub('{' + 'id' + '}', id.to_s)
|
301
|
+
|
302
|
+
# query parameters
|
303
|
+
query_params = {}
|
304
|
+
|
305
|
+
# header parameters
|
306
|
+
header_params = {}
|
307
|
+
# HTTP header 'Accept' (if needed)
|
308
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
309
|
+
# HTTP header 'Content-Type'
|
310
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
311
|
+
|
312
|
+
# form parameters
|
313
|
+
form_params = {}
|
314
|
+
|
315
|
+
# http body (model)
|
316
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
317
|
+
auth_names = ['API Key']
|
318
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
319
|
+
:header_params => header_params,
|
320
|
+
:query_params => query_params,
|
321
|
+
:form_params => form_params,
|
322
|
+
:body => post_body,
|
323
|
+
:auth_names => auth_names,
|
324
|
+
:return_type => 'Success')
|
325
|
+
if @api_client.config.debugging
|
326
|
+
@api_client.config.logger.debug "API called: TagApi#update_tag_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
327
|
+
end
|
328
|
+
return data, status_code, headers
|
329
|
+
end
|
330
|
+
end
|
331
|
+
end
|