merge_ats_client 1.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +53 -17
- data/docs/AccountDetails.md +34 -0
- data/docs/AccountDetailsAndActions.md +34 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +79 -0
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/ActivitiesApi.md +6 -4
- data/docs/Activity.md +7 -5
- data/docs/Application.md +12 -8
- data/docs/ApplicationEndpointRequest.md +20 -0
- data/docs/ApplicationRequest.md +16 -8
- data/docs/ApplicationResponse.md +24 -0
- data/docs/ApplicationsApi.md +98 -18
- data/docs/Attachment.md +3 -1
- data/docs/AttachmentEndpointRequest.md +20 -0
- data/docs/AttachmentRequest.md +5 -1
- data/docs/AttachmentResponse.md +24 -0
- data/docs/AttachmentsApi.md +93 -15
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/Candidate.md +11 -7
- data/docs/CandidateEndpointRequest.md +20 -0
- data/docs/CandidateRequest.md +15 -7
- data/docs/CandidateResponse.md +24 -0
- data/docs/CandidatesApi.md +171 -17
- data/docs/CategoriesEnum.md +15 -0
- data/docs/CategoryEnum.md +15 -0
- data/docs/DataPassthroughRequest.md +8 -4
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/DeleteAccountApi.md +78 -0
- data/docs/Department.md +3 -1
- data/docs/DepartmentsApi.md +6 -4
- data/docs/EEOC.md +5 -3
- data/docs/EeocsApi.md +6 -4
- data/docs/EmailAddress.md +1 -1
- data/docs/EmailAddressRequest.md +1 -1
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +5 -3
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/GenerateKeyApi.md +2 -2
- data/docs/IgnoreCommonModel.md +20 -0
- data/docs/IgnoreCommonModelRequest.md +20 -0
- data/docs/InterviewsApi.md +6 -84
- data/docs/Issue.md +30 -0
- data/docs/IssueStatusEnum.md +15 -0
- data/docs/IssuesApi.md +177 -0
- data/docs/Job.md +13 -7
- data/docs/JobInterviewStage.md +4 -2
- data/docs/JobInterviewStagesApi.md +8 -6
- data/docs/JobsApi.md +9 -5
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +103 -0
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/Offer.md +9 -7
- data/docs/OffersApi.md +6 -4
- data/docs/Office.md +3 -1
- data/docs/OfficesApi.md +6 -4
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedIssueList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +2 -2
- data/docs/PassthroughApi.md +2 -2
- data/docs/ReasonEnum.md +15 -0
- data/docs/RegenerateKeyApi.md +2 -2
- data/docs/RejectReason.md +3 -1
- data/docs/RejectReasonsApi.md +6 -4
- data/docs/RemoteUser.md +4 -2
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/ScheduledInterview.md +11 -9
- data/docs/Scorecard.md +8 -6
- data/docs/ScorecardsApi.md +6 -84
- data/docs/SyncStatusApi.md +3 -75
- data/docs/Tag.md +3 -1
- data/docs/TagsApi.md +4 -2
- data/docs/UsersApi.md +7 -84
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/lib/merge_ats_client/api/account_details_api.rb +84 -0
- data/lib/merge_ats_client/api/account_token_api.rb +1 -1
- data/lib/merge_ats_client/api/activities_api.rb +4 -1
- data/lib/merge_ats_client/api/applications_api.rb +87 -16
- data/lib/merge_ats_client/api/attachments_api.rb +95 -16
- data/lib/merge_ats_client/api/available_actions_api.rb +1 -1
- data/lib/merge_ats_client/api/candidates_api.rb +163 -16
- data/lib/merge_ats_client/api/delete_account_api.rb +82 -0
- data/lib/merge_ats_client/api/departments_api.rb +4 -1
- data/lib/merge_ats_client/api/eeocs_api.rb +4 -1
- data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ats_client/api/generate_key_api.rb +1 -1
- data/lib/merge_ats_client/api/interviews_api.rb +4 -77
- data/lib/merge_ats_client/api/issues_api.rb +181 -0
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +6 -3
- data/lib/merge_ats_client/api/jobs_api.rb +10 -4
- data/lib/merge_ats_client/api/link_token_api.rb +1 -1
- data/lib/merge_ats_client/api/linked_accounts_api.rb +117 -0
- data/lib/merge_ats_client/api/offers_api.rb +4 -1
- data/lib/merge_ats_client/api/offices_api.rb +4 -1
- data/lib/merge_ats_client/api/passthrough_api.rb +1 -1
- data/lib/merge_ats_client/api/regenerate_key_api.rb +1 -1
- data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -1
- data/lib/merge_ats_client/api/scorecards_api.rb +4 -77
- data/lib/merge_ats_client/api/sync_status_api.rb +5 -67
- data/lib/merge_ats_client/api/tags_api.rb +4 -1
- data/lib/merge_ats_client/api/users_api.rb +4 -77
- data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_ats_client/api_client.rb +1 -1
- data/lib/merge_ats_client/api_error.rb +1 -1
- data/lib/merge_ats_client/configuration.rb +7 -5
- data/lib/merge_ats_client/models/access_role_enum.rb +1 -1
- data/lib/merge_ats_client/models/{end_user_details.rb → account_details.rb} +68 -66
- data/lib/merge_ats_client/models/{scheduled_interview_request.rb → account_details_and_actions.rb} +85 -100
- data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/account_integration.rb +7 -29
- data/lib/merge_ats_client/models/account_token.rb +2 -2
- data/lib/merge_ats_client/models/activity.rb +17 -8
- data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/application.rb +29 -12
- data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/application_request.rb +70 -13
- data/lib/merge_ats_client/models/application_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment.rb +16 -7
- data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/attachment_request.rb +31 -7
- data/lib/merge_ats_client/models/attachment_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment_type_enum.rb +0 -2
- data/lib/merge_ats_client/models/available_actions.rb +2 -2
- data/lib/merge_ats_client/models/candidate.rb +32 -7
- data/lib/merge_ats_client/models/candidate_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/candidate_request.rb +72 -7
- data/lib/merge_ats_client/models/candidate_response.rb +266 -0
- data/lib/merge_ats_client/models/categories_enum.rb +38 -0
- data/lib/merge_ats_client/models/category_enum.rb +38 -0
- data/lib/merge_ats_client/models/data_passthrough_request.rb +81 -10
- data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
- data/lib/merge_ats_client/models/department.rb +18 -8
- data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/eeoc.rb +17 -8
- data/lib/merge_ats_client/models/email_address.rb +3 -3
- data/lib/merge_ats_client/models/email_address_request.rb +3 -3
- data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/encoding_enum.rb +35 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +148 -29
- data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/gender_enum.rb +1 -1
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +21 -2
- data/lib/merge_ats_client/models/{remote_user_request.rb → ignore_common_model.rb} +30 -85
- data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
- data/lib/merge_ats_client/models/{scorecard_request.rb → issue.rb} +56 -62
- data/lib/merge_ats_client/models/issue_status_enum.rb +35 -0
- data/lib/merge_ats_client/models/job.rb +43 -7
- data/lib/merge_ats_client/models/job_interview_stage.rb +17 -8
- data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/link_token.rb +2 -2
- data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
- data/lib/merge_ats_client/models/meta_response.rb +262 -0
- data/lib/merge_ats_client/models/method_enum.rb +1 -1
- data/lib/merge_ats_client/models/model_operation.rb +2 -2
- data/lib/merge_ats_client/models/{patched_application_request.rb → multipart_form_field_request.rb} +120 -88
- data/lib/merge_ats_client/models/offer.rb +17 -9
- data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/office.rb +18 -8
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
- data/lib/merge_ats_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_activity_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_application_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_department_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_issue_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_job_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_offer_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_office_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_tag_list.rb +2 -2
- data/lib/merge_ats_client/models/phone_number.rb +3 -3
- data/lib/merge_ats_client/models/phone_number_request.rb +3 -3
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/race_enum.rb +1 -1
- data/lib/merge_ats_client/models/reason_enum.rb +36 -0
- data/lib/merge_ats_client/models/reject_reason.rb +18 -8
- data/lib/merge_ats_client/models/remote_data.rb +2 -2
- data/lib/merge_ats_client/models/remote_data_request.rb +21 -2
- data/lib/merge_ats_client/models/remote_key.rb +2 -2
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +21 -2
- data/lib/merge_ats_client/models/remote_response.rb +2 -2
- data/lib/merge_ats_client/models/remote_user.rb +18 -8
- data/lib/merge_ats_client/models/request_format_enum.rb +36 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +18 -10
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/scorecard.rb +17 -10
- data/lib/merge_ats_client/models/sync_status.rb +2 -2
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -2
- data/lib/merge_ats_client/models/tag.rb +18 -8
- data/lib/merge_ats_client/models/url.rb +8 -8
- data/lib/merge_ats_client/models/url_request.rb +8 -8
- data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → validation_problem_source.rb} +15 -16
- data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
- data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_ats_client/models/webhook_receiver_request.rb +280 -0
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +38 -4
- data/merge_ats_client.gemspec +1 -1
- data/spec/api/account_details_api_spec.rb +46 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/activities_api_spec.rb +4 -1
- data/spec/api/applications_api_spec.rb +31 -1
- data/spec/api/attachments_api_spec.rb +31 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/candidates_api_spec.rb +44 -1
- data/spec/api/departments_api_spec.rb +4 -1
- data/spec/api/eeocs_api_spec.rb +4 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/interviews_api_spec.rb +4 -1
- data/spec/api/issues_api_spec.rb +9 -5
- data/spec/api/job_interview_stages_api_spec.rb +4 -1
- data/spec/api/jobs_api_spec.rb +6 -1
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +57 -0
- data/spec/api/offers_api_spec.rb +4 -1
- data/spec/api/offices_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -2
- data/spec/api/regenerate_key_api_spec.rb +3 -5
- data/spec/api/reject_reasons_api_spec.rb +4 -1
- data/spec/api/scorecards_api_spec.rb +4 -1
- data/spec/api/sync_status_api_spec.rb +8 -5
- data/spec/api/tags_api_spec.rb +3 -1
- data/spec/api/users_api_spec.rb +5 -1
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/access_role_enum_spec.rb +1 -1
- data/spec/models/{scorecard_request_spec.rb → account_details_and_actions_integration_spec.rb} +19 -13
- data/spec/models/{scheduled_interview_request_spec.rb → account_details_and_actions_spec.rb} +15 -27
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/{patched_application_request_spec.rb → account_details_spec.rb} +16 -16
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/activity_spec.rb +13 -1
- data/spec/models/activity_type_enum_spec.rb +1 -1
- data/spec/models/application_endpoint_request_spec.rb +40 -0
- data/spec/models/application_request_spec.rb +25 -1
- data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
- data/spec/models/application_spec.rb +19 -7
- data/spec/models/attachment_endpoint_request_spec.rb +40 -0
- data/spec/models/attachment_request_spec.rb +12 -0
- data/spec/models/attachment_response_spec.rb +52 -0
- data/spec/models/attachment_spec.rb +25 -1
- data/spec/models/available_actions_spec.rb +1 -1
- data/spec/models/candidate_endpoint_request_spec.rb +40 -0
- data/spec/models/candidate_request_spec.rb +37 -1
- data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
- data/spec/models/candidate_spec.rb +19 -1
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/category_enum_spec.rb +28 -0
- data/spec/models/data_passthrough_request_spec.rb +13 -1
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/department_spec.rb +13 -1
- data/spec/models/disability_status_enum_spec.rb +1 -1
- data/spec/models/eeoc_spec.rb +13 -1
- data/spec/models/email_address_request_spec.rb +1 -1
- data/spec/models/email_address_spec.rb +1 -1
- data/spec/models/email_address_type_enum_spec.rb +1 -1
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +13 -5
- data/spec/models/error_validation_problem_spec.rb +52 -0
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/ignore_common_model_request_spec.rb +40 -0
- data/spec/models/ignore_common_model_spec.rb +40 -0
- data/spec/models/job_interview_stage_spec.rb +13 -1
- data/spec/models/job_spec.rb +31 -1
- data/spec/models/job_status_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +1 -1
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
- data/spec/models/offer_spec.rb +13 -1
- data/spec/models/offer_status_enum_spec.rb +1 -1
- data/spec/models/office_spec.rb +13 -1
- data/spec/models/overall_recommendation_enum_spec.rb +1 -1
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_activity_list_spec.rb +1 -1
- data/spec/models/paginated_application_list_spec.rb +1 -1
- data/spec/models/paginated_attachment_list_spec.rb +1 -1
- data/spec/models/paginated_candidate_list_spec.rb +1 -1
- data/spec/models/paginated_department_list_spec.rb +1 -1
- data/spec/models/paginated_eeoc_list_spec.rb +1 -1
- data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
- data/spec/models/paginated_job_list_spec.rb +1 -1
- data/spec/models/paginated_offer_list_spec.rb +1 -1
- data/spec/models/paginated_office_list_spec.rb +1 -1
- data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
- data/spec/models/paginated_remote_user_list_spec.rb +1 -1
- data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
- data/spec/models/paginated_scorecard_list_spec.rb +1 -1
- data/spec/models/paginated_tag_list_spec.rb +1 -1
- data/spec/models/phone_number_request_spec.rb +1 -1
- data/spec/models/phone_number_spec.rb +1 -1
- data/spec/models/phone_number_type_enum_spec.rb +1 -1
- data/spec/models/race_enum_spec.rb +1 -1
- data/spec/models/reason_enum_spec.rb +28 -0
- data/spec/models/reject_reason_spec.rb +13 -1
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +1 -1
- data/spec/models/remote_user_spec.rb +13 -1
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/scheduled_interview_spec.rb +13 -1
- data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
- data/spec/models/scorecard_spec.rb +13 -1
- data/spec/models/sync_status_spec.rb +1 -1
- data/spec/models/tag_spec.rb +13 -1
- data/spec/models/url_request_spec.rb +1 -1
- data/spec/models/url_spec.rb +1 -1
- data/spec/models/url_type_enum_spec.rb +1 -1
- data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
- data/spec/models/veteran_status_enum_spec.rb +1 -1
- data/spec/models/visibility_enum_spec.rb +1 -1
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- data/spec/spec_helper.rb +1 -1
- metadata +220 -113
- data/config.json +0 -2
- data/docs/DataPassthrough.md +0 -24
- data/docs/EndUserDetails.md +0 -24
- data/docs/PatchedApplicationRequest.md +0 -34
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/docs/RemoteUserRequest.md +0 -30
- data/docs/ScheduledInterviewRequest.md +0 -38
- data/docs/ScorecardRequest.md +0 -30
- data/test_ats.rb +0 -22
- data/test_signature.rb +0 -32
@@ -14,39 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
|
18
|
-
|
19
|
-
# The third-party API ID of the matching object.
|
20
|
-
attr_accessor :remote_id
|
17
|
+
class IgnoreCommonModel
|
18
|
+
attr_accessor :reason
|
21
19
|
|
22
|
-
|
23
|
-
attr_accessor :first_name
|
24
|
-
|
25
|
-
# The user's last name.
|
26
|
-
attr_accessor :last_name
|
27
|
-
|
28
|
-
# The user's email.
|
29
|
-
attr_accessor :email
|
30
|
-
|
31
|
-
# Whether the user's account had been disabled.
|
32
|
-
attr_accessor :disabled
|
33
|
-
|
34
|
-
# When the third party's user was created.
|
35
|
-
attr_accessor :remote_created_at
|
36
|
-
|
37
|
-
# The user's role.
|
38
|
-
attr_accessor :access_role
|
20
|
+
attr_accessor :message
|
39
21
|
|
40
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
23
|
def self.attribute_map
|
42
24
|
{
|
43
|
-
:'
|
44
|
-
:'
|
45
|
-
:'last_name' => :'last_name',
|
46
|
-
:'email' => :'email',
|
47
|
-
:'disabled' => :'disabled',
|
48
|
-
:'remote_created_at' => :'remote_created_at',
|
49
|
-
:'access_role' => :'access_role'
|
25
|
+
:'reason' => :'reason',
|
26
|
+
:'message' => :'message'
|
50
27
|
}
|
51
28
|
end
|
52
29
|
|
@@ -58,26 +35,14 @@ module MergeATSClient
|
|
58
35
|
# Attribute type mapping.
|
59
36
|
def self.openapi_types
|
60
37
|
{
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'last_name' => :'String',
|
64
|
-
:'email' => :'String',
|
65
|
-
:'disabled' => :'Boolean',
|
66
|
-
:'remote_created_at' => :'Time',
|
67
|
-
:'access_role' => :'AccessRoleEnum'
|
38
|
+
:'reason' => :'ReasonEnum',
|
39
|
+
:'message' => :'String'
|
68
40
|
}
|
69
41
|
end
|
70
42
|
|
71
43
|
# List of attributes with nullable: true
|
72
44
|
def self.openapi_nullable
|
73
45
|
Set.new([
|
74
|
-
:'remote_id',
|
75
|
-
:'first_name',
|
76
|
-
:'last_name',
|
77
|
-
:'email',
|
78
|
-
:'disabled',
|
79
|
-
:'remote_created_at',
|
80
|
-
:'access_role'
|
81
46
|
])
|
82
47
|
end
|
83
48
|
|
@@ -85,43 +50,23 @@ module MergeATSClient
|
|
85
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
51
|
def initialize(attributes = {})
|
87
52
|
if (!attributes.is_a?(Hash))
|
88
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::IgnoreCommonModel` initialize method"
|
89
54
|
end
|
90
55
|
|
91
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
92
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
93
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
94
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::IgnoreCommonModel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
95
60
|
end
|
96
61
|
h[k.to_sym] = v
|
97
62
|
}
|
98
63
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'first_name')
|
104
|
-
self.first_name = attributes[:'first_name']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.key?(:'last_name')
|
108
|
-
self.last_name = attributes[:'last_name']
|
64
|
+
if attributes.key?(:'reason')
|
65
|
+
self.reason = attributes[:'reason']
|
109
66
|
end
|
110
67
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
113
|
-
end
|
114
|
-
|
115
|
-
if attributes.key?(:'disabled')
|
116
|
-
self.disabled = attributes[:'disabled']
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.key?(:'remote_created_at')
|
120
|
-
self.remote_created_at = attributes[:'remote_created_at']
|
121
|
-
end
|
122
|
-
|
123
|
-
if attributes.key?(:'access_role')
|
124
|
-
self.access_role = attributes[:'access_role']
|
68
|
+
if attributes.key?(:'message')
|
69
|
+
self.message = attributes[:'message']
|
125
70
|
end
|
126
71
|
end
|
127
72
|
|
@@ -129,8 +74,12 @@ module MergeATSClient
|
|
129
74
|
# @return Array for valid properties with the reasons
|
130
75
|
def list_invalid_properties
|
131
76
|
invalid_properties = Array.new
|
132
|
-
if
|
133
|
-
invalid_properties.push('invalid value for "
|
77
|
+
if @reason.nil?
|
78
|
+
invalid_properties.push('invalid value for "reason", reason cannot be nil.')
|
79
|
+
end
|
80
|
+
|
81
|
+
if !@message.nil? && @message.to_s.length > 256
|
82
|
+
invalid_properties.push('invalid value for "message", the character length must be smaller than or equal to 256.')
|
134
83
|
end
|
135
84
|
|
136
85
|
invalid_properties
|
@@ -139,18 +88,19 @@ module MergeATSClient
|
|
139
88
|
# Check to see if the all the properties in the model are valid
|
140
89
|
# @return true if the model is valid
|
141
90
|
def valid?
|
142
|
-
return false if
|
91
|
+
return false if @reason.nil?
|
92
|
+
return false if !@message.nil? && @message.to_s.length > 256
|
143
93
|
true
|
144
94
|
end
|
145
95
|
|
146
96
|
# Custom attribute writer method with validation
|
147
|
-
# @param [Object]
|
148
|
-
def
|
149
|
-
if !
|
150
|
-
fail ArgumentError, 'invalid value for "
|
97
|
+
# @param [Object] message Value to be assigned
|
98
|
+
def message=(message)
|
99
|
+
if !message.nil? && message.to_s.length > 256
|
100
|
+
fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 256.'
|
151
101
|
end
|
152
102
|
|
153
|
-
@
|
103
|
+
@message = message
|
154
104
|
end
|
155
105
|
|
156
106
|
# Checks equality by comparing each attribute.
|
@@ -158,13 +108,8 @@ module MergeATSClient
|
|
158
108
|
def ==(o)
|
159
109
|
return true if self.equal?(o)
|
160
110
|
self.class == o.class &&
|
161
|
-
|
162
|
-
|
163
|
-
last_name == o.last_name &&
|
164
|
-
email == o.email &&
|
165
|
-
disabled == o.disabled &&
|
166
|
-
remote_created_at == o.remote_created_at &&
|
167
|
-
access_role == o.access_role
|
111
|
+
reason == o.reason &&
|
112
|
+
message == o.message
|
168
113
|
end
|
169
114
|
|
170
115
|
# @see the `==` method
|
@@ -176,7 +121,7 @@ module MergeATSClient
|
|
176
121
|
# Calculates hash code according to all attributes.
|
177
122
|
# @return [Integer] Hash code
|
178
123
|
def hash
|
179
|
-
[
|
124
|
+
[reason, message].hash
|
180
125
|
end
|
181
126
|
|
182
127
|
# Builds the object from hash
|
@@ -219,7 +164,7 @@ module MergeATSClient
|
|
219
164
|
when :Date
|
220
165
|
Date.parse(value)
|
221
166
|
when :String
|
222
|
-
value
|
167
|
+
value
|
223
168
|
when :Integer
|
224
169
|
value.to_i
|
225
170
|
when :Float
|
@@ -0,0 +1,256 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge ATS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Applicant Tracking System platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MergeATSClient
|
17
|
+
class IgnoreCommonModelRequest
|
18
|
+
attr_accessor :reason
|
19
|
+
|
20
|
+
attr_accessor :message
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'reason' => :'reason',
|
26
|
+
:'message' => :'message'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'reason' => :'ReasonEnum',
|
39
|
+
:'message' => :'String'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
])
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::IgnoreCommonModelRequest` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::IgnoreCommonModelRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'reason')
|
65
|
+
self.reason = attributes[:'reason']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'message')
|
69
|
+
self.message = attributes[:'message']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
if @reason.nil?
|
78
|
+
invalid_properties.push('invalid value for "reason", reason cannot be nil.')
|
79
|
+
end
|
80
|
+
|
81
|
+
if !@message.nil? && @message.to_s.length > 256
|
82
|
+
invalid_properties.push('invalid value for "message", the character length must be smaller than or equal to 256.')
|
83
|
+
end
|
84
|
+
|
85
|
+
if !@message.nil? && @message.to_s.length < 1
|
86
|
+
invalid_properties.push('invalid value for "message", the character length must be great than or equal to 1.')
|
87
|
+
end
|
88
|
+
|
89
|
+
invalid_properties
|
90
|
+
end
|
91
|
+
|
92
|
+
# Check to see if the all the properties in the model are valid
|
93
|
+
# @return true if the model is valid
|
94
|
+
def valid?
|
95
|
+
return false if @reason.nil?
|
96
|
+
return false if !@message.nil? && @message.to_s.length > 256
|
97
|
+
return false if !@message.nil? && @message.to_s.length < 1
|
98
|
+
true
|
99
|
+
end
|
100
|
+
|
101
|
+
# Custom attribute writer method with validation
|
102
|
+
# @param [Object] message Value to be assigned
|
103
|
+
def message=(message)
|
104
|
+
if !message.nil? && message.to_s.length > 256
|
105
|
+
fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 256.'
|
106
|
+
end
|
107
|
+
|
108
|
+
if !message.nil? && message.to_s.length < 1
|
109
|
+
fail ArgumentError, 'invalid value for "message", the character length must be great than or equal to 1.'
|
110
|
+
end
|
111
|
+
|
112
|
+
@message = message
|
113
|
+
end
|
114
|
+
|
115
|
+
# Checks equality by comparing each attribute.
|
116
|
+
# @param [Object] Object to be compared
|
117
|
+
def ==(o)
|
118
|
+
return true if self.equal?(o)
|
119
|
+
self.class == o.class &&
|
120
|
+
reason == o.reason &&
|
121
|
+
message == o.message
|
122
|
+
end
|
123
|
+
|
124
|
+
# @see the `==` method
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def eql?(o)
|
127
|
+
self == o
|
128
|
+
end
|
129
|
+
|
130
|
+
# Calculates hash code according to all attributes.
|
131
|
+
# @return [Integer] Hash code
|
132
|
+
def hash
|
133
|
+
[reason, message].hash
|
134
|
+
end
|
135
|
+
|
136
|
+
# Builds the object from hash
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
# @return [Object] Returns the model itself
|
139
|
+
def self.build_from_hash(attributes)
|
140
|
+
new.build_from_hash(attributes)
|
141
|
+
end
|
142
|
+
|
143
|
+
# Builds the object from hash
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
145
|
+
# @return [Object] Returns the model itself
|
146
|
+
def build_from_hash(attributes)
|
147
|
+
return nil unless attributes.is_a?(Hash)
|
148
|
+
self.class.openapi_types.each_pair do |key, type|
|
149
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
150
|
+
self.send("#{key}=", nil)
|
151
|
+
elsif type =~ /\AArray<(.*)>/i
|
152
|
+
# check to ensure the input is an array given that the attribute
|
153
|
+
# is documented as an array but the input is not
|
154
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
155
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
156
|
+
end
|
157
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
158
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
self
|
163
|
+
end
|
164
|
+
|
165
|
+
# Deserializes the data based on type
|
166
|
+
# @param string type Data type
|
167
|
+
# @param string value Value to be deserialized
|
168
|
+
# @return [Object] Deserialized data
|
169
|
+
def _deserialize(type, value)
|
170
|
+
case type.to_sym
|
171
|
+
when :Time
|
172
|
+
Time.parse(value)
|
173
|
+
when :Date
|
174
|
+
Date.parse(value)
|
175
|
+
when :String
|
176
|
+
value
|
177
|
+
when :Integer
|
178
|
+
value.to_i
|
179
|
+
when :Float
|
180
|
+
value.to_f
|
181
|
+
when :Boolean
|
182
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
183
|
+
true
|
184
|
+
else
|
185
|
+
false
|
186
|
+
end
|
187
|
+
when :Object
|
188
|
+
# generic object (usually a Hash), return directly
|
189
|
+
value
|
190
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
191
|
+
inner_type = Regexp.last_match[:inner_type]
|
192
|
+
value.map { |v| _deserialize(inner_type, v) }
|
193
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
194
|
+
k_type = Regexp.last_match[:k_type]
|
195
|
+
v_type = Regexp.last_match[:v_type]
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each do |k, v|
|
198
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
else # model
|
202
|
+
# models (e.g. Pet) or oneOf
|
203
|
+
klass = MergeATSClient.const_get(type)
|
204
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the string representation of the object
|
209
|
+
# @return [String] String presentation of the object
|
210
|
+
def to_s
|
211
|
+
to_hash.to_s
|
212
|
+
end
|
213
|
+
|
214
|
+
# to_body is an alias to to_hash (backward compatibility)
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
216
|
+
def to_body
|
217
|
+
to_hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Returns the object in the form of hash
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_hash
|
223
|
+
hash = {}
|
224
|
+
self.class.attribute_map.each_pair do |attr, param|
|
225
|
+
value = self.send(attr)
|
226
|
+
if value.nil?
|
227
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
228
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
229
|
+
end
|
230
|
+
|
231
|
+
hash[param] = _to_hash(value)
|
232
|
+
end
|
233
|
+
hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Outputs non-array value in the form of hash
|
237
|
+
# For object, use to_hash. Otherwise, just return the value
|
238
|
+
# @param [Object] value Any valid value
|
239
|
+
# @return [Hash] Returns the value in the form of hash
|
240
|
+
def _to_hash(value)
|
241
|
+
if value.is_a?(Array)
|
242
|
+
value.compact.map { |v| _to_hash(v) }
|
243
|
+
elsif value.is_a?(Hash)
|
244
|
+
{}.tap do |hash|
|
245
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
246
|
+
end
|
247
|
+
elsif value.respond_to? :to_hash
|
248
|
+
value.to_hash
|
249
|
+
else
|
250
|
+
value
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
end
|
255
|
+
|
256
|
+
end
|
@@ -14,39 +14,31 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
|
18
|
-
|
19
|
-
# The third-party API ID of the matching object.
|
20
|
-
attr_accessor :remote_id
|
17
|
+
class Issue
|
18
|
+
attr_accessor :id
|
21
19
|
|
22
|
-
|
23
|
-
attr_accessor :application
|
20
|
+
attr_accessor :status
|
24
21
|
|
25
|
-
|
26
|
-
attr_accessor :interview
|
22
|
+
attr_accessor :error_description
|
27
23
|
|
28
|
-
|
29
|
-
attr_accessor :interviewer
|
24
|
+
attr_accessor :end_user
|
30
25
|
|
31
|
-
|
32
|
-
attr_accessor :remote_created_at
|
26
|
+
attr_accessor :first_incident_time
|
33
27
|
|
34
|
-
|
35
|
-
attr_accessor :submitted_at
|
28
|
+
attr_accessor :last_incident_time
|
36
29
|
|
37
|
-
|
38
|
-
attr_accessor :overall_recommendation
|
30
|
+
attr_accessor :is_muted
|
39
31
|
|
40
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
33
|
def self.attribute_map
|
42
34
|
{
|
43
|
-
:'
|
44
|
-
:'
|
45
|
-
:'
|
46
|
-
:'
|
47
|
-
:'
|
48
|
-
:'
|
49
|
-
:'
|
35
|
+
:'id' => :'id',
|
36
|
+
:'status' => :'status',
|
37
|
+
:'error_description' => :'error_description',
|
38
|
+
:'end_user' => :'end_user',
|
39
|
+
:'first_incident_time' => :'first_incident_time',
|
40
|
+
:'last_incident_time' => :'last_incident_time',
|
41
|
+
:'is_muted' => :'is_muted'
|
50
42
|
}
|
51
43
|
end
|
52
44
|
|
@@ -58,26 +50,21 @@ module MergeATSClient
|
|
58
50
|
# Attribute type mapping.
|
59
51
|
def self.openapi_types
|
60
52
|
{
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'
|
64
|
-
:'
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'
|
53
|
+
:'id' => :'String',
|
54
|
+
:'status' => :'IssueStatusEnum',
|
55
|
+
:'error_description' => :'String',
|
56
|
+
:'end_user' => :'Hash<String, AnyType>',
|
57
|
+
:'first_incident_time' => :'Time',
|
58
|
+
:'last_incident_time' => :'Time',
|
59
|
+
:'is_muted' => :'Boolean'
|
68
60
|
}
|
69
61
|
end
|
70
62
|
|
71
63
|
# List of attributes with nullable: true
|
72
64
|
def self.openapi_nullable
|
73
65
|
Set.new([
|
74
|
-
:'
|
75
|
-
:'
|
76
|
-
:'interview',
|
77
|
-
:'interviewer',
|
78
|
-
:'remote_created_at',
|
79
|
-
:'submitted_at',
|
80
|
-
:'overall_recommendation'
|
66
|
+
:'first_incident_time',
|
67
|
+
:'last_incident_time',
|
81
68
|
])
|
82
69
|
end
|
83
70
|
|
@@ -85,43 +72,45 @@ module MergeATSClient
|
|
85
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
73
|
def initialize(attributes = {})
|
87
74
|
if (!attributes.is_a?(Hash))
|
88
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::Issue` initialize method"
|
89
76
|
end
|
90
77
|
|
91
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
92
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
93
80
|
if (!self.class.attribute_map.key?(k.to_sym))
|
94
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::Issue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
95
82
|
end
|
96
83
|
h[k.to_sym] = v
|
97
84
|
}
|
98
85
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
86
|
+
if attributes.key?(:'id')
|
87
|
+
self.id = attributes[:'id']
|
101
88
|
end
|
102
89
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
90
|
+
if attributes.key?(:'status')
|
91
|
+
self.status = attributes[:'status']
|
105
92
|
end
|
106
93
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
94
|
+
if attributes.key?(:'error_description')
|
95
|
+
self.error_description = attributes[:'error_description']
|
109
96
|
end
|
110
97
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
|
98
|
+
if attributes.key?(:'end_user')
|
99
|
+
if (value = attributes[:'end_user']).is_a?(Hash)
|
100
|
+
self.end_user = value
|
101
|
+
end
|
113
102
|
end
|
114
103
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
104
|
+
if attributes.key?(:'first_incident_time')
|
105
|
+
self.first_incident_time = attributes[:'first_incident_time']
|
117
106
|
end
|
118
107
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
self.
|
108
|
+
if attributes.key?(:'last_incident_time')
|
109
|
+
self.last_incident_time = attributes[:'last_incident_time']
|
121
110
|
end
|
122
111
|
|
123
|
-
if attributes.key?(:'
|
124
|
-
self.
|
112
|
+
if attributes.key?(:'is_muted')
|
113
|
+
self.is_muted = attributes[:'is_muted']
|
125
114
|
end
|
126
115
|
end
|
127
116
|
|
@@ -129,12 +118,17 @@ module MergeATSClient
|
|
129
118
|
# @return Array for valid properties with the reasons
|
130
119
|
def list_invalid_properties
|
131
120
|
invalid_properties = Array.new
|
121
|
+
if @error_description.nil?
|
122
|
+
invalid_properties.push('invalid value for "error_description", error_description cannot be nil.')
|
123
|
+
end
|
124
|
+
|
132
125
|
invalid_properties
|
133
126
|
end
|
134
127
|
|
135
128
|
# Check to see if the all the properties in the model are valid
|
136
129
|
# @return true if the model is valid
|
137
130
|
def valid?
|
131
|
+
return false if @error_description.nil?
|
138
132
|
true
|
139
133
|
end
|
140
134
|
|
@@ -143,13 +137,13 @@ module MergeATSClient
|
|
143
137
|
def ==(o)
|
144
138
|
return true if self.equal?(o)
|
145
139
|
self.class == o.class &&
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
140
|
+
id == o.id &&
|
141
|
+
status == o.status &&
|
142
|
+
error_description == o.error_description &&
|
143
|
+
end_user == o.end_user &&
|
144
|
+
first_incident_time == o.first_incident_time &&
|
145
|
+
last_incident_time == o.last_incident_time &&
|
146
|
+
is_muted == o.is_muted
|
153
147
|
end
|
154
148
|
|
155
149
|
# @see the `==` method
|
@@ -161,7 +155,7 @@ module MergeATSClient
|
|
161
155
|
# Calculates hash code according to all attributes.
|
162
156
|
# @return [Integer] Hash code
|
163
157
|
def hash
|
164
|
-
[
|
158
|
+
[id, status, error_description, end_user, first_incident_time, last_incident_time, is_muted].hash
|
165
159
|
end
|
166
160
|
|
167
161
|
# Builds the object from hash
|
@@ -204,7 +198,7 @@ module MergeATSClient
|
|
204
198
|
when :Date
|
205
199
|
Date.parse(value)
|
206
200
|
when :String
|
207
|
-
value
|
201
|
+
value
|
208
202
|
when :Integer
|
209
203
|
value.to_i
|
210
204
|
when :Float
|