stackone_client 0.25.0 → 0.29.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 +786 -239
- data/lib/stack_one/hris.rb +2634 -446
- data/lib/stack_one/models/operations/ats_get_application_document_category_request.rb +49 -0
- data/lib/stack_one/models/operations/ats_get_application_document_category_response.rb +49 -0
- data/lib/stack_one/models/operations/ats_list_application_document_categories_queryparam_filter.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_application_document_categories_request.rb +69 -0
- data/lib/stack_one/models/operations/ats_list_application_document_categories_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_get_company_group_request.rb +49 -0
- data/lib/stack_one/models/operations/hris_get_company_group_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_get_division_group_request.rb +49 -0
- data/lib/stack_one/models/operations/hris_get_division_group_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_get_shift_request.rb +49 -0
- data/lib/stack_one/models/operations/hris_get_shift_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_get_task_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_task_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_list_companies_groups_queryparam_filter.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_companies_groups_request.rb +69 -0
- data/lib/stack_one/models/operations/hris_list_companies_groups_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_list_division_groups_queryparam_filter.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_division_groups_request.rb +69 -0
- data/lib/stack_one/models/operations/hris_list_division_groups_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_list_shifts_queryparam_filter.rb +49 -0
- data/lib/stack_one/models/operations/hris_list_shifts_queryparam_status.rb +23 -0
- data/lib/stack_one/models/operations/hris_list_shifts_request.rb +69 -0
- data/lib/stack_one/models/operations/hris_list_shifts_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_list_tasks_queryparam_filter.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_tasks_request.rb +73 -0
- data/lib/stack_one/models/operations/hris_list_tasks_response.rb +49 -0
- data/lib/stack_one/models/operations.rb +26 -0
- data/lib/stack_one/models/shared/approval_status.rb +37 -0
- data/lib/stack_one/models/shared/data.rb +81 -0
- data/lib/stack_one/models/shared/hrisdivision.rb +73 -0
- data/lib/stack_one/models/shared/hrisdivision_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisdivision_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisdivision_type.rb +37 -0
- data/lib/stack_one/models/shared/hrisdivision_value.rb +26 -0
- data/lib/stack_one/models/shared/hrisdivisionspaginated.rb +45 -0
- data/lib/stack_one/models/shared/hrisdivisionsresult.rb +37 -0
- data/lib/stack_one/models/shared/hrisshift.rb +81 -0
- data/lib/stack_one/models/shared/hrisshift_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisshift_schemas_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisshift_schemas_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisshift_schemas_value.rb +23 -0
- data/lib/stack_one/models/shared/hrisshift_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisshift_status.rb +37 -0
- data/lib/stack_one/models/shared/hrisshift_value.rb +22 -0
- data/lib/stack_one/models/shared/hrisshiftresult.rb +37 -0
- data/lib/stack_one/models/shared/hrisshiftresult_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisshiftresult_approval_status.rb +37 -0
- data/lib/stack_one/models/shared/hrisshiftresult_schemas_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisshiftresult_schemas_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisshiftresult_schemas_value.rb +23 -0
- data/lib/stack_one/models/shared/hrisshiftresult_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisshiftresult_status.rb +37 -0
- data/lib/stack_one/models/shared/hrisshiftresult_value.rb +22 -0
- data/lib/stack_one/models/shared/hrisshiftspaginated.rb +41 -0
- data/lib/stack_one/models/shared/shiftbreak.rb +57 -0
- data/lib/stack_one/models/shared.rb +28 -0
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +56 -2
data/lib/stack_one/ats.rb
CHANGED
@@ -3418,19 +3418,19 @@ module StackOne
|
|
3418
3418
|
end
|
3419
3419
|
|
3420
3420
|
|
3421
|
-
sig { params(request: T.nilable(Models::Operations::
|
3422
|
-
def
|
3423
|
-
#
|
3421
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetApplicationDocumentCategoryRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationDocumentCategoryResponse) }
|
3422
|
+
def get_application_document_category(request, retries = nil, timeout_ms = nil)
|
3423
|
+
# get_application_document_category - Get Application Document Category
|
3424
3424
|
url, params = @sdk_configuration.get_server_details
|
3425
3425
|
base_url = Utils.template_url(url, params)
|
3426
3426
|
url = Utils.generate_url(
|
3427
|
-
Models::Operations::
|
3427
|
+
Models::Operations::AtsGetApplicationDocumentCategoryRequest,
|
3428
3428
|
base_url,
|
3429
|
-
'/unified/ats/
|
3429
|
+
'/unified/ats/documents/application_categories/{id}',
|
3430
3430
|
request
|
3431
3431
|
)
|
3432
3432
|
headers = Utils.get_headers(request)
|
3433
|
-
query_params = Utils.get_query_params(Models::Operations::
|
3433
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationDocumentCategoryRequest, request)
|
3434
3434
|
headers['Accept'] = 'application/json'
|
3435
3435
|
headers['user-agent'] = @sdk_configuration.user_agent
|
3436
3436
|
retries ||= @sdk_configuration.retry_config
|
@@ -3458,7 +3458,7 @@ module StackOne
|
|
3458
3458
|
hook_ctx = SDKHooks::HookContext.new(
|
3459
3459
|
base_url: base_url,
|
3460
3460
|
oauth2_scopes: [],
|
3461
|
-
operation_id: '
|
3461
|
+
operation_id: 'ats_get_application_document_category',
|
3462
3462
|
security_source: @sdk_configuration.security_source
|
3463
3463
|
)
|
3464
3464
|
|
@@ -3515,12 +3515,12 @@ module StackOne
|
|
3515
3515
|
),
|
3516
3516
|
response: http_response
|
3517
3517
|
)
|
3518
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
3519
|
-
response = Models::Operations::
|
3518
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ReferenceResult)
|
3519
|
+
response = Models::Operations::AtsGetApplicationDocumentCategoryResponse.new(
|
3520
3520
|
status_code: http_response.status,
|
3521
3521
|
content_type: content_type,
|
3522
3522
|
raw_response: http_response,
|
3523
|
-
|
3523
|
+
reference_result: obj
|
3524
3524
|
)
|
3525
3525
|
|
3526
3526
|
return response
|
@@ -3694,19 +3694,19 @@ module StackOne
|
|
3694
3694
|
end
|
3695
3695
|
|
3696
3696
|
|
3697
|
-
sig { params(request: T.nilable(Models::Operations::
|
3698
|
-
def
|
3699
|
-
#
|
3697
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetApplicationNoteRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationNoteResponse) }
|
3698
|
+
def get_application_note(request, retries = nil, timeout_ms = nil)
|
3699
|
+
# get_application_note - Get Application Note
|
3700
3700
|
url, params = @sdk_configuration.get_server_details
|
3701
3701
|
base_url = Utils.template_url(url, params)
|
3702
3702
|
url = Utils.generate_url(
|
3703
|
-
Models::Operations::
|
3703
|
+
Models::Operations::AtsGetApplicationNoteRequest,
|
3704
3704
|
base_url,
|
3705
|
-
'/unified/ats/applications/{id}/
|
3705
|
+
'/unified/ats/applications/{id}/notes/{subResourceId}',
|
3706
3706
|
request
|
3707
3707
|
)
|
3708
3708
|
headers = Utils.get_headers(request)
|
3709
|
-
query_params = Utils.get_query_params(Models::Operations::
|
3709
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationNoteRequest, request)
|
3710
3710
|
headers['Accept'] = 'application/json'
|
3711
3711
|
headers['user-agent'] = @sdk_configuration.user_agent
|
3712
3712
|
retries ||= @sdk_configuration.retry_config
|
@@ -3734,7 +3734,7 @@ module StackOne
|
|
3734
3734
|
hook_ctx = SDKHooks::HookContext.new(
|
3735
3735
|
base_url: base_url,
|
3736
3736
|
oauth2_scopes: [],
|
3737
|
-
operation_id: '
|
3737
|
+
operation_id: 'ats_get_application_note',
|
3738
3738
|
security_source: @sdk_configuration.security_source
|
3739
3739
|
)
|
3740
3740
|
|
@@ -3791,12 +3791,12 @@ module StackOne
|
|
3791
3791
|
),
|
3792
3792
|
response: http_response
|
3793
3793
|
)
|
3794
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
3795
|
-
response = Models::Operations::
|
3794
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::NoteResult)
|
3795
|
+
response = Models::Operations::AtsGetApplicationNoteResponse.new(
|
3796
3796
|
status_code: http_response.status,
|
3797
3797
|
content_type: content_type,
|
3798
3798
|
raw_response: http_response,
|
3799
|
-
|
3799
|
+
note_result: obj
|
3800
3800
|
)
|
3801
3801
|
|
3802
3802
|
return response
|
@@ -3970,19 +3970,19 @@ module StackOne
|
|
3970
3970
|
end
|
3971
3971
|
|
3972
3972
|
|
3973
|
-
sig { params(request: T.nilable(Models::Operations::
|
3974
|
-
def
|
3975
|
-
#
|
3973
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetApplicationOfferRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationOfferResponse) }
|
3974
|
+
def get_application_offer(request, retries = nil, timeout_ms = nil)
|
3975
|
+
# get_application_offer - Get Application Offer
|
3976
3976
|
url, params = @sdk_configuration.get_server_details
|
3977
3977
|
base_url = Utils.template_url(url, params)
|
3978
3978
|
url = Utils.generate_url(
|
3979
|
-
Models::Operations::
|
3979
|
+
Models::Operations::AtsGetApplicationOfferRequest,
|
3980
3980
|
base_url,
|
3981
|
-
'/unified/ats/applications/{id}/
|
3981
|
+
'/unified/ats/applications/{id}/offers/{subResourceId}',
|
3982
3982
|
request
|
3983
3983
|
)
|
3984
3984
|
headers = Utils.get_headers(request)
|
3985
|
-
query_params = Utils.get_query_params(Models::Operations::
|
3985
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationOfferRequest, request)
|
3986
3986
|
headers['Accept'] = 'application/json'
|
3987
3987
|
headers['user-agent'] = @sdk_configuration.user_agent
|
3988
3988
|
retries ||= @sdk_configuration.retry_config
|
@@ -4010,7 +4010,7 @@ module StackOne
|
|
4010
4010
|
hook_ctx = SDKHooks::HookContext.new(
|
4011
4011
|
base_url: base_url,
|
4012
4012
|
oauth2_scopes: [],
|
4013
|
-
operation_id: '
|
4013
|
+
operation_id: 'ats_get_application_offer',
|
4014
4014
|
security_source: @sdk_configuration.security_source
|
4015
4015
|
)
|
4016
4016
|
|
@@ -4067,12 +4067,12 @@ module StackOne
|
|
4067
4067
|
),
|
4068
4068
|
response: http_response
|
4069
4069
|
)
|
4070
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
4071
|
-
response = Models::Operations::
|
4070
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::OffersResult)
|
4071
|
+
response = Models::Operations::AtsGetApplicationOfferResponse.new(
|
4072
4072
|
status_code: http_response.status,
|
4073
4073
|
content_type: content_type,
|
4074
4074
|
raw_response: http_response,
|
4075
|
-
|
4075
|
+
offers_result: obj
|
4076
4076
|
)
|
4077
4077
|
|
4078
4078
|
return response
|
@@ -4246,19 +4246,19 @@ module StackOne
|
|
4246
4246
|
end
|
4247
4247
|
|
4248
4248
|
|
4249
|
-
sig { params(request: T.nilable(Models::Operations::
|
4250
|
-
def
|
4251
|
-
#
|
4249
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetApplicationScheduledInterviewRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationScheduledInterviewResponse) }
|
4250
|
+
def get_application_scheduled_interview(request, retries = nil, timeout_ms = nil)
|
4251
|
+
# get_application_scheduled_interview - Get Applications scheduled interview
|
4252
4252
|
url, params = @sdk_configuration.get_server_details
|
4253
4253
|
base_url = Utils.template_url(url, params)
|
4254
4254
|
url = Utils.generate_url(
|
4255
|
-
Models::Operations::
|
4255
|
+
Models::Operations::AtsGetApplicationScheduledInterviewRequest,
|
4256
4256
|
base_url,
|
4257
|
-
'/unified/ats/applications/{id}/
|
4257
|
+
'/unified/ats/applications/{id}/scheduled_interviews/{subResourceId}',
|
4258
4258
|
request
|
4259
4259
|
)
|
4260
4260
|
headers = Utils.get_headers(request)
|
4261
|
-
query_params = Utils.get_query_params(Models::Operations::
|
4261
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationScheduledInterviewRequest, request)
|
4262
4262
|
headers['Accept'] = 'application/json'
|
4263
4263
|
headers['user-agent'] = @sdk_configuration.user_agent
|
4264
4264
|
retries ||= @sdk_configuration.retry_config
|
@@ -4286,7 +4286,7 @@ module StackOne
|
|
4286
4286
|
hook_ctx = SDKHooks::HookContext.new(
|
4287
4287
|
base_url: base_url,
|
4288
4288
|
oauth2_scopes: [],
|
4289
|
-
operation_id: '
|
4289
|
+
operation_id: 'ats_get_application_scheduled_interview',
|
4290
4290
|
security_source: @sdk_configuration.security_source
|
4291
4291
|
)
|
4292
4292
|
|
@@ -4343,12 +4343,12 @@ module StackOne
|
|
4343
4343
|
),
|
4344
4344
|
response: http_response
|
4345
4345
|
)
|
4346
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
4347
|
-
response = Models::Operations::
|
4346
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ScheduledInterviewsResult)
|
4347
|
+
response = Models::Operations::AtsGetApplicationScheduledInterviewResponse.new(
|
4348
4348
|
status_code: http_response.status,
|
4349
4349
|
content_type: content_type,
|
4350
4350
|
raw_response: http_response,
|
4351
|
-
|
4351
|
+
scheduled_interviews_result: obj
|
4352
4352
|
)
|
4353
4353
|
|
4354
4354
|
return response
|
@@ -4522,19 +4522,19 @@ module StackOne
|
|
4522
4522
|
end
|
4523
4523
|
|
4524
4524
|
|
4525
|
-
sig { params(request: T.nilable(Models::Operations::
|
4526
|
-
def
|
4527
|
-
#
|
4525
|
+
sig { params(request: T.nilable(Models::Operations::AtsGetApplicationScorecardRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetApplicationScorecardResponse) }
|
4526
|
+
def get_application_scorecard(request, retries = nil, timeout_ms = nil)
|
4527
|
+
# get_application_scorecard - Get Application Scorecard
|
4528
4528
|
url, params = @sdk_configuration.get_server_details
|
4529
4529
|
base_url = Utils.template_url(url, params)
|
4530
4530
|
url = Utils.generate_url(
|
4531
|
-
Models::Operations::
|
4531
|
+
Models::Operations::AtsGetApplicationScorecardRequest,
|
4532
4532
|
base_url,
|
4533
|
-
'/unified/ats/
|
4533
|
+
'/unified/ats/applications/{id}/scorecards/{subResourceId}',
|
4534
4534
|
request
|
4535
4535
|
)
|
4536
4536
|
headers = Utils.get_headers(request)
|
4537
|
-
query_params = Utils.get_query_params(Models::Operations::
|
4537
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetApplicationScorecardRequest, request)
|
4538
4538
|
headers['Accept'] = 'application/json'
|
4539
4539
|
headers['user-agent'] = @sdk_configuration.user_agent
|
4540
4540
|
retries ||= @sdk_configuration.retry_config
|
@@ -4562,7 +4562,7 @@ module StackOne
|
|
4562
4562
|
hook_ctx = SDKHooks::HookContext.new(
|
4563
4563
|
base_url: base_url,
|
4564
4564
|
oauth2_scopes: [],
|
4565
|
-
operation_id: '
|
4565
|
+
operation_id: 'ats_get_application_scorecard',
|
4566
4566
|
security_source: @sdk_configuration.security_source
|
4567
4567
|
)
|
4568
4568
|
|
@@ -4619,12 +4619,12 @@ module StackOne
|
|
4619
4619
|
),
|
4620
4620
|
response: http_response
|
4621
4621
|
)
|
4622
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
4623
|
-
response = Models::Operations::
|
4622
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ScorecardsResult)
|
4623
|
+
response = Models::Operations::AtsGetApplicationScorecardResponse.new(
|
4624
4624
|
status_code: http_response.status,
|
4625
4625
|
content_type: content_type,
|
4626
4626
|
raw_response: http_response,
|
4627
|
-
|
4627
|
+
scorecards_result: obj
|
4628
4628
|
)
|
4629
4629
|
|
4630
4630
|
return response
|
@@ -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::AtsGetAssessmentsPackageRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetAssessmentsPackageResponse) }
|
4802
|
+
def get_assessments_package(request, retries = nil, timeout_ms = nil)
|
4803
|
+
# get_assessments_package - Get Assessments Package
|
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::AtsGetAssessmentsPackageRequest,
|
4808
4808
|
base_url,
|
4809
|
-
'/unified/ats/assessments/
|
4809
|
+
'/unified/ats/assessments/packages/{id}',
|
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::AtsGetAssessmentsPackageRequest, 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_package',
|
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::AssessmentPackageResult)
|
4899
|
+
response = Models::Operations::AtsGetAssessmentsPackageResponse.new(
|
4900
4900
|
status_code: http_response.status,
|
4901
4901
|
content_type: content_type,
|
4902
4902
|
raw_response: http_response,
|
4903
|
-
|
4903
|
+
assessment_package_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::AtsGetAssessmentsResultRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetAssessmentsResultResponse) }
|
5078
|
+
def get_assessments_result(request, retries = nil, timeout_ms = nil)
|
5079
|
+
# get_assessments_result - Get Assessments Results
|
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::AtsGetAssessmentsResultRequest,
|
5084
5084
|
base_url,
|
5085
|
-
'/unified/ats/
|
5085
|
+
'/unified/ats/assessments/orders/{id}/results',
|
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::AtsGetAssessmentsResultRequest, 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_assessments_result',
|
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::AssessmentResultsResult)
|
5175
|
+
response = Models::Operations::AtsGetAssessmentsResultResponse.new(
|
5176
5176
|
status_code: http_response.status,
|
5177
5177
|
content_type: content_type,
|
5178
5178
|
raw_response: http_response,
|
5179
|
-
|
5179
|
+
assessment_results_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::AtsGetBackgroundCheckPackageRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetBackgroundCheckPackageResponse) }
|
5354
|
+
def get_background_check_package(request, retries = nil, timeout_ms = nil)
|
5355
|
+
# get_background_check_package - Get Background Check Package
|
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::AtsGetBackgroundCheckPackageRequest,
|
5360
5360
|
base_url,
|
5361
|
-
'/unified/ats/background_checks/
|
5361
|
+
'/unified/ats/background_checks/packages/{id}',
|
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::AtsGetBackgroundCheckPackageRequest, 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_package',
|
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::BackgroundCheckPackageResult)
|
5451
|
+
response = Models::Operations::AtsGetBackgroundCheckPackageResponse.new(
|
5452
5452
|
status_code: http_response.status,
|
5453
5453
|
content_type: content_type,
|
5454
5454
|
raw_response: http_response,
|
5455
|
-
|
5455
|
+
background_check_package_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::AtsGetBackgroundCheckResultRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetBackgroundCheckResultResponse) }
|
5630
|
+
def get_background_check_result(request, retries = nil, timeout_ms = nil)
|
5631
|
+
# get_background_check_result - Get Background Check Results
|
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::AtsGetBackgroundCheckResultRequest,
|
5636
5636
|
base_url,
|
5637
|
-
'/unified/ats/
|
5637
|
+
'/unified/ats/background_checks/orders/{id}/results',
|
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::AtsGetBackgroundCheckResultRequest, 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_background_check_result',
|
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::BackgroundCheckResultsResult)
|
5727
|
+
response = Models::Operations::AtsGetBackgroundCheckResultResponse.new(
|
5728
5728
|
status_code: http_response.status,
|
5729
5729
|
content_type: content_type,
|
5730
5730
|
raw_response: http_response,
|
5731
|
-
|
5731
|
+
background_check_results_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::AtsGetCandidateRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateResponse) }
|
5906
|
+
def get_candidate(request, retries = nil, timeout_ms = nil)
|
5907
|
+
# get_candidate - Get Candidate
|
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::AtsGetCandidateRequest,
|
5912
5912
|
base_url,
|
5913
|
-
'/unified/ats/
|
5913
|
+
'/unified/ats/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::AtsGetCandidateRequest, 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',
|
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::CandidateResult)
|
6003
|
+
response = Models::Operations::AtsGetCandidateResponse.new(
|
6004
6004
|
status_code: http_response.status,
|
6005
6005
|
content_type: content_type,
|
6006
6006
|
raw_response: http_response,
|
6007
|
-
|
6007
|
+
candidate_result: 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::AtsGetCandidateCustomFieldDefinitionRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateCustomFieldDefinitionResponse) }
|
6182
|
+
def get_candidate_custom_field_definition(request, retries = nil, timeout_ms = nil)
|
6183
|
+
# get_candidate_custom_field_definition - Get Candidate Custom Field Definition
|
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::AtsGetCandidateCustomFieldDefinitionRequest,
|
6188
6188
|
base_url,
|
6189
|
-
'/unified/ats/candidates/{id}
|
6189
|
+
'/unified/ats/custom_field_definitions/candidates/{id}',
|
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::AtsGetCandidateCustomFieldDefinitionRequest, 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_custom_field_definition',
|
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::CustomFieldDefinitionResultApiModel)
|
6279
|
+
response = Models::Operations::AtsGetCandidateCustomFieldDefinitionResponse.new(
|
6280
6280
|
status_code: http_response.status,
|
6281
6281
|
content_type: content_type,
|
6282
6282
|
raw_response: http_response,
|
6283
|
-
|
6283
|
+
custom_field_definition_result_api_model: 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::AtsGetCandidateNoteRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetCandidateNoteResponse) }
|
6458
|
+
def get_candidate_note(request, retries = nil, timeout_ms = nil)
|
6459
|
+
# get_candidate_note - Get Candidate Note
|
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::AtsGetCandidateNoteRequest,
|
6464
6464
|
base_url,
|
6465
|
-
'/unified/ats/
|
6465
|
+
'/unified/ats/candidates/{id}/notes/{subResourceId}',
|
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::AtsGetCandidateNoteRequest, 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_candidate_note',
|
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::NoteResult)
|
6555
|
+
response = Models::Operations::AtsGetCandidateNoteResponse.new(
|
6556
6556
|
status_code: http_response.status,
|
6557
6557
|
content_type: content_type,
|
6558
6558
|
raw_response: http_response,
|
6559
|
-
|
6559
|
+
note_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::AtsGetDepartmentRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetDepartmentResponse) }
|
6734
|
+
def get_department(request, retries = nil, timeout_ms = nil)
|
6735
|
+
# get_department - Get Department
|
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::AtsGetDepartmentRequest,
|
6740
6740
|
base_url,
|
6741
|
-
'/unified/ats/
|
6741
|
+
'/unified/ats/departments/{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::AtsGetDepartmentRequest, 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_department',
|
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::DepartmentResult)
|
6831
|
+
response = Models::Operations::AtsGetDepartmentResponse.new(
|
6832
6832
|
status_code: http_response.status,
|
6833
6833
|
content_type: content_type,
|
6834
6834
|
raw_response: http_response,
|
6835
|
-
|
6835
|
+
department_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::AtsGetInterviewRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetInterviewResponse) }
|
7010
|
+
def get_interview(request, retries = nil, timeout_ms = nil)
|
7011
|
+
# get_interview - Get Interview
|
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::AtsGetInterviewRequest,
|
7016
7016
|
base_url,
|
7017
|
-
'/unified/ats/
|
7017
|
+
'/unified/ats/interviews/{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::AtsGetInterviewRequest, 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',
|
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::InterviewsResult)
|
7107
|
+
response = Models::Operations::AtsGetInterviewResponse.new(
|
7108
7108
|
status_code: http_response.status,
|
7109
7109
|
content_type: content_type,
|
7110
7110
|
raw_response: http_response,
|
7111
|
-
|
7111
|
+
interviews_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::AtsGetInterviewStageRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetInterviewStageResponse) }
|
7286
|
+
def get_interview_stage(request, retries = nil, timeout_ms = nil)
|
7287
|
+
# get_interview_stage - Get Interview Stage
|
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::AtsGetInterviewStageRequest,
|
7292
7292
|
base_url,
|
7293
|
-
'/unified/ats/
|
7293
|
+
'/unified/ats/interview_stages/{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::AtsGetInterviewStageRequest, 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_interview_stage',
|
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::InterviewStageResult)
|
7383
|
+
response = Models::Operations::AtsGetInterviewStageResponse.new(
|
7384
7384
|
status_code: http_response.status,
|
7385
7385
|
content_type: content_type,
|
7386
7386
|
raw_response: http_response,
|
7387
|
-
|
7387
|
+
interview_stage_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::AtsGetJobRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobResponse) }
|
7562
|
+
def get_job(request, retries = nil, timeout_ms = nil)
|
7563
|
+
# get_job - Get Job
|
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::AtsGetJobRequest,
|
7568
7568
|
base_url,
|
7569
|
-
'/unified/ats/
|
7569
|
+
'/unified/ats/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::AtsGetJobRequest, 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',
|
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::JobResult)
|
7659
|
+
response = Models::Operations::AtsGetJobResponse.new(
|
7660
7660
|
status_code: http_response.status,
|
7661
7661
|
content_type: content_type,
|
7662
7662
|
raw_response: http_response,
|
7663
|
-
|
7663
|
+
job_result: 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::AtsGetJobCustomFieldDefinitionRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobCustomFieldDefinitionResponse) }
|
7838
|
+
def get_job_custom_field_definition(request, retries = nil, timeout_ms = nil)
|
7839
|
+
# get_job_custom_field_definition - Get Job Custom Field Definition
|
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::AtsGetJobCustomFieldDefinitionRequest,
|
7844
7844
|
base_url,
|
7845
|
-
'/unified/ats/
|
7845
|
+
'/unified/ats/custom_field_definitions/jobs/{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::AtsGetJobCustomFieldDefinitionRequest, 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_custom_field_definition',
|
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::CustomFieldDefinitionResultApiModel)
|
7935
|
+
response = Models::Operations::AtsGetJobCustomFieldDefinitionResponse.new(
|
7936
7936
|
status_code: http_response.status,
|
7937
7937
|
content_type: content_type,
|
7938
7938
|
raw_response: http_response,
|
7939
|
-
|
7939
|
+
custom_field_definition_result_api_model: 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::AtsGetJobPostingRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetJobPostingResponse) }
|
8114
|
+
def get_job_posting(request, retries = nil, timeout_ms = nil)
|
8115
|
+
# get_job_posting - Get Job Posting
|
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::AtsGetJobPostingRequest,
|
8120
8120
|
base_url,
|
8121
|
-
'/unified/ats/
|
8121
|
+
'/unified/ats/job_postings/{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::AtsGetJobPostingRequest, 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_job_posting',
|
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::JobPostingResult)
|
8211
|
+
response = Models::Operations::AtsGetJobPostingResponse.new(
|
8212
8212
|
status_code: http_response.status,
|
8213
8213
|
content_type: content_type,
|
8214
8214
|
raw_response: http_response,
|
8215
|
-
|
8215
|
+
job_posting_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::AtsGetListRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetListResponse) }
|
8390
|
+
def get_list(request, retries = nil, timeout_ms = nil)
|
8391
|
+
# get_list - Get List
|
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::AtsGetListRequest,
|
8396
8396
|
base_url,
|
8397
|
-
'/unified/ats/
|
8397
|
+
'/unified/ats/lists/{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::AtsGetListRequest, 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_list',
|
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::ListResult)
|
8487
|
+
response = Models::Operations::AtsGetListResponse.new(
|
8488
8488
|
status_code: http_response.status,
|
8489
8489
|
content_type: content_type,
|
8490
8490
|
raw_response: http_response,
|
8491
|
-
|
8491
|
+
list_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::AtsGetLocationRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetLocationResponse) }
|
8666
|
+
def get_location(request, retries = nil, timeout_ms = nil)
|
8667
|
+
# get_location - Get Location
|
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::AtsGetLocationRequest,
|
8672
8672
|
base_url,
|
8673
|
-
'/unified/ats/
|
8673
|
+
'/unified/ats/locations/{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::AtsGetLocationRequest, 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_location',
|
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::ATSLocationResult)
|
8763
|
+
response = Models::Operations::AtsGetLocationResponse.new(
|
8764
8764
|
status_code: http_response.status,
|
8765
8765
|
content_type: content_type,
|
8766
8766
|
raw_response: http_response,
|
8767
|
-
|
8767
|
+
ats_location_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::AtsGetOfferRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetOfferResponse) }
|
8942
|
+
def get_offer(request, retries = nil, timeout_ms = nil)
|
8943
|
+
# get_offer - Get Offer
|
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::AtsGetOfferRequest,
|
8948
8948
|
base_url,
|
8949
|
-
'/unified/ats/
|
8949
|
+
'/unified/ats/offers/{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::AtsGetOfferRequest, 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_offer',
|
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::OffersResult)
|
9039
|
+
response = Models::Operations::AtsGetOfferResponse.new(
|
9040
9040
|
status_code: http_response.status,
|
9041
9041
|
content_type: content_type,
|
9042
9042
|
raw_response: http_response,
|
9043
|
-
|
9043
|
+
offers_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::AtsGetRejectedReasonRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetRejectedReasonResponse) }
|
9218
|
+
def get_rejected_reason(request, retries = nil, timeout_ms = nil)
|
9219
|
+
# get_rejected_reason - Get Rejected Reason
|
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::AtsGetRejectedReasonRequest,
|
9224
9224
|
base_url,
|
9225
|
-
'/unified/ats/
|
9225
|
+
'/unified/ats/rejected_reasons/{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::AtsGetRejectedReasonRequest, 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_rejected_reason',
|
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::RejectedReasonResult)
|
9315
|
+
response = Models::Operations::AtsGetRejectedReasonResponse.new(
|
9316
9316
|
status_code: http_response.status,
|
9317
9317
|
content_type: content_type,
|
9318
9318
|
raw_response: http_response,
|
9319
|
-
|
9319
|
+
rejected_reason_result: obj
|
9320
9320
|
)
|
9321
9321
|
|
9322
9322
|
return response
|
@@ -9490,19 +9490,19 @@ 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::AtsGetUserRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsGetUserResponse) }
|
9494
|
+
def get_user(request, retries = nil, timeout_ms = nil)
|
9495
|
+
# get_user - Get User
|
9496
9496
|
url, params = @sdk_configuration.get_server_details
|
9497
9497
|
base_url = Utils.template_url(url, params)
|
9498
9498
|
url = Utils.generate_url(
|
9499
|
-
Models::Operations::
|
9499
|
+
Models::Operations::AtsGetUserRequest,
|
9500
9500
|
base_url,
|
9501
|
-
'/unified/ats/
|
9501
|
+
'/unified/ats/users/{id}',
|
9502
9502
|
request
|
9503
9503
|
)
|
9504
9504
|
headers = Utils.get_headers(request)
|
9505
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9505
|
+
query_params = Utils.get_query_params(Models::Operations::AtsGetUserRequest, request)
|
9506
9506
|
headers['Accept'] = 'application/json'
|
9507
9507
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9508
9508
|
retries ||= @sdk_configuration.retry_config
|
@@ -9530,7 +9530,7 @@ module StackOne
|
|
9530
9530
|
hook_ctx = SDKHooks::HookContext.new(
|
9531
9531
|
base_url: base_url,
|
9532
9532
|
oauth2_scopes: [],
|
9533
|
-
operation_id: '
|
9533
|
+
operation_id: 'ats_get_user',
|
9534
9534
|
security_source: @sdk_configuration.security_source
|
9535
9535
|
)
|
9536
9536
|
|
@@ -9587,12 +9587,12 @@ module StackOne
|
|
9587
9587
|
),
|
9588
9588
|
response: http_response
|
9589
9589
|
)
|
9590
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9591
|
-
response = Models::Operations::
|
9590
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::UserResult)
|
9591
|
+
response = Models::Operations::AtsGetUserResponse.new(
|
9592
9592
|
status_code: http_response.status,
|
9593
9593
|
content_type: content_type,
|
9594
9594
|
raw_response: http_response,
|
9595
|
-
|
9595
|
+
user_result: obj
|
9596
9596
|
)
|
9597
9597
|
|
9598
9598
|
return response
|
@@ -9766,14 +9766,19 @@ module StackOne
|
|
9766
9766
|
end
|
9767
9767
|
|
9768
9768
|
|
9769
|
-
sig { params(request: T.nilable(Models::Operations::
|
9770
|
-
def
|
9771
|
-
#
|
9769
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationChangesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationChangesResponse) }
|
9770
|
+
def list_application_changes(request, retries = nil, timeout_ms = nil)
|
9771
|
+
# list_application_changes - List Application Changes
|
9772
9772
|
url, params = @sdk_configuration.get_server_details
|
9773
9773
|
base_url = Utils.template_url(url, params)
|
9774
|
-
url =
|
9774
|
+
url = Utils.generate_url(
|
9775
|
+
Models::Operations::AtsListApplicationChangesRequest,
|
9776
|
+
base_url,
|
9777
|
+
'/unified/ats/applications/{id}/changes',
|
9778
|
+
request
|
9779
|
+
)
|
9775
9780
|
headers = Utils.get_headers(request)
|
9776
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9781
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationChangesRequest, request)
|
9777
9782
|
headers['Accept'] = 'application/json'
|
9778
9783
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9779
9784
|
retries ||= @sdk_configuration.retry_config
|
@@ -9801,7 +9806,7 @@ module StackOne
|
|
9801
9806
|
hook_ctx = SDKHooks::HookContext.new(
|
9802
9807
|
base_url: base_url,
|
9803
9808
|
oauth2_scopes: [],
|
9804
|
-
operation_id: '
|
9809
|
+
operation_id: 'ats_list_application_changes',
|
9805
9810
|
security_source: @sdk_configuration.security_source
|
9806
9811
|
)
|
9807
9812
|
|
@@ -9858,12 +9863,554 @@ module StackOne
|
|
9858
9863
|
),
|
9859
9864
|
response: http_response
|
9860
9865
|
)
|
9861
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9862
|
-
response = Models::Operations::
|
9866
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ApplicationChangesPaginated)
|
9867
|
+
response = Models::Operations::AtsListApplicationChangesResponse.new(
|
9863
9868
|
status_code: http_response.status,
|
9864
9869
|
content_type: content_type,
|
9865
9870
|
raw_response: http_response,
|
9866
|
-
|
9871
|
+
application_changes_paginated: obj
|
9872
|
+
)
|
9873
|
+
|
9874
|
+
return response
|
9875
|
+
else
|
9876
|
+
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'
|
9877
|
+
end
|
9878
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
9879
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9880
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9881
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9882
|
+
hook_ctx: hook_ctx
|
9883
|
+
),
|
9884
|
+
response: http_response
|
9885
|
+
)
|
9886
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
9887
|
+
throw obj
|
9888
|
+
else
|
9889
|
+
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'
|
9890
|
+
end
|
9891
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
9892
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9893
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9894
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9895
|
+
hook_ctx: hook_ctx
|
9896
|
+
),
|
9897
|
+
response: http_response
|
9898
|
+
)
|
9899
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
9900
|
+
throw obj
|
9901
|
+
else
|
9902
|
+
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'
|
9903
|
+
end
|
9904
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
9905
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9906
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9907
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9908
|
+
hook_ctx: hook_ctx
|
9909
|
+
),
|
9910
|
+
response: http_response
|
9911
|
+
)
|
9912
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
9913
|
+
throw obj
|
9914
|
+
else
|
9915
|
+
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'
|
9916
|
+
end
|
9917
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
9918
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9919
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9920
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9921
|
+
hook_ctx: hook_ctx
|
9922
|
+
),
|
9923
|
+
response: http_response
|
9924
|
+
)
|
9925
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
9926
|
+
throw obj
|
9927
|
+
else
|
9928
|
+
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'
|
9929
|
+
end
|
9930
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
9931
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9932
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9933
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9934
|
+
hook_ctx: hook_ctx
|
9935
|
+
),
|
9936
|
+
response: http_response
|
9937
|
+
)
|
9938
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
9939
|
+
throw obj
|
9940
|
+
else
|
9941
|
+
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'
|
9942
|
+
end
|
9943
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
9944
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9945
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9946
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9947
|
+
hook_ctx: hook_ctx
|
9948
|
+
),
|
9949
|
+
response: http_response
|
9950
|
+
)
|
9951
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
9952
|
+
throw obj
|
9953
|
+
else
|
9954
|
+
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'
|
9955
|
+
end
|
9956
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
9957
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9958
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9959
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9960
|
+
hook_ctx: hook_ctx
|
9961
|
+
),
|
9962
|
+
response: http_response
|
9963
|
+
)
|
9964
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
9965
|
+
throw obj
|
9966
|
+
else
|
9967
|
+
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'
|
9968
|
+
end
|
9969
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
9970
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9971
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9972
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9973
|
+
hook_ctx: hook_ctx
|
9974
|
+
),
|
9975
|
+
response: http_response
|
9976
|
+
)
|
9977
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
9978
|
+
throw obj
|
9979
|
+
else
|
9980
|
+
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'
|
9981
|
+
end
|
9982
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
9983
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9984
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9985
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9986
|
+
hook_ctx: hook_ctx
|
9987
|
+
),
|
9988
|
+
response: http_response
|
9989
|
+
)
|
9990
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
9991
|
+
throw obj
|
9992
|
+
else
|
9993
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9994
|
+
end
|
9995
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
9996
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9997
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9998
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9999
|
+
hook_ctx: hook_ctx
|
10000
|
+
),
|
10001
|
+
response: http_response
|
10002
|
+
)
|
10003
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
10004
|
+
throw obj
|
10005
|
+
else
|
10006
|
+
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'
|
10007
|
+
end
|
10008
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
10009
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10010
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10011
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10012
|
+
hook_ctx: hook_ctx
|
10013
|
+
),
|
10014
|
+
response: http_response
|
10015
|
+
)
|
10016
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
10017
|
+
throw obj
|
10018
|
+
else
|
10019
|
+
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'
|
10020
|
+
end
|
10021
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
10022
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10023
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10024
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10025
|
+
hook_ctx: hook_ctx
|
10026
|
+
),
|
10027
|
+
response: http_response
|
10028
|
+
)
|
10029
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
10030
|
+
throw obj
|
10031
|
+
else
|
10032
|
+
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'
|
10033
|
+
end
|
10034
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
10035
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10036
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
10037
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10038
|
+
else
|
10039
|
+
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'
|
10040
|
+
|
10041
|
+
end
|
10042
|
+
end
|
10043
|
+
|
10044
|
+
|
10045
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse) }
|
10046
|
+
def list_application_custom_field_definitions(request, retries = nil, timeout_ms = nil)
|
10047
|
+
# list_application_custom_field_definitions - List Application Custom Field Definitions
|
10048
|
+
url, params = @sdk_configuration.get_server_details
|
10049
|
+
base_url = Utils.template_url(url, params)
|
10050
|
+
url = "#{base_url}/unified/ats/custom_field_definitions/applications"
|
10051
|
+
headers = Utils.get_headers(request)
|
10052
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationCustomFieldDefinitionsRequest, request)
|
10053
|
+
headers['Accept'] = 'application/json'
|
10054
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
10055
|
+
retries ||= @sdk_configuration.retry_config
|
10056
|
+
retries ||= Utils::RetryConfig.new(
|
10057
|
+
backoff: Utils::BackoffStrategy.new(
|
10058
|
+
exponent: 1.5,
|
10059
|
+
initial_interval: 500,
|
10060
|
+
max_elapsed_time: 3_600_000,
|
10061
|
+
max_interval: 60_000
|
10062
|
+
),
|
10063
|
+
retry_connection_errors: true,
|
10064
|
+
strategy: 'backoff'
|
10065
|
+
)
|
10066
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
10067
|
+
retry_options[:retry_statuses] = [429, 408]
|
10068
|
+
|
10069
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
10070
|
+
|
10071
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
10072
|
+
timeout ||= @sdk_configuration.timeout
|
10073
|
+
|
10074
|
+
connection = @sdk_configuration.client.dup
|
10075
|
+
connection.request :retry, retry_options
|
10076
|
+
|
10077
|
+
hook_ctx = SDKHooks::HookContext.new(
|
10078
|
+
base_url: base_url,
|
10079
|
+
oauth2_scopes: [],
|
10080
|
+
operation_id: 'ats_list_application_custom_field_definitions',
|
10081
|
+
security_source: @sdk_configuration.security_source
|
10082
|
+
)
|
10083
|
+
|
10084
|
+
error = T.let(nil, T.nilable(StandardError))
|
10085
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
10086
|
+
|
10087
|
+
|
10088
|
+
begin
|
10089
|
+
http_response = connection.get(url) do |req|
|
10090
|
+
req.headers.merge!(headers)
|
10091
|
+
req.options.timeout = timeout unless timeout.nil?
|
10092
|
+
req.params = query_params
|
10093
|
+
Utils.configure_request_security(req, security)
|
10094
|
+
|
10095
|
+
@sdk_configuration.hooks.before_request(
|
10096
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
10097
|
+
hook_ctx: hook_ctx
|
10098
|
+
),
|
10099
|
+
request: req
|
10100
|
+
)
|
10101
|
+
end
|
10102
|
+
rescue StandardError => e
|
10103
|
+
error = e
|
10104
|
+
ensure
|
10105
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
10106
|
+
http_response = @sdk_configuration.hooks.after_error(
|
10107
|
+
error: error,
|
10108
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
10109
|
+
hook_ctx: hook_ctx
|
10110
|
+
),
|
10111
|
+
response: http_response
|
10112
|
+
)
|
10113
|
+
else
|
10114
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10115
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10116
|
+
hook_ctx: hook_ctx
|
10117
|
+
),
|
10118
|
+
response: http_response
|
10119
|
+
)
|
10120
|
+
end
|
10121
|
+
|
10122
|
+
if http_response.nil?
|
10123
|
+
raise error if !error.nil?
|
10124
|
+
raise 'no response'
|
10125
|
+
end
|
10126
|
+
end
|
10127
|
+
|
10128
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
10129
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
10130
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10131
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10132
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10133
|
+
hook_ctx: hook_ctx
|
10134
|
+
),
|
10135
|
+
response: http_response
|
10136
|
+
)
|
10137
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CustomFieldDefinitionsPaginated)
|
10138
|
+
response = Models::Operations::AtsListApplicationCustomFieldDefinitionsResponse.new(
|
10139
|
+
status_code: http_response.status,
|
10140
|
+
content_type: content_type,
|
10141
|
+
raw_response: http_response,
|
10142
|
+
custom_field_definitions_paginated: obj
|
10143
|
+
)
|
10144
|
+
|
10145
|
+
return response
|
10146
|
+
else
|
10147
|
+
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'
|
10148
|
+
end
|
10149
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
10150
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10151
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10152
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10153
|
+
hook_ctx: hook_ctx
|
10154
|
+
),
|
10155
|
+
response: http_response
|
10156
|
+
)
|
10157
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
10158
|
+
throw obj
|
10159
|
+
else
|
10160
|
+
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'
|
10161
|
+
end
|
10162
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
10163
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10164
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10165
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10166
|
+
hook_ctx: hook_ctx
|
10167
|
+
),
|
10168
|
+
response: http_response
|
10169
|
+
)
|
10170
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
10171
|
+
throw obj
|
10172
|
+
else
|
10173
|
+
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'
|
10174
|
+
end
|
10175
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
10176
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10177
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10178
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10179
|
+
hook_ctx: hook_ctx
|
10180
|
+
),
|
10181
|
+
response: http_response
|
10182
|
+
)
|
10183
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
10184
|
+
throw obj
|
10185
|
+
else
|
10186
|
+
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'
|
10187
|
+
end
|
10188
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
10189
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10190
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10191
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10192
|
+
hook_ctx: hook_ctx
|
10193
|
+
),
|
10194
|
+
response: http_response
|
10195
|
+
)
|
10196
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
10197
|
+
throw obj
|
10198
|
+
else
|
10199
|
+
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'
|
10200
|
+
end
|
10201
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
10202
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10203
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10204
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10205
|
+
hook_ctx: hook_ctx
|
10206
|
+
),
|
10207
|
+
response: http_response
|
10208
|
+
)
|
10209
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
10210
|
+
throw obj
|
10211
|
+
else
|
10212
|
+
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'
|
10213
|
+
end
|
10214
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
10215
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10216
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10217
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10218
|
+
hook_ctx: hook_ctx
|
10219
|
+
),
|
10220
|
+
response: http_response
|
10221
|
+
)
|
10222
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
10223
|
+
throw obj
|
10224
|
+
else
|
10225
|
+
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'
|
10226
|
+
end
|
10227
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
10228
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10229
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10230
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10231
|
+
hook_ctx: hook_ctx
|
10232
|
+
),
|
10233
|
+
response: http_response
|
10234
|
+
)
|
10235
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
10236
|
+
throw obj
|
10237
|
+
else
|
10238
|
+
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'
|
10239
|
+
end
|
10240
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
10241
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10242
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10243
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10244
|
+
hook_ctx: hook_ctx
|
10245
|
+
),
|
10246
|
+
response: http_response
|
10247
|
+
)
|
10248
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
10249
|
+
throw obj
|
10250
|
+
else
|
10251
|
+
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'
|
10252
|
+
end
|
10253
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
10254
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10255
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10256
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10257
|
+
hook_ctx: hook_ctx
|
10258
|
+
),
|
10259
|
+
response: http_response
|
10260
|
+
)
|
10261
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
10262
|
+
throw obj
|
10263
|
+
else
|
10264
|
+
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'
|
10265
|
+
end
|
10266
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
10267
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10268
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10269
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10270
|
+
hook_ctx: hook_ctx
|
10271
|
+
),
|
10272
|
+
response: http_response
|
10273
|
+
)
|
10274
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
10275
|
+
throw obj
|
10276
|
+
else
|
10277
|
+
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'
|
10278
|
+
end
|
10279
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
10280
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10281
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10282
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10283
|
+
hook_ctx: hook_ctx
|
10284
|
+
),
|
10285
|
+
response: http_response
|
10286
|
+
)
|
10287
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
10288
|
+
throw obj
|
10289
|
+
else
|
10290
|
+
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'
|
10291
|
+
end
|
10292
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
10293
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10294
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10295
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10296
|
+
hook_ctx: hook_ctx
|
10297
|
+
),
|
10298
|
+
response: http_response
|
10299
|
+
)
|
10300
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
10301
|
+
throw obj
|
10302
|
+
else
|
10303
|
+
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'
|
10304
|
+
end
|
10305
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
10306
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10307
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
10308
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
10309
|
+
else
|
10310
|
+
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'
|
10311
|
+
|
10312
|
+
end
|
10313
|
+
end
|
10314
|
+
|
10315
|
+
|
10316
|
+
sig { params(request: T.nilable(Models::Operations::AtsListApplicationDocumentCategoriesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AtsListApplicationDocumentCategoriesResponse) }
|
10317
|
+
def list_application_document_categories(request, retries = nil, timeout_ms = nil)
|
10318
|
+
# list_application_document_categories - List Application Document Categories
|
10319
|
+
url, params = @sdk_configuration.get_server_details
|
10320
|
+
base_url = Utils.template_url(url, params)
|
10321
|
+
url = "#{base_url}/unified/ats/documents/application_categories"
|
10322
|
+
headers = Utils.get_headers(request)
|
10323
|
+
query_params = Utils.get_query_params(Models::Operations::AtsListApplicationDocumentCategoriesRequest, request)
|
10324
|
+
headers['Accept'] = 'application/json'
|
10325
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
10326
|
+
retries ||= @sdk_configuration.retry_config
|
10327
|
+
retries ||= Utils::RetryConfig.new(
|
10328
|
+
backoff: Utils::BackoffStrategy.new(
|
10329
|
+
exponent: 1.5,
|
10330
|
+
initial_interval: 500,
|
10331
|
+
max_elapsed_time: 3_600_000,
|
10332
|
+
max_interval: 60_000
|
10333
|
+
),
|
10334
|
+
retry_connection_errors: true,
|
10335
|
+
strategy: 'backoff'
|
10336
|
+
)
|
10337
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
10338
|
+
retry_options[:retry_statuses] = [429, 408]
|
10339
|
+
|
10340
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
10341
|
+
|
10342
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
10343
|
+
timeout ||= @sdk_configuration.timeout
|
10344
|
+
|
10345
|
+
connection = @sdk_configuration.client.dup
|
10346
|
+
connection.request :retry, retry_options
|
10347
|
+
|
10348
|
+
hook_ctx = SDKHooks::HookContext.new(
|
10349
|
+
base_url: base_url,
|
10350
|
+
oauth2_scopes: [],
|
10351
|
+
operation_id: 'ats_list_application_document_categories',
|
10352
|
+
security_source: @sdk_configuration.security_source
|
10353
|
+
)
|
10354
|
+
|
10355
|
+
error = T.let(nil, T.nilable(StandardError))
|
10356
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
10357
|
+
|
10358
|
+
|
10359
|
+
begin
|
10360
|
+
http_response = connection.get(url) do |req|
|
10361
|
+
req.headers.merge!(headers)
|
10362
|
+
req.options.timeout = timeout unless timeout.nil?
|
10363
|
+
req.params = query_params
|
10364
|
+
Utils.configure_request_security(req, security)
|
10365
|
+
|
10366
|
+
@sdk_configuration.hooks.before_request(
|
10367
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
10368
|
+
hook_ctx: hook_ctx
|
10369
|
+
),
|
10370
|
+
request: req
|
10371
|
+
)
|
10372
|
+
end
|
10373
|
+
rescue StandardError => e
|
10374
|
+
error = e
|
10375
|
+
ensure
|
10376
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
10377
|
+
http_response = @sdk_configuration.hooks.after_error(
|
10378
|
+
error: error,
|
10379
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
10380
|
+
hook_ctx: hook_ctx
|
10381
|
+
),
|
10382
|
+
response: http_response
|
10383
|
+
)
|
10384
|
+
else
|
10385
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10386
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10387
|
+
hook_ctx: hook_ctx
|
10388
|
+
),
|
10389
|
+
response: http_response
|
10390
|
+
)
|
10391
|
+
end
|
10392
|
+
|
10393
|
+
if http_response.nil?
|
10394
|
+
raise error if !error.nil?
|
10395
|
+
raise 'no response'
|
10396
|
+
end
|
10397
|
+
end
|
10398
|
+
|
10399
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
10400
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
10401
|
+
if Utils.match_content_type(content_type, 'application/json')
|
10402
|
+
http_response = @sdk_configuration.hooks.after_success(
|
10403
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
10404
|
+
hook_ctx: hook_ctx
|
10405
|
+
),
|
10406
|
+
response: http_response
|
10407
|
+
)
|
10408
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ReferencePaginated)
|
10409
|
+
response = Models::Operations::AtsListApplicationDocumentCategoriesResponse.new(
|
10410
|
+
status_code: http_response.status,
|
10411
|
+
content_type: content_type,
|
10412
|
+
raw_response: http_response,
|
10413
|
+
reference_paginated: obj
|
9867
10414
|
)
|
9868
10415
|
|
9869
10416
|
return response
|