radiomanager_client 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (454) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +297 -0
  4. data/Rakefile +8 -0
  5. data/docs/Block.md +15 -0
  6. data/docs/BlockApi.md +233 -0
  7. data/docs/BlockRelations.md +10 -0
  8. data/docs/BlockRelationsBroadcast.md +11 -0
  9. data/docs/BlockRelationsBroadcastParams.md +8 -0
  10. data/docs/BlockRelationsItems.md +11 -0
  11. data/docs/BlockRelationsItemsParams.md +8 -0
  12. data/docs/BlockRelationsProgram.md +11 -0
  13. data/docs/BlockResult.md +18 -0
  14. data/docs/BlockResults.md +17 -0
  15. data/docs/Broadcast.md +29 -0
  16. data/docs/BroadcastApi.md +641 -0
  17. data/docs/BroadcastDataInput.md +31 -0
  18. data/docs/BroadcastFieldValues.md +8 -0
  19. data/docs/BroadcastInputOnly.md +9 -0
  20. data/docs/BroadcastOutputOnly.md +12 -0
  21. data/docs/BroadcastRelations.md +13 -0
  22. data/docs/BroadcastRelationsBlocks.md +11 -0
  23. data/docs/BroadcastRelationsItems.md +11 -0
  24. data/docs/BroadcastRelationsItemsParams.md +8 -0
  25. data/docs/BroadcastRelationsModelType.md +11 -0
  26. data/docs/BroadcastRelationsPresenters.md +11 -0
  27. data/docs/BroadcastRelationsTags.md +11 -0
  28. data/docs/BroadcastResult.md +40 -0
  29. data/docs/BroadcastResults.md +17 -0
  30. data/docs/Campaign.md +14 -0
  31. data/docs/CampaignApi.md +302 -0
  32. data/docs/CampaignDataInput.md +14 -0
  33. data/docs/CampaignOutputOnly.md +13 -0
  34. data/docs/CampaignRelations.md +9 -0
  35. data/docs/CampaignRelationsItems.md +11 -0
  36. data/docs/CampaignRelationsItemsParams.md +8 -0
  37. data/docs/CampaignResult.md +22 -0
  38. data/docs/CampaignResults.md +17 -0
  39. data/docs/Contact.md +13 -0
  40. data/docs/ContactApi.md +300 -0
  41. data/docs/ContactDataInput.md +13 -0
  42. data/docs/ContactFieldValues.md +8 -0
  43. data/docs/ContactOutputOnly.md +12 -0
  44. data/docs/ContactRelations.md +10 -0
  45. data/docs/ContactRelationsItems.md +11 -0
  46. data/docs/ContactRelationsTags.md +11 -0
  47. data/docs/ContactRelationsTagsParams.md +8 -0
  48. data/docs/ContactResult.md +21 -0
  49. data/docs/ContactResults.md +17 -0
  50. data/docs/Data.md +9 -0
  51. data/docs/Data1.md +9 -0
  52. data/docs/EPGBroadcast.md +10 -0
  53. data/docs/ExternalMessageApi.md +63 -0
  54. data/docs/ExternalMessageQueueData.md +14 -0
  55. data/docs/Forbidden.md +9 -0
  56. data/docs/Genre.md +11 -0
  57. data/docs/GenreApi.md +131 -0
  58. data/docs/GenreOutputOnly.md +8 -0
  59. data/docs/GenreRelations.md +9 -0
  60. data/docs/GenreRelationsBroadcasts.md +11 -0
  61. data/docs/GenreRelationsBroadcastsParams.md +8 -0
  62. data/docs/GenreRelationsPrograms.md +11 -0
  63. data/docs/GenreResult.md +14 -0
  64. data/docs/GenreResults.md +17 -0
  65. data/docs/ImportItem.md +18 -0
  66. data/docs/ImportItemFieldValues.md +8 -0
  67. data/docs/InlineResponse202.md +8 -0
  68. data/docs/InternalServerError.md +9 -0
  69. data/docs/InviteUserData.md +9 -0
  70. data/docs/InviteUserSuccess.md +8 -0
  71. data/docs/Item.md +23 -0
  72. data/docs/ItemApi.md +553 -0
  73. data/docs/ItemDataInput.md +26 -0
  74. data/docs/ItemInputOnly.md +10 -0
  75. data/docs/ItemOutputOnly.md +16 -0
  76. data/docs/ItemRelations.md +14 -0
  77. data/docs/ItemRelationsBlock.md +11 -0
  78. data/docs/ItemRelationsCampaign.md +11 -0
  79. data/docs/ItemRelationsContacts.md +11 -0
  80. data/docs/ItemRelationsContactsParams.md +8 -0
  81. data/docs/ItemRelationsProgram.md +11 -0
  82. data/docs/ItemRelationsTags.md +11 -0
  83. data/docs/ItemResult.md +39 -0
  84. data/docs/ItemResults.md +16 -0
  85. data/docs/ModelType.md +15 -0
  86. data/docs/ModelTypeApi.md +139 -0
  87. data/docs/ModelTypeOptions.md +8 -0
  88. data/docs/ModelTypeOutputOnly.md +8 -0
  89. data/docs/ModelTypeRelations.md +13 -0
  90. data/docs/ModelTypeRelationsBroadcasts.md +11 -0
  91. data/docs/ModelTypeRelationsCampaigns.md +11 -0
  92. data/docs/ModelTypeRelationsCampaignsParams.md +8 -0
  93. data/docs/ModelTypeRelationsContacts.md +11 -0
  94. data/docs/ModelTypeRelationsItems.md +11 -0
  95. data/docs/ModelTypeRelationsPresenters.md +11 -0
  96. data/docs/ModelTypeRelationsPrograms.md +11 -0
  97. data/docs/ModelTypeResult.md +22 -0
  98. data/docs/ModelTypeResults.md +17 -0
  99. data/docs/NotFound.md +9 -0
  100. data/docs/PostSuccess.md +9 -0
  101. data/docs/Presenter.md +13 -0
  102. data/docs/PresenterApi.md +300 -0
  103. data/docs/PresenterDataInput.md +13 -0
  104. data/docs/PresenterOutputOnly.md +12 -0
  105. data/docs/PresenterRelations.md +10 -0
  106. data/docs/PresenterRelationsBroadcasts.md +11 -0
  107. data/docs/PresenterRelationsPrograms.md +11 -0
  108. data/docs/PresenterRelationsProgramsParams.md +8 -0
  109. data/docs/PresenterResult.md +21 -0
  110. data/docs/PresenterResults.md +17 -0
  111. data/docs/Program.md +20 -0
  112. data/docs/ProgramApi.md +308 -0
  113. data/docs/ProgramDataInput.md +22 -0
  114. data/docs/ProgramFieldValues.md +8 -0
  115. data/docs/ProgramInputOnly.md +9 -0
  116. data/docs/ProgramOutputOnly.md +12 -0
  117. data/docs/ProgramRelations.md +13 -0
  118. data/docs/ProgramRelationsBlocks.md +11 -0
  119. data/docs/ProgramRelationsBroadcasts.md +11 -0
  120. data/docs/ProgramRelationsItems.md +11 -0
  121. data/docs/ProgramRelationsItemsParams.md +8 -0
  122. data/docs/ProgramRelationsPresenters.md +11 -0
  123. data/docs/ProgramRelationsTags.md +11 -0
  124. data/docs/ProgramResult.md +31 -0
  125. data/docs/ProgramResults.md +17 -0
  126. data/docs/ReadOnly.md +9 -0
  127. data/docs/RelationsPlaceholder.md +11 -0
  128. data/docs/StringApi.md +66 -0
  129. data/docs/Success.md +8 -0
  130. data/docs/Tag.md +8 -0
  131. data/docs/TagApi.md +302 -0
  132. data/docs/TagDataInput.md +8 -0
  133. data/docs/TagOutputOnly.md +12 -0
  134. data/docs/TagRelations.md +11 -0
  135. data/docs/TagRelationsBroadcasts.md +11 -0
  136. data/docs/TagRelationsBroadcastsParams.md +8 -0
  137. data/docs/TagRelationsContacts.md +11 -0
  138. data/docs/TagRelationsItems.md +11 -0
  139. data/docs/TagRelationsPrograms.md +11 -0
  140. data/docs/TagResult.md +17 -0
  141. data/docs/TagResults.md +16 -0
  142. data/docs/TextString.md +12 -0
  143. data/docs/TooManyRequests.md +8 -0
  144. data/docs/UnprocessableEntity.md +8 -0
  145. data/docs/UserApi.md +231 -0
  146. data/docs/UserResult.md +19 -0
  147. data/docs/UserResultSettings.md +13 -0
  148. data/docs/UserResults.md +17 -0
  149. data/docs/VisualResult.md +8 -0
  150. data/docs/VisualSlideApi.md +106 -0
  151. data/git_push.sh +55 -0
  152. data/lib/radiomanager_client.rb +185 -0
  153. data/lib/radiomanager_client/api/block_api.rb +257 -0
  154. data/lib/radiomanager_client/api/broadcast_api.rb +668 -0
  155. data/lib/radiomanager_client/api/campaign_api.rb +331 -0
  156. data/lib/radiomanager_client/api/contact_api.rb +328 -0
  157. data/lib/radiomanager_client/api/external_message_api.rb +78 -0
  158. data/lib/radiomanager_client/api/genre_api.rb +153 -0
  159. data/lib/radiomanager_client/api/item_api.rb +576 -0
  160. data/lib/radiomanager_client/api/model_type_api.rb +168 -0
  161. data/lib/radiomanager_client/api/presenter_api.rb +328 -0
  162. data/lib/radiomanager_client/api/program_api.rb +340 -0
  163. data/lib/radiomanager_client/api/string_api.rb +85 -0
  164. data/lib/radiomanager_client/api/tag_api.rb +331 -0
  165. data/lib/radiomanager_client/api/user_api.rb +255 -0
  166. data/lib/radiomanager_client/api/visual_slide_api.rb +121 -0
  167. data/lib/radiomanager_client/api_client.rb +389 -0
  168. data/lib/radiomanager_client/api_error.rb +38 -0
  169. data/lib/radiomanager_client/configuration.rb +209 -0
  170. data/lib/radiomanager_client/models/block.rb +293 -0
  171. data/lib/radiomanager_client/models/block_relations.rb +206 -0
  172. data/lib/radiomanager_client/models/block_relations_broadcast.rb +215 -0
  173. data/lib/radiomanager_client/models/block_relations_broadcast_params.rb +188 -0
  174. data/lib/radiomanager_client/models/block_relations_items.rb +215 -0
  175. data/lib/radiomanager_client/models/block_relations_items_params.rb +188 -0
  176. data/lib/radiomanager_client/models/block_relations_program.rb +215 -0
  177. data/lib/radiomanager_client/models/block_result.rb +320 -0
  178. data/lib/radiomanager_client/models/block_results.rb +271 -0
  179. data/lib/radiomanager_client/models/broadcast.rb +428 -0
  180. data/lib/radiomanager_client/models/broadcast_data_input.rb +450 -0
  181. data/lib/radiomanager_client/models/broadcast_field_values.rb +188 -0
  182. data/lib/radiomanager_client/models/broadcast_input_only.rb +201 -0
  183. data/lib/radiomanager_client/models/broadcast_output_only.rb +244 -0
  184. data/lib/radiomanager_client/models/broadcast_relations.rb +233 -0
  185. data/lib/radiomanager_client/models/broadcast_relations_blocks.rb +215 -0
  186. data/lib/radiomanager_client/models/broadcast_relations_items.rb +215 -0
  187. data/lib/radiomanager_client/models/broadcast_relations_items_params.rb +188 -0
  188. data/lib/radiomanager_client/models/broadcast_relations_model_type.rb +215 -0
  189. data/lib/radiomanager_client/models/broadcast_relations_presenters.rb +215 -0
  190. data/lib/radiomanager_client/models/broadcast_relations_tags.rb +215 -0
  191. data/lib/radiomanager_client/models/broadcast_result.rb +547 -0
  192. data/lib/radiomanager_client/models/broadcast_results.rb +271 -0
  193. data/lib/radiomanager_client/models/campaign.rb +259 -0
  194. data/lib/radiomanager_client/models/campaign_data_input.rb +259 -0
  195. data/lib/radiomanager_client/models/campaign_output_only.rb +255 -0
  196. data/lib/radiomanager_client/models/campaign_relations.rb +197 -0
  197. data/lib/radiomanager_client/models/campaign_relations_items.rb +215 -0
  198. data/lib/radiomanager_client/models/campaign_relations_items_params.rb +188 -0
  199. data/lib/radiomanager_client/models/campaign_result.rb +353 -0
  200. data/lib/radiomanager_client/models/campaign_results.rb +271 -0
  201. data/lib/radiomanager_client/models/contact.rb +248 -0
  202. data/lib/radiomanager_client/models/contact_data_input.rb +248 -0
  203. data/lib/radiomanager_client/models/contact_field_values.rb +188 -0
  204. data/lib/radiomanager_client/models/contact_output_only.rb +224 -0
  205. data/lib/radiomanager_client/models/contact_relations.rb +206 -0
  206. data/lib/radiomanager_client/models/contact_relations_items.rb +215 -0
  207. data/lib/radiomanager_client/models/contact_relations_tags.rb +215 -0
  208. data/lib/radiomanager_client/models/contact_relations_tags_params.rb +188 -0
  209. data/lib/radiomanager_client/models/contact_result.rb +320 -0
  210. data/lib/radiomanager_client/models/contact_results.rb +271 -0
  211. data/lib/radiomanager_client/models/data.rb +199 -0
  212. data/lib/radiomanager_client/models/data_1.rb +199 -0
  213. data/lib/radiomanager_client/models/epg_broadcast.rb +227 -0
  214. data/lib/radiomanager_client/models/external_message_queue_data.rb +333 -0
  215. data/lib/radiomanager_client/models/forbidden.rb +209 -0
  216. data/lib/radiomanager_client/models/genre.rb +225 -0
  217. data/lib/radiomanager_client/models/genre_output_only.rb +188 -0
  218. data/lib/radiomanager_client/models/genre_relations.rb +197 -0
  219. data/lib/radiomanager_client/models/genre_relations_broadcasts.rb +215 -0
  220. data/lib/radiomanager_client/models/genre_relations_broadcasts_params.rb +188 -0
  221. data/lib/radiomanager_client/models/genre_relations_programs.rb +215 -0
  222. data/lib/radiomanager_client/models/genre_result.rb +252 -0
  223. data/lib/radiomanager_client/models/genre_results.rb +271 -0
  224. data/lib/radiomanager_client/models/import_item.rb +292 -0
  225. data/lib/radiomanager_client/models/import_item_field_values.rb +188 -0
  226. data/lib/radiomanager_client/models/inline_response_202.rb +188 -0
  227. data/lib/radiomanager_client/models/internal_server_error.rb +209 -0
  228. data/lib/radiomanager_client/models/invite_user_data.rb +207 -0
  229. data/lib/radiomanager_client/models/invite_user_success.rb +188 -0
  230. data/lib/radiomanager_client/models/item.rb +366 -0
  231. data/lib/radiomanager_client/models/item_data_input.rb +397 -0
  232. data/lib/radiomanager_client/models/item_input_only.rb +210 -0
  233. data/lib/radiomanager_client/models/item_output_only.rb +260 -0
  234. data/lib/radiomanager_client/models/item_relations.rb +242 -0
  235. data/lib/radiomanager_client/models/item_relations_block.rb +215 -0
  236. data/lib/radiomanager_client/models/item_relations_campaign.rb +215 -0
  237. data/lib/radiomanager_client/models/item_relations_contacts.rb +215 -0
  238. data/lib/radiomanager_client/models/item_relations_contacts_params.rb +188 -0
  239. data/lib/radiomanager_client/models/item_relations_program.rb +215 -0
  240. data/lib/radiomanager_client/models/item_relations_tags.rb +215 -0
  241. data/lib/radiomanager_client/models/item_result.rb +510 -0
  242. data/lib/radiomanager_client/models/item_results.rb +262 -0
  243. data/lib/radiomanager_client/models/model_type.rb +289 -0
  244. data/lib/radiomanager_client/models/model_type_options.rb +188 -0
  245. data/lib/radiomanager_client/models/model_type_output_only.rb +188 -0
  246. data/lib/radiomanager_client/models/model_type_relations.rb +233 -0
  247. data/lib/radiomanager_client/models/model_type_relations_broadcasts.rb +215 -0
  248. data/lib/radiomanager_client/models/model_type_relations_campaigns.rb +215 -0
  249. data/lib/radiomanager_client/models/model_type_relations_campaigns_params.rb +188 -0
  250. data/lib/radiomanager_client/models/model_type_relations_contacts.rb +215 -0
  251. data/lib/radiomanager_client/models/model_type_relations_items.rb +215 -0
  252. data/lib/radiomanager_client/models/model_type_relations_presenters.rb +215 -0
  253. data/lib/radiomanager_client/models/model_type_relations_programs.rb +215 -0
  254. data/lib/radiomanager_client/models/model_type_result.rb +352 -0
  255. data/lib/radiomanager_client/models/model_type_results.rb +271 -0
  256. data/lib/radiomanager_client/models/not_found.rb +209 -0
  257. data/lib/radiomanager_client/models/post_success.rb +204 -0
  258. data/lib/radiomanager_client/models/presenter.rb +240 -0
  259. data/lib/radiomanager_client/models/presenter_data_input.rb +240 -0
  260. data/lib/radiomanager_client/models/presenter_output_only.rb +244 -0
  261. data/lib/radiomanager_client/models/presenter_relations.rb +206 -0
  262. data/lib/radiomanager_client/models/presenter_relations_broadcasts.rb +215 -0
  263. data/lib/radiomanager_client/models/presenter_relations_programs.rb +215 -0
  264. data/lib/radiomanager_client/models/presenter_relations_programs_params.rb +188 -0
  265. data/lib/radiomanager_client/models/presenter_result.rb +332 -0
  266. data/lib/radiomanager_client/models/presenter_results.rb +271 -0
  267. data/lib/radiomanager_client/models/program.rb +306 -0
  268. data/lib/radiomanager_client/models/program_data_input.rb +328 -0
  269. data/lib/radiomanager_client/models/program_field_values.rb +188 -0
  270. data/lib/radiomanager_client/models/program_input_only.rb +201 -0
  271. data/lib/radiomanager_client/models/program_output_only.rb +244 -0
  272. data/lib/radiomanager_client/models/program_relations.rb +233 -0
  273. data/lib/radiomanager_client/models/program_relations_blocks.rb +215 -0
  274. data/lib/radiomanager_client/models/program_relations_broadcasts.rb +215 -0
  275. data/lib/radiomanager_client/models/program_relations_items.rb +215 -0
  276. data/lib/radiomanager_client/models/program_relations_items_params.rb +188 -0
  277. data/lib/radiomanager_client/models/program_relations_presenters.rb +215 -0
  278. data/lib/radiomanager_client/models/program_relations_tags.rb +215 -0
  279. data/lib/radiomanager_client/models/program_result.rb +425 -0
  280. data/lib/radiomanager_client/models/program_results.rb +271 -0
  281. data/lib/radiomanager_client/models/read_only.rb +209 -0
  282. data/lib/radiomanager_client/models/relations_placeholder.rb +239 -0
  283. data/lib/radiomanager_client/models/success.rb +194 -0
  284. data/lib/radiomanager_client/models/tag.rb +193 -0
  285. data/lib/radiomanager_client/models/tag_data_input.rb +193 -0
  286. data/lib/radiomanager_client/models/tag_output_only.rb +229 -0
  287. data/lib/radiomanager_client/models/tag_relations.rb +215 -0
  288. data/lib/radiomanager_client/models/tag_relations_broadcasts.rb +215 -0
  289. data/lib/radiomanager_client/models/tag_relations_broadcasts_params.rb +188 -0
  290. data/lib/radiomanager_client/models/tag_relations_contacts.rb +215 -0
  291. data/lib/radiomanager_client/models/tag_relations_items.rb +215 -0
  292. data/lib/radiomanager_client/models/tag_relations_programs.rb +215 -0
  293. data/lib/radiomanager_client/models/tag_result.rb +279 -0
  294. data/lib/radiomanager_client/models/tag_results.rb +262 -0
  295. data/lib/radiomanager_client/models/text_string.rb +239 -0
  296. data/lib/radiomanager_client/models/too_many_requests.rb +193 -0
  297. data/lib/radiomanager_client/models/unprocessable_entity.rb +196 -0
  298. data/lib/radiomanager_client/models/user_result.rb +307 -0
  299. data/lib/radiomanager_client/models/user_result_settings.rb +233 -0
  300. data/lib/radiomanager_client/models/user_results.rb +271 -0
  301. data/lib/radiomanager_client/models/visual_result.rb +188 -0
  302. data/lib/radiomanager_client/version.rb +15 -0
  303. data/radiomanager_client-1.0.0.gem +0 -0
  304. data/radiomanager_client.gemspec +46 -0
  305. data/spec/api/block_api_spec.rb +88 -0
  306. data/spec/api/broadcast_api_spec.rb +180 -0
  307. data/spec/api/campaign_api_spec.rb +102 -0
  308. data/spec/api/contact_api_spec.rb +101 -0
  309. data/spec/api/external_message_api_spec.rb +47 -0
  310. data/spec/api/genre_api_spec.rb +64 -0
  311. data/spec/api/item_api_spec.rb +163 -0
  312. data/spec/api/model_type_api_spec.rb +68 -0
  313. data/spec/api/presenter_api_spec.rb +101 -0
  314. data/spec/api/program_api_spec.rb +105 -0
  315. data/spec/api/string_api_spec.rb +48 -0
  316. data/spec/api/tag_api_spec.rb +102 -0
  317. data/spec/api/user_api_spec.rb +84 -0
  318. data/spec/api/visual_slide_api_spec.rb +57 -0
  319. data/spec/api_client_spec.rb +226 -0
  320. data/spec/configuration_spec.rb +42 -0
  321. data/spec/models/block_relations_broadcast_params_spec.rb +42 -0
  322. data/spec/models/block_relations_broadcast_spec.rb +60 -0
  323. data/spec/models/block_relations_items_params_spec.rb +42 -0
  324. data/spec/models/block_relations_items_spec.rb +60 -0
  325. data/spec/models/block_relations_program_spec.rb +60 -0
  326. data/spec/models/block_relations_spec.rb +54 -0
  327. data/spec/models/block_result_spec.rb +102 -0
  328. data/spec/models/block_results_spec.rb +96 -0
  329. data/spec/models/block_spec.rb +84 -0
  330. data/spec/models/broadcast_data_input_spec.rb +184 -0
  331. data/spec/models/broadcast_field_values_spec.rb +42 -0
  332. data/spec/models/broadcast_input_only_spec.rb +48 -0
  333. data/spec/models/broadcast_output_only_spec.rb +66 -0
  334. data/spec/models/broadcast_relations_blocks_spec.rb +60 -0
  335. data/spec/models/broadcast_relations_items_params_spec.rb +42 -0
  336. data/spec/models/broadcast_relations_items_spec.rb +60 -0
  337. data/spec/models/broadcast_relations_model_type_spec.rb +60 -0
  338. data/spec/models/broadcast_relations_presenters_spec.rb +60 -0
  339. data/spec/models/broadcast_relations_spec.rb +72 -0
  340. data/spec/models/broadcast_relations_tags_spec.rb +60 -0
  341. data/spec/models/broadcast_result_spec.rb +238 -0
  342. data/spec/models/broadcast_results_spec.rb +96 -0
  343. data/spec/models/broadcast_spec.rb +172 -0
  344. data/spec/models/campaign_data_input_spec.rb +78 -0
  345. data/spec/models/campaign_output_only_spec.rb +72 -0
  346. data/spec/models/campaign_relations_items_params_spec.rb +42 -0
  347. data/spec/models/campaign_relations_items_spec.rb +60 -0
  348. data/spec/models/campaign_relations_spec.rb +48 -0
  349. data/spec/models/campaign_result_spec.rb +126 -0
  350. data/spec/models/campaign_results_spec.rb +96 -0
  351. data/spec/models/campaign_spec.rb +78 -0
  352. data/spec/models/contact_data_input_spec.rb +72 -0
  353. data/spec/models/contact_field_values_spec.rb +42 -0
  354. data/spec/models/contact_output_only_spec.rb +66 -0
  355. data/spec/models/contact_relations_items_spec.rb +60 -0
  356. data/spec/models/contact_relations_spec.rb +54 -0
  357. data/spec/models/contact_relations_tags_params_spec.rb +42 -0
  358. data/spec/models/contact_relations_tags_spec.rb +60 -0
  359. data/spec/models/contact_result_spec.rb +120 -0
  360. data/spec/models/contact_results_spec.rb +96 -0
  361. data/spec/models/contact_spec.rb +72 -0
  362. data/spec/models/data_1_spec.rb +48 -0
  363. data/spec/models/data_spec.rb +48 -0
  364. data/spec/models/epg_broadcast_spec.rb +54 -0
  365. data/spec/models/external_message_queue_data_spec.rb +78 -0
  366. data/spec/models/forbidden_spec.rb +48 -0
  367. data/spec/models/genre_output_only_spec.rb +42 -0
  368. data/spec/models/genre_relations_broadcasts_params_spec.rb +42 -0
  369. data/spec/models/genre_relations_broadcasts_spec.rb +60 -0
  370. data/spec/models/genre_relations_programs_spec.rb +60 -0
  371. data/spec/models/genre_relations_spec.rb +48 -0
  372. data/spec/models/genre_result_spec.rb +78 -0
  373. data/spec/models/genre_results_spec.rb +96 -0
  374. data/spec/models/genre_spec.rb +60 -0
  375. data/spec/models/import_item_field_values_spec.rb +42 -0
  376. data/spec/models/import_item_spec.rb +102 -0
  377. data/spec/models/inline_response_202_spec.rb +42 -0
  378. data/spec/models/internal_server_error_spec.rb +48 -0
  379. data/spec/models/invite_user_data_spec.rb +48 -0
  380. data/spec/models/invite_user_success_spec.rb +42 -0
  381. data/spec/models/item_data_input_spec.rb +154 -0
  382. data/spec/models/item_input_only_spec.rb +54 -0
  383. data/spec/models/item_output_only_spec.rb +90 -0
  384. data/spec/models/item_relations_block_spec.rb +60 -0
  385. data/spec/models/item_relations_campaign_spec.rb +60 -0
  386. data/spec/models/item_relations_contacts_params_spec.rb +42 -0
  387. data/spec/models/item_relations_contacts_spec.rb +60 -0
  388. data/spec/models/item_relations_program_spec.rb +60 -0
  389. data/spec/models/item_relations_spec.rb +78 -0
  390. data/spec/models/item_relations_tags_spec.rb +60 -0
  391. data/spec/models/item_result_spec.rb +232 -0
  392. data/spec/models/item_results_spec.rb +90 -0
  393. data/spec/models/item_spec.rb +136 -0
  394. data/spec/models/model_type_options_spec.rb +42 -0
  395. data/spec/models/model_type_output_only_spec.rb +42 -0
  396. data/spec/models/model_type_relations_broadcasts_spec.rb +60 -0
  397. data/spec/models/model_type_relations_campaigns_params_spec.rb +42 -0
  398. data/spec/models/model_type_relations_campaigns_spec.rb +60 -0
  399. data/spec/models/model_type_relations_contacts_spec.rb +60 -0
  400. data/spec/models/model_type_relations_items_spec.rb +60 -0
  401. data/spec/models/model_type_relations_presenters_spec.rb +60 -0
  402. data/spec/models/model_type_relations_programs_spec.rb +60 -0
  403. data/spec/models/model_type_relations_spec.rb +72 -0
  404. data/spec/models/model_type_result_spec.rb +130 -0
  405. data/spec/models/model_type_results_spec.rb +96 -0
  406. data/spec/models/model_type_spec.rb +88 -0
  407. data/spec/models/not_found_spec.rb +48 -0
  408. data/spec/models/post_success_spec.rb +48 -0
  409. data/spec/models/presenter_data_input_spec.rb +72 -0
  410. data/spec/models/presenter_output_only_spec.rb +66 -0
  411. data/spec/models/presenter_relations_broadcasts_spec.rb +60 -0
  412. data/spec/models/presenter_relations_programs_params_spec.rb +42 -0
  413. data/spec/models/presenter_relations_programs_spec.rb +60 -0
  414. data/spec/models/presenter_relations_spec.rb +54 -0
  415. data/spec/models/presenter_result_spec.rb +120 -0
  416. data/spec/models/presenter_results_spec.rb +96 -0
  417. data/spec/models/presenter_spec.rb +72 -0
  418. data/spec/models/program_data_input_spec.rb +126 -0
  419. data/spec/models/program_field_values_spec.rb +42 -0
  420. data/spec/models/program_input_only_spec.rb +48 -0
  421. data/spec/models/program_output_only_spec.rb +66 -0
  422. data/spec/models/program_relations_blocks_spec.rb +60 -0
  423. data/spec/models/program_relations_broadcasts_spec.rb +60 -0
  424. data/spec/models/program_relations_items_params_spec.rb +42 -0
  425. data/spec/models/program_relations_items_spec.rb +60 -0
  426. data/spec/models/program_relations_presenters_spec.rb +60 -0
  427. data/spec/models/program_relations_spec.rb +72 -0
  428. data/spec/models/program_relations_tags_spec.rb +60 -0
  429. data/spec/models/program_result_spec.rb +180 -0
  430. data/spec/models/program_results_spec.rb +96 -0
  431. data/spec/models/program_spec.rb +114 -0
  432. data/spec/models/read_only_spec.rb +48 -0
  433. data/spec/models/relations_placeholder_spec.rb +60 -0
  434. data/spec/models/success_spec.rb +42 -0
  435. data/spec/models/tag_data_input_spec.rb +42 -0
  436. data/spec/models/tag_output_only_spec.rb +66 -0
  437. data/spec/models/tag_relations_broadcasts_params_spec.rb +42 -0
  438. data/spec/models/tag_relations_broadcasts_spec.rb +60 -0
  439. data/spec/models/tag_relations_contacts_spec.rb +60 -0
  440. data/spec/models/tag_relations_items_spec.rb +60 -0
  441. data/spec/models/tag_relations_programs_spec.rb +60 -0
  442. data/spec/models/tag_relations_spec.rb +60 -0
  443. data/spec/models/tag_result_spec.rb +96 -0
  444. data/spec/models/tag_results_spec.rb +90 -0
  445. data/spec/models/tag_spec.rb +42 -0
  446. data/spec/models/text_string_spec.rb +66 -0
  447. data/spec/models/too_many_requests_spec.rb +42 -0
  448. data/spec/models/unprocessable_entity_spec.rb +42 -0
  449. data/spec/models/user_result_settings_spec.rb +72 -0
  450. data/spec/models/user_result_spec.rb +108 -0
  451. data/spec/models/user_results_spec.rb +96 -0
  452. data/spec/models/visual_result_spec.rb +42 -0
  453. data/spec/spec_helper.rb +111 -0
  454. metadata +825 -0
@@ -0,0 +1,188 @@
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 InlineResponse202
18
+ attr_accessor :success
19
+
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'success' => :'success'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.swagger_types
30
+ {
31
+ :'success' => :'BOOLEAN'
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?(:'success')
44
+ self.success = attributes[:'success']
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
+ return invalid_properties
54
+ end
55
+
56
+ # Check to see if the all the properties in the model are valid
57
+ # @return true if the model is valid
58
+ def valid?
59
+ return true
60
+ end
61
+
62
+ # Checks equality by comparing each attribute.
63
+ # @param [Object] Object to be compared
64
+ def ==(o)
65
+ return true if self.equal?(o)
66
+ self.class == o.class &&
67
+ success == o.success
68
+ end
69
+
70
+ # @see the `==` method
71
+ # @param [Object] Object to be compared
72
+ def eql?(o)
73
+ self == o
74
+ end
75
+
76
+ # Calculates hash code according to all attributes.
77
+ # @return [Fixnum] Hash code
78
+ def hash
79
+ [success].hash
80
+ end
81
+
82
+ # Builds the object from hash
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ # @return [Object] Returns the model itself
85
+ def build_from_hash(attributes)
86
+ return nil unless attributes.is_a?(Hash)
87
+ self.class.swagger_types.each_pair do |key, type|
88
+ if type =~ /\AArray<(.*)>/i
89
+ # check to ensure the input is an array given that the the attribute
90
+ # is documented as an array but the input is not
91
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
92
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
93
+ end
94
+ elsif !attributes[self.class.attribute_map[key]].nil?
95
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
96
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
97
+ end
98
+
99
+ self
100
+ end
101
+
102
+ # Deserializes the data based on type
103
+ # @param string type Data type
104
+ # @param string value Value to be deserialized
105
+ # @return [Object] Deserialized data
106
+ def _deserialize(type, value)
107
+ case type.to_sym
108
+ when :DateTime
109
+ DateTime.parse(value)
110
+ when :Date
111
+ Date.parse(value)
112
+ when :String
113
+ value.to_s
114
+ when :Integer
115
+ value.to_i
116
+ when :Float
117
+ value.to_f
118
+ when :BOOLEAN
119
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
120
+ true
121
+ else
122
+ false
123
+ end
124
+ when :Object
125
+ # generic object (usually a Hash), return directly
126
+ value
127
+ when /\AArray<(?<inner_type>.+)>\z/
128
+ inner_type = Regexp.last_match[:inner_type]
129
+ value.map { |v| _deserialize(inner_type, v) }
130
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
131
+ k_type = Regexp.last_match[:k_type]
132
+ v_type = Regexp.last_match[:v_type]
133
+ {}.tap do |hash|
134
+ value.each do |k, v|
135
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
136
+ end
137
+ end
138
+ else # model
139
+ temp_model = RadioManagerClient.const_get(type).new
140
+ temp_model.build_from_hash(value)
141
+ end
142
+ end
143
+
144
+ # Returns the string representation of the object
145
+ # @return [String] String presentation of the object
146
+ def to_s
147
+ to_hash.to_s
148
+ end
149
+
150
+ # to_body is an alias to to_hash (backward compatibility)
151
+ # @return [Hash] Returns the object in the form of hash
152
+ def to_body
153
+ to_hash
154
+ end
155
+
156
+ # Returns the object in the form of hash
157
+ # @return [Hash] Returns the object in the form of hash
158
+ def to_hash
159
+ hash = {}
160
+ self.class.attribute_map.each_pair do |attr, param|
161
+ value = self.send(attr)
162
+ next if value.nil?
163
+ hash[param] = _to_hash(value)
164
+ end
165
+ hash
166
+ end
167
+
168
+ # Outputs non-array value in the form of hash
169
+ # For object, use to_hash. Otherwise, just return the value
170
+ # @param [Object] value Any valid value
171
+ # @return [Hash] Returns the value in the form of hash
172
+ def _to_hash(value)
173
+ if value.is_a?(Array)
174
+ value.compact.map{ |v| _to_hash(v) }
175
+ elsif value.is_a?(Hash)
176
+ {}.tap do |hash|
177
+ value.each { |k, v| hash[k] = _to_hash(v) }
178
+ end
179
+ elsif value.respond_to? :to_hash
180
+ value.to_hash
181
+ else
182
+ value
183
+ end
184
+ end
185
+
186
+ end
187
+
188
+ end
@@ -0,0 +1,209 @@
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 InternalServerError
18
+ # Given error (not formatted), describes the problem.
19
+ attr_accessor :error
20
+
21
+ # Assigned StatusCode, is used in order to create a relationship between Error and Response.
22
+ attr_accessor :status_code
23
+
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'error' => :'error',
29
+ :'status_code' => :'statusCode'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+ :'error' => :'String',
37
+ :'status_code' => :'Integer'
38
+ }
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ return unless attributes.is_a?(Hash)
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+
49
+ if attributes.has_key?(:'error')
50
+ self.error = attributes[:'error']
51
+ end
52
+
53
+ if attributes.has_key?(:'statusCode')
54
+ self.status_code = attributes[:'statusCode']
55
+ end
56
+
57
+ end
58
+
59
+ # Show invalid properties with the reasons. Usually used together with valid?
60
+ # @return Array for valid properies with the reasons
61
+ def list_invalid_properties
62
+ invalid_properties = Array.new
63
+ if @error.nil?
64
+ invalid_properties.push("invalid value for 'error', error cannot be nil.")
65
+ end
66
+
67
+ if @status_code.nil?
68
+ invalid_properties.push("invalid value for 'status_code', status_code cannot be nil.")
69
+ end
70
+
71
+ return invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ return false if @error.nil?
78
+ return false if @status_code.nil?
79
+ return true
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ error == o.error &&
88
+ status_code == o.status_code
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [error, status_code].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.swagger_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
118
+ end
119
+
120
+ self
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def _deserialize(type, value)
128
+ case type.to_sym
129
+ when :DateTime
130
+ DateTime.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :BOOLEAN
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ temp_model = RadioManagerClient.const_get(type).new
161
+ temp_model.build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ # Returns the string representation of the object
166
+ # @return [String] String presentation of the object
167
+ def to_s
168
+ to_hash.to_s
169
+ end
170
+
171
+ # to_body is an alias to to_hash (backward compatibility)
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_body
174
+ to_hash
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ next if value.nil?
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ # Outputs non-array value in the form of hash
190
+ # For object, use to_hash. Otherwise, just return the value
191
+ # @param [Object] value Any valid value
192
+ # @return [Hash] Returns the value in the form of hash
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map{ |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+
207
+ end
208
+
209
+ end
@@ -0,0 +1,207 @@
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 InviteUserData
18
+ attr_accessor :email
19
+
20
+ attr_accessor :role_id
21
+
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'email' => :'email',
27
+ :'role_id' => :'role_id'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'email' => :'String',
35
+ :'role_id' => :'Integer'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+
47
+ if attributes.has_key?(:'email')
48
+ self.email = attributes[:'email']
49
+ end
50
+
51
+ if attributes.has_key?(:'role_id')
52
+ self.role_id = attributes[:'role_id']
53
+ end
54
+
55
+ end
56
+
57
+ # Show invalid properties with the reasons. Usually used together with valid?
58
+ # @return Array for valid properies with the reasons
59
+ def list_invalid_properties
60
+ invalid_properties = Array.new
61
+ if @email.nil?
62
+ invalid_properties.push("invalid value for 'email', email cannot be nil.")
63
+ end
64
+
65
+ if @role_id.nil?
66
+ invalid_properties.push("invalid value for 'role_id', role_id cannot be nil.")
67
+ end
68
+
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 false if @email.nil?
76
+ return false if @role_id.nil?
77
+ return true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ email == o.email &&
86
+ role_id == o.role_id
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Fixnum] Hash code
97
+ def hash
98
+ [email, role_id].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def build_from_hash(attributes)
105
+ return nil unless attributes.is_a?(Hash)
106
+ self.class.swagger_types.each_pair do |key, type|
107
+ if type =~ /\AArray<(.*)>/i
108
+ # check to ensure the input is an array given that the the attribute
109
+ # is documented as an array but the input is not
110
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
111
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
112
+ end
113
+ elsif !attributes[self.class.attribute_map[key]].nil?
114
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
116
+ end
117
+
118
+ self
119
+ end
120
+
121
+ # Deserializes the data based on type
122
+ # @param string type Data type
123
+ # @param string value Value to be deserialized
124
+ # @return [Object] Deserialized data
125
+ def _deserialize(type, value)
126
+ case type.to_sym
127
+ when :DateTime
128
+ DateTime.parse(value)
129
+ when :Date
130
+ Date.parse(value)
131
+ when :String
132
+ value.to_s
133
+ when :Integer
134
+ value.to_i
135
+ when :Float
136
+ value.to_f
137
+ when :BOOLEAN
138
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
139
+ true
140
+ else
141
+ false
142
+ end
143
+ when :Object
144
+ # generic object (usually a Hash), return directly
145
+ value
146
+ when /\AArray<(?<inner_type>.+)>\z/
147
+ inner_type = Regexp.last_match[:inner_type]
148
+ value.map { |v| _deserialize(inner_type, v) }
149
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
150
+ k_type = Regexp.last_match[:k_type]
151
+ v_type = Regexp.last_match[:v_type]
152
+ {}.tap do |hash|
153
+ value.each do |k, v|
154
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
155
+ end
156
+ end
157
+ else # model
158
+ temp_model = RadioManagerClient.const_get(type).new
159
+ temp_model.build_from_hash(value)
160
+ end
161
+ end
162
+
163
+ # Returns the string representation of the object
164
+ # @return [String] String presentation of the object
165
+ def to_s
166
+ to_hash.to_s
167
+ end
168
+
169
+ # to_body is an alias to to_hash (backward compatibility)
170
+ # @return [Hash] Returns the object in the form of hash
171
+ def to_body
172
+ to_hash
173
+ end
174
+
175
+ # Returns the object in the form of hash
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_hash
178
+ hash = {}
179
+ self.class.attribute_map.each_pair do |attr, param|
180
+ value = self.send(attr)
181
+ next if value.nil?
182
+ hash[param] = _to_hash(value)
183
+ end
184
+ hash
185
+ end
186
+
187
+ # Outputs non-array value in the form of hash
188
+ # For object, use to_hash. Otherwise, just return the value
189
+ # @param [Object] value Any valid value
190
+ # @return [Hash] Returns the value in the form of hash
191
+ def _to_hash(value)
192
+ if value.is_a?(Array)
193
+ value.compact.map{ |v| _to_hash(v) }
194
+ elsif value.is_a?(Hash)
195
+ {}.tap do |hash|
196
+ value.each { |k, v| hash[k] = _to_hash(v) }
197
+ end
198
+ elsif value.respond_to? :to_hash
199
+ value.to_hash
200
+ else
201
+ value
202
+ end
203
+ end
204
+
205
+ end
206
+
207
+ end