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,198 @@
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 V1ListFoldersResponse
17
+ attr_accessor :folders
18
+
19
+ attr_accessor :paging
20
+
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'folders' => :'folders',
26
+ :'paging' => :'paging'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.swagger_types
32
+ {
33
+ :'folders' => :'Array<V1Folder>',
34
+ :'paging' => :'V1PagingResponse'
35
+ }
36
+ end
37
+
38
+ # Initializes the object
39
+ # @param [Hash] attributes Model attributes in the form of hash
40
+ def initialize(attributes = {})
41
+ return unless attributes.is_a?(Hash)
42
+
43
+ # convert string to symbol for hash key
44
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+
46
+ if attributes.has_key?(:'folders')
47
+ if (value = attributes[:'folders']).is_a?(Array)
48
+ self.folders = value
49
+ end
50
+ end
51
+
52
+ if attributes.has_key?(:'paging')
53
+ self.paging = attributes[:'paging']
54
+ end
55
+
56
+ end
57
+
58
+ # Show invalid properties with the reasons. Usually used together with valid?
59
+ # @return Array for valid properies with the reasons
60
+ def list_invalid_properties
61
+ invalid_properties = Array.new
62
+ return invalid_properties
63
+ end
64
+
65
+ # Check to see if the all the properties in the model are valid
66
+ # @return true if the model is valid
67
+ def valid?
68
+ return true
69
+ end
70
+
71
+ # Checks equality by comparing each attribute.
72
+ # @param [Object] Object to be compared
73
+ def ==(o)
74
+ return true if self.equal?(o)
75
+ self.class == o.class &&
76
+ folders == o.folders &&
77
+ paging == o.paging
78
+ end
79
+
80
+ # @see the `==` method
81
+ # @param [Object] Object to be compared
82
+ def eql?(o)
83
+ self == o
84
+ end
85
+
86
+ # Calculates hash code according to all attributes.
87
+ # @return [Fixnum] Hash code
88
+ def hash
89
+ [folders, paging].hash
90
+ end
91
+
92
+ # Builds the object from hash
93
+ # @param [Hash] attributes Model attributes in the form of hash
94
+ # @return [Object] Returns the model itself
95
+ def build_from_hash(attributes)
96
+ return nil unless attributes.is_a?(Hash)
97
+ self.class.swagger_types.each_pair do |key, type|
98
+ if type =~ /\AArray<(.*)>/i
99
+ # check to ensure the input is an array given that the the attribute
100
+ # is documented as an array but the input is not
101
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
102
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
103
+ end
104
+ elsif !attributes[self.class.attribute_map[key]].nil?
105
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
106
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
107
+ end
108
+
109
+ self
110
+ end
111
+
112
+ # Deserializes the data based on type
113
+ # @param string type Data type
114
+ # @param string value Value to be deserialized
115
+ # @return [Object] Deserialized data
116
+ def _deserialize(type, value)
117
+ case type.to_sym
118
+ when :DateTime
119
+ DateTime.parse(value)
120
+ when :Date
121
+ Date.parse(value)
122
+ when :String
123
+ value.to_s
124
+ when :Integer
125
+ value.to_i
126
+ when :Float
127
+ value.to_f
128
+ when :BOOLEAN
129
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
130
+ true
131
+ else
132
+ false
133
+ end
134
+ when :Object
135
+ # generic object (usually a Hash), return directly
136
+ value
137
+ when /\AArray<(?<inner_type>.+)>\z/
138
+ inner_type = Regexp.last_match[:inner_type]
139
+ value.map { |v| _deserialize(inner_type, v) }
140
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
141
+ k_type = Regexp.last_match[:k_type]
142
+ v_type = Regexp.last_match[:v_type]
143
+ {}.tap do |hash|
144
+ value.each do |k, v|
145
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
146
+ end
147
+ end
148
+ else # model
149
+ temp_model = HappyCo.const_get(type).new
150
+ temp_model.build_from_hash(value)
151
+ end
152
+ end
153
+
154
+ # Returns the string representation of the object
155
+ # @return [String] String presentation of the object
156
+ def to_s
157
+ to_hash.to_s
158
+ end
159
+
160
+ # to_body is an alias to to_hash (backward compatibility)
161
+ # @return [Hash] Returns the object in the form of hash
162
+ def to_body
163
+ to_hash
164
+ end
165
+
166
+ # Returns the object in the form of hash
167
+ # @return [Hash] Returns the object in the form of hash
168
+ def to_hash
169
+ hash = {}
170
+ self.class.attribute_map.each_pair do |attr, param|
171
+ value = self.send(attr)
172
+ next if value.nil?
173
+ hash[param] = _to_hash(value)
174
+ end
175
+ hash
176
+ end
177
+
178
+ # Outputs non-array value in the form of hash
179
+ # For object, use to_hash. Otherwise, just return the value
180
+ # @param [Object] value Any valid value
181
+ # @return [Hash] Returns the value in the form of hash
182
+ def _to_hash(value)
183
+ if value.is_a?(Array)
184
+ value.compact.map{ |v| _to_hash(v) }
185
+ elsif value.is_a?(Hash)
186
+ {}.tap do |hash|
187
+ value.each { |k, v| hash[k] = _to_hash(v) }
188
+ end
189
+ elsif value.respond_to? :to_hash
190
+ value.to_hash
191
+ else
192
+ value
193
+ end
194
+ end
195
+
196
+ end
197
+
198
+ end
@@ -0,0 +1,244 @@
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
+ # * List inspection request is used for fetching inspections. It can be filtered to specific inspections, assets or folders. If the intent is to be notified when an inspection undergoes a status transition please use the InspectionEventService.
16
+ class V1ListInspectionsRequest
17
+ # * Account ID that the request applies to. For custom integrations (i.e. not integration partners) it can be omitted.
18
+ attr_accessor :account_id
19
+
20
+ # * Folder IDs is an optional filter that lists inspections only for specific folders.
21
+ attr_accessor :folder_ids
22
+
23
+ # * Asset IDs is an optional filter that lists inspections only for specific assets.
24
+ attr_accessor :asset_ids
25
+
26
+ # * Inspection IDs is an optional filter that lists only specific inspections. This is commonly used to get a single inspection.
27
+ attr_accessor :inspection_ids
28
+
29
+ # * Archived when set to true returns archived inspections only.
30
+ attr_accessor :archived
31
+
32
+ # * Paging message that contains information about the page being requested. This message is usually copied from a previous list request's response.
33
+ attr_accessor :paging
34
+
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'account_id' => :'account_id',
40
+ :'folder_ids' => :'folder_ids',
41
+ :'asset_ids' => :'asset_ids',
42
+ :'inspection_ids' => :'inspection_ids',
43
+ :'archived' => :'archived',
44
+ :'paging' => :'paging'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.swagger_types
50
+ {
51
+ :'account_id' => :'V1IntegrationID',
52
+ :'folder_ids' => :'Array<V1IntegrationID>',
53
+ :'asset_ids' => :'Array<V1IntegrationID>',
54
+ :'inspection_ids' => :'Array<V1IntegrationID>',
55
+ :'archived' => :'BOOLEAN',
56
+ :'paging' => :'V1Paging'
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ return unless attributes.is_a?(Hash)
64
+
65
+ # convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
67
+
68
+ if attributes.has_key?(:'account_id')
69
+ self.account_id = attributes[:'account_id']
70
+ end
71
+
72
+ if attributes.has_key?(:'folder_ids')
73
+ if (value = attributes[:'folder_ids']).is_a?(Array)
74
+ self.folder_ids = value
75
+ end
76
+ end
77
+
78
+ if attributes.has_key?(:'asset_ids')
79
+ if (value = attributes[:'asset_ids']).is_a?(Array)
80
+ self.asset_ids = value
81
+ end
82
+ end
83
+
84
+ if attributes.has_key?(:'inspection_ids')
85
+ if (value = attributes[:'inspection_ids']).is_a?(Array)
86
+ self.inspection_ids = value
87
+ end
88
+ end
89
+
90
+ if attributes.has_key?(:'archived')
91
+ self.archived = attributes[:'archived']
92
+ end
93
+
94
+ if attributes.has_key?(:'paging')
95
+ self.paging = attributes[:'paging']
96
+ end
97
+
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properies with the reasons
102
+ def list_invalid_properties
103
+ invalid_properties = Array.new
104
+ return invalid_properties
105
+ end
106
+
107
+ # Check to see if the all the properties in the model are valid
108
+ # @return true if the model is valid
109
+ def valid?
110
+ return true
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ account_id == o.account_id &&
119
+ folder_ids == o.folder_ids &&
120
+ asset_ids == o.asset_ids &&
121
+ inspection_ids == o.inspection_ids &&
122
+ archived == o.archived &&
123
+ paging == o.paging
124
+ end
125
+
126
+ # @see the `==` method
127
+ # @param [Object] Object to be compared
128
+ def eql?(o)
129
+ self == o
130
+ end
131
+
132
+ # Calculates hash code according to all attributes.
133
+ # @return [Fixnum] Hash code
134
+ def hash
135
+ [account_id, folder_ids, asset_ids, inspection_ids, archived, paging].hash
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def build_from_hash(attributes)
142
+ return nil unless attributes.is_a?(Hash)
143
+ self.class.swagger_types.each_pair do |key, type|
144
+ if type =~ /\AArray<(.*)>/i
145
+ # check to ensure the input is an array given that the the attribute
146
+ # is documented as an array but the input is not
147
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
148
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
149
+ end
150
+ elsif !attributes[self.class.attribute_map[key]].nil?
151
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
152
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
153
+ end
154
+
155
+ self
156
+ end
157
+
158
+ # Deserializes the data based on type
159
+ # @param string type Data type
160
+ # @param string value Value to be deserialized
161
+ # @return [Object] Deserialized data
162
+ def _deserialize(type, value)
163
+ case type.to_sym
164
+ when :DateTime
165
+ DateTime.parse(value)
166
+ when :Date
167
+ Date.parse(value)
168
+ when :String
169
+ value.to_s
170
+ when :Integer
171
+ value.to_i
172
+ when :Float
173
+ value.to_f
174
+ when :BOOLEAN
175
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
176
+ true
177
+ else
178
+ false
179
+ end
180
+ when :Object
181
+ # generic object (usually a Hash), return directly
182
+ value
183
+ when /\AArray<(?<inner_type>.+)>\z/
184
+ inner_type = Regexp.last_match[:inner_type]
185
+ value.map { |v| _deserialize(inner_type, v) }
186
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
187
+ k_type = Regexp.last_match[:k_type]
188
+ v_type = Regexp.last_match[:v_type]
189
+ {}.tap do |hash|
190
+ value.each do |k, v|
191
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
192
+ end
193
+ end
194
+ else # model
195
+ temp_model = HappyCo.const_get(type).new
196
+ temp_model.build_from_hash(value)
197
+ end
198
+ end
199
+
200
+ # Returns the string representation of the object
201
+ # @return [String] String presentation of the object
202
+ def to_s
203
+ to_hash.to_s
204
+ end
205
+
206
+ # to_body is an alias to to_hash (backward compatibility)
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_body
209
+ to_hash
210
+ end
211
+
212
+ # Returns the object in the form of hash
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_hash
215
+ hash = {}
216
+ self.class.attribute_map.each_pair do |attr, param|
217
+ value = self.send(attr)
218
+ next if value.nil?
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map{ |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+
242
+ end
243
+
244
+ end
@@ -0,0 +1,210 @@
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
+ # * List inspection response is a page of fetched inspection results. It includes a previous and next page token that can be passed into subsequent list inspection requests.
16
+ class V1ListInspectionsResponse
17
+ # * Inspections contains the results for this page.
18
+ attr_accessor :inspections
19
+
20
+ # * Previous page is an token that will be present for all pages after the first.
21
+ attr_accessor :previous_page
22
+
23
+ # * Next page is an token that will be present for all pages except the last.
24
+ attr_accessor :next_page
25
+
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'inspections' => :'inspections',
31
+ :'previous_page' => :'previous_page',
32
+ :'next_page' => :'next_page'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+ :'inspections' => :'Array<V1Inspection>',
40
+ :'previous_page' => :'V1Paging',
41
+ :'next_page' => :'V1Paging'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
+
53
+ if attributes.has_key?(:'inspections')
54
+ if (value = attributes[:'inspections']).is_a?(Array)
55
+ self.inspections = value
56
+ end
57
+ end
58
+
59
+ if attributes.has_key?(:'previous_page')
60
+ self.previous_page = attributes[:'previous_page']
61
+ end
62
+
63
+ if attributes.has_key?(:'next_page')
64
+ self.next_page = attributes[:'next_page']
65
+ end
66
+
67
+ end
68
+
69
+ # Show invalid properties with the reasons. Usually used together with valid?
70
+ # @return Array for valid properies with the reasons
71
+ def list_invalid_properties
72
+ invalid_properties = Array.new
73
+ return invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
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
+ inspections == o.inspections &&
88
+ previous_page == o.previous_page &&
89
+ next_page == o.next_page
90
+ end
91
+
92
+ # @see the `==` method
93
+ # @param [Object] Object to be compared
94
+ def eql?(o)
95
+ self == o
96
+ end
97
+
98
+ # Calculates hash code according to all attributes.
99
+ # @return [Fixnum] Hash code
100
+ def hash
101
+ [inspections, previous_page, next_page].hash
102
+ end
103
+
104
+ # Builds the object from hash
105
+ # @param [Hash] attributes Model attributes in the form of hash
106
+ # @return [Object] Returns the model itself
107
+ def build_from_hash(attributes)
108
+ return nil unless attributes.is_a?(Hash)
109
+ self.class.swagger_types.each_pair do |key, type|
110
+ if type =~ /\AArray<(.*)>/i
111
+ # check to ensure the input is an array given that the the attribute
112
+ # is documented as an array but the input is not
113
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
114
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
115
+ end
116
+ elsif !attributes[self.class.attribute_map[key]].nil?
117
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
118
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
119
+ end
120
+
121
+ self
122
+ end
123
+
124
+ # Deserializes the data based on type
125
+ # @param string type Data type
126
+ # @param string value Value to be deserialized
127
+ # @return [Object] Deserialized data
128
+ def _deserialize(type, value)
129
+ case type.to_sym
130
+ when :DateTime
131
+ DateTime.parse(value)
132
+ when :Date
133
+ Date.parse(value)
134
+ when :String
135
+ value.to_s
136
+ when :Integer
137
+ value.to_i
138
+ when :Float
139
+ value.to_f
140
+ when :BOOLEAN
141
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
142
+ true
143
+ else
144
+ false
145
+ end
146
+ when :Object
147
+ # generic object (usually a Hash), return directly
148
+ value
149
+ when /\AArray<(?<inner_type>.+)>\z/
150
+ inner_type = Regexp.last_match[:inner_type]
151
+ value.map { |v| _deserialize(inner_type, v) }
152
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
153
+ k_type = Regexp.last_match[:k_type]
154
+ v_type = Regexp.last_match[:v_type]
155
+ {}.tap do |hash|
156
+ value.each do |k, v|
157
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
158
+ end
159
+ end
160
+ else # model
161
+ temp_model = HappyCo.const_get(type).new
162
+ temp_model.build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ # Returns the string representation of the object
167
+ # @return [String] String presentation of the object
168
+ def to_s
169
+ to_hash.to_s
170
+ end
171
+
172
+ # to_body is an alias to to_hash (backward compatibility)
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_body
175
+ to_hash
176
+ end
177
+
178
+ # Returns the object in the form of hash
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ next if value.nil?
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ hash
188
+ end
189
+
190
+ # Outputs non-array value in the form of hash
191
+ # For object, use to_hash. Otherwise, just return the value
192
+ # @param [Object] value Any valid value
193
+ # @return [Hash] Returns the value in the form of hash
194
+ def _to_hash(value)
195
+ if value.is_a?(Array)
196
+ value.compact.map{ |v| _to_hash(v) }
197
+ elsif value.is_a?(Hash)
198
+ {}.tap do |hash|
199
+ value.each { |k, v| hash[k] = _to_hash(v) }
200
+ end
201
+ elsif value.respond_to? :to_hash
202
+ value.to_hash
203
+ else
204
+ value
205
+ end
206
+ end
207
+
208
+ end
209
+
210
+ end