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
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'date'
@@ -129,7 +141,7 @@ module HappyCo
129
141
  def build_from_hash(attributes)
130
142
  return nil unless attributes.is_a?(Hash)
131
143
  self.class.swagger_types.each_pair do |key, type|
132
- if type =~ /\AArray<(.*)>/i
144
+ if type =~ /^Array<(.*)>/i
133
145
  # check to ensure the input is an array given that the the attribute
134
146
  # is documented as an array but the input is not
135
147
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -160,7 +172,7 @@ module HappyCo
160
172
  when :Float
161
173
  value.to_f
162
174
  when :BOOLEAN
163
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
175
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
164
176
  true
165
177
  else
166
178
  false
@@ -171,7 +183,7 @@ module HappyCo
171
183
  when /\AArray<(?<inner_type>.+)>\z/
172
184
  inner_type = Regexp.last_match[:inner_type]
173
185
  value.map { |v| _deserialize(inner_type, v) }
174
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
186
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
175
187
  k_type = Regexp.last_match[:k_type]
176
188
  v_type = Regexp.last_match[:v_type]
177
189
  {}.tap do |hash|
@@ -3,12 +3,24 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  module HappyCo
13
- VERSION = "2.0.0"
25
+ VERSION = "2.1.0"
14
26
  end
data/lib/happyco_json.rb CHANGED
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  # Common files
@@ -20,8 +32,11 @@ require 'happyco_json/models/create_accounts_request_account_with_admin'
20
32
  require 'happyco_json/models/create_accounts_response_account_id_with_admin_id'
21
33
  require 'happyco_json/models/inspection_status_change_status'
22
34
  require 'happyco_json/models/inspection_status_changes_event_inspection_status_change'
35
+ require 'happyco_json/models/reports_created_event_report_created'
23
36
  require 'happyco_json/models/update_accounts_request_account_with_admin_id'
24
37
  require 'happyco_json/models/v1_account'
38
+ require 'happyco_json/models/v1_add_asset_photo_request'
39
+ require 'happyco_json/models/v1_add_asset_photo_response'
25
40
  require 'happyco_json/models/v1_add_inspection_photo_request'
26
41
  require 'happyco_json/models/v1_add_inspection_photo_response'
27
42
  require 'happyco_json/models/v1_add_inspection_photos_request'
@@ -43,10 +58,9 @@ require 'happyco_json/models/v1_create_inspections_request'
43
58
  require 'happyco_json/models/v1_create_inspections_response'
44
59
  require 'happyco_json/models/v1_create_templates_request'
45
60
  require 'happyco_json/models/v1_create_templates_response'
61
+ require 'happyco_json/models/v1_date'
46
62
  require 'happyco_json/models/v1_date_time'
47
63
  require 'happyco_json/models/v1_event'
48
- require 'happyco_json/models/v1_event_ack'
49
- require 'happyco_json/models/v1_event_handler_options'
50
64
  require 'happyco_json/models/v1_float_array'
51
65
  require 'happyco_json/models/v1_folder'
52
66
  require 'happyco_json/models/v1_folder_type'
@@ -55,9 +69,7 @@ require 'happyco_json/models/v1_header_field'
55
69
  require 'happyco_json/models/v1_inspection'
56
70
  require 'happyco_json/models/v1_inspection_data'
57
71
  require 'happyco_json/models/v1_inspection_status_changes_event'
58
- require 'happyco_json/models/v1_inspection_status_changes_event_ack'
59
72
  require 'happyco_json/models/v1_inspection_status_changes_event_ack_response'
60
- require 'happyco_json/models/v1_inspection_status_changes_event_request'
61
73
  require 'happyco_json/models/v1_integration_id'
62
74
  require 'happyco_json/models/v1_item'
63
75
  require 'happyco_json/models/v1_list_accounts_request'
@@ -68,6 +80,8 @@ require 'happyco_json/models/v1_list_folders_request'
68
80
  require 'happyco_json/models/v1_list_folders_response'
69
81
  require 'happyco_json/models/v1_list_inspections_request'
70
82
  require 'happyco_json/models/v1_list_inspections_response'
83
+ require 'happyco_json/models/v1_list_reports_request'
84
+ require 'happyco_json/models/v1_list_reports_response'
71
85
  require 'happyco_json/models/v1_list_templates_request'
72
86
  require 'happyco_json/models/v1_list_templates_response'
73
87
  require 'happyco_json/models/v1_list_users_request'
@@ -80,11 +94,14 @@ require 'happyco_json/models/v1_rating_checkbox'
80
94
  require 'happyco_json/models/v1_rating_control'
81
95
  require 'happyco_json/models/v1_rating_drop_down'
82
96
  require 'happyco_json/models/v1_rating_drop_down_option'
83
- require 'happyco_json/models/v1_rating_groups'
97
+ require 'happyco_json/models/v1_rating_group'
84
98
  require 'happyco_json/models/v1_rating_image'
85
99
  require 'happyco_json/models/v1_rating_radio_group'
86
100
  require 'happyco_json/models/v1_rating_radio_group_option'
87
101
  require 'happyco_json/models/v1_rating_values'
102
+ require 'happyco_json/models/v1_report'
103
+ require 'happyco_json/models/v1_reports_created_event'
104
+ require 'happyco_json/models/v1_reports_created_event_ack_response'
88
105
  require 'happyco_json/models/v1_scheduled_inspection'
89
106
  require 'happyco_json/models/v1_section'
90
107
  require 'happyco_json/models/v1_set_assets_archived_request'
@@ -93,6 +110,7 @@ require 'happyco_json/models/v1_set_inspections_archived_request'
93
110
  require 'happyco_json/models/v1_set_inspections_archived_response'
94
111
  require 'happyco_json/models/v1_set_templates_archived_request'
95
112
  require 'happyco_json/models/v1_set_templates_archived_response'
113
+ require 'happyco_json/models/v1_signatory'
96
114
  require 'happyco_json/models/v1_string_array'
97
115
  require 'happyco_json/models/v1_template'
98
116
  require 'happyco_json/models/v1_unit'
@@ -123,6 +141,7 @@ require 'happyco_json/api/account_users_service_api'
123
141
  require 'happyco_json/api/asset_service_api'
124
142
  require 'happyco_json/api/folder_service_api'
125
143
  require 'happyco_json/api/inspection_service_api'
144
+ require 'happyco_json/api/report_service_api'
126
145
  require 'happyco_json/api/template_service_api'
127
146
 
128
147
  module HappyCo
@@ -142,4 +161,5 @@ module HappyCo
142
161
  end
143
162
  end
144
163
  end
145
- require "happyco_json/helpers"
164
+ require 'happyco_json/models/v1_rating_groups'
165
+ require 'happyco_json/helpers'
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -31,6 +43,18 @@ describe 'AssetServiceApi' do
31
43
  end
32
44
  end
33
45
 
46
+ # unit tests for add_asset_photo
47
+ #
48
+ #
49
+ # @param body
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [V1AddAssetPhotoResponse]
52
+ describe 'add_asset_photo test' do
53
+ it "should work" do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
34
58
  # unit tests for archive_assets
35
59
  #
36
60
  #
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -0,0 +1,58 @@
1
+ =begin
2
+ #Merged swaggers
3
+
4
+ #All happy services merged together
5
+
6
+ OpenAPI spec version: 2.1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+
27
+ # Unit tests for HappyCo::ReportServiceApi
28
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
29
+ # Please update as you see appropriate
30
+ describe 'ReportServiceApi' do
31
+ before do
32
+ # run before each test
33
+ @instance = HappyCo::ReportServiceApi.new
34
+ end
35
+
36
+ after do
37
+ # run after each test
38
+ end
39
+
40
+ describe 'test an instance of ReportServiceApi' do
41
+ it 'should create an instact of ReportServiceApi' do
42
+ expect(@instance).to be_instance_of(HappyCo::ReportServiceApi)
43
+ end
44
+ end
45
+
46
+ # unit tests for list_reports
47
+ # * List reports gets a paginated and optionally filtered list of reports from one or more folders.
48
+ #
49
+ # @param body
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [V1ListReportsResponse]
52
+ describe 'list_reports test' do
53
+ it "should work" do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ end
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -3,10 +3,22 @@
3
3
 
4
4
  #All happy services merged together
5
5
 
6
- OpenAPI spec version: 0.0.1
6
+ OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'