radiomanager_client 1.0.87 → 1.0.89

Sign up to get free protection for your applications and to get access to all the features.
Files changed (335) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -2
  3. data/docs/EPGBroadcast.md +2 -2
  4. data/docs/Story.md +12 -0
  5. data/docs/StoryApi.md +300 -0
  6. data/docs/StoryDataInput.md +12 -0
  7. data/docs/StoryOutputOnly.md +12 -0
  8. data/docs/StoryRelations.md +10 -0
  9. data/docs/StoryRelationsItems.md +11 -0
  10. data/docs/StoryRelationsTags.md +11 -0
  11. data/docs/StoryRelationsTagsParams.md +8 -0
  12. data/docs/StoryResult.md +20 -0
  13. data/docs/StoryResults.md +17 -0
  14. data/lib/radiomanager_client/api/block_api.rb +3 -3
  15. data/lib/radiomanager_client/api/broadcast_api.rb +3 -3
  16. data/lib/radiomanager_client/api/campaign_api.rb +2 -2
  17. data/lib/radiomanager_client/api/contact_api.rb +2 -2
  18. data/lib/radiomanager_client/api/external_message_api.rb +2 -2
  19. data/lib/radiomanager_client/api/genre_api.rb +2 -2
  20. data/lib/radiomanager_client/api/item_api.rb +2 -2
  21. data/lib/radiomanager_client/api/model_type_api.rb +2 -2
  22. data/lib/radiomanager_client/api/presenter_api.rb +2 -2
  23. data/lib/radiomanager_client/api/program_api.rb +2 -2
  24. data/lib/radiomanager_client/api/story_api.rb +328 -0
  25. data/lib/radiomanager_client/api/string_api.rb +2 -2
  26. data/lib/radiomanager_client/api/tag_api.rb +2 -2
  27. data/lib/radiomanager_client/api/user_api.rb +2 -2
  28. data/lib/radiomanager_client/api/visual_slide_api.rb +2 -2
  29. data/lib/radiomanager_client/api_client.rb +2 -2
  30. data/lib/radiomanager_client/api_error.rb +2 -2
  31. data/lib/radiomanager_client/configuration.rb +2 -2
  32. data/lib/radiomanager_client/models/block.rb +2 -2
  33. data/lib/radiomanager_client/models/block_relations.rb +2 -2
  34. data/lib/radiomanager_client/models/block_relations_broadcast.rb +2 -2
  35. data/lib/radiomanager_client/models/block_relations_broadcast_params.rb +2 -2
  36. data/lib/radiomanager_client/models/block_relations_items.rb +2 -2
  37. data/lib/radiomanager_client/models/block_relations_items_params.rb +2 -2
  38. data/lib/radiomanager_client/models/block_relations_program.rb +2 -2
  39. data/lib/radiomanager_client/models/block_result.rb +2 -2
  40. data/lib/radiomanager_client/models/block_results.rb +2 -2
  41. data/lib/radiomanager_client/models/broadcast.rb +2 -2
  42. data/lib/radiomanager_client/models/broadcast_data_input.rb +2 -2
  43. data/lib/radiomanager_client/models/broadcast_field_values.rb +2 -2
  44. data/lib/radiomanager_client/models/broadcast_input_only.rb +2 -2
  45. data/lib/radiomanager_client/models/broadcast_output_only.rb +2 -2
  46. data/lib/radiomanager_client/models/broadcast_relations.rb +2 -2
  47. data/lib/radiomanager_client/models/broadcast_relations_blocks.rb +2 -2
  48. data/lib/radiomanager_client/models/broadcast_relations_items.rb +2 -2
  49. data/lib/radiomanager_client/models/broadcast_relations_items_params.rb +2 -2
  50. data/lib/radiomanager_client/models/broadcast_relations_model_type.rb +2 -2
  51. data/lib/radiomanager_client/models/broadcast_relations_presenters.rb +2 -2
  52. data/lib/radiomanager_client/models/broadcast_relations_tags.rb +2 -2
  53. data/lib/radiomanager_client/models/broadcast_result.rb +2 -2
  54. data/lib/radiomanager_client/models/broadcast_results.rb +2 -2
  55. data/lib/radiomanager_client/models/campaign.rb +2 -2
  56. data/lib/radiomanager_client/models/campaign_data_input.rb +2 -2
  57. data/lib/radiomanager_client/models/campaign_output_only.rb +2 -2
  58. data/lib/radiomanager_client/models/campaign_relations.rb +2 -2
  59. data/lib/radiomanager_client/models/campaign_relations_items.rb +2 -2
  60. data/lib/radiomanager_client/models/campaign_relations_items_params.rb +2 -2
  61. data/lib/radiomanager_client/models/campaign_result.rb +2 -2
  62. data/lib/radiomanager_client/models/campaign_results.rb +2 -2
  63. data/lib/radiomanager_client/models/contact.rb +2 -2
  64. data/lib/radiomanager_client/models/contact_data_input.rb +2 -2
  65. data/lib/radiomanager_client/models/contact_field_values.rb +2 -2
  66. data/lib/radiomanager_client/models/contact_output_only.rb +2 -2
  67. data/lib/radiomanager_client/models/contact_relations.rb +2 -2
  68. data/lib/radiomanager_client/models/contact_relations_items.rb +2 -2
  69. data/lib/radiomanager_client/models/contact_relations_tags.rb +2 -2
  70. data/lib/radiomanager_client/models/contact_relations_tags_params.rb +2 -2
  71. data/lib/radiomanager_client/models/contact_result.rb +2 -2
  72. data/lib/radiomanager_client/models/contact_results.rb +2 -2
  73. data/lib/radiomanager_client/models/data.rb +2 -2
  74. data/lib/radiomanager_client/models/data_1.rb +2 -2
  75. data/lib/radiomanager_client/models/epg_broadcast.rb +4 -4
  76. data/lib/radiomanager_client/models/external_message_queue_data.rb +2 -2
  77. data/lib/radiomanager_client/models/forbidden.rb +2 -2
  78. data/lib/radiomanager_client/models/genre.rb +2 -2
  79. data/lib/radiomanager_client/models/genre_output_only.rb +2 -2
  80. data/lib/radiomanager_client/models/genre_relations.rb +2 -2
  81. data/lib/radiomanager_client/models/genre_relations_broadcasts.rb +2 -2
  82. data/lib/radiomanager_client/models/genre_relations_broadcasts_params.rb +2 -2
  83. data/lib/radiomanager_client/models/genre_relations_programs.rb +2 -2
  84. data/lib/radiomanager_client/models/genre_result.rb +2 -2
  85. data/lib/radiomanager_client/models/genre_results.rb +2 -2
  86. data/lib/radiomanager_client/models/import_item.rb +2 -2
  87. data/lib/radiomanager_client/models/import_item_field_values.rb +2 -2
  88. data/lib/radiomanager_client/models/inline_response_202.rb +2 -2
  89. data/lib/radiomanager_client/models/internal_server_error.rb +2 -2
  90. data/lib/radiomanager_client/models/invite_user_data.rb +2 -2
  91. data/lib/radiomanager_client/models/invite_user_success.rb +2 -2
  92. data/lib/radiomanager_client/models/item.rb +2 -2
  93. data/lib/radiomanager_client/models/item_data_input.rb +2 -2
  94. data/lib/radiomanager_client/models/item_input_only.rb +2 -2
  95. data/lib/radiomanager_client/models/item_output_only.rb +2 -2
  96. data/lib/radiomanager_client/models/item_relations.rb +2 -2
  97. data/lib/radiomanager_client/models/item_relations_block.rb +2 -2
  98. data/lib/radiomanager_client/models/item_relations_campaign.rb +2 -2
  99. data/lib/radiomanager_client/models/item_relations_contacts.rb +2 -2
  100. data/lib/radiomanager_client/models/item_relations_contacts_params.rb +2 -2
  101. data/lib/radiomanager_client/models/item_relations_program.rb +2 -2
  102. data/lib/radiomanager_client/models/item_relations_tags.rb +2 -2
  103. data/lib/radiomanager_client/models/item_result.rb +2 -2
  104. data/lib/radiomanager_client/models/item_results.rb +2 -2
  105. data/lib/radiomanager_client/models/model_type.rb +2 -2
  106. data/lib/radiomanager_client/models/model_type_options.rb +2 -2
  107. data/lib/radiomanager_client/models/model_type_output_only.rb +2 -2
  108. data/lib/radiomanager_client/models/model_type_relations.rb +2 -2
  109. data/lib/radiomanager_client/models/model_type_relations_broadcasts.rb +2 -2
  110. data/lib/radiomanager_client/models/model_type_relations_campaigns.rb +2 -2
  111. data/lib/radiomanager_client/models/model_type_relations_campaigns_params.rb +2 -2
  112. data/lib/radiomanager_client/models/model_type_relations_contacts.rb +2 -2
  113. data/lib/radiomanager_client/models/model_type_relations_items.rb +2 -2
  114. data/lib/radiomanager_client/models/model_type_relations_presenters.rb +2 -2
  115. data/lib/radiomanager_client/models/model_type_relations_programs.rb +2 -2
  116. data/lib/radiomanager_client/models/model_type_result.rb +2 -2
  117. data/lib/radiomanager_client/models/model_type_results.rb +2 -2
  118. data/lib/radiomanager_client/models/not_found.rb +2 -2
  119. data/lib/radiomanager_client/models/post_success.rb +2 -2
  120. data/lib/radiomanager_client/models/presenter.rb +2 -2
  121. data/lib/radiomanager_client/models/presenter_data_input.rb +2 -2
  122. data/lib/radiomanager_client/models/presenter_output_only.rb +2 -2
  123. data/lib/radiomanager_client/models/presenter_relations.rb +2 -2
  124. data/lib/radiomanager_client/models/presenter_relations_broadcasts.rb +2 -2
  125. data/lib/radiomanager_client/models/presenter_relations_programs.rb +2 -2
  126. data/lib/radiomanager_client/models/presenter_relations_programs_params.rb +2 -2
  127. data/lib/radiomanager_client/models/presenter_result.rb +2 -2
  128. data/lib/radiomanager_client/models/presenter_results.rb +2 -2
  129. data/lib/radiomanager_client/models/program.rb +2 -2
  130. data/lib/radiomanager_client/models/program_data_input.rb +2 -2
  131. data/lib/radiomanager_client/models/program_field_values.rb +2 -2
  132. data/lib/radiomanager_client/models/program_input_only.rb +2 -2
  133. data/lib/radiomanager_client/models/program_output_only.rb +2 -2
  134. data/lib/radiomanager_client/models/program_relations.rb +2 -2
  135. data/lib/radiomanager_client/models/program_relations_blocks.rb +2 -2
  136. data/lib/radiomanager_client/models/program_relations_broadcasts.rb +2 -2
  137. data/lib/radiomanager_client/models/program_relations_items.rb +2 -2
  138. data/lib/radiomanager_client/models/program_relations_items_params.rb +2 -2
  139. data/lib/radiomanager_client/models/program_relations_presenters.rb +2 -2
  140. data/lib/radiomanager_client/models/program_relations_tags.rb +2 -2
  141. data/lib/radiomanager_client/models/program_result.rb +2 -2
  142. data/lib/radiomanager_client/models/program_results.rb +2 -2
  143. data/lib/radiomanager_client/models/read_only.rb +2 -2
  144. data/lib/radiomanager_client/models/relations_placeholder.rb +2 -2
  145. data/lib/radiomanager_client/models/story.rb +234 -0
  146. data/lib/radiomanager_client/models/story_data_input.rb +234 -0
  147. data/lib/radiomanager_client/models/story_output_only.rb +224 -0
  148. data/lib/radiomanager_client/models/story_relations.rb +206 -0
  149. data/lib/radiomanager_client/models/story_relations_items.rb +215 -0
  150. data/lib/radiomanager_client/models/story_relations_tags.rb +215 -0
  151. data/lib/radiomanager_client/models/story_relations_tags_params.rb +188 -0
  152. data/lib/radiomanager_client/models/story_result.rb +306 -0
  153. data/lib/radiomanager_client/models/story_results.rb +271 -0
  154. data/lib/radiomanager_client/models/success.rb +2 -2
  155. data/lib/radiomanager_client/models/tag.rb +2 -2
  156. data/lib/radiomanager_client/models/tag_data_input.rb +2 -2
  157. data/lib/radiomanager_client/models/tag_output_only.rb +2 -2
  158. data/lib/radiomanager_client/models/tag_relations.rb +2 -2
  159. data/lib/radiomanager_client/models/tag_relations_broadcasts.rb +2 -2
  160. data/lib/radiomanager_client/models/tag_relations_broadcasts_params.rb +2 -2
  161. data/lib/radiomanager_client/models/tag_relations_contacts.rb +2 -2
  162. data/lib/radiomanager_client/models/tag_relations_items.rb +2 -2
  163. data/lib/radiomanager_client/models/tag_relations_programs.rb +2 -2
  164. data/lib/radiomanager_client/models/tag_result.rb +2 -2
  165. data/lib/radiomanager_client/models/tag_results.rb +2 -2
  166. data/lib/radiomanager_client/models/text_string.rb +2 -2
  167. data/lib/radiomanager_client/models/too_many_requests.rb +2 -2
  168. data/lib/radiomanager_client/models/unprocessable_entity.rb +2 -2
  169. data/lib/radiomanager_client/models/user_result.rb +2 -2
  170. data/lib/radiomanager_client/models/user_result_settings.rb +2 -2
  171. data/lib/radiomanager_client/models/user_results.rb +2 -2
  172. data/lib/radiomanager_client/models/visual_result.rb +2 -2
  173. data/lib/radiomanager_client/version.rb +2 -2
  174. data/lib/radiomanager_client.rb +12 -2
  175. data/radiomanager_client.gemspec +3 -3
  176. data/spec/api/block_api_spec.rb +2 -2
  177. data/spec/api/broadcast_api_spec.rb +2 -2
  178. data/spec/api/campaign_api_spec.rb +2 -2
  179. data/spec/api/contact_api_spec.rb +2 -2
  180. data/spec/api/external_message_api_spec.rb +2 -2
  181. data/spec/api/genre_api_spec.rb +2 -2
  182. data/spec/api/item_api_spec.rb +2 -2
  183. data/spec/api/model_type_api_spec.rb +2 -2
  184. data/spec/api/presenter_api_spec.rb +2 -2
  185. data/spec/api/program_api_spec.rb +2 -2
  186. data/spec/api/story_api_spec.rb +101 -0
  187. data/spec/api/string_api_spec.rb +2 -2
  188. data/spec/api/tag_api_spec.rb +2 -2
  189. data/spec/api/user_api_spec.rb +2 -2
  190. data/spec/api/visual_slide_api_spec.rb +2 -2
  191. data/spec/api_client_spec.rb +2 -2
  192. data/spec/configuration_spec.rb +2 -2
  193. data/spec/models/block_relations_broadcast_params_spec.rb +2 -2
  194. data/spec/models/block_relations_broadcast_spec.rb +2 -2
  195. data/spec/models/block_relations_items_params_spec.rb +2 -2
  196. data/spec/models/block_relations_items_spec.rb +2 -2
  197. data/spec/models/block_relations_program_spec.rb +2 -2
  198. data/spec/models/block_relations_spec.rb +2 -2
  199. data/spec/models/block_result_spec.rb +2 -2
  200. data/spec/models/block_results_spec.rb +2 -2
  201. data/spec/models/block_spec.rb +2 -2
  202. data/spec/models/broadcast_data_input_spec.rb +2 -2
  203. data/spec/models/broadcast_field_values_spec.rb +2 -2
  204. data/spec/models/broadcast_input_only_spec.rb +2 -2
  205. data/spec/models/broadcast_output_only_spec.rb +2 -2
  206. data/spec/models/broadcast_relations_blocks_spec.rb +2 -2
  207. data/spec/models/broadcast_relations_items_params_spec.rb +2 -2
  208. data/spec/models/broadcast_relations_items_spec.rb +2 -2
  209. data/spec/models/broadcast_relations_model_type_spec.rb +2 -2
  210. data/spec/models/broadcast_relations_presenters_spec.rb +2 -2
  211. data/spec/models/broadcast_relations_spec.rb +2 -2
  212. data/spec/models/broadcast_relations_tags_spec.rb +2 -2
  213. data/spec/models/broadcast_result_spec.rb +2 -2
  214. data/spec/models/broadcast_results_spec.rb +2 -2
  215. data/spec/models/broadcast_spec.rb +2 -2
  216. data/spec/models/campaign_data_input_spec.rb +2 -2
  217. data/spec/models/campaign_output_only_spec.rb +2 -2
  218. data/spec/models/campaign_relations_items_params_spec.rb +2 -2
  219. data/spec/models/campaign_relations_items_spec.rb +2 -2
  220. data/spec/models/campaign_relations_spec.rb +2 -2
  221. data/spec/models/campaign_result_spec.rb +2 -2
  222. data/spec/models/campaign_results_spec.rb +2 -2
  223. data/spec/models/campaign_spec.rb +2 -2
  224. data/spec/models/contact_data_input_spec.rb +2 -2
  225. data/spec/models/contact_field_values_spec.rb +2 -2
  226. data/spec/models/contact_output_only_spec.rb +2 -2
  227. data/spec/models/contact_relations_items_spec.rb +2 -2
  228. data/spec/models/contact_relations_spec.rb +2 -2
  229. data/spec/models/contact_relations_tags_params_spec.rb +2 -2
  230. data/spec/models/contact_relations_tags_spec.rb +2 -2
  231. data/spec/models/contact_result_spec.rb +2 -2
  232. data/spec/models/contact_results_spec.rb +2 -2
  233. data/spec/models/contact_spec.rb +2 -2
  234. data/spec/models/data_1_spec.rb +2 -2
  235. data/spec/models/data_spec.rb +2 -2
  236. data/spec/models/epg_broadcast_spec.rb +2 -2
  237. data/spec/models/external_message_queue_data_spec.rb +2 -2
  238. data/spec/models/forbidden_spec.rb +2 -2
  239. data/spec/models/genre_output_only_spec.rb +2 -2
  240. data/spec/models/genre_relations_broadcasts_params_spec.rb +2 -2
  241. data/spec/models/genre_relations_broadcasts_spec.rb +2 -2
  242. data/spec/models/genre_relations_programs_spec.rb +2 -2
  243. data/spec/models/genre_relations_spec.rb +2 -2
  244. data/spec/models/genre_result_spec.rb +2 -2
  245. data/spec/models/genre_results_spec.rb +2 -2
  246. data/spec/models/genre_spec.rb +2 -2
  247. data/spec/models/import_item_field_values_spec.rb +2 -2
  248. data/spec/models/import_item_spec.rb +2 -2
  249. data/spec/models/inline_response_202_spec.rb +2 -2
  250. data/spec/models/internal_server_error_spec.rb +2 -2
  251. data/spec/models/invite_user_data_spec.rb +2 -2
  252. data/spec/models/invite_user_success_spec.rb +2 -2
  253. data/spec/models/item_data_input_spec.rb +2 -2
  254. data/spec/models/item_input_only_spec.rb +2 -2
  255. data/spec/models/item_output_only_spec.rb +2 -2
  256. data/spec/models/item_relations_block_spec.rb +2 -2
  257. data/spec/models/item_relations_campaign_spec.rb +2 -2
  258. data/spec/models/item_relations_contacts_params_spec.rb +2 -2
  259. data/spec/models/item_relations_contacts_spec.rb +2 -2
  260. data/spec/models/item_relations_program_spec.rb +2 -2
  261. data/spec/models/item_relations_spec.rb +2 -2
  262. data/spec/models/item_relations_tags_spec.rb +2 -2
  263. data/spec/models/item_result_spec.rb +2 -2
  264. data/spec/models/item_results_spec.rb +2 -2
  265. data/spec/models/item_spec.rb +2 -2
  266. data/spec/models/model_type_options_spec.rb +2 -2
  267. data/spec/models/model_type_output_only_spec.rb +2 -2
  268. data/spec/models/model_type_relations_broadcasts_spec.rb +2 -2
  269. data/spec/models/model_type_relations_campaigns_params_spec.rb +2 -2
  270. data/spec/models/model_type_relations_campaigns_spec.rb +2 -2
  271. data/spec/models/model_type_relations_contacts_spec.rb +2 -2
  272. data/spec/models/model_type_relations_items_spec.rb +2 -2
  273. data/spec/models/model_type_relations_presenters_spec.rb +2 -2
  274. data/spec/models/model_type_relations_programs_spec.rb +2 -2
  275. data/spec/models/model_type_relations_spec.rb +2 -2
  276. data/spec/models/model_type_result_spec.rb +2 -2
  277. data/spec/models/model_type_results_spec.rb +2 -2
  278. data/spec/models/model_type_spec.rb +2 -2
  279. data/spec/models/not_found_spec.rb +2 -2
  280. data/spec/models/post_success_spec.rb +2 -2
  281. data/spec/models/presenter_data_input_spec.rb +2 -2
  282. data/spec/models/presenter_output_only_spec.rb +2 -2
  283. data/spec/models/presenter_relations_broadcasts_spec.rb +2 -2
  284. data/spec/models/presenter_relations_programs_params_spec.rb +2 -2
  285. data/spec/models/presenter_relations_programs_spec.rb +2 -2
  286. data/spec/models/presenter_relations_spec.rb +2 -2
  287. data/spec/models/presenter_result_spec.rb +2 -2
  288. data/spec/models/presenter_results_spec.rb +2 -2
  289. data/spec/models/presenter_spec.rb +2 -2
  290. data/spec/models/program_data_input_spec.rb +2 -2
  291. data/spec/models/program_field_values_spec.rb +2 -2
  292. data/spec/models/program_input_only_spec.rb +2 -2
  293. data/spec/models/program_output_only_spec.rb +2 -2
  294. data/spec/models/program_relations_blocks_spec.rb +2 -2
  295. data/spec/models/program_relations_broadcasts_spec.rb +2 -2
  296. data/spec/models/program_relations_items_params_spec.rb +2 -2
  297. data/spec/models/program_relations_items_spec.rb +2 -2
  298. data/spec/models/program_relations_presenters_spec.rb +2 -2
  299. data/spec/models/program_relations_spec.rb +2 -2
  300. data/spec/models/program_relations_tags_spec.rb +2 -2
  301. data/spec/models/program_result_spec.rb +2 -2
  302. data/spec/models/program_results_spec.rb +2 -2
  303. data/spec/models/program_spec.rb +2 -2
  304. data/spec/models/read_only_spec.rb +2 -2
  305. data/spec/models/relations_placeholder_spec.rb +2 -2
  306. data/spec/models/story_data_input_spec.rb +66 -0
  307. data/spec/models/story_output_only_spec.rb +66 -0
  308. data/spec/models/story_relations_items_spec.rb +60 -0
  309. data/spec/models/story_relations_spec.rb +54 -0
  310. data/spec/models/story_relations_tags_params_spec.rb +42 -0
  311. data/spec/models/story_relations_tags_spec.rb +60 -0
  312. data/spec/models/story_result_spec.rb +114 -0
  313. data/spec/models/story_results_spec.rb +96 -0
  314. data/spec/models/story_spec.rb +66 -0
  315. data/spec/models/success_spec.rb +2 -2
  316. data/spec/models/tag_data_input_spec.rb +2 -2
  317. data/spec/models/tag_output_only_spec.rb +2 -2
  318. data/spec/models/tag_relations_broadcasts_params_spec.rb +2 -2
  319. data/spec/models/tag_relations_broadcasts_spec.rb +2 -2
  320. data/spec/models/tag_relations_contacts_spec.rb +2 -2
  321. data/spec/models/tag_relations_items_spec.rb +2 -2
  322. data/spec/models/tag_relations_programs_spec.rb +2 -2
  323. data/spec/models/tag_relations_spec.rb +2 -2
  324. data/spec/models/tag_result_spec.rb +2 -2
  325. data/spec/models/tag_results_spec.rb +2 -2
  326. data/spec/models/tag_spec.rb +2 -2
  327. data/spec/models/text_string_spec.rb +2 -2
  328. data/spec/models/too_many_requests_spec.rb +2 -2
  329. data/spec/models/unprocessable_entity_spec.rb +2 -2
  330. data/spec/models/user_result_settings_spec.rb +2 -2
  331. data/spec/models/user_result_spec.rb +2 -2
  332. data/spec/models/user_results_spec.rb +2 -2
  333. data/spec/models/visual_result_spec.rb +2 -2
  334. data/spec/spec_helper.rb +2 -2
  335. metadata +42 -2
@@ -0,0 +1,234 @@
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
+ # Story
17
+ class Story
18
+ attr_accessor :model_type_id
19
+
20
+ attr_accessor :recommended
21
+
22
+ attr_accessor :field_values
23
+
24
+ attr_accessor :name
25
+
26
+ attr_accessor :description
27
+
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'model_type_id' => :'model_type_id',
33
+ :'recommended' => :'recommended',
34
+ :'field_values' => :'field_values',
35
+ :'name' => :'name',
36
+ :'description' => :'description'
37
+ }
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.swagger_types
42
+ {
43
+ :'model_type_id' => :'Integer',
44
+ :'recommended' => :'BOOLEAN',
45
+ :'field_values' => :'Object',
46
+ :'name' => :'String',
47
+ :'description' => :'String'
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?(:'model_type_id')
60
+ self.model_type_id = attributes[:'model_type_id']
61
+ end
62
+
63
+ if attributes.has_key?(:'recommended')
64
+ self.recommended = attributes[:'recommended']
65
+ end
66
+
67
+ if attributes.has_key?(:'field_values')
68
+ self.field_values = attributes[:'field_values']
69
+ end
70
+
71
+ if attributes.has_key?(:'name')
72
+ self.name = attributes[:'name']
73
+ end
74
+
75
+ if attributes.has_key?(:'description')
76
+ self.description = attributes[:'description']
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 @model_type_id.nil?
86
+ invalid_properties.push("invalid value for 'model_type_id', model_type_id cannot be nil.")
87
+ end
88
+
89
+ if @name.nil?
90
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
91
+ end
92
+
93
+ return invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @model_type_id.nil?
100
+ return false if @name.nil?
101
+ return true
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ model_type_id == o.model_type_id &&
110
+ recommended == o.recommended &&
111
+ field_values == o.field_values &&
112
+ name == o.name &&
113
+ description == o.description
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [model_type_id, recommended, field_values, name, description].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.swagger_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :BOOLEAN
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ temp_model = RadioManagerClient.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map{ |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -0,0 +1,234 @@
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 StoryDataInput
18
+ attr_accessor :model_type_id
19
+
20
+ attr_accessor :recommended
21
+
22
+ attr_accessor :field_values
23
+
24
+ attr_accessor :name
25
+
26
+ attr_accessor :description
27
+
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'model_type_id' => :'model_type_id',
33
+ :'recommended' => :'recommended',
34
+ :'field_values' => :'field_values',
35
+ :'name' => :'name',
36
+ :'description' => :'description'
37
+ }
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.swagger_types
42
+ {
43
+ :'model_type_id' => :'Integer',
44
+ :'recommended' => :'BOOLEAN',
45
+ :'field_values' => :'Object',
46
+ :'name' => :'String',
47
+ :'description' => :'String'
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?(:'model_type_id')
60
+ self.model_type_id = attributes[:'model_type_id']
61
+ end
62
+
63
+ if attributes.has_key?(:'recommended')
64
+ self.recommended = attributes[:'recommended']
65
+ end
66
+
67
+ if attributes.has_key?(:'field_values')
68
+ self.field_values = attributes[:'field_values']
69
+ end
70
+
71
+ if attributes.has_key?(:'name')
72
+ self.name = attributes[:'name']
73
+ end
74
+
75
+ if attributes.has_key?(:'description')
76
+ self.description = attributes[:'description']
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 @model_type_id.nil?
86
+ invalid_properties.push("invalid value for 'model_type_id', model_type_id cannot be nil.")
87
+ end
88
+
89
+ if @name.nil?
90
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
91
+ end
92
+
93
+ return invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @model_type_id.nil?
100
+ return false if @name.nil?
101
+ return true
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ model_type_id == o.model_type_id &&
110
+ recommended == o.recommended &&
111
+ field_values == o.field_values &&
112
+ name == o.name &&
113
+ description == o.description
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [model_type_id, recommended, field_values, name, description].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.swagger_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :BOOLEAN
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ temp_model = RadioManagerClient.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map{ |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -0,0 +1,224 @@
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
+ # Story
17
+ class StoryOutputOnly
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
+ return invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ id == o.id &&
100
+ created_at == o.created_at &&
101
+ updated_at == o.updated_at &&
102
+ deleted_at == o.deleted_at &&
103
+ _external_station_id == o._external_station_id
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(o)
109
+ self == o
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Fixnum] Hash code
114
+ def hash
115
+ [id, created_at, updated_at, deleted_at, _external_station_id].hash
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def build_from_hash(attributes)
122
+ return nil unless attributes.is_a?(Hash)
123
+ self.class.swagger_types.each_pair do |key, type|
124
+ if type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :DateTime
145
+ DateTime.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :BOOLEAN
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ temp_model = RadioManagerClient.const_get(type).new
176
+ temp_model.build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ next if value.nil?
199
+ hash[param] = _to_hash(value)
200
+ end
201
+ hash
202
+ end
203
+
204
+ # Outputs non-array value in the form of hash
205
+ # For object, use to_hash. Otherwise, just return the value
206
+ # @param [Object] value Any valid value
207
+ # @return [Hash] Returns the value in the form of hash
208
+ def _to_hash(value)
209
+ if value.is_a?(Array)
210
+ value.compact.map{ |v| _to_hash(v) }
211
+ elsif value.is_a?(Hash)
212
+ {}.tap do |hash|
213
+ value.each { |k, v| hash[k] = _to_hash(v) }
214
+ end
215
+ elsif value.respond_to? :to_hash
216
+ value.to_hash
217
+ else
218
+ value
219
+ end
220
+ end
221
+
222
+ end
223
+
224
+ end