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.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/README.md +20 -12
- data/docs/AssetServiceApi.md +45 -0
- data/docs/ReportServiceApi.md +54 -0
- data/docs/ReportsCreatedEventReportCreated.md +9 -0
- data/docs/V1AddAssetPhotoRequest.md +12 -0
- data/docs/V1AddAssetPhotoResponse.md +8 -0
- data/docs/V1Asset.md +1 -0
- data/docs/V1Date.md +10 -0
- data/docs/V1Inspection.md +1 -0
- data/docs/V1InspectionData.md +1 -1
- data/docs/V1ListInspectionsRequest.md +2 -0
- data/docs/V1ListReportsRequest.md +14 -0
- data/docs/V1ListReportsResponse.md +10 -0
- data/docs/V1RatingGroup.md +12 -0
- data/docs/V1Report.md +22 -0
- data/docs/V1ReportsCreatedEvent.md +9 -0
- data/docs/{V1EventHandlerOptions.md → V1ReportsCreatedEventAckResponse.md} +1 -2
- data/docs/V1Signatory.md +12 -0
- data/docs/V1Template.md +1 -1
- data/git_push.sh +12 -0
- data/happyco_json.gemspec +14 -4
- data/lib/happyco_json/api/account_provisioning_service_api.rb +25 -5
- data/lib/happyco_json/api/account_service_api.rb +25 -5
- data/lib/happyco_json/api/account_users_service_api.rb +37 -9
- data/lib/happyco_json/api/asset_service_api.rb +100 -11
- data/lib/happyco_json/api/folder_service_api.rb +37 -9
- data/lib/happyco_json/api/inspection_service_api.rb +55 -15
- data/lib/happyco_json/api/report_service_api.rb +91 -0
- data/lib/happyco_json/api/template_service_api.rb +43 -11
- data/lib/happyco_json/api_client.rb +20 -17
- data/lib/happyco_json/api_error.rb +18 -8
- data/lib/happyco_json/configuration.rb +13 -1
- data/lib/happyco_json/helpers.rb +7 -4
- data/lib/happyco_json/models/create_accounts_request_account_with_admin.rb +16 -4
- data/lib/happyco_json/models/create_accounts_response_account_id_with_admin_id.rb +16 -4
- data/lib/happyco_json/models/inspection_status_change_status.rb +13 -1
- data/lib/happyco_json/models/inspection_status_changes_event_inspection_status_change.rb +16 -4
- data/lib/happyco_json/models/{v1_event_ack.rb → reports_created_event_report_created.rb} +30 -29
- data/lib/happyco_json/models/update_accounts_request_account_with_admin_id.rb +16 -4
- data/lib/happyco_json/models/v1_account.rb +16 -4
- data/lib/happyco_json/models/v1_add_asset_photo_request.rb +237 -0
- data/lib/happyco_json/models/{v1_inspection_status_changes_event_ack.rb → v1_add_asset_photo_response.rb} +25 -14
- data/lib/happyco_json/models/v1_add_inspection_photo_request.rb +16 -4
- data/lib/happyco_json/models/v1_add_inspection_photo_response.rb +16 -4
- data/lib/happyco_json/models/v1_add_inspection_photos_request.rb +16 -4
- data/lib/happyco_json/models/v1_add_inspection_photos_response.rb +16 -4
- data/lib/happyco_json/models/v1_add_users_request.rb +16 -4
- data/lib/happyco_json/models/v1_add_users_response.rb +16 -4
- data/lib/happyco_json/models/v1_asset.rb +29 -8
- data/lib/happyco_json/models/v1_create_accounts_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_accounts_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_assets_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_assets_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_link_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_link_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_links_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_links_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_folders_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_folders_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_inspections_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_inspections_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_templates_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_templates_response.rb +16 -4
- data/lib/happyco_json/models/{v1_inspection_status_changes_event_request.rb → v1_date.rb} +39 -20
- data/lib/happyco_json/models/v1_date_time.rb +16 -4
- data/lib/happyco_json/models/v1_event.rb +16 -4
- data/lib/happyco_json/models/v1_float_array.rb +16 -4
- data/lib/happyco_json/models/v1_folder.rb +16 -4
- data/lib/happyco_json/models/v1_folder_type.rb +13 -1
- data/lib/happyco_json/models/v1_footer_field.rb +16 -4
- data/lib/happyco_json/models/v1_header_field.rb +16 -4
- data/lib/happyco_json/models/v1_inspection.rb +29 -8
- data/lib/happyco_json/models/v1_inspection_data.rb +17 -5
- data/lib/happyco_json/models/v1_inspection_status_changes_event.rb +16 -4
- data/lib/happyco_json/models/v1_inspection_status_changes_event_ack_response.rb +16 -4
- data/lib/happyco_json/models/v1_integration_id.rb +16 -4
- data/lib/happyco_json/models/v1_item.rb +16 -4
- data/lib/happyco_json/models/v1_list_accounts_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_accounts_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_assets_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_assets_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_folders_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_folders_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_inspections_request.rb +38 -8
- data/lib/happyco_json/models/v1_list_inspections_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_reports_request.rb +268 -0
- data/lib/happyco_json/models/v1_list_reports_response.rb +222 -0
- data/lib/happyco_json/models/v1_list_templates_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_templates_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_users_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_users_response.rb +16 -4
- data/lib/happyco_json/models/v1_paging.rb +16 -4
- data/lib/happyco_json/models/v1_paging_response.rb +16 -4
- data/lib/happyco_json/models/v1_photo.rb +16 -4
- data/lib/happyco_json/models/v1_property.rb +16 -4
- data/lib/happyco_json/models/v1_rating_checkbox.rb +16 -4
- data/lib/happyco_json/models/v1_rating_control.rb +17 -5
- data/lib/happyco_json/models/v1_rating_drop_down.rb +16 -4
- data/lib/happyco_json/models/v1_rating_drop_down_option.rb +16 -4
- data/lib/happyco_json/models/v1_rating_group.rb +246 -0
- data/lib/happyco_json/models/v1_rating_groups.rb +1 -0
- data/lib/happyco_json/models/v1_rating_image.rb +13 -1
- data/lib/happyco_json/models/v1_rating_radio_group.rb +16 -4
- data/lib/happyco_json/models/v1_rating_radio_group_option.rb +16 -4
- data/lib/happyco_json/models/v1_rating_values.rb +16 -4
- data/lib/happyco_json/models/v1_report.rb +341 -0
- data/lib/happyco_json/models/v1_reports_created_event.rb +210 -0
- data/lib/happyco_json/models/{v1_event_handler_options.rb → v1_reports_created_event_ack_response.rb} +20 -17
- data/lib/happyco_json/models/v1_scheduled_inspection.rb +16 -4
- data/lib/happyco_json/models/v1_section.rb +16 -4
- data/lib/happyco_json/models/v1_set_assets_archived_request.rb +16 -4
- data/lib/happyco_json/models/v1_set_assets_archived_response.rb +16 -4
- data/lib/happyco_json/models/v1_set_inspections_archived_request.rb +16 -4
- data/lib/happyco_json/models/v1_set_inspections_archived_response.rb +16 -4
- data/lib/happyco_json/models/v1_set_templates_archived_request.rb +16 -4
- data/lib/happyco_json/models/v1_set_templates_archived_response.rb +16 -4
- data/lib/happyco_json/models/v1_signatory.rb +240 -0
- data/lib/happyco_json/models/v1_string_array.rb +16 -4
- data/lib/happyco_json/models/v1_template.rb +17 -5
- data/lib/happyco_json/models/v1_unit.rb +16 -4
- data/lib/happyco_json/models/v1_update_account_statuses_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_account_statuses_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_accounts_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_accounts_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_assets_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_assets_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_folder_statuses_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_folder_statuses_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_folders_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_folders_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_inspections_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_inspections_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_templates_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_templates_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_user_statuses_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_user_statuses_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_users_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_users_response.rb +16 -4
- data/lib/happyco_json/models/v1_user.rb +16 -4
- data/lib/happyco_json/version.rb +14 -2
- data/lib/happyco_json.rb +27 -7
- data/spec/api/account_provisioning_service_api_spec.rb +13 -1
- data/spec/api/account_service_api_spec.rb +13 -1
- data/spec/api/account_users_service_api_spec.rb +13 -1
- data/spec/api/asset_service_api_spec.rb +25 -1
- data/spec/api/folder_service_api_spec.rb +13 -1
- data/spec/api/inspection_service_api_spec.rb +13 -1
- data/spec/api/report_service_api_spec.rb +58 -0
- data/spec/api/template_service_api_spec.rb +13 -1
- data/spec/api_client_spec.rb +13 -1
- data/spec/configuration_spec.rb +13 -1
- data/spec/models/create_accounts_request_account_with_admin_spec.rb +13 -1
- data/spec/models/create_accounts_response_account_id_with_admin_id_spec.rb +13 -1
- data/spec/models/inspection_status_change_status_spec.rb +13 -1
- data/spec/models/inspection_status_changes_event_inspection_status_change_spec.rb +13 -1
- data/spec/models/reports_created_event_report_created_spec.rb +59 -0
- data/spec/models/update_accounts_request_account_with_admin_id_spec.rb +13 -1
- data/spec/models/v1_account_spec.rb +13 -1
- data/spec/models/v1_add_asset_photo_request_spec.rb +77 -0
- data/spec/models/v1_add_asset_photo_response_spec.rb +53 -0
- data/spec/models/v1_add_inspection_photo_request_spec.rb +13 -1
- data/spec/models/v1_add_inspection_photo_response_spec.rb +13 -1
- data/spec/models/v1_add_inspection_photos_request_spec.rb +13 -1
- data/spec/models/v1_add_inspection_photos_response_spec.rb +13 -1
- data/spec/models/v1_add_users_request_spec.rb +13 -1
- data/spec/models/v1_add_users_response_spec.rb +13 -1
- data/spec/models/v1_asset_spec.rb +19 -1
- data/spec/models/v1_create_accounts_request_spec.rb +13 -1
- data/spec/models/v1_create_accounts_response_spec.rb +13 -1
- data/spec/models/v1_create_assets_request_spec.rb +13 -1
- data/spec/models/v1_create_assets_response_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_link_request_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_link_response_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_links_request_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_links_response_spec.rb +13 -1
- data/spec/models/v1_create_folders_request_spec.rb +13 -1
- data/spec/models/v1_create_folders_response_spec.rb +13 -1
- data/spec/models/v1_create_inspections_request_spec.rb +13 -1
- data/spec/models/v1_create_inspections_response_spec.rb +13 -1
- data/spec/models/v1_create_templates_request_spec.rb +13 -1
- data/spec/models/v1_create_templates_response_spec.rb +13 -1
- data/spec/models/v1_date_spec.rb +65 -0
- data/spec/models/v1_date_time_spec.rb +13 -1
- data/spec/models/v1_event_spec.rb +13 -1
- data/spec/models/v1_float_array_spec.rb +13 -1
- data/spec/models/v1_folder_spec.rb +13 -1
- data/spec/models/v1_folder_type_spec.rb +13 -1
- data/spec/models/v1_footer_field_spec.rb +13 -1
- data/spec/models/v1_header_field_spec.rb +13 -1
- data/spec/models/v1_inspection_data_spec.rb +13 -1
- data/spec/models/v1_inspection_spec.rb +19 -1
- data/spec/models/v1_inspection_status_changes_event_ack_response_spec.rb +13 -1
- data/spec/models/v1_inspection_status_changes_event_spec.rb +13 -1
- data/spec/models/v1_integration_id_spec.rb +13 -1
- data/spec/models/v1_item_spec.rb +13 -1
- data/spec/models/v1_list_accounts_request_spec.rb +13 -1
- data/spec/models/v1_list_accounts_response_spec.rb +13 -1
- data/spec/models/v1_list_assets_request_spec.rb +13 -1
- data/spec/models/v1_list_assets_response_spec.rb +13 -1
- data/spec/models/v1_list_folders_request_spec.rb +13 -1
- data/spec/models/v1_list_folders_response_spec.rb +13 -1
- data/spec/models/v1_list_inspections_request_spec.rb +25 -1
- data/spec/models/v1_list_inspections_response_spec.rb +13 -1
- data/spec/models/v1_list_reports_request_spec.rb +89 -0
- data/spec/models/v1_list_reports_response_spec.rb +65 -0
- data/spec/models/v1_list_templates_request_spec.rb +13 -1
- data/spec/models/v1_list_templates_response_spec.rb +13 -1
- data/spec/models/v1_list_users_request_spec.rb +13 -1
- data/spec/models/v1_list_users_response_spec.rb +13 -1
- data/spec/models/v1_paging_response_spec.rb +13 -1
- data/spec/models/v1_paging_spec.rb +13 -1
- data/spec/models/v1_photo_spec.rb +13 -1
- data/spec/models/v1_property_spec.rb +13 -1
- data/spec/models/v1_rating_checkbox_spec.rb +13 -1
- data/spec/models/v1_rating_control_spec.rb +13 -1
- data/spec/models/v1_rating_drop_down_option_spec.rb +13 -1
- data/spec/models/v1_rating_drop_down_spec.rb +13 -1
- data/spec/models/v1_rating_group_spec.rb +77 -0
- data/spec/models/v1_rating_image_spec.rb +13 -1
- data/spec/models/v1_rating_radio_group_option_spec.rb +13 -1
- data/spec/models/v1_rating_radio_group_spec.rb +13 -1
- data/spec/models/v1_rating_values_spec.rb +13 -1
- data/spec/models/v1_report_spec.rb +137 -0
- data/spec/models/v1_reports_created_event_ack_response_spec.rb +47 -0
- data/spec/models/v1_reports_created_event_spec.rb +59 -0
- data/spec/models/v1_scheduled_inspection_spec.rb +13 -1
- data/spec/models/v1_section_spec.rb +13 -1
- data/spec/models/v1_set_assets_archived_request_spec.rb +13 -1
- data/spec/models/v1_set_assets_archived_response_spec.rb +13 -1
- data/spec/models/v1_set_inspections_archived_request_spec.rb +13 -1
- data/spec/models/v1_set_inspections_archived_response_spec.rb +13 -1
- data/spec/models/v1_set_templates_archived_request_spec.rb +13 -1
- data/spec/models/v1_set_templates_archived_response_spec.rb +13 -1
- data/spec/models/v1_signatory_spec.rb +77 -0
- data/spec/models/v1_string_array_spec.rb +13 -1
- data/spec/models/v1_template_spec.rb +13 -1
- data/spec/models/v1_unit_spec.rb +13 -1
- data/spec/models/v1_update_account_statuses_request_spec.rb +13 -1
- data/spec/models/v1_update_account_statuses_response_spec.rb +13 -1
- data/spec/models/v1_update_accounts_request_spec.rb +13 -1
- data/spec/models/v1_update_accounts_response_spec.rb +13 -1
- data/spec/models/v1_update_assets_request_spec.rb +13 -1
- data/spec/models/v1_update_assets_response_spec.rb +13 -1
- data/spec/models/v1_update_folder_statuses_request_spec.rb +13 -1
- data/spec/models/v1_update_folder_statuses_response_spec.rb +13 -1
- data/spec/models/v1_update_folders_request_spec.rb +13 -1
- data/spec/models/v1_update_folders_response_spec.rb +13 -1
- data/spec/models/v1_update_inspections_request_spec.rb +13 -1
- data/spec/models/v1_update_inspections_response_spec.rb +13 -1
- data/spec/models/v1_update_templates_request_spec.rb +13 -1
- data/spec/models/v1_update_templates_response_spec.rb +13 -1
- data/spec/models/v1_update_user_statuses_request_spec.rb +13 -1
- data/spec/models/v1_update_user_statuses_response_spec.rb +13 -1
- data/spec/models/v1_update_users_request_spec.rb +13 -1
- data/spec/models/v1_update_users_response_spec.rb +13 -1
- data/spec/models/v1_user_spec.rb +13 -1
- data/spec/spec_helper.rb +13 -1
- metadata +153 -124
- data/Gemfile +0 -7
- data/Rakefile +0 -8
- data/docs/V1EventAck.md +0 -10
- data/docs/V1InspectionStatusChangesEventAck.md +0 -8
- data/docs/V1InspectionStatusChangesEventRequest.md +0 -9
- data/docs/V1RatingGroups.md +0 -9
- data/lib/happyco_json/models/v1_rating_groups.rb +0 -200
- data/spec/models/v1_event_ack_spec.rb +0 -53
- data/spec/models/v1_event_handler_options_spec.rb +0 -41
- data/spec/models/v1_inspection_status_changes_event_ack_spec.rb +0 -41
- data/spec/models/v1_inspection_status_changes_event_request_spec.rb +0 -47
- 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:
|
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'
|
@@ -104,7 +116,7 @@ module HappyCo
|
|
104
116
|
def build_from_hash(attributes)
|
105
117
|
return nil unless attributes.is_a?(Hash)
|
106
118
|
self.class.swagger_types.each_pair do |key, type|
|
107
|
-
if type =~
|
119
|
+
if type =~ /^Array<(.*)>/i
|
108
120
|
# check to ensure the input is an array given that the the attribute
|
109
121
|
# is documented as an array but the input is not
|
110
122
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -135,7 +147,7 @@ module HappyCo
|
|
135
147
|
when :Float
|
136
148
|
value.to_f
|
137
149
|
when :BOOLEAN
|
138
|
-
if value.to_s =~
|
150
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
139
151
|
true
|
140
152
|
else
|
141
153
|
false
|
@@ -146,7 +158,7 @@ module HappyCo
|
|
146
158
|
when /\AArray<(?<inner_type>.+)>\z/
|
147
159
|
inner_type = Regexp.last_match[:inner_type]
|
148
160
|
value.map { |v| _deserialize(inner_type, v) }
|
149
|
-
when /\AHash<(?<k_type
|
161
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
150
162
|
k_type = Regexp.last_match[:k_type]
|
151
163
|
v_type = Regexp.last_match[:v_type]
|
152
164
|
{}.tap do |hash|
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
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'
|
@@ -95,7 +107,7 @@ module HappyCo
|
|
95
107
|
def build_from_hash(attributes)
|
96
108
|
return nil unless attributes.is_a?(Hash)
|
97
109
|
self.class.swagger_types.each_pair do |key, type|
|
98
|
-
if type =~
|
110
|
+
if type =~ /^Array<(.*)>/i
|
99
111
|
# check to ensure the input is an array given that the the attribute
|
100
112
|
# is documented as an array but the input is not
|
101
113
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -126,7 +138,7 @@ module HappyCo
|
|
126
138
|
when :Float
|
127
139
|
value.to_f
|
128
140
|
when :BOOLEAN
|
129
|
-
if value.to_s =~
|
141
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
130
142
|
true
|
131
143
|
else
|
132
144
|
false
|
@@ -137,7 +149,7 @@ module HappyCo
|
|
137
149
|
when /\AArray<(?<inner_type>.+)>\z/
|
138
150
|
inner_type = Regexp.last_match[:inner_type]
|
139
151
|
value.map { |v| _deserialize(inner_type, v) }
|
140
|
-
when /\AHash<(?<k_type
|
152
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
141
153
|
k_type = Regexp.last_match[:k_type]
|
142
154
|
v_type = Regexp.last_match[:v_type]
|
143
155
|
{}.tap do |hash|
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
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'
|
@@ -122,7 +134,7 @@ module HappyCo
|
|
122
134
|
def build_from_hash(attributes)
|
123
135
|
return nil unless attributes.is_a?(Hash)
|
124
136
|
self.class.swagger_types.each_pair do |key, type|
|
125
|
-
if type =~
|
137
|
+
if type =~ /^Array<(.*)>/i
|
126
138
|
# check to ensure the input is an array given that the the attribute
|
127
139
|
# is documented as an array but the input is not
|
128
140
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -153,7 +165,7 @@ module HappyCo
|
|
153
165
|
when :Float
|
154
166
|
value.to_f
|
155
167
|
when :BOOLEAN
|
156
|
-
if value.to_s =~
|
168
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
157
169
|
true
|
158
170
|
else
|
159
171
|
false
|
@@ -164,7 +176,7 @@ module HappyCo
|
|
164
176
|
when /\AArray<(?<inner_type>.+)>\z/
|
165
177
|
inner_type = Regexp.last_match[:inner_type]
|
166
178
|
value.map { |v| _deserialize(inner_type, v) }
|
167
|
-
when /\AHash<(?<k_type
|
179
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
168
180
|
k_type = Regexp.last_match[:k_type]
|
169
181
|
v_type = Regexp.last_match[:v_type]
|
170
182
|
{}.tap do |hash|
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
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'
|
@@ -95,7 +107,7 @@ module HappyCo
|
|
95
107
|
def build_from_hash(attributes)
|
96
108
|
return nil unless attributes.is_a?(Hash)
|
97
109
|
self.class.swagger_types.each_pair do |key, type|
|
98
|
-
if type =~
|
110
|
+
if type =~ /^Array<(.*)>/i
|
99
111
|
# check to ensure the input is an array given that the the attribute
|
100
112
|
# is documented as an array but the input is not
|
101
113
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -126,7 +138,7 @@ module HappyCo
|
|
126
138
|
when :Float
|
127
139
|
value.to_f
|
128
140
|
when :BOOLEAN
|
129
|
-
if value.to_s =~
|
141
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
130
142
|
true
|
131
143
|
else
|
132
144
|
false
|
@@ -137,7 +149,7 @@ module HappyCo
|
|
137
149
|
when /\AArray<(?<inner_type>.+)>\z/
|
138
150
|
inner_type = Regexp.last_match[:inner_type]
|
139
151
|
value.map { |v| _deserialize(inner_type, v) }
|
140
|
-
when /\AHash<(?<k_type
|
152
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
141
153
|
k_type = Regexp.last_match[:k_type]
|
142
154
|
v_type = Regexp.last_match[:v_type]
|
143
155
|
{}.tap do |hash|
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
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'
|
@@ -113,7 +125,7 @@ module HappyCo
|
|
113
125
|
def build_from_hash(attributes)
|
114
126
|
return nil unless attributes.is_a?(Hash)
|
115
127
|
self.class.swagger_types.each_pair do |key, type|
|
116
|
-
if type =~
|
128
|
+
if type =~ /^Array<(.*)>/i
|
117
129
|
# check to ensure the input is an array given that the the attribute
|
118
130
|
# is documented as an array but the input is not
|
119
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -144,7 +156,7 @@ module HappyCo
|
|
144
156
|
when :Float
|
145
157
|
value.to_f
|
146
158
|
when :BOOLEAN
|
147
|
-
if value.to_s =~
|
159
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
148
160
|
true
|
149
161
|
else
|
150
162
|
false
|
@@ -155,7 +167,7 @@ module HappyCo
|
|
155
167
|
when /\AArray<(?<inner_type>.+)>\z/
|
156
168
|
inner_type = Regexp.last_match[:inner_type]
|
157
169
|
value.map { |v| _deserialize(inner_type, v) }
|
158
|
-
when /\AHash<(?<k_type
|
170
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
159
171
|
k_type = Regexp.last_match[:k_type]
|
160
172
|
v_type = Regexp.last_match[:v_type]
|
161
173
|
{}.tap do |hash|
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
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'
|
@@ -95,7 +107,7 @@ module HappyCo
|
|
95
107
|
def build_from_hash(attributes)
|
96
108
|
return nil unless attributes.is_a?(Hash)
|
97
109
|
self.class.swagger_types.each_pair do |key, type|
|
98
|
-
if type =~
|
110
|
+
if type =~ /^Array<(.*)>/i
|
99
111
|
# check to ensure the input is an array given that the the attribute
|
100
112
|
# is documented as an array but the input is not
|
101
113
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -126,7 +138,7 @@ module HappyCo
|
|
126
138
|
when :Float
|
127
139
|
value.to_f
|
128
140
|
when :BOOLEAN
|
129
|
-
if value.to_s =~
|
141
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
130
142
|
true
|
131
143
|
else
|
132
144
|
false
|
@@ -137,7 +149,7 @@ module HappyCo
|
|
137
149
|
when /\AArray<(?<inner_type>.+)>\z/
|
138
150
|
inner_type = Regexp.last_match[:inner_type]
|
139
151
|
value.map { |v| _deserialize(inner_type, v) }
|
140
|
-
when /\AHash<(?<k_type
|
152
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
141
153
|
k_type = Regexp.last_match[:k_type]
|
142
154
|
v_type = Regexp.last_match[:v_type]
|
143
155
|
{}.tap do |hash|
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
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'
|
@@ -32,6 +44,10 @@ module HappyCo
|
|
32
44
|
# * Paging message that contains information about the page being requested. This message is usually copied from a previous list request's response.
|
33
45
|
attr_accessor :paging
|
34
46
|
|
47
|
+
attr_accessor :min_update_time
|
48
|
+
|
49
|
+
attr_accessor :max_update_time
|
50
|
+
|
35
51
|
|
36
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
53
|
def self.attribute_map
|
@@ -41,7 +57,9 @@ module HappyCo
|
|
41
57
|
:'asset_ids' => :'asset_ids',
|
42
58
|
:'inspection_ids' => :'inspection_ids',
|
43
59
|
:'archived' => :'archived',
|
44
|
-
:'paging' => :'paging'
|
60
|
+
:'paging' => :'paging',
|
61
|
+
:'min_update_time' => :'min_update_time',
|
62
|
+
:'max_update_time' => :'max_update_time'
|
45
63
|
}
|
46
64
|
end
|
47
65
|
|
@@ -53,7 +71,9 @@ module HappyCo
|
|
53
71
|
:'asset_ids' => :'Array<V1IntegrationID>',
|
54
72
|
:'inspection_ids' => :'Array<V1IntegrationID>',
|
55
73
|
:'archived' => :'BOOLEAN',
|
56
|
-
:'paging' => :'V1Paging'
|
74
|
+
:'paging' => :'V1Paging',
|
75
|
+
:'min_update_time' => :'V1DateTime',
|
76
|
+
:'max_update_time' => :'V1DateTime'
|
57
77
|
}
|
58
78
|
end
|
59
79
|
|
@@ -95,6 +115,14 @@ module HappyCo
|
|
95
115
|
self.paging = attributes[:'paging']
|
96
116
|
end
|
97
117
|
|
118
|
+
if attributes.has_key?(:'min_update_time')
|
119
|
+
self.min_update_time = attributes[:'min_update_time']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.has_key?(:'max_update_time')
|
123
|
+
self.max_update_time = attributes[:'max_update_time']
|
124
|
+
end
|
125
|
+
|
98
126
|
end
|
99
127
|
|
100
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -120,7 +148,9 @@ module HappyCo
|
|
120
148
|
asset_ids == o.asset_ids &&
|
121
149
|
inspection_ids == o.inspection_ids &&
|
122
150
|
archived == o.archived &&
|
123
|
-
paging == o.paging
|
151
|
+
paging == o.paging &&
|
152
|
+
min_update_time == o.min_update_time &&
|
153
|
+
max_update_time == o.max_update_time
|
124
154
|
end
|
125
155
|
|
126
156
|
# @see the `==` method
|
@@ -132,7 +162,7 @@ module HappyCo
|
|
132
162
|
# Calculates hash code according to all attributes.
|
133
163
|
# @return [Fixnum] Hash code
|
134
164
|
def hash
|
135
|
-
[account_id, folder_ids, asset_ids, inspection_ids, archived, paging].hash
|
165
|
+
[account_id, folder_ids, asset_ids, inspection_ids, archived, paging, min_update_time, max_update_time].hash
|
136
166
|
end
|
137
167
|
|
138
168
|
# Builds the object from hash
|
@@ -141,7 +171,7 @@ module HappyCo
|
|
141
171
|
def build_from_hash(attributes)
|
142
172
|
return nil unless attributes.is_a?(Hash)
|
143
173
|
self.class.swagger_types.each_pair do |key, type|
|
144
|
-
if type =~
|
174
|
+
if type =~ /^Array<(.*)>/i
|
145
175
|
# check to ensure the input is an array given that the the attribute
|
146
176
|
# is documented as an array but the input is not
|
147
177
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -172,7 +202,7 @@ module HappyCo
|
|
172
202
|
when :Float
|
173
203
|
value.to_f
|
174
204
|
when :BOOLEAN
|
175
|
-
if value.to_s =~
|
205
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
176
206
|
true
|
177
207
|
else
|
178
208
|
false
|
@@ -183,7 +213,7 @@ module HappyCo
|
|
183
213
|
when /\AArray<(?<inner_type>.+)>\z/
|
184
214
|
inner_type = Regexp.last_match[:inner_type]
|
185
215
|
value.map { |v| _deserialize(inner_type, v) }
|
186
|
-
when /\AHash<(?<k_type
|
216
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
187
217
|
k_type = Regexp.last_match[:k_type]
|
188
218
|
v_type = Regexp.last_match[:v_type]
|
189
219
|
{}.tap do |hash|
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
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'
|
@@ -107,7 +119,7 @@ module HappyCo
|
|
107
119
|
def build_from_hash(attributes)
|
108
120
|
return nil unless attributes.is_a?(Hash)
|
109
121
|
self.class.swagger_types.each_pair do |key, type|
|
110
|
-
if type =~
|
122
|
+
if type =~ /^Array<(.*)>/i
|
111
123
|
# check to ensure the input is an array given that the the attribute
|
112
124
|
# is documented as an array but the input is not
|
113
125
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -138,7 +150,7 @@ module HappyCo
|
|
138
150
|
when :Float
|
139
151
|
value.to_f
|
140
152
|
when :BOOLEAN
|
141
|
-
if value.to_s =~
|
153
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
142
154
|
true
|
143
155
|
else
|
144
156
|
false
|
@@ -149,7 +161,7 @@ module HappyCo
|
|
149
161
|
when /\AArray<(?<inner_type>.+)>\z/
|
150
162
|
inner_type = Regexp.last_match[:inner_type]
|
151
163
|
value.map { |v| _deserialize(inner_type, v) }
|
152
|
-
when /\AHash<(?<k_type
|
164
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
153
165
|
k_type = Regexp.last_match[:k_type]
|
154
166
|
v_type = Regexp.last_match[:v_type]
|
155
167
|
{}.tap do |hash|
|