happyco_json 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (272) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -0
  3. data/README.md +20 -12
  4. data/docs/AssetServiceApi.md +45 -0
  5. data/docs/ReportServiceApi.md +54 -0
  6. data/docs/ReportsCreatedEventReportCreated.md +9 -0
  7. data/docs/V1AddAssetPhotoRequest.md +12 -0
  8. data/docs/V1AddAssetPhotoResponse.md +8 -0
  9. data/docs/V1Asset.md +1 -0
  10. data/docs/V1Date.md +10 -0
  11. data/docs/V1Inspection.md +1 -0
  12. data/docs/V1InspectionData.md +1 -1
  13. data/docs/V1ListInspectionsRequest.md +2 -0
  14. data/docs/V1ListReportsRequest.md +14 -0
  15. data/docs/V1ListReportsResponse.md +10 -0
  16. data/docs/V1RatingGroup.md +12 -0
  17. data/docs/V1Report.md +22 -0
  18. data/docs/V1ReportsCreatedEvent.md +9 -0
  19. data/docs/{V1EventHandlerOptions.md → V1ReportsCreatedEventAckResponse.md} +1 -2
  20. data/docs/V1Signatory.md +12 -0
  21. data/docs/V1Template.md +1 -1
  22. data/git_push.sh +12 -0
  23. data/happyco_json.gemspec +14 -4
  24. data/lib/happyco_json/api/account_provisioning_service_api.rb +25 -5
  25. data/lib/happyco_json/api/account_service_api.rb +25 -5
  26. data/lib/happyco_json/api/account_users_service_api.rb +37 -9
  27. data/lib/happyco_json/api/asset_service_api.rb +100 -11
  28. data/lib/happyco_json/api/folder_service_api.rb +37 -9
  29. data/lib/happyco_json/api/inspection_service_api.rb +55 -15
  30. data/lib/happyco_json/api/report_service_api.rb +91 -0
  31. data/lib/happyco_json/api/template_service_api.rb +43 -11
  32. data/lib/happyco_json/api_client.rb +20 -17
  33. data/lib/happyco_json/api_error.rb +18 -8
  34. data/lib/happyco_json/configuration.rb +13 -1
  35. data/lib/happyco_json/helpers.rb +7 -4
  36. data/lib/happyco_json/models/create_accounts_request_account_with_admin.rb +16 -4
  37. data/lib/happyco_json/models/create_accounts_response_account_id_with_admin_id.rb +16 -4
  38. data/lib/happyco_json/models/inspection_status_change_status.rb +13 -1
  39. data/lib/happyco_json/models/inspection_status_changes_event_inspection_status_change.rb +16 -4
  40. data/lib/happyco_json/models/{v1_event_ack.rb → reports_created_event_report_created.rb} +30 -29
  41. data/lib/happyco_json/models/update_accounts_request_account_with_admin_id.rb +16 -4
  42. data/lib/happyco_json/models/v1_account.rb +16 -4
  43. data/lib/happyco_json/models/v1_add_asset_photo_request.rb +237 -0
  44. data/lib/happyco_json/models/{v1_inspection_status_changes_event_ack.rb → v1_add_asset_photo_response.rb} +25 -14
  45. data/lib/happyco_json/models/v1_add_inspection_photo_request.rb +16 -4
  46. data/lib/happyco_json/models/v1_add_inspection_photo_response.rb +16 -4
  47. data/lib/happyco_json/models/v1_add_inspection_photos_request.rb +16 -4
  48. data/lib/happyco_json/models/v1_add_inspection_photos_response.rb +16 -4
  49. data/lib/happyco_json/models/v1_add_users_request.rb +16 -4
  50. data/lib/happyco_json/models/v1_add_users_response.rb +16 -4
  51. data/lib/happyco_json/models/v1_asset.rb +29 -8
  52. data/lib/happyco_json/models/v1_create_accounts_request.rb +16 -4
  53. data/lib/happyco_json/models/v1_create_accounts_response.rb +16 -4
  54. data/lib/happyco_json/models/v1_create_assets_request.rb +16 -4
  55. data/lib/happyco_json/models/v1_create_assets_response.rb +16 -4
  56. data/lib/happyco_json/models/v1_create_delegated_inspection_link_request.rb +16 -4
  57. data/lib/happyco_json/models/v1_create_delegated_inspection_link_response.rb +16 -4
  58. data/lib/happyco_json/models/v1_create_delegated_inspection_links_request.rb +16 -4
  59. data/lib/happyco_json/models/v1_create_delegated_inspection_links_response.rb +16 -4
  60. data/lib/happyco_json/models/v1_create_folders_request.rb +16 -4
  61. data/lib/happyco_json/models/v1_create_folders_response.rb +16 -4
  62. data/lib/happyco_json/models/v1_create_inspections_request.rb +16 -4
  63. data/lib/happyco_json/models/v1_create_inspections_response.rb +16 -4
  64. data/lib/happyco_json/models/v1_create_templates_request.rb +16 -4
  65. data/lib/happyco_json/models/v1_create_templates_response.rb +16 -4
  66. data/lib/happyco_json/models/{v1_inspection_status_changes_event_request.rb → v1_date.rb} +39 -20
  67. data/lib/happyco_json/models/v1_date_time.rb +16 -4
  68. data/lib/happyco_json/models/v1_event.rb +16 -4
  69. data/lib/happyco_json/models/v1_float_array.rb +16 -4
  70. data/lib/happyco_json/models/v1_folder.rb +16 -4
  71. data/lib/happyco_json/models/v1_folder_type.rb +13 -1
  72. data/lib/happyco_json/models/v1_footer_field.rb +16 -4
  73. data/lib/happyco_json/models/v1_header_field.rb +16 -4
  74. data/lib/happyco_json/models/v1_inspection.rb +29 -8
  75. data/lib/happyco_json/models/v1_inspection_data.rb +17 -5
  76. data/lib/happyco_json/models/v1_inspection_status_changes_event.rb +16 -4
  77. data/lib/happyco_json/models/v1_inspection_status_changes_event_ack_response.rb +16 -4
  78. data/lib/happyco_json/models/v1_integration_id.rb +16 -4
  79. data/lib/happyco_json/models/v1_item.rb +16 -4
  80. data/lib/happyco_json/models/v1_list_accounts_request.rb +16 -4
  81. data/lib/happyco_json/models/v1_list_accounts_response.rb +16 -4
  82. data/lib/happyco_json/models/v1_list_assets_request.rb +16 -4
  83. data/lib/happyco_json/models/v1_list_assets_response.rb +16 -4
  84. data/lib/happyco_json/models/v1_list_folders_request.rb +16 -4
  85. data/lib/happyco_json/models/v1_list_folders_response.rb +16 -4
  86. data/lib/happyco_json/models/v1_list_inspections_request.rb +38 -8
  87. data/lib/happyco_json/models/v1_list_inspections_response.rb +16 -4
  88. data/lib/happyco_json/models/v1_list_reports_request.rb +268 -0
  89. data/lib/happyco_json/models/v1_list_reports_response.rb +222 -0
  90. data/lib/happyco_json/models/v1_list_templates_request.rb +16 -4
  91. data/lib/happyco_json/models/v1_list_templates_response.rb +16 -4
  92. data/lib/happyco_json/models/v1_list_users_request.rb +16 -4
  93. data/lib/happyco_json/models/v1_list_users_response.rb +16 -4
  94. data/lib/happyco_json/models/v1_paging.rb +16 -4
  95. data/lib/happyco_json/models/v1_paging_response.rb +16 -4
  96. data/lib/happyco_json/models/v1_photo.rb +16 -4
  97. data/lib/happyco_json/models/v1_property.rb +16 -4
  98. data/lib/happyco_json/models/v1_rating_checkbox.rb +16 -4
  99. data/lib/happyco_json/models/v1_rating_control.rb +17 -5
  100. data/lib/happyco_json/models/v1_rating_drop_down.rb +16 -4
  101. data/lib/happyco_json/models/v1_rating_drop_down_option.rb +16 -4
  102. data/lib/happyco_json/models/v1_rating_group.rb +246 -0
  103. data/lib/happyco_json/models/v1_rating_groups.rb +1 -0
  104. data/lib/happyco_json/models/v1_rating_image.rb +13 -1
  105. data/lib/happyco_json/models/v1_rating_radio_group.rb +16 -4
  106. data/lib/happyco_json/models/v1_rating_radio_group_option.rb +16 -4
  107. data/lib/happyco_json/models/v1_rating_values.rb +16 -4
  108. data/lib/happyco_json/models/v1_report.rb +341 -0
  109. data/lib/happyco_json/models/v1_reports_created_event.rb +210 -0
  110. data/lib/happyco_json/models/{v1_event_handler_options.rb → v1_reports_created_event_ack_response.rb} +20 -17
  111. data/lib/happyco_json/models/v1_scheduled_inspection.rb +16 -4
  112. data/lib/happyco_json/models/v1_section.rb +16 -4
  113. data/lib/happyco_json/models/v1_set_assets_archived_request.rb +16 -4
  114. data/lib/happyco_json/models/v1_set_assets_archived_response.rb +16 -4
  115. data/lib/happyco_json/models/v1_set_inspections_archived_request.rb +16 -4
  116. data/lib/happyco_json/models/v1_set_inspections_archived_response.rb +16 -4
  117. data/lib/happyco_json/models/v1_set_templates_archived_request.rb +16 -4
  118. data/lib/happyco_json/models/v1_set_templates_archived_response.rb +16 -4
  119. data/lib/happyco_json/models/v1_signatory.rb +240 -0
  120. data/lib/happyco_json/models/v1_string_array.rb +16 -4
  121. data/lib/happyco_json/models/v1_template.rb +17 -5
  122. data/lib/happyco_json/models/v1_unit.rb +16 -4
  123. data/lib/happyco_json/models/v1_update_account_statuses_request.rb +16 -4
  124. data/lib/happyco_json/models/v1_update_account_statuses_response.rb +16 -4
  125. data/lib/happyco_json/models/v1_update_accounts_request.rb +16 -4
  126. data/lib/happyco_json/models/v1_update_accounts_response.rb +16 -4
  127. data/lib/happyco_json/models/v1_update_assets_request.rb +16 -4
  128. data/lib/happyco_json/models/v1_update_assets_response.rb +16 -4
  129. data/lib/happyco_json/models/v1_update_folder_statuses_request.rb +16 -4
  130. data/lib/happyco_json/models/v1_update_folder_statuses_response.rb +16 -4
  131. data/lib/happyco_json/models/v1_update_folders_request.rb +16 -4
  132. data/lib/happyco_json/models/v1_update_folders_response.rb +16 -4
  133. data/lib/happyco_json/models/v1_update_inspections_request.rb +16 -4
  134. data/lib/happyco_json/models/v1_update_inspections_response.rb +16 -4
  135. data/lib/happyco_json/models/v1_update_templates_request.rb +16 -4
  136. data/lib/happyco_json/models/v1_update_templates_response.rb +16 -4
  137. data/lib/happyco_json/models/v1_update_user_statuses_request.rb +16 -4
  138. data/lib/happyco_json/models/v1_update_user_statuses_response.rb +16 -4
  139. data/lib/happyco_json/models/v1_update_users_request.rb +16 -4
  140. data/lib/happyco_json/models/v1_update_users_response.rb +16 -4
  141. data/lib/happyco_json/models/v1_user.rb +16 -4
  142. data/lib/happyco_json/version.rb +14 -2
  143. data/lib/happyco_json.rb +27 -7
  144. data/spec/api/account_provisioning_service_api_spec.rb +13 -1
  145. data/spec/api/account_service_api_spec.rb +13 -1
  146. data/spec/api/account_users_service_api_spec.rb +13 -1
  147. data/spec/api/asset_service_api_spec.rb +25 -1
  148. data/spec/api/folder_service_api_spec.rb +13 -1
  149. data/spec/api/inspection_service_api_spec.rb +13 -1
  150. data/spec/api/report_service_api_spec.rb +58 -0
  151. data/spec/api/template_service_api_spec.rb +13 -1
  152. data/spec/api_client_spec.rb +13 -1
  153. data/spec/configuration_spec.rb +13 -1
  154. data/spec/models/create_accounts_request_account_with_admin_spec.rb +13 -1
  155. data/spec/models/create_accounts_response_account_id_with_admin_id_spec.rb +13 -1
  156. data/spec/models/inspection_status_change_status_spec.rb +13 -1
  157. data/spec/models/inspection_status_changes_event_inspection_status_change_spec.rb +13 -1
  158. data/spec/models/reports_created_event_report_created_spec.rb +59 -0
  159. data/spec/models/update_accounts_request_account_with_admin_id_spec.rb +13 -1
  160. data/spec/models/v1_account_spec.rb +13 -1
  161. data/spec/models/v1_add_asset_photo_request_spec.rb +77 -0
  162. data/spec/models/v1_add_asset_photo_response_spec.rb +53 -0
  163. data/spec/models/v1_add_inspection_photo_request_spec.rb +13 -1
  164. data/spec/models/v1_add_inspection_photo_response_spec.rb +13 -1
  165. data/spec/models/v1_add_inspection_photos_request_spec.rb +13 -1
  166. data/spec/models/v1_add_inspection_photos_response_spec.rb +13 -1
  167. data/spec/models/v1_add_users_request_spec.rb +13 -1
  168. data/spec/models/v1_add_users_response_spec.rb +13 -1
  169. data/spec/models/v1_asset_spec.rb +19 -1
  170. data/spec/models/v1_create_accounts_request_spec.rb +13 -1
  171. data/spec/models/v1_create_accounts_response_spec.rb +13 -1
  172. data/spec/models/v1_create_assets_request_spec.rb +13 -1
  173. data/spec/models/v1_create_assets_response_spec.rb +13 -1
  174. data/spec/models/v1_create_delegated_inspection_link_request_spec.rb +13 -1
  175. data/spec/models/v1_create_delegated_inspection_link_response_spec.rb +13 -1
  176. data/spec/models/v1_create_delegated_inspection_links_request_spec.rb +13 -1
  177. data/spec/models/v1_create_delegated_inspection_links_response_spec.rb +13 -1
  178. data/spec/models/v1_create_folders_request_spec.rb +13 -1
  179. data/spec/models/v1_create_folders_response_spec.rb +13 -1
  180. data/spec/models/v1_create_inspections_request_spec.rb +13 -1
  181. data/spec/models/v1_create_inspections_response_spec.rb +13 -1
  182. data/spec/models/v1_create_templates_request_spec.rb +13 -1
  183. data/spec/models/v1_create_templates_response_spec.rb +13 -1
  184. data/spec/models/v1_date_spec.rb +65 -0
  185. data/spec/models/v1_date_time_spec.rb +13 -1
  186. data/spec/models/v1_event_spec.rb +13 -1
  187. data/spec/models/v1_float_array_spec.rb +13 -1
  188. data/spec/models/v1_folder_spec.rb +13 -1
  189. data/spec/models/v1_folder_type_spec.rb +13 -1
  190. data/spec/models/v1_footer_field_spec.rb +13 -1
  191. data/spec/models/v1_header_field_spec.rb +13 -1
  192. data/spec/models/v1_inspection_data_spec.rb +13 -1
  193. data/spec/models/v1_inspection_spec.rb +19 -1
  194. data/spec/models/v1_inspection_status_changes_event_ack_response_spec.rb +13 -1
  195. data/spec/models/v1_inspection_status_changes_event_spec.rb +13 -1
  196. data/spec/models/v1_integration_id_spec.rb +13 -1
  197. data/spec/models/v1_item_spec.rb +13 -1
  198. data/spec/models/v1_list_accounts_request_spec.rb +13 -1
  199. data/spec/models/v1_list_accounts_response_spec.rb +13 -1
  200. data/spec/models/v1_list_assets_request_spec.rb +13 -1
  201. data/spec/models/v1_list_assets_response_spec.rb +13 -1
  202. data/spec/models/v1_list_folders_request_spec.rb +13 -1
  203. data/spec/models/v1_list_folders_response_spec.rb +13 -1
  204. data/spec/models/v1_list_inspections_request_spec.rb +25 -1
  205. data/spec/models/v1_list_inspections_response_spec.rb +13 -1
  206. data/spec/models/v1_list_reports_request_spec.rb +89 -0
  207. data/spec/models/v1_list_reports_response_spec.rb +65 -0
  208. data/spec/models/v1_list_templates_request_spec.rb +13 -1
  209. data/spec/models/v1_list_templates_response_spec.rb +13 -1
  210. data/spec/models/v1_list_users_request_spec.rb +13 -1
  211. data/spec/models/v1_list_users_response_spec.rb +13 -1
  212. data/spec/models/v1_paging_response_spec.rb +13 -1
  213. data/spec/models/v1_paging_spec.rb +13 -1
  214. data/spec/models/v1_photo_spec.rb +13 -1
  215. data/spec/models/v1_property_spec.rb +13 -1
  216. data/spec/models/v1_rating_checkbox_spec.rb +13 -1
  217. data/spec/models/v1_rating_control_spec.rb +13 -1
  218. data/spec/models/v1_rating_drop_down_option_spec.rb +13 -1
  219. data/spec/models/v1_rating_drop_down_spec.rb +13 -1
  220. data/spec/models/v1_rating_group_spec.rb +77 -0
  221. data/spec/models/v1_rating_image_spec.rb +13 -1
  222. data/spec/models/v1_rating_radio_group_option_spec.rb +13 -1
  223. data/spec/models/v1_rating_radio_group_spec.rb +13 -1
  224. data/spec/models/v1_rating_values_spec.rb +13 -1
  225. data/spec/models/v1_report_spec.rb +137 -0
  226. data/spec/models/v1_reports_created_event_ack_response_spec.rb +47 -0
  227. data/spec/models/v1_reports_created_event_spec.rb +59 -0
  228. data/spec/models/v1_scheduled_inspection_spec.rb +13 -1
  229. data/spec/models/v1_section_spec.rb +13 -1
  230. data/spec/models/v1_set_assets_archived_request_spec.rb +13 -1
  231. data/spec/models/v1_set_assets_archived_response_spec.rb +13 -1
  232. data/spec/models/v1_set_inspections_archived_request_spec.rb +13 -1
  233. data/spec/models/v1_set_inspections_archived_response_spec.rb +13 -1
  234. data/spec/models/v1_set_templates_archived_request_spec.rb +13 -1
  235. data/spec/models/v1_set_templates_archived_response_spec.rb +13 -1
  236. data/spec/models/v1_signatory_spec.rb +77 -0
  237. data/spec/models/v1_string_array_spec.rb +13 -1
  238. data/spec/models/v1_template_spec.rb +13 -1
  239. data/spec/models/v1_unit_spec.rb +13 -1
  240. data/spec/models/v1_update_account_statuses_request_spec.rb +13 -1
  241. data/spec/models/v1_update_account_statuses_response_spec.rb +13 -1
  242. data/spec/models/v1_update_accounts_request_spec.rb +13 -1
  243. data/spec/models/v1_update_accounts_response_spec.rb +13 -1
  244. data/spec/models/v1_update_assets_request_spec.rb +13 -1
  245. data/spec/models/v1_update_assets_response_spec.rb +13 -1
  246. data/spec/models/v1_update_folder_statuses_request_spec.rb +13 -1
  247. data/spec/models/v1_update_folder_statuses_response_spec.rb +13 -1
  248. data/spec/models/v1_update_folders_request_spec.rb +13 -1
  249. data/spec/models/v1_update_folders_response_spec.rb +13 -1
  250. data/spec/models/v1_update_inspections_request_spec.rb +13 -1
  251. data/spec/models/v1_update_inspections_response_spec.rb +13 -1
  252. data/spec/models/v1_update_templates_request_spec.rb +13 -1
  253. data/spec/models/v1_update_templates_response_spec.rb +13 -1
  254. data/spec/models/v1_update_user_statuses_request_spec.rb +13 -1
  255. data/spec/models/v1_update_user_statuses_response_spec.rb +13 -1
  256. data/spec/models/v1_update_users_request_spec.rb +13 -1
  257. data/spec/models/v1_update_users_response_spec.rb +13 -1
  258. data/spec/models/v1_user_spec.rb +13 -1
  259. data/spec/spec_helper.rb +13 -1
  260. metadata +153 -124
  261. data/Gemfile +0 -7
  262. data/Rakefile +0 -8
  263. data/docs/V1EventAck.md +0 -10
  264. data/docs/V1InspectionStatusChangesEventAck.md +0 -8
  265. data/docs/V1InspectionStatusChangesEventRequest.md +0 -9
  266. data/docs/V1RatingGroups.md +0 -9
  267. data/lib/happyco_json/models/v1_rating_groups.rb +0 -200
  268. data/spec/models/v1_event_ack_spec.rb +0 -53
  269. data/spec/models/v1_event_handler_options_spec.rb +0 -41
  270. data/spec/models/v1_inspection_status_changes_event_ack_spec.rb +0 -41
  271. data/spec/models/v1_inspection_status_changes_event_request_spec.rb +0 -47
  272. data/spec/models/v1_rating_groups_spec.rb +0 -47
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9722900c2065044e58bdb732a2fd800c32e43df6
4
- data.tar.gz: 6510343a86c4f3a844f082674f3f24aaff38ed48
3
+ metadata.gz: bc4c03e100e1b62979c0805d2e38d862dda335e7
4
+ data.tar.gz: cba7bb46b50884470ce15aed539fe6d97766d344
5
5
  SHA512:
6
- metadata.gz: b126cf346d9a96cdd729f478369dc2b9d9b1d064d26f86093653e1848a7c31c7d95da83822d082776daf81b00609f70283b80362c5ef8e6bef731b2ccc13656d
7
- data.tar.gz: 84a1322e5fa6469494fde7810e6c5f69f0c777cf10f85e24429b9125d0c6cbdd4a924dbc975438359095081f1229d9e17242522bf5a0029e5122d4991dde52d4
6
+ metadata.gz: 0e6ce88233f7a3edd3a60ebaeb270f6ee9ef1bf634c949d9fc13600a0017b30c16e633661d9c0f2ff13102bf0600c58506a1a8ef4a6d3ff9f73d41a5076e8b4c
7
+ data.tar.gz: d3a91dbb284e06d2652bc56090266acf6d8687bab8c52239cef109786cd70928bdca7f8f07aacb49e03c41775063b2d5493707e3b8c7d61f1eae3a6728a074b4
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright {yyyy} {name of copyright owner}
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md CHANGED
@@ -6,10 +6,10 @@ All happy services merged together
6
6
 
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
- - API version: 0.0.1
10
- - Package version: 2.0.0
11
- - Build date: 2017-04-11T12:35:10.936-07:00
12
- - Build package: io.swagger.codegen.languages.RubyClientCodegen
9
+ - API version: 2.1.0
10
+ - Package version: 2.1.0
11
+ - Build date: 2018-01-10T23:08:58.522Z
12
+ - Build package: class io.swagger.codegen.languages.RubyClientCodegen
13
13
 
14
14
  ## Installation
15
15
 
@@ -24,15 +24,15 @@ gem build happyco_json.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./happyco_json-2.0.0.gem
27
+ gem install ./happyco_json-2.1.0.gem
28
28
  ```
29
- (for development, run `gem install --dev ./happyco_json-2.0.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./happyco_json-2.1.0.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'happyco_json', '~> 2.0.0'
35
+ gem 'happyco_json', '~> 2.1.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -83,6 +83,7 @@ Class | Method | HTTP request | Description
83
83
  *HappyCo::AccountUsersServiceApi* | [**list_users**](docs/AccountUsersServiceApi.md#list_users) | **POST** /api/v1/manage/account/users/list |
84
84
  *HappyCo::AccountUsersServiceApi* | [**update_user_statuses**](docs/AccountUsersServiceApi.md#update_user_statuses) | **PUT** /api/v1/manage/account/user/statuses/update |
85
85
  *HappyCo::AccountUsersServiceApi* | [**update_users**](docs/AccountUsersServiceApi.md#update_users) | **PUT** /api/v1/manage/account/users/update |
86
+ *HappyCo::AssetServiceApi* | [**add_asset_photo**](docs/AssetServiceApi.md#add_asset_photo) | **POST** /api/v1/manage/asset/photo/add |
86
87
  *HappyCo::AssetServiceApi* | [**archive_assets**](docs/AssetServiceApi.md#archive_assets) | **PUT** /api/v1/manage/assets/archive |
87
88
  *HappyCo::AssetServiceApi* | [**create_assets**](docs/AssetServiceApi.md#create_assets) | **POST** /api/v1/manage/assets/create |
88
89
  *HappyCo::AssetServiceApi* | [**list_assets**](docs/AssetServiceApi.md#list_assets) | **POST** /api/v1/manage/assets/list |
@@ -99,6 +100,7 @@ Class | Method | HTTP request | Description
99
100
  *HappyCo::InspectionServiceApi* | [**list_inspections**](docs/InspectionServiceApi.md#list_inspections) | **POST** /api/v1/inspect/inspections/list | * List inspections gets a paginated and optionally filtered list of inspections from one or more folders.
100
101
  *HappyCo::InspectionServiceApi* | [**unarchive_inspections**](docs/InspectionServiceApi.md#unarchive_inspections) | **PUT** /api/v1/inspect/inspections/unarchive | * Unarchive inspections should be used if previously archived inspections need to be restored.
101
102
  *HappyCo::InspectionServiceApi* | [**update_inspections**](docs/InspectionServiceApi.md#update_inspections) | **PUT** /api/v1/inspect/inspections/update | * Update inspections can change the contents of inspections. Currently an inspection cannot have its asset_id or template_id updated.
103
+ *HappyCo::ReportServiceApi* | [**list_reports**](docs/ReportServiceApi.md#list_reports) | **POST** /api/v1/inspect/reports/list | * List reports gets a paginated and optionally filtered list of reports from one or more folders.
102
104
  *HappyCo::TemplateServiceApi* | [**archive_templates**](docs/TemplateServiceApi.md#archive_templates) | **PUT** /api/v1/inspect/templates/archive |
103
105
  *HappyCo::TemplateServiceApi* | [**create_templates**](docs/TemplateServiceApi.md#create_templates) | **POST** /api/v1/inspect/templates/create |
104
106
  *HappyCo::TemplateServiceApi* | [**list_templates**](docs/TemplateServiceApi.md#list_templates) | **POST** /api/v1/inspect/templates/list |
@@ -112,8 +114,11 @@ Class | Method | HTTP request | Description
112
114
  - [HappyCo::CreateAccountsResponseAccountIDWithAdminID](docs/CreateAccountsResponseAccountIDWithAdminID.md)
113
115
  - [HappyCo::InspectionStatusChangeStatus](docs/InspectionStatusChangeStatus.md)
114
116
  - [HappyCo::InspectionStatusChangesEventInspectionStatusChange](docs/InspectionStatusChangesEventInspectionStatusChange.md)
117
+ - [HappyCo::ReportsCreatedEventReportCreated](docs/ReportsCreatedEventReportCreated.md)
115
118
  - [HappyCo::UpdateAccountsRequestAccountWithAdminId](docs/UpdateAccountsRequestAccountWithAdminId.md)
116
119
  - [HappyCo::V1Account](docs/V1Account.md)
120
+ - [HappyCo::V1AddAssetPhotoRequest](docs/V1AddAssetPhotoRequest.md)
121
+ - [HappyCo::V1AddAssetPhotoResponse](docs/V1AddAssetPhotoResponse.md)
117
122
  - [HappyCo::V1AddInspectionPhotoRequest](docs/V1AddInspectionPhotoRequest.md)
118
123
  - [HappyCo::V1AddInspectionPhotoResponse](docs/V1AddInspectionPhotoResponse.md)
119
124
  - [HappyCo::V1AddInspectionPhotosRequest](docs/V1AddInspectionPhotosRequest.md)
@@ -135,10 +140,9 @@ Class | Method | HTTP request | Description
135
140
  - [HappyCo::V1CreateInspectionsResponse](docs/V1CreateInspectionsResponse.md)
136
141
  - [HappyCo::V1CreateTemplatesRequest](docs/V1CreateTemplatesRequest.md)
137
142
  - [HappyCo::V1CreateTemplatesResponse](docs/V1CreateTemplatesResponse.md)
143
+ - [HappyCo::V1Date](docs/V1Date.md)
138
144
  - [HappyCo::V1DateTime](docs/V1DateTime.md)
139
145
  - [HappyCo::V1Event](docs/V1Event.md)
140
- - [HappyCo::V1EventAck](docs/V1EventAck.md)
141
- - [HappyCo::V1EventHandlerOptions](docs/V1EventHandlerOptions.md)
142
146
  - [HappyCo::V1FloatArray](docs/V1FloatArray.md)
143
147
  - [HappyCo::V1Folder](docs/V1Folder.md)
144
148
  - [HappyCo::V1FolderType](docs/V1FolderType.md)
@@ -147,9 +151,7 @@ Class | Method | HTTP request | Description
147
151
  - [HappyCo::V1Inspection](docs/V1Inspection.md)
148
152
  - [HappyCo::V1InspectionData](docs/V1InspectionData.md)
149
153
  - [HappyCo::V1InspectionStatusChangesEvent](docs/V1InspectionStatusChangesEvent.md)
150
- - [HappyCo::V1InspectionStatusChangesEventAck](docs/V1InspectionStatusChangesEventAck.md)
151
154
  - [HappyCo::V1InspectionStatusChangesEventAckResponse](docs/V1InspectionStatusChangesEventAckResponse.md)
152
- - [HappyCo::V1InspectionStatusChangesEventRequest](docs/V1InspectionStatusChangesEventRequest.md)
153
155
  - [HappyCo::V1IntegrationID](docs/V1IntegrationID.md)
154
156
  - [HappyCo::V1Item](docs/V1Item.md)
155
157
  - [HappyCo::V1ListAccountsRequest](docs/V1ListAccountsRequest.md)
@@ -160,6 +162,8 @@ Class | Method | HTTP request | Description
160
162
  - [HappyCo::V1ListFoldersResponse](docs/V1ListFoldersResponse.md)
161
163
  - [HappyCo::V1ListInspectionsRequest](docs/V1ListInspectionsRequest.md)
162
164
  - [HappyCo::V1ListInspectionsResponse](docs/V1ListInspectionsResponse.md)
165
+ - [HappyCo::V1ListReportsRequest](docs/V1ListReportsRequest.md)
166
+ - [HappyCo::V1ListReportsResponse](docs/V1ListReportsResponse.md)
163
167
  - [HappyCo::V1ListTemplatesRequest](docs/V1ListTemplatesRequest.md)
164
168
  - [HappyCo::V1ListTemplatesResponse](docs/V1ListTemplatesResponse.md)
165
169
  - [HappyCo::V1ListUsersRequest](docs/V1ListUsersRequest.md)
@@ -172,11 +176,14 @@ Class | Method | HTTP request | Description
172
176
  - [HappyCo::V1RatingControl](docs/V1RatingControl.md)
173
177
  - [HappyCo::V1RatingDropDown](docs/V1RatingDropDown.md)
174
178
  - [HappyCo::V1RatingDropDownOption](docs/V1RatingDropDownOption.md)
175
- - [HappyCo::V1RatingGroups](docs/V1RatingGroups.md)
179
+ - [HappyCo::V1RatingGroup](docs/V1RatingGroup.md)
176
180
  - [HappyCo::V1RatingImage](docs/V1RatingImage.md)
177
181
  - [HappyCo::V1RatingRadioGroup](docs/V1RatingRadioGroup.md)
178
182
  - [HappyCo::V1RatingRadioGroupOption](docs/V1RatingRadioGroupOption.md)
179
183
  - [HappyCo::V1RatingValues](docs/V1RatingValues.md)
184
+ - [HappyCo::V1Report](docs/V1Report.md)
185
+ - [HappyCo::V1ReportsCreatedEvent](docs/V1ReportsCreatedEvent.md)
186
+ - [HappyCo::V1ReportsCreatedEventAckResponse](docs/V1ReportsCreatedEventAckResponse.md)
180
187
  - [HappyCo::V1ScheduledInspection](docs/V1ScheduledInspection.md)
181
188
  - [HappyCo::V1Section](docs/V1Section.md)
182
189
  - [HappyCo::V1SetAssetsArchivedRequest](docs/V1SetAssetsArchivedRequest.md)
@@ -185,6 +192,7 @@ Class | Method | HTTP request | Description
185
192
  - [HappyCo::V1SetInspectionsArchivedResponse](docs/V1SetInspectionsArchivedResponse.md)
186
193
  - [HappyCo::V1SetTemplatesArchivedRequest](docs/V1SetTemplatesArchivedRequest.md)
187
194
  - [HappyCo::V1SetTemplatesArchivedResponse](docs/V1SetTemplatesArchivedResponse.md)
195
+ - [HappyCo::V1Signatory](docs/V1Signatory.md)
188
196
  - [HappyCo::V1StringArray](docs/V1StringArray.md)
189
197
  - [HappyCo::V1Template](docs/V1Template.md)
190
198
  - [HappyCo::V1Unit](docs/V1Unit.md)
@@ -4,6 +4,7 @@ All URIs are relative to *http://test.com/api*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_asset_photo**](AssetServiceApi.md#add_asset_photo) | **POST** /api/v1/manage/asset/photo/add |
7
8
  [**archive_assets**](AssetServiceApi.md#archive_assets) | **PUT** /api/v1/manage/assets/archive |
8
9
  [**create_assets**](AssetServiceApi.md#create_assets) | **POST** /api/v1/manage/assets/create |
9
10
  [**list_assets**](AssetServiceApi.md#list_assets) | **POST** /api/v1/manage/assets/list |
@@ -11,6 +12,50 @@ Method | HTTP request | Description
11
12
  [**update_assets**](AssetServiceApi.md#update_assets) | **PUT** /api/v1/manage/assets/update |
12
13
 
13
14
 
15
+ # **add_asset_photo**
16
+ > V1AddAssetPhotoResponse add_asset_photo(body)
17
+
18
+
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'happyco_json'
24
+
25
+ api_instance = HappyCo::AssetServiceApi.new
26
+
27
+ body = HappyCo::V1AddAssetPhotoRequest.new # V1AddAssetPhotoRequest |
28
+
29
+
30
+ begin
31
+ result = api_instance.add_asset_photo(body)
32
+ p result
33
+ rescue HappyCo::ApiError => e
34
+ puts "Exception when calling AssetServiceApi->add_asset_photo: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **body** | [**V1AddAssetPhotoRequest**](V1AddAssetPhotoRequest.md)| |
43
+
44
+ ### Return type
45
+
46
+ [**V1AddAssetPhotoResponse**](V1AddAssetPhotoResponse.md)
47
+
48
+ ### Authorization
49
+
50
+ No authorization required
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: application/json
55
+ - **Accept**: application/json
56
+
57
+
58
+
14
59
  # **archive_assets**
15
60
  > V1SetAssetsArchivedResponse archive_assets(body)
16
61
 
@@ -0,0 +1,54 @@
1
+ # HappyCo::ReportServiceApi
2
+
3
+ All URIs are relative to *http://test.com/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_reports**](ReportServiceApi.md#list_reports) | **POST** /api/v1/inspect/reports/list | * List reports gets a paginated and optionally filtered list of reports from one or more folders.
8
+
9
+
10
+ # **list_reports**
11
+ > V1ListReportsResponse list_reports(body)
12
+
13
+ * List reports gets a paginated and optionally filtered list of reports from one or more folders.
14
+
15
+ ### Example
16
+ ```ruby
17
+ # load the gem
18
+ require 'happyco_json'
19
+
20
+ api_instance = HappyCo::ReportServiceApi.new
21
+
22
+ body = HappyCo::V1ListReportsRequest.new # V1ListReportsRequest |
23
+
24
+
25
+ begin
26
+ #* List reports gets a paginated and optionally filtered list of reports from one or more folders.
27
+ result = api_instance.list_reports(body)
28
+ p result
29
+ rescue HappyCo::ApiError => e
30
+ puts "Exception when calling ReportServiceApi->list_reports: #{e}"
31
+ end
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ Name | Type | Description | Notes
37
+ ------------- | ------------- | ------------- | -------------
38
+ **body** | [**V1ListReportsRequest**](V1ListReportsRequest.md)| |
39
+
40
+ ### Return type
41
+
42
+ [**V1ListReportsResponse**](V1ListReportsResponse.md)
43
+
44
+ ### Authorization
45
+
46
+ No authorization required
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: application/json
51
+ - **Accept**: application/json
52
+
53
+
54
+
@@ -0,0 +1,9 @@
1
+ # HappyCo::ReportsCreatedEventReportCreated
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **report_id** | [**V1IntegrationID**](V1IntegrationID.md) | | [optional]
7
+ **version** | **Integer** | | [optional]
8
+
9
+