happyco_json 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +215 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccountProvisioningServiceApi.md +98 -0
  6. data/docs/AccountServiceApi.md +98 -0
  7. data/docs/AccountUsersServiceApi.md +188 -0
  8. data/docs/AssetServiceApi.md +233 -0
  9. data/docs/CreateAccountsRequestAccountWithAdmin.md +9 -0
  10. data/docs/CreateAccountsResponseAccountIDWithAdminID.md +9 -0
  11. data/docs/FolderServiceApi.md +188 -0
  12. data/docs/InspectionServiceApi.md +329 -0
  13. data/docs/InspectionStatusChangeStatus.md +7 -0
  14. data/docs/InspectionStatusChangesEventInspectionStatusChange.md +10 -0
  15. data/docs/TemplateServiceApi.md +233 -0
  16. data/docs/UpdateAccountsRequestAccountWithAdminId.md +9 -0
  17. data/docs/V1Account.md +17 -0
  18. data/docs/V1AddInspectionPhotoRequest.md +11 -0
  19. data/docs/V1AddInspectionPhotoResponse.md +9 -0
  20. data/docs/V1AddInspectionPhotosRequest.md +9 -0
  21. data/docs/V1AddInspectionPhotosResponse.md +8 -0
  22. data/docs/V1AddUsersRequest.md +9 -0
  23. data/docs/V1AddUsersResponse.md +8 -0
  24. data/docs/V1Asset.md +17 -0
  25. data/docs/V1CreateAccountsRequest.md +8 -0
  26. data/docs/V1CreateAccountsResponse.md +8 -0
  27. data/docs/V1CreateAssetsRequest.md +10 -0
  28. data/docs/V1CreateAssetsResponse.md +8 -0
  29. data/docs/V1CreateDelegatedInspectionLinkRequest.md +12 -0
  30. data/docs/V1CreateDelegatedInspectionLinkResponse.md +9 -0
  31. data/docs/V1CreateDelegatedInspectionLinksRequest.md +13 -0
  32. data/docs/V1CreateDelegatedInspectionLinksResponse.md +8 -0
  33. data/docs/V1CreateFoldersRequest.md +9 -0
  34. data/docs/V1CreateFoldersResponse.md +8 -0
  35. data/docs/V1CreateInspectionsRequest.md +9 -0
  36. data/docs/V1CreateInspectionsResponse.md +8 -0
  37. data/docs/V1CreateTemplatesRequest.md +10 -0
  38. data/docs/V1CreateTemplatesResponse.md +8 -0
  39. data/docs/V1DateTime.md +13 -0
  40. data/docs/V1Event.md +8 -0
  41. data/docs/V1EventAck.md +10 -0
  42. data/docs/V1EventHandlerOptions.md +8 -0
  43. data/docs/V1FloatArray.md +8 -0
  44. data/docs/V1Folder.md +11 -0
  45. data/docs/V1FolderType.md +7 -0
  46. data/docs/V1FooterField.md +10 -0
  47. data/docs/V1HeaderField.md +10 -0
  48. data/docs/V1Inspection.md +16 -0
  49. data/docs/V1InspectionData.md +15 -0
  50. data/docs/V1InspectionStatusChangesEvent.md +9 -0
  51. data/docs/V1InspectionStatusChangesEventAck.md +8 -0
  52. data/docs/V1InspectionStatusChangesEventAckResponse.md +7 -0
  53. data/docs/V1InspectionStatusChangesEventRequest.md +9 -0
  54. data/docs/V1IntegrationID.md +10 -0
  55. data/docs/V1Item.md +14 -0
  56. data/docs/V1ListAccountsRequest.md +10 -0
  57. data/docs/V1ListAccountsResponse.md +9 -0
  58. data/docs/V1ListAssetsRequest.md +12 -0
  59. data/docs/V1ListAssetsResponse.md +9 -0
  60. data/docs/V1ListFoldersRequest.md +11 -0
  61. data/docs/V1ListFoldersResponse.md +9 -0
  62. data/docs/V1ListInspectionsRequest.md +13 -0
  63. data/docs/V1ListInspectionsResponse.md +10 -0
  64. data/docs/V1ListTemplatesRequest.md +12 -0
  65. data/docs/V1ListTemplatesResponse.md +10 -0
  66. data/docs/V1ListUsersRequest.md +11 -0
  67. data/docs/V1ListUsersResponse.md +9 -0
  68. data/docs/V1Paging.md +7 -0
  69. data/docs/V1PagingResponse.md +7 -0
  70. data/docs/V1Photo.md +9 -0
  71. data/docs/V1Property.md +8 -0
  72. data/docs/V1RatingCheckbox.md +12 -0
  73. data/docs/V1RatingControl.md +11 -0
  74. data/docs/V1RatingDropDown.md +9 -0
  75. data/docs/V1RatingDropDownOption.md +12 -0
  76. data/docs/V1RatingGroups.md +9 -0
  77. data/docs/V1RatingImage.md +7 -0
  78. data/docs/V1RatingRadioGroup.md +9 -0
  79. data/docs/V1RatingRadioGroupOption.md +11 -0
  80. data/docs/V1RatingValues.md +9 -0
  81. data/docs/V1ScheduledInspection.md +11 -0
  82. data/docs/V1Section.md +9 -0
  83. data/docs/V1SetAssetsArchivedRequest.md +10 -0
  84. data/docs/V1SetAssetsArchivedResponse.md +7 -0
  85. data/docs/V1SetInspectionsArchivedRequest.md +9 -0
  86. data/docs/V1SetInspectionsArchivedResponse.md +7 -0
  87. data/docs/V1SetTemplatesArchivedRequest.md +10 -0
  88. data/docs/V1SetTemplatesArchivedResponse.md +7 -0
  89. data/docs/V1StringArray.md +8 -0
  90. data/docs/V1Template.md +18 -0
  91. data/docs/V1Unit.md +9 -0
  92. data/docs/V1UpdateAccountStatusesRequest.md +9 -0
  93. data/docs/V1UpdateAccountStatusesResponse.md +7 -0
  94. data/docs/V1UpdateAccountsRequest.md +8 -0
  95. data/docs/V1UpdateAccountsResponse.md +7 -0
  96. data/docs/V1UpdateAssetsRequest.md +10 -0
  97. data/docs/V1UpdateAssetsResponse.md +7 -0
  98. data/docs/V1UpdateFolderStatusesRequest.md +10 -0
  99. data/docs/V1UpdateFolderStatusesResponse.md +7 -0
  100. data/docs/V1UpdateFoldersRequest.md +9 -0
  101. data/docs/V1UpdateFoldersResponse.md +8 -0
  102. data/docs/V1UpdateInspectionsRequest.md +9 -0
  103. data/docs/V1UpdateInspectionsResponse.md +7 -0
  104. data/docs/V1UpdateTemplatesRequest.md +10 -0
  105. data/docs/V1UpdateTemplatesResponse.md +7 -0
  106. data/docs/V1UpdateUserStatusesRequest.md +10 -0
  107. data/docs/V1UpdateUserStatusesResponse.md +7 -0
  108. data/docs/V1UpdateUsersRequest.md +9 -0
  109. data/docs/V1UpdateUsersResponse.md +8 -0
  110. data/docs/V1User.md +13 -0
  111. data/git_push.sh +55 -0
  112. data/happyco_json.gemspec +45 -0
  113. data/lib/happyco_json/api/account_provisioning_service_api.rb +128 -0
  114. data/lib/happyco_json/api/account_service_api.rb +128 -0
  115. data/lib/happyco_json/api/account_users_service_api.rb +234 -0
  116. data/lib/happyco_json/api/asset_service_api.rb +287 -0
  117. data/lib/happyco_json/api/folder_service_api.rb +234 -0
  118. data/lib/happyco_json/api/inspection_service_api.rb +393 -0
  119. data/lib/happyco_json/api/template_service_api.rb +287 -0
  120. data/lib/happyco_json/api_client.rb +375 -0
  121. data/lib/happyco_json/api_error.rb +37 -0
  122. data/lib/happyco_json/configuration.rb +195 -0
  123. data/lib/happyco_json/helpers.rb +30 -0
  124. data/lib/happyco_json/models/create_accounts_request_account_with_admin.rb +196 -0
  125. data/lib/happyco_json/models/create_accounts_response_account_id_with_admin_id.rb +196 -0
  126. data/lib/happyco_json/models/inspection_status_change_status.rb +22 -0
  127. data/lib/happyco_json/models/inspection_status_changes_event_inspection_status_change.rb +256 -0
  128. data/lib/happyco_json/models/update_accounts_request_account_with_admin_id.rb +196 -0
  129. data/lib/happyco_json/models/v1_account.rb +268 -0
  130. data/lib/happyco_json/models/v1_add_inspection_photo_request.rb +216 -0
  131. data/lib/happyco_json/models/v1_add_inspection_photo_response.rb +197 -0
  132. data/lib/happyco_json/models/v1_add_inspection_photos_request.rb +200 -0
  133. data/lib/happyco_json/models/v1_add_inspection_photos_response.rb +190 -0
  134. data/lib/happyco_json/models/v1_add_users_request.rb +198 -0
  135. data/lib/happyco_json/models/v1_add_users_response.rb +189 -0
  136. data/lib/happyco_json/models/v1_asset.rb +268 -0
  137. data/lib/happyco_json/models/v1_create_accounts_request.rb +189 -0
  138. data/lib/happyco_json/models/v1_create_accounts_response.rb +189 -0
  139. data/lib/happyco_json/models/v1_create_assets_request.rb +207 -0
  140. data/lib/happyco_json/models/v1_create_assets_response.rb +189 -0
  141. data/lib/happyco_json/models/v1_create_delegated_inspection_link_request.rb +223 -0
  142. data/lib/happyco_json/models/v1_create_delegated_inspection_link_response.rb +196 -0
  143. data/lib/happyco_json/models/v1_create_delegated_inspection_links_request.rb +234 -0
  144. data/lib/happyco_json/models/v1_create_delegated_inspection_links_response.rb +189 -0
  145. data/lib/happyco_json/models/v1_create_folders_request.rb +198 -0
  146. data/lib/happyco_json/models/v1_create_folders_response.rb +189 -0
  147. data/lib/happyco_json/models/v1_create_inspections_request.rb +200 -0
  148. data/lib/happyco_json/models/v1_create_inspections_response.rb +189 -0
  149. data/lib/happyco_json/models/v1_create_templates_request.rb +207 -0
  150. data/lib/happyco_json/models/v1_create_templates_response.rb +189 -0
  151. data/lib/happyco_json/models/v1_date_time.rb +232 -0
  152. data/lib/happyco_json/models/v1_event.rb +187 -0
  153. data/lib/happyco_json/models/v1_event_ack.rb +207 -0
  154. data/lib/happyco_json/models/v1_event_handler_options.rb +187 -0
  155. data/lib/happyco_json/models/v1_float_array.rb +189 -0
  156. data/lib/happyco_json/models/v1_folder.rb +249 -0
  157. data/lib/happyco_json/models/v1_folder_type.rb +21 -0
  158. data/lib/happyco_json/models/v1_footer_field.rb +208 -0
  159. data/lib/happyco_json/models/v1_header_field.rb +208 -0
  160. data/lib/happyco_json/models/v1_inspection.rb +264 -0
  161. data/lib/happyco_json/models/v1_inspection_data.rb +266 -0
  162. data/lib/happyco_json/models/v1_inspection_status_changes_event.rb +198 -0
  163. data/lib/happyco_json/models/v1_inspection_status_changes_event_ack.rb +188 -0
  164. data/lib/happyco_json/models/v1_inspection_status_changes_event_ack_response.rb +178 -0
  165. data/lib/happyco_json/models/v1_inspection_status_changes_event_request.rb +198 -0
  166. data/lib/happyco_json/models/v1_integration_id.rb +205 -0
  167. data/lib/happyco_json/models/v1_item.rb +254 -0
  168. data/lib/happyco_json/models/v1_list_accounts_request.rb +207 -0
  169. data/lib/happyco_json/models/v1_list_accounts_response.rb +198 -0
  170. data/lib/happyco_json/models/v1_list_assets_request.rb +225 -0
  171. data/lib/happyco_json/models/v1_list_assets_response.rb +198 -0
  172. data/lib/happyco_json/models/v1_list_folders_request.rb +216 -0
  173. data/lib/happyco_json/models/v1_list_folders_response.rb +198 -0
  174. data/lib/happyco_json/models/v1_list_inspections_request.rb +244 -0
  175. data/lib/happyco_json/models/v1_list_inspections_response.rb +210 -0
  176. data/lib/happyco_json/models/v1_list_templates_request.rb +227 -0
  177. data/lib/happyco_json/models/v1_list_templates_response.rb +207 -0
  178. data/lib/happyco_json/models/v1_list_users_request.rb +216 -0
  179. data/lib/happyco_json/models/v1_list_users_response.rb +198 -0
  180. data/lib/happyco_json/models/v1_paging.rb +178 -0
  181. data/lib/happyco_json/models/v1_paging_response.rb +178 -0
  182. data/lib/happyco_json/models/v1_photo.rb +196 -0
  183. data/lib/happyco_json/models/v1_property.rb +187 -0
  184. data/lib/happyco_json/models/v1_rating_checkbox.rb +261 -0
  185. data/lib/happyco_json/models/v1_rating_control.rb +215 -0
  186. data/lib/happyco_json/models/v1_rating_drop_down.rb +199 -0
  187. data/lib/happyco_json/models/v1_rating_drop_down_option.rb +261 -0
  188. data/lib/happyco_json/models/v1_rating_groups.rb +200 -0
  189. data/lib/happyco_json/models/v1_rating_image.rb +137 -0
  190. data/lib/happyco_json/models/v1_rating_radio_group.rb +199 -0
  191. data/lib/happyco_json/models/v1_rating_radio_group_option.rb +251 -0
  192. data/lib/happyco_json/models/v1_rating_values.rb +196 -0
  193. data/lib/happyco_json/models/v1_scheduled_inspection.rb +223 -0
  194. data/lib/happyco_json/models/v1_section.rb +200 -0
  195. data/lib/happyco_json/models/v1_set_assets_archived_request.rb +207 -0
  196. data/lib/happyco_json/models/v1_set_assets_archived_response.rb +178 -0
  197. data/lib/happyco_json/models/v1_set_inspections_archived_request.rb +200 -0
  198. data/lib/happyco_json/models/v1_set_inspections_archived_response.rb +178 -0
  199. data/lib/happyco_json/models/v1_set_templates_archived_request.rb +207 -0
  200. data/lib/happyco_json/models/v1_set_templates_archived_response.rb +178 -0
  201. data/lib/happyco_json/models/v1_string_array.rb +189 -0
  202. data/lib/happyco_json/models/v1_template.rb +287 -0
  203. data/lib/happyco_json/models/v1_unit.rb +196 -0
  204. data/lib/happyco_json/models/v1_update_account_statuses_request.rb +198 -0
  205. data/lib/happyco_json/models/v1_update_account_statuses_response.rb +178 -0
  206. data/lib/happyco_json/models/v1_update_accounts_request.rb +189 -0
  207. data/lib/happyco_json/models/v1_update_accounts_response.rb +178 -0
  208. data/lib/happyco_json/models/v1_update_assets_request.rb +207 -0
  209. data/lib/happyco_json/models/v1_update_assets_response.rb +178 -0
  210. data/lib/happyco_json/models/v1_update_folder_statuses_request.rb +207 -0
  211. data/lib/happyco_json/models/v1_update_folder_statuses_response.rb +178 -0
  212. data/lib/happyco_json/models/v1_update_folders_request.rb +198 -0
  213. data/lib/happyco_json/models/v1_update_folders_response.rb +189 -0
  214. data/lib/happyco_json/models/v1_update_inspections_request.rb +200 -0
  215. data/lib/happyco_json/models/v1_update_inspections_response.rb +178 -0
  216. data/lib/happyco_json/models/v1_update_templates_request.rb +207 -0
  217. data/lib/happyco_json/models/v1_update_templates_response.rb +178 -0
  218. data/lib/happyco_json/models/v1_update_user_statuses_request.rb +207 -0
  219. data/lib/happyco_json/models/v1_update_user_statuses_response.rb +178 -0
  220. data/lib/happyco_json/models/v1_update_users_request.rb +198 -0
  221. data/lib/happyco_json/models/v1_update_users_response.rb +189 -0
  222. data/lib/happyco_json/models/v1_user.rb +232 -0
  223. data/lib/happyco_json/version.rb +14 -0
  224. data/lib/happyco_json.rb +145 -0
  225. data/spec/api/account_provisioning_service_api_spec.rb +58 -0
  226. data/spec/api/account_service_api_spec.rb +58 -0
  227. data/spec/api/account_users_service_api_spec.rb +82 -0
  228. data/spec/api/asset_service_api_spec.rb +94 -0
  229. data/spec/api/folder_service_api_spec.rb +82 -0
  230. data/spec/api/inspection_service_api_spec.rb +118 -0
  231. data/spec/api/template_service_api_spec.rb +94 -0
  232. data/spec/api_client_spec.rb +225 -0
  233. data/spec/configuration_spec.rb +41 -0
  234. data/spec/models/create_accounts_request_account_with_admin_spec.rb +47 -0
  235. data/spec/models/create_accounts_response_account_id_with_admin_id_spec.rb +47 -0
  236. data/spec/models/inspection_status_change_status_spec.rb +35 -0
  237. data/spec/models/inspection_status_changes_event_inspection_status_change_spec.rb +61 -0
  238. data/spec/models/update_accounts_request_account_with_admin_id_spec.rb +47 -0
  239. data/spec/models/v1_account_spec.rb +95 -0
  240. data/spec/models/v1_add_inspection_photo_request_spec.rb +59 -0
  241. data/spec/models/v1_add_inspection_photo_response_spec.rb +47 -0
  242. data/spec/models/v1_add_inspection_photos_request_spec.rb +47 -0
  243. data/spec/models/v1_add_inspection_photos_response_spec.rb +41 -0
  244. data/spec/models/v1_add_users_request_spec.rb +47 -0
  245. data/spec/models/v1_add_users_response_spec.rb +41 -0
  246. data/spec/models/v1_asset_spec.rb +95 -0
  247. data/spec/models/v1_create_accounts_request_spec.rb +41 -0
  248. data/spec/models/v1_create_accounts_response_spec.rb +41 -0
  249. data/spec/models/v1_create_assets_request_spec.rb +53 -0
  250. data/spec/models/v1_create_assets_response_spec.rb +41 -0
  251. data/spec/models/v1_create_delegated_inspection_link_request_spec.rb +65 -0
  252. data/spec/models/v1_create_delegated_inspection_link_response_spec.rb +47 -0
  253. data/spec/models/v1_create_delegated_inspection_links_request_spec.rb +71 -0
  254. data/spec/models/v1_create_delegated_inspection_links_response_spec.rb +41 -0
  255. data/spec/models/v1_create_folders_request_spec.rb +47 -0
  256. data/spec/models/v1_create_folders_response_spec.rb +41 -0
  257. data/spec/models/v1_create_inspections_request_spec.rb +47 -0
  258. data/spec/models/v1_create_inspections_response_spec.rb +41 -0
  259. data/spec/models/v1_create_templates_request_spec.rb +53 -0
  260. data/spec/models/v1_create_templates_response_spec.rb +41 -0
  261. data/spec/models/v1_date_time_spec.rb +71 -0
  262. data/spec/models/v1_event_ack_spec.rb +53 -0
  263. data/spec/models/v1_event_handler_options_spec.rb +41 -0
  264. data/spec/models/v1_event_spec.rb +41 -0
  265. data/spec/models/v1_float_array_spec.rb +41 -0
  266. data/spec/models/v1_folder_spec.rb +63 -0
  267. data/spec/models/v1_folder_type_spec.rb +35 -0
  268. data/spec/models/v1_footer_field_spec.rb +53 -0
  269. data/spec/models/v1_header_field_spec.rb +53 -0
  270. data/spec/models/v1_inspection_data_spec.rb +83 -0
  271. data/spec/models/v1_inspection_spec.rb +89 -0
  272. data/spec/models/v1_inspection_status_changes_event_ack_response_spec.rb +35 -0
  273. data/spec/models/v1_inspection_status_changes_event_ack_spec.rb +41 -0
  274. data/spec/models/v1_inspection_status_changes_event_request_spec.rb +47 -0
  275. data/spec/models/v1_inspection_status_changes_event_spec.rb +47 -0
  276. data/spec/models/v1_integration_id_spec.rb +53 -0
  277. data/spec/models/v1_item_spec.rb +77 -0
  278. data/spec/models/v1_list_accounts_request_spec.rb +53 -0
  279. data/spec/models/v1_list_accounts_response_spec.rb +47 -0
  280. data/spec/models/v1_list_assets_request_spec.rb +65 -0
  281. data/spec/models/v1_list_assets_response_spec.rb +47 -0
  282. data/spec/models/v1_list_folders_request_spec.rb +59 -0
  283. data/spec/models/v1_list_folders_response_spec.rb +47 -0
  284. data/spec/models/v1_list_inspections_request_spec.rb +71 -0
  285. data/spec/models/v1_list_inspections_response_spec.rb +53 -0
  286. data/spec/models/v1_list_templates_request_spec.rb +65 -0
  287. data/spec/models/v1_list_templates_response_spec.rb +53 -0
  288. data/spec/models/v1_list_users_request_spec.rb +59 -0
  289. data/spec/models/v1_list_users_response_spec.rb +47 -0
  290. data/spec/models/v1_paging_response_spec.rb +35 -0
  291. data/spec/models/v1_paging_spec.rb +35 -0
  292. data/spec/models/v1_photo_spec.rb +47 -0
  293. data/spec/models/v1_property_spec.rb +41 -0
  294. data/spec/models/v1_rating_checkbox_spec.rb +69 -0
  295. data/spec/models/v1_rating_control_spec.rb +59 -0
  296. data/spec/models/v1_rating_drop_down_option_spec.rb +69 -0
  297. data/spec/models/v1_rating_drop_down_spec.rb +47 -0
  298. data/spec/models/v1_rating_groups_spec.rb +47 -0
  299. data/spec/models/v1_rating_image_spec.rb +35 -0
  300. data/spec/models/v1_rating_radio_group_option_spec.rb +63 -0
  301. data/spec/models/v1_rating_radio_group_spec.rb +47 -0
  302. data/spec/models/v1_rating_values_spec.rb +47 -0
  303. data/spec/models/v1_scheduled_inspection_spec.rb +59 -0
  304. data/spec/models/v1_section_spec.rb +47 -0
  305. data/spec/models/v1_set_assets_archived_request_spec.rb +53 -0
  306. data/spec/models/v1_set_assets_archived_response_spec.rb +35 -0
  307. data/spec/models/v1_set_inspections_archived_request_spec.rb +47 -0
  308. data/spec/models/v1_set_inspections_archived_response_spec.rb +35 -0
  309. data/spec/models/v1_set_templates_archived_request_spec.rb +53 -0
  310. data/spec/models/v1_set_templates_archived_response_spec.rb +35 -0
  311. data/spec/models/v1_string_array_spec.rb +41 -0
  312. data/spec/models/v1_template_spec.rb +101 -0
  313. data/spec/models/v1_unit_spec.rb +47 -0
  314. data/spec/models/v1_update_account_statuses_request_spec.rb +47 -0
  315. data/spec/models/v1_update_account_statuses_response_spec.rb +35 -0
  316. data/spec/models/v1_update_accounts_request_spec.rb +41 -0
  317. data/spec/models/v1_update_accounts_response_spec.rb +35 -0
  318. data/spec/models/v1_update_assets_request_spec.rb +53 -0
  319. data/spec/models/v1_update_assets_response_spec.rb +35 -0
  320. data/spec/models/v1_update_folder_statuses_request_spec.rb +53 -0
  321. data/spec/models/v1_update_folder_statuses_response_spec.rb +35 -0
  322. data/spec/models/v1_update_folders_request_spec.rb +47 -0
  323. data/spec/models/v1_update_folders_response_spec.rb +41 -0
  324. data/spec/models/v1_update_inspections_request_spec.rb +47 -0
  325. data/spec/models/v1_update_inspections_response_spec.rb +35 -0
  326. data/spec/models/v1_update_templates_request_spec.rb +53 -0
  327. data/spec/models/v1_update_templates_response_spec.rb +35 -0
  328. data/spec/models/v1_update_user_statuses_request_spec.rb +53 -0
  329. data/spec/models/v1_update_user_statuses_response_spec.rb +35 -0
  330. data/spec/models/v1_update_users_request_spec.rb +47 -0
  331. data/spec/models/v1_update_users_response_spec.rb +41 -0
  332. data/spec/models/v1_user_spec.rb +71 -0
  333. data/spec/spec_helper.rb +110 -0
  334. metadata +658 -0
@@ -0,0 +1,187 @@
1
+ =begin
2
+ #Merged swaggers
3
+
4
+ #All happy services merged together
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module HappyCo
15
+
16
+ class V1EventHandlerOptions
17
+ attr_accessor :ack_timeout_seconds
18
+
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'ack_timeout_seconds' => :'ack_timeout_seconds'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.swagger_types
29
+ {
30
+ :'ack_timeout_seconds' => :'Integer'
31
+ }
32
+ end
33
+
34
+ # Initializes the object
35
+ # @param [Hash] attributes Model attributes in the form of hash
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+
42
+ if attributes.has_key?(:'ack_timeout_seconds')
43
+ self.ack_timeout_seconds = attributes[:'ack_timeout_seconds']
44
+ end
45
+
46
+ end
47
+
48
+ # Show invalid properties with the reasons. Usually used together with valid?
49
+ # @return Array for valid properies with the reasons
50
+ def list_invalid_properties
51
+ invalid_properties = Array.new
52
+ return invalid_properties
53
+ end
54
+
55
+ # Check to see if the all the properties in the model are valid
56
+ # @return true if the model is valid
57
+ def valid?
58
+ return true
59
+ end
60
+
61
+ # Checks equality by comparing each attribute.
62
+ # @param [Object] Object to be compared
63
+ def ==(o)
64
+ return true if self.equal?(o)
65
+ self.class == o.class &&
66
+ ack_timeout_seconds == o.ack_timeout_seconds
67
+ end
68
+
69
+ # @see the `==` method
70
+ # @param [Object] Object to be compared
71
+ def eql?(o)
72
+ self == o
73
+ end
74
+
75
+ # Calculates hash code according to all attributes.
76
+ # @return [Fixnum] Hash code
77
+ def hash
78
+ [ack_timeout_seconds].hash
79
+ end
80
+
81
+ # Builds the object from hash
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ # @return [Object] Returns the model itself
84
+ def build_from_hash(attributes)
85
+ return nil unless attributes.is_a?(Hash)
86
+ self.class.swagger_types.each_pair do |key, type|
87
+ if type =~ /\AArray<(.*)>/i
88
+ # check to ensure the input is an array given that the the attribute
89
+ # is documented as an array but the input is not
90
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
92
+ end
93
+ elsif !attributes[self.class.attribute_map[key]].nil?
94
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
95
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
96
+ end
97
+
98
+ self
99
+ end
100
+
101
+ # Deserializes the data based on type
102
+ # @param string type Data type
103
+ # @param string value Value to be deserialized
104
+ # @return [Object] Deserialized data
105
+ def _deserialize(type, value)
106
+ case type.to_sym
107
+ when :DateTime
108
+ DateTime.parse(value)
109
+ when :Date
110
+ Date.parse(value)
111
+ when :String
112
+ value.to_s
113
+ when :Integer
114
+ value.to_i
115
+ when :Float
116
+ value.to_f
117
+ when :BOOLEAN
118
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
119
+ true
120
+ else
121
+ false
122
+ end
123
+ when :Object
124
+ # generic object (usually a Hash), return directly
125
+ value
126
+ when /\AArray<(?<inner_type>.+)>\z/
127
+ inner_type = Regexp.last_match[:inner_type]
128
+ value.map { |v| _deserialize(inner_type, v) }
129
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
130
+ k_type = Regexp.last_match[:k_type]
131
+ v_type = Regexp.last_match[:v_type]
132
+ {}.tap do |hash|
133
+ value.each do |k, v|
134
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
135
+ end
136
+ end
137
+ else # model
138
+ temp_model = HappyCo.const_get(type).new
139
+ temp_model.build_from_hash(value)
140
+ end
141
+ end
142
+
143
+ # Returns the string representation of the object
144
+ # @return [String] String presentation of the object
145
+ def to_s
146
+ to_hash.to_s
147
+ end
148
+
149
+ # to_body is an alias to to_hash (backward compatibility)
150
+ # @return [Hash] Returns the object in the form of hash
151
+ def to_body
152
+ to_hash
153
+ end
154
+
155
+ # Returns the object in the form of hash
156
+ # @return [Hash] Returns the object in the form of hash
157
+ def to_hash
158
+ hash = {}
159
+ self.class.attribute_map.each_pair do |attr, param|
160
+ value = self.send(attr)
161
+ next if value.nil?
162
+ hash[param] = _to_hash(value)
163
+ end
164
+ hash
165
+ end
166
+
167
+ # Outputs non-array value in the form of hash
168
+ # For object, use to_hash. Otherwise, just return the value
169
+ # @param [Object] value Any valid value
170
+ # @return [Hash] Returns the value in the form of hash
171
+ def _to_hash(value)
172
+ if value.is_a?(Array)
173
+ value.compact.map{ |v| _to_hash(v) }
174
+ elsif value.is_a?(Hash)
175
+ {}.tap do |hash|
176
+ value.each { |k, v| hash[k] = _to_hash(v) }
177
+ end
178
+ elsif value.respond_to? :to_hash
179
+ value.to_hash
180
+ else
181
+ value
182
+ end
183
+ end
184
+
185
+ end
186
+
187
+ end
@@ -0,0 +1,189 @@
1
+ =begin
2
+ #Merged swaggers
3
+
4
+ #All happy services merged together
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module HappyCo
15
+
16
+ class V1FloatArray
17
+ attr_accessor :values
18
+
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'values' => :'values'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.swagger_types
29
+ {
30
+ :'values' => :'Array<Float>'
31
+ }
32
+ end
33
+
34
+ # Initializes the object
35
+ # @param [Hash] attributes Model attributes in the form of hash
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+
42
+ if attributes.has_key?(:'values')
43
+ if (value = attributes[:'values']).is_a?(Array)
44
+ self.values = value
45
+ end
46
+ end
47
+
48
+ end
49
+
50
+ # Show invalid properties with the reasons. Usually used together with valid?
51
+ # @return Array for valid properies with the reasons
52
+ def list_invalid_properties
53
+ invalid_properties = Array.new
54
+ return invalid_properties
55
+ end
56
+
57
+ # Check to see if the all the properties in the model are valid
58
+ # @return true if the model is valid
59
+ def valid?
60
+ return true
61
+ end
62
+
63
+ # Checks equality by comparing each attribute.
64
+ # @param [Object] Object to be compared
65
+ def ==(o)
66
+ return true if self.equal?(o)
67
+ self.class == o.class &&
68
+ values == o.values
69
+ end
70
+
71
+ # @see the `==` method
72
+ # @param [Object] Object to be compared
73
+ def eql?(o)
74
+ self == o
75
+ end
76
+
77
+ # Calculates hash code according to all attributes.
78
+ # @return [Fixnum] Hash code
79
+ def hash
80
+ [values].hash
81
+ end
82
+
83
+ # Builds the object from hash
84
+ # @param [Hash] attributes Model attributes in the form of hash
85
+ # @return [Object] Returns the model itself
86
+ def build_from_hash(attributes)
87
+ return nil unless attributes.is_a?(Hash)
88
+ self.class.swagger_types.each_pair do |key, type|
89
+ if type =~ /\AArray<(.*)>/i
90
+ # check to ensure the input is an array given that the the attribute
91
+ # is documented as an array but the input is not
92
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
93
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
94
+ end
95
+ elsif !attributes[self.class.attribute_map[key]].nil?
96
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
97
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
98
+ end
99
+
100
+ self
101
+ end
102
+
103
+ # Deserializes the data based on type
104
+ # @param string type Data type
105
+ # @param string value Value to be deserialized
106
+ # @return [Object] Deserialized data
107
+ def _deserialize(type, value)
108
+ case type.to_sym
109
+ when :DateTime
110
+ DateTime.parse(value)
111
+ when :Date
112
+ Date.parse(value)
113
+ when :String
114
+ value.to_s
115
+ when :Integer
116
+ value.to_i
117
+ when :Float
118
+ value.to_f
119
+ when :BOOLEAN
120
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
121
+ true
122
+ else
123
+ false
124
+ end
125
+ when :Object
126
+ # generic object (usually a Hash), return directly
127
+ value
128
+ when /\AArray<(?<inner_type>.+)>\z/
129
+ inner_type = Regexp.last_match[:inner_type]
130
+ value.map { |v| _deserialize(inner_type, v) }
131
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
132
+ k_type = Regexp.last_match[:k_type]
133
+ v_type = Regexp.last_match[:v_type]
134
+ {}.tap do |hash|
135
+ value.each do |k, v|
136
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
137
+ end
138
+ end
139
+ else # model
140
+ temp_model = HappyCo.const_get(type).new
141
+ temp_model.build_from_hash(value)
142
+ end
143
+ end
144
+
145
+ # Returns the string representation of the object
146
+ # @return [String] String presentation of the object
147
+ def to_s
148
+ to_hash.to_s
149
+ end
150
+
151
+ # to_body is an alias to to_hash (backward compatibility)
152
+ # @return [Hash] Returns the object in the form of hash
153
+ def to_body
154
+ to_hash
155
+ end
156
+
157
+ # Returns the object in the form of hash
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_hash
160
+ hash = {}
161
+ self.class.attribute_map.each_pair do |attr, param|
162
+ value = self.send(attr)
163
+ next if value.nil?
164
+ hash[param] = _to_hash(value)
165
+ end
166
+ hash
167
+ end
168
+
169
+ # Outputs non-array value in the form of hash
170
+ # For object, use to_hash. Otherwise, just return the value
171
+ # @param [Object] value Any valid value
172
+ # @return [Hash] Returns the value in the form of hash
173
+ def _to_hash(value)
174
+ if value.is_a?(Array)
175
+ value.compact.map{ |v| _to_hash(v) }
176
+ elsif value.is_a?(Hash)
177
+ {}.tap do |hash|
178
+ value.each { |k, v| hash[k] = _to_hash(v) }
179
+ end
180
+ elsif value.respond_to? :to_hash
181
+ value.to_hash
182
+ else
183
+ value
184
+ end
185
+ end
186
+
187
+ end
188
+
189
+ end
@@ -0,0 +1,249 @@
1
+ =begin
2
+ #Merged swaggers
3
+
4
+ #All happy services merged together
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module HappyCo
15
+
16
+ class V1Folder
17
+ attr_accessor :id
18
+
19
+ attr_accessor :inactive
20
+
21
+ attr_accessor :name
22
+
23
+ attr_accessor :type
24
+
25
+ class EnumAttributeValidator
26
+ attr_reader :datatype
27
+ attr_reader :allowable_values
28
+
29
+ def initialize(datatype, allowable_values)
30
+ @allowable_values = allowable_values.map do |value|
31
+ case datatype.to_s
32
+ when /Integer/i
33
+ value.to_i
34
+ when /Float/i
35
+ value.to_f
36
+ else
37
+ value
38
+ end
39
+ end
40
+ end
41
+
42
+ def valid?(value)
43
+ !value || allowable_values.include?(value)
44
+ end
45
+ end
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'id' => :'id',
51
+ :'inactive' => :'inactive',
52
+ :'name' => :'name',
53
+ :'type' => :'type'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.swagger_types
59
+ {
60
+ :'id' => :'V1IntegrationID',
61
+ :'inactive' => :'BOOLEAN',
62
+ :'name' => :'String',
63
+ :'type' => :'String'
64
+ }
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ return unless attributes.is_a?(Hash)
71
+
72
+ # convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
74
+
75
+ if attributes.has_key?(:'id')
76
+ self.id = attributes[:'id']
77
+ end
78
+
79
+ if attributes.has_key?(:'inactive')
80
+ self.inactive = attributes[:'inactive']
81
+ end
82
+
83
+ if attributes.has_key?(:'name')
84
+ self.name = attributes[:'name']
85
+ end
86
+
87
+ if attributes.has_key?(:'type')
88
+ self.type = attributes[:'type']
89
+ else
90
+ self.type = "MULTI_FAMILY"
91
+ end
92
+
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properies with the reasons
97
+ def list_invalid_properties
98
+ invalid_properties = Array.new
99
+ return invalid_properties
100
+ end
101
+
102
+ # Check to see if the all the properties in the model are valid
103
+ # @return true if the model is valid
104
+ def valid?
105
+ type_validator = EnumAttributeValidator.new('String', ["MULTI_FAMILY", "PROPERTY_MANAGEMENT"])
106
+ return false unless type_validator.valid?(@type)
107
+ return true
108
+ end
109
+
110
+ # Custom attribute writer method checking allowed values (enum).
111
+ # @param [Object] type Object to be assigned
112
+ def type=(type)
113
+ validator = EnumAttributeValidator.new('String', ["MULTI_FAMILY", "PROPERTY_MANAGEMENT"])
114
+ unless validator.valid?(type)
115
+ fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
116
+ end
117
+ @type = type
118
+ end
119
+
120
+ # Checks equality by comparing each attribute.
121
+ # @param [Object] Object to be compared
122
+ def ==(o)
123
+ return true if self.equal?(o)
124
+ self.class == o.class &&
125
+ id == o.id &&
126
+ inactive == o.inactive &&
127
+ name == o.name &&
128
+ type == o.type
129
+ end
130
+
131
+ # @see the `==` method
132
+ # @param [Object] Object to be compared
133
+ def eql?(o)
134
+ self == o
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Fixnum] Hash code
139
+ def hash
140
+ [id, inactive, name, type].hash
141
+ end
142
+
143
+ # Builds the object from hash
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ # @return [Object] Returns the model itself
146
+ def build_from_hash(attributes)
147
+ return nil unless attributes.is_a?(Hash)
148
+ self.class.swagger_types.each_pair do |key, type|
149
+ if type =~ /\AArray<(.*)>/i
150
+ # check to ensure the input is an array given that the the attribute
151
+ # is documented as an array but the input is not
152
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
153
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
154
+ end
155
+ elsif !attributes[self.class.attribute_map[key]].nil?
156
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
157
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
158
+ end
159
+
160
+ self
161
+ end
162
+
163
+ # Deserializes the data based on type
164
+ # @param string type Data type
165
+ # @param string value Value to be deserialized
166
+ # @return [Object] Deserialized data
167
+ def _deserialize(type, value)
168
+ case type.to_sym
169
+ when :DateTime
170
+ DateTime.parse(value)
171
+ when :Date
172
+ Date.parse(value)
173
+ when :String
174
+ value.to_s
175
+ when :Integer
176
+ value.to_i
177
+ when :Float
178
+ value.to_f
179
+ when :BOOLEAN
180
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
181
+ true
182
+ else
183
+ false
184
+ end
185
+ when :Object
186
+ # generic object (usually a Hash), return directly
187
+ value
188
+ when /\AArray<(?<inner_type>.+)>\z/
189
+ inner_type = Regexp.last_match[:inner_type]
190
+ value.map { |v| _deserialize(inner_type, v) }
191
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
192
+ k_type = Regexp.last_match[:k_type]
193
+ v_type = Regexp.last_match[:v_type]
194
+ {}.tap do |hash|
195
+ value.each do |k, v|
196
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
197
+ end
198
+ end
199
+ else # model
200
+ temp_model = HappyCo.const_get(type).new
201
+ temp_model.build_from_hash(value)
202
+ end
203
+ end
204
+
205
+ # Returns the string representation of the object
206
+ # @return [String] String presentation of the object
207
+ def to_s
208
+ to_hash.to_s
209
+ end
210
+
211
+ # to_body is an alias to to_hash (backward compatibility)
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_body
214
+ to_hash
215
+ end
216
+
217
+ # Returns the object in the form of hash
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_hash
220
+ hash = {}
221
+ self.class.attribute_map.each_pair do |attr, param|
222
+ value = self.send(attr)
223
+ next if value.nil?
224
+ hash[param] = _to_hash(value)
225
+ end
226
+ hash
227
+ end
228
+
229
+ # Outputs non-array value in the form of hash
230
+ # For object, use to_hash. Otherwise, just return the value
231
+ # @param [Object] value Any valid value
232
+ # @return [Hash] Returns the value in the form of hash
233
+ def _to_hash(value)
234
+ if value.is_a?(Array)
235
+ value.compact.map{ |v| _to_hash(v) }
236
+ elsif value.is_a?(Hash)
237
+ {}.tap do |hash|
238
+ value.each { |k, v| hash[k] = _to_hash(v) }
239
+ end
240
+ elsif value.respond_to? :to_hash
241
+ value.to_hash
242
+ else
243
+ value
244
+ end
245
+ end
246
+
247
+ end
248
+
249
+ end
@@ -0,0 +1,21 @@
1
+ =begin
2
+ #Merged swaggers
3
+
4
+ #All happy services merged together
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module HappyCo
15
+ class V1FolderType
16
+
17
+ MULTI_FAMILY = "MULTI_FAMILY".freeze
18
+ PROPERTY_MANAGEMENT = "PROPERTY_MANAGEMENT".freeze
19
+ end
20
+
21
+ end