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