stackone_client 0.36.1 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stack_one/actions.rb +627 -0
- data/lib/stack_one/ats.rb +865 -251
- data/lib/stack_one/mcp.rb +852 -0
- data/lib/stack_one/models/operations/ats_get_application_stage_request.rb +49 -0
- data/lib/stack_one/models/operations/ats_get_application_stage_request.rbi +21 -0
- data/lib/stack_one/models/operations/ats_get_application_stage_response.rb +49 -0
- data/lib/stack_one/models/operations/ats_get_application_stage_response.rbi +21 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_queryparam_filter.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_queryparam_filter.rbi +13 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_request.rb +75 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_request.rbi +31 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_response.rb +61 -0
- data/lib/stack_one/models/operations/ats_list_application_stages_response.rbi +21 -0
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_filter.rb +1 -1
- data/lib/stack_one/models/operations/filter.rb +11 -71
- data/lib/stack_one/models/operations/filter.rbi +4 -34
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rb +6 -6
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rbi +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_filter.rb +6 -6
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_filter.rbi +2 -2
- data/lib/stack_one/models/operations/include.rb +2 -3
- data/lib/stack_one/models/operations/lms_list_assignments_queryparam_status.rb +1 -0
- data/lib/stack_one/models/operations/lms_list_user_assignments_queryparam_status.rb +1 -0
- data/lib/stack_one/models/operations/queryparam_filter.rb +20 -8
- data/lib/stack_one/models/operations/queryparam_filter.rbi +8 -2
- data/lib/stack_one/models/operations/queryparam_include.rb +1 -0
- data/lib/stack_one/models/operations/stackone_get_log_request.rb +2 -2
- data/lib/stack_one/models/operations/stackone_list_actions_meta_request.rb +55 -0
- data/lib/stack_one/models/operations/stackone_list_actions_meta_request.rbi +23 -0
- data/lib/stack_one/models/operations/stackone_list_actions_meta_response.rb +61 -0
- data/lib/stack_one/models/operations/stackone_list_actions_meta_response.rbi +21 -0
- data/lib/stack_one/models/operations/stackone_list_logs_queryparam_include.rb +21 -0
- data/lib/stack_one/models/operations/stackone_list_logs_queryparam_include.rbi +11 -0
- data/lib/stack_one/models/operations/stackone_list_logs_request.rb +3 -3
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rb +89 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rbi +41 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_request.rb +2 -2
- data/lib/stack_one/models/operations/stackone_mcp_delete_request.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_response.rb +45 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_response.rbi +19 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_security.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_delete_security.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_request.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_request.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_response.rb +45 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_response.rbi +19 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_security.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_security.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_request.rb +41 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_request.rbi +17 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_response.rb +45 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_response.rbi +19 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_security.rb +37 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_security.rbi +15 -0
- data/lib/stack_one/models/operations/stackone_rpc_action_response.rb +49 -0
- data/lib/stack_one/models/operations/stackone_rpc_action_response.rbi +21 -0
- data/lib/stack_one/models/operations.rb +19 -0
- data/lib/stack_one/models/shared/actionmetaitem.rb +53 -0
- data/lib/stack_one/models/shared/actionmetaitem.rbi +23 -0
- data/lib/stack_one/models/shared/actionsmeta.rb +57 -0
- data/lib/stack_one/models/shared/actionsmeta.rbi +25 -0
- data/lib/stack_one/models/shared/actionsmetapaginated.rb +37 -0
- data/lib/stack_one/models/shared/actionsmetapaginated.rbi +15 -0
- data/lib/stack_one/models/shared/actionsrpcrequestdto.rb +37 -0
- data/lib/stack_one/models/shared/actionsrpcrequestdto.rbi +15 -0
- data/lib/stack_one/models/shared/actionsrpcresponse.rb +37 -0
- data/lib/stack_one/models/shared/actionsrpcresponse.rbi +15 -0
- data/lib/stack_one/models/shared/actionsrpcresponse_2.rb +28 -0
- data/lib/stack_one/models/shared/actionsrpcresponse_2.rbi +11 -0
- data/lib/stack_one/models/shared/actionsrpcresponse_data.rb +28 -0
- data/lib/stack_one/models/shared/actionsrpcresponse_data.rbi +11 -0
- data/lib/stack_one/models/shared/atsdocumentapimodel.rb +2 -6
- data/lib/stack_one/models/shared/atsdocumentapimodel.rbi +0 -2
- data/lib/stack_one/models/shared/authenticationmetaitem.rb +41 -0
- data/lib/stack_one/models/shared/authenticationmetaitem.rbi +17 -0
- data/lib/stack_one/models/shared/contract_type.rb +2 -2
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +10 -2
- data/lib/stack_one/models/shared/createemploymentapimodel.rbi +4 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_4.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_value.rb +37 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_schemas_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_type.rb +45 -0
- data/lib/stack_one/models/shared/createemploymentapimodel_type.rbi +19 -0
- data/lib/stack_one/models/shared/document.rb +2 -6
- data/lib/stack_one/models/shared/document.rbi +0 -2
- data/lib/stack_one/models/shared/employment.rb +2 -2
- data/lib/stack_one/models/shared/employment_schemas_contract_type.rb +20 -12
- data/lib/stack_one/models/shared/employment_schemas_contract_type.rbi +8 -4
- data/lib/stack_one/models/shared/employment_schemas_contract_type_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/employment_schemas_contract_type_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/file.rb +2 -6
- data/lib/stack_one/models/shared/file.rbi +0 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_contract_type.rb +45 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_contract_type.rbi +19 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rb +10 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rbi +4 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_national_identity_number.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_value.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_type.rb +20 -12
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_type.rbi +8 -4
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +10 -2
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rbi +4 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_contract_type.rb +45 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_contract_type.rbi +19 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_value.rb +37 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_schemas_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_type.rb +45 -0
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto_type.rbi +19 -0
- data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +2 -6
- data/lib/stack_one/models/shared/hrisdocumentapimodel.rbi +0 -2
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_contract_type.rb +45 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_contract_type.rbi +19 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb +10 -2
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rbi +4 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_national_identity_number.rb +2 -2
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_value.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_type.rb +20 -12
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_type.rbi +8 -4
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto.rb +10 -2
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto.rbi +4 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_contract_type.rb +45 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_contract_type.rbi +19 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_value.rb +24 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_contract_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type.rbi +15 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_value.rb +37 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_schemas_type_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_type.rb +45 -0
- data/lib/stack_one/models/shared/hrisupdateemploymentrequestdto_type.rbi +19 -0
- data/lib/stack_one/models/shared/iamuser_avatar.rb +2 -6
- data/lib/stack_one/models/shared/iamuser_avatar.rbi +0 -2
- data/lib/stack_one/models/shared/id.rb +28 -0
- data/lib/stack_one/models/shared/id.rbi +11 -0
- data/lib/stack_one/models/shared/input.rb +41 -0
- data/lib/stack_one/models/shared/input.rbi +17 -0
- data/lib/stack_one/models/shared/jobpostingcompensation.rb +12 -12
- data/lib/stack_one/models/shared/jobpostingcompensation.rbi +6 -6
- data/lib/stack_one/models/shared/jsonrpcmessagedto.rb +45 -0
- data/lib/stack_one/models/shared/jsonrpcmessagedto.rbi +19 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_value.rb +5 -0
- data/lib/stack_one/models/shared/one.rb +28 -0
- data/lib/stack_one/models/shared/one.rbi +11 -0
- data/lib/stack_one/models/shared/params.rb +28 -0
- data/lib/stack_one/models/shared/params.rbi +11 -0
- data/lib/stack_one/models/shared/proxyrequestbody.rb +1 -1
- data/lib/stack_one/models/shared/schemebasic.rb +37 -0
- data/lib/stack_one/models/shared/schemebasic.rbi +15 -0
- data/lib/stack_one/models/shared/security.rb +4 -4
- data/lib/stack_one/models/shared/timeoff.rb +10 -10
- data/lib/stack_one/models/shared/timeoff.rbi +4 -4
- data/lib/stack_one/models/shared/workeligibility_document.rb +2 -6
- data/lib/stack_one/models/shared/workeligibility_document.rbi +0 -2
- data/lib/stack_one/models/shared.rb +64 -0
- data/lib/stack_one/request_logs.rb +1 -1
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- data/lib/stack_one/stackone.rb +3 -1
- data/lib/stackone_client.rb +2 -0
- metadata +170 -2
data/lib/stack_one/ats.rb
CHANGED
@@ -5690,20 +5690,20 @@ module StackOne
|
|
5690
5690
|
end
|
5691
5691
|
|
5692
5692
|
|
5693
|
-
sig { params(request: Models::Operations::
|
5694
|
-
def
|
5695
|
-
#
|
5693
|
+
sig { params(request: Models::Operations::AtsGetApplicationStageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationStageResponse) }
|
5694
|
+
def get_application_stage(request:, retries: nil, timeout_ms: nil)
|
5695
|
+
# get_application_stage - Get Application Stage
|
5696
5696
|
url, params = @sdk_configuration.get_server_details
|
5697
5697
|
base_url = Utils.template_url(url, params)
|
5698
5698
|
url = Utils.generate_url(
|
5699
|
-
Models::Operations::
|
5699
|
+
Models::Operations::AtsGetApplicationStageRequest,
|
5700
5700
|
base_url,
|
5701
|
-
'/unified/ats/
|
5701
|
+
'/unified/ats/application_stages/{id}',
|
5702
5702
|
request
|
5703
5703
|
)
|
5704
5704
|
headers = Utils.get_headers(request)
|
5705
5705
|
headers = T.cast(headers, T::Hash[String, String])
|
5706
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5706
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationStageRequest, request, nil)
|
5707
5707
|
headers['Accept'] = 'application/json'
|
5708
5708
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5709
5709
|
retries ||= @sdk_configuration.retry_config
|
@@ -5733,7 +5733,7 @@ module StackOne
|
|
5733
5733
|
config: @sdk_configuration,
|
5734
5734
|
base_url: base_url,
|
5735
5735
|
oauth2_scopes: [],
|
5736
|
-
operation_id: '
|
5736
|
+
operation_id: 'ats_get_application_stage',
|
5737
5737
|
security_source: @sdk_configuration.security_source
|
5738
5738
|
)
|
5739
5739
|
|
@@ -5791,13 +5791,13 @@ module StackOne
|
|
5791
5791
|
response: http_response
|
5792
5792
|
)
|
5793
5793
|
response_data = http_response.env.response_body
|
5794
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
5795
|
-
response = Models::Operations::
|
5794
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::InterviewStageResult)
|
5795
|
+
response = Models::Operations::AtsGetApplicationStageResponse.new(
|
5796
5796
|
status_code: http_response.status,
|
5797
5797
|
content_type: content_type,
|
5798
5798
|
raw_response: http_response,
|
5799
5799
|
headers: {},
|
5800
|
-
|
5800
|
+
interview_stage_result: T.unsafe(obj)
|
5801
5801
|
)
|
5802
5802
|
|
5803
5803
|
return response
|
@@ -5983,20 +5983,20 @@ module StackOne
|
|
5983
5983
|
end
|
5984
5984
|
|
5985
5985
|
|
5986
|
-
sig { params(request: Models::Operations::
|
5987
|
-
def
|
5988
|
-
#
|
5986
|
+
sig { params(request: Models::Operations::AtsGetAssessmentsPackageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetAssessmentsPackageResponse) }
|
5987
|
+
def get_assessments_package(request:, retries: nil, timeout_ms: nil)
|
5988
|
+
# get_assessments_package - Get Assessments Package
|
5989
5989
|
url, params = @sdk_configuration.get_server_details
|
5990
5990
|
base_url = Utils.template_url(url, params)
|
5991
5991
|
url = Utils.generate_url(
|
5992
|
-
Models::Operations::
|
5992
|
+
Models::Operations::AtsGetAssessmentsPackageRequest,
|
5993
5993
|
base_url,
|
5994
|
-
'/unified/ats/
|
5994
|
+
'/unified/ats/assessments/packages/{id}',
|
5995
5995
|
request
|
5996
5996
|
)
|
5997
5997
|
headers = Utils.get_headers(request)
|
5998
5998
|
headers = T.cast(headers, T::Hash[String, String])
|
5999
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5999
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetAssessmentsPackageRequest, request, nil)
|
6000
6000
|
headers['Accept'] = 'application/json'
|
6001
6001
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6002
6002
|
retries ||= @sdk_configuration.retry_config
|
@@ -6026,7 +6026,7 @@ module StackOne
|
|
6026
6026
|
config: @sdk_configuration,
|
6027
6027
|
base_url: base_url,
|
6028
6028
|
oauth2_scopes: [],
|
6029
|
-
operation_id: '
|
6029
|
+
operation_id: 'ats_get_assessments_package',
|
6030
6030
|
security_source: @sdk_configuration.security_source
|
6031
6031
|
)
|
6032
6032
|
|
@@ -6084,13 +6084,13 @@ module StackOne
|
|
6084
6084
|
response: http_response
|
6085
6085
|
)
|
6086
6086
|
response_data = http_response.env.response_body
|
6087
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6088
|
-
response = Models::Operations::
|
6087
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AssessmentPackageResult)
|
6088
|
+
response = Models::Operations::AtsGetAssessmentsPackageResponse.new(
|
6089
6089
|
status_code: http_response.status,
|
6090
6090
|
content_type: content_type,
|
6091
6091
|
raw_response: http_response,
|
6092
6092
|
headers: {},
|
6093
|
-
|
6093
|
+
assessment_package_result: T.unsafe(obj)
|
6094
6094
|
)
|
6095
6095
|
|
6096
6096
|
return response
|
@@ -6276,20 +6276,20 @@ module StackOne
|
|
6276
6276
|
end
|
6277
6277
|
|
6278
6278
|
|
6279
|
-
sig { params(request: Models::Operations::
|
6280
|
-
def
|
6281
|
-
#
|
6279
|
+
sig { params(request: Models::Operations::AtsGetBackgroundCheckPackageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetBackgroundCheckPackageResponse) }
|
6280
|
+
def get_background_check_package(request:, retries: nil, timeout_ms: nil)
|
6281
|
+
# get_background_check_package - Get Background Check Package
|
6282
6282
|
url, params = @sdk_configuration.get_server_details
|
6283
6283
|
base_url = Utils.template_url(url, params)
|
6284
6284
|
url = Utils.generate_url(
|
6285
|
-
Models::Operations::
|
6285
|
+
Models::Operations::AtsGetBackgroundCheckPackageRequest,
|
6286
6286
|
base_url,
|
6287
|
-
'/unified/ats/
|
6287
|
+
'/unified/ats/background_checks/packages/{id}',
|
6288
6288
|
request
|
6289
6289
|
)
|
6290
6290
|
headers = Utils.get_headers(request)
|
6291
6291
|
headers = T.cast(headers, T::Hash[String, String])
|
6292
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6292
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetBackgroundCheckPackageRequest, request, nil)
|
6293
6293
|
headers['Accept'] = 'application/json'
|
6294
6294
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6295
6295
|
retries ||= @sdk_configuration.retry_config
|
@@ -6319,7 +6319,7 @@ module StackOne
|
|
6319
6319
|
config: @sdk_configuration,
|
6320
6320
|
base_url: base_url,
|
6321
6321
|
oauth2_scopes: [],
|
6322
|
-
operation_id: '
|
6322
|
+
operation_id: 'ats_get_background_check_package',
|
6323
6323
|
security_source: @sdk_configuration.security_source
|
6324
6324
|
)
|
6325
6325
|
|
@@ -6377,13 +6377,13 @@ module StackOne
|
|
6377
6377
|
response: http_response
|
6378
6378
|
)
|
6379
6379
|
response_data = http_response.env.response_body
|
6380
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6381
|
-
response = Models::Operations::
|
6380
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::BackgroundCheckPackageResult)
|
6381
|
+
response = Models::Operations::AtsGetBackgroundCheckPackageResponse.new(
|
6382
6382
|
status_code: http_response.status,
|
6383
6383
|
content_type: content_type,
|
6384
6384
|
raw_response: http_response,
|
6385
6385
|
headers: {},
|
6386
|
-
|
6386
|
+
background_check_package_result: T.unsafe(obj)
|
6387
6387
|
)
|
6388
6388
|
|
6389
6389
|
return response
|
@@ -6569,20 +6569,20 @@ module StackOne
|
|
6569
6569
|
end
|
6570
6570
|
|
6571
6571
|
|
6572
|
-
sig { params(request: Models::Operations::
|
6573
|
-
def
|
6574
|
-
#
|
6572
|
+
sig { params(request: Models::Operations::AtsGetCandidateRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateResponse) }
|
6573
|
+
def get_candidate(request:, retries: nil, timeout_ms: nil)
|
6574
|
+
# get_candidate - Get Candidate
|
6575
6575
|
url, params = @sdk_configuration.get_server_details
|
6576
6576
|
base_url = Utils.template_url(url, params)
|
6577
6577
|
url = Utils.generate_url(
|
6578
|
-
Models::Operations::
|
6578
|
+
Models::Operations::AtsGetCandidateRequest,
|
6579
6579
|
base_url,
|
6580
|
-
'/unified/ats/
|
6580
|
+
'/unified/ats/candidates/{id}',
|
6581
6581
|
request
|
6582
6582
|
)
|
6583
6583
|
headers = Utils.get_headers(request)
|
6584
6584
|
headers = T.cast(headers, T::Hash[String, String])
|
6585
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6585
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetCandidateRequest, request, nil)
|
6586
6586
|
headers['Accept'] = 'application/json'
|
6587
6587
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6588
6588
|
retries ||= @sdk_configuration.retry_config
|
@@ -6612,7 +6612,7 @@ module StackOne
|
|
6612
6612
|
config: @sdk_configuration,
|
6613
6613
|
base_url: base_url,
|
6614
6614
|
oauth2_scopes: [],
|
6615
|
-
operation_id: '
|
6615
|
+
operation_id: 'ats_get_candidate',
|
6616
6616
|
security_source: @sdk_configuration.security_source
|
6617
6617
|
)
|
6618
6618
|
|
@@ -6670,13 +6670,13 @@ module StackOne
|
|
6670
6670
|
response: http_response
|
6671
6671
|
)
|
6672
6672
|
response_data = http_response.env.response_body
|
6673
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6674
|
-
response = Models::Operations::
|
6673
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CandidateResult)
|
6674
|
+
response = Models::Operations::AtsGetCandidateResponse.new(
|
6675
6675
|
status_code: http_response.status,
|
6676
6676
|
content_type: content_type,
|
6677
6677
|
raw_response: http_response,
|
6678
6678
|
headers: {},
|
6679
|
-
|
6679
|
+
candidate_result: T.unsafe(obj)
|
6680
6680
|
)
|
6681
6681
|
|
6682
6682
|
return response
|
@@ -6862,20 +6862,20 @@ module StackOne
|
|
6862
6862
|
end
|
6863
6863
|
|
6864
6864
|
|
6865
|
-
sig { params(request: Models::Operations::
|
6866
|
-
def
|
6867
|
-
#
|
6865
|
+
sig { params(request: Models::Operations::AtsGetCandidateCustomFieldDefinitionRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateCustomFieldDefinitionResponse) }
|
6866
|
+
def get_candidate_custom_field_definition(request:, retries: nil, timeout_ms: nil)
|
6867
|
+
# get_candidate_custom_field_definition - Get Candidate Custom Field Definition
|
6868
6868
|
url, params = @sdk_configuration.get_server_details
|
6869
6869
|
base_url = Utils.template_url(url, params)
|
6870
6870
|
url = Utils.generate_url(
|
6871
|
-
Models::Operations::
|
6871
|
+
Models::Operations::AtsGetCandidateCustomFieldDefinitionRequest,
|
6872
6872
|
base_url,
|
6873
|
-
'/unified/ats/candidates/{id}
|
6873
|
+
'/unified/ats/custom_field_definitions/candidates/{id}',
|
6874
6874
|
request
|
6875
6875
|
)
|
6876
6876
|
headers = Utils.get_headers(request)
|
6877
6877
|
headers = T.cast(headers, T::Hash[String, String])
|
6878
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6878
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetCandidateCustomFieldDefinitionRequest, request, nil)
|
6879
6879
|
headers['Accept'] = 'application/json'
|
6880
6880
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6881
6881
|
retries ||= @sdk_configuration.retry_config
|
@@ -6905,7 +6905,7 @@ module StackOne
|
|
6905
6905
|
config: @sdk_configuration,
|
6906
6906
|
base_url: base_url,
|
6907
6907
|
oauth2_scopes: [],
|
6908
|
-
operation_id: '
|
6908
|
+
operation_id: 'ats_get_candidate_custom_field_definition',
|
6909
6909
|
security_source: @sdk_configuration.security_source
|
6910
6910
|
)
|
6911
6911
|
|
@@ -6963,13 +6963,13 @@ module StackOne
|
|
6963
6963
|
response: http_response
|
6964
6964
|
)
|
6965
6965
|
response_data = http_response.env.response_body
|
6966
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
6967
|
-
response = Models::Operations::
|
6966
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CustomFieldDefinitionResultApiModel)
|
6967
|
+
response = Models::Operations::AtsGetCandidateCustomFieldDefinitionResponse.new(
|
6968
6968
|
status_code: http_response.status,
|
6969
6969
|
content_type: content_type,
|
6970
6970
|
raw_response: http_response,
|
6971
6971
|
headers: {},
|
6972
|
-
|
6972
|
+
custom_field_definition_result_api_model: T.unsafe(obj)
|
6973
6973
|
)
|
6974
6974
|
|
6975
6975
|
return response
|
@@ -7155,20 +7155,20 @@ module StackOne
|
|
7155
7155
|
end
|
7156
7156
|
|
7157
7157
|
|
7158
|
-
sig { params(request: Models::Operations::
|
7159
|
-
def
|
7160
|
-
#
|
7158
|
+
sig { params(request: Models::Operations::AtsGetCandidateNoteRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateNoteResponse) }
|
7159
|
+
def get_candidate_note(request:, retries: nil, timeout_ms: nil)
|
7160
|
+
# get_candidate_note - Get Candidate Note
|
7161
7161
|
url, params = @sdk_configuration.get_server_details
|
7162
7162
|
base_url = Utils.template_url(url, params)
|
7163
7163
|
url = Utils.generate_url(
|
7164
|
-
Models::Operations::
|
7164
|
+
Models::Operations::AtsGetCandidateNoteRequest,
|
7165
7165
|
base_url,
|
7166
|
-
'/unified/ats/
|
7166
|
+
'/unified/ats/candidates/{id}/notes/{subResourceId}',
|
7167
7167
|
request
|
7168
7168
|
)
|
7169
7169
|
headers = Utils.get_headers(request)
|
7170
7170
|
headers = T.cast(headers, T::Hash[String, String])
|
7171
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7171
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetCandidateNoteRequest, request, nil)
|
7172
7172
|
headers['Accept'] = 'application/json'
|
7173
7173
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7174
7174
|
retries ||= @sdk_configuration.retry_config
|
@@ -7198,7 +7198,7 @@ module StackOne
|
|
7198
7198
|
config: @sdk_configuration,
|
7199
7199
|
base_url: base_url,
|
7200
7200
|
oauth2_scopes: [],
|
7201
|
-
operation_id: '
|
7201
|
+
operation_id: 'ats_get_candidate_note',
|
7202
7202
|
security_source: @sdk_configuration.security_source
|
7203
7203
|
)
|
7204
7204
|
|
@@ -7256,13 +7256,13 @@ module StackOne
|
|
7256
7256
|
response: http_response
|
7257
7257
|
)
|
7258
7258
|
response_data = http_response.env.response_body
|
7259
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
7260
|
-
response = Models::Operations::
|
7259
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::NoteResult)
|
7260
|
+
response = Models::Operations::AtsGetCandidateNoteResponse.new(
|
7261
7261
|
status_code: http_response.status,
|
7262
7262
|
content_type: content_type,
|
7263
7263
|
raw_response: http_response,
|
7264
7264
|
headers: {},
|
7265
|
-
|
7265
|
+
note_result: T.unsafe(obj)
|
7266
7266
|
)
|
7267
7267
|
|
7268
7268
|
return response
|
@@ -7448,20 +7448,20 @@ module StackOne
|
|
7448
7448
|
end
|
7449
7449
|
|
7450
7450
|
|
7451
|
-
sig { params(request: Models::Operations::
|
7452
|
-
def
|
7453
|
-
#
|
7451
|
+
sig { params(request: Models::Operations::AtsGetDepartmentRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetDepartmentResponse) }
|
7452
|
+
def get_department(request:, retries: nil, timeout_ms: nil)
|
7453
|
+
# get_department - Get Department
|
7454
7454
|
url, params = @sdk_configuration.get_server_details
|
7455
7455
|
base_url = Utils.template_url(url, params)
|
7456
7456
|
url = Utils.generate_url(
|
7457
|
-
Models::Operations::
|
7457
|
+
Models::Operations::AtsGetDepartmentRequest,
|
7458
7458
|
base_url,
|
7459
|
-
'/unified/ats/
|
7459
|
+
'/unified/ats/departments/{id}',
|
7460
7460
|
request
|
7461
7461
|
)
|
7462
7462
|
headers = Utils.get_headers(request)
|
7463
7463
|
headers = T.cast(headers, T::Hash[String, String])
|
7464
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7464
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetDepartmentRequest, request, nil)
|
7465
7465
|
headers['Accept'] = 'application/json'
|
7466
7466
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7467
7467
|
retries ||= @sdk_configuration.retry_config
|
@@ -7491,7 +7491,7 @@ module StackOne
|
|
7491
7491
|
config: @sdk_configuration,
|
7492
7492
|
base_url: base_url,
|
7493
7493
|
oauth2_scopes: [],
|
7494
|
-
operation_id: '
|
7494
|
+
operation_id: 'ats_get_department',
|
7495
7495
|
security_source: @sdk_configuration.security_source
|
7496
7496
|
)
|
7497
7497
|
|
@@ -7549,13 +7549,13 @@ module StackOne
|
|
7549
7549
|
response: http_response
|
7550
7550
|
)
|
7551
7551
|
response_data = http_response.env.response_body
|
7552
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
7553
|
-
response = Models::Operations::
|
7552
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::DepartmentResult)
|
7553
|
+
response = Models::Operations::AtsGetDepartmentResponse.new(
|
7554
7554
|
status_code: http_response.status,
|
7555
7555
|
content_type: content_type,
|
7556
7556
|
raw_response: http_response,
|
7557
7557
|
headers: {},
|
7558
|
-
|
7558
|
+
department_result: T.unsafe(obj)
|
7559
7559
|
)
|
7560
7560
|
|
7561
7561
|
return response
|
@@ -7741,20 +7741,20 @@ module StackOne
|
|
7741
7741
|
end
|
7742
7742
|
|
7743
7743
|
|
7744
|
-
sig { params(request: Models::Operations::
|
7745
|
-
def
|
7746
|
-
#
|
7744
|
+
sig { params(request: Models::Operations::AtsGetInterviewRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetInterviewResponse) }
|
7745
|
+
def get_interview(request:, retries: nil, timeout_ms: nil)
|
7746
|
+
# get_interview - Get Interview
|
7747
7747
|
url, params = @sdk_configuration.get_server_details
|
7748
7748
|
base_url = Utils.template_url(url, params)
|
7749
7749
|
url = Utils.generate_url(
|
7750
|
-
Models::Operations::
|
7750
|
+
Models::Operations::AtsGetInterviewRequest,
|
7751
7751
|
base_url,
|
7752
|
-
'/unified/ats/
|
7752
|
+
'/unified/ats/interviews/{id}',
|
7753
7753
|
request
|
7754
7754
|
)
|
7755
7755
|
headers = Utils.get_headers(request)
|
7756
7756
|
headers = T.cast(headers, T::Hash[String, String])
|
7757
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7757
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetInterviewRequest, request, nil)
|
7758
7758
|
headers['Accept'] = 'application/json'
|
7759
7759
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7760
7760
|
retries ||= @sdk_configuration.retry_config
|
@@ -7784,7 +7784,7 @@ module StackOne
|
|
7784
7784
|
config: @sdk_configuration,
|
7785
7785
|
base_url: base_url,
|
7786
7786
|
oauth2_scopes: [],
|
7787
|
-
operation_id: '
|
7787
|
+
operation_id: 'ats_get_interview',
|
7788
7788
|
security_source: @sdk_configuration.security_source
|
7789
7789
|
)
|
7790
7790
|
|
@@ -7842,13 +7842,13 @@ module StackOne
|
|
7842
7842
|
response: http_response
|
7843
7843
|
)
|
7844
7844
|
response_data = http_response.env.response_body
|
7845
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
7846
|
-
response = Models::Operations::
|
7845
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::InterviewsResult)
|
7846
|
+
response = Models::Operations::AtsGetInterviewResponse.new(
|
7847
7847
|
status_code: http_response.status,
|
7848
7848
|
content_type: content_type,
|
7849
7849
|
raw_response: http_response,
|
7850
7850
|
headers: {},
|
7851
|
-
|
7851
|
+
interviews_result: T.unsafe(obj)
|
7852
7852
|
)
|
7853
7853
|
|
7854
7854
|
return response
|
@@ -8034,20 +8034,22 @@ module StackOne
|
|
8034
8034
|
end
|
8035
8035
|
|
8036
8036
|
|
8037
|
-
sig { params(request: Models::Operations::
|
8038
|
-
def
|
8039
|
-
#
|
8037
|
+
sig { params(request: Models::Operations::AtsGetInterviewStageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetInterviewStageResponse) }
|
8038
|
+
def get_interview_stage(request:, retries: nil, timeout_ms: nil)
|
8039
|
+
# get_interview_stage - Get Interview Stage
|
8040
|
+
#
|
8041
|
+
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
8040
8042
|
url, params = @sdk_configuration.get_server_details
|
8041
8043
|
base_url = Utils.template_url(url, params)
|
8042
8044
|
url = Utils.generate_url(
|
8043
|
-
Models::Operations::
|
8045
|
+
Models::Operations::AtsGetInterviewStageRequest,
|
8044
8046
|
base_url,
|
8045
|
-
'/unified/ats/
|
8047
|
+
'/unified/ats/interview_stages/{id}',
|
8046
8048
|
request
|
8047
8049
|
)
|
8048
8050
|
headers = Utils.get_headers(request)
|
8049
8051
|
headers = T.cast(headers, T::Hash[String, String])
|
8050
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8052
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetInterviewStageRequest, request, nil)
|
8051
8053
|
headers['Accept'] = 'application/json'
|
8052
8054
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8053
8055
|
retries ||= @sdk_configuration.retry_config
|
@@ -8077,7 +8079,7 @@ module StackOne
|
|
8077
8079
|
config: @sdk_configuration,
|
8078
8080
|
base_url: base_url,
|
8079
8081
|
oauth2_scopes: [],
|
8080
|
-
operation_id: '
|
8082
|
+
operation_id: 'ats_get_interview_stage',
|
8081
8083
|
security_source: @sdk_configuration.security_source
|
8082
8084
|
)
|
8083
8085
|
|
@@ -8135,13 +8137,13 @@ module StackOne
|
|
8135
8137
|
response: http_response
|
8136
8138
|
)
|
8137
8139
|
response_data = http_response.env.response_body
|
8138
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
8139
|
-
response = Models::Operations::
|
8140
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::InterviewStageResult)
|
8141
|
+
response = Models::Operations::AtsGetInterviewStageResponse.new(
|
8140
8142
|
status_code: http_response.status,
|
8141
8143
|
content_type: content_type,
|
8142
8144
|
raw_response: http_response,
|
8143
8145
|
headers: {},
|
8144
|
-
|
8146
|
+
interview_stage_result: T.unsafe(obj)
|
8145
8147
|
)
|
8146
8148
|
|
8147
8149
|
return response
|
@@ -8327,20 +8329,20 @@ module StackOne
|
|
8327
8329
|
end
|
8328
8330
|
|
8329
8331
|
|
8330
|
-
sig { params(request: Models::Operations::
|
8331
|
-
def
|
8332
|
-
#
|
8332
|
+
sig { params(request: Models::Operations::AtsGetJobRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobResponse) }
|
8333
|
+
def get_job(request:, retries: nil, timeout_ms: nil)
|
8334
|
+
# get_job - Get Job
|
8333
8335
|
url, params = @sdk_configuration.get_server_details
|
8334
8336
|
base_url = Utils.template_url(url, params)
|
8335
8337
|
url = Utils.generate_url(
|
8336
|
-
Models::Operations::
|
8338
|
+
Models::Operations::AtsGetJobRequest,
|
8337
8339
|
base_url,
|
8338
|
-
'/unified/ats/jobs/{id}
|
8340
|
+
'/unified/ats/jobs/{id}',
|
8339
8341
|
request
|
8340
8342
|
)
|
8341
8343
|
headers = Utils.get_headers(request)
|
8342
8344
|
headers = T.cast(headers, T::Hash[String, String])
|
8343
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8345
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobRequest, request, nil)
|
8344
8346
|
headers['Accept'] = 'application/json'
|
8345
8347
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8346
8348
|
retries ||= @sdk_configuration.retry_config
|
@@ -8370,7 +8372,7 @@ module StackOne
|
|
8370
8372
|
config: @sdk_configuration,
|
8371
8373
|
base_url: base_url,
|
8372
8374
|
oauth2_scopes: [],
|
8373
|
-
operation_id: '
|
8375
|
+
operation_id: 'ats_get_job',
|
8374
8376
|
security_source: @sdk_configuration.security_source
|
8375
8377
|
)
|
8376
8378
|
|
@@ -8428,13 +8430,13 @@ module StackOne
|
|
8428
8430
|
response: http_response
|
8429
8431
|
)
|
8430
8432
|
response_data = http_response.env.response_body
|
8431
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
8432
|
-
response = Models::Operations::
|
8433
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AtsJobResult)
|
8434
|
+
response = Models::Operations::AtsGetJobResponse.new(
|
8433
8435
|
status_code: http_response.status,
|
8434
8436
|
content_type: content_type,
|
8435
8437
|
raw_response: http_response,
|
8436
8438
|
headers: {},
|
8437
|
-
|
8439
|
+
ats_job_result: T.unsafe(obj)
|
8438
8440
|
)
|
8439
8441
|
|
8440
8442
|
return response
|
@@ -8620,20 +8622,20 @@ module StackOne
|
|
8620
8622
|
end
|
8621
8623
|
|
8622
8624
|
|
8623
|
-
sig { params(request: Models::Operations::
|
8624
|
-
def
|
8625
|
-
#
|
8625
|
+
sig { params(request: Models::Operations::AtsGetJobApplicationStageRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobApplicationStageResponse) }
|
8626
|
+
def get_job_application_stage(request:, retries: nil, timeout_ms: nil)
|
8627
|
+
# get_job_application_stage - Get Job Application Stage
|
8626
8628
|
url, params = @sdk_configuration.get_server_details
|
8627
8629
|
base_url = Utils.template_url(url, params)
|
8628
8630
|
url = Utils.generate_url(
|
8629
|
-
Models::Operations::
|
8631
|
+
Models::Operations::AtsGetJobApplicationStageRequest,
|
8630
8632
|
base_url,
|
8631
|
-
'/unified/ats/
|
8633
|
+
'/unified/ats/jobs/{id}/application_stages/{subResourceId}',
|
8632
8634
|
request
|
8633
8635
|
)
|
8634
8636
|
headers = Utils.get_headers(request)
|
8635
8637
|
headers = T.cast(headers, T::Hash[String, String])
|
8636
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8638
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobApplicationStageRequest, request, nil)
|
8637
8639
|
headers['Accept'] = 'application/json'
|
8638
8640
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8639
8641
|
retries ||= @sdk_configuration.retry_config
|
@@ -8663,7 +8665,7 @@ module StackOne
|
|
8663
8665
|
config: @sdk_configuration,
|
8664
8666
|
base_url: base_url,
|
8665
8667
|
oauth2_scopes: [],
|
8666
|
-
operation_id: '
|
8668
|
+
operation_id: 'ats_get_job_application_stage',
|
8667
8669
|
security_source: @sdk_configuration.security_source
|
8668
8670
|
)
|
8669
8671
|
|
@@ -8721,13 +8723,13 @@ module StackOne
|
|
8721
8723
|
response: http_response
|
8722
8724
|
)
|
8723
8725
|
response_data = http_response.env.response_body
|
8724
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
8725
|
-
response = Models::Operations::
|
8726
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ApplicationStageResult)
|
8727
|
+
response = Models::Operations::AtsGetJobApplicationStageResponse.new(
|
8726
8728
|
status_code: http_response.status,
|
8727
8729
|
content_type: content_type,
|
8728
8730
|
raw_response: http_response,
|
8729
8731
|
headers: {},
|
8730
|
-
|
8732
|
+
application_stage_result: T.unsafe(obj)
|
8731
8733
|
)
|
8732
8734
|
|
8733
8735
|
return response
|
@@ -8913,20 +8915,20 @@ module StackOne
|
|
8913
8915
|
end
|
8914
8916
|
|
8915
8917
|
|
8916
|
-
sig { params(request: Models::Operations::
|
8917
|
-
def
|
8918
|
-
#
|
8918
|
+
sig { params(request: Models::Operations::AtsGetJobCustomFieldDefinitionRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobCustomFieldDefinitionResponse) }
|
8919
|
+
def get_job_custom_field_definition(request:, retries: nil, timeout_ms: nil)
|
8920
|
+
# get_job_custom_field_definition - Get Job Custom Field Definition
|
8919
8921
|
url, params = @sdk_configuration.get_server_details
|
8920
8922
|
base_url = Utils.template_url(url, params)
|
8921
8923
|
url = Utils.generate_url(
|
8922
|
-
Models::Operations::
|
8924
|
+
Models::Operations::AtsGetJobCustomFieldDefinitionRequest,
|
8923
8925
|
base_url,
|
8924
|
-
'/unified/ats/
|
8926
|
+
'/unified/ats/custom_field_definitions/jobs/{id}',
|
8925
8927
|
request
|
8926
8928
|
)
|
8927
8929
|
headers = Utils.get_headers(request)
|
8928
8930
|
headers = T.cast(headers, T::Hash[String, String])
|
8929
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8931
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobCustomFieldDefinitionRequest, request, nil)
|
8930
8932
|
headers['Accept'] = 'application/json'
|
8931
8933
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8932
8934
|
retries ||= @sdk_configuration.retry_config
|
@@ -8956,7 +8958,7 @@ module StackOne
|
|
8956
8958
|
config: @sdk_configuration,
|
8957
8959
|
base_url: base_url,
|
8958
8960
|
oauth2_scopes: [],
|
8959
|
-
operation_id: '
|
8961
|
+
operation_id: 'ats_get_job_custom_field_definition',
|
8960
8962
|
security_source: @sdk_configuration.security_source
|
8961
8963
|
)
|
8962
8964
|
|
@@ -9014,13 +9016,13 @@ module StackOne
|
|
9014
9016
|
response: http_response
|
9015
9017
|
)
|
9016
9018
|
response_data = http_response.env.response_body
|
9017
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9018
|
-
response = Models::Operations::
|
9019
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CustomFieldDefinitionResultApiModel)
|
9020
|
+
response = Models::Operations::AtsGetJobCustomFieldDefinitionResponse.new(
|
9019
9021
|
status_code: http_response.status,
|
9020
9022
|
content_type: content_type,
|
9021
9023
|
raw_response: http_response,
|
9022
9024
|
headers: {},
|
9023
|
-
|
9025
|
+
custom_field_definition_result_api_model: T.unsafe(obj)
|
9024
9026
|
)
|
9025
9027
|
|
9026
9028
|
return response
|
@@ -9206,20 +9208,20 @@ module StackOne
|
|
9206
9208
|
end
|
9207
9209
|
|
9208
9210
|
|
9209
|
-
sig { params(request: Models::Operations::
|
9210
|
-
def
|
9211
|
-
#
|
9211
|
+
sig { params(request: Models::Operations::AtsGetJobPostingRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobPostingResponse) }
|
9212
|
+
def get_job_posting(request:, retries: nil, timeout_ms: nil)
|
9213
|
+
# get_job_posting - Get Job Posting
|
9212
9214
|
url, params = @sdk_configuration.get_server_details
|
9213
9215
|
base_url = Utils.template_url(url, params)
|
9214
9216
|
url = Utils.generate_url(
|
9215
|
-
Models::Operations::
|
9217
|
+
Models::Operations::AtsGetJobPostingRequest,
|
9216
9218
|
base_url,
|
9217
|
-
'/unified/ats/
|
9219
|
+
'/unified/ats/job_postings/{id}',
|
9218
9220
|
request
|
9219
9221
|
)
|
9220
9222
|
headers = Utils.get_headers(request)
|
9221
9223
|
headers = T.cast(headers, T::Hash[String, String])
|
9222
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9224
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobPostingRequest, request, nil)
|
9223
9225
|
headers['Accept'] = 'application/json'
|
9224
9226
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9225
9227
|
retries ||= @sdk_configuration.retry_config
|
@@ -9249,7 +9251,7 @@ module StackOne
|
|
9249
9251
|
config: @sdk_configuration,
|
9250
9252
|
base_url: base_url,
|
9251
9253
|
oauth2_scopes: [],
|
9252
|
-
operation_id: '
|
9254
|
+
operation_id: 'ats_get_job_posting',
|
9253
9255
|
security_source: @sdk_configuration.security_source
|
9254
9256
|
)
|
9255
9257
|
|
@@ -9307,13 +9309,13 @@ module StackOne
|
|
9307
9309
|
response: http_response
|
9308
9310
|
)
|
9309
9311
|
response_data = http_response.env.response_body
|
9310
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9311
|
-
response = Models::Operations::
|
9312
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::JobPostingResult)
|
9313
|
+
response = Models::Operations::AtsGetJobPostingResponse.new(
|
9312
9314
|
status_code: http_response.status,
|
9313
9315
|
content_type: content_type,
|
9314
9316
|
raw_response: http_response,
|
9315
9317
|
headers: {},
|
9316
|
-
|
9318
|
+
job_posting_result: T.unsafe(obj)
|
9317
9319
|
)
|
9318
9320
|
|
9319
9321
|
return response
|
@@ -9499,20 +9501,606 @@ module StackOne
|
|
9499
9501
|
end
|
9500
9502
|
|
9501
9503
|
|
9502
|
-
sig { params(request: Models::Operations::
|
9503
|
-
def
|
9504
|
-
#
|
9505
|
-
url, params = @sdk_configuration.get_server_details
|
9504
|
+
sig { params(request: Models::Operations::AtsGetListRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetListResponse) }
|
9505
|
+
def get_list(request:, retries: nil, timeout_ms: nil)
|
9506
|
+
# get_list - Get List
|
9507
|
+
url, params = @sdk_configuration.get_server_details
|
9508
|
+
base_url = Utils.template_url(url, params)
|
9509
|
+
url = Utils.generate_url(
|
9510
|
+
Models::Operations::AtsGetListRequest,
|
9511
|
+
base_url,
|
9512
|
+
'/unified/ats/lists/{id}',
|
9513
|
+
request
|
9514
|
+
)
|
9515
|
+
headers = Utils.get_headers(request)
|
9516
|
+
headers = T.cast(headers, T::Hash[String, String])
|
9517
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetListRequest, request, nil)
|
9518
|
+
headers['Accept'] = 'application/json'
|
9519
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
9520
|
+
retries ||= @sdk_configuration.retry_config
|
9521
|
+
retries ||= Utils::RetryConfig.new(
|
9522
|
+
backoff: Utils::BackoffStrategy.new(
|
9523
|
+
exponent: 1.5,
|
9524
|
+
initial_interval: 500,
|
9525
|
+
max_elapsed_time: 3_600_000,
|
9526
|
+
max_interval: 60_000
|
9527
|
+
),
|
9528
|
+
retry_connection_errors: true,
|
9529
|
+
strategy: 'backoff'
|
9530
|
+
)
|
9531
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
9532
|
+
retry_options[:retry_statuses] = [429, 408]
|
9533
|
+
|
9534
|
+
security = @sdk_configuration.security_source&.call
|
9535
|
+
|
9536
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
9537
|
+
timeout ||= @sdk_configuration.timeout
|
9538
|
+
|
9539
|
+
|
9540
|
+
connection = @sdk_configuration.client.dup
|
9541
|
+
connection.request :retry, retry_options
|
9542
|
+
|
9543
|
+
hook_ctx = SDKHooks::HookContext.new(
|
9544
|
+
config: @sdk_configuration,
|
9545
|
+
base_url: base_url,
|
9546
|
+
oauth2_scopes: [],
|
9547
|
+
operation_id: 'ats_get_list',
|
9548
|
+
security_source: @sdk_configuration.security_source
|
9549
|
+
)
|
9550
|
+
|
9551
|
+
error = T.let(nil, T.nilable(StandardError))
|
9552
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
9553
|
+
|
9554
|
+
|
9555
|
+
begin
|
9556
|
+
http_response = T.must(connection).get(url) do |req|
|
9557
|
+
req.headers.merge!(headers)
|
9558
|
+
req.options.timeout = timeout unless timeout.nil?
|
9559
|
+
req.params = query_params
|
9560
|
+
Utils.configure_request_security(req, security)
|
9561
|
+
|
9562
|
+
@sdk_configuration.hooks.before_request(
|
9563
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
9564
|
+
hook_ctx: hook_ctx
|
9565
|
+
),
|
9566
|
+
request: req
|
9567
|
+
)
|
9568
|
+
end
|
9569
|
+
rescue StandardError => e
|
9570
|
+
error = e
|
9571
|
+
ensure
|
9572
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
9573
|
+
http_response = @sdk_configuration.hooks.after_error(
|
9574
|
+
error: error,
|
9575
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
9576
|
+
hook_ctx: hook_ctx
|
9577
|
+
),
|
9578
|
+
response: http_response
|
9579
|
+
)
|
9580
|
+
else
|
9581
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9582
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9583
|
+
hook_ctx: hook_ctx
|
9584
|
+
),
|
9585
|
+
response: http_response
|
9586
|
+
)
|
9587
|
+
end
|
9588
|
+
|
9589
|
+
if http_response.nil?
|
9590
|
+
raise error if !error.nil?
|
9591
|
+
raise 'no response'
|
9592
|
+
end
|
9593
|
+
end
|
9594
|
+
|
9595
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
9596
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
9597
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9598
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9599
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9600
|
+
hook_ctx: hook_ctx
|
9601
|
+
),
|
9602
|
+
response: http_response
|
9603
|
+
)
|
9604
|
+
response_data = http_response.env.response_body
|
9605
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ListResult)
|
9606
|
+
response = Models::Operations::AtsGetListResponse.new(
|
9607
|
+
status_code: http_response.status,
|
9608
|
+
content_type: content_type,
|
9609
|
+
raw_response: http_response,
|
9610
|
+
headers: {},
|
9611
|
+
list_result: T.unsafe(obj)
|
9612
|
+
)
|
9613
|
+
|
9614
|
+
return response
|
9615
|
+
else
|
9616
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9617
|
+
end
|
9618
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
9619
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9620
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9621
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9622
|
+
hook_ctx: hook_ctx
|
9623
|
+
),
|
9624
|
+
response: http_response
|
9625
|
+
)
|
9626
|
+
response_data = http_response.env.response_body
|
9627
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequestResponse)
|
9628
|
+
raise obj
|
9629
|
+
else
|
9630
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9631
|
+
end
|
9632
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
9633
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9634
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9635
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9636
|
+
hook_ctx: hook_ctx
|
9637
|
+
),
|
9638
|
+
response: http_response
|
9639
|
+
)
|
9640
|
+
response_data = http_response.env.response_body
|
9641
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnauthorizedResponse)
|
9642
|
+
raise obj
|
9643
|
+
else
|
9644
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9645
|
+
end
|
9646
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
9647
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9648
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9649
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9650
|
+
hook_ctx: hook_ctx
|
9651
|
+
),
|
9652
|
+
response: http_response
|
9653
|
+
)
|
9654
|
+
response_data = http_response.env.response_body
|
9655
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ForbiddenResponse)
|
9656
|
+
raise obj
|
9657
|
+
else
|
9658
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9659
|
+
end
|
9660
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
9661
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9662
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9663
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9664
|
+
hook_ctx: hook_ctx
|
9665
|
+
),
|
9666
|
+
response: http_response
|
9667
|
+
)
|
9668
|
+
response_data = http_response.env.response_body
|
9669
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFoundResponse)
|
9670
|
+
raise obj
|
9671
|
+
else
|
9672
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9673
|
+
end
|
9674
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
9675
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9676
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9677
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9678
|
+
hook_ctx: hook_ctx
|
9679
|
+
),
|
9680
|
+
response: http_response
|
9681
|
+
)
|
9682
|
+
response_data = http_response.env.response_body
|
9683
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RequestTimedOutResponse)
|
9684
|
+
raise obj
|
9685
|
+
else
|
9686
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9687
|
+
end
|
9688
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
9689
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9690
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9691
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9692
|
+
hook_ctx: hook_ctx
|
9693
|
+
),
|
9694
|
+
response: http_response
|
9695
|
+
)
|
9696
|
+
response_data = http_response.env.response_body
|
9697
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConflictResponse)
|
9698
|
+
raise obj
|
9699
|
+
else
|
9700
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9701
|
+
end
|
9702
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
9703
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9704
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9705
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9706
|
+
hook_ctx: hook_ctx
|
9707
|
+
),
|
9708
|
+
response: http_response
|
9709
|
+
)
|
9710
|
+
response_data = http_response.env.response_body
|
9711
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::PreconditionFailedResponse)
|
9712
|
+
raise obj
|
9713
|
+
else
|
9714
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9715
|
+
end
|
9716
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
9717
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9718
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9719
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9720
|
+
hook_ctx: hook_ctx
|
9721
|
+
),
|
9722
|
+
response: http_response
|
9723
|
+
)
|
9724
|
+
response_data = http_response.env.response_body
|
9725
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnprocessableEntityResponse)
|
9726
|
+
raise obj
|
9727
|
+
else
|
9728
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9729
|
+
end
|
9730
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
9731
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9732
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9733
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9734
|
+
hook_ctx: hook_ctx
|
9735
|
+
),
|
9736
|
+
response: http_response
|
9737
|
+
)
|
9738
|
+
response_data = http_response.env.response_body
|
9739
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::TooManyRequestsResponse)
|
9740
|
+
raise obj
|
9741
|
+
else
|
9742
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9743
|
+
end
|
9744
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
9745
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9746
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9747
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9748
|
+
hook_ctx: hook_ctx
|
9749
|
+
),
|
9750
|
+
response: http_response
|
9751
|
+
)
|
9752
|
+
response_data = http_response.env.response_body
|
9753
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InternalServerErrorResponse)
|
9754
|
+
raise obj
|
9755
|
+
else
|
9756
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9757
|
+
end
|
9758
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
9759
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9760
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9761
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9762
|
+
hook_ctx: hook_ctx
|
9763
|
+
),
|
9764
|
+
response: http_response
|
9765
|
+
)
|
9766
|
+
response_data = http_response.env.response_body
|
9767
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotImplementedResponse)
|
9768
|
+
raise obj
|
9769
|
+
else
|
9770
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9771
|
+
end
|
9772
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
9773
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9774
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9775
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9776
|
+
hook_ctx: hook_ctx
|
9777
|
+
),
|
9778
|
+
response: http_response
|
9779
|
+
)
|
9780
|
+
response_data = http_response.env.response_body
|
9781
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadGatewayResponse)
|
9782
|
+
raise obj
|
9783
|
+
else
|
9784
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9785
|
+
end
|
9786
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
9787
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
9788
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
9789
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
9790
|
+
else
|
9791
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
9792
|
+
|
9793
|
+
end
|
9794
|
+
end
|
9795
|
+
|
9796
|
+
|
9797
|
+
sig { params(request: Models::Operations::AtsGetLocationRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetLocationResponse) }
|
9798
|
+
def get_location(request:, retries: nil, timeout_ms: nil)
|
9799
|
+
# get_location - Get Location
|
9800
|
+
url, params = @sdk_configuration.get_server_details
|
9801
|
+
base_url = Utils.template_url(url, params)
|
9802
|
+
url = Utils.generate_url(
|
9803
|
+
Models::Operations::AtsGetLocationRequest,
|
9804
|
+
base_url,
|
9805
|
+
'/unified/ats/locations/{id}',
|
9806
|
+
request
|
9807
|
+
)
|
9808
|
+
headers = Utils.get_headers(request)
|
9809
|
+
headers = T.cast(headers, T::Hash[String, String])
|
9810
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetLocationRequest, request, nil)
|
9811
|
+
headers['Accept'] = 'application/json'
|
9812
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
9813
|
+
retries ||= @sdk_configuration.retry_config
|
9814
|
+
retries ||= Utils::RetryConfig.new(
|
9815
|
+
backoff: Utils::BackoffStrategy.new(
|
9816
|
+
exponent: 1.5,
|
9817
|
+
initial_interval: 500,
|
9818
|
+
max_elapsed_time: 3_600_000,
|
9819
|
+
max_interval: 60_000
|
9820
|
+
),
|
9821
|
+
retry_connection_errors: true,
|
9822
|
+
strategy: 'backoff'
|
9823
|
+
)
|
9824
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
9825
|
+
retry_options[:retry_statuses] = [429, 408]
|
9826
|
+
|
9827
|
+
security = @sdk_configuration.security_source&.call
|
9828
|
+
|
9829
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
9830
|
+
timeout ||= @sdk_configuration.timeout
|
9831
|
+
|
9832
|
+
|
9833
|
+
connection = @sdk_configuration.client.dup
|
9834
|
+
connection.request :retry, retry_options
|
9835
|
+
|
9836
|
+
hook_ctx = SDKHooks::HookContext.new(
|
9837
|
+
config: @sdk_configuration,
|
9838
|
+
base_url: base_url,
|
9839
|
+
oauth2_scopes: [],
|
9840
|
+
operation_id: 'ats_get_location',
|
9841
|
+
security_source: @sdk_configuration.security_source
|
9842
|
+
)
|
9843
|
+
|
9844
|
+
error = T.let(nil, T.nilable(StandardError))
|
9845
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
9846
|
+
|
9847
|
+
|
9848
|
+
begin
|
9849
|
+
http_response = T.must(connection).get(url) do |req|
|
9850
|
+
req.headers.merge!(headers)
|
9851
|
+
req.options.timeout = timeout unless timeout.nil?
|
9852
|
+
req.params = query_params
|
9853
|
+
Utils.configure_request_security(req, security)
|
9854
|
+
|
9855
|
+
@sdk_configuration.hooks.before_request(
|
9856
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
9857
|
+
hook_ctx: hook_ctx
|
9858
|
+
),
|
9859
|
+
request: req
|
9860
|
+
)
|
9861
|
+
end
|
9862
|
+
rescue StandardError => e
|
9863
|
+
error = e
|
9864
|
+
ensure
|
9865
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
9866
|
+
http_response = @sdk_configuration.hooks.after_error(
|
9867
|
+
error: error,
|
9868
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
9869
|
+
hook_ctx: hook_ctx
|
9870
|
+
),
|
9871
|
+
response: http_response
|
9872
|
+
)
|
9873
|
+
else
|
9874
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9875
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9876
|
+
hook_ctx: hook_ctx
|
9877
|
+
),
|
9878
|
+
response: http_response
|
9879
|
+
)
|
9880
|
+
end
|
9881
|
+
|
9882
|
+
if http_response.nil?
|
9883
|
+
raise error if !error.nil?
|
9884
|
+
raise 'no response'
|
9885
|
+
end
|
9886
|
+
end
|
9887
|
+
|
9888
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
9889
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
9890
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9891
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9892
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9893
|
+
hook_ctx: hook_ctx
|
9894
|
+
),
|
9895
|
+
response: http_response
|
9896
|
+
)
|
9897
|
+
response_data = http_response.env.response_body
|
9898
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ATSLocationResult)
|
9899
|
+
response = Models::Operations::AtsGetLocationResponse.new(
|
9900
|
+
status_code: http_response.status,
|
9901
|
+
content_type: content_type,
|
9902
|
+
raw_response: http_response,
|
9903
|
+
headers: {},
|
9904
|
+
ats_location_result: T.unsafe(obj)
|
9905
|
+
)
|
9906
|
+
|
9907
|
+
return response
|
9908
|
+
else
|
9909
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9910
|
+
end
|
9911
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
9912
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9913
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9914
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9915
|
+
hook_ctx: hook_ctx
|
9916
|
+
),
|
9917
|
+
response: http_response
|
9918
|
+
)
|
9919
|
+
response_data = http_response.env.response_body
|
9920
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequestResponse)
|
9921
|
+
raise obj
|
9922
|
+
else
|
9923
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9924
|
+
end
|
9925
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
9926
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9927
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9928
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9929
|
+
hook_ctx: hook_ctx
|
9930
|
+
),
|
9931
|
+
response: http_response
|
9932
|
+
)
|
9933
|
+
response_data = http_response.env.response_body
|
9934
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnauthorizedResponse)
|
9935
|
+
raise obj
|
9936
|
+
else
|
9937
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9938
|
+
end
|
9939
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
9940
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9941
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9942
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9943
|
+
hook_ctx: hook_ctx
|
9944
|
+
),
|
9945
|
+
response: http_response
|
9946
|
+
)
|
9947
|
+
response_data = http_response.env.response_body
|
9948
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ForbiddenResponse)
|
9949
|
+
raise obj
|
9950
|
+
else
|
9951
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9952
|
+
end
|
9953
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
9954
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9955
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9956
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9957
|
+
hook_ctx: hook_ctx
|
9958
|
+
),
|
9959
|
+
response: http_response
|
9960
|
+
)
|
9961
|
+
response_data = http_response.env.response_body
|
9962
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFoundResponse)
|
9963
|
+
raise obj
|
9964
|
+
else
|
9965
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9966
|
+
end
|
9967
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
9968
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9969
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9970
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9971
|
+
hook_ctx: hook_ctx
|
9972
|
+
),
|
9973
|
+
response: http_response
|
9974
|
+
)
|
9975
|
+
response_data = http_response.env.response_body
|
9976
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RequestTimedOutResponse)
|
9977
|
+
raise obj
|
9978
|
+
else
|
9979
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9980
|
+
end
|
9981
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
9982
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9983
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9984
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9985
|
+
hook_ctx: hook_ctx
|
9986
|
+
),
|
9987
|
+
response: http_response
|
9988
|
+
)
|
9989
|
+
response_data = http_response.env.response_body
|
9990
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConflictResponse)
|
9991
|
+
raise obj
|
9992
|
+
else
|
9993
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9994
|
+
end
|
9995
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
9996
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9997
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9998
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9999
|
+
hook_ctx: hook_ctx
|
10000
|
+
),
|
10001
|
+
response: http_response
|
10002
|
+
)
|
10003
|
+
response_data = http_response.env.response_body
|
10004
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::PreconditionFailedResponse)
|
10005
|
+
raise obj
|
10006
|
+
else
|
10007
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
10008
|
+
end
|
10009
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
10010
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10011
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10012
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10013
|
+
hook_ctx: hook_ctx
|
10014
|
+
),
|
10015
|
+
response: http_response
|
10016
|
+
)
|
10017
|
+
response_data = http_response.env.response_body
|
10018
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnprocessableEntityResponse)
|
10019
|
+
raise obj
|
10020
|
+
else
|
10021
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
10022
|
+
end
|
10023
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
10024
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10025
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10026
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10027
|
+
hook_ctx: hook_ctx
|
10028
|
+
),
|
10029
|
+
response: http_response
|
10030
|
+
)
|
10031
|
+
response_data = http_response.env.response_body
|
10032
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::TooManyRequestsResponse)
|
10033
|
+
raise obj
|
10034
|
+
else
|
10035
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
10036
|
+
end
|
10037
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
10038
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10039
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10040
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10041
|
+
hook_ctx: hook_ctx
|
10042
|
+
),
|
10043
|
+
response: http_response
|
10044
|
+
)
|
10045
|
+
response_data = http_response.env.response_body
|
10046
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InternalServerErrorResponse)
|
10047
|
+
raise obj
|
10048
|
+
else
|
10049
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
10050
|
+
end
|
10051
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
10052
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10053
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10054
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10055
|
+
hook_ctx: hook_ctx
|
10056
|
+
),
|
10057
|
+
response: http_response
|
10058
|
+
)
|
10059
|
+
response_data = http_response.env.response_body
|
10060
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotImplementedResponse)
|
10061
|
+
raise obj
|
10062
|
+
else
|
10063
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
10064
|
+
end
|
10065
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
10066
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10067
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10068
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10069
|
+
hook_ctx: hook_ctx
|
10070
|
+
),
|
10071
|
+
response: http_response
|
10072
|
+
)
|
10073
|
+
response_data = http_response.env.response_body
|
10074
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadGatewayResponse)
|
10075
|
+
raise obj
|
10076
|
+
else
|
10077
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
10078
|
+
end
|
10079
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
10080
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10081
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
10082
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10083
|
+
else
|
10084
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
10085
|
+
|
10086
|
+
end
|
10087
|
+
end
|
10088
|
+
|
10089
|
+
|
10090
|
+
sig { params(request: Models::Operations::AtsGetOfferRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetOfferResponse) }
|
10091
|
+
def get_offer(request:, retries: nil, timeout_ms: nil)
|
10092
|
+
# get_offer - Get Offer
|
10093
|
+
url, params = @sdk_configuration.get_server_details
|
9506
10094
|
base_url = Utils.template_url(url, params)
|
9507
10095
|
url = Utils.generate_url(
|
9508
|
-
Models::Operations::
|
10096
|
+
Models::Operations::AtsGetOfferRequest,
|
9509
10097
|
base_url,
|
9510
|
-
'/unified/ats/
|
10098
|
+
'/unified/ats/offers/{id}',
|
9511
10099
|
request
|
9512
10100
|
)
|
9513
10101
|
headers = Utils.get_headers(request)
|
9514
10102
|
headers = T.cast(headers, T::Hash[String, String])
|
9515
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10103
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetOfferRequest, request, nil)
|
9516
10104
|
headers['Accept'] = 'application/json'
|
9517
10105
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9518
10106
|
retries ||= @sdk_configuration.retry_config
|
@@ -9542,7 +10130,7 @@ module StackOne
|
|
9542
10130
|
config: @sdk_configuration,
|
9543
10131
|
base_url: base_url,
|
9544
10132
|
oauth2_scopes: [],
|
9545
|
-
operation_id: '
|
10133
|
+
operation_id: 'ats_get_offer',
|
9546
10134
|
security_source: @sdk_configuration.security_source
|
9547
10135
|
)
|
9548
10136
|
|
@@ -9600,13 +10188,13 @@ module StackOne
|
|
9600
10188
|
response: http_response
|
9601
10189
|
)
|
9602
10190
|
response_data = http_response.env.response_body
|
9603
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9604
|
-
response = Models::Operations::
|
10191
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::OffersResult)
|
10192
|
+
response = Models::Operations::AtsGetOfferResponse.new(
|
9605
10193
|
status_code: http_response.status,
|
9606
10194
|
content_type: content_type,
|
9607
10195
|
raw_response: http_response,
|
9608
10196
|
headers: {},
|
9609
|
-
|
10197
|
+
offers_result: T.unsafe(obj)
|
9610
10198
|
)
|
9611
10199
|
|
9612
10200
|
return response
|
@@ -9792,20 +10380,20 @@ module StackOne
|
|
9792
10380
|
end
|
9793
10381
|
|
9794
10382
|
|
9795
|
-
sig { params(request: Models::Operations::
|
9796
|
-
def
|
9797
|
-
#
|
10383
|
+
sig { params(request: Models::Operations::AtsGetRejectedReasonRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetRejectedReasonResponse) }
|
10384
|
+
def get_rejected_reason(request:, retries: nil, timeout_ms: nil)
|
10385
|
+
# get_rejected_reason - Get Rejected Reason
|
9798
10386
|
url, params = @sdk_configuration.get_server_details
|
9799
10387
|
base_url = Utils.template_url(url, params)
|
9800
10388
|
url = Utils.generate_url(
|
9801
|
-
Models::Operations::
|
10389
|
+
Models::Operations::AtsGetRejectedReasonRequest,
|
9802
10390
|
base_url,
|
9803
|
-
'/unified/ats/
|
10391
|
+
'/unified/ats/rejected_reasons/{id}',
|
9804
10392
|
request
|
9805
10393
|
)
|
9806
10394
|
headers = Utils.get_headers(request)
|
9807
10395
|
headers = T.cast(headers, T::Hash[String, String])
|
9808
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10396
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetRejectedReasonRequest, request, nil)
|
9809
10397
|
headers['Accept'] = 'application/json'
|
9810
10398
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9811
10399
|
retries ||= @sdk_configuration.retry_config
|
@@ -9835,7 +10423,7 @@ module StackOne
|
|
9835
10423
|
config: @sdk_configuration,
|
9836
10424
|
base_url: base_url,
|
9837
10425
|
oauth2_scopes: [],
|
9838
|
-
operation_id: '
|
10426
|
+
operation_id: 'ats_get_rejected_reason',
|
9839
10427
|
security_source: @sdk_configuration.security_source
|
9840
10428
|
)
|
9841
10429
|
|
@@ -9893,13 +10481,13 @@ module StackOne
|
|
9893
10481
|
response: http_response
|
9894
10482
|
)
|
9895
10483
|
response_data = http_response.env.response_body
|
9896
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
9897
|
-
response = Models::Operations::
|
10484
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::RejectedReasonResult)
|
10485
|
+
response = Models::Operations::AtsGetRejectedReasonResponse.new(
|
9898
10486
|
status_code: http_response.status,
|
9899
10487
|
content_type: content_type,
|
9900
10488
|
raw_response: http_response,
|
9901
10489
|
headers: {},
|
9902
|
-
|
10490
|
+
rejected_reason_result: T.unsafe(obj)
|
9903
10491
|
)
|
9904
10492
|
|
9905
10493
|
return response
|
@@ -10085,20 +10673,20 @@ module StackOne
|
|
10085
10673
|
end
|
10086
10674
|
|
10087
10675
|
|
10088
|
-
sig { params(request: Models::Operations::
|
10089
|
-
def
|
10090
|
-
#
|
10676
|
+
sig { params(request: Models::Operations::AtsGetUserRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetUserResponse) }
|
10677
|
+
def get_user(request:, retries: nil, timeout_ms: nil)
|
10678
|
+
# get_user - Get User
|
10091
10679
|
url, params = @sdk_configuration.get_server_details
|
10092
10680
|
base_url = Utils.template_url(url, params)
|
10093
10681
|
url = Utils.generate_url(
|
10094
|
-
Models::Operations::
|
10682
|
+
Models::Operations::AtsGetUserRequest,
|
10095
10683
|
base_url,
|
10096
|
-
'/unified/ats/
|
10684
|
+
'/unified/ats/users/{id}',
|
10097
10685
|
request
|
10098
10686
|
)
|
10099
10687
|
headers = Utils.get_headers(request)
|
10100
10688
|
headers = T.cast(headers, T::Hash[String, String])
|
10101
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10689
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetUserRequest, request, nil)
|
10102
10690
|
headers['Accept'] = 'application/json'
|
10103
10691
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10104
10692
|
retries ||= @sdk_configuration.retry_config
|
@@ -10128,7 +10716,7 @@ module StackOne
|
|
10128
10716
|
config: @sdk_configuration,
|
10129
10717
|
base_url: base_url,
|
10130
10718
|
oauth2_scopes: [],
|
10131
|
-
operation_id: '
|
10719
|
+
operation_id: 'ats_get_user',
|
10132
10720
|
security_source: @sdk_configuration.security_source
|
10133
10721
|
)
|
10134
10722
|
|
@@ -10186,13 +10774,13 @@ module StackOne
|
|
10186
10774
|
response: http_response
|
10187
10775
|
)
|
10188
10776
|
response_data = http_response.env.response_body
|
10189
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
10190
|
-
response = Models::Operations::
|
10777
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::UserResult)
|
10778
|
+
response = Models::Operations::AtsGetUserResponse.new(
|
10191
10779
|
status_code: http_response.status,
|
10192
10780
|
content_type: content_type,
|
10193
10781
|
raw_response: http_response,
|
10194
10782
|
headers: {},
|
10195
|
-
|
10783
|
+
user_result: T.unsafe(obj)
|
10196
10784
|
)
|
10197
10785
|
|
10198
10786
|
return response
|
@@ -10378,20 +10966,20 @@ module StackOne
|
|
10378
10966
|
end
|
10379
10967
|
|
10380
10968
|
|
10381
|
-
sig { params(request: Models::Operations::
|
10382
|
-
def
|
10383
|
-
#
|
10969
|
+
sig { params(request: Models::Operations::AtsListApplicationChangesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationChangesResponse) }
|
10970
|
+
def list_application_changes(request:, retries: nil, timeout_ms: nil)
|
10971
|
+
# list_application_changes - List Application Changes
|
10384
10972
|
url, params = @sdk_configuration.get_server_details
|
10385
10973
|
base_url = Utils.template_url(url, params)
|
10386
10974
|
url = Utils.generate_url(
|
10387
|
-
Models::Operations::
|
10975
|
+
Models::Operations::AtsListApplicationChangesRequest,
|
10388
10976
|
base_url,
|
10389
|
-
'/unified/ats/
|
10977
|
+
'/unified/ats/applications/{id}/changes',
|
10390
10978
|
request
|
10391
10979
|
)
|
10392
10980
|
headers = Utils.get_headers(request)
|
10393
10981
|
headers = T.cast(headers, T::Hash[String, String])
|
10394
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10982
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationChangesRequest, request, nil)
|
10395
10983
|
headers['Accept'] = 'application/json'
|
10396
10984
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10397
10985
|
retries ||= @sdk_configuration.retry_config
|
@@ -10421,7 +11009,7 @@ module StackOne
|
|
10421
11009
|
config: @sdk_configuration,
|
10422
11010
|
base_url: base_url,
|
10423
11011
|
oauth2_scopes: [],
|
10424
|
-
operation_id: '
|
11012
|
+
operation_id: 'ats_list_application_changes',
|
10425
11013
|
security_source: @sdk_configuration.security_source
|
10426
11014
|
)
|
10427
11015
|
|
@@ -10479,14 +11067,41 @@ module StackOne
|
|
10479
11067
|
response: http_response
|
10480
11068
|
)
|
10481
11069
|
response_data = http_response.env.response_body
|
10482
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
10483
|
-
response = Models::Operations::
|
11070
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ApplicationChangesPaginated)
|
11071
|
+
response = Models::Operations::AtsListApplicationChangesResponse.new(
|
10484
11072
|
status_code: http_response.status,
|
10485
11073
|
content_type: content_type,
|
10486
11074
|
raw_response: http_response,
|
10487
11075
|
headers: {},
|
10488
|
-
|
11076
|
+
application_changes_paginated: T.unsafe(obj)
|
10489
11077
|
)
|
11078
|
+
sdk = self
|
11079
|
+
|
11080
|
+
response.next_page = proc do
|
11081
|
+
next_cursor = Janeway.enum_for('$.next', JSON.parse(response_data)).search
|
11082
|
+
if next_cursor.nil?
|
11083
|
+
next nil
|
11084
|
+
else
|
11085
|
+
next_cursor = next_cursor[0]
|
11086
|
+
if next_cursor.nil?
|
11087
|
+
next nil
|
11088
|
+
end
|
11089
|
+
end
|
11090
|
+
|
11091
|
+
sdk.list_application_changes(
|
11092
|
+
request: Models::Operations::AtsListApplicationChangesRequest.new(
|
11093
|
+
fields_: request.fields_,
|
11094
|
+
filter: request.filter,
|
11095
|
+
id: request.id,
|
11096
|
+
next_: next_cursor,
|
11097
|
+
page_size: request.page_size,
|
11098
|
+
proxy: request.proxy,
|
11099
|
+
raw: request.raw,
|
11100
|
+
x_account_id: request.x_account_id
|
11101
|
+
)
|
11102
|
+
)
|
11103
|
+
end
|
11104
|
+
|
10490
11105
|
|
10491
11106
|
return response
|
10492
11107
|
else
|
@@ -10671,20 +11286,15 @@ module StackOne
|
|
10671
11286
|
end
|
10672
11287
|
|
10673
11288
|
|
10674
|
-
sig { params(request: Models::Operations::
|
10675
|
-
def
|
10676
|
-
#
|
11289
|
+
sig { params(request: Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse) }
|
11290
|
+
def list_application_custom_field_definitions(request:, retries: nil, timeout_ms: nil)
|
11291
|
+
# list_application_custom_field_definitions - List Application Custom Field Definitions
|
10677
11292
|
url, params = @sdk_configuration.get_server_details
|
10678
11293
|
base_url = Utils.template_url(url, params)
|
10679
|
-
url =
|
10680
|
-
Models::Operations::AtsListApplicationChangesRequest,
|
10681
|
-
base_url,
|
10682
|
-
'/unified/ats/applications/{id}/changes',
|
10683
|
-
request
|
10684
|
-
)
|
11294
|
+
url = "#{base_url}/unified/ats/custom_field_definitions/applications"
|
10685
11295
|
headers = Utils.get_headers(request)
|
10686
11296
|
headers = T.cast(headers, T::Hash[String, String])
|
10687
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11297
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest, request, nil)
|
10688
11298
|
headers['Accept'] = 'application/json'
|
10689
11299
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10690
11300
|
retries ||= @sdk_configuration.retry_config
|
@@ -10714,7 +11324,7 @@ module StackOne
|
|
10714
11324
|
config: @sdk_configuration,
|
10715
11325
|
base_url: base_url,
|
10716
11326
|
oauth2_scopes: [],
|
10717
|
-
operation_id: '
|
11327
|
+
operation_id: 'ats_list_application_custom_field_definitions',
|
10718
11328
|
security_source: @sdk_configuration.security_source
|
10719
11329
|
)
|
10720
11330
|
|
@@ -10772,13 +11382,13 @@ module StackOne
|
|
10772
11382
|
response: http_response
|
10773
11383
|
)
|
10774
11384
|
response_data = http_response.env.response_body
|
10775
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
10776
|
-
response = Models::Operations::
|
11385
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::CustomFieldDefinitionsPaginated)
|
11386
|
+
response = Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse.new(
|
10777
11387
|
status_code: http_response.status,
|
10778
11388
|
content_type: content_type,
|
10779
11389
|
raw_response: http_response,
|
10780
11390
|
headers: {},
|
10781
|
-
|
11391
|
+
custom_field_definitions_paginated: T.unsafe(obj)
|
10782
11392
|
)
|
10783
11393
|
sdk = self
|
10784
11394
|
|
@@ -10793,15 +11403,16 @@ module StackOne
|
|
10793
11403
|
end
|
10794
11404
|
end
|
10795
11405
|
|
10796
|
-
sdk.
|
10797
|
-
request: Models::Operations::
|
11406
|
+
sdk.list_application_custom_field_definitions(
|
11407
|
+
request: Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest.new(
|
10798
11408
|
fields_: request.fields_,
|
10799
11409
|
filter: request.filter,
|
10800
|
-
id: request.id,
|
10801
11410
|
next_: next_cursor,
|
11411
|
+
page: request.page,
|
10802
11412
|
page_size: request.page_size,
|
10803
11413
|
proxy: request.proxy,
|
10804
11414
|
raw: request.raw,
|
11415
|
+
updated_after: request.updated_after,
|
10805
11416
|
x_account_id: request.x_account_id
|
10806
11417
|
)
|
10807
11418
|
)
|
@@ -10991,15 +11602,15 @@ module StackOne
|
|
10991
11602
|
end
|
10992
11603
|
|
10993
11604
|
|
10994
|
-
sig { params(request: Models::Operations::
|
10995
|
-
def
|
10996
|
-
#
|
11605
|
+
sig { params(request: Models::Operations::AtsListApplicationDocumentCategoriesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationDocumentCategoriesResponse) }
|
11606
|
+
def list_application_document_categories(request:, retries: nil, timeout_ms: nil)
|
11607
|
+
# list_application_document_categories - List Application Document Categories
|
10997
11608
|
url, params = @sdk_configuration.get_server_details
|
10998
11609
|
base_url = Utils.template_url(url, params)
|
10999
|
-
url = "#{base_url}/unified/ats/
|
11610
|
+
url = "#{base_url}/unified/ats/documents/application_categories"
|
11000
11611
|
headers = Utils.get_headers(request)
|
11001
11612
|
headers = T.cast(headers, T::Hash[String, String])
|
11002
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11613
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationDocumentCategoriesRequest, request, nil)
|
11003
11614
|
headers['Accept'] = 'application/json'
|
11004
11615
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11005
11616
|
retries ||= @sdk_configuration.retry_config
|
@@ -11029,7 +11640,7 @@ module StackOne
|
|
11029
11640
|
config: @sdk_configuration,
|
11030
11641
|
base_url: base_url,
|
11031
11642
|
oauth2_scopes: [],
|
11032
|
-
operation_id: '
|
11643
|
+
operation_id: 'ats_list_application_document_categories',
|
11033
11644
|
security_source: @sdk_configuration.security_source
|
11034
11645
|
)
|
11035
11646
|
|
@@ -11087,13 +11698,13 @@ module StackOne
|
|
11087
11698
|
response: http_response
|
11088
11699
|
)
|
11089
11700
|
response_data = http_response.env.response_body
|
11090
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
11091
|
-
response = Models::Operations::
|
11701
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ReferencePaginated)
|
11702
|
+
response = Models::Operations::AtsListApplicationDocumentCategoriesResponse.new(
|
11092
11703
|
status_code: http_response.status,
|
11093
11704
|
content_type: content_type,
|
11094
11705
|
raw_response: http_response,
|
11095
11706
|
headers: {},
|
11096
|
-
|
11707
|
+
reference_paginated: T.unsafe(obj)
|
11097
11708
|
)
|
11098
11709
|
sdk = self
|
11099
11710
|
|
@@ -11108,8 +11719,8 @@ module StackOne
|
|
11108
11719
|
end
|
11109
11720
|
end
|
11110
11721
|
|
11111
|
-
sdk.
|
11112
|
-
request: Models::Operations::
|
11722
|
+
sdk.list_application_document_categories(
|
11723
|
+
request: Models::Operations::AtsListApplicationDocumentCategoriesRequest.new(
|
11113
11724
|
fields_: request.fields_,
|
11114
11725
|
filter: request.filter,
|
11115
11726
|
next_: next_cursor,
|
@@ -11307,15 +11918,20 @@ module StackOne
|
|
11307
11918
|
end
|
11308
11919
|
|
11309
11920
|
|
11310
|
-
sig { params(request: Models::Operations::
|
11311
|
-
def
|
11312
|
-
#
|
11921
|
+
sig { params(request: Models::Operations::AtsListApplicationDocumentsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationDocumentsResponse) }
|
11922
|
+
def list_application_documents(request:, retries: nil, timeout_ms: nil)
|
11923
|
+
# list_application_documents - List Application Documents
|
11313
11924
|
url, params = @sdk_configuration.get_server_details
|
11314
11925
|
base_url = Utils.template_url(url, params)
|
11315
|
-
url =
|
11926
|
+
url = Utils.generate_url(
|
11927
|
+
Models::Operations::AtsListApplicationDocumentsRequest,
|
11928
|
+
base_url,
|
11929
|
+
'/unified/ats/applications/{id}/documents',
|
11930
|
+
request
|
11931
|
+
)
|
11316
11932
|
headers = Utils.get_headers(request)
|
11317
11933
|
headers = T.cast(headers, T::Hash[String, String])
|
11318
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11934
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationDocumentsRequest, request, nil)
|
11319
11935
|
headers['Accept'] = 'application/json'
|
11320
11936
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11321
11937
|
retries ||= @sdk_configuration.retry_config
|
@@ -11345,7 +11961,7 @@ module StackOne
|
|
11345
11961
|
config: @sdk_configuration,
|
11346
11962
|
base_url: base_url,
|
11347
11963
|
oauth2_scopes: [],
|
11348
|
-
operation_id: '
|
11964
|
+
operation_id: 'ats_list_application_documents',
|
11349
11965
|
security_source: @sdk_configuration.security_source
|
11350
11966
|
)
|
11351
11967
|
|
@@ -11403,13 +12019,13 @@ module StackOne
|
|
11403
12019
|
response: http_response
|
11404
12020
|
)
|
11405
12021
|
response_data = http_response.env.response_body
|
11406
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
11407
|
-
response = Models::Operations::
|
12022
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AtsDocumentsPaginated)
|
12023
|
+
response = Models::Operations::AtsListApplicationDocumentsResponse.new(
|
11408
12024
|
status_code: http_response.status,
|
11409
12025
|
content_type: content_type,
|
11410
12026
|
raw_response: http_response,
|
11411
12027
|
headers: {},
|
11412
|
-
|
12028
|
+
ats_documents_paginated: T.unsafe(obj)
|
11413
12029
|
)
|
11414
12030
|
sdk = self
|
11415
12031
|
|
@@ -11424,15 +12040,17 @@ module StackOne
|
|
11424
12040
|
end
|
11425
12041
|
end
|
11426
12042
|
|
11427
|
-
sdk.
|
11428
|
-
request: Models::Operations::
|
12043
|
+
sdk.list_application_documents(
|
12044
|
+
request: Models::Operations::AtsListApplicationDocumentsRequest.new(
|
11429
12045
|
fields_: request.fields_,
|
11430
12046
|
filter: request.filter,
|
12047
|
+
id: request.id,
|
11431
12048
|
next_: next_cursor,
|
11432
12049
|
page: request.page,
|
11433
12050
|
page_size: request.page_size,
|
11434
12051
|
proxy: request.proxy,
|
11435
12052
|
raw: request.raw,
|
12053
|
+
sync_token: request.sync_token,
|
11436
12054
|
updated_after: request.updated_after,
|
11437
12055
|
x_account_id: request.x_account_id
|
11438
12056
|
)
|
@@ -11623,20 +12241,20 @@ module StackOne
|
|
11623
12241
|
end
|
11624
12242
|
|
11625
12243
|
|
11626
|
-
sig { params(request: Models::Operations::
|
11627
|
-
def
|
11628
|
-
#
|
12244
|
+
sig { params(request: Models::Operations::AtsListApplicationNotesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationNotesResponse) }
|
12245
|
+
def list_application_notes(request:, retries: nil, timeout_ms: nil)
|
12246
|
+
# list_application_notes - List Application Notes
|
11629
12247
|
url, params = @sdk_configuration.get_server_details
|
11630
12248
|
base_url = Utils.template_url(url, params)
|
11631
12249
|
url = Utils.generate_url(
|
11632
|
-
Models::Operations::
|
12250
|
+
Models::Operations::AtsListApplicationNotesRequest,
|
11633
12251
|
base_url,
|
11634
|
-
'/unified/ats/applications/{id}/
|
12252
|
+
'/unified/ats/applications/{id}/notes',
|
11635
12253
|
request
|
11636
12254
|
)
|
11637
12255
|
headers = Utils.get_headers(request)
|
11638
12256
|
headers = T.cast(headers, T::Hash[String, String])
|
11639
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12257
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationNotesRequest, request, nil)
|
11640
12258
|
headers['Accept'] = 'application/json'
|
11641
12259
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11642
12260
|
retries ||= @sdk_configuration.retry_config
|
@@ -11666,7 +12284,7 @@ module StackOne
|
|
11666
12284
|
config: @sdk_configuration,
|
11667
12285
|
base_url: base_url,
|
11668
12286
|
oauth2_scopes: [],
|
11669
|
-
operation_id: '
|
12287
|
+
operation_id: 'ats_list_application_notes',
|
11670
12288
|
security_source: @sdk_configuration.security_source
|
11671
12289
|
)
|
11672
12290
|
|
@@ -11724,13 +12342,13 @@ module StackOne
|
|
11724
12342
|
response: http_response
|
11725
12343
|
)
|
11726
12344
|
response_data = http_response.env.response_body
|
11727
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
11728
|
-
response = Models::Operations::
|
12345
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::NotesPaginated)
|
12346
|
+
response = Models::Operations::AtsListApplicationNotesResponse.new(
|
11729
12347
|
status_code: http_response.status,
|
11730
12348
|
content_type: content_type,
|
11731
12349
|
raw_response: http_response,
|
11732
12350
|
headers: {},
|
11733
|
-
|
12351
|
+
notes_paginated: T.unsafe(obj)
|
11734
12352
|
)
|
11735
12353
|
sdk = self
|
11736
12354
|
|
@@ -11745,8 +12363,8 @@ module StackOne
|
|
11745
12363
|
end
|
11746
12364
|
end
|
11747
12365
|
|
11748
|
-
sdk.
|
11749
|
-
request: Models::Operations::
|
12366
|
+
sdk.list_application_notes(
|
12367
|
+
request: Models::Operations::AtsListApplicationNotesRequest.new(
|
11750
12368
|
fields_: request.fields_,
|
11751
12369
|
filter: request.filter,
|
11752
12370
|
id: request.id,
|
@@ -11946,20 +12564,20 @@ module StackOne
|
|
11946
12564
|
end
|
11947
12565
|
|
11948
12566
|
|
11949
|
-
sig { params(request: Models::Operations::
|
11950
|
-
def
|
11951
|
-
#
|
12567
|
+
sig { params(request: Models::Operations::AtsListApplicationScorecardsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationScorecardsResponse) }
|
12568
|
+
def list_application_scorecards(request:, retries: nil, timeout_ms: nil)
|
12569
|
+
# list_application_scorecards - List Application Scorecards
|
11952
12570
|
url, params = @sdk_configuration.get_server_details
|
11953
12571
|
base_url = Utils.template_url(url, params)
|
11954
12572
|
url = Utils.generate_url(
|
11955
|
-
Models::Operations::
|
12573
|
+
Models::Operations::AtsListApplicationScorecardsRequest,
|
11956
12574
|
base_url,
|
11957
|
-
'/unified/ats/applications/{id}/
|
12575
|
+
'/unified/ats/applications/{id}/scorecards',
|
11958
12576
|
request
|
11959
12577
|
)
|
11960
12578
|
headers = Utils.get_headers(request)
|
11961
12579
|
headers = T.cast(headers, T::Hash[String, String])
|
11962
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12580
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationScorecardsRequest, request, nil)
|
11963
12581
|
headers['Accept'] = 'application/json'
|
11964
12582
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11965
12583
|
retries ||= @sdk_configuration.retry_config
|
@@ -11989,7 +12607,7 @@ module StackOne
|
|
11989
12607
|
config: @sdk_configuration,
|
11990
12608
|
base_url: base_url,
|
11991
12609
|
oauth2_scopes: [],
|
11992
|
-
operation_id: '
|
12610
|
+
operation_id: 'ats_list_application_scorecards',
|
11993
12611
|
security_source: @sdk_configuration.security_source
|
11994
12612
|
)
|
11995
12613
|
|
@@ -12047,13 +12665,13 @@ module StackOne
|
|
12047
12665
|
response: http_response
|
12048
12666
|
)
|
12049
12667
|
response_data = http_response.env.response_body
|
12050
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
12051
|
-
response = Models::Operations::
|
12668
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ScorecardsPaginated)
|
12669
|
+
response = Models::Operations::AtsListApplicationScorecardsResponse.new(
|
12052
12670
|
status_code: http_response.status,
|
12053
12671
|
content_type: content_type,
|
12054
12672
|
raw_response: http_response,
|
12055
12673
|
headers: {},
|
12056
|
-
|
12674
|
+
scorecards_paginated: T.unsafe(obj)
|
12057
12675
|
)
|
12058
12676
|
sdk = self
|
12059
12677
|
|
@@ -12068,8 +12686,8 @@ module StackOne
|
|
12068
12686
|
end
|
12069
12687
|
end
|
12070
12688
|
|
12071
|
-
sdk.
|
12072
|
-
request: Models::Operations::
|
12689
|
+
sdk.list_application_scorecards(
|
12690
|
+
request: Models::Operations::AtsListApplicationScorecardsRequest.new(
|
12073
12691
|
fields_: request.fields_,
|
12074
12692
|
filter: request.filter,
|
12075
12693
|
id: request.id,
|
@@ -12269,20 +12887,15 @@ module StackOne
|
|
12269
12887
|
end
|
12270
12888
|
|
12271
12889
|
|
12272
|
-
sig { params(request: Models::Operations::
|
12273
|
-
def
|
12274
|
-
#
|
12890
|
+
sig { params(request: Models::Operations::AtsListApplicationStagesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationStagesResponse) }
|
12891
|
+
def list_application_stages(request:, retries: nil, timeout_ms: nil)
|
12892
|
+
# list_application_stages - List Application Stages
|
12275
12893
|
url, params = @sdk_configuration.get_server_details
|
12276
12894
|
base_url = Utils.template_url(url, params)
|
12277
|
-
url =
|
12278
|
-
Models::Operations::AtsListApplicationScorecardsRequest,
|
12279
|
-
base_url,
|
12280
|
-
'/unified/ats/applications/{id}/scorecards',
|
12281
|
-
request
|
12282
|
-
)
|
12895
|
+
url = "#{base_url}/unified/ats/application_stages"
|
12283
12896
|
headers = Utils.get_headers(request)
|
12284
12897
|
headers = T.cast(headers, T::Hash[String, String])
|
12285
|
-
query_params = Utils.get_query_params(Models::Operations::
|
12898
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationStagesRequest, request, nil)
|
12286
12899
|
headers['Accept'] = 'application/json'
|
12287
12900
|
headers['user-agent'] = @sdk_configuration.user_agent
|
12288
12901
|
retries ||= @sdk_configuration.retry_config
|
@@ -12312,7 +12925,7 @@ module StackOne
|
|
12312
12925
|
config: @sdk_configuration,
|
12313
12926
|
base_url: base_url,
|
12314
12927
|
oauth2_scopes: [],
|
12315
|
-
operation_id: '
|
12928
|
+
operation_id: 'ats_list_application_stages',
|
12316
12929
|
security_source: @sdk_configuration.security_source
|
12317
12930
|
)
|
12318
12931
|
|
@@ -12370,13 +12983,13 @@ module StackOne
|
|
12370
12983
|
response: http_response
|
12371
12984
|
)
|
12372
12985
|
response_data = http_response.env.response_body
|
12373
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
12374
|
-
response = Models::Operations::
|
12986
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::InterviewStagesPaginated)
|
12987
|
+
response = Models::Operations::AtsListApplicationStagesResponse.new(
|
12375
12988
|
status_code: http_response.status,
|
12376
12989
|
content_type: content_type,
|
12377
12990
|
raw_response: http_response,
|
12378
12991
|
headers: {},
|
12379
|
-
|
12992
|
+
interview_stages_paginated: T.unsafe(obj)
|
12380
12993
|
)
|
12381
12994
|
sdk = self
|
12382
12995
|
|
@@ -12391,11 +13004,10 @@ module StackOne
|
|
12391
13004
|
end
|
12392
13005
|
end
|
12393
13006
|
|
12394
|
-
sdk.
|
12395
|
-
request: Models::Operations::
|
13007
|
+
sdk.list_application_stages(
|
13008
|
+
request: Models::Operations::AtsListApplicationStagesRequest.new(
|
12396
13009
|
fields_: request.fields_,
|
12397
13010
|
filter: request.filter,
|
12398
|
-
id: request.id,
|
12399
13011
|
next_: next_cursor,
|
12400
13012
|
page: request.page,
|
12401
13013
|
page_size: request.page_size,
|
@@ -15467,6 +16079,8 @@ module StackOne
|
|
15467
16079
|
sig { params(request: Models::Operations::AtsListInterviewStagesRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListInterviewStagesResponse) }
|
15468
16080
|
def list_interview_stages(request:, retries: nil, timeout_ms: nil)
|
15469
16081
|
# list_interview_stages - List Interview Stages
|
16082
|
+
#
|
16083
|
+
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
15470
16084
|
url, params = @sdk_configuration.get_server_details
|
15471
16085
|
base_url = Utils.template_url(url, params)
|
15472
16086
|
url = "#{base_url}/unified/ats/interview_stages"
|