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