open_api_smart_recruiters_sdk 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +13 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +65 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +12 -0
- data/lib/smart_recruiters/api/application_api_api.rb +188 -0
- data/lib/smart_recruiters/api/candidates_api.rb +2417 -0
- data/lib/smart_recruiters/api/configuration_api.rb +2504 -0
- data/lib/smart_recruiters/api/job_applications_api.rb +63 -0
- data/lib/smart_recruiters/api/jobs_api.rb +1851 -0
- data/lib/smart_recruiters/api/subscriptions_api.rb +469 -0
- data/lib/smart_recruiters/api_client.rb +379 -0
- data/lib/smart_recruiters/api_error.rb +46 -0
- data/lib/smart_recruiters/authorization.rb +66 -0
- data/lib/smart_recruiters/configuration.rb +214 -0
- data/lib/smart_recruiters/models/action.rb +248 -0
- data/lib/smart_recruiters/models/actions.rb +190 -0
- data/lib/smart_recruiters/models/all_of_candidate_details_primary_assignment.rb +262 -0
- data/lib/smart_recruiters/models/all_of_candidate_details_secondary_assignments_items.rb +262 -0
- data/lib/smart_recruiters/models/answer_field.rb +227 -0
- data/lib/smart_recruiters/models/answer_field_value.rb +216 -0
- data/lib/smart_recruiters/models/answer_record.rb +197 -0
- data/lib/smart_recruiters/models/application.rb +260 -0
- data/lib/smart_recruiters/models/application_attachment_webhook_payload.rb +248 -0
- data/lib/smart_recruiters/models/application_status_info.rb +231 -0
- data/lib/smart_recruiters/models/application_url.rb +198 -0
- data/lib/smart_recruiters/models/application_webhook_payload.rb +230 -0
- data/lib/smart_recruiters/models/apply_api_error.rb +259 -0
- data/lib/smart_recruiters/models/apply_api_request.rb +386 -0
- data/lib/smart_recruiters/models/apply_api_response.rb +224 -0
- data/lib/smart_recruiters/models/apply_configuration.rb +229 -0
- data/lib/smart_recruiters/models/apply_settings.rb +197 -0
- data/lib/smart_recruiters/models/assignment.rb +251 -0
- data/lib/smart_recruiters/models/assignment_actions.rb +197 -0
- data/lib/smart_recruiters/models/attachment.rb +230 -0
- data/lib/smart_recruiters/models/attachment_actions.rb +202 -0
- data/lib/smart_recruiters/models/attachments.rb +218 -0
- data/lib/smart_recruiters/models/callback_authentication.rb +188 -0
- data/lib/smart_recruiters/models/callback_basic_auth.rb +249 -0
- data/lib/smart_recruiters/models/callback_header_auth.rb +250 -0
- data/lib/smart_recruiters/models/callback_o_auth2_auth.rb +262 -0
- data/lib/smart_recruiters/models/callback_request.rb +216 -0
- data/lib/smart_recruiters/models/callback_request_request_details.rb +219 -0
- data/lib/smart_recruiters/models/callback_request_status.rb +19 -0
- data/lib/smart_recruiters/models/callback_requests.rb +192 -0
- data/lib/smart_recruiters/models/callback_url.rb +188 -0
- data/lib/smart_recruiters/models/candidate.rb +349 -0
- data/lib/smart_recruiters/models/candidate_actions.rb +216 -0
- data/lib/smart_recruiters/models/candidate_attachment_for_job.rb +253 -0
- data/lib/smart_recruiters/models/candidate_attachment_for_job_actions.rb +216 -0
- data/lib/smart_recruiters/models/candidate_attachments_for_job.rb +218 -0
- data/lib/smart_recruiters/models/candidate_consent.rb +197 -0
- data/lib/smart_recruiters/models/candidate_consent_decisions.rb +213 -0
- data/lib/smart_recruiters/models/candidate_consent_status.rb +212 -0
- data/lib/smart_recruiters/models/candidate_details.rb +349 -0
- data/lib/smart_recruiters/models/candidate_details_actions.rb +229 -0
- data/lib/smart_recruiters/models/candidate_input.rb +308 -0
- data/lib/smart_recruiters/models/candidate_job.rb +216 -0
- data/lib/smart_recruiters/models/candidate_location.rb +251 -0
- data/lib/smart_recruiters/models/candidate_primary_assignment.rb +225 -0
- data/lib/smart_recruiters/models/candidate_primary_assignment_job.rb +230 -0
- data/lib/smart_recruiters/models/candidate_primary_assignment_job_actions.rb +202 -0
- data/lib/smart_recruiters/models/candidate_properties.rb +199 -0
- data/lib/smart_recruiters/models/candidate_property.rb +268 -0
- data/lib/smart_recruiters/models/candidate_property_actions.rb +202 -0
- data/lib/smart_recruiters/models/candidate_property_availability.rb +253 -0
- data/lib/smart_recruiters/models/candidate_property_definition.rb +233 -0
- data/lib/smart_recruiters/models/candidate_property_definition_list.rb +208 -0
- data/lib/smart_recruiters/models/candidate_property_filter.rb +215 -0
- data/lib/smart_recruiters/models/candidate_property_filter_values.rb +208 -0
- data/lib/smart_recruiters/models/candidate_property_input_value.rb +198 -0
- data/lib/smart_recruiters/models/candidate_property_type.rb +27 -0
- data/lib/smart_recruiters/models/candidate_property_value.rb +212 -0
- data/lib/smart_recruiters/models/candidate_property_value_label.rb +202 -0
- data/lib/smart_recruiters/models/candidate_property_value_list.rb +208 -0
- data/lib/smart_recruiters/models/candidate_secondary_assignments.rb +202 -0
- data/lib/smart_recruiters/models/candidate_source.rb +225 -0
- data/lib/smart_recruiters/models/candidate_status.rb +230 -0
- data/lib/smart_recruiters/models/candidate_status_enum.rb +26 -0
- data/lib/smart_recruiters/models/candidate_status_history_list.rb +208 -0
- data/lib/smart_recruiters/models/candidate_status_history_list_elem.rb +224 -0
- data/lib/smart_recruiters/models/candidate_tags.rb +204 -0
- data/lib/smart_recruiters/models/candidate_webhook_payload.rb +202 -0
- data/lib/smart_recruiters/models/candidates.rb +255 -0
- data/lib/smart_recruiters/models/company_configuration.rb +246 -0
- data/lib/smart_recruiters/models/compensation.rb +215 -0
- data/lib/smart_recruiters/models/consent_decision.rb +226 -0
- data/lib/smart_recruiters/models/consent_decision_status.rb +20 -0
- data/lib/smart_recruiters/models/consent_request.rb +203 -0
- data/lib/smart_recruiters/models/consent_request_scheduled.rb +250 -0
- data/lib/smart_recruiters/models/consent_request_scheduled_body.rb +197 -0
- data/lib/smart_recruiters/models/consent_request_unavailable.rb +245 -0
- data/lib/smart_recruiters/models/consent_requests_results.rb +204 -0
- data/lib/smart_recruiters/models/consent_scope.rb +22 -0
- data/lib/smart_recruiters/models/consent_status.rb +20 -0
- data/lib/smart_recruiters/models/department.rb +220 -0
- data/lib/smart_recruiters/models/departments.rb +208 -0
- data/lib/smart_recruiters/models/dependent_job_properties.rb +218 -0
- data/lib/smart_recruiters/models/dependent_job_properties_ids.rb +204 -0
- data/lib/smart_recruiters/models/dependent_job_property.rb +216 -0
- data/lib/smart_recruiters/models/dependent_job_property_value.rb +220 -0
- data/lib/smart_recruiters/models/dependent_job_property_values.rb +208 -0
- data/lib/smart_recruiters/models/dependent_job_property_values_relation.rb +218 -0
- data/lib/smart_recruiters/models/dependent_job_property_values_relations.rb +218 -0
- data/lib/smart_recruiters/models/education.rb +270 -0
- data/lib/smart_recruiters/models/email_address.rb +188 -0
- data/lib/smart_recruiters/models/employment.rb +261 -0
- data/lib/smart_recruiters/models/error.rb +211 -0
- data/lib/smart_recruiters/models/error_response.rb +208 -0
- data/lib/smart_recruiters/models/event.rb +206 -0
- data/lib/smart_recruiters/models/event_name.rb +64 -0
- data/lib/smart_recruiters/models/experience.rb +251 -0
- data/lib/smart_recruiters/models/field_value.rb +216 -0
- data/lib/smart_recruiters/models/headcount_patch_request.rb +197 -0
- data/lib/smart_recruiters/models/headcount_update_accepted.rb +231 -0
- data/lib/smart_recruiters/models/hiring_process.rb +224 -0
- data/lib/smart_recruiters/models/hiring_process_sub_statuses.rb +221 -0
- data/lib/smart_recruiters/models/hiring_processes.rb +218 -0
- data/lib/smart_recruiters/models/hiring_team_member.rb +220 -0
- data/lib/smart_recruiters/models/hiring_team_member_response.rb +215 -0
- data/lib/smart_recruiters/models/hiring_team_member_response_actions.rb +202 -0
- data/lib/smart_recruiters/models/hiring_team_member_role.rb +22 -0
- data/lib/smart_recruiters/models/hiring_team_members.rb +208 -0
- data/lib/smart_recruiters/models/id_attachments_body.rb +249 -0
- data/lib/smart_recruiters/models/identifiable.rb +202 -0
- data/lib/smart_recruiters/models/industry.rb +207 -0
- data/lib/smart_recruiters/models/job.rb +197 -0
- data/lib/smart_recruiters/models/job_ad.rb +206 -0
- data/lib/smart_recruiters/models/job_ad_content.rb +220 -0
- data/lib/smart_recruiters/models/job_ad_input.rb +206 -0
- data/lib/smart_recruiters/models/job_ad_item.rb +397 -0
- data/lib/smart_recruiters/models/job_ad_item_actions.rb +202 -0
- data/lib/smart_recruiters/models/job_ad_language.rb +202 -0
- data/lib/smart_recruiters/models/job_ad_postings_webhook_payload.rb +216 -0
- data/lib/smart_recruiters/models/job_ad_publication_scheduled.rb +231 -0
- data/lib/smart_recruiters/models/job_ad_section.rb +206 -0
- data/lib/smart_recruiters/models/job_ad_sections.rb +233 -0
- data/lib/smart_recruiters/models/job_ad_unpublish_scheduled.rb +231 -0
- data/lib/smart_recruiters/models/job_ad_videos.rb +199 -0
- data/lib/smart_recruiters/models/job_ad_webhook_payload.rb +216 -0
- data/lib/smart_recruiters/models/job_ads.rb +192 -0
- data/lib/smart_recruiters/models/job_application.rb +242 -0
- data/lib/smart_recruiters/models/job_application_status.rb +26 -0
- data/lib/smart_recruiters/models/job_approval.rb +217 -0
- data/lib/smart_recruiters/models/job_approval_position.rb +251 -0
- data/lib/smart_recruiters/models/job_approval_webhook_payload.rb +216 -0
- data/lib/smart_recruiters/models/job_details.rb +394 -0
- data/lib/smart_recruiters/models/job_details_actions.rb +233 -0
- data/lib/smart_recruiters/models/job_id_attachments_body.rb +249 -0
- data/lib/smart_recruiters/models/job_input.rb +341 -0
- data/lib/smart_recruiters/models/job_job.rb +215 -0
- data/lib/smart_recruiters/models/job_job_actions.rb +211 -0
- data/lib/smart_recruiters/models/job_location_input.rb +252 -0
- data/lib/smart_recruiters/models/job_note.rb +202 -0
- data/lib/smart_recruiters/models/job_position.rb +256 -0
- data/lib/smart_recruiters/models/job_position_input.rb +282 -0
- data/lib/smart_recruiters/models/job_positions.rb +218 -0
- data/lib/smart_recruiters/models/job_property.rb +225 -0
- data/lib/smart_recruiters/models/job_property_definition.rb +300 -0
- data/lib/smart_recruiters/models/job_property_definition_creation_request.rb +282 -0
- data/lib/smart_recruiters/models/job_property_definition_list.rb +208 -0
- data/lib/smart_recruiters/models/job_property_input.rb +220 -0
- data/lib/smart_recruiters/models/job_property_value.rb +206 -0
- data/lib/smart_recruiters/models/job_property_value_definition.rb +220 -0
- data/lib/smart_recruiters/models/job_property_value_definition_list.rb +208 -0
- data/lib/smart_recruiters/models/job_status.rb +25 -0
- data/lib/smart_recruiters/models/job_status_history.rb +216 -0
- data/lib/smart_recruiters/models/job_status_history_actions.rb +202 -0
- data/lib/smart_recruiters/models/job_status_history_content.rb +220 -0
- data/lib/smart_recruiters/models/job_status_update.rb +202 -0
- data/lib/smart_recruiters/models/job_summary.rb +302 -0
- data/lib/smart_recruiters/models/job_webhook_payload.rb +202 -0
- data/lib/smart_recruiters/models/jobs.rb +235 -0
- data/lib/smart_recruiters/models/json_patch.rb +192 -0
- data/lib/smart_recruiters/models/json_pointer.rb +188 -0
- data/lib/smart_recruiters/models/label_translation.rb +216 -0
- data/lib/smart_recruiters/models/label_translations.rb +192 -0
- data/lib/smart_recruiters/models/labeled.rb +202 -0
- data/lib/smart_recruiters/models/language.rb +220 -0
- data/lib/smart_recruiters/models/language_code.rb +87 -0
- data/lib/smart_recruiters/models/location.rb +251 -0
- data/lib/smart_recruiters/models/model_when.rb +189 -0
- data/lib/smart_recruiters/models/offer_approval_webhook_payload.rb +244 -0
- data/lib/smart_recruiters/models/offer_properties_category.rb +208 -0
- data/lib/smart_recruiters/models/offer_properties_definition.rb +199 -0
- data/lib/smart_recruiters/models/offer_property_definition.rb +258 -0
- data/lib/smart_recruiters/models/offer_webhook_payload.rb +230 -0
- data/lib/smart_recruiters/models/onboarding_assignments_completed_webhook_payload.rb +216 -0
- data/lib/smart_recruiters/models/onboarding_high_priority_assignments_completed_webhook_payload.rb +216 -0
- data/lib/smart_recruiters/models/onboarding_process_webhook_payload.rb +216 -0
- data/lib/smart_recruiters/models/onboarding_status.rb +236 -0
- data/lib/smart_recruiters/models/one_of_candidate_property_value.rb +188 -0
- data/lib/smart_recruiters/models/one_of_consent_requests_results_results_items.rb +188 -0
- data/lib/smart_recruiters/models/one_of_json_patch_items.rb +188 -0
- data/lib/smart_recruiters/models/path.rb +202 -0
- data/lib/smart_recruiters/models/personal_details.rb +242 -0
- data/lib/smart_recruiters/models/position_webhook_payload.rb +216 -0
- data/lib/smart_recruiters/models/posting_status.rb +21 -0
- data/lib/smart_recruiters/models/privacy_policy.rb +206 -0
- data/lib/smart_recruiters/models/properties.rb +208 -0
- data/lib/smart_recruiters/models/property.rb +211 -0
- data/lib/smart_recruiters/models/publication.rb +244 -0
- data/lib/smart_recruiters/models/publication_list.rb +204 -0
- data/lib/smart_recruiters/models/publication_list_item.rb +239 -0
- data/lib/smart_recruiters/models/relation_job_property_value.rb +211 -0
- data/lib/smart_recruiters/models/review_webhook_payload.rb +216 -0
- data/lib/smart_recruiters/models/salary_range.rb +215 -0
- data/lib/smart_recruiters/models/screening_answer.rb +313 -0
- data/lib/smart_recruiters/models/screening_answers.rb +218 -0
- data/lib/smart_recruiters/models/screening_question.rb +246 -0
- data/lib/smart_recruiters/models/screening_question_answer.rb +218 -0
- data/lib/smart_recruiters/models/screening_question_field.rb +315 -0
- data/lib/smart_recruiters/models/screening_questions_answers_webhook_payload.rb +230 -0
- data/lib/smart_recruiters/models/secret_key_payload.rb +197 -0
- data/lib/smart_recruiters/models/source.rb +244 -0
- data/lib/smart_recruiters/models/source_actions.rb +202 -0
- data/lib/smart_recruiters/models/source_definition.rb +230 -0
- data/lib/smart_recruiters/models/source_details.rb +225 -0
- data/lib/smart_recruiters/models/source_types.rb +218 -0
- data/lib/smart_recruiters/models/source_types_actions.rb +202 -0
- data/lib/smart_recruiters/models/source_types_content.rb +246 -0
- data/lib/smart_recruiters/models/sources.rb +246 -0
- data/lib/smart_recruiters/models/subscription.rb +270 -0
- data/lib/smart_recruiters/models/subscription_request.rb +236 -0
- data/lib/smart_recruiters/models/subscriptions.rb +192 -0
- data/lib/smart_recruiters/models/user_identity.rb +215 -0
- data/lib/smart_recruiters/models/uuid.rb +188 -0
- data/lib/smart_recruiters/models/valid_job_status.rb +24 -0
- data/lib/smart_recruiters/models/web.rb +233 -0
- data/lib/smart_recruiters/models/web_profile.rb +233 -0
- data/lib/smart_recruiters/version.rb +5 -0
- data/lib/smart_recruiters.rb +46 -0
- data/open_api_smart_recruiters_sdk.gemspec +45 -0
- data/sig/smart_recruiters.rbs +4 -0
- metadata +367 -0
@@ -0,0 +1,394 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module SmartRecruiters
|
6
|
+
class JobDetails
|
7
|
+
attr_accessor :id
|
8
|
+
|
9
|
+
attr_accessor :title
|
10
|
+
|
11
|
+
attr_accessor :ref_number
|
12
|
+
|
13
|
+
attr_accessor :created_on
|
14
|
+
|
15
|
+
# Job modification date
|
16
|
+
attr_accessor :updated_on
|
17
|
+
|
18
|
+
# Indicates last activity associated with a job
|
19
|
+
attr_accessor :last_activity_on
|
20
|
+
|
21
|
+
attr_accessor :department
|
22
|
+
|
23
|
+
attr_accessor :location
|
24
|
+
|
25
|
+
attr_accessor :status
|
26
|
+
|
27
|
+
attr_accessor :posting_status
|
28
|
+
|
29
|
+
attr_accessor :target_hiring_date
|
30
|
+
|
31
|
+
attr_accessor :industry
|
32
|
+
|
33
|
+
attr_accessor :function
|
34
|
+
|
35
|
+
attr_accessor :type_of_employment
|
36
|
+
|
37
|
+
attr_accessor :experience_level
|
38
|
+
|
39
|
+
attr_accessor :eeo_category
|
40
|
+
|
41
|
+
attr_accessor :template
|
42
|
+
|
43
|
+
attr_accessor :creator
|
44
|
+
|
45
|
+
attr_accessor :compensation
|
46
|
+
|
47
|
+
attr_accessor :job_ad
|
48
|
+
|
49
|
+
attr_accessor :properties
|
50
|
+
|
51
|
+
attr_accessor :actions
|
52
|
+
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
54
|
+
def self.attribute_map
|
55
|
+
{
|
56
|
+
:'id' => :'id',
|
57
|
+
:'title' => :'title',
|
58
|
+
:'ref_number' => :'refNumber',
|
59
|
+
:'created_on' => :'createdOn',
|
60
|
+
:'updated_on' => :'updatedOn',
|
61
|
+
:'last_activity_on' => :'lastActivityOn',
|
62
|
+
:'department' => :'department',
|
63
|
+
:'location' => :'location',
|
64
|
+
:'status' => :'status',
|
65
|
+
:'posting_status' => :'postingStatus',
|
66
|
+
:'target_hiring_date' => :'targetHiringDate',
|
67
|
+
:'industry' => :'industry',
|
68
|
+
:'function' => :'function',
|
69
|
+
:'type_of_employment' => :'typeOfEmployment',
|
70
|
+
:'experience_level' => :'experienceLevel',
|
71
|
+
:'eeo_category' => :'eeoCategory',
|
72
|
+
:'template' => :'template',
|
73
|
+
:'creator' => :'creator',
|
74
|
+
:'compensation' => :'compensation',
|
75
|
+
:'job_ad' => :'jobAd',
|
76
|
+
:'properties' => :'properties',
|
77
|
+
:'actions' => :'actions'
|
78
|
+
}
|
79
|
+
end
|
80
|
+
|
81
|
+
# Attribute type mapping.
|
82
|
+
def self.openapi_types
|
83
|
+
{
|
84
|
+
:'id' => :'',
|
85
|
+
:'title' => :'',
|
86
|
+
:'ref_number' => :'',
|
87
|
+
:'created_on' => :'',
|
88
|
+
:'updated_on' => :'',
|
89
|
+
:'last_activity_on' => :'',
|
90
|
+
:'department' => :'',
|
91
|
+
:'location' => :'',
|
92
|
+
:'status' => :'',
|
93
|
+
:'posting_status' => :'',
|
94
|
+
:'target_hiring_date' => :'',
|
95
|
+
:'industry' => :'',
|
96
|
+
:'function' => :'',
|
97
|
+
:'type_of_employment' => :'',
|
98
|
+
:'experience_level' => :'',
|
99
|
+
:'eeo_category' => :'',
|
100
|
+
:'template' => :'',
|
101
|
+
:'creator' => :'',
|
102
|
+
:'compensation' => :'',
|
103
|
+
:'job_ad' => :'',
|
104
|
+
:'properties' => :'',
|
105
|
+
:'actions' => :''
|
106
|
+
}
|
107
|
+
end
|
108
|
+
|
109
|
+
# List of attributes with nullable: true
|
110
|
+
def self.openapi_nullable
|
111
|
+
Set.new([
|
112
|
+
])
|
113
|
+
end
|
114
|
+
|
115
|
+
# Initializes the object
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
117
|
+
def initialize(attributes = {})
|
118
|
+
if (!attributes.is_a?(Hash))
|
119
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SmartRecruiters::JobDetails` initialize method"
|
120
|
+
end
|
121
|
+
|
122
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
123
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
124
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
125
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SmartRecruiters::JobDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
126
|
+
end
|
127
|
+
h[k.to_sym] = v
|
128
|
+
}
|
129
|
+
|
130
|
+
# call parent's initialize
|
131
|
+
super(attributes)
|
132
|
+
|
133
|
+
if attributes.key?(:'id')
|
134
|
+
self.id = attributes[:'id']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'title')
|
138
|
+
self.title = attributes[:'title']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.key?(:'ref_number')
|
142
|
+
self.ref_number = attributes[:'ref_number']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.key?(:'created_on')
|
146
|
+
self.created_on = attributes[:'created_on']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.key?(:'updated_on')
|
150
|
+
self.updated_on = attributes[:'updated_on']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'last_activity_on')
|
154
|
+
self.last_activity_on = attributes[:'last_activity_on']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'department')
|
158
|
+
self.department = attributes[:'department']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.key?(:'location')
|
162
|
+
self.location = attributes[:'location']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'status')
|
166
|
+
self.status = attributes[:'status']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.key?(:'posting_status')
|
170
|
+
self.posting_status = attributes[:'posting_status']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.key?(:'target_hiring_date')
|
174
|
+
self.target_hiring_date = attributes[:'target_hiring_date']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.key?(:'industry')
|
178
|
+
self.industry = attributes[:'industry']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'function')
|
182
|
+
self.function = attributes[:'function']
|
183
|
+
end
|
184
|
+
|
185
|
+
if attributes.key?(:'type_of_employment')
|
186
|
+
self.type_of_employment = attributes[:'type_of_employment']
|
187
|
+
end
|
188
|
+
|
189
|
+
if attributes.key?(:'experience_level')
|
190
|
+
self.experience_level = attributes[:'experience_level']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'eeo_category')
|
194
|
+
self.eeo_category = attributes[:'eeo_category']
|
195
|
+
end
|
196
|
+
|
197
|
+
if attributes.key?(:'template')
|
198
|
+
self.template = attributes[:'template']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.key?(:'creator')
|
202
|
+
self.creator = attributes[:'creator']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.key?(:'compensation')
|
206
|
+
self.compensation = attributes[:'compensation']
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.key?(:'job_ad')
|
210
|
+
self.job_ad = attributes[:'job_ad']
|
211
|
+
end
|
212
|
+
|
213
|
+
if attributes.key?(:'properties')
|
214
|
+
if (value = attributes[:'properties']).is_a?(Array)
|
215
|
+
self.properties = value
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
if attributes.key?(:'actions')
|
220
|
+
self.actions = attributes[:'actions']
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
225
|
+
# @return Array for valid properties with the reasons
|
226
|
+
def list_invalid_properties
|
227
|
+
invalid_properties = super
|
228
|
+
invalid_properties
|
229
|
+
end
|
230
|
+
|
231
|
+
# Check to see if the all the properties in the model are valid
|
232
|
+
# @return true if the model is valid
|
233
|
+
def valid?
|
234
|
+
true
|
235
|
+
end
|
236
|
+
|
237
|
+
# Checks equality by comparing each attribute.
|
238
|
+
# @param [Object] Object to be compared
|
239
|
+
def ==(o)
|
240
|
+
return true if self.equal?(o)
|
241
|
+
self.class == o.class &&
|
242
|
+
id == o.id &&
|
243
|
+
title == o.title &&
|
244
|
+
ref_number == o.ref_number &&
|
245
|
+
created_on == o.created_on &&
|
246
|
+
updated_on == o.updated_on &&
|
247
|
+
last_activity_on == o.last_activity_on &&
|
248
|
+
department == o.department &&
|
249
|
+
location == o.location &&
|
250
|
+
status == o.status &&
|
251
|
+
posting_status == o.posting_status &&
|
252
|
+
target_hiring_date == o.target_hiring_date &&
|
253
|
+
industry == o.industry &&
|
254
|
+
function == o.function &&
|
255
|
+
type_of_employment == o.type_of_employment &&
|
256
|
+
experience_level == o.experience_level &&
|
257
|
+
eeo_category == o.eeo_category &&
|
258
|
+
template == o.template &&
|
259
|
+
creator == o.creator &&
|
260
|
+
compensation == o.compensation &&
|
261
|
+
job_ad == o.job_ad &&
|
262
|
+
properties == o.properties &&
|
263
|
+
actions == o.actions && super(o)
|
264
|
+
end
|
265
|
+
|
266
|
+
# @see the `==` method
|
267
|
+
# @param [Object] Object to be compared
|
268
|
+
def eql?(o)
|
269
|
+
self == o
|
270
|
+
end
|
271
|
+
|
272
|
+
# Calculates hash code according to all attributes.
|
273
|
+
# @return [Integer] Hash code
|
274
|
+
def hash
|
275
|
+
[id, title, ref_number, created_on, updated_on, last_activity_on, department, location, status, posting_status, target_hiring_date, industry, function, type_of_employment, experience_level, eeo_category, template, creator, compensation, job_ad, properties, actions].hash
|
276
|
+
end
|
277
|
+
|
278
|
+
# Builds the object from hash
|
279
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
280
|
+
# @return [Object] Returns the model itself
|
281
|
+
def self.build_from_hash(attributes)
|
282
|
+
new.build_from_hash(attributes)
|
283
|
+
end
|
284
|
+
|
285
|
+
# Builds the object from hash
|
286
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
287
|
+
# @return [Object] Returns the model itself
|
288
|
+
def build_from_hash(attributes)
|
289
|
+
return nil unless attributes.is_a?(Hash)
|
290
|
+
super(attributes)
|
291
|
+
self.class.openapi_types.each_pair do |key, type|
|
292
|
+
if type =~ /\AArray<(.*)>/i
|
293
|
+
# check to ensure the input is an array given that the attribute
|
294
|
+
# is documented as an array but the input is not
|
295
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
296
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
297
|
+
end
|
298
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
299
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
300
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
301
|
+
self.send("#{key}=", nil)
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
self
|
306
|
+
end
|
307
|
+
|
308
|
+
# Deserializes the data based on type
|
309
|
+
# @param string type Data type
|
310
|
+
# @param string value Value to be deserialized
|
311
|
+
# @return [Object] Deserialized data
|
312
|
+
def _deserialize(type, value)
|
313
|
+
case type.to_sym
|
314
|
+
when :DateTime
|
315
|
+
DateTime.parse(value)
|
316
|
+
when :Date
|
317
|
+
Date.parse(value)
|
318
|
+
when :String
|
319
|
+
value.to_s
|
320
|
+
when :Integer
|
321
|
+
value.to_i
|
322
|
+
when :Float
|
323
|
+
value.to_f
|
324
|
+
when :Boolean
|
325
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
326
|
+
true
|
327
|
+
else
|
328
|
+
false
|
329
|
+
end
|
330
|
+
when :Object
|
331
|
+
# generic object (usually a Hash), return directly
|
332
|
+
value
|
333
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
334
|
+
inner_type = Regexp.last_match[:inner_type]
|
335
|
+
value.map { |v| _deserialize(inner_type, v) }
|
336
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
337
|
+
k_type = Regexp.last_match[:k_type]
|
338
|
+
v_type = Regexp.last_match[:v_type]
|
339
|
+
{}.tap do |hash|
|
340
|
+
value.each do |k, v|
|
341
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
342
|
+
end
|
343
|
+
end
|
344
|
+
else # model
|
345
|
+
SmartRecruiters.const_get(type).build_from_hash(value)
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
349
|
+
# Returns the string representation of the object
|
350
|
+
# @return [String] String presentation of the object
|
351
|
+
def to_s
|
352
|
+
to_hash.to_s
|
353
|
+
end
|
354
|
+
|
355
|
+
# to_body is an alias to to_hash (backward compatibility)
|
356
|
+
# @return [Hash] Returns the object in the form of hash
|
357
|
+
def to_body
|
358
|
+
to_hash
|
359
|
+
end
|
360
|
+
|
361
|
+
# Returns the object in the form of hash
|
362
|
+
# @return [Hash] Returns the object in the form of hash
|
363
|
+
def to_hash
|
364
|
+
hash = super
|
365
|
+
self.class.attribute_map.each_pair do |attr, param|
|
366
|
+
value = self.send(attr)
|
367
|
+
if value.nil?
|
368
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
369
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
370
|
+
end
|
371
|
+
|
372
|
+
hash[param] = _to_hash(value)
|
373
|
+
end
|
374
|
+
hash
|
375
|
+
end
|
376
|
+
|
377
|
+
# Outputs non-array value in the form of hash
|
378
|
+
# For object, use to_hash. Otherwise, just return the value
|
379
|
+
# @param [Object] value Any valid value
|
380
|
+
# @return [Hash] Returns the value in the form of hash
|
381
|
+
def _to_hash(value)
|
382
|
+
if value.is_a?(Array)
|
383
|
+
value.compact.map { |v| _to_hash(v) }
|
384
|
+
elsif value.is_a?(Hash)
|
385
|
+
{}.tap do |hash|
|
386
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
387
|
+
end
|
388
|
+
elsif value.respond_to? :to_hash
|
389
|
+
value.to_hash
|
390
|
+
else
|
391
|
+
value
|
392
|
+
end
|
393
|
+
end end
|
394
|
+
end
|
@@ -0,0 +1,233 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module SmartRecruiters
|
6
|
+
class JobDetailsActions
|
7
|
+
attr_accessor :hiring_team
|
8
|
+
|
9
|
+
attr_accessor :publications
|
10
|
+
|
11
|
+
attr_accessor :positions
|
12
|
+
|
13
|
+
attr_accessor :apply_on_web
|
14
|
+
|
15
|
+
attr_accessor :details
|
16
|
+
|
17
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
18
|
+
def self.attribute_map
|
19
|
+
{
|
20
|
+
:'hiring_team' => :'hiringTeam',
|
21
|
+
:'publications' => :'publications',
|
22
|
+
:'positions' => :'positions',
|
23
|
+
:'apply_on_web' => :'applyOnWeb',
|
24
|
+
:'details' => :'details'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.openapi_types
|
30
|
+
{
|
31
|
+
:'hiring_team' => :'Object',
|
32
|
+
:'publications' => :'Object',
|
33
|
+
:'positions' => :'Object',
|
34
|
+
:'apply_on_web' => :'Object',
|
35
|
+
:'details' => :'Object'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SmartRecruiters::JobDetailsActions` initialize method"
|
50
|
+
end
|
51
|
+
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SmartRecruiters::JobDetailsActions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
59
|
+
|
60
|
+
if attributes.key?(:'hiring_team')
|
61
|
+
self.hiring_team = attributes[:'hiring_team']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.key?(:'publications')
|
65
|
+
self.publications = attributes[:'publications']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'positions')
|
69
|
+
self.positions = attributes[:'positions']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'apply_on_web')
|
73
|
+
self.apply_on_web = attributes[:'apply_on_web']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'details')
|
77
|
+
self.details = attributes[:'details']
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
invalid_properties
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
def valid?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
hiring_team == o.hiring_team &&
|
100
|
+
publications == o.publications &&
|
101
|
+
positions == o.positions &&
|
102
|
+
apply_on_web == o.apply_on_web &&
|
103
|
+
details == o.details
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(o)
|
109
|
+
self == o
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Integer] Hash code
|
114
|
+
def hash
|
115
|
+
[hiring_team, publications, positions, apply_on_web, details].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Builds the object from hash
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
# @return [Object] Returns the model itself
|
121
|
+
def self.build_from_hash(attributes)
|
122
|
+
new.build_from_hash(attributes)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Builds the object from hash
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
+
# @return [Object] Returns the model itself
|
128
|
+
def build_from_hash(attributes)
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
130
|
+
self.class.openapi_types.each_pair do |key, type|
|
131
|
+
if type =~ /\AArray<(.*)>/i
|
132
|
+
# check to ensure the input is an array given that the attribute
|
133
|
+
# is documented as an array but the input is not
|
134
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
135
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
136
|
+
end
|
137
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
138
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
139
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
140
|
+
self.send("#{key}=", nil)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
self
|
145
|
+
end
|
146
|
+
|
147
|
+
# Deserializes the data based on type
|
148
|
+
# @param string type Data type
|
149
|
+
# @param string value Value to be deserialized
|
150
|
+
# @return [Object] Deserialized data
|
151
|
+
def _deserialize(type, value)
|
152
|
+
case type.to_sym
|
153
|
+
when :DateTime
|
154
|
+
DateTime.parse(value)
|
155
|
+
when :Date
|
156
|
+
Date.parse(value)
|
157
|
+
when :String
|
158
|
+
value.to_s
|
159
|
+
when :Integer
|
160
|
+
value.to_i
|
161
|
+
when :Float
|
162
|
+
value.to_f
|
163
|
+
when :Boolean
|
164
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
165
|
+
true
|
166
|
+
else
|
167
|
+
false
|
168
|
+
end
|
169
|
+
when :Object
|
170
|
+
# generic object (usually a Hash), return directly
|
171
|
+
value
|
172
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
173
|
+
inner_type = Regexp.last_match[:inner_type]
|
174
|
+
value.map { |v| _deserialize(inner_type, v) }
|
175
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
176
|
+
k_type = Regexp.last_match[:k_type]
|
177
|
+
v_type = Regexp.last_match[:v_type]
|
178
|
+
{}.tap do |hash|
|
179
|
+
value.each do |k, v|
|
180
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
else # model
|
184
|
+
SmartRecruiters.const_get(type).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
|
+
if value.nil?
|
207
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
208
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
209
|
+
end
|
210
|
+
|
211
|
+
hash[param] = _to_hash(value)
|
212
|
+
end
|
213
|
+
hash
|
214
|
+
end
|
215
|
+
|
216
|
+
# Outputs non-array value in the form of hash
|
217
|
+
# For object, use to_hash. Otherwise, just return the value
|
218
|
+
# @param [Object] value Any valid value
|
219
|
+
# @return [Hash] Returns the value in the form of hash
|
220
|
+
def _to_hash(value)
|
221
|
+
if value.is_a?(Array)
|
222
|
+
value.compact.map { |v| _to_hash(v) }
|
223
|
+
elsif value.is_a?(Hash)
|
224
|
+
{}.tap do |hash|
|
225
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
226
|
+
end
|
227
|
+
elsif value.respond_to? :to_hash
|
228
|
+
value.to_hash
|
229
|
+
else
|
230
|
+
value
|
231
|
+
end
|
232
|
+
end end
|
233
|
+
end
|