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.
Files changed (238) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +13 -0
  4. data/Gemfile +16 -0
  5. data/Gemfile.lock +65 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +35 -0
  8. data/Rakefile +12 -0
  9. data/lib/smart_recruiters/api/application_api_api.rb +188 -0
  10. data/lib/smart_recruiters/api/candidates_api.rb +2417 -0
  11. data/lib/smart_recruiters/api/configuration_api.rb +2504 -0
  12. data/lib/smart_recruiters/api/job_applications_api.rb +63 -0
  13. data/lib/smart_recruiters/api/jobs_api.rb +1851 -0
  14. data/lib/smart_recruiters/api/subscriptions_api.rb +469 -0
  15. data/lib/smart_recruiters/api_client.rb +379 -0
  16. data/lib/smart_recruiters/api_error.rb +46 -0
  17. data/lib/smart_recruiters/authorization.rb +66 -0
  18. data/lib/smart_recruiters/configuration.rb +214 -0
  19. data/lib/smart_recruiters/models/action.rb +248 -0
  20. data/lib/smart_recruiters/models/actions.rb +190 -0
  21. data/lib/smart_recruiters/models/all_of_candidate_details_primary_assignment.rb +262 -0
  22. data/lib/smart_recruiters/models/all_of_candidate_details_secondary_assignments_items.rb +262 -0
  23. data/lib/smart_recruiters/models/answer_field.rb +227 -0
  24. data/lib/smart_recruiters/models/answer_field_value.rb +216 -0
  25. data/lib/smart_recruiters/models/answer_record.rb +197 -0
  26. data/lib/smart_recruiters/models/application.rb +260 -0
  27. data/lib/smart_recruiters/models/application_attachment_webhook_payload.rb +248 -0
  28. data/lib/smart_recruiters/models/application_status_info.rb +231 -0
  29. data/lib/smart_recruiters/models/application_url.rb +198 -0
  30. data/lib/smart_recruiters/models/application_webhook_payload.rb +230 -0
  31. data/lib/smart_recruiters/models/apply_api_error.rb +259 -0
  32. data/lib/smart_recruiters/models/apply_api_request.rb +386 -0
  33. data/lib/smart_recruiters/models/apply_api_response.rb +224 -0
  34. data/lib/smart_recruiters/models/apply_configuration.rb +229 -0
  35. data/lib/smart_recruiters/models/apply_settings.rb +197 -0
  36. data/lib/smart_recruiters/models/assignment.rb +251 -0
  37. data/lib/smart_recruiters/models/assignment_actions.rb +197 -0
  38. data/lib/smart_recruiters/models/attachment.rb +230 -0
  39. data/lib/smart_recruiters/models/attachment_actions.rb +202 -0
  40. data/lib/smart_recruiters/models/attachments.rb +218 -0
  41. data/lib/smart_recruiters/models/callback_authentication.rb +188 -0
  42. data/lib/smart_recruiters/models/callback_basic_auth.rb +249 -0
  43. data/lib/smart_recruiters/models/callback_header_auth.rb +250 -0
  44. data/lib/smart_recruiters/models/callback_o_auth2_auth.rb +262 -0
  45. data/lib/smart_recruiters/models/callback_request.rb +216 -0
  46. data/lib/smart_recruiters/models/callback_request_request_details.rb +219 -0
  47. data/lib/smart_recruiters/models/callback_request_status.rb +19 -0
  48. data/lib/smart_recruiters/models/callback_requests.rb +192 -0
  49. data/lib/smart_recruiters/models/callback_url.rb +188 -0
  50. data/lib/smart_recruiters/models/candidate.rb +349 -0
  51. data/lib/smart_recruiters/models/candidate_actions.rb +216 -0
  52. data/lib/smart_recruiters/models/candidate_attachment_for_job.rb +253 -0
  53. data/lib/smart_recruiters/models/candidate_attachment_for_job_actions.rb +216 -0
  54. data/lib/smart_recruiters/models/candidate_attachments_for_job.rb +218 -0
  55. data/lib/smart_recruiters/models/candidate_consent.rb +197 -0
  56. data/lib/smart_recruiters/models/candidate_consent_decisions.rb +213 -0
  57. data/lib/smart_recruiters/models/candidate_consent_status.rb +212 -0
  58. data/lib/smart_recruiters/models/candidate_details.rb +349 -0
  59. data/lib/smart_recruiters/models/candidate_details_actions.rb +229 -0
  60. data/lib/smart_recruiters/models/candidate_input.rb +308 -0
  61. data/lib/smart_recruiters/models/candidate_job.rb +216 -0
  62. data/lib/smart_recruiters/models/candidate_location.rb +251 -0
  63. data/lib/smart_recruiters/models/candidate_primary_assignment.rb +225 -0
  64. data/lib/smart_recruiters/models/candidate_primary_assignment_job.rb +230 -0
  65. data/lib/smart_recruiters/models/candidate_primary_assignment_job_actions.rb +202 -0
  66. data/lib/smart_recruiters/models/candidate_properties.rb +199 -0
  67. data/lib/smart_recruiters/models/candidate_property.rb +268 -0
  68. data/lib/smart_recruiters/models/candidate_property_actions.rb +202 -0
  69. data/lib/smart_recruiters/models/candidate_property_availability.rb +253 -0
  70. data/lib/smart_recruiters/models/candidate_property_definition.rb +233 -0
  71. data/lib/smart_recruiters/models/candidate_property_definition_list.rb +208 -0
  72. data/lib/smart_recruiters/models/candidate_property_filter.rb +215 -0
  73. data/lib/smart_recruiters/models/candidate_property_filter_values.rb +208 -0
  74. data/lib/smart_recruiters/models/candidate_property_input_value.rb +198 -0
  75. data/lib/smart_recruiters/models/candidate_property_type.rb +27 -0
  76. data/lib/smart_recruiters/models/candidate_property_value.rb +212 -0
  77. data/lib/smart_recruiters/models/candidate_property_value_label.rb +202 -0
  78. data/lib/smart_recruiters/models/candidate_property_value_list.rb +208 -0
  79. data/lib/smart_recruiters/models/candidate_secondary_assignments.rb +202 -0
  80. data/lib/smart_recruiters/models/candidate_source.rb +225 -0
  81. data/lib/smart_recruiters/models/candidate_status.rb +230 -0
  82. data/lib/smart_recruiters/models/candidate_status_enum.rb +26 -0
  83. data/lib/smart_recruiters/models/candidate_status_history_list.rb +208 -0
  84. data/lib/smart_recruiters/models/candidate_status_history_list_elem.rb +224 -0
  85. data/lib/smart_recruiters/models/candidate_tags.rb +204 -0
  86. data/lib/smart_recruiters/models/candidate_webhook_payload.rb +202 -0
  87. data/lib/smart_recruiters/models/candidates.rb +255 -0
  88. data/lib/smart_recruiters/models/company_configuration.rb +246 -0
  89. data/lib/smart_recruiters/models/compensation.rb +215 -0
  90. data/lib/smart_recruiters/models/consent_decision.rb +226 -0
  91. data/lib/smart_recruiters/models/consent_decision_status.rb +20 -0
  92. data/lib/smart_recruiters/models/consent_request.rb +203 -0
  93. data/lib/smart_recruiters/models/consent_request_scheduled.rb +250 -0
  94. data/lib/smart_recruiters/models/consent_request_scheduled_body.rb +197 -0
  95. data/lib/smart_recruiters/models/consent_request_unavailable.rb +245 -0
  96. data/lib/smart_recruiters/models/consent_requests_results.rb +204 -0
  97. data/lib/smart_recruiters/models/consent_scope.rb +22 -0
  98. data/lib/smart_recruiters/models/consent_status.rb +20 -0
  99. data/lib/smart_recruiters/models/department.rb +220 -0
  100. data/lib/smart_recruiters/models/departments.rb +208 -0
  101. data/lib/smart_recruiters/models/dependent_job_properties.rb +218 -0
  102. data/lib/smart_recruiters/models/dependent_job_properties_ids.rb +204 -0
  103. data/lib/smart_recruiters/models/dependent_job_property.rb +216 -0
  104. data/lib/smart_recruiters/models/dependent_job_property_value.rb +220 -0
  105. data/lib/smart_recruiters/models/dependent_job_property_values.rb +208 -0
  106. data/lib/smart_recruiters/models/dependent_job_property_values_relation.rb +218 -0
  107. data/lib/smart_recruiters/models/dependent_job_property_values_relations.rb +218 -0
  108. data/lib/smart_recruiters/models/education.rb +270 -0
  109. data/lib/smart_recruiters/models/email_address.rb +188 -0
  110. data/lib/smart_recruiters/models/employment.rb +261 -0
  111. data/lib/smart_recruiters/models/error.rb +211 -0
  112. data/lib/smart_recruiters/models/error_response.rb +208 -0
  113. data/lib/smart_recruiters/models/event.rb +206 -0
  114. data/lib/smart_recruiters/models/event_name.rb +64 -0
  115. data/lib/smart_recruiters/models/experience.rb +251 -0
  116. data/lib/smart_recruiters/models/field_value.rb +216 -0
  117. data/lib/smart_recruiters/models/headcount_patch_request.rb +197 -0
  118. data/lib/smart_recruiters/models/headcount_update_accepted.rb +231 -0
  119. data/lib/smart_recruiters/models/hiring_process.rb +224 -0
  120. data/lib/smart_recruiters/models/hiring_process_sub_statuses.rb +221 -0
  121. data/lib/smart_recruiters/models/hiring_processes.rb +218 -0
  122. data/lib/smart_recruiters/models/hiring_team_member.rb +220 -0
  123. data/lib/smart_recruiters/models/hiring_team_member_response.rb +215 -0
  124. data/lib/smart_recruiters/models/hiring_team_member_response_actions.rb +202 -0
  125. data/lib/smart_recruiters/models/hiring_team_member_role.rb +22 -0
  126. data/lib/smart_recruiters/models/hiring_team_members.rb +208 -0
  127. data/lib/smart_recruiters/models/id_attachments_body.rb +249 -0
  128. data/lib/smart_recruiters/models/identifiable.rb +202 -0
  129. data/lib/smart_recruiters/models/industry.rb +207 -0
  130. data/lib/smart_recruiters/models/job.rb +197 -0
  131. data/lib/smart_recruiters/models/job_ad.rb +206 -0
  132. data/lib/smart_recruiters/models/job_ad_content.rb +220 -0
  133. data/lib/smart_recruiters/models/job_ad_input.rb +206 -0
  134. data/lib/smart_recruiters/models/job_ad_item.rb +397 -0
  135. data/lib/smart_recruiters/models/job_ad_item_actions.rb +202 -0
  136. data/lib/smart_recruiters/models/job_ad_language.rb +202 -0
  137. data/lib/smart_recruiters/models/job_ad_postings_webhook_payload.rb +216 -0
  138. data/lib/smart_recruiters/models/job_ad_publication_scheduled.rb +231 -0
  139. data/lib/smart_recruiters/models/job_ad_section.rb +206 -0
  140. data/lib/smart_recruiters/models/job_ad_sections.rb +233 -0
  141. data/lib/smart_recruiters/models/job_ad_unpublish_scheduled.rb +231 -0
  142. data/lib/smart_recruiters/models/job_ad_videos.rb +199 -0
  143. data/lib/smart_recruiters/models/job_ad_webhook_payload.rb +216 -0
  144. data/lib/smart_recruiters/models/job_ads.rb +192 -0
  145. data/lib/smart_recruiters/models/job_application.rb +242 -0
  146. data/lib/smart_recruiters/models/job_application_status.rb +26 -0
  147. data/lib/smart_recruiters/models/job_approval.rb +217 -0
  148. data/lib/smart_recruiters/models/job_approval_position.rb +251 -0
  149. data/lib/smart_recruiters/models/job_approval_webhook_payload.rb +216 -0
  150. data/lib/smart_recruiters/models/job_details.rb +394 -0
  151. data/lib/smart_recruiters/models/job_details_actions.rb +233 -0
  152. data/lib/smart_recruiters/models/job_id_attachments_body.rb +249 -0
  153. data/lib/smart_recruiters/models/job_input.rb +341 -0
  154. data/lib/smart_recruiters/models/job_job.rb +215 -0
  155. data/lib/smart_recruiters/models/job_job_actions.rb +211 -0
  156. data/lib/smart_recruiters/models/job_location_input.rb +252 -0
  157. data/lib/smart_recruiters/models/job_note.rb +202 -0
  158. data/lib/smart_recruiters/models/job_position.rb +256 -0
  159. data/lib/smart_recruiters/models/job_position_input.rb +282 -0
  160. data/lib/smart_recruiters/models/job_positions.rb +218 -0
  161. data/lib/smart_recruiters/models/job_property.rb +225 -0
  162. data/lib/smart_recruiters/models/job_property_definition.rb +300 -0
  163. data/lib/smart_recruiters/models/job_property_definition_creation_request.rb +282 -0
  164. data/lib/smart_recruiters/models/job_property_definition_list.rb +208 -0
  165. data/lib/smart_recruiters/models/job_property_input.rb +220 -0
  166. data/lib/smart_recruiters/models/job_property_value.rb +206 -0
  167. data/lib/smart_recruiters/models/job_property_value_definition.rb +220 -0
  168. data/lib/smart_recruiters/models/job_property_value_definition_list.rb +208 -0
  169. data/lib/smart_recruiters/models/job_status.rb +25 -0
  170. data/lib/smart_recruiters/models/job_status_history.rb +216 -0
  171. data/lib/smart_recruiters/models/job_status_history_actions.rb +202 -0
  172. data/lib/smart_recruiters/models/job_status_history_content.rb +220 -0
  173. data/lib/smart_recruiters/models/job_status_update.rb +202 -0
  174. data/lib/smart_recruiters/models/job_summary.rb +302 -0
  175. data/lib/smart_recruiters/models/job_webhook_payload.rb +202 -0
  176. data/lib/smart_recruiters/models/jobs.rb +235 -0
  177. data/lib/smart_recruiters/models/json_patch.rb +192 -0
  178. data/lib/smart_recruiters/models/json_pointer.rb +188 -0
  179. data/lib/smart_recruiters/models/label_translation.rb +216 -0
  180. data/lib/smart_recruiters/models/label_translations.rb +192 -0
  181. data/lib/smart_recruiters/models/labeled.rb +202 -0
  182. data/lib/smart_recruiters/models/language.rb +220 -0
  183. data/lib/smart_recruiters/models/language_code.rb +87 -0
  184. data/lib/smart_recruiters/models/location.rb +251 -0
  185. data/lib/smart_recruiters/models/model_when.rb +189 -0
  186. data/lib/smart_recruiters/models/offer_approval_webhook_payload.rb +244 -0
  187. data/lib/smart_recruiters/models/offer_properties_category.rb +208 -0
  188. data/lib/smart_recruiters/models/offer_properties_definition.rb +199 -0
  189. data/lib/smart_recruiters/models/offer_property_definition.rb +258 -0
  190. data/lib/smart_recruiters/models/offer_webhook_payload.rb +230 -0
  191. data/lib/smart_recruiters/models/onboarding_assignments_completed_webhook_payload.rb +216 -0
  192. data/lib/smart_recruiters/models/onboarding_high_priority_assignments_completed_webhook_payload.rb +216 -0
  193. data/lib/smart_recruiters/models/onboarding_process_webhook_payload.rb +216 -0
  194. data/lib/smart_recruiters/models/onboarding_status.rb +236 -0
  195. data/lib/smart_recruiters/models/one_of_candidate_property_value.rb +188 -0
  196. data/lib/smart_recruiters/models/one_of_consent_requests_results_results_items.rb +188 -0
  197. data/lib/smart_recruiters/models/one_of_json_patch_items.rb +188 -0
  198. data/lib/smart_recruiters/models/path.rb +202 -0
  199. data/lib/smart_recruiters/models/personal_details.rb +242 -0
  200. data/lib/smart_recruiters/models/position_webhook_payload.rb +216 -0
  201. data/lib/smart_recruiters/models/posting_status.rb +21 -0
  202. data/lib/smart_recruiters/models/privacy_policy.rb +206 -0
  203. data/lib/smart_recruiters/models/properties.rb +208 -0
  204. data/lib/smart_recruiters/models/property.rb +211 -0
  205. data/lib/smart_recruiters/models/publication.rb +244 -0
  206. data/lib/smart_recruiters/models/publication_list.rb +204 -0
  207. data/lib/smart_recruiters/models/publication_list_item.rb +239 -0
  208. data/lib/smart_recruiters/models/relation_job_property_value.rb +211 -0
  209. data/lib/smart_recruiters/models/review_webhook_payload.rb +216 -0
  210. data/lib/smart_recruiters/models/salary_range.rb +215 -0
  211. data/lib/smart_recruiters/models/screening_answer.rb +313 -0
  212. data/lib/smart_recruiters/models/screening_answers.rb +218 -0
  213. data/lib/smart_recruiters/models/screening_question.rb +246 -0
  214. data/lib/smart_recruiters/models/screening_question_answer.rb +218 -0
  215. data/lib/smart_recruiters/models/screening_question_field.rb +315 -0
  216. data/lib/smart_recruiters/models/screening_questions_answers_webhook_payload.rb +230 -0
  217. data/lib/smart_recruiters/models/secret_key_payload.rb +197 -0
  218. data/lib/smart_recruiters/models/source.rb +244 -0
  219. data/lib/smart_recruiters/models/source_actions.rb +202 -0
  220. data/lib/smart_recruiters/models/source_definition.rb +230 -0
  221. data/lib/smart_recruiters/models/source_details.rb +225 -0
  222. data/lib/smart_recruiters/models/source_types.rb +218 -0
  223. data/lib/smart_recruiters/models/source_types_actions.rb +202 -0
  224. data/lib/smart_recruiters/models/source_types_content.rb +246 -0
  225. data/lib/smart_recruiters/models/sources.rb +246 -0
  226. data/lib/smart_recruiters/models/subscription.rb +270 -0
  227. data/lib/smart_recruiters/models/subscription_request.rb +236 -0
  228. data/lib/smart_recruiters/models/subscriptions.rb +192 -0
  229. data/lib/smart_recruiters/models/user_identity.rb +215 -0
  230. data/lib/smart_recruiters/models/uuid.rb +188 -0
  231. data/lib/smart_recruiters/models/valid_job_status.rb +24 -0
  232. data/lib/smart_recruiters/models/web.rb +233 -0
  233. data/lib/smart_recruiters/models/web_profile.rb +233 -0
  234. data/lib/smart_recruiters/version.rb +5 -0
  235. data/lib/smart_recruiters.rb +46 -0
  236. data/open_api_smart_recruiters_sdk.gemspec +45 -0
  237. data/sig/smart_recruiters.rbs +4 -0
  238. metadata +367 -0
@@ -0,0 +1,1851 @@
1
+ module SmartRecruiters
2
+ class JobsApi
3
+ attr_accessor :api_client
4
+
5
+ def initialize(api_client = ApiClient.default)
6
+ @api_client = api_client
7
+ end
8
+ # Search jobs
9
+ # Search jobs by params.
10
+ # @param [Hash] opts the optional parameters
11
+ # @option opts [String] :accept_language language of returned content (default to en)
12
+ # @option opts [String] :q full-text search query based on a job title; case insensitive; e.g. java developer
13
+ # @option opts [Integer] :limit number of elements to return. max value is 100 (default to 10)
14
+ # @option opts [Integer] :offset number of elements to skip while processing result; this method of paging is very slow and is deprecated, please use `pageId` instead (default to 0)
15
+ # @option opts [String] :page_id unique identifier for next page of jobs - returned as `nextPageId` in previous page result
16
+ # @option opts [Array<String>] :city city filter (part of the location object); can be used repeatedly; case sensitive; e.g. San Francisco
17
+ # @option opts [Array<String>] :department department filter (by department label); can be used repeatedly; case sensitive; e.g. “Marketing”
18
+ # @option opts [DateTime] :updated_after ISO8601-formatted time boundaries for the job update time, Format: yyyy-MM-ddTHH:mm:ss.SSSZZ
19
+ # @option opts [DateTime] :last_activity_after ISO8601-formatted time boundaries for the job lastActivityOn time, Format: yyyy-MM-ddTHH:mm:ss.SSSZZ. lastActivityOn is updated when job is edited, new candidates apply or job is published.
20
+ # @option opts [String] :language Exceptions to the language code ISO format: * \&quot;en-GB\&quot; - \&quot;English - English (UK)\&quot; * \&quot;es-MX\&quot; - \&quot;Spanish - español (México)\&quot; * \&quot;fr-CA\&quot; - \&quot;French - français (Canada)\&quot; * \&quot;pt-BR\&quot; - \&quot;Portugal - português (Brasil)\&quot; * \&quot;zh-TW\&quot; - \&quot;Chinese (Traditional) - 中文 (香港)\&quot; * \&quot;zh-CN\&quot; - \&quot;Chinese (Simplified) - 中文 (简体)\&quot; Value \&quot;pt-PT\&quot; is deprecated and will not work, use \&quot;pt\&quot; instead.
21
+ # @option opts [String] :status Status of a job
22
+ # @option opts [String] :posting_status Posting status of a job
23
+ # @return [Jobs]
24
+ def jobs_all(opts = {})
25
+ data, _status_code, _headers = jobs_all_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # Search jobs
30
+ # Search jobs by params.
31
+ # @param [Hash] opts the optional parameters
32
+ # @option opts [String] :accept_language language of returned content
33
+ # @option opts [String] :q full-text search query based on a job title; case insensitive; e.g. java developer
34
+ # @option opts [Integer] :limit number of elements to return. max value is 100
35
+ # @option opts [Integer] :offset number of elements to skip while processing result; this method of paging is very slow and is deprecated, please use &#x60;pageId&#x60; instead
36
+ # @option opts [String] :page_id unique identifier for next page of jobs - returned as &#x60;nextPageId&#x60; in previous page result
37
+ # @option opts [Array<String>] :city city filter (part of the location object); can be used repeatedly; case sensitive; e.g. San Francisco
38
+ # @option opts [Array<String>] :department department filter (by department label); can be used repeatedly; case sensitive; e.g. “Marketing”
39
+ # @option opts [DateTime] :updated_after ISO8601-formatted time boundaries for the job update time, Format: yyyy-MM-ddTHH:mm:ss.SSSZZ
40
+ # @option opts [DateTime] :last_activity_after ISO8601-formatted time boundaries for the job lastActivityOn time, Format: yyyy-MM-ddTHH:mm:ss.SSSZZ. lastActivityOn is updated when job is edited, new candidates apply or job is published.
41
+ # @option opts [String] :language Exceptions to the language code ISO format: * \&quot;en-GB\&quot; - \&quot;English - English (UK)\&quot; * \&quot;es-MX\&quot; - \&quot;Spanish - español (México)\&quot; * \&quot;fr-CA\&quot; - \&quot;French - français (Canada)\&quot; * \&quot;pt-BR\&quot; - \&quot;Portugal - português (Brasil)\&quot; * \&quot;zh-TW\&quot; - \&quot;Chinese (Traditional) - 中文 (香港)\&quot; * \&quot;zh-CN\&quot; - \&quot;Chinese (Simplified) - 中文 (简体)\&quot; Value \&quot;pt-PT\&quot; is deprecated and will not work, use \&quot;pt\&quot; instead.
42
+ # @option opts [String] :status Status of a job
43
+ # @option opts [String] :posting_status Posting status of a job
44
+ # @return [Array<(Jobs, Integer, Hash)>] Jobs data, response status code and response headers
45
+ def jobs_all_with_http_info(opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_all ...'
48
+ end
49
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
50
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
51
+ end
52
+ if @api_client.config.client_side_validation && opts[:'language'] && !['af', 'am', 'ar', 'az', 'bg', 'bn', 'ca', 'cs', 'cy', 'da', 'de', 'el', 'en', 'en-GB', 'es', 'es-MX', 'et', 'eu', 'fa', 'fi', 'fil', 'fr', 'fr-CA', 'ga', 'gl', 'gu', 'he', 'hi', 'hr', 'hu', 'hy', 'id', 'is', 'it', 'ja', 'ka', 'km', 'kn', 'ko', 'lo', 'lt', 'lv', 'ml', 'mn', 'mr', 'ms', 'ne', 'nl', 'no', 'pl', 'pt', 'pt-BR', 'ro', 'ru', 'si', 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'zh-CN', 'zh-TW', 'zu'].include?(opts[:'language'])
53
+ fail ArgumentError, 'invalid value for "language", must be one of af, am, ar, az, bg, bn, ca, cs, cy, da, de, el, en, en-GB, es, es-MX, et, eu, fa, fi, fil, fr, fr-CA, ga, gl, gu, he, hi, hr, hu, hy, id, is, it, ja, ka, km, kn, ko, lo, lt, lv, ml, mn, mr, ms, ne, nl, no, pl, pt, pt-BR, ro, ru, si, sk, sl, sr, sv, sw, ta, te, tr, uk, ur, vi, zh-CN, zh-TW, zu'
54
+ end
55
+ if @api_client.config.client_side_validation && opts[:'status'] && !['CREATED', 'SOURCING', 'FILLED', 'INTERVIEW', 'OFFER', 'CANCELLED', 'ON_HOLD'].include?(opts[:'status'])
56
+ fail ArgumentError, 'invalid value for "status", must be one of CREATED, SOURCING, FILLED, INTERVIEW, OFFER, CANCELLED, ON_HOLD'
57
+ end
58
+ if @api_client.config.client_side_validation && opts[:'posting_status'] && !['PUBLIC', 'INTERNAL', 'NOT_PUBLISHED', 'PRIVATE'].include?(opts[:'posting_status'])
59
+ fail ArgumentError, 'invalid value for "posting_status", must be one of PUBLIC, INTERNAL, NOT_PUBLISHED, PRIVATE'
60
+ end
61
+ # resource path
62
+ local_var_path = '/jobs'
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
67
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
68
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
69
+ query_params[:'pageId'] = opts[:'page_id'] if !opts[:'page_id'].nil?
70
+ query_params[:'city'] = @api_client.build_collection_param(opts[:'city'], :multi) if !opts[:'city'].nil?
71
+ query_params[:'department'] = @api_client.build_collection_param(opts[:'department'], :multi) if !opts[:'department'].nil?
72
+ query_params[:'updatedAfter'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
73
+ query_params[:'lastActivityAfter'] = opts[:'last_activity_after'] if !opts[:'last_activity_after'].nil?
74
+ query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil?
75
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
76
+ query_params[:'postingStatus'] = opts[:'posting_status'] if !opts[:'posting_status'].nil?
77
+
78
+ # header parameters
79
+ header_params = opts[:header_params] || {}
80
+ # HTTP header 'Accept' (if needed)
81
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
82
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
83
+
84
+ # form parameters
85
+ form_params = opts[:form_params] || {}
86
+
87
+ # http body (model)
88
+ post_body = opts[:body]
89
+
90
+ return_type = opts[:return_type] || 'Jobs'
91
+
92
+ auth_names = opts[:auth_names] || ['key', 'oauth']
93
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
94
+ :header_params => header_params,
95
+ :query_params => query_params,
96
+ :form_params => form_params,
97
+ :body => post_body,
98
+ :auth_names => auth_names,
99
+ :return_type => return_type)
100
+
101
+ if @api_client.config.debugging
102
+ @api_client.config.logger.debug "API called: JobsApi#jobs_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
103
+ end
104
+ return data, status_code, headers
105
+ end
106
+ # Get latest approval request for given job
107
+ # @param job_id job identifier
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [String] :accept_language language of returned content (default to en)
110
+ # @return [JobApproval]
111
+ def jobs_approvals_latest(job_id, opts = {})
112
+ data, _status_code, _headers = jobs_approvals_latest_with_http_info(job_id, opts)
113
+ data
114
+ end
115
+
116
+ # Get latest approval request for given job
117
+ # @param job_id job identifier
118
+ # @param [Hash] opts the optional parameters
119
+ # @option opts [String] :accept_language language of returned content
120
+ # @return [Array<(JobApproval, Integer, Hash)>] JobApproval data, response status code and response headers
121
+ def jobs_approvals_latest_with_http_info(job_id, opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_approvals_latest ...'
124
+ end
125
+ # verify the required parameter 'job_id' is set
126
+ if @api_client.config.client_side_validation && job_id.nil?
127
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_approvals_latest"
128
+ end
129
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
130
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
131
+ end
132
+ # resource path
133
+ local_var_path = '/jobs/{jobId}/approvals/latest'.sub('{' + 'jobId' + '}', job_id.to_s)
134
+
135
+ # query parameters
136
+ query_params = opts[:query_params] || {}
137
+
138
+ # header parameters
139
+ header_params = opts[:header_params] || {}
140
+ # HTTP header 'Accept' (if needed)
141
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
142
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
143
+
144
+ # form parameters
145
+ form_params = opts[:form_params] || {}
146
+
147
+ # http body (model)
148
+ post_body = opts[:body]
149
+
150
+ return_type = opts[:return_type] || 'JobApproval'
151
+
152
+ auth_names = opts[:auth_names] || ['key', 'oauth']
153
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
154
+ :header_params => header_params,
155
+ :query_params => query_params,
156
+ :form_params => form_params,
157
+ :body => post_body,
158
+ :auth_names => auth_names,
159
+ :return_type => return_type)
160
+
161
+ if @api_client.config.debugging
162
+ @api_client.config.logger.debug "API called: JobsApi#jobs_approvals_latest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
163
+ end
164
+ return data, status_code, headers
165
+ end
166
+ # Create a new job
167
+ # Create a new job. Ignores all nonexistent job properties and job properties values.
168
+ # @param [Hash] opts the optional parameters
169
+ # @option opts [JobInput] :body Job object that needs to be created
170
+ # @return [JobDetails]
171
+ def jobs_create(opts = {})
172
+ data, _status_code, _headers = jobs_create_with_http_info(opts)
173
+ data
174
+ end
175
+
176
+ # Create a new job
177
+ # Create a new job. Ignores all nonexistent job properties and job properties values.
178
+ # @param [Hash] opts the optional parameters
179
+ # @option opts [JobInput] :body Job object that needs to be created
180
+ # @return [Array<(JobDetails, Integer, Hash)>] JobDetails data, response status code and response headers
181
+ def jobs_create_with_http_info(opts = {})
182
+ if @api_client.config.debugging
183
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_create ...'
184
+ end
185
+ # resource path
186
+ local_var_path = '/jobs'
187
+
188
+ # query parameters
189
+ query_params = opts[:query_params] || {}
190
+
191
+ # header parameters
192
+ header_params = opts[:header_params] || {}
193
+ # HTTP header 'Accept' (if needed)
194
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
195
+ # HTTP header 'Content-Type'
196
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
197
+
198
+ # form parameters
199
+ form_params = opts[:form_params] || {}
200
+
201
+ # http body (model)
202
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
203
+
204
+ return_type = opts[:return_type] || 'JobDetails'
205
+
206
+ auth_names = opts[:auth_names] || ['key', 'oauth']
207
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
208
+ :header_params => header_params,
209
+ :query_params => query_params,
210
+ :form_params => form_params,
211
+ :body => post_body,
212
+ :auth_names => auth_names,
213
+ :return_type => return_type)
214
+
215
+ if @api_client.config.debugging
216
+ @api_client.config.logger.debug "API called: JobsApi#jobs_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
217
+ end
218
+ return data, status_code, headers
219
+ end
220
+ # Get content of a job with a given id.
221
+ # Get content of a job with a given id.
222
+ # @param job_id job identifier
223
+ # @param [Hash] opts the optional parameters
224
+ # @option opts [String] :accept_language language of returned content (default to en)
225
+ # @return [JobDetails]
226
+ def jobs_get(job_id, opts = {})
227
+ data, _status_code, _headers = jobs_get_with_http_info(job_id, opts)
228
+ data
229
+ end
230
+
231
+ # Get content of a job with a given id.
232
+ # Get content of a job with a given id.
233
+ # @param job_id job identifier
234
+ # @param [Hash] opts the optional parameters
235
+ # @option opts [String] :accept_language language of returned content
236
+ # @return [Array<(JobDetails, Integer, Hash)>] JobDetails data, response status code and response headers
237
+ def jobs_get_with_http_info(job_id, opts = {})
238
+ if @api_client.config.debugging
239
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_get ...'
240
+ end
241
+ # verify the required parameter 'job_id' is set
242
+ if @api_client.config.client_side_validation && job_id.nil?
243
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_get"
244
+ end
245
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
246
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
247
+ end
248
+ # resource path
249
+ local_var_path = '/jobs/{jobId}'.sub('{' + 'jobId' + '}', job_id.to_s)
250
+
251
+ # query parameters
252
+ query_params = opts[:query_params] || {}
253
+
254
+ # header parameters
255
+ header_params = opts[:header_params] || {}
256
+ # HTTP header 'Accept' (if needed)
257
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
258
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
259
+
260
+ # form parameters
261
+ form_params = opts[:form_params] || {}
262
+
263
+ # http body (model)
264
+ post_body = opts[:body]
265
+
266
+ return_type = opts[:return_type] || 'JobDetails'
267
+
268
+ auth_names = opts[:auth_names] || ['key', 'oauth']
269
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
270
+ :header_params => header_params,
271
+ :query_params => query_params,
272
+ :form_params => form_params,
273
+ :body => post_body,
274
+ :auth_names => auth_names,
275
+ :return_type => return_type)
276
+
277
+ if @api_client.config.debugging
278
+ @api_client.config.logger.debug "API called: JobsApi#jobs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
279
+ end
280
+ return data, status_code, headers
281
+ end
282
+ # Update job headcount.
283
+ # Update job headcount.
284
+ # @param body
285
+ # @param job_id job identifier
286
+ # @param [Hash] opts the optional parameters
287
+ # @return [HeadcountUpdateAccepted]
288
+ def jobs_headcount_update(body, job_id, opts = {})
289
+ data, _status_code, _headers = jobs_headcount_update_with_http_info(body, job_id, opts)
290
+ data
291
+ end
292
+
293
+ # Update job headcount.
294
+ # Update job headcount.
295
+ # @param body
296
+ # @param job_id job identifier
297
+ # @param [Hash] opts the optional parameters
298
+ # @return [Array<(HeadcountUpdateAccepted, Integer, Hash)>] HeadcountUpdateAccepted data, response status code and response headers
299
+ def jobs_headcount_update_with_http_info(body, job_id, opts = {})
300
+ if @api_client.config.debugging
301
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_headcount_update ...'
302
+ end
303
+ # verify the required parameter 'body' is set
304
+ if @api_client.config.client_side_validation && body.nil?
305
+ fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.jobs_headcount_update"
306
+ end
307
+ # verify the required parameter 'job_id' is set
308
+ if @api_client.config.client_side_validation && job_id.nil?
309
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_headcount_update"
310
+ end
311
+ # resource path
312
+ local_var_path = '/jobs/{jobId}/headcount'.sub('{' + 'jobId' + '}', job_id.to_s)
313
+
314
+ # query parameters
315
+ query_params = opts[:query_params] || {}
316
+
317
+ # header parameters
318
+ header_params = opts[:header_params] || {}
319
+ # HTTP header 'Accept' (if needed)
320
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
321
+ # HTTP header 'Content-Type'
322
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
323
+
324
+ # form parameters
325
+ form_params = opts[:form_params] || {}
326
+
327
+ # http body (model)
328
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
329
+
330
+ return_type = opts[:return_type] || 'HeadcountUpdateAccepted'
331
+
332
+ auth_names = opts[:auth_names] || ['key', 'oauth']
333
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
334
+ :header_params => header_params,
335
+ :query_params => query_params,
336
+ :form_params => form_params,
337
+ :body => post_body,
338
+ :auth_names => auth_names,
339
+ :return_type => return_type)
340
+
341
+ if @api_client.config.debugging
342
+ @api_client.config.logger.debug "API called: JobsApi#jobs_headcount_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
343
+ end
344
+ return data, status_code, headers
345
+ end
346
+ # Add hiring team member of a job with a given id.
347
+ # Add hiring team member of a job with a given id
348
+ # @param job_id job identifier
349
+ # @param [Hash] opts the optional parameters
350
+ # @option opts [HiringTeamMember] :body HiringTeamMember object
351
+ # @return [HiringTeamMemberResponse]
352
+ def jobs_hiring_team_add(job_id, opts = {})
353
+ data, _status_code, _headers = jobs_hiring_team_add_with_http_info(job_id, opts)
354
+ data
355
+ end
356
+
357
+ # Add hiring team member of a job with a given id.
358
+ # Add hiring team member of a job with a given id
359
+ # @param job_id job identifier
360
+ # @param [Hash] opts the optional parameters
361
+ # @option opts [HiringTeamMember] :body HiringTeamMember object
362
+ # @return [Array<(HiringTeamMemberResponse, Integer, Hash)>] HiringTeamMemberResponse data, response status code and response headers
363
+ def jobs_hiring_team_add_with_http_info(job_id, opts = {})
364
+ if @api_client.config.debugging
365
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_hiring_team_add ...'
366
+ end
367
+ # verify the required parameter 'job_id' is set
368
+ if @api_client.config.client_side_validation && job_id.nil?
369
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_hiring_team_add"
370
+ end
371
+ # resource path
372
+ local_var_path = '/jobs/{jobId}/hiring-team'.sub('{' + 'jobId' + '}', job_id.to_s)
373
+
374
+ # query parameters
375
+ query_params = opts[:query_params] || {}
376
+
377
+ # header parameters
378
+ header_params = opts[:header_params] || {}
379
+ # HTTP header 'Accept' (if needed)
380
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
381
+ # HTTP header 'Content-Type'
382
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
383
+
384
+ # form parameters
385
+ form_params = opts[:form_params] || {}
386
+
387
+ # http body (model)
388
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
389
+
390
+ return_type = opts[:return_type] || 'HiringTeamMemberResponse'
391
+
392
+ auth_names = opts[:auth_names] || ['key', 'oauth']
393
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
394
+ :header_params => header_params,
395
+ :query_params => query_params,
396
+ :form_params => form_params,
397
+ :body => post_body,
398
+ :auth_names => auth_names,
399
+ :return_type => return_type)
400
+
401
+ if @api_client.config.debugging
402
+ @api_client.config.logger.debug "API called: JobsApi#jobs_hiring_team_add\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
403
+ end
404
+ return data, status_code, headers
405
+ end
406
+ # Get hiring team of a job with a given id.
407
+ # Get hiring team of a job with a given id.
408
+ # @param job_id job identifier
409
+ # @param [Hash] opts the optional parameters
410
+ # @option opts [String] :accept_language language of returned content (default to en)
411
+ # @return [HiringTeamMembers]
412
+ def jobs_hiring_team_get(job_id, opts = {})
413
+ data, _status_code, _headers = jobs_hiring_team_get_with_http_info(job_id, opts)
414
+ data
415
+ end
416
+
417
+ # Get hiring team of a job with a given id.
418
+ # Get hiring team of a job with a given id.
419
+ # @param job_id job identifier
420
+ # @param [Hash] opts the optional parameters
421
+ # @option opts [String] :accept_language language of returned content
422
+ # @return [Array<(HiringTeamMembers, Integer, Hash)>] HiringTeamMembers data, response status code and response headers
423
+ def jobs_hiring_team_get_with_http_info(job_id, opts = {})
424
+ if @api_client.config.debugging
425
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_hiring_team_get ...'
426
+ end
427
+ # verify the required parameter 'job_id' is set
428
+ if @api_client.config.client_side_validation && job_id.nil?
429
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_hiring_team_get"
430
+ end
431
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
432
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
433
+ end
434
+ # resource path
435
+ local_var_path = '/jobs/{jobId}/hiring-team'.sub('{' + 'jobId' + '}', job_id.to_s)
436
+
437
+ # query parameters
438
+ query_params = opts[:query_params] || {}
439
+
440
+ # header parameters
441
+ header_params = opts[:header_params] || {}
442
+ # HTTP header 'Accept' (if needed)
443
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
444
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
445
+
446
+ # form parameters
447
+ form_params = opts[:form_params] || {}
448
+
449
+ # http body (model)
450
+ post_body = opts[:body]
451
+
452
+ return_type = opts[:return_type] || 'HiringTeamMembers'
453
+
454
+ auth_names = opts[:auth_names] || ['key', 'oauth']
455
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
456
+ :header_params => header_params,
457
+ :query_params => query_params,
458
+ :form_params => form_params,
459
+ :body => post_body,
460
+ :auth_names => auth_names,
461
+ :return_type => return_type)
462
+
463
+ if @api_client.config.debugging
464
+ @api_client.config.logger.debug "API called: JobsApi#jobs_hiring_team_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
465
+ end
466
+ return data, status_code, headers
467
+ end
468
+ # Removes hiring team member of a job with a given id.
469
+ # Removes hiring team member of a job with a given id.
470
+ # @param job_id job identifier
471
+ # @param user_id user identifier
472
+ # @param [Hash] opts the optional parameters
473
+ # @return [nil]
474
+ def jobs_hiring_team_remove(job_id, user_id, opts = {})
475
+ jobs_hiring_team_remove_with_http_info(job_id, user_id, opts)
476
+ nil
477
+ end
478
+
479
+ # Removes hiring team member of a job with a given id.
480
+ # Removes hiring team member of a job with a given id.
481
+ # @param job_id job identifier
482
+ # @param user_id user identifier
483
+ # @param [Hash] opts the optional parameters
484
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
485
+ def jobs_hiring_team_remove_with_http_info(job_id, user_id, opts = {})
486
+ if @api_client.config.debugging
487
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_hiring_team_remove ...'
488
+ end
489
+ # verify the required parameter 'job_id' is set
490
+ if @api_client.config.client_side_validation && job_id.nil?
491
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_hiring_team_remove"
492
+ end
493
+ # verify the required parameter 'user_id' is set
494
+ if @api_client.config.client_side_validation && user_id.nil?
495
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling JobsApi.jobs_hiring_team_remove"
496
+ end
497
+ # resource path
498
+ local_var_path = '/jobs/{jobId}/hiring-team/{userId}'.sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'userId' + '}', user_id.to_s)
499
+
500
+ # query parameters
501
+ query_params = opts[:query_params] || {}
502
+
503
+ # header parameters
504
+ header_params = opts[:header_params] || {}
505
+ # HTTP header 'Accept' (if needed)
506
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
507
+
508
+ # form parameters
509
+ form_params = opts[:form_params] || {}
510
+
511
+ # http body (model)
512
+ post_body = opts[:body]
513
+
514
+ return_type = opts[:return_type]
515
+
516
+ auth_names = opts[:auth_names] || ['key', 'oauth']
517
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
518
+ :header_params => header_params,
519
+ :query_params => query_params,
520
+ :form_params => form_params,
521
+ :body => post_body,
522
+ :auth_names => auth_names,
523
+ :return_type => return_type)
524
+
525
+ if @api_client.config.debugging
526
+ @api_client.config.logger.debug "API called: JobsApi#jobs_hiring_team_remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
527
+ end
528
+ return data, status_code, headers
529
+ end
530
+ # Find and list job ads for a given job
531
+ # @param job_id job identifier
532
+ # @param [Hash] opts the optional parameters
533
+ # @option opts [String] :accept_language language of returned content (default to en)
534
+ # @return [JobAds]
535
+ def jobs_jobads_all(job_id, opts = {})
536
+ data, _status_code, _headers = jobs_jobads_all_with_http_info(job_id, opts)
537
+ data
538
+ end
539
+
540
+ # Find and list job ads for a given job
541
+ # @param job_id job identifier
542
+ # @param [Hash] opts the optional parameters
543
+ # @option opts [String] :accept_language language of returned content
544
+ # @return [Array<(JobAds, Integer, Hash)>] JobAds data, response status code and response headers
545
+ def jobs_jobads_all_with_http_info(job_id, opts = {})
546
+ if @api_client.config.debugging
547
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_jobads_all ...'
548
+ end
549
+ # verify the required parameter 'job_id' is set
550
+ if @api_client.config.client_side_validation && job_id.nil?
551
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_jobads_all"
552
+ end
553
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
554
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
555
+ end
556
+ # resource path
557
+ local_var_path = '/jobs/{jobId}/jobads'.sub('{' + 'jobId' + '}', job_id.to_s)
558
+
559
+ # query parameters
560
+ query_params = opts[:query_params] || {}
561
+
562
+ # header parameters
563
+ header_params = opts[:header_params] || {}
564
+ # HTTP header 'Accept' (if needed)
565
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
566
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
567
+
568
+ # form parameters
569
+ form_params = opts[:form_params] || {}
570
+
571
+ # http body (model)
572
+ post_body = opts[:body]
573
+
574
+ return_type = opts[:return_type] || 'JobAds'
575
+
576
+ auth_names = opts[:auth_names] || ['key', 'oauth']
577
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
578
+ :header_params => header_params,
579
+ :query_params => query_params,
580
+ :form_params => form_params,
581
+ :body => post_body,
582
+ :auth_names => auth_names,
583
+ :return_type => return_type)
584
+
585
+ if @api_client.config.debugging
586
+ @api_client.config.logger.debug "API called: JobsApi#jobs_jobads_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
587
+ end
588
+ return data, status_code, headers
589
+ end
590
+ # Create a new job ad
591
+ # @param body job ad
592
+ # @param job_id job identifier
593
+ # @param [Hash] opts the optional parameters
594
+ # @return [JobAdItem]
595
+ def jobs_jobads_create(body, job_id, opts = {})
596
+ data, _status_code, _headers = jobs_jobads_create_with_http_info(body, job_id, opts)
597
+ data
598
+ end
599
+
600
+ # Create a new job ad
601
+ # @param body job ad
602
+ # @param job_id job identifier
603
+ # @param [Hash] opts the optional parameters
604
+ # @return [Array<(JobAdItem, Integer, Hash)>] JobAdItem data, response status code and response headers
605
+ def jobs_jobads_create_with_http_info(body, job_id, opts = {})
606
+ if @api_client.config.debugging
607
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_jobads_create ...'
608
+ end
609
+ # verify the required parameter 'body' is set
610
+ if @api_client.config.client_side_validation && body.nil?
611
+ fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.jobs_jobads_create"
612
+ end
613
+ # verify the required parameter 'job_id' is set
614
+ if @api_client.config.client_side_validation && job_id.nil?
615
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_jobads_create"
616
+ end
617
+ # resource path
618
+ local_var_path = '/jobs/{jobId}/jobads'.sub('{' + 'jobId' + '}', job_id.to_s)
619
+
620
+ # query parameters
621
+ query_params = opts[:query_params] || {}
622
+
623
+ # header parameters
624
+ header_params = opts[:header_params] || {}
625
+ # HTTP header 'Accept' (if needed)
626
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
627
+ # HTTP header 'Content-Type'
628
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
629
+
630
+ # form parameters
631
+ form_params = opts[:form_params] || {}
632
+
633
+ # http body (model)
634
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
635
+
636
+ return_type = opts[:return_type] || 'JobAdItem'
637
+
638
+ auth_names = opts[:auth_names] || ['key', 'oauth']
639
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
640
+ :header_params => header_params,
641
+ :query_params => query_params,
642
+ :form_params => form_params,
643
+ :body => post_body,
644
+ :auth_names => auth_names,
645
+ :return_type => return_type)
646
+
647
+ if @api_client.config.debugging
648
+ @api_client.config.logger.debug "API called: JobsApi#jobs_jobads_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
649
+ end
650
+ return data, status_code, headers
651
+ end
652
+ # Get a job ad
653
+ # @param job_id job identifier
654
+ # @param job_ad_id job ad identifier
655
+ # @param [Hash] opts the optional parameters
656
+ # @option opts [String] :accept_language language of returned content (default to en)
657
+ # @return [JobAdItem]
658
+ def jobs_jobads_get(job_id, job_ad_id, opts = {})
659
+ data, _status_code, _headers = jobs_jobads_get_with_http_info(job_id, job_ad_id, opts)
660
+ data
661
+ end
662
+
663
+ # Get a job ad
664
+ # @param job_id job identifier
665
+ # @param job_ad_id job ad identifier
666
+ # @param [Hash] opts the optional parameters
667
+ # @option opts [String] :accept_language language of returned content
668
+ # @return [Array<(JobAdItem, Integer, Hash)>] JobAdItem data, response status code and response headers
669
+ def jobs_jobads_get_with_http_info(job_id, job_ad_id, opts = {})
670
+ if @api_client.config.debugging
671
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_jobads_get ...'
672
+ end
673
+ # verify the required parameter 'job_id' is set
674
+ if @api_client.config.client_side_validation && job_id.nil?
675
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_jobads_get"
676
+ end
677
+ # verify the required parameter 'job_ad_id' is set
678
+ if @api_client.config.client_side_validation && job_ad_id.nil?
679
+ fail ArgumentError, "Missing the required parameter 'job_ad_id' when calling JobsApi.jobs_jobads_get"
680
+ end
681
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
682
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
683
+ end
684
+ # resource path
685
+ local_var_path = '/jobs/{jobId}/jobads/{jobAdId}'.sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'jobAdId' + '}', job_ad_id.to_s)
686
+
687
+ # query parameters
688
+ query_params = opts[:query_params] || {}
689
+
690
+ # header parameters
691
+ header_params = opts[:header_params] || {}
692
+ # HTTP header 'Accept' (if needed)
693
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
694
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
695
+
696
+ # form parameters
697
+ form_params = opts[:form_params] || {}
698
+
699
+ # http body (model)
700
+ post_body = opts[:body]
701
+
702
+ return_type = opts[:return_type] || 'JobAdItem'
703
+
704
+ auth_names = opts[:auth_names] || ['key', 'oauth']
705
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
706
+ :header_params => header_params,
707
+ :query_params => query_params,
708
+ :form_params => form_params,
709
+ :body => post_body,
710
+ :auth_names => auth_names,
711
+ :return_type => return_type)
712
+
713
+ if @api_client.config.debugging
714
+ @api_client.config.logger.debug "API called: JobsApi#jobs_jobads_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
715
+ end
716
+ return data, status_code, headers
717
+ end
718
+ # List publications for a job ad
719
+ # List publications for a job ad
720
+ # @param job_id job identifier
721
+ # @param job_ad_id job ad identifier
722
+ # @param [Hash] opts the optional parameters
723
+ # @option opts [String] :accept_language language of returned content (default to en)
724
+ # @option opts [BOOLEAN] :active_only publication status filter; when omitted, defaults to &#x27;true&#x27; (only active publications are returned); &#x27;false&#x27; returns active and inactive publications (default to true)
725
+ # @return [PublicationList]
726
+ def jobs_jobads_postings_all(job_id, job_ad_id, opts = {})
727
+ data, _status_code, _headers = jobs_jobads_postings_all_with_http_info(job_id, job_ad_id, opts)
728
+ data
729
+ end
730
+
731
+ # List publications for a job ad
732
+ # List publications for a job ad
733
+ # @param job_id job identifier
734
+ # @param job_ad_id job ad identifier
735
+ # @param [Hash] opts the optional parameters
736
+ # @option opts [String] :accept_language language of returned content
737
+ # @option opts [BOOLEAN] :active_only publication status filter; when omitted, defaults to &#x27;true&#x27; (only active publications are returned); &#x27;false&#x27; returns active and inactive publications
738
+ # @return [Array<(PublicationList, Integer, Hash)>] PublicationList data, response status code and response headers
739
+ def jobs_jobads_postings_all_with_http_info(job_id, job_ad_id, opts = {})
740
+ if @api_client.config.debugging
741
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_jobads_postings_all ...'
742
+ end
743
+ # verify the required parameter 'job_id' is set
744
+ if @api_client.config.client_side_validation && job_id.nil?
745
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_jobads_postings_all"
746
+ end
747
+ # verify the required parameter 'job_ad_id' is set
748
+ if @api_client.config.client_side_validation && job_ad_id.nil?
749
+ fail ArgumentError, "Missing the required parameter 'job_ad_id' when calling JobsApi.jobs_jobads_postings_all"
750
+ end
751
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
752
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
753
+ end
754
+ # resource path
755
+ local_var_path = '/jobs/{jobId}/jobads/{jobAdId}/postings'.sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'jobAdId' + '}', job_ad_id.to_s)
756
+
757
+ # query parameters
758
+ query_params = opts[:query_params] || {}
759
+ query_params[:'activeOnly'] = opts[:'active_only'] if !opts[:'active_only'].nil?
760
+
761
+ # header parameters
762
+ header_params = opts[:header_params] || {}
763
+ # HTTP header 'Accept' (if needed)
764
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
765
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
766
+
767
+ # form parameters
768
+ form_params = opts[:form_params] || {}
769
+
770
+ # http body (model)
771
+ post_body = opts[:body]
772
+
773
+ return_type = opts[:return_type] || 'PublicationList'
774
+
775
+ auth_names = opts[:auth_names] || ['key', 'oauth']
776
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
777
+ :header_params => header_params,
778
+ :query_params => query_params,
779
+ :form_params => form_params,
780
+ :body => post_body,
781
+ :auth_names => auth_names,
782
+ :return_type => return_type)
783
+
784
+ if @api_client.config.debugging
785
+ @api_client.config.logger.debug "API called: JobsApi#jobs_jobads_postings_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
786
+ end
787
+ return data, status_code, headers
788
+ end
789
+ # Publishes a job ad
790
+ # Publishes a job ad to internal sources (Career Pages, Job Widget, Facebook App, WordPress Plugin, Posting API) and optionally to all free job aggregators. By default it's set to publish to job aggregators It reflects a Publish action available in the SmartRecruiters UI. Note: Internal sources depend on a company's payment plan.
791
+ # @param job_id job identifier
792
+ # @param job_ad_id job ad identifier
793
+ # @param [Hash] opts the optional parameters
794
+ # @option opts [Publication] :body Publication object
795
+ # @return [JobAdPublicationScheduled]
796
+ def jobs_jobads_postings_create(job_id, job_ad_id, opts = {})
797
+ data, _status_code, _headers = jobs_jobads_postings_create_with_http_info(job_id, job_ad_id, opts)
798
+ data
799
+ end
800
+
801
+ # Publishes a job ad
802
+ # Publishes a job ad to internal sources (Career Pages, Job Widget, Facebook App, WordPress Plugin, Posting API) and optionally to all free job aggregators. By default it&#x27;s set to publish to job aggregators It reflects a Publish action available in the SmartRecruiters UI. Note: Internal sources depend on a company&#x27;s payment plan.
803
+ # @param job_id job identifier
804
+ # @param job_ad_id job ad identifier
805
+ # @param [Hash] opts the optional parameters
806
+ # @option opts [Publication] :body Publication object
807
+ # @return [Array<(JobAdPublicationScheduled, Integer, Hash)>] JobAdPublicationScheduled data, response status code and response headers
808
+ def jobs_jobads_postings_create_with_http_info(job_id, job_ad_id, opts = {})
809
+ if @api_client.config.debugging
810
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_jobads_postings_create ...'
811
+ end
812
+ # verify the required parameter 'job_id' is set
813
+ if @api_client.config.client_side_validation && job_id.nil?
814
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_jobads_postings_create"
815
+ end
816
+ # verify the required parameter 'job_ad_id' is set
817
+ if @api_client.config.client_side_validation && job_ad_id.nil?
818
+ fail ArgumentError, "Missing the required parameter 'job_ad_id' when calling JobsApi.jobs_jobads_postings_create"
819
+ end
820
+ # resource path
821
+ local_var_path = '/jobs/{jobId}/jobads/{jobAdId}/postings'.sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'jobAdId' + '}', job_ad_id.to_s)
822
+
823
+ # query parameters
824
+ query_params = opts[:query_params] || {}
825
+
826
+ # header parameters
827
+ header_params = opts[:header_params] || {}
828
+ # HTTP header 'Accept' (if needed)
829
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
830
+ # HTTP header 'Content-Type'
831
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
832
+
833
+ # form parameters
834
+ form_params = opts[:form_params] || {}
835
+
836
+ # http body (model)
837
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
838
+
839
+ return_type = opts[:return_type] || 'JobAdPublicationScheduled'
840
+
841
+ auth_names = opts[:auth_names] || ['key', 'oauth']
842
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
843
+ :header_params => header_params,
844
+ :query_params => query_params,
845
+ :form_params => form_params,
846
+ :body => post_body,
847
+ :auth_names => auth_names,
848
+ :return_type => return_type)
849
+
850
+ if @api_client.config.debugging
851
+ @api_client.config.logger.debug "API called: JobsApi#jobs_jobads_postings_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
852
+ end
853
+ return data, status_code, headers
854
+ end
855
+ # Unpublish a job ad
856
+ # Unpublishes a job ad from all sources. **Unpublishing a default job ad will unpublish all other job ads within that job.**
857
+ # @param job_id job identifier
858
+ # @param job_ad_id job ad identifier
859
+ # @param [Hash] opts the optional parameters
860
+ # @return [JobAdUnpublishScheduled]
861
+ def jobs_jobads_postings_unpublish(job_id, job_ad_id, opts = {})
862
+ data, _status_code, _headers = jobs_jobads_postings_unpublish_with_http_info(job_id, job_ad_id, opts)
863
+ data
864
+ end
865
+
866
+ # Unpublish a job ad
867
+ # Unpublishes a job ad from all sources. **Unpublishing a default job ad will unpublish all other job ads within that job.**
868
+ # @param job_id job identifier
869
+ # @param job_ad_id job ad identifier
870
+ # @param [Hash] opts the optional parameters
871
+ # @return [Array<(JobAdUnpublishScheduled, Integer, Hash)>] JobAdUnpublishScheduled data, response status code and response headers
872
+ def jobs_jobads_postings_unpublish_with_http_info(job_id, job_ad_id, opts = {})
873
+ if @api_client.config.debugging
874
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_jobads_postings_unpublish ...'
875
+ end
876
+ # verify the required parameter 'job_id' is set
877
+ if @api_client.config.client_side_validation && job_id.nil?
878
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_jobads_postings_unpublish"
879
+ end
880
+ # verify the required parameter 'job_ad_id' is set
881
+ if @api_client.config.client_side_validation && job_ad_id.nil?
882
+ fail ArgumentError, "Missing the required parameter 'job_ad_id' when calling JobsApi.jobs_jobads_postings_unpublish"
883
+ end
884
+ # resource path
885
+ local_var_path = '/jobs/{jobId}/jobads/{jobAdId}/postings'.sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'jobAdId' + '}', job_ad_id.to_s)
886
+
887
+ # query parameters
888
+ query_params = opts[:query_params] || {}
889
+
890
+ # header parameters
891
+ header_params = opts[:header_params] || {}
892
+ # HTTP header 'Accept' (if needed)
893
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
894
+
895
+ # form parameters
896
+ form_params = opts[:form_params] || {}
897
+
898
+ # http body (model)
899
+ post_body = opts[:body]
900
+
901
+ return_type = opts[:return_type] || 'JobAdUnpublishScheduled'
902
+
903
+ auth_names = opts[:auth_names] || ['key', 'oauth']
904
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
905
+ :header_params => header_params,
906
+ :query_params => query_params,
907
+ :form_params => form_params,
908
+ :body => post_body,
909
+ :auth_names => auth_names,
910
+ :return_type => return_type)
911
+
912
+ if @api_client.config.debugging
913
+ @api_client.config.logger.debug "API called: JobsApi#jobs_jobads_postings_unpublish\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
914
+ end
915
+ return data, status_code, headers
916
+ end
917
+ # Update a job ad
918
+ # Enables you to update an existing job ad. NOTE: In order for a job ad changes to be reflected on internal sources (Career Sites, Job Widgets etc.) and Job Aggregators, you need to Publish the job ad after making an update.
919
+ # @param body job ad
920
+ # @param job_id job identifier
921
+ # @param job_ad_id job ad identifier
922
+ # @param [Hash] opts the optional parameters
923
+ # @return [JobAdItem]
924
+ def jobs_jobads_update(body, job_id, job_ad_id, opts = {})
925
+ data, _status_code, _headers = jobs_jobads_update_with_http_info(body, job_id, job_ad_id, opts)
926
+ data
927
+ end
928
+
929
+ # Update a job ad
930
+ # Enables you to update an existing job ad. NOTE: In order for a job ad changes to be reflected on internal sources (Career Sites, Job Widgets etc.) and Job Aggregators, you need to Publish the job ad after making an update.
931
+ # @param body job ad
932
+ # @param job_id job identifier
933
+ # @param job_ad_id job ad identifier
934
+ # @param [Hash] opts the optional parameters
935
+ # @return [Array<(JobAdItem, Integer, Hash)>] JobAdItem data, response status code and response headers
936
+ def jobs_jobads_update_with_http_info(body, job_id, job_ad_id, opts = {})
937
+ if @api_client.config.debugging
938
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_jobads_update ...'
939
+ end
940
+ # verify the required parameter 'body' is set
941
+ if @api_client.config.client_side_validation && body.nil?
942
+ fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.jobs_jobads_update"
943
+ end
944
+ # verify the required parameter 'job_id' is set
945
+ if @api_client.config.client_side_validation && job_id.nil?
946
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_jobads_update"
947
+ end
948
+ # verify the required parameter 'job_ad_id' is set
949
+ if @api_client.config.client_side_validation && job_ad_id.nil?
950
+ fail ArgumentError, "Missing the required parameter 'job_ad_id' when calling JobsApi.jobs_jobads_update"
951
+ end
952
+ # resource path
953
+ local_var_path = '/jobs/{jobId}/jobads/{jobAdId}'.sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'jobAdId' + '}', job_ad_id.to_s)
954
+
955
+ # query parameters
956
+ query_params = opts[:query_params] || {}
957
+
958
+ # header parameters
959
+ header_params = opts[:header_params] || {}
960
+ # HTTP header 'Accept' (if needed)
961
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
962
+ # HTTP header 'Content-Type'
963
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
964
+
965
+ # form parameters
966
+ form_params = opts[:form_params] || {}
967
+
968
+ # http body (model)
969
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
970
+
971
+ return_type = opts[:return_type] || 'JobAdItem'
972
+
973
+ auth_names = opts[:auth_names] || ['key', 'oauth']
974
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
975
+ :header_params => header_params,
976
+ :query_params => query_params,
977
+ :form_params => form_params,
978
+ :body => post_body,
979
+ :auth_names => auth_names,
980
+ :return_type => return_type)
981
+
982
+ if @api_client.config.debugging
983
+ @api_client.config.logger.debug "API called: JobsApi#jobs_jobads_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
984
+ end
985
+ return data, status_code, headers
986
+ end
987
+ # Get note of a job.
988
+ # @param job_id job identifier
989
+ # @param [Hash] opts the optional parameters
990
+ # @option opts [String] :accept_language language of returned content (default to en)
991
+ # @return [JobNote]
992
+ def jobs_notes_get(job_id, opts = {})
993
+ data, _status_code, _headers = jobs_notes_get_with_http_info(job_id, opts)
994
+ data
995
+ end
996
+
997
+ # Get note of a job.
998
+ # @param job_id job identifier
999
+ # @param [Hash] opts the optional parameters
1000
+ # @option opts [String] :accept_language language of returned content
1001
+ # @return [Array<(JobNote, Integer, Hash)>] JobNote data, response status code and response headers
1002
+ def jobs_notes_get_with_http_info(job_id, opts = {})
1003
+ if @api_client.config.debugging
1004
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_notes_get ...'
1005
+ end
1006
+ # verify the required parameter 'job_id' is set
1007
+ if @api_client.config.client_side_validation && job_id.nil?
1008
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_notes_get"
1009
+ end
1010
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
1011
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
1012
+ end
1013
+ # resource path
1014
+ local_var_path = '/jobs/{jobId}/note'.sub('{' + 'jobId' + '}', job_id.to_s)
1015
+
1016
+ # query parameters
1017
+ query_params = opts[:query_params] || {}
1018
+
1019
+ # header parameters
1020
+ header_params = opts[:header_params] || {}
1021
+ # HTTP header 'Accept' (if needed)
1022
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1023
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
1024
+
1025
+ # form parameters
1026
+ form_params = opts[:form_params] || {}
1027
+
1028
+ # http body (model)
1029
+ post_body = opts[:body]
1030
+
1031
+ return_type = opts[:return_type] || 'JobNote'
1032
+
1033
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1034
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1035
+ :header_params => header_params,
1036
+ :query_params => query_params,
1037
+ :form_params => form_params,
1038
+ :body => post_body,
1039
+ :auth_names => auth_names,
1040
+ :return_type => return_type)
1041
+
1042
+ if @api_client.config.debugging
1043
+ @api_client.config.logger.debug "API called: JobsApi#jobs_notes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1044
+ end
1045
+ return data, status_code, headers
1046
+ end
1047
+ # Update note of a job.
1048
+ # Update note of a job.
1049
+ # @param body
1050
+ # @param job_id job identifier
1051
+ # @param [Hash] opts the optional parameters
1052
+ # @return [JobNote]
1053
+ def jobs_notes_update(body, job_id, opts = {})
1054
+ data, _status_code, _headers = jobs_notes_update_with_http_info(body, job_id, opts)
1055
+ data
1056
+ end
1057
+
1058
+ # Update note of a job.
1059
+ # Update note of a job.
1060
+ # @param body
1061
+ # @param job_id job identifier
1062
+ # @param [Hash] opts the optional parameters
1063
+ # @return [Array<(JobNote, Integer, Hash)>] JobNote data, response status code and response headers
1064
+ def jobs_notes_update_with_http_info(body, job_id, opts = {})
1065
+ if @api_client.config.debugging
1066
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_notes_update ...'
1067
+ end
1068
+ # verify the required parameter 'body' is set
1069
+ if @api_client.config.client_side_validation && body.nil?
1070
+ fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.jobs_notes_update"
1071
+ end
1072
+ # verify the required parameter 'job_id' is set
1073
+ if @api_client.config.client_side_validation && job_id.nil?
1074
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_notes_update"
1075
+ end
1076
+ # resource path
1077
+ local_var_path = '/jobs/{jobId}/note'.sub('{' + 'jobId' + '}', job_id.to_s)
1078
+
1079
+ # query parameters
1080
+ query_params = opts[:query_params] || {}
1081
+
1082
+ # header parameters
1083
+ header_params = opts[:header_params] || {}
1084
+ # HTTP header 'Accept' (if needed)
1085
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1086
+ # HTTP header 'Content-Type'
1087
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1088
+
1089
+ # form parameters
1090
+ form_params = opts[:form_params] || {}
1091
+
1092
+ # http body (model)
1093
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
1094
+
1095
+ return_type = opts[:return_type] || 'JobNote'
1096
+
1097
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1098
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1099
+ :header_params => header_params,
1100
+ :query_params => query_params,
1101
+ :form_params => form_params,
1102
+ :body => post_body,
1103
+ :auth_names => auth_names,
1104
+ :return_type => return_type)
1105
+
1106
+ if @api_client.config.debugging
1107
+ @api_client.config.logger.debug "API called: JobsApi#jobs_notes_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1108
+ end
1109
+ return data, status_code, headers
1110
+ end
1111
+ # Update a job
1112
+ # Update a job. All attributes that are used when creating a job can be used. Ignores all nonexistent job properties and job properties values.
1113
+ # @param job_id job identifier
1114
+ # @param [Hash] opts the optional parameters
1115
+ # @option opts [Array<Object>] :body patch request
1116
+ # @return [JobDetails]
1117
+ def jobs_patch(job_id, opts = {})
1118
+ data, _status_code, _headers = jobs_patch_with_http_info(job_id, opts)
1119
+ data
1120
+ end
1121
+
1122
+ # Update a job
1123
+ # Update a job. All attributes that are used when creating a job can be used. Ignores all nonexistent job properties and job properties values.
1124
+ # @param job_id job identifier
1125
+ # @param [Hash] opts the optional parameters
1126
+ # @option opts [Array<Object>] :body patch request
1127
+ # @return [Array<(JobDetails, Integer, Hash)>] JobDetails data, response status code and response headers
1128
+ def jobs_patch_with_http_info(job_id, opts = {})
1129
+ if @api_client.config.debugging
1130
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_patch ...'
1131
+ end
1132
+ # verify the required parameter 'job_id' is set
1133
+ if @api_client.config.client_side_validation && job_id.nil?
1134
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_patch"
1135
+ end
1136
+ # resource path
1137
+ local_var_path = '/jobs/{jobId}'.sub('{' + 'jobId' + '}', job_id.to_s)
1138
+
1139
+ # query parameters
1140
+ query_params = opts[:query_params] || {}
1141
+
1142
+ # header parameters
1143
+ header_params = opts[:header_params] || {}
1144
+ # HTTP header 'Accept' (if needed)
1145
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1146
+ # HTTP header 'Content-Type'
1147
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json'])
1148
+
1149
+ # form parameters
1150
+ form_params = opts[:form_params] || {}
1151
+
1152
+ # http body (model)
1153
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
1154
+
1155
+ return_type = opts[:return_type] || 'JobDetails'
1156
+
1157
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1158
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1159
+ :header_params => header_params,
1160
+ :query_params => query_params,
1161
+ :form_params => form_params,
1162
+ :body => post_body,
1163
+ :auth_names => auth_names,
1164
+ :return_type => return_type)
1165
+
1166
+ if @api_client.config.debugging
1167
+ @api_client.config.logger.debug "API called: JobsApi#jobs_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1168
+ end
1169
+ return data, status_code, headers
1170
+ end
1171
+ # Positions for a job
1172
+ # @param job_id job identifier
1173
+ # @param [Hash] opts the optional parameters
1174
+ # @option opts [String] :accept_language language of returned content (default to en)
1175
+ # @return [JobPositions]
1176
+ def jobs_positions_all(job_id, opts = {})
1177
+ data, _status_code, _headers = jobs_positions_all_with_http_info(job_id, opts)
1178
+ data
1179
+ end
1180
+
1181
+ # Positions for a job
1182
+ # @param job_id job identifier
1183
+ # @param [Hash] opts the optional parameters
1184
+ # @option opts [String] :accept_language language of returned content
1185
+ # @return [Array<(JobPositions, Integer, Hash)>] JobPositions data, response status code and response headers
1186
+ def jobs_positions_all_with_http_info(job_id, opts = {})
1187
+ if @api_client.config.debugging
1188
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_positions_all ...'
1189
+ end
1190
+ # verify the required parameter 'job_id' is set
1191
+ if @api_client.config.client_side_validation && job_id.nil?
1192
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_positions_all"
1193
+ end
1194
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
1195
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
1196
+ end
1197
+ # resource path
1198
+ local_var_path = '/jobs/{jobId}/positions'.sub('{' + 'jobId' + '}', job_id.to_s)
1199
+
1200
+ # query parameters
1201
+ query_params = opts[:query_params] || {}
1202
+
1203
+ # header parameters
1204
+ header_params = opts[:header_params] || {}
1205
+ # HTTP header 'Accept' (if needed)
1206
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1207
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
1208
+
1209
+ # form parameters
1210
+ form_params = opts[:form_params] || {}
1211
+
1212
+ # http body (model)
1213
+ post_body = opts[:body]
1214
+
1215
+ return_type = opts[:return_type] || 'JobPositions'
1216
+
1217
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1218
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1219
+ :header_params => header_params,
1220
+ :query_params => query_params,
1221
+ :form_params => form_params,
1222
+ :body => post_body,
1223
+ :auth_names => auth_names,
1224
+ :return_type => return_type)
1225
+
1226
+ if @api_client.config.debugging
1227
+ @api_client.config.logger.debug "API called: JobsApi#jobs_positions_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1228
+ end
1229
+ return data, status_code, headers
1230
+ end
1231
+ # Create a new position for a job
1232
+ # @param body Position body object
1233
+ # @param job_id job identifier
1234
+ # @param [Hash] opts the optional parameters
1235
+ # @return [JobPosition]
1236
+ def jobs_positions_create(body, job_id, opts = {})
1237
+ data, _status_code, _headers = jobs_positions_create_with_http_info(body, job_id, opts)
1238
+ data
1239
+ end
1240
+
1241
+ # Create a new position for a job
1242
+ # @param body Position body object
1243
+ # @param job_id job identifier
1244
+ # @param [Hash] opts the optional parameters
1245
+ # @return [Array<(JobPosition, Integer, Hash)>] JobPosition data, response status code and response headers
1246
+ def jobs_positions_create_with_http_info(body, job_id, opts = {})
1247
+ if @api_client.config.debugging
1248
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_positions_create ...'
1249
+ end
1250
+ # verify the required parameter 'body' is set
1251
+ if @api_client.config.client_side_validation && body.nil?
1252
+ fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.jobs_positions_create"
1253
+ end
1254
+ # verify the required parameter 'job_id' is set
1255
+ if @api_client.config.client_side_validation && job_id.nil?
1256
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_positions_create"
1257
+ end
1258
+ # resource path
1259
+ local_var_path = '/jobs/{jobId}/positions'.sub('{' + 'jobId' + '}', job_id.to_s)
1260
+
1261
+ # query parameters
1262
+ query_params = opts[:query_params] || {}
1263
+
1264
+ # header parameters
1265
+ header_params = opts[:header_params] || {}
1266
+ # HTTP header 'Accept' (if needed)
1267
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1268
+ # HTTP header 'Content-Type'
1269
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1270
+
1271
+ # form parameters
1272
+ form_params = opts[:form_params] || {}
1273
+
1274
+ # http body (model)
1275
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
1276
+
1277
+ return_type = opts[:return_type] || 'JobPosition'
1278
+
1279
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1280
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1281
+ :header_params => header_params,
1282
+ :query_params => query_params,
1283
+ :form_params => form_params,
1284
+ :body => post_body,
1285
+ :auth_names => auth_names,
1286
+ :return_type => return_type)
1287
+
1288
+ if @api_client.config.debugging
1289
+ @api_client.config.logger.debug "API called: JobsApi#jobs_positions_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1290
+ end
1291
+ return data, status_code, headers
1292
+ end
1293
+ # Get a single position
1294
+ # @param job_id job identifier
1295
+ # @param position_id position identifier
1296
+ # @param [Hash] opts the optional parameters
1297
+ # @option opts [String] :accept_language language of returned content (default to en)
1298
+ # @return [JobPosition]
1299
+ def jobs_positions_get(job_id, position_id, opts = {})
1300
+ data, _status_code, _headers = jobs_positions_get_with_http_info(job_id, position_id, opts)
1301
+ data
1302
+ end
1303
+
1304
+ # Get a single position
1305
+ # @param job_id job identifier
1306
+ # @param position_id position identifier
1307
+ # @param [Hash] opts the optional parameters
1308
+ # @option opts [String] :accept_language language of returned content
1309
+ # @return [Array<(JobPosition, Integer, Hash)>] JobPosition data, response status code and response headers
1310
+ def jobs_positions_get_with_http_info(job_id, position_id, opts = {})
1311
+ if @api_client.config.debugging
1312
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_positions_get ...'
1313
+ end
1314
+ # verify the required parameter 'job_id' is set
1315
+ if @api_client.config.client_side_validation && job_id.nil?
1316
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_positions_get"
1317
+ end
1318
+ # verify the required parameter 'position_id' is set
1319
+ if @api_client.config.client_side_validation && position_id.nil?
1320
+ fail ArgumentError, "Missing the required parameter 'position_id' when calling JobsApi.jobs_positions_get"
1321
+ end
1322
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
1323
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
1324
+ end
1325
+ # resource path
1326
+ local_var_path = '/jobs/{jobId}/positions/{positionId}'.sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'positionId' + '}', position_id.to_s)
1327
+
1328
+ # query parameters
1329
+ query_params = opts[:query_params] || {}
1330
+
1331
+ # header parameters
1332
+ header_params = opts[:header_params] || {}
1333
+ # HTTP header 'Accept' (if needed)
1334
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1335
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
1336
+
1337
+ # form parameters
1338
+ form_params = opts[:form_params] || {}
1339
+
1340
+ # http body (model)
1341
+ post_body = opts[:body]
1342
+
1343
+ return_type = opts[:return_type] || 'JobPosition'
1344
+
1345
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1346
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1347
+ :header_params => header_params,
1348
+ :query_params => query_params,
1349
+ :form_params => form_params,
1350
+ :body => post_body,
1351
+ :auth_names => auth_names,
1352
+ :return_type => return_type)
1353
+
1354
+ if @api_client.config.debugging
1355
+ @api_client.config.logger.debug "API called: JobsApi#jobs_positions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1356
+ end
1357
+ return data, status_code, headers
1358
+ end
1359
+ # Delete position
1360
+ # @param job_id job identifier
1361
+ # @param position_id position identifier
1362
+ # @param [Hash] opts the optional parameters
1363
+ # @return [nil]
1364
+ def jobs_positions_remove(job_id, position_id, opts = {})
1365
+ jobs_positions_remove_with_http_info(job_id, position_id, opts)
1366
+ nil
1367
+ end
1368
+
1369
+ # Delete position
1370
+ # @param job_id job identifier
1371
+ # @param position_id position identifier
1372
+ # @param [Hash] opts the optional parameters
1373
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1374
+ def jobs_positions_remove_with_http_info(job_id, position_id, opts = {})
1375
+ if @api_client.config.debugging
1376
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_positions_remove ...'
1377
+ end
1378
+ # verify the required parameter 'job_id' is set
1379
+ if @api_client.config.client_side_validation && job_id.nil?
1380
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_positions_remove"
1381
+ end
1382
+ # verify the required parameter 'position_id' is set
1383
+ if @api_client.config.client_side_validation && position_id.nil?
1384
+ fail ArgumentError, "Missing the required parameter 'position_id' when calling JobsApi.jobs_positions_remove"
1385
+ end
1386
+ # resource path
1387
+ local_var_path = '/jobs/{jobId}/positions/{positionId}'.sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'positionId' + '}', position_id.to_s)
1388
+
1389
+ # query parameters
1390
+ query_params = opts[:query_params] || {}
1391
+
1392
+ # header parameters
1393
+ header_params = opts[:header_params] || {}
1394
+ # HTTP header 'Accept' (if needed)
1395
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1396
+
1397
+ # form parameters
1398
+ form_params = opts[:form_params] || {}
1399
+
1400
+ # http body (model)
1401
+ post_body = opts[:body]
1402
+
1403
+ return_type = opts[:return_type]
1404
+
1405
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1406
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1407
+ :header_params => header_params,
1408
+ :query_params => query_params,
1409
+ :form_params => form_params,
1410
+ :body => post_body,
1411
+ :auth_names => auth_names,
1412
+ :return_type => return_type)
1413
+
1414
+ if @api_client.config.debugging
1415
+ @api_client.config.logger.debug "API called: JobsApi#jobs_positions_remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1416
+ end
1417
+ return data, status_code, headers
1418
+ end
1419
+ # Update position
1420
+ # @param body Position body object
1421
+ # @param job_id job identifier
1422
+ # @param position_id position identifier
1423
+ # @param [Hash] opts the optional parameters
1424
+ # @return [JobPosition]
1425
+ def jobs_positions_update(body, job_id, position_id, opts = {})
1426
+ data, _status_code, _headers = jobs_positions_update_with_http_info(body, job_id, position_id, opts)
1427
+ data
1428
+ end
1429
+
1430
+ # Update position
1431
+ # @param body Position body object
1432
+ # @param job_id job identifier
1433
+ # @param position_id position identifier
1434
+ # @param [Hash] opts the optional parameters
1435
+ # @return [Array<(JobPosition, Integer, Hash)>] JobPosition data, response status code and response headers
1436
+ def jobs_positions_update_with_http_info(body, job_id, position_id, opts = {})
1437
+ if @api_client.config.debugging
1438
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_positions_update ...'
1439
+ end
1440
+ # verify the required parameter 'body' is set
1441
+ if @api_client.config.client_side_validation && body.nil?
1442
+ fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.jobs_positions_update"
1443
+ end
1444
+ # verify the required parameter 'job_id' is set
1445
+ if @api_client.config.client_side_validation && job_id.nil?
1446
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_positions_update"
1447
+ end
1448
+ # verify the required parameter 'position_id' is set
1449
+ if @api_client.config.client_side_validation && position_id.nil?
1450
+ fail ArgumentError, "Missing the required parameter 'position_id' when calling JobsApi.jobs_positions_update"
1451
+ end
1452
+ # resource path
1453
+ local_var_path = '/jobs/{jobId}/positions/{positionId}'.sub('{' + 'jobId' + '}', job_id.to_s).sub('{' + 'positionId' + '}', position_id.to_s)
1454
+
1455
+ # query parameters
1456
+ query_params = opts[:query_params] || {}
1457
+
1458
+ # header parameters
1459
+ header_params = opts[:header_params] || {}
1460
+ # HTTP header 'Accept' (if needed)
1461
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1462
+ # HTTP header 'Content-Type'
1463
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1464
+
1465
+ # form parameters
1466
+ form_params = opts[:form_params] || {}
1467
+
1468
+ # http body (model)
1469
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
1470
+
1471
+ return_type = opts[:return_type] || 'JobPosition'
1472
+
1473
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1474
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1475
+ :header_params => header_params,
1476
+ :query_params => query_params,
1477
+ :form_params => form_params,
1478
+ :body => post_body,
1479
+ :auth_names => auth_names,
1480
+ :return_type => return_type)
1481
+
1482
+ if @api_client.config.debugging
1483
+ @api_client.config.logger.debug "API called: JobsApi#jobs_positions_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1484
+ end
1485
+ return data, status_code, headers
1486
+ end
1487
+ # Find and list publications for a job
1488
+ # Find and list publications for a job
1489
+ # @param job_id job identifier
1490
+ # @param [Hash] opts the optional parameters
1491
+ # @option opts [String] :accept_language language of returned content (default to en)
1492
+ # @option opts [BOOLEAN] :active_only publication status filter; defaults to &#x27;true&#x27; (only active publications are returned); &#x27;false&#x27; returns active and inactive publications (default to true)
1493
+ # @return [PublicationList]
1494
+ def jobs_publication_all(job_id, opts = {})
1495
+ data, _status_code, _headers = jobs_publication_all_with_http_info(job_id, opts)
1496
+ data
1497
+ end
1498
+
1499
+ # Find and list publications for a job
1500
+ # Find and list publications for a job
1501
+ # @param job_id job identifier
1502
+ # @param [Hash] opts the optional parameters
1503
+ # @option opts [String] :accept_language language of returned content
1504
+ # @option opts [BOOLEAN] :active_only publication status filter; defaults to &#x27;true&#x27; (only active publications are returned); &#x27;false&#x27; returns active and inactive publications
1505
+ # @return [Array<(PublicationList, Integer, Hash)>] PublicationList data, response status code and response headers
1506
+ def jobs_publication_all_with_http_info(job_id, opts = {})
1507
+ if @api_client.config.debugging
1508
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_publication_all ...'
1509
+ end
1510
+ # verify the required parameter 'job_id' is set
1511
+ if @api_client.config.client_side_validation && job_id.nil?
1512
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_publication_all"
1513
+ end
1514
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
1515
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
1516
+ end
1517
+ # resource path
1518
+ local_var_path = '/jobs/{jobId}/publication'.sub('{' + 'jobId' + '}', job_id.to_s)
1519
+
1520
+ # query parameters
1521
+ query_params = opts[:query_params] || {}
1522
+ query_params[:'activeOnly'] = opts[:'active_only'] if !opts[:'active_only'].nil?
1523
+
1524
+ # header parameters
1525
+ header_params = opts[:header_params] || {}
1526
+ # HTTP header 'Accept' (if needed)
1527
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1528
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
1529
+
1530
+ # form parameters
1531
+ form_params = opts[:form_params] || {}
1532
+
1533
+ # http body (model)
1534
+ post_body = opts[:body]
1535
+
1536
+ return_type = opts[:return_type] || 'PublicationList'
1537
+
1538
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1539
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1540
+ :header_params => header_params,
1541
+ :query_params => query_params,
1542
+ :form_params => form_params,
1543
+ :body => post_body,
1544
+ :auth_names => auth_names,
1545
+ :return_type => return_type)
1546
+
1547
+ if @api_client.config.debugging
1548
+ @api_client.config.logger.debug "API called: JobsApi#jobs_publication_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1549
+ end
1550
+ return data, status_code, headers
1551
+ end
1552
+ # Publishes a default job ad
1553
+ # Publishes default job ad to internal sources and to free job aggregators. It reflects a Publish action available in the SmartRecruiters UI. Note: Internal sources: Career Pages, Job Widget, Facebook App, WordPress Plugin, Posting API depend on a company's payment plan.
1554
+ # @param job_id job identifier
1555
+ # @param [Hash] opts the optional parameters
1556
+ # @option opts [Publication] :body Publication object
1557
+ # @return [nil]
1558
+ def jobs_publication_create(job_id, opts = {})
1559
+ jobs_publication_create_with_http_info(job_id, opts)
1560
+ nil
1561
+ end
1562
+
1563
+ # Publishes a default job ad
1564
+ # Publishes default job ad to internal sources and to free job aggregators. It reflects a Publish action available in the SmartRecruiters UI. Note: Internal sources: Career Pages, Job Widget, Facebook App, WordPress Plugin, Posting API depend on a company&#x27;s payment plan.
1565
+ # @param job_id job identifier
1566
+ # @param [Hash] opts the optional parameters
1567
+ # @option opts [Publication] :body Publication object
1568
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1569
+ def jobs_publication_create_with_http_info(job_id, opts = {})
1570
+ if @api_client.config.debugging
1571
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_publication_create ...'
1572
+ end
1573
+ # verify the required parameter 'job_id' is set
1574
+ if @api_client.config.client_side_validation && job_id.nil?
1575
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_publication_create"
1576
+ end
1577
+ # resource path
1578
+ local_var_path = '/jobs/{jobId}/publication'.sub('{' + 'jobId' + '}', job_id.to_s)
1579
+
1580
+ # query parameters
1581
+ query_params = opts[:query_params] || {}
1582
+
1583
+ # header parameters
1584
+ header_params = opts[:header_params] || {}
1585
+ # HTTP header 'Accept' (if needed)
1586
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1587
+ # HTTP header 'Content-Type'
1588
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1589
+
1590
+ # form parameters
1591
+ form_params = opts[:form_params] || {}
1592
+
1593
+ # http body (model)
1594
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
1595
+
1596
+ return_type = opts[:return_type]
1597
+
1598
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1599
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1600
+ :header_params => header_params,
1601
+ :query_params => query_params,
1602
+ :form_params => form_params,
1603
+ :body => post_body,
1604
+ :auth_names => auth_names,
1605
+ :return_type => return_type)
1606
+
1607
+ if @api_client.config.debugging
1608
+ @api_client.config.logger.debug "API called: JobsApi#jobs_publication_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1609
+ end
1610
+ return data, status_code, headers
1611
+ end
1612
+ # Unpublishes a job from all sources
1613
+ # Unpublishes a job from all sources
1614
+ # @param job_id job identifier
1615
+ # @param [Hash] opts the optional parameters
1616
+ # @return [nil]
1617
+ def jobs_publication_unpublish(job_id, opts = {})
1618
+ jobs_publication_unpublish_with_http_info(job_id, opts)
1619
+ nil
1620
+ end
1621
+
1622
+ # Unpublishes a job from all sources
1623
+ # Unpublishes a job from all sources
1624
+ # @param job_id job identifier
1625
+ # @param [Hash] opts the optional parameters
1626
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1627
+ def jobs_publication_unpublish_with_http_info(job_id, opts = {})
1628
+ if @api_client.config.debugging
1629
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_publication_unpublish ...'
1630
+ end
1631
+ # verify the required parameter 'job_id' is set
1632
+ if @api_client.config.client_side_validation && job_id.nil?
1633
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_publication_unpublish"
1634
+ end
1635
+ # resource path
1636
+ local_var_path = '/jobs/{jobId}/publication'.sub('{' + 'jobId' + '}', job_id.to_s)
1637
+
1638
+ # query parameters
1639
+ query_params = opts[:query_params] || {}
1640
+
1641
+ # header parameters
1642
+ header_params = opts[:header_params] || {}
1643
+ # HTTP header 'Accept' (if needed)
1644
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1645
+
1646
+ # form parameters
1647
+ form_params = opts[:form_params] || {}
1648
+
1649
+ # http body (model)
1650
+ post_body = opts[:body]
1651
+
1652
+ return_type = opts[:return_type]
1653
+
1654
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1655
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1656
+ :header_params => header_params,
1657
+ :query_params => query_params,
1658
+ :form_params => form_params,
1659
+ :body => post_body,
1660
+ :auth_names => auth_names,
1661
+ :return_type => return_type)
1662
+
1663
+ if @api_client.config.debugging
1664
+ @api_client.config.logger.debug "API called: JobsApi#jobs_publication_unpublish\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1665
+ end
1666
+ return data, status_code, headers
1667
+ end
1668
+ # Job status history
1669
+ # @param job_id job identifier
1670
+ # @param [Hash] opts the optional parameters
1671
+ # @option opts [String] :accept_language language of returned content (default to en)
1672
+ # @return [JobStatusHistory]
1673
+ def jobs_status_history_get(job_id, opts = {})
1674
+ data, _status_code, _headers = jobs_status_history_get_with_http_info(job_id, opts)
1675
+ data
1676
+ end
1677
+
1678
+ # Job status history
1679
+ # @param job_id job identifier
1680
+ # @param [Hash] opts the optional parameters
1681
+ # @option opts [String] :accept_language language of returned content
1682
+ # @return [Array<(JobStatusHistory, Integer, Hash)>] JobStatusHistory data, response status code and response headers
1683
+ def jobs_status_history_get_with_http_info(job_id, opts = {})
1684
+ if @api_client.config.debugging
1685
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_status_history_get ...'
1686
+ end
1687
+ # verify the required parameter 'job_id' is set
1688
+ if @api_client.config.client_side_validation && job_id.nil?
1689
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_status_history_get"
1690
+ end
1691
+ if @api_client.config.client_side_validation && opts[:'accept_language'] && !['af', 'am', 'ar', 'hy', 'az', 'eu', 'bn', 'bg', 'ca', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'en-GB', 'en', 'et', 'fi', 'fr', 'fr-CA', 'gl', 'ka', 'de', 'el', 'gu', 'iw', 'hi', 'hu', 'is', 'id', 'ga', 'it', 'ja', 'kn', 'km', 'ko', 'lo', 'lv', 'lt', 'ms', 'ml', 'mr', 'mn', 'ne', 'no', 'fa', 'fil', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sr', 'si', 'sk', 'sl', 'es', 'es-MX', 'sw', 'sv', 'ta', 'te', 'tr', 'uk', 'ur', 'vi', 'cy', 'zu'].include?(opts[:'accept_language'])
1692
+ fail ArgumentError, 'invalid value for "accept_language", must be one of af, am, ar, hy, az, eu, bn, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en-GB, en, et, fi, fr, fr-CA, gl, ka, de, el, gu, iw, hi, hu, is, id, ga, it, ja, kn, km, ko, lo, lv, lt, ms, ml, mr, mn, ne, no, fa, fil, pl, pt, pt-BR, pt-PT, ro, ru, sr, si, sk, sl, es, es-MX, sw, sv, ta, te, tr, uk, ur, vi, cy, zu'
1693
+ end
1694
+ # resource path
1695
+ local_var_path = '/jobs/{jobId}/status/history'.sub('{' + 'jobId' + '}', job_id.to_s)
1696
+
1697
+ # query parameters
1698
+ query_params = opts[:query_params] || {}
1699
+
1700
+ # header parameters
1701
+ header_params = opts[:header_params] || {}
1702
+ # HTTP header 'Accept' (if needed)
1703
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1704
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
1705
+
1706
+ # form parameters
1707
+ form_params = opts[:form_params] || {}
1708
+
1709
+ # http body (model)
1710
+ post_body = opts[:body]
1711
+
1712
+ return_type = opts[:return_type] || 'JobStatusHistory'
1713
+
1714
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1715
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1716
+ :header_params => header_params,
1717
+ :query_params => query_params,
1718
+ :form_params => form_params,
1719
+ :body => post_body,
1720
+ :auth_names => auth_names,
1721
+ :return_type => return_type)
1722
+
1723
+ if @api_client.config.debugging
1724
+ @api_client.config.logger.debug "API called: JobsApi#jobs_status_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1725
+ end
1726
+ return data, status_code, headers
1727
+ end
1728
+ # Updates job status
1729
+ # @param body
1730
+ # @param job_id job identifier
1731
+ # @param [Hash] opts the optional parameters
1732
+ # @return [JobStatusUpdate]
1733
+ def jobs_status_update(body, job_id, opts = {})
1734
+ data, _status_code, _headers = jobs_status_update_with_http_info(body, job_id, opts)
1735
+ data
1736
+ end
1737
+
1738
+ # Updates job status
1739
+ # @param body
1740
+ # @param job_id job identifier
1741
+ # @param [Hash] opts the optional parameters
1742
+ # @return [Array<(JobStatusUpdate, Integer, Hash)>] JobStatusUpdate data, response status code and response headers
1743
+ def jobs_status_update_with_http_info(body, job_id, opts = {})
1744
+ if @api_client.config.debugging
1745
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_status_update ...'
1746
+ end
1747
+ # verify the required parameter 'body' is set
1748
+ if @api_client.config.client_side_validation && body.nil?
1749
+ fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.jobs_status_update"
1750
+ end
1751
+ # verify the required parameter 'job_id' is set
1752
+ if @api_client.config.client_side_validation && job_id.nil?
1753
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_status_update"
1754
+ end
1755
+ # resource path
1756
+ local_var_path = '/jobs/{jobId}/status'.sub('{' + 'jobId' + '}', job_id.to_s)
1757
+
1758
+ # query parameters
1759
+ query_params = opts[:query_params] || {}
1760
+
1761
+ # header parameters
1762
+ header_params = opts[:header_params] || {}
1763
+ # HTTP header 'Accept' (if needed)
1764
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1765
+ # HTTP header 'Content-Type'
1766
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1767
+
1768
+ # form parameters
1769
+ form_params = opts[:form_params] || {}
1770
+
1771
+ # http body (model)
1772
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
1773
+
1774
+ return_type = opts[:return_type] || 'JobStatusUpdate'
1775
+
1776
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1777
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1778
+ :header_params => header_params,
1779
+ :query_params => query_params,
1780
+ :form_params => form_params,
1781
+ :body => post_body,
1782
+ :auth_names => auth_names,
1783
+ :return_type => return_type)
1784
+
1785
+ if @api_client.config.debugging
1786
+ @api_client.config.logger.debug "API called: JobsApi#jobs_status_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1787
+ end
1788
+ return data, status_code, headers
1789
+ end
1790
+ # Updates job
1791
+ # Enables you to update job and it's jobAd. This operation requires passing a job id within path and job's new state within body of the PUT request. Ignores all nonexistent job properties and job properties values. However jobAd and all it's properties need to be provided. All jobAd's properties will be removed if not provided. Returns an updated job with jobAd.
1792
+ # @param job_id job identifier
1793
+ # @param [Hash] opts the optional parameters
1794
+ # @option opts [JobInput] :body Job that needs to be updated
1795
+ # @return [JobDetails]
1796
+ def jobs_update(job_id, opts = {})
1797
+ data, _status_code, _headers = jobs_update_with_http_info(job_id, opts)
1798
+ data
1799
+ end
1800
+
1801
+ # Updates job
1802
+ # Enables you to update job and it&#x27;s jobAd. This operation requires passing a job id within path and job&#x27;s new state within body of the PUT request. Ignores all nonexistent job properties and job properties values. However jobAd and all it&#x27;s properties need to be provided. All jobAd&#x27;s properties will be removed if not provided. Returns an updated job with jobAd.
1803
+ # @param job_id job identifier
1804
+ # @param [Hash] opts the optional parameters
1805
+ # @option opts [JobInput] :body Job that needs to be updated
1806
+ # @return [Array<(JobDetails, Integer, Hash)>] JobDetails data, response status code and response headers
1807
+ def jobs_update_with_http_info(job_id, opts = {})
1808
+ if @api_client.config.debugging
1809
+ @api_client.config.logger.debug 'Calling API: JobsApi.jobs_update ...'
1810
+ end
1811
+ # verify the required parameter 'job_id' is set
1812
+ if @api_client.config.client_side_validation && job_id.nil?
1813
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.jobs_update"
1814
+ end
1815
+ # resource path
1816
+ local_var_path = '/jobs/{jobId}'.sub('{' + 'jobId' + '}', job_id.to_s)
1817
+
1818
+ # query parameters
1819
+ query_params = opts[:query_params] || {}
1820
+
1821
+ # header parameters
1822
+ header_params = opts[:header_params] || {}
1823
+ # HTTP header 'Accept' (if needed)
1824
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1825
+ # HTTP header 'Content-Type'
1826
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1827
+
1828
+ # form parameters
1829
+ form_params = opts[:form_params] || {}
1830
+
1831
+ # http body (model)
1832
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
1833
+
1834
+ return_type = opts[:return_type] || 'JobDetails'
1835
+
1836
+ auth_names = opts[:auth_names] || ['key', 'oauth']
1837
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1838
+ :header_params => header_params,
1839
+ :query_params => query_params,
1840
+ :form_params => form_params,
1841
+ :body => post_body,
1842
+ :auth_names => auth_names,
1843
+ :return_type => return_type)
1844
+
1845
+ if @api_client.config.debugging
1846
+ @api_client.config.logger.debug "API called: JobsApi#jobs_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1847
+ end
1848
+ return data, status_code, headers
1849
+ end
1850
+ end
1851
+ end