radiomanager_client 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,193 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module RadioManagerClient
|
16
|
+
|
17
|
+
class TagDataInput
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'name' => :'name'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.swagger_types
|
30
|
+
{
|
31
|
+
:'name' => :'String'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Initializes the object
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
+
def initialize(attributes = {})
|
38
|
+
return unless attributes.is_a?(Hash)
|
39
|
+
|
40
|
+
# convert string to symbol for hash key
|
41
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
42
|
+
|
43
|
+
if attributes.has_key?(:'name')
|
44
|
+
self.name = attributes[:'name']
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
50
|
+
# @return Array for valid properies with the reasons
|
51
|
+
def list_invalid_properties
|
52
|
+
invalid_properties = Array.new
|
53
|
+
if @name.nil?
|
54
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
55
|
+
end
|
56
|
+
|
57
|
+
return invalid_properties
|
58
|
+
end
|
59
|
+
|
60
|
+
# Check to see if the all the properties in the model are valid
|
61
|
+
# @return true if the model is valid
|
62
|
+
def valid?
|
63
|
+
return false if @name.nil?
|
64
|
+
return true
|
65
|
+
end
|
66
|
+
|
67
|
+
# Checks equality by comparing each attribute.
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def ==(o)
|
70
|
+
return true if self.equal?(o)
|
71
|
+
self.class == o.class &&
|
72
|
+
name == o.name
|
73
|
+
end
|
74
|
+
|
75
|
+
# @see the `==` method
|
76
|
+
# @param [Object] Object to be compared
|
77
|
+
def eql?(o)
|
78
|
+
self == o
|
79
|
+
end
|
80
|
+
|
81
|
+
# Calculates hash code according to all attributes.
|
82
|
+
# @return [Fixnum] Hash code
|
83
|
+
def hash
|
84
|
+
[name].hash
|
85
|
+
end
|
86
|
+
|
87
|
+
# Builds the object from hash
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
89
|
+
# @return [Object] Returns the model itself
|
90
|
+
def build_from_hash(attributes)
|
91
|
+
return nil unless attributes.is_a?(Hash)
|
92
|
+
self.class.swagger_types.each_pair do |key, type|
|
93
|
+
if type =~ /\AArray<(.*)>/i
|
94
|
+
# check to ensure the input is an array given that the the attribute
|
95
|
+
# is documented as an array but the input is not
|
96
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
97
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
98
|
+
end
|
99
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
100
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
101
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
102
|
+
end
|
103
|
+
|
104
|
+
self
|
105
|
+
end
|
106
|
+
|
107
|
+
# Deserializes the data based on type
|
108
|
+
# @param string type Data type
|
109
|
+
# @param string value Value to be deserialized
|
110
|
+
# @return [Object] Deserialized data
|
111
|
+
def _deserialize(type, value)
|
112
|
+
case type.to_sym
|
113
|
+
when :DateTime
|
114
|
+
DateTime.parse(value)
|
115
|
+
when :Date
|
116
|
+
Date.parse(value)
|
117
|
+
when :String
|
118
|
+
value.to_s
|
119
|
+
when :Integer
|
120
|
+
value.to_i
|
121
|
+
when :Float
|
122
|
+
value.to_f
|
123
|
+
when :BOOLEAN
|
124
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
125
|
+
true
|
126
|
+
else
|
127
|
+
false
|
128
|
+
end
|
129
|
+
when :Object
|
130
|
+
# generic object (usually a Hash), return directly
|
131
|
+
value
|
132
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
133
|
+
inner_type = Regexp.last_match[:inner_type]
|
134
|
+
value.map { |v| _deserialize(inner_type, v) }
|
135
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
136
|
+
k_type = Regexp.last_match[:k_type]
|
137
|
+
v_type = Regexp.last_match[:v_type]
|
138
|
+
{}.tap do |hash|
|
139
|
+
value.each do |k, v|
|
140
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
else # model
|
144
|
+
temp_model = RadioManagerClient.const_get(type).new
|
145
|
+
temp_model.build_from_hash(value)
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# Returns the string representation of the object
|
150
|
+
# @return [String] String presentation of the object
|
151
|
+
def to_s
|
152
|
+
to_hash.to_s
|
153
|
+
end
|
154
|
+
|
155
|
+
# to_body is an alias to to_hash (backward compatibility)
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
157
|
+
def to_body
|
158
|
+
to_hash
|
159
|
+
end
|
160
|
+
|
161
|
+
# Returns the object in the form of hash
|
162
|
+
# @return [Hash] Returns the object in the form of hash
|
163
|
+
def to_hash
|
164
|
+
hash = {}
|
165
|
+
self.class.attribute_map.each_pair do |attr, param|
|
166
|
+
value = self.send(attr)
|
167
|
+
next if value.nil?
|
168
|
+
hash[param] = _to_hash(value)
|
169
|
+
end
|
170
|
+
hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Outputs non-array value in the form of hash
|
174
|
+
# For object, use to_hash. Otherwise, just return the value
|
175
|
+
# @param [Object] value Any valid value
|
176
|
+
# @return [Hash] Returns the value in the form of hash
|
177
|
+
def _to_hash(value)
|
178
|
+
if value.is_a?(Array)
|
179
|
+
value.compact.map{ |v| _to_hash(v) }
|
180
|
+
elsif value.is_a?(Hash)
|
181
|
+
{}.tap do |hash|
|
182
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
183
|
+
end
|
184
|
+
elsif value.respond_to? :to_hash
|
185
|
+
value.to_hash
|
186
|
+
else
|
187
|
+
value
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
end
|
192
|
+
|
193
|
+
end
|
@@ -0,0 +1,229 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module RadioManagerClient
|
16
|
+
|
17
|
+
class TagOutputOnly
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
22
|
+
attr_accessor :updated_at
|
23
|
+
|
24
|
+
attr_accessor :deleted_at
|
25
|
+
|
26
|
+
attr_accessor :_external_station_id
|
27
|
+
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'id' => :'id',
|
33
|
+
:'created_at' => :'created_at',
|
34
|
+
:'updated_at' => :'updated_at',
|
35
|
+
:'deleted_at' => :'deleted_at',
|
36
|
+
:'_external_station_id' => :'_external_station_id'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.swagger_types
|
42
|
+
{
|
43
|
+
:'id' => :'Integer',
|
44
|
+
:'created_at' => :'DateTime',
|
45
|
+
:'updated_at' => :'DateTime',
|
46
|
+
:'deleted_at' => :'DateTime',
|
47
|
+
:'_external_station_id' => :'Integer'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
return unless attributes.is_a?(Hash)
|
55
|
+
|
56
|
+
# convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
58
|
+
|
59
|
+
if attributes.has_key?(:'id')
|
60
|
+
self.id = attributes[:'id']
|
61
|
+
end
|
62
|
+
|
63
|
+
if attributes.has_key?(:'created_at')
|
64
|
+
self.created_at = attributes[:'created_at']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'updated_at')
|
68
|
+
self.updated_at = attributes[:'updated_at']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'deleted_at')
|
72
|
+
self.deleted_at = attributes[:'deleted_at']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'_external_station_id')
|
76
|
+
self._external_station_id = attributes[:'_external_station_id']
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properies with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
if @id.nil?
|
86
|
+
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
87
|
+
end
|
88
|
+
|
89
|
+
return invalid_properties
|
90
|
+
end
|
91
|
+
|
92
|
+
# Check to see if the all the properties in the model are valid
|
93
|
+
# @return true if the model is valid
|
94
|
+
def valid?
|
95
|
+
return false if @id.nil?
|
96
|
+
return true
|
97
|
+
end
|
98
|
+
|
99
|
+
# Checks equality by comparing each attribute.
|
100
|
+
# @param [Object] Object to be compared
|
101
|
+
def ==(o)
|
102
|
+
return true if self.equal?(o)
|
103
|
+
self.class == o.class &&
|
104
|
+
id == o.id &&
|
105
|
+
created_at == o.created_at &&
|
106
|
+
updated_at == o.updated_at &&
|
107
|
+
deleted_at == o.deleted_at &&
|
108
|
+
_external_station_id == o._external_station_id
|
109
|
+
end
|
110
|
+
|
111
|
+
# @see the `==` method
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def eql?(o)
|
114
|
+
self == o
|
115
|
+
end
|
116
|
+
|
117
|
+
# Calculates hash code according to all attributes.
|
118
|
+
# @return [Fixnum] Hash code
|
119
|
+
def hash
|
120
|
+
[id, created_at, updated_at, deleted_at, _external_station_id].hash
|
121
|
+
end
|
122
|
+
|
123
|
+
# Builds the object from hash
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
+
# @return [Object] Returns the model itself
|
126
|
+
def build_from_hash(attributes)
|
127
|
+
return nil unless attributes.is_a?(Hash)
|
128
|
+
self.class.swagger_types.each_pair do |key, type|
|
129
|
+
if type =~ /\AArray<(.*)>/i
|
130
|
+
# check to ensure the input is an array given that the the attribute
|
131
|
+
# is documented as an array but the input is not
|
132
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
133
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
134
|
+
end
|
135
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
136
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
137
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
138
|
+
end
|
139
|
+
|
140
|
+
self
|
141
|
+
end
|
142
|
+
|
143
|
+
# Deserializes the data based on type
|
144
|
+
# @param string type Data type
|
145
|
+
# @param string value Value to be deserialized
|
146
|
+
# @return [Object] Deserialized data
|
147
|
+
def _deserialize(type, value)
|
148
|
+
case type.to_sym
|
149
|
+
when :DateTime
|
150
|
+
DateTime.parse(value)
|
151
|
+
when :Date
|
152
|
+
Date.parse(value)
|
153
|
+
when :String
|
154
|
+
value.to_s
|
155
|
+
when :Integer
|
156
|
+
value.to_i
|
157
|
+
when :Float
|
158
|
+
value.to_f
|
159
|
+
when :BOOLEAN
|
160
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
161
|
+
true
|
162
|
+
else
|
163
|
+
false
|
164
|
+
end
|
165
|
+
when :Object
|
166
|
+
# generic object (usually a Hash), return directly
|
167
|
+
value
|
168
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
169
|
+
inner_type = Regexp.last_match[:inner_type]
|
170
|
+
value.map { |v| _deserialize(inner_type, v) }
|
171
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
172
|
+
k_type = Regexp.last_match[:k_type]
|
173
|
+
v_type = Regexp.last_match[:v_type]
|
174
|
+
{}.tap do |hash|
|
175
|
+
value.each do |k, v|
|
176
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
else # model
|
180
|
+
temp_model = RadioManagerClient.const_get(type).new
|
181
|
+
temp_model.build_from_hash(value)
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
# Returns the string representation of the object
|
186
|
+
# @return [String] String presentation of the object
|
187
|
+
def to_s
|
188
|
+
to_hash.to_s
|
189
|
+
end
|
190
|
+
|
191
|
+
# to_body is an alias to to_hash (backward compatibility)
|
192
|
+
# @return [Hash] Returns the object in the form of hash
|
193
|
+
def to_body
|
194
|
+
to_hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Returns the object in the form of hash
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
199
|
+
def to_hash
|
200
|
+
hash = {}
|
201
|
+
self.class.attribute_map.each_pair do |attr, param|
|
202
|
+
value = self.send(attr)
|
203
|
+
next if value.nil?
|
204
|
+
hash[param] = _to_hash(value)
|
205
|
+
end
|
206
|
+
hash
|
207
|
+
end
|
208
|
+
|
209
|
+
# Outputs non-array value in the form of hash
|
210
|
+
# For object, use to_hash. Otherwise, just return the value
|
211
|
+
# @param [Object] value Any valid value
|
212
|
+
# @return [Hash] Returns the value in the form of hash
|
213
|
+
def _to_hash(value)
|
214
|
+
if value.is_a?(Array)
|
215
|
+
value.compact.map{ |v| _to_hash(v) }
|
216
|
+
elsif value.is_a?(Hash)
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
+
end
|
220
|
+
elsif value.respond_to? :to_hash
|
221
|
+
value.to_hash
|
222
|
+
else
|
223
|
+
value
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
@@ -0,0 +1,215 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module RadioManagerClient
|
16
|
+
|
17
|
+
class TagRelations
|
18
|
+
attr_accessor :broadcasts
|
19
|
+
|
20
|
+
attr_accessor :programs
|
21
|
+
|
22
|
+
attr_accessor :contacts
|
23
|
+
|
24
|
+
attr_accessor :items
|
25
|
+
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'broadcasts' => :'broadcasts',
|
31
|
+
:'programs' => :'programs',
|
32
|
+
:'contacts' => :'contacts',
|
33
|
+
:'items' => :'items'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.swagger_types
|
39
|
+
{
|
40
|
+
:'broadcasts' => :'TagRelationsBroadcasts',
|
41
|
+
:'programs' => :'TagRelationsPrograms',
|
42
|
+
:'contacts' => :'TagRelationsContacts',
|
43
|
+
:'items' => :'TagRelationsItems'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
return unless attributes.is_a?(Hash)
|
51
|
+
|
52
|
+
# convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
54
|
+
|
55
|
+
if attributes.has_key?(:'broadcasts')
|
56
|
+
self.broadcasts = attributes[:'broadcasts']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'programs')
|
60
|
+
self.programs = attributes[:'programs']
|
61
|
+
end
|
62
|
+
|
63
|
+
if attributes.has_key?(:'contacts')
|
64
|
+
self.contacts = attributes[:'contacts']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'items')
|
68
|
+
self.items = attributes[:'items']
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properies with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
return invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
return true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
broadcasts == o.broadcasts &&
|
92
|
+
programs == o.programs &&
|
93
|
+
contacts == o.contacts &&
|
94
|
+
items == o.items
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(o)
|
100
|
+
self == o
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Fixnum] Hash code
|
105
|
+
def hash
|
106
|
+
[broadcasts, programs, contacts, items].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def build_from_hash(attributes)
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
114
|
+
self.class.swagger_types.each_pair do |key, type|
|
115
|
+
if type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
120
|
+
end
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
DateTime.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :BOOLEAN
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
temp_model = RadioManagerClient.const_get(type).new
|
167
|
+
temp_model.build_from_hash(value)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the string representation of the object
|
172
|
+
# @return [String] String presentation of the object
|
173
|
+
def to_s
|
174
|
+
to_hash.to_s
|
175
|
+
end
|
176
|
+
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_body
|
180
|
+
to_hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the object in the form of hash
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
next if value.nil?
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Outputs non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
# @param [Object] value Any valid value
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
199
|
+
def _to_hash(value)
|
200
|
+
if value.is_a?(Array)
|
201
|
+
value.compact.map{ |v| _to_hash(v) }
|
202
|
+
elsif value.is_a?(Hash)
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
+
end
|
206
|
+
elsif value.respond_to? :to_hash
|
207
|
+
value.to_hash
|
208
|
+
else
|
209
|
+
value
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
end
|
214
|
+
|
215
|
+
end
|