stackone_client 0.19.0 → 0.23.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/ats.rb +264 -1087
- data/lib/stack_one/lms.rb +292 -0
- data/lib/stack_one/models/operations/lms_update_content_request.rb +41 -0
- data/lib/stack_one/models/operations/{ats_get_assessments_request_response.rb → lms_update_content_response.rb} +7 -7
- data/lib/stack_one/models/operations/queryparam_type.rb +6 -1
- data/lib/stack_one/models/operations/type.rb +6 -1
- data/lib/stack_one/models/operations.rb +2 -7
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/atscreatebackgroundcheckorderrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/completion.rb +6 -2
- data/lib/stack_one/models/shared/connectsession.rb +6 -2
- data/lib/stack_one/models/shared/connectsession_type.rb +21 -0
- data/lib/stack_one/models/shared/connectsessioncreate.rb +6 -2
- data/lib/stack_one/models/shared/connectsessioncreate_type.rb +20 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink.rb +6 -2
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_type.rb +21 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +6 -1
- data/lib/stack_one/models/shared/linkedaccount.rb +6 -2
- data/lib/stack_one/models/shared/linkedaccount_type.rb +21 -0
- data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +111 -0
- data/lib/stack_one/models/shared/{assessmentorder_4.rb → lmscreatecontentrequestdto_4.rb} +1 -1
- data/lib/stack_one/models/shared/{assessmentorder_application_status.rb → lmscreatecontentrequestdto_content_type.rb} +7 -7
- data/lib/stack_one/models/shared/{backgroundcheckorder_4.rb → lmscreatecontentrequestdto_source_value.rb} +1 -1
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_value.rb +24 -0
- data/lib/stack_one/models/shared/patchaccountexternaldto.rb +6 -2
- data/lib/stack_one/models/shared/patchaccountexternaldto_type.rb +20 -0
- data/lib/stack_one/models/shared/rawresponse.rb +2 -2
- data/lib/stack_one/models/shared/response.rb +3 -24
- data/lib/stack_one/models/shared/steplog.rb +2 -2
- data/lib/stack_one/models/shared/steplog_response.rb +49 -0
- data/lib/stack_one/models/shared/timeoff_schemas_policy_type_value.rb +16 -4
- data/lib/stack_one/models/shared/timeoff_schemas_value.rb +6 -1
- data/lib/stack_one/models/shared/timeoffbalances_schemas_policy_value.rb +16 -4
- data/lib/stack_one/models/shared/timeoffpolicies_schemas_value.rb +16 -4
- data/lib/stack_one/models/shared.rb +11 -23
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +15 -32
- data/lib/stack_one/models/operations/ats_get_assessments_request_request.rb +0 -49
- data/lib/stack_one/models/operations/ats_get_background_check_request_request.rb +0 -49
- data/lib/stack_one/models/operations/ats_get_background_check_request_response.rb +0 -49
- data/lib/stack_one/models/operations/ats_list_background_check_request_queryparam_filter.rb +0 -33
- data/lib/stack_one/models/operations/ats_list_background_check_request_request.rb +0 -69
- data/lib/stack_one/models/operations/ats_list_background_check_request_response.rb +0 -49
- data/lib/stack_one/models/shared/assessmentorder.rb +0 -61
- data/lib/stack_one/models/shared/assessmentorder_application.rb +0 -45
- data/lib/stack_one/models/shared/assessmentorder_candidate.rb +0 -57
- data/lib/stack_one/models/shared/assessmentorder_job.rb +0 -49
- data/lib/stack_one/models/shared/assessmentorder_package.rb +0 -45
- data/lib/stack_one/models/shared/assessmentorder_source_value.rb +0 -28
- data/lib/stack_one/models/shared/assessmentorder_value.rb +0 -38
- data/lib/stack_one/models/shared/assessmentorderresult.rb +0 -37
- data/lib/stack_one/models/shared/atscreatebackgroundcheckorderrequestdto_requester.rb +0 -53
- data/lib/stack_one/models/shared/backgroundcheckorder.rb +0 -61
- data/lib/stack_one/models/shared/backgroundcheckorder_application.rb +0 -45
- data/lib/stack_one/models/shared/backgroundcheckorder_application_status.rb +0 -37
- data/lib/stack_one/models/shared/backgroundcheckorder_candidate.rb +0 -57
- data/lib/stack_one/models/shared/backgroundcheckorder_job.rb +0 -49
- data/lib/stack_one/models/shared/backgroundcheckorder_package.rb +0 -49
- data/lib/stack_one/models/shared/backgroundcheckorder_requester.rb +0 -53
- data/lib/stack_one/models/shared/backgroundcheckorder_source_value.rb +0 -28
- data/lib/stack_one/models/shared/backgroundcheckorder_value.rb +0 -38
- data/lib/stack_one/models/shared/backgroundcheckorderpaginated.rb +0 -45
- data/lib/stack_one/models/shared/backgroundcheckorderresult.rb +0 -37
data/lib/stack_one/ats.rb
CHANGED
@@ -4798,19 +4798,19 @@ module StackOne
|
|
4798
4798
|
end
|
4799
4799
|
|
4800
4800
|
|
4801
|
-
sig { params(request: T.nilable(Models::Operations::
|
4802
|
-
def
|
4803
|
-
#
|
4801
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetAssessmentsResultRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetAssessmentsResultResponse) }
|
4802
|
+
def get_assessments_result(request, retries = nil, timeout_ms = nil)
|
4803
|
+
# get_assessments_result - Get Assessments Results
|
4804
4804
|
url, params = @sdk_configuration.get_server_details
|
4805
4805
|
base_url = Utils.template_url(url, params)
|
4806
4806
|
url = Utils.generate_url(
|
4807
|
-
Models::Operations::
|
4807
|
+
Models::Operations::AtsGetAssessmentsResultRequest,
|
4808
4808
|
base_url,
|
4809
|
-
'/unified/ats/assessments/orders/{id}',
|
4809
|
+
'/unified/ats/assessments/orders/{id}/results',
|
4810
4810
|
request
|
4811
4811
|
)
|
4812
4812
|
headers = Utils.get_headers(request)
|
4813
|
-
query_params = Utils.get_query_params(Models::Operations::
|
4813
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetAssessmentsResultRequest, request)
|
4814
4814
|
headers['Accept'] = 'application/json'
|
4815
4815
|
headers['user-agent'] = @sdk_configuration.user_agent
|
4816
4816
|
retries ||= @sdk_configuration.retry_config
|
@@ -4838,7 +4838,7 @@ module StackOne
|
|
4838
4838
|
hook_ctx = SDKHooks::HookContext.new(
|
4839
4839
|
base_url: base_url,
|
4840
4840
|
oauth2_scopes: [],
|
4841
|
-
operation_id: '
|
4841
|
+
operation_id: 'ats_get_assessments_result',
|
4842
4842
|
security_source: @sdk_configuration.security_source
|
4843
4843
|
)
|
4844
4844
|
|
@@ -4895,12 +4895,12 @@ module StackOne
|
|
4895
4895
|
),
|
4896
4896
|
response: http_response
|
4897
4897
|
)
|
4898
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
4899
|
-
response = Models::Operations::
|
4898
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::AssessmentResultsResult)
|
4899
|
+
response = Models::Operations::AtsGetAssessmentsResultResponse.new(
|
4900
4900
|
status_code: http_response.status,
|
4901
4901
|
content_type: content_type,
|
4902
4902
|
raw_response: http_response,
|
4903
|
-
|
4903
|
+
assessment_results_result: obj
|
4904
4904
|
)
|
4905
4905
|
|
4906
4906
|
return response
|
@@ -5074,19 +5074,19 @@ module StackOne
|
|
5074
5074
|
end
|
5075
5075
|
|
5076
5076
|
|
5077
|
-
sig { params(request: T.nilable(Models::Operations::
|
5078
|
-
def
|
5079
|
-
#
|
5077
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetBackgroundCheckPackageRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetBackgroundCheckPackageResponse) }
|
5078
|
+
def get_background_check_package(request, retries = nil, timeout_ms = nil)
|
5079
|
+
# get_background_check_package - Get Background Check Package
|
5080
5080
|
url, params = @sdk_configuration.get_server_details
|
5081
5081
|
base_url = Utils.template_url(url, params)
|
5082
5082
|
url = Utils.generate_url(
|
5083
|
-
Models::Operations::
|
5083
|
+
Models::Operations::AtsGetBackgroundCheckPackageRequest,
|
5084
5084
|
base_url,
|
5085
|
-
'/unified/ats/
|
5085
|
+
'/unified/ats/background_checks/packages/{id}',
|
5086
5086
|
request
|
5087
5087
|
)
|
5088
5088
|
headers = Utils.get_headers(request)
|
5089
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5089
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetBackgroundCheckPackageRequest, request)
|
5090
5090
|
headers['Accept'] = 'application/json'
|
5091
5091
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5092
5092
|
retries ||= @sdk_configuration.retry_config
|
@@ -5114,7 +5114,7 @@ module StackOne
|
|
5114
5114
|
hook_ctx = SDKHooks::HookContext.new(
|
5115
5115
|
base_url: base_url,
|
5116
5116
|
oauth2_scopes: [],
|
5117
|
-
operation_id: '
|
5117
|
+
operation_id: 'ats_get_background_check_package',
|
5118
5118
|
security_source: @sdk_configuration.security_source
|
5119
5119
|
)
|
5120
5120
|
|
@@ -5171,12 +5171,12 @@ module StackOne
|
|
5171
5171
|
),
|
5172
5172
|
response: http_response
|
5173
5173
|
)
|
5174
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
5175
|
-
response = Models::Operations::
|
5174
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::BackgroundCheckPackageResult)
|
5175
|
+
response = Models::Operations::AtsGetBackgroundCheckPackageResponse.new(
|
5176
5176
|
status_code: http_response.status,
|
5177
5177
|
content_type: content_type,
|
5178
5178
|
raw_response: http_response,
|
5179
|
-
|
5179
|
+
background_check_package_result: obj
|
5180
5180
|
)
|
5181
5181
|
|
5182
5182
|
return response
|
@@ -5350,19 +5350,19 @@ module StackOne
|
|
5350
5350
|
end
|
5351
5351
|
|
5352
5352
|
|
5353
|
-
sig { params(request: T.nilable(Models::Operations::
|
5354
|
-
def
|
5355
|
-
#
|
5353
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetBackgroundCheckResultRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetBackgroundCheckResultResponse) }
|
5354
|
+
def get_background_check_result(request, retries = nil, timeout_ms = nil)
|
5355
|
+
# get_background_check_result - Get Background Check Results
|
5356
5356
|
url, params = @sdk_configuration.get_server_details
|
5357
5357
|
base_url = Utils.template_url(url, params)
|
5358
5358
|
url = Utils.generate_url(
|
5359
|
-
Models::Operations::
|
5359
|
+
Models::Operations::AtsGetBackgroundCheckResultRequest,
|
5360
5360
|
base_url,
|
5361
|
-
'/unified/ats/background_checks/
|
5361
|
+
'/unified/ats/background_checks/orders/{id}/results',
|
5362
5362
|
request
|
5363
5363
|
)
|
5364
5364
|
headers = Utils.get_headers(request)
|
5365
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5365
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetBackgroundCheckResultRequest, request)
|
5366
5366
|
headers['Accept'] = 'application/json'
|
5367
5367
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5368
5368
|
retries ||= @sdk_configuration.retry_config
|
@@ -5390,7 +5390,7 @@ module StackOne
|
|
5390
5390
|
hook_ctx = SDKHooks::HookContext.new(
|
5391
5391
|
base_url: base_url,
|
5392
5392
|
oauth2_scopes: [],
|
5393
|
-
operation_id: '
|
5393
|
+
operation_id: 'ats_get_background_check_result',
|
5394
5394
|
security_source: @sdk_configuration.security_source
|
5395
5395
|
)
|
5396
5396
|
|
@@ -5447,12 +5447,12 @@ module StackOne
|
|
5447
5447
|
),
|
5448
5448
|
response: http_response
|
5449
5449
|
)
|
5450
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
5451
|
-
response = Models::Operations::
|
5450
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::BackgroundCheckResultsResult)
|
5451
|
+
response = Models::Operations::AtsGetBackgroundCheckResultResponse.new(
|
5452
5452
|
status_code: http_response.status,
|
5453
5453
|
content_type: content_type,
|
5454
5454
|
raw_response: http_response,
|
5455
|
-
|
5455
|
+
background_check_results_result: obj
|
5456
5456
|
)
|
5457
5457
|
|
5458
5458
|
return response
|
@@ -5626,19 +5626,19 @@ module StackOne
|
|
5626
5626
|
end
|
5627
5627
|
|
5628
5628
|
|
5629
|
-
sig { params(request: T.nilable(Models::Operations::
|
5630
|
-
def
|
5631
|
-
#
|
5629
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetCandidateRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateResponse) }
|
5630
|
+
def get_candidate(request, retries = nil, timeout_ms = nil)
|
5631
|
+
# get_candidate - Get Candidate
|
5632
5632
|
url, params = @sdk_configuration.get_server_details
|
5633
5633
|
base_url = Utils.template_url(url, params)
|
5634
5634
|
url = Utils.generate_url(
|
5635
|
-
Models::Operations::
|
5635
|
+
Models::Operations::AtsGetCandidateRequest,
|
5636
5636
|
base_url,
|
5637
|
-
'/unified/ats/
|
5637
|
+
'/unified/ats/candidates/{id}',
|
5638
5638
|
request
|
5639
5639
|
)
|
5640
5640
|
headers = Utils.get_headers(request)
|
5641
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5641
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetCandidateRequest, request)
|
5642
5642
|
headers['Accept'] = 'application/json'
|
5643
5643
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5644
5644
|
retries ||= @sdk_configuration.retry_config
|
@@ -5666,7 +5666,7 @@ module StackOne
|
|
5666
5666
|
hook_ctx = SDKHooks::HookContext.new(
|
5667
5667
|
base_url: base_url,
|
5668
5668
|
oauth2_scopes: [],
|
5669
|
-
operation_id: '
|
5669
|
+
operation_id: 'ats_get_candidate',
|
5670
5670
|
security_source: @sdk_configuration.security_source
|
5671
5671
|
)
|
5672
5672
|
|
@@ -5723,12 +5723,12 @@ module StackOne
|
|
5723
5723
|
),
|
5724
5724
|
response: http_response
|
5725
5725
|
)
|
5726
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
5727
|
-
response = Models::Operations::
|
5726
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CandidateResult)
|
5727
|
+
response = Models::Operations::AtsGetCandidateResponse.new(
|
5728
5728
|
status_code: http_response.status,
|
5729
5729
|
content_type: content_type,
|
5730
5730
|
raw_response: http_response,
|
5731
|
-
|
5731
|
+
candidate_result: obj
|
5732
5732
|
)
|
5733
5733
|
|
5734
5734
|
return response
|
@@ -5902,19 +5902,19 @@ module StackOne
|
|
5902
5902
|
end
|
5903
5903
|
|
5904
5904
|
|
5905
|
-
sig { params(request: T.nilable(Models::Operations::
|
5906
|
-
def
|
5907
|
-
#
|
5905
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetCandidateCustomFieldDefinitionRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateCustomFieldDefinitionResponse) }
|
5906
|
+
def get_candidate_custom_field_definition(request, retries = nil, timeout_ms = nil)
|
5907
|
+
# get_candidate_custom_field_definition - Get Candidate Custom Field Definition
|
5908
5908
|
url, params = @sdk_configuration.get_server_details
|
5909
5909
|
base_url = Utils.template_url(url, params)
|
5910
5910
|
url = Utils.generate_url(
|
5911
|
-
Models::Operations::
|
5911
|
+
Models::Operations::AtsGetCandidateCustomFieldDefinitionRequest,
|
5912
5912
|
base_url,
|
5913
|
-
'/unified/ats/
|
5913
|
+
'/unified/ats/custom_field_definitions/candidates/{id}',
|
5914
5914
|
request
|
5915
5915
|
)
|
5916
5916
|
headers = Utils.get_headers(request)
|
5917
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5917
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetCandidateCustomFieldDefinitionRequest, request)
|
5918
5918
|
headers['Accept'] = 'application/json'
|
5919
5919
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5920
5920
|
retries ||= @sdk_configuration.retry_config
|
@@ -5942,7 +5942,7 @@ module StackOne
|
|
5942
5942
|
hook_ctx = SDKHooks::HookContext.new(
|
5943
5943
|
base_url: base_url,
|
5944
5944
|
oauth2_scopes: [],
|
5945
|
-
operation_id: '
|
5945
|
+
operation_id: 'ats_get_candidate_custom_field_definition',
|
5946
5946
|
security_source: @sdk_configuration.security_source
|
5947
5947
|
)
|
5948
5948
|
|
@@ -5999,12 +5999,12 @@ module StackOne
|
|
5999
5999
|
),
|
6000
6000
|
response: http_response
|
6001
6001
|
)
|
6002
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
6003
|
-
response = Models::Operations::
|
6002
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CustomFieldDefinitionResultApiModel)
|
6003
|
+
response = Models::Operations::AtsGetCandidateCustomFieldDefinitionResponse.new(
|
6004
6004
|
status_code: http_response.status,
|
6005
6005
|
content_type: content_type,
|
6006
6006
|
raw_response: http_response,
|
6007
|
-
|
6007
|
+
custom_field_definition_result_api_model: obj
|
6008
6008
|
)
|
6009
6009
|
|
6010
6010
|
return response
|
@@ -6178,19 +6178,19 @@ module StackOne
|
|
6178
6178
|
end
|
6179
6179
|
|
6180
6180
|
|
6181
|
-
sig { params(request: T.nilable(Models::Operations::
|
6182
|
-
def
|
6183
|
-
#
|
6181
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetCandidateNoteRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateNoteResponse) }
|
6182
|
+
def get_candidate_note(request, retries = nil, timeout_ms = nil)
|
6183
|
+
# get_candidate_note - Get Candidate Note
|
6184
6184
|
url, params = @sdk_configuration.get_server_details
|
6185
6185
|
base_url = Utils.template_url(url, params)
|
6186
6186
|
url = Utils.generate_url(
|
6187
|
-
Models::Operations::
|
6187
|
+
Models::Operations::AtsGetCandidateNoteRequest,
|
6188
6188
|
base_url,
|
6189
|
-
'/unified/ats/candidates/{id}',
|
6189
|
+
'/unified/ats/candidates/{id}/notes/{subResourceId}',
|
6190
6190
|
request
|
6191
6191
|
)
|
6192
6192
|
headers = Utils.get_headers(request)
|
6193
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6193
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetCandidateNoteRequest, request)
|
6194
6194
|
headers['Accept'] = 'application/json'
|
6195
6195
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6196
6196
|
retries ||= @sdk_configuration.retry_config
|
@@ -6218,7 +6218,7 @@ module StackOne
|
|
6218
6218
|
hook_ctx = SDKHooks::HookContext.new(
|
6219
6219
|
base_url: base_url,
|
6220
6220
|
oauth2_scopes: [],
|
6221
|
-
operation_id: '
|
6221
|
+
operation_id: 'ats_get_candidate_note',
|
6222
6222
|
security_source: @sdk_configuration.security_source
|
6223
6223
|
)
|
6224
6224
|
|
@@ -6275,12 +6275,12 @@ module StackOne
|
|
6275
6275
|
),
|
6276
6276
|
response: http_response
|
6277
6277
|
)
|
6278
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
6279
|
-
response = Models::Operations::
|
6278
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::NoteResult)
|
6279
|
+
response = Models::Operations::AtsGetCandidateNoteResponse.new(
|
6280
6280
|
status_code: http_response.status,
|
6281
6281
|
content_type: content_type,
|
6282
6282
|
raw_response: http_response,
|
6283
|
-
|
6283
|
+
note_result: obj
|
6284
6284
|
)
|
6285
6285
|
|
6286
6286
|
return response
|
@@ -6454,19 +6454,19 @@ module StackOne
|
|
6454
6454
|
end
|
6455
6455
|
|
6456
6456
|
|
6457
|
-
sig { params(request: T.nilable(Models::Operations::
|
6458
|
-
def
|
6459
|
-
#
|
6457
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetDepartmentRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetDepartmentResponse) }
|
6458
|
+
def get_department(request, retries = nil, timeout_ms = nil)
|
6459
|
+
# get_department - Get Department
|
6460
6460
|
url, params = @sdk_configuration.get_server_details
|
6461
6461
|
base_url = Utils.template_url(url, params)
|
6462
6462
|
url = Utils.generate_url(
|
6463
|
-
Models::Operations::
|
6463
|
+
Models::Operations::AtsGetDepartmentRequest,
|
6464
6464
|
base_url,
|
6465
|
-
'/unified/ats/
|
6465
|
+
'/unified/ats/departments/{id}',
|
6466
6466
|
request
|
6467
6467
|
)
|
6468
6468
|
headers = Utils.get_headers(request)
|
6469
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6469
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetDepartmentRequest, request)
|
6470
6470
|
headers['Accept'] = 'application/json'
|
6471
6471
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6472
6472
|
retries ||= @sdk_configuration.retry_config
|
@@ -6494,7 +6494,7 @@ module StackOne
|
|
6494
6494
|
hook_ctx = SDKHooks::HookContext.new(
|
6495
6495
|
base_url: base_url,
|
6496
6496
|
oauth2_scopes: [],
|
6497
|
-
operation_id: '
|
6497
|
+
operation_id: 'ats_get_department',
|
6498
6498
|
security_source: @sdk_configuration.security_source
|
6499
6499
|
)
|
6500
6500
|
|
@@ -6551,12 +6551,12 @@ module StackOne
|
|
6551
6551
|
),
|
6552
6552
|
response: http_response
|
6553
6553
|
)
|
6554
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
6555
|
-
response = Models::Operations::
|
6554
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::DepartmentResult)
|
6555
|
+
response = Models::Operations::AtsGetDepartmentResponse.new(
|
6556
6556
|
status_code: http_response.status,
|
6557
6557
|
content_type: content_type,
|
6558
6558
|
raw_response: http_response,
|
6559
|
-
|
6559
|
+
department_result: obj
|
6560
6560
|
)
|
6561
6561
|
|
6562
6562
|
return response
|
@@ -6730,19 +6730,19 @@ module StackOne
|
|
6730
6730
|
end
|
6731
6731
|
|
6732
6732
|
|
6733
|
-
sig { params(request: T.nilable(Models::Operations::
|
6734
|
-
def
|
6735
|
-
#
|
6733
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetInterviewRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetInterviewResponse) }
|
6734
|
+
def get_interview(request, retries = nil, timeout_ms = nil)
|
6735
|
+
# get_interview - Get Interview
|
6736
6736
|
url, params = @sdk_configuration.get_server_details
|
6737
6737
|
base_url = Utils.template_url(url, params)
|
6738
6738
|
url = Utils.generate_url(
|
6739
|
-
Models::Operations::
|
6739
|
+
Models::Operations::AtsGetInterviewRequest,
|
6740
6740
|
base_url,
|
6741
|
-
'/unified/ats/
|
6741
|
+
'/unified/ats/interviews/{id}',
|
6742
6742
|
request
|
6743
6743
|
)
|
6744
6744
|
headers = Utils.get_headers(request)
|
6745
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6745
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetInterviewRequest, request)
|
6746
6746
|
headers['Accept'] = 'application/json'
|
6747
6747
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6748
6748
|
retries ||= @sdk_configuration.retry_config
|
@@ -6770,7 +6770,7 @@ module StackOne
|
|
6770
6770
|
hook_ctx = SDKHooks::HookContext.new(
|
6771
6771
|
base_url: base_url,
|
6772
6772
|
oauth2_scopes: [],
|
6773
|
-
operation_id: '
|
6773
|
+
operation_id: 'ats_get_interview',
|
6774
6774
|
security_source: @sdk_configuration.security_source
|
6775
6775
|
)
|
6776
6776
|
|
@@ -6827,12 +6827,12 @@ module StackOne
|
|
6827
6827
|
),
|
6828
6828
|
response: http_response
|
6829
6829
|
)
|
6830
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
6831
|
-
response = Models::Operations::
|
6830
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::InterviewsResult)
|
6831
|
+
response = Models::Operations::AtsGetInterviewResponse.new(
|
6832
6832
|
status_code: http_response.status,
|
6833
6833
|
content_type: content_type,
|
6834
6834
|
raw_response: http_response,
|
6835
|
-
|
6835
|
+
interviews_result: obj
|
6836
6836
|
)
|
6837
6837
|
|
6838
6838
|
return response
|
@@ -7006,19 +7006,19 @@ module StackOne
|
|
7006
7006
|
end
|
7007
7007
|
|
7008
7008
|
|
7009
|
-
sig { params(request: T.nilable(Models::Operations::
|
7010
|
-
def
|
7011
|
-
#
|
7009
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetInterviewStageRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetInterviewStageResponse) }
|
7010
|
+
def get_interview_stage(request, retries = nil, timeout_ms = nil)
|
7011
|
+
# get_interview_stage - Get Interview Stage
|
7012
7012
|
url, params = @sdk_configuration.get_server_details
|
7013
7013
|
base_url = Utils.template_url(url, params)
|
7014
7014
|
url = Utils.generate_url(
|
7015
|
-
Models::Operations::
|
7015
|
+
Models::Operations::AtsGetInterviewStageRequest,
|
7016
7016
|
base_url,
|
7017
|
-
'/unified/ats/
|
7017
|
+
'/unified/ats/interview_stages/{id}',
|
7018
7018
|
request
|
7019
7019
|
)
|
7020
7020
|
headers = Utils.get_headers(request)
|
7021
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7021
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetInterviewStageRequest, request)
|
7022
7022
|
headers['Accept'] = 'application/json'
|
7023
7023
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7024
7024
|
retries ||= @sdk_configuration.retry_config
|
@@ -7046,7 +7046,7 @@ module StackOne
|
|
7046
7046
|
hook_ctx = SDKHooks::HookContext.new(
|
7047
7047
|
base_url: base_url,
|
7048
7048
|
oauth2_scopes: [],
|
7049
|
-
operation_id: '
|
7049
|
+
operation_id: 'ats_get_interview_stage',
|
7050
7050
|
security_source: @sdk_configuration.security_source
|
7051
7051
|
)
|
7052
7052
|
|
@@ -7103,12 +7103,12 @@ module StackOne
|
|
7103
7103
|
),
|
7104
7104
|
response: http_response
|
7105
7105
|
)
|
7106
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7107
|
-
response = Models::Operations::
|
7106
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::InterviewStageResult)
|
7107
|
+
response = Models::Operations::AtsGetInterviewStageResponse.new(
|
7108
7108
|
status_code: http_response.status,
|
7109
7109
|
content_type: content_type,
|
7110
7110
|
raw_response: http_response,
|
7111
|
-
|
7111
|
+
interview_stage_result: obj
|
7112
7112
|
)
|
7113
7113
|
|
7114
7114
|
return response
|
@@ -7282,19 +7282,19 @@ module StackOne
|
|
7282
7282
|
end
|
7283
7283
|
|
7284
7284
|
|
7285
|
-
sig { params(request: T.nilable(Models::Operations::
|
7286
|
-
def
|
7287
|
-
#
|
7285
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetJobRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobResponse) }
|
7286
|
+
def get_job(request, retries = nil, timeout_ms = nil)
|
7287
|
+
# get_job - Get Job
|
7288
7288
|
url, params = @sdk_configuration.get_server_details
|
7289
7289
|
base_url = Utils.template_url(url, params)
|
7290
7290
|
url = Utils.generate_url(
|
7291
|
-
Models::Operations::
|
7291
|
+
Models::Operations::AtsGetJobRequest,
|
7292
7292
|
base_url,
|
7293
|
-
'/unified/ats/
|
7293
|
+
'/unified/ats/jobs/{id}',
|
7294
7294
|
request
|
7295
7295
|
)
|
7296
7296
|
headers = Utils.get_headers(request)
|
7297
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7297
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobRequest, request)
|
7298
7298
|
headers['Accept'] = 'application/json'
|
7299
7299
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7300
7300
|
retries ||= @sdk_configuration.retry_config
|
@@ -7322,7 +7322,7 @@ module StackOne
|
|
7322
7322
|
hook_ctx = SDKHooks::HookContext.new(
|
7323
7323
|
base_url: base_url,
|
7324
7324
|
oauth2_scopes: [],
|
7325
|
-
operation_id: '
|
7325
|
+
operation_id: 'ats_get_job',
|
7326
7326
|
security_source: @sdk_configuration.security_source
|
7327
7327
|
)
|
7328
7328
|
|
@@ -7379,12 +7379,12 @@ module StackOne
|
|
7379
7379
|
),
|
7380
7380
|
response: http_response
|
7381
7381
|
)
|
7382
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7383
|
-
response = Models::Operations::
|
7382
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::JobResult)
|
7383
|
+
response = Models::Operations::AtsGetJobResponse.new(
|
7384
7384
|
status_code: http_response.status,
|
7385
7385
|
content_type: content_type,
|
7386
7386
|
raw_response: http_response,
|
7387
|
-
|
7387
|
+
job_result: obj
|
7388
7388
|
)
|
7389
7389
|
|
7390
7390
|
return response
|
@@ -7558,19 +7558,19 @@ module StackOne
|
|
7558
7558
|
end
|
7559
7559
|
|
7560
7560
|
|
7561
|
-
sig { params(request: T.nilable(Models::Operations::
|
7562
|
-
def
|
7563
|
-
#
|
7561
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetJobCustomFieldDefinitionRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobCustomFieldDefinitionResponse) }
|
7562
|
+
def get_job_custom_field_definition(request, retries = nil, timeout_ms = nil)
|
7563
|
+
# get_job_custom_field_definition - Get Job Custom Field Definition
|
7564
7564
|
url, params = @sdk_configuration.get_server_details
|
7565
7565
|
base_url = Utils.template_url(url, params)
|
7566
7566
|
url = Utils.generate_url(
|
7567
|
-
Models::Operations::
|
7567
|
+
Models::Operations::AtsGetJobCustomFieldDefinitionRequest,
|
7568
7568
|
base_url,
|
7569
|
-
'/unified/ats/
|
7569
|
+
'/unified/ats/custom_field_definitions/jobs/{id}',
|
7570
7570
|
request
|
7571
7571
|
)
|
7572
7572
|
headers = Utils.get_headers(request)
|
7573
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7573
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobCustomFieldDefinitionRequest, request)
|
7574
7574
|
headers['Accept'] = 'application/json'
|
7575
7575
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7576
7576
|
retries ||= @sdk_configuration.retry_config
|
@@ -7598,7 +7598,7 @@ module StackOne
|
|
7598
7598
|
hook_ctx = SDKHooks::HookContext.new(
|
7599
7599
|
base_url: base_url,
|
7600
7600
|
oauth2_scopes: [],
|
7601
|
-
operation_id: '
|
7601
|
+
operation_id: 'ats_get_job_custom_field_definition',
|
7602
7602
|
security_source: @sdk_configuration.security_source
|
7603
7603
|
)
|
7604
7604
|
|
@@ -7655,12 +7655,12 @@ module StackOne
|
|
7655
7655
|
),
|
7656
7656
|
response: http_response
|
7657
7657
|
)
|
7658
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7659
|
-
response = Models::Operations::
|
7658
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CustomFieldDefinitionResultApiModel)
|
7659
|
+
response = Models::Operations::AtsGetJobCustomFieldDefinitionResponse.new(
|
7660
7660
|
status_code: http_response.status,
|
7661
7661
|
content_type: content_type,
|
7662
7662
|
raw_response: http_response,
|
7663
|
-
|
7663
|
+
custom_field_definition_result_api_model: obj
|
7664
7664
|
)
|
7665
7665
|
|
7666
7666
|
return response
|
@@ -7834,19 +7834,19 @@ module StackOne
|
|
7834
7834
|
end
|
7835
7835
|
|
7836
7836
|
|
7837
|
-
sig { params(request: T.nilable(Models::Operations::
|
7838
|
-
def
|
7839
|
-
#
|
7837
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetJobPostingRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobPostingResponse) }
|
7838
|
+
def get_job_posting(request, retries = nil, timeout_ms = nil)
|
7839
|
+
# get_job_posting - Get Job Posting
|
7840
7840
|
url, params = @sdk_configuration.get_server_details
|
7841
7841
|
base_url = Utils.template_url(url, params)
|
7842
7842
|
url = Utils.generate_url(
|
7843
|
-
Models::Operations::
|
7843
|
+
Models::Operations::AtsGetJobPostingRequest,
|
7844
7844
|
base_url,
|
7845
|
-
'/unified/ats/
|
7845
|
+
'/unified/ats/job_postings/{id}',
|
7846
7846
|
request
|
7847
7847
|
)
|
7848
7848
|
headers = Utils.get_headers(request)
|
7849
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7849
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetJobPostingRequest, request)
|
7850
7850
|
headers['Accept'] = 'application/json'
|
7851
7851
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7852
7852
|
retries ||= @sdk_configuration.retry_config
|
@@ -7874,7 +7874,7 @@ module StackOne
|
|
7874
7874
|
hook_ctx = SDKHooks::HookContext.new(
|
7875
7875
|
base_url: base_url,
|
7876
7876
|
oauth2_scopes: [],
|
7877
|
-
operation_id: '
|
7877
|
+
operation_id: 'ats_get_job_posting',
|
7878
7878
|
security_source: @sdk_configuration.security_source
|
7879
7879
|
)
|
7880
7880
|
|
@@ -7931,12 +7931,12 @@ module StackOne
|
|
7931
7931
|
),
|
7932
7932
|
response: http_response
|
7933
7933
|
)
|
7934
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7935
|
-
response = Models::Operations::
|
7934
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::JobPostingResult)
|
7935
|
+
response = Models::Operations::AtsGetJobPostingResponse.new(
|
7936
7936
|
status_code: http_response.status,
|
7937
7937
|
content_type: content_type,
|
7938
7938
|
raw_response: http_response,
|
7939
|
-
|
7939
|
+
job_posting_result: obj
|
7940
7940
|
)
|
7941
7941
|
|
7942
7942
|
return response
|
@@ -8110,19 +8110,19 @@ module StackOne
|
|
8110
8110
|
end
|
8111
8111
|
|
8112
8112
|
|
8113
|
-
sig { params(request: T.nilable(Models::Operations::
|
8114
|
-
def
|
8115
|
-
#
|
8113
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetListRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetListResponse) }
|
8114
|
+
def get_list(request, retries = nil, timeout_ms = nil)
|
8115
|
+
# get_list - Get List
|
8116
8116
|
url, params = @sdk_configuration.get_server_details
|
8117
8117
|
base_url = Utils.template_url(url, params)
|
8118
8118
|
url = Utils.generate_url(
|
8119
|
-
Models::Operations::
|
8119
|
+
Models::Operations::AtsGetListRequest,
|
8120
8120
|
base_url,
|
8121
|
-
'/unified/ats/
|
8121
|
+
'/unified/ats/lists/{id}',
|
8122
8122
|
request
|
8123
8123
|
)
|
8124
8124
|
headers = Utils.get_headers(request)
|
8125
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8125
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetListRequest, request)
|
8126
8126
|
headers['Accept'] = 'application/json'
|
8127
8127
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8128
8128
|
retries ||= @sdk_configuration.retry_config
|
@@ -8150,7 +8150,7 @@ module StackOne
|
|
8150
8150
|
hook_ctx = SDKHooks::HookContext.new(
|
8151
8151
|
base_url: base_url,
|
8152
8152
|
oauth2_scopes: [],
|
8153
|
-
operation_id: '
|
8153
|
+
operation_id: 'ats_get_list',
|
8154
8154
|
security_source: @sdk_configuration.security_source
|
8155
8155
|
)
|
8156
8156
|
|
@@ -8207,12 +8207,12 @@ module StackOne
|
|
8207
8207
|
),
|
8208
8208
|
response: http_response
|
8209
8209
|
)
|
8210
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
8211
|
-
response = Models::Operations::
|
8210
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ListResult)
|
8211
|
+
response = Models::Operations::AtsGetListResponse.new(
|
8212
8212
|
status_code: http_response.status,
|
8213
8213
|
content_type: content_type,
|
8214
8214
|
raw_response: http_response,
|
8215
|
-
|
8215
|
+
list_result: obj
|
8216
8216
|
)
|
8217
8217
|
|
8218
8218
|
return response
|
@@ -8386,19 +8386,19 @@ module StackOne
|
|
8386
8386
|
end
|
8387
8387
|
|
8388
8388
|
|
8389
|
-
sig { params(request: T.nilable(Models::Operations::
|
8390
|
-
def
|
8391
|
-
#
|
8389
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetLocationRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetLocationResponse) }
|
8390
|
+
def get_location(request, retries = nil, timeout_ms = nil)
|
8391
|
+
# get_location - Get Location
|
8392
8392
|
url, params = @sdk_configuration.get_server_details
|
8393
8393
|
base_url = Utils.template_url(url, params)
|
8394
8394
|
url = Utils.generate_url(
|
8395
|
-
Models::Operations::
|
8395
|
+
Models::Operations::AtsGetLocationRequest,
|
8396
8396
|
base_url,
|
8397
|
-
'/unified/ats/
|
8397
|
+
'/unified/ats/locations/{id}',
|
8398
8398
|
request
|
8399
8399
|
)
|
8400
8400
|
headers = Utils.get_headers(request)
|
8401
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8401
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetLocationRequest, request)
|
8402
8402
|
headers['Accept'] = 'application/json'
|
8403
8403
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8404
8404
|
retries ||= @sdk_configuration.retry_config
|
@@ -8426,7 +8426,7 @@ module StackOne
|
|
8426
8426
|
hook_ctx = SDKHooks::HookContext.new(
|
8427
8427
|
base_url: base_url,
|
8428
8428
|
oauth2_scopes: [],
|
8429
|
-
operation_id: '
|
8429
|
+
operation_id: 'ats_get_location',
|
8430
8430
|
security_source: @sdk_configuration.security_source
|
8431
8431
|
)
|
8432
8432
|
|
@@ -8483,12 +8483,12 @@ module StackOne
|
|
8483
8483
|
),
|
8484
8484
|
response: http_response
|
8485
8485
|
)
|
8486
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
8487
|
-
response = Models::Operations::
|
8486
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ATSLocationResult)
|
8487
|
+
response = Models::Operations::AtsGetLocationResponse.new(
|
8488
8488
|
status_code: http_response.status,
|
8489
8489
|
content_type: content_type,
|
8490
8490
|
raw_response: http_response,
|
8491
|
-
|
8491
|
+
ats_location_result: obj
|
8492
8492
|
)
|
8493
8493
|
|
8494
8494
|
return response
|
@@ -8662,19 +8662,19 @@ module StackOne
|
|
8662
8662
|
end
|
8663
8663
|
|
8664
8664
|
|
8665
|
-
sig { params(request: T.nilable(Models::Operations::
|
8666
|
-
def
|
8667
|
-
#
|
8665
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetOfferRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetOfferResponse) }
|
8666
|
+
def get_offer(request, retries = nil, timeout_ms = nil)
|
8667
|
+
# get_offer - Get Offer
|
8668
8668
|
url, params = @sdk_configuration.get_server_details
|
8669
8669
|
base_url = Utils.template_url(url, params)
|
8670
8670
|
url = Utils.generate_url(
|
8671
|
-
Models::Operations::
|
8671
|
+
Models::Operations::AtsGetOfferRequest,
|
8672
8672
|
base_url,
|
8673
|
-
'/unified/ats/
|
8673
|
+
'/unified/ats/offers/{id}',
|
8674
8674
|
request
|
8675
8675
|
)
|
8676
8676
|
headers = Utils.get_headers(request)
|
8677
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8677
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetOfferRequest, request)
|
8678
8678
|
headers['Accept'] = 'application/json'
|
8679
8679
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8680
8680
|
retries ||= @sdk_configuration.retry_config
|
@@ -8702,7 +8702,7 @@ module StackOne
|
|
8702
8702
|
hook_ctx = SDKHooks::HookContext.new(
|
8703
8703
|
base_url: base_url,
|
8704
8704
|
oauth2_scopes: [],
|
8705
|
-
operation_id: '
|
8705
|
+
operation_id: 'ats_get_offer',
|
8706
8706
|
security_source: @sdk_configuration.security_source
|
8707
8707
|
)
|
8708
8708
|
|
@@ -8759,12 +8759,12 @@ module StackOne
|
|
8759
8759
|
),
|
8760
8760
|
response: http_response
|
8761
8761
|
)
|
8762
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
8763
|
-
response = Models::Operations::
|
8762
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::OffersResult)
|
8763
|
+
response = Models::Operations::AtsGetOfferResponse.new(
|
8764
8764
|
status_code: http_response.status,
|
8765
8765
|
content_type: content_type,
|
8766
8766
|
raw_response: http_response,
|
8767
|
-
|
8767
|
+
offers_result: obj
|
8768
8768
|
)
|
8769
8769
|
|
8770
8770
|
return response
|
@@ -8938,19 +8938,19 @@ module StackOne
|
|
8938
8938
|
end
|
8939
8939
|
|
8940
8940
|
|
8941
|
-
sig { params(request: T.nilable(Models::Operations::
|
8942
|
-
def
|
8943
|
-
#
|
8941
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetRejectedReasonRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetRejectedReasonResponse) }
|
8942
|
+
def get_rejected_reason(request, retries = nil, timeout_ms = nil)
|
8943
|
+
# get_rejected_reason - Get Rejected Reason
|
8944
8944
|
url, params = @sdk_configuration.get_server_details
|
8945
8945
|
base_url = Utils.template_url(url, params)
|
8946
8946
|
url = Utils.generate_url(
|
8947
|
-
Models::Operations::
|
8947
|
+
Models::Operations::AtsGetRejectedReasonRequest,
|
8948
8948
|
base_url,
|
8949
|
-
'/unified/ats/
|
8949
|
+
'/unified/ats/rejected_reasons/{id}',
|
8950
8950
|
request
|
8951
8951
|
)
|
8952
8952
|
headers = Utils.get_headers(request)
|
8953
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8953
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetRejectedReasonRequest, request)
|
8954
8954
|
headers['Accept'] = 'application/json'
|
8955
8955
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8956
8956
|
retries ||= @sdk_configuration.retry_config
|
@@ -8978,7 +8978,7 @@ module StackOne
|
|
8978
8978
|
hook_ctx = SDKHooks::HookContext.new(
|
8979
8979
|
base_url: base_url,
|
8980
8980
|
oauth2_scopes: [],
|
8981
|
-
operation_id: '
|
8981
|
+
operation_id: 'ats_get_rejected_reason',
|
8982
8982
|
security_source: @sdk_configuration.security_source
|
8983
8983
|
)
|
8984
8984
|
|
@@ -9035,12 +9035,12 @@ module StackOne
|
|
9035
9035
|
),
|
9036
9036
|
response: http_response
|
9037
9037
|
)
|
9038
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9039
|
-
response = Models::Operations::
|
9038
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::RejectedReasonResult)
|
9039
|
+
response = Models::Operations::AtsGetRejectedReasonResponse.new(
|
9040
9040
|
status_code: http_response.status,
|
9041
9041
|
content_type: content_type,
|
9042
9042
|
raw_response: http_response,
|
9043
|
-
|
9043
|
+
rejected_reason_result: obj
|
9044
9044
|
)
|
9045
9045
|
|
9046
9046
|
return response
|
@@ -9214,19 +9214,19 @@ module StackOne
|
|
9214
9214
|
end
|
9215
9215
|
|
9216
9216
|
|
9217
|
-
sig { params(request: T.nilable(Models::Operations::
|
9218
|
-
def
|
9219
|
-
#
|
9217
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetUserRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetUserResponse) }
|
9218
|
+
def get_user(request, retries = nil, timeout_ms = nil)
|
9219
|
+
# get_user - Get User
|
9220
9220
|
url, params = @sdk_configuration.get_server_details
|
9221
9221
|
base_url = Utils.template_url(url, params)
|
9222
9222
|
url = Utils.generate_url(
|
9223
|
-
Models::Operations::
|
9223
|
+
Models::Operations::AtsGetUserRequest,
|
9224
9224
|
base_url,
|
9225
|
-
'/unified/ats/
|
9225
|
+
'/unified/ats/users/{id}',
|
9226
9226
|
request
|
9227
9227
|
)
|
9228
9228
|
headers = Utils.get_headers(request)
|
9229
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9229
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetUserRequest, request)
|
9230
9230
|
headers['Accept'] = 'application/json'
|
9231
9231
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9232
9232
|
retries ||= @sdk_configuration.retry_config
|
@@ -9254,7 +9254,7 @@ module StackOne
|
|
9254
9254
|
hook_ctx = SDKHooks::HookContext.new(
|
9255
9255
|
base_url: base_url,
|
9256
9256
|
oauth2_scopes: [],
|
9257
|
-
operation_id: '
|
9257
|
+
operation_id: 'ats_get_user',
|
9258
9258
|
security_source: @sdk_configuration.security_source
|
9259
9259
|
)
|
9260
9260
|
|
@@ -9311,12 +9311,12 @@ module StackOne
|
|
9311
9311
|
),
|
9312
9312
|
response: http_response
|
9313
9313
|
)
|
9314
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9315
|
-
response = Models::Operations::
|
9314
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::UserResult)
|
9315
|
+
response = Models::Operations::AtsGetUserResponse.new(
|
9316
9316
|
status_code: http_response.status,
|
9317
9317
|
content_type: content_type,
|
9318
9318
|
raw_response: http_response,
|
9319
|
-
|
9319
|
+
user_result: obj
|
9320
9320
|
)
|
9321
9321
|
|
9322
9322
|
return response
|
@@ -9490,19 +9490,14 @@ module StackOne
|
|
9490
9490
|
end
|
9491
9491
|
|
9492
9492
|
|
9493
|
-
sig { params(request: T.nilable(Models::Operations::
|
9494
|
-
def
|
9495
|
-
#
|
9493
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse) }
|
9494
|
+
def list_application_custom_field_definitions(request, retries = nil, timeout_ms = nil)
|
9495
|
+
# list_application_custom_field_definitions - List Application Custom Field Definitions
|
9496
9496
|
url, params = @sdk_configuration.get_server_details
|
9497
9497
|
base_url = Utils.template_url(url, params)
|
9498
|
-
url =
|
9499
|
-
Models::Operations::AtsGetRejectedReasonRequest,
|
9500
|
-
base_url,
|
9501
|
-
'/unified/ats/rejected_reasons/{id}',
|
9502
|
-
request
|
9503
|
-
)
|
9498
|
+
url = "#{base_url}/unified/ats/custom_field_definitions/applications"
|
9504
9499
|
headers = Utils.get_headers(request)
|
9505
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9500
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest, request)
|
9506
9501
|
headers['Accept'] = 'application/json'
|
9507
9502
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9508
9503
|
retries ||= @sdk_configuration.retry_config
|
@@ -9530,7 +9525,7 @@ module StackOne
|
|
9530
9525
|
hook_ctx = SDKHooks::HookContext.new(
|
9531
9526
|
base_url: base_url,
|
9532
9527
|
oauth2_scopes: [],
|
9533
|
-
operation_id: '
|
9528
|
+
operation_id: 'ats_list_application_custom_field_definitions',
|
9534
9529
|
security_source: @sdk_configuration.security_source
|
9535
9530
|
)
|
9536
9531
|
|
@@ -9587,12 +9582,12 @@ module StackOne
|
|
9587
9582
|
),
|
9588
9583
|
response: http_response
|
9589
9584
|
)
|
9590
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9591
|
-
response = Models::Operations::
|
9585
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CustomFieldDefinitionsPaginated)
|
9586
|
+
response = Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse.new(
|
9592
9587
|
status_code: http_response.status,
|
9593
9588
|
content_type: content_type,
|
9594
9589
|
raw_response: http_response,
|
9595
|
-
|
9590
|
+
custom_field_definitions_paginated: obj
|
9596
9591
|
)
|
9597
9592
|
|
9598
9593
|
return response
|
@@ -9766,19 +9761,19 @@ module StackOne
|
|
9766
9761
|
end
|
9767
9762
|
|
9768
9763
|
|
9769
|
-
sig { params(request: T.nilable(Models::Operations::
|
9770
|
-
def
|
9771
|
-
#
|
9764
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationDocumentsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationDocumentsResponse) }
|
9765
|
+
def list_application_documents(request, retries = nil, timeout_ms = nil)
|
9766
|
+
# list_application_documents - List Application Documents
|
9772
9767
|
url, params = @sdk_configuration.get_server_details
|
9773
9768
|
base_url = Utils.template_url(url, params)
|
9774
9769
|
url = Utils.generate_url(
|
9775
|
-
Models::Operations::
|
9770
|
+
Models::Operations::AtsListApplicationDocumentsRequest,
|
9776
9771
|
base_url,
|
9777
|
-
'/unified/ats/
|
9772
|
+
'/unified/ats/applications/{id}/documents',
|
9778
9773
|
request
|
9779
9774
|
)
|
9780
9775
|
headers = Utils.get_headers(request)
|
9781
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9776
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationDocumentsRequest, request)
|
9782
9777
|
headers['Accept'] = 'application/json'
|
9783
9778
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9784
9779
|
retries ||= @sdk_configuration.retry_config
|
@@ -9806,7 +9801,7 @@ module StackOne
|
|
9806
9801
|
hook_ctx = SDKHooks::HookContext.new(
|
9807
9802
|
base_url: base_url,
|
9808
9803
|
oauth2_scopes: [],
|
9809
|
-
operation_id: '
|
9804
|
+
operation_id: 'ats_list_application_documents',
|
9810
9805
|
security_source: @sdk_configuration.security_source
|
9811
9806
|
)
|
9812
9807
|
|
@@ -9863,12 +9858,12 @@ module StackOne
|
|
9863
9858
|
),
|
9864
9859
|
response: http_response
|
9865
9860
|
)
|
9866
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9867
|
-
response = Models::Operations::
|
9861
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::AtsDocumentsPaginated)
|
9862
|
+
response = Models::Operations::AtsListApplicationDocumentsResponse.new(
|
9868
9863
|
status_code: http_response.status,
|
9869
9864
|
content_type: content_type,
|
9870
9865
|
raw_response: http_response,
|
9871
|
-
|
9866
|
+
ats_documents_paginated: obj
|
9872
9867
|
)
|
9873
9868
|
|
9874
9869
|
return response
|
@@ -10042,14 +10037,19 @@ module StackOne
|
|
10042
10037
|
end
|
10043
10038
|
|
10044
10039
|
|
10045
|
-
sig { params(request: T.nilable(Models::Operations::
|
10046
|
-
def
|
10047
|
-
#
|
10040
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationNotesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationNotesResponse) }
|
10041
|
+
def list_application_notes(request, retries = nil, timeout_ms = nil)
|
10042
|
+
# list_application_notes - List Application Notes
|
10048
10043
|
url, params = @sdk_configuration.get_server_details
|
10049
10044
|
base_url = Utils.template_url(url, params)
|
10050
|
-
url =
|
10045
|
+
url = Utils.generate_url(
|
10046
|
+
Models::Operations::AtsListApplicationNotesRequest,
|
10047
|
+
base_url,
|
10048
|
+
'/unified/ats/applications/{id}/notes',
|
10049
|
+
request
|
10050
|
+
)
|
10051
10051
|
headers = Utils.get_headers(request)
|
10052
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10052
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationNotesRequest, request)
|
10053
10053
|
headers['Accept'] = 'application/json'
|
10054
10054
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10055
10055
|
retries ||= @sdk_configuration.retry_config
|
@@ -10077,7 +10077,7 @@ module StackOne
|
|
10077
10077
|
hook_ctx = SDKHooks::HookContext.new(
|
10078
10078
|
base_url: base_url,
|
10079
10079
|
oauth2_scopes: [],
|
10080
|
-
operation_id: '
|
10080
|
+
operation_id: 'ats_list_application_notes',
|
10081
10081
|
security_source: @sdk_configuration.security_source
|
10082
10082
|
)
|
10083
10083
|
|
@@ -10134,12 +10134,12 @@ module StackOne
|
|
10134
10134
|
),
|
10135
10135
|
response: http_response
|
10136
10136
|
)
|
10137
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10138
|
-
response = Models::Operations::
|
10137
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::NotesPaginated)
|
10138
|
+
response = Models::Operations::AtsListApplicationNotesResponse.new(
|
10139
10139
|
status_code: http_response.status,
|
10140
10140
|
content_type: content_type,
|
10141
10141
|
raw_response: http_response,
|
10142
|
-
|
10142
|
+
notes_paginated: obj
|
10143
10143
|
)
|
10144
10144
|
|
10145
10145
|
return response
|
@@ -10313,19 +10313,19 @@ module StackOne
|
|
10313
10313
|
end
|
10314
10314
|
|
10315
10315
|
|
10316
|
-
sig { params(request: T.nilable(Models::Operations::
|
10317
|
-
def
|
10318
|
-
#
|
10316
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationScorecardsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationScorecardsResponse) }
|
10317
|
+
def list_application_scorecards(request, retries = nil, timeout_ms = nil)
|
10318
|
+
# list_application_scorecards - List Application Scorecards
|
10319
10319
|
url, params = @sdk_configuration.get_server_details
|
10320
10320
|
base_url = Utils.template_url(url, params)
|
10321
10321
|
url = Utils.generate_url(
|
10322
|
-
Models::Operations::
|
10322
|
+
Models::Operations::AtsListApplicationScorecardsRequest,
|
10323
10323
|
base_url,
|
10324
|
-
'/unified/ats/applications/{id}/
|
10324
|
+
'/unified/ats/applications/{id}/scorecards',
|
10325
10325
|
request
|
10326
10326
|
)
|
10327
10327
|
headers = Utils.get_headers(request)
|
10328
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10328
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationScorecardsRequest, request)
|
10329
10329
|
headers['Accept'] = 'application/json'
|
10330
10330
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10331
10331
|
retries ||= @sdk_configuration.retry_config
|
@@ -10353,7 +10353,7 @@ module StackOne
|
|
10353
10353
|
hook_ctx = SDKHooks::HookContext.new(
|
10354
10354
|
base_url: base_url,
|
10355
10355
|
oauth2_scopes: [],
|
10356
|
-
operation_id: '
|
10356
|
+
operation_id: 'ats_list_application_scorecards',
|
10357
10357
|
security_source: @sdk_configuration.security_source
|
10358
10358
|
)
|
10359
10359
|
|
@@ -10410,12 +10410,12 @@ module StackOne
|
|
10410
10410
|
),
|
10411
10411
|
response: http_response
|
10412
10412
|
)
|
10413
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10414
|
-
response = Models::Operations::
|
10413
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ScorecardsPaginated)
|
10414
|
+
response = Models::Operations::AtsListApplicationScorecardsResponse.new(
|
10415
10415
|
status_code: http_response.status,
|
10416
10416
|
content_type: content_type,
|
10417
10417
|
raw_response: http_response,
|
10418
|
-
|
10418
|
+
scorecards_paginated: obj
|
10419
10419
|
)
|
10420
10420
|
|
10421
10421
|
return response
|
@@ -10589,19 +10589,14 @@ module StackOne
|
|
10589
10589
|
end
|
10590
10590
|
|
10591
10591
|
|
10592
|
-
sig { params(request: T.nilable(Models::Operations::
|
10593
|
-
def
|
10594
|
-
#
|
10592
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationsResponse) }
|
10593
|
+
def list_applications(request, retries = nil, timeout_ms = nil)
|
10594
|
+
# list_applications - List Applications
|
10595
10595
|
url, params = @sdk_configuration.get_server_details
|
10596
10596
|
base_url = Utils.template_url(url, params)
|
10597
|
-
url =
|
10598
|
-
Models::Operations::AtsListApplicationNotesRequest,
|
10599
|
-
base_url,
|
10600
|
-
'/unified/ats/applications/{id}/notes',
|
10601
|
-
request
|
10602
|
-
)
|
10597
|
+
url = "#{base_url}/unified/ats/applications"
|
10603
10598
|
headers = Utils.get_headers(request)
|
10604
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10599
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationsRequest, request)
|
10605
10600
|
headers['Accept'] = 'application/json'
|
10606
10601
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10607
10602
|
retries ||= @sdk_configuration.retry_config
|
@@ -10629,7 +10624,7 @@ module StackOne
|
|
10629
10624
|
hook_ctx = SDKHooks::HookContext.new(
|
10630
10625
|
base_url: base_url,
|
10631
10626
|
oauth2_scopes: [],
|
10632
|
-
operation_id: '
|
10627
|
+
operation_id: 'ats_list_applications',
|
10633
10628
|
security_source: @sdk_configuration.security_source
|
10634
10629
|
)
|
10635
10630
|
|
@@ -10686,12 +10681,12 @@ module StackOne
|
|
10686
10681
|
),
|
10687
10682
|
response: http_response
|
10688
10683
|
)
|
10689
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10690
|
-
response = Models::Operations::
|
10684
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ApplicationsPaginated)
|
10685
|
+
response = Models::Operations::AtsListApplicationsResponse.new(
|
10691
10686
|
status_code: http_response.status,
|
10692
10687
|
content_type: content_type,
|
10693
10688
|
raw_response: http_response,
|
10694
|
-
|
10689
|
+
applications_paginated: obj
|
10695
10690
|
)
|
10696
10691
|
|
10697
10692
|
return response
|
@@ -10865,19 +10860,19 @@ module StackOne
|
|
10865
10860
|
end
|
10866
10861
|
|
10867
10862
|
|
10868
|
-
sig { params(request: T.nilable(Models::Operations::
|
10869
|
-
def
|
10870
|
-
#
|
10863
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationsOffersRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationsOffersResponse) }
|
10864
|
+
def list_applications_offers(request, retries = nil, timeout_ms = nil)
|
10865
|
+
# list_applications_offers - List Application Offers
|
10871
10866
|
url, params = @sdk_configuration.get_server_details
|
10872
10867
|
base_url = Utils.template_url(url, params)
|
10873
10868
|
url = Utils.generate_url(
|
10874
|
-
Models::Operations::
|
10869
|
+
Models::Operations::AtsListApplicationsOffersRequest,
|
10875
10870
|
base_url,
|
10876
|
-
'/unified/ats/applications/{id}/
|
10871
|
+
'/unified/ats/applications/{id}/offers',
|
10877
10872
|
request
|
10878
10873
|
)
|
10879
10874
|
headers = Utils.get_headers(request)
|
10880
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10875
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationsOffersRequest, request)
|
10881
10876
|
headers['Accept'] = 'application/json'
|
10882
10877
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10883
10878
|
retries ||= @sdk_configuration.retry_config
|
@@ -10905,7 +10900,7 @@ module StackOne
|
|
10905
10900
|
hook_ctx = SDKHooks::HookContext.new(
|
10906
10901
|
base_url: base_url,
|
10907
10902
|
oauth2_scopes: [],
|
10908
|
-
operation_id: '
|
10903
|
+
operation_id: 'ats_list_applications_offers',
|
10909
10904
|
security_source: @sdk_configuration.security_source
|
10910
10905
|
)
|
10911
10906
|
|
@@ -10962,12 +10957,12 @@ module StackOne
|
|
10962
10957
|
),
|
10963
10958
|
response: http_response
|
10964
10959
|
)
|
10965
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10966
|
-
response = Models::Operations::
|
10960
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::OffersPaginated)
|
10961
|
+
response = Models::Operations::AtsListApplicationsOffersResponse.new(
|
10967
10962
|
status_code: http_response.status,
|
10968
10963
|
content_type: content_type,
|
10969
10964
|
raw_response: http_response,
|
10970
|
-
|
10965
|
+
offers_paginated: obj
|
10971
10966
|
)
|
10972
10967
|
|
10973
10968
|
return response
|
@@ -11141,14 +11136,19 @@ module StackOne
|
|
11141
11136
|
end
|
11142
11137
|
|
11143
11138
|
|
11144
|
-
sig { params(request: T.nilable(Models::Operations::
|
11145
|
-
def
|
11146
|
-
#
|
11139
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationsScheduledInterviewsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationsScheduledInterviewsResponse) }
|
11140
|
+
def list_applications_scheduled_interviews(request, retries = nil, timeout_ms = nil)
|
11141
|
+
# list_applications_scheduled_interviews - List Applications scheduled interviews
|
11147
11142
|
url, params = @sdk_configuration.get_server_details
|
11148
11143
|
base_url = Utils.template_url(url, params)
|
11149
|
-
url =
|
11144
|
+
url = Utils.generate_url(
|
11145
|
+
Models::Operations::AtsListApplicationsScheduledInterviewsRequest,
|
11146
|
+
base_url,
|
11147
|
+
'/unified/ats/applications/{id}/scheduled_interviews',
|
11148
|
+
request
|
11149
|
+
)
|
11150
11150
|
headers = Utils.get_headers(request)
|
11151
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11151
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationsScheduledInterviewsRequest, request)
|
11152
11152
|
headers['Accept'] = 'application/json'
|
11153
11153
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11154
11154
|
retries ||= @sdk_configuration.retry_config
|
@@ -11176,7 +11176,7 @@ module StackOne
|
|
11176
11176
|
hook_ctx = SDKHooks::HookContext.new(
|
11177
11177
|
base_url: base_url,
|
11178
11178
|
oauth2_scopes: [],
|
11179
|
-
operation_id: '
|
11179
|
+
operation_id: 'ats_list_applications_scheduled_interviews',
|
11180
11180
|
security_source: @sdk_configuration.security_source
|
11181
11181
|
)
|
11182
11182
|
|
@@ -11233,12 +11233,12 @@ module StackOne
|
|
11233
11233
|
),
|
11234
11234
|
response: http_response
|
11235
11235
|
)
|
11236
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11237
|
-
response = Models::Operations::
|
11236
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ScheduledInterviewsPaginated)
|
11237
|
+
response = Models::Operations::AtsListApplicationsScheduledInterviewsResponse.new(
|
11238
11238
|
status_code: http_response.status,
|
11239
11239
|
content_type: content_type,
|
11240
11240
|
raw_response: http_response,
|
11241
|
-
|
11241
|
+
scheduled_interviews_paginated: obj
|
11242
11242
|
)
|
11243
11243
|
|
11244
11244
|
return response
|
@@ -11412,19 +11412,14 @@ module StackOne
|
|
11412
11412
|
end
|
11413
11413
|
|
11414
11414
|
|
11415
|
-
sig { params(request: T.nilable(Models::Operations::
|
11416
|
-
def
|
11417
|
-
#
|
11415
|
+
sig { params(request: T.nilable(Models::Operations::AtsListAssessmentsPackagesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListAssessmentsPackagesResponse) }
|
11416
|
+
def list_assessments_packages(request, retries = nil, timeout_ms = nil)
|
11417
|
+
# list_assessments_packages - List Assessments Packages
|
11418
11418
|
url, params = @sdk_configuration.get_server_details
|
11419
11419
|
base_url = Utils.template_url(url, params)
|
11420
|
-
url =
|
11421
|
-
Models::Operations::AtsListApplicationsOffersRequest,
|
11422
|
-
base_url,
|
11423
|
-
'/unified/ats/applications/{id}/offers',
|
11424
|
-
request
|
11425
|
-
)
|
11420
|
+
url = "#{base_url}/unified/ats/assessments/packages"
|
11426
11421
|
headers = Utils.get_headers(request)
|
11427
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11422
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListAssessmentsPackagesRequest, request)
|
11428
11423
|
headers['Accept'] = 'application/json'
|
11429
11424
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11430
11425
|
retries ||= @sdk_configuration.retry_config
|
@@ -11452,7 +11447,7 @@ module StackOne
|
|
11452
11447
|
hook_ctx = SDKHooks::HookContext.new(
|
11453
11448
|
base_url: base_url,
|
11454
11449
|
oauth2_scopes: [],
|
11455
|
-
operation_id: '
|
11450
|
+
operation_id: 'ats_list_assessments_packages',
|
11456
11451
|
security_source: @sdk_configuration.security_source
|
11457
11452
|
)
|
11458
11453
|
|
@@ -11509,12 +11504,12 @@ module StackOne
|
|
11509
11504
|
),
|
11510
11505
|
response: http_response
|
11511
11506
|
)
|
11512
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11513
|
-
response = Models::Operations::
|
11507
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::AssessmentPackagePaginated)
|
11508
|
+
response = Models::Operations::AtsListAssessmentsPackagesResponse.new(
|
11514
11509
|
status_code: http_response.status,
|
11515
11510
|
content_type: content_type,
|
11516
11511
|
raw_response: http_response,
|
11517
|
-
|
11512
|
+
assessment_package_paginated: obj
|
11518
11513
|
)
|
11519
11514
|
|
11520
11515
|
return response
|
@@ -11688,19 +11683,14 @@ module StackOne
|
|
11688
11683
|
end
|
11689
11684
|
|
11690
11685
|
|
11691
|
-
sig { params(request: T.nilable(Models::Operations::
|
11692
|
-
def
|
11693
|
-
#
|
11686
|
+
sig { params(request: T.nilable(Models::Operations::AtsListBackgroundCheckPackagesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListBackgroundCheckPackagesResponse) }
|
11687
|
+
def list_background_check_packages(request, retries = nil, timeout_ms = nil)
|
11688
|
+
# list_background_check_packages - List Background Check Packages
|
11694
11689
|
url, params = @sdk_configuration.get_server_details
|
11695
11690
|
base_url = Utils.template_url(url, params)
|
11696
|
-
url =
|
11697
|
-
Models::Operations::AtsListApplicationsScheduledInterviewsRequest,
|
11698
|
-
base_url,
|
11699
|
-
'/unified/ats/applications/{id}/scheduled_interviews',
|
11700
|
-
request
|
11701
|
-
)
|
11691
|
+
url = "#{base_url}/unified/ats/background_checks/packages"
|
11702
11692
|
headers = Utils.get_headers(request)
|
11703
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11693
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListBackgroundCheckPackagesRequest, request)
|
11704
11694
|
headers['Accept'] = 'application/json'
|
11705
11695
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11706
11696
|
retries ||= @sdk_configuration.retry_config
|
@@ -11728,7 +11718,7 @@ module StackOne
|
|
11728
11718
|
hook_ctx = SDKHooks::HookContext.new(
|
11729
11719
|
base_url: base_url,
|
11730
11720
|
oauth2_scopes: [],
|
11731
|
-
operation_id: '
|
11721
|
+
operation_id: 'ats_list_background_check_packages',
|
11732
11722
|
security_source: @sdk_configuration.security_source
|
11733
11723
|
)
|
11734
11724
|
|
@@ -11785,825 +11775,12 @@ module StackOne
|
|
11785
11775
|
),
|
11786
11776
|
response: http_response
|
11787
11777
|
)
|
11788
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11789
|
-
response = Models::Operations::
|
11790
|
-
status_code: http_response.status,
|
11791
|
-
content_type: content_type,
|
11792
|
-
raw_response: http_response,
|
11793
|
-
scheduled_interviews_paginated: obj
|
11794
|
-
)
|
11795
|
-
|
11796
|
-
return response
|
11797
|
-
else
|
11798
|
-
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'
|
11799
|
-
end
|
11800
|
-
elsif Utils.match_status_code(http_response.status, ['400'])
|
11801
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11802
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11803
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11804
|
-
hook_ctx: hook_ctx
|
11805
|
-
),
|
11806
|
-
response: http_response
|
11807
|
-
)
|
11808
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
11809
|
-
throw obj
|
11810
|
-
else
|
11811
|
-
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'
|
11812
|
-
end
|
11813
|
-
elsif Utils.match_status_code(http_response.status, ['401'])
|
11814
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11815
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11816
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11817
|
-
hook_ctx: hook_ctx
|
11818
|
-
),
|
11819
|
-
response: http_response
|
11820
|
-
)
|
11821
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
11822
|
-
throw obj
|
11823
|
-
else
|
11824
|
-
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'
|
11825
|
-
end
|
11826
|
-
elsif Utils.match_status_code(http_response.status, ['403'])
|
11827
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11828
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11829
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11830
|
-
hook_ctx: hook_ctx
|
11831
|
-
),
|
11832
|
-
response: http_response
|
11833
|
-
)
|
11834
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
11835
|
-
throw obj
|
11836
|
-
else
|
11837
|
-
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'
|
11838
|
-
end
|
11839
|
-
elsif Utils.match_status_code(http_response.status, ['404'])
|
11840
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11841
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11842
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11843
|
-
hook_ctx: hook_ctx
|
11844
|
-
),
|
11845
|
-
response: http_response
|
11846
|
-
)
|
11847
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
11848
|
-
throw obj
|
11849
|
-
else
|
11850
|
-
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'
|
11851
|
-
end
|
11852
|
-
elsif Utils.match_status_code(http_response.status, ['408'])
|
11853
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11854
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11855
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11856
|
-
hook_ctx: hook_ctx
|
11857
|
-
),
|
11858
|
-
response: http_response
|
11859
|
-
)
|
11860
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
11861
|
-
throw obj
|
11862
|
-
else
|
11863
|
-
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'
|
11864
|
-
end
|
11865
|
-
elsif Utils.match_status_code(http_response.status, ['409'])
|
11866
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11867
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11868
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11869
|
-
hook_ctx: hook_ctx
|
11870
|
-
),
|
11871
|
-
response: http_response
|
11872
|
-
)
|
11873
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
11874
|
-
throw obj
|
11875
|
-
else
|
11876
|
-
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'
|
11877
|
-
end
|
11878
|
-
elsif Utils.match_status_code(http_response.status, ['412'])
|
11879
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11880
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11881
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11882
|
-
hook_ctx: hook_ctx
|
11883
|
-
),
|
11884
|
-
response: http_response
|
11885
|
-
)
|
11886
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
11887
|
-
throw obj
|
11888
|
-
else
|
11889
|
-
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'
|
11890
|
-
end
|
11891
|
-
elsif Utils.match_status_code(http_response.status, ['422'])
|
11892
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11893
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11894
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11895
|
-
hook_ctx: hook_ctx
|
11896
|
-
),
|
11897
|
-
response: http_response
|
11898
|
-
)
|
11899
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
11900
|
-
throw obj
|
11901
|
-
else
|
11902
|
-
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'
|
11903
|
-
end
|
11904
|
-
elsif Utils.match_status_code(http_response.status, ['429'])
|
11905
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11906
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11907
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11908
|
-
hook_ctx: hook_ctx
|
11909
|
-
),
|
11910
|
-
response: http_response
|
11911
|
-
)
|
11912
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
11913
|
-
throw obj
|
11914
|
-
else
|
11915
|
-
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'
|
11916
|
-
end
|
11917
|
-
elsif Utils.match_status_code(http_response.status, ['500'])
|
11918
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11919
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11920
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11921
|
-
hook_ctx: hook_ctx
|
11922
|
-
),
|
11923
|
-
response: http_response
|
11924
|
-
)
|
11925
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
11926
|
-
throw obj
|
11927
|
-
else
|
11928
|
-
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'
|
11929
|
-
end
|
11930
|
-
elsif Utils.match_status_code(http_response.status, ['501'])
|
11931
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11932
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11933
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11934
|
-
hook_ctx: hook_ctx
|
11935
|
-
),
|
11936
|
-
response: http_response
|
11937
|
-
)
|
11938
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
11939
|
-
throw obj
|
11940
|
-
else
|
11941
|
-
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'
|
11942
|
-
end
|
11943
|
-
elsif Utils.match_status_code(http_response.status, ['502'])
|
11944
|
-
if Utils.match_content_type(content_type, 'application/json')
|
11945
|
-
http_response = @sdk_configuration.hooks.after_success(
|
11946
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
11947
|
-
hook_ctx: hook_ctx
|
11948
|
-
),
|
11949
|
-
response: http_response
|
11950
|
-
)
|
11951
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
11952
|
-
throw obj
|
11953
|
-
else
|
11954
|
-
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'
|
11955
|
-
end
|
11956
|
-
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
11957
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
11958
|
-
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
11959
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
11960
|
-
else
|
11961
|
-
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'
|
11962
|
-
|
11963
|
-
end
|
11964
|
-
end
|
11965
|
-
|
11966
|
-
|
11967
|
-
sig { params(request: T.nilable(Models::Operations::AtsListAssessmentsPackagesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListAssessmentsPackagesResponse) }
|
11968
|
-
def list_assessments_packages(request, retries = nil, timeout_ms = nil)
|
11969
|
-
# list_assessments_packages - List Assessments Packages
|
11970
|
-
url, params = @sdk_configuration.get_server_details
|
11971
|
-
base_url = Utils.template_url(url, params)
|
11972
|
-
url = "#{base_url}/unified/ats/assessments/packages"
|
11973
|
-
headers = Utils.get_headers(request)
|
11974
|
-
query_params = Utils.get_query_params(Models::Operations::AtsListAssessmentsPackagesRequest, request)
|
11975
|
-
headers['Accept'] = 'application/json'
|
11976
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
11977
|
-
retries ||= @sdk_configuration.retry_config
|
11978
|
-
retries ||= Utils::RetryConfig.new(
|
11979
|
-
backoff: Utils::BackoffStrategy.new(
|
11980
|
-
exponent: 1.5,
|
11981
|
-
initial_interval: 500,
|
11982
|
-
max_elapsed_time: 3_600_000,
|
11983
|
-
max_interval: 60_000
|
11984
|
-
),
|
11985
|
-
retry_connection_errors: true,
|
11986
|
-
strategy: 'backoff'
|
11987
|
-
)
|
11988
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
11989
|
-
retry_options[:retry_statuses] = [429, 408]
|
11990
|
-
|
11991
|
-
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
11992
|
-
|
11993
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
11994
|
-
timeout ||= @sdk_configuration.timeout
|
11995
|
-
|
11996
|
-
connection = @sdk_configuration.client.dup
|
11997
|
-
connection.request :retry, retry_options
|
11998
|
-
|
11999
|
-
hook_ctx = SDKHooks::HookContext.new(
|
12000
|
-
base_url: base_url,
|
12001
|
-
oauth2_scopes: [],
|
12002
|
-
operation_id: 'ats_list_assessments_packages',
|
12003
|
-
security_source: @sdk_configuration.security_source
|
12004
|
-
)
|
12005
|
-
|
12006
|
-
error = T.let(nil, T.nilable(StandardError))
|
12007
|
-
http_response = T.let(nil, T.nilable(Faraday::Response))
|
12008
|
-
|
12009
|
-
|
12010
|
-
begin
|
12011
|
-
http_response = connection.get(url) do |req|
|
12012
|
-
req.headers.merge!(headers)
|
12013
|
-
req.options.timeout = timeout unless timeout.nil?
|
12014
|
-
req.params = query_params
|
12015
|
-
Utils.configure_request_security(req, security)
|
12016
|
-
|
12017
|
-
@sdk_configuration.hooks.before_request(
|
12018
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
12019
|
-
hook_ctx: hook_ctx
|
12020
|
-
),
|
12021
|
-
request: req
|
12022
|
-
)
|
12023
|
-
end
|
12024
|
-
rescue StandardError => e
|
12025
|
-
error = e
|
12026
|
-
ensure
|
12027
|
-
if http_response.nil? || Utils.error_status?(http_response.status)
|
12028
|
-
http_response = @sdk_configuration.hooks.after_error(
|
12029
|
-
error: error,
|
12030
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
12031
|
-
hook_ctx: hook_ctx
|
12032
|
-
),
|
12033
|
-
response: http_response
|
12034
|
-
)
|
12035
|
-
else
|
12036
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12037
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12038
|
-
hook_ctx: hook_ctx
|
12039
|
-
),
|
12040
|
-
response: http_response
|
12041
|
-
)
|
12042
|
-
end
|
12043
|
-
|
12044
|
-
if http_response.nil?
|
12045
|
-
raise error if !error.nil?
|
12046
|
-
raise 'no response'
|
12047
|
-
end
|
12048
|
-
end
|
12049
|
-
|
12050
|
-
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
12051
|
-
if Utils.match_status_code(http_response.status, ['200'])
|
12052
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12053
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12054
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12055
|
-
hook_ctx: hook_ctx
|
12056
|
-
),
|
12057
|
-
response: http_response
|
12058
|
-
)
|
12059
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::AssessmentPackagePaginated)
|
12060
|
-
response = Models::Operations::AtsListAssessmentsPackagesResponse.new(
|
12061
|
-
status_code: http_response.status,
|
12062
|
-
content_type: content_type,
|
12063
|
-
raw_response: http_response,
|
12064
|
-
assessment_package_paginated: obj
|
12065
|
-
)
|
12066
|
-
|
12067
|
-
return response
|
12068
|
-
else
|
12069
|
-
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'
|
12070
|
-
end
|
12071
|
-
elsif Utils.match_status_code(http_response.status, ['400'])
|
12072
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12073
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12074
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12075
|
-
hook_ctx: hook_ctx
|
12076
|
-
),
|
12077
|
-
response: http_response
|
12078
|
-
)
|
12079
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
12080
|
-
throw obj
|
12081
|
-
else
|
12082
|
-
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'
|
12083
|
-
end
|
12084
|
-
elsif Utils.match_status_code(http_response.status, ['401'])
|
12085
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12086
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12087
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12088
|
-
hook_ctx: hook_ctx
|
12089
|
-
),
|
12090
|
-
response: http_response
|
12091
|
-
)
|
12092
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
12093
|
-
throw obj
|
12094
|
-
else
|
12095
|
-
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'
|
12096
|
-
end
|
12097
|
-
elsif Utils.match_status_code(http_response.status, ['403'])
|
12098
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12099
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12100
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12101
|
-
hook_ctx: hook_ctx
|
12102
|
-
),
|
12103
|
-
response: http_response
|
12104
|
-
)
|
12105
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
12106
|
-
throw obj
|
12107
|
-
else
|
12108
|
-
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'
|
12109
|
-
end
|
12110
|
-
elsif Utils.match_status_code(http_response.status, ['404'])
|
12111
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12112
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12113
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12114
|
-
hook_ctx: hook_ctx
|
12115
|
-
),
|
12116
|
-
response: http_response
|
12117
|
-
)
|
12118
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
12119
|
-
throw obj
|
12120
|
-
else
|
12121
|
-
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'
|
12122
|
-
end
|
12123
|
-
elsif Utils.match_status_code(http_response.status, ['408'])
|
12124
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12125
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12126
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12127
|
-
hook_ctx: hook_ctx
|
12128
|
-
),
|
12129
|
-
response: http_response
|
12130
|
-
)
|
12131
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
12132
|
-
throw obj
|
12133
|
-
else
|
12134
|
-
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'
|
12135
|
-
end
|
12136
|
-
elsif Utils.match_status_code(http_response.status, ['409'])
|
12137
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12138
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12139
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12140
|
-
hook_ctx: hook_ctx
|
12141
|
-
),
|
12142
|
-
response: http_response
|
12143
|
-
)
|
12144
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
12145
|
-
throw obj
|
12146
|
-
else
|
12147
|
-
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'
|
12148
|
-
end
|
12149
|
-
elsif Utils.match_status_code(http_response.status, ['412'])
|
12150
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12151
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12152
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12153
|
-
hook_ctx: hook_ctx
|
12154
|
-
),
|
12155
|
-
response: http_response
|
12156
|
-
)
|
12157
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
12158
|
-
throw obj
|
12159
|
-
else
|
12160
|
-
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'
|
12161
|
-
end
|
12162
|
-
elsif Utils.match_status_code(http_response.status, ['422'])
|
12163
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12164
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12165
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12166
|
-
hook_ctx: hook_ctx
|
12167
|
-
),
|
12168
|
-
response: http_response
|
12169
|
-
)
|
12170
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
12171
|
-
throw obj
|
12172
|
-
else
|
12173
|
-
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'
|
12174
|
-
end
|
12175
|
-
elsif Utils.match_status_code(http_response.status, ['429'])
|
12176
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12177
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12178
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12179
|
-
hook_ctx: hook_ctx
|
12180
|
-
),
|
12181
|
-
response: http_response
|
12182
|
-
)
|
12183
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
12184
|
-
throw obj
|
12185
|
-
else
|
12186
|
-
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'
|
12187
|
-
end
|
12188
|
-
elsif Utils.match_status_code(http_response.status, ['500'])
|
12189
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12190
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12191
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12192
|
-
hook_ctx: hook_ctx
|
12193
|
-
),
|
12194
|
-
response: http_response
|
12195
|
-
)
|
12196
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
12197
|
-
throw obj
|
12198
|
-
else
|
12199
|
-
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'
|
12200
|
-
end
|
12201
|
-
elsif Utils.match_status_code(http_response.status, ['501'])
|
12202
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12203
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12204
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12205
|
-
hook_ctx: hook_ctx
|
12206
|
-
),
|
12207
|
-
response: http_response
|
12208
|
-
)
|
12209
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
12210
|
-
throw obj
|
12211
|
-
else
|
12212
|
-
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'
|
12213
|
-
end
|
12214
|
-
elsif Utils.match_status_code(http_response.status, ['502'])
|
12215
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12216
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12217
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12218
|
-
hook_ctx: hook_ctx
|
12219
|
-
),
|
12220
|
-
response: http_response
|
12221
|
-
)
|
12222
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
12223
|
-
throw obj
|
12224
|
-
else
|
12225
|
-
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'
|
12226
|
-
end
|
12227
|
-
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
12228
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
12229
|
-
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
12230
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
12231
|
-
else
|
12232
|
-
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'
|
12233
|
-
|
12234
|
-
end
|
12235
|
-
end
|
12236
|
-
|
12237
|
-
|
12238
|
-
sig { params(request: T.nilable(Models::Operations::AtsListBackgroundCheckPackagesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListBackgroundCheckPackagesResponse) }
|
12239
|
-
def list_background_check_packages(request, retries = nil, timeout_ms = nil)
|
12240
|
-
# list_background_check_packages - List Background Check Packages
|
12241
|
-
url, params = @sdk_configuration.get_server_details
|
12242
|
-
base_url = Utils.template_url(url, params)
|
12243
|
-
url = "#{base_url}/unified/ats/background_checks/packages"
|
12244
|
-
headers = Utils.get_headers(request)
|
12245
|
-
query_params = Utils.get_query_params(Models::Operations::AtsListBackgroundCheckPackagesRequest, request)
|
12246
|
-
headers['Accept'] = 'application/json'
|
12247
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
12248
|
-
retries ||= @sdk_configuration.retry_config
|
12249
|
-
retries ||= Utils::RetryConfig.new(
|
12250
|
-
backoff: Utils::BackoffStrategy.new(
|
12251
|
-
exponent: 1.5,
|
12252
|
-
initial_interval: 500,
|
12253
|
-
max_elapsed_time: 3_600_000,
|
12254
|
-
max_interval: 60_000
|
12255
|
-
),
|
12256
|
-
retry_connection_errors: true,
|
12257
|
-
strategy: 'backoff'
|
12258
|
-
)
|
12259
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
12260
|
-
retry_options[:retry_statuses] = [429, 408]
|
12261
|
-
|
12262
|
-
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
12263
|
-
|
12264
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
12265
|
-
timeout ||= @sdk_configuration.timeout
|
12266
|
-
|
12267
|
-
connection = @sdk_configuration.client.dup
|
12268
|
-
connection.request :retry, retry_options
|
12269
|
-
|
12270
|
-
hook_ctx = SDKHooks::HookContext.new(
|
12271
|
-
base_url: base_url,
|
12272
|
-
oauth2_scopes: [],
|
12273
|
-
operation_id: 'ats_list_background_check_packages',
|
12274
|
-
security_source: @sdk_configuration.security_source
|
12275
|
-
)
|
12276
|
-
|
12277
|
-
error = T.let(nil, T.nilable(StandardError))
|
12278
|
-
http_response = T.let(nil, T.nilable(Faraday::Response))
|
12279
|
-
|
12280
|
-
|
12281
|
-
begin
|
12282
|
-
http_response = connection.get(url) do |req|
|
12283
|
-
req.headers.merge!(headers)
|
12284
|
-
req.options.timeout = timeout unless timeout.nil?
|
12285
|
-
req.params = query_params
|
12286
|
-
Utils.configure_request_security(req, security)
|
12287
|
-
|
12288
|
-
@sdk_configuration.hooks.before_request(
|
12289
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
12290
|
-
hook_ctx: hook_ctx
|
12291
|
-
),
|
12292
|
-
request: req
|
12293
|
-
)
|
12294
|
-
end
|
12295
|
-
rescue StandardError => e
|
12296
|
-
error = e
|
12297
|
-
ensure
|
12298
|
-
if http_response.nil? || Utils.error_status?(http_response.status)
|
12299
|
-
http_response = @sdk_configuration.hooks.after_error(
|
12300
|
-
error: error,
|
12301
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
12302
|
-
hook_ctx: hook_ctx
|
12303
|
-
),
|
12304
|
-
response: http_response
|
12305
|
-
)
|
12306
|
-
else
|
12307
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12308
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12309
|
-
hook_ctx: hook_ctx
|
12310
|
-
),
|
12311
|
-
response: http_response
|
12312
|
-
)
|
12313
|
-
end
|
12314
|
-
|
12315
|
-
if http_response.nil?
|
12316
|
-
raise error if !error.nil?
|
12317
|
-
raise 'no response'
|
12318
|
-
end
|
12319
|
-
end
|
12320
|
-
|
12321
|
-
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
12322
|
-
if Utils.match_status_code(http_response.status, ['200'])
|
12323
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12324
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12325
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12326
|
-
hook_ctx: hook_ctx
|
12327
|
-
),
|
12328
|
-
response: http_response
|
12329
|
-
)
|
12330
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::BackgroundCheckPackagePaginated)
|
12331
|
-
response = Models::Operations::AtsListBackgroundCheckPackagesResponse.new(
|
12332
|
-
status_code: http_response.status,
|
12333
|
-
content_type: content_type,
|
12334
|
-
raw_response: http_response,
|
12335
|
-
background_check_package_paginated: obj
|
12336
|
-
)
|
12337
|
-
|
12338
|
-
return response
|
12339
|
-
else
|
12340
|
-
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'
|
12341
|
-
end
|
12342
|
-
elsif Utils.match_status_code(http_response.status, ['400'])
|
12343
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12344
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12345
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12346
|
-
hook_ctx: hook_ctx
|
12347
|
-
),
|
12348
|
-
response: http_response
|
12349
|
-
)
|
12350
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
12351
|
-
throw obj
|
12352
|
-
else
|
12353
|
-
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'
|
12354
|
-
end
|
12355
|
-
elsif Utils.match_status_code(http_response.status, ['401'])
|
12356
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12357
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12358
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12359
|
-
hook_ctx: hook_ctx
|
12360
|
-
),
|
12361
|
-
response: http_response
|
12362
|
-
)
|
12363
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
12364
|
-
throw obj
|
12365
|
-
else
|
12366
|
-
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'
|
12367
|
-
end
|
12368
|
-
elsif Utils.match_status_code(http_response.status, ['403'])
|
12369
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12370
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12371
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12372
|
-
hook_ctx: hook_ctx
|
12373
|
-
),
|
12374
|
-
response: http_response
|
12375
|
-
)
|
12376
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
12377
|
-
throw obj
|
12378
|
-
else
|
12379
|
-
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'
|
12380
|
-
end
|
12381
|
-
elsif Utils.match_status_code(http_response.status, ['404'])
|
12382
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12383
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12384
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12385
|
-
hook_ctx: hook_ctx
|
12386
|
-
),
|
12387
|
-
response: http_response
|
12388
|
-
)
|
12389
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
12390
|
-
throw obj
|
12391
|
-
else
|
12392
|
-
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'
|
12393
|
-
end
|
12394
|
-
elsif Utils.match_status_code(http_response.status, ['408'])
|
12395
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12396
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12397
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12398
|
-
hook_ctx: hook_ctx
|
12399
|
-
),
|
12400
|
-
response: http_response
|
12401
|
-
)
|
12402
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
12403
|
-
throw obj
|
12404
|
-
else
|
12405
|
-
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'
|
12406
|
-
end
|
12407
|
-
elsif Utils.match_status_code(http_response.status, ['409'])
|
12408
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12409
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12410
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12411
|
-
hook_ctx: hook_ctx
|
12412
|
-
),
|
12413
|
-
response: http_response
|
12414
|
-
)
|
12415
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
12416
|
-
throw obj
|
12417
|
-
else
|
12418
|
-
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'
|
12419
|
-
end
|
12420
|
-
elsif Utils.match_status_code(http_response.status, ['412'])
|
12421
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12422
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12423
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12424
|
-
hook_ctx: hook_ctx
|
12425
|
-
),
|
12426
|
-
response: http_response
|
12427
|
-
)
|
12428
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
12429
|
-
throw obj
|
12430
|
-
else
|
12431
|
-
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'
|
12432
|
-
end
|
12433
|
-
elsif Utils.match_status_code(http_response.status, ['422'])
|
12434
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12435
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12436
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12437
|
-
hook_ctx: hook_ctx
|
12438
|
-
),
|
12439
|
-
response: http_response
|
12440
|
-
)
|
12441
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
12442
|
-
throw obj
|
12443
|
-
else
|
12444
|
-
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'
|
12445
|
-
end
|
12446
|
-
elsif Utils.match_status_code(http_response.status, ['429'])
|
12447
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12448
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12449
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12450
|
-
hook_ctx: hook_ctx
|
12451
|
-
),
|
12452
|
-
response: http_response
|
12453
|
-
)
|
12454
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
12455
|
-
throw obj
|
12456
|
-
else
|
12457
|
-
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'
|
12458
|
-
end
|
12459
|
-
elsif Utils.match_status_code(http_response.status, ['500'])
|
12460
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12461
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12462
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12463
|
-
hook_ctx: hook_ctx
|
12464
|
-
),
|
12465
|
-
response: http_response
|
12466
|
-
)
|
12467
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
12468
|
-
throw obj
|
12469
|
-
else
|
12470
|
-
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'
|
12471
|
-
end
|
12472
|
-
elsif Utils.match_status_code(http_response.status, ['501'])
|
12473
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12474
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12475
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12476
|
-
hook_ctx: hook_ctx
|
12477
|
-
),
|
12478
|
-
response: http_response
|
12479
|
-
)
|
12480
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
12481
|
-
throw obj
|
12482
|
-
else
|
12483
|
-
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'
|
12484
|
-
end
|
12485
|
-
elsif Utils.match_status_code(http_response.status, ['502'])
|
12486
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12487
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12488
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12489
|
-
hook_ctx: hook_ctx
|
12490
|
-
),
|
12491
|
-
response: http_response
|
12492
|
-
)
|
12493
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
12494
|
-
throw obj
|
12495
|
-
else
|
12496
|
-
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'
|
12497
|
-
end
|
12498
|
-
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
12499
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
12500
|
-
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
12501
|
-
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
12502
|
-
else
|
12503
|
-
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'
|
12504
|
-
|
12505
|
-
end
|
12506
|
-
end
|
12507
|
-
|
12508
|
-
|
12509
|
-
sig { params(request: T.nilable(Models::Operations::AtsListBackgroundCheckRequestRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListBackgroundCheckRequestResponse) }
|
12510
|
-
def list_background_check_request(request, retries = nil, timeout_ms = nil)
|
12511
|
-
# list_background_check_request - List Background Check Request
|
12512
|
-
url, params = @sdk_configuration.get_server_details
|
12513
|
-
base_url = Utils.template_url(url, params)
|
12514
|
-
url = "#{base_url}/unified/ats/background_checks/orders"
|
12515
|
-
headers = Utils.get_headers(request)
|
12516
|
-
query_params = Utils.get_query_params(Models::Operations::AtsListBackgroundCheckRequestRequest, request)
|
12517
|
-
headers['Accept'] = 'application/json'
|
12518
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
12519
|
-
retries ||= @sdk_configuration.retry_config
|
12520
|
-
retries ||= Utils::RetryConfig.new(
|
12521
|
-
backoff: Utils::BackoffStrategy.new(
|
12522
|
-
exponent: 1.5,
|
12523
|
-
initial_interval: 500,
|
12524
|
-
max_elapsed_time: 3_600_000,
|
12525
|
-
max_interval: 60_000
|
12526
|
-
),
|
12527
|
-
retry_connection_errors: true,
|
12528
|
-
strategy: 'backoff'
|
12529
|
-
)
|
12530
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
12531
|
-
retry_options[:retry_statuses] = [429, 408]
|
12532
|
-
|
12533
|
-
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
12534
|
-
|
12535
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
12536
|
-
timeout ||= @sdk_configuration.timeout
|
12537
|
-
|
12538
|
-
connection = @sdk_configuration.client.dup
|
12539
|
-
connection.request :retry, retry_options
|
12540
|
-
|
12541
|
-
hook_ctx = SDKHooks::HookContext.new(
|
12542
|
-
base_url: base_url,
|
12543
|
-
oauth2_scopes: [],
|
12544
|
-
operation_id: 'ats_list_background_check_request',
|
12545
|
-
security_source: @sdk_configuration.security_source
|
12546
|
-
)
|
12547
|
-
|
12548
|
-
error = T.let(nil, T.nilable(StandardError))
|
12549
|
-
http_response = T.let(nil, T.nilable(Faraday::Response))
|
12550
|
-
|
12551
|
-
|
12552
|
-
begin
|
12553
|
-
http_response = connection.get(url) do |req|
|
12554
|
-
req.headers.merge!(headers)
|
12555
|
-
req.options.timeout = timeout unless timeout.nil?
|
12556
|
-
req.params = query_params
|
12557
|
-
Utils.configure_request_security(req, security)
|
12558
|
-
|
12559
|
-
@sdk_configuration.hooks.before_request(
|
12560
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
12561
|
-
hook_ctx: hook_ctx
|
12562
|
-
),
|
12563
|
-
request: req
|
12564
|
-
)
|
12565
|
-
end
|
12566
|
-
rescue StandardError => e
|
12567
|
-
error = e
|
12568
|
-
ensure
|
12569
|
-
if http_response.nil? || Utils.error_status?(http_response.status)
|
12570
|
-
http_response = @sdk_configuration.hooks.after_error(
|
12571
|
-
error: error,
|
12572
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
12573
|
-
hook_ctx: hook_ctx
|
12574
|
-
),
|
12575
|
-
response: http_response
|
12576
|
-
)
|
12577
|
-
else
|
12578
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12579
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12580
|
-
hook_ctx: hook_ctx
|
12581
|
-
),
|
12582
|
-
response: http_response
|
12583
|
-
)
|
12584
|
-
end
|
12585
|
-
|
12586
|
-
if http_response.nil?
|
12587
|
-
raise error if !error.nil?
|
12588
|
-
raise 'no response'
|
12589
|
-
end
|
12590
|
-
end
|
12591
|
-
|
12592
|
-
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
12593
|
-
if Utils.match_status_code(http_response.status, ['200'])
|
12594
|
-
if Utils.match_content_type(content_type, 'application/json')
|
12595
|
-
http_response = @sdk_configuration.hooks.after_success(
|
12596
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
12597
|
-
hook_ctx: hook_ctx
|
12598
|
-
),
|
12599
|
-
response: http_response
|
12600
|
-
)
|
12601
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::BackgroundCheckOrderPaginated)
|
12602
|
-
response = Models::Operations::AtsListBackgroundCheckRequestResponse.new(
|
11778
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::BackgroundCheckPackagePaginated)
|
11779
|
+
response = Models::Operations::AtsListBackgroundCheckPackagesResponse.new(
|
12603
11780
|
status_code: http_response.status,
|
12604
11781
|
content_type: content_type,
|
12605
11782
|
raw_response: http_response,
|
12606
|
-
|
11783
|
+
background_check_package_paginated: obj
|
12607
11784
|
)
|
12608
11785
|
|
12609
11786
|
return response
|