stackone_client 0.5.9 → 0.6.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/accounts.rb +97 -15
- data/lib/stack_one/ats.rb +1442 -288
- data/lib/stack_one/connect_sessions.rb +40 -6
- data/lib/stack_one/connectors.rb +40 -6
- data/lib/stack_one/crm.rb +192 -30
- data/lib/stack_one/hris.rb +1164 -234
- data/lib/stack_one/iam.rb +154 -24
- data/lib/stack_one/lms.rb +515 -81
- data/lib/stack_one/marketing.rb +496 -78
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_application_document_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_note_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scheduled_interview_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_package_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_request_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_result_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_background_check_package_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_background_check_request_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_background_check_result_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_department_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_list_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_notes_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_scheduled_interviews_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_assessments_packages_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_background_check_packages_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_background_check_request_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_candidate_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_departments_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_job_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_lists_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_locations_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_offers_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_account_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_contact_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_list_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_accounts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_contact_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_contacts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_benefit_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_company_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_cost_center_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_department_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_document_category_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_employment_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_skill_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_time_off_balance_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_job_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_response.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_team_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_entries_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_policy_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_type_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_department_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_categories_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_employments_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_skills_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_balances_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_jobs_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_locations_response.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_team_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_entries_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_policies_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_types_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_get_group_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_get_policy_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_get_role_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_list_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_policies_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_roles_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_get_assignment_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_category_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_completion_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_content_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_course_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_skill_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_user_assignment_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_user_completion_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_list_assignments_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_categories_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_completions_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_content_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_courses_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_skills_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_user_assignments_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_user_completions_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_content_block_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_in_app_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_sms_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_content_blocks_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_in_app_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_sms_templates_request.rb +2 -2
- data/lib/stack_one/models/shared/categories.rb +2 -0
- data/lib/stack_one/models/shared/company.rb +5 -2
- data/lib/stack_one/models/shared/connectorsmeta_category.rb +2 -0
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +2 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_categories.rb +2 -0
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +4 -5
- data/lib/stack_one/models/shared/employee_company.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +10 -8
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rb +56 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_employment_contract_type_value.rb +20 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_value.rb +31 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_state.rb +3 -3
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +4 -5
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto.rb +8 -8
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb +56 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_employment_contract_type_value.rb +20 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_value.rb +31 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_state.rb +3 -3
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_state.rb +3 -3
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +2 -0
- data/lib/stack_one/models/shared/state.rb +3 -3
- data/lib/stack_one/models/shared/updateemployeeapimodel.rb +8 -8
- data/lib/stack_one/models/shared/updateemployeeapimodel_employment.rb +56 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_employment_contract_type_value.rb +20 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_value.rb +31 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_state.rb +3 -3
- data/lib/stack_one/models/shared/updateemployeeapimodel_state.rb +3 -3
- data/lib/stack_one/models/shared/updatepackage.rb +5 -2
- data/lib/stack_one/models/shared.rb +27 -6
- data/lib/stack_one/proxy.rb +21 -3
- data/lib/stack_one/sdkconfiguration.rb +18 -7
- data/lib/stack_one/stackone.rb +8 -3
- data/lib/stack_one/utils/retries.rb +95 -0
- metadata +60 -10
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_home_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_work_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_home_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_work_location_state_value.rb +0 -3840
data/lib/stack_one/hris.rb
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
require 'faraday'
|
|
7
7
|
require 'faraday/multipart'
|
|
8
|
+
require 'faraday/retry'
|
|
8
9
|
require 'sorbet-runtime'
|
|
10
|
+
require_relative 'utils/retries'
|
|
9
11
|
|
|
10
12
|
module StackOne
|
|
11
13
|
extend T::Sig
|
|
@@ -19,8 +21,8 @@ module StackOne
|
|
|
19
21
|
end
|
|
20
22
|
|
|
21
23
|
|
|
22
|
-
sig { params(hris_batch_document_upload_request_dto: ::StackOne::Shared::HrisBatchDocumentUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisBatchUploadEmployeeDocumentResponse) }
|
|
23
|
-
def batch_upload_employee_document(hris_batch_document_upload_request_dto, id, x_account_id)
|
|
24
|
+
sig { params(hris_batch_document_upload_request_dto: ::StackOne::Shared::HrisBatchDocumentUploadRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisBatchUploadEmployeeDocumentResponse) }
|
|
25
|
+
def batch_upload_employee_document(hris_batch_document_upload_request_dto, id, x_account_id, retries = nil)
|
|
24
26
|
# batch_upload_employee_document - Batch Upload Employee Document
|
|
25
27
|
request = ::StackOne::Operations::HrisBatchUploadEmployeeDocumentRequest.new(
|
|
26
28
|
|
|
@@ -42,8 +44,24 @@ module StackOne
|
|
|
42
44
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
43
45
|
headers['Accept'] = 'application/json'
|
|
44
46
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
retries ||= @sdk_configuration.retry_config
|
|
48
|
+
retries ||= Utils::RetryConfig.new(
|
|
49
|
+
backoff: Utils::BackoffStrategy.new(
|
|
50
|
+
exponent: 1.5,
|
|
51
|
+
initial_interval: 500,
|
|
52
|
+
max_elapsed_time: 3_600_000,
|
|
53
|
+
max_interval: 60_000
|
|
54
|
+
),
|
|
55
|
+
retry_connection_errors: true,
|
|
56
|
+
strategy: 'backoff'
|
|
57
|
+
)
|
|
58
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
59
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
60
|
+
|
|
61
|
+
connection = @sdk_configuration.client.dup
|
|
62
|
+
connection.request :retry, retry_options
|
|
63
|
+
|
|
64
|
+
r = connection.post(url) do |req|
|
|
47
65
|
req.headers = headers
|
|
48
66
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
49
67
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -76,8 +94,8 @@ module StackOne
|
|
|
76
94
|
end
|
|
77
95
|
|
|
78
96
|
|
|
79
|
-
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeResponse) }
|
|
80
|
-
def create_employee(hris_create_employee_request_dto, x_account_id)
|
|
97
|
+
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeResponse) }
|
|
98
|
+
def create_employee(hris_create_employee_request_dto, x_account_id, retries = nil)
|
|
81
99
|
# create_employee - Creates an employee
|
|
82
100
|
request = ::StackOne::Operations::HrisCreateEmployeeRequest.new(
|
|
83
101
|
|
|
@@ -93,8 +111,24 @@ module StackOne
|
|
|
93
111
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
94
112
|
headers['Accept'] = 'application/json'
|
|
95
113
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
96
|
-
|
|
97
|
-
|
|
114
|
+
retries ||= @sdk_configuration.retry_config
|
|
115
|
+
retries ||= Utils::RetryConfig.new(
|
|
116
|
+
backoff: Utils::BackoffStrategy.new(
|
|
117
|
+
exponent: 1.5,
|
|
118
|
+
initial_interval: 500,
|
|
119
|
+
max_elapsed_time: 3_600_000,
|
|
120
|
+
max_interval: 60_000
|
|
121
|
+
),
|
|
122
|
+
retry_connection_errors: true,
|
|
123
|
+
strategy: 'backoff'
|
|
124
|
+
)
|
|
125
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
126
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
127
|
+
|
|
128
|
+
connection = @sdk_configuration.client.dup
|
|
129
|
+
connection.request :retry, retry_options
|
|
130
|
+
|
|
131
|
+
r = connection.post(url) do |req|
|
|
98
132
|
req.headers = headers
|
|
99
133
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
100
134
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -127,8 +161,8 @@ module StackOne
|
|
|
127
161
|
end
|
|
128
162
|
|
|
129
163
|
|
|
130
|
-
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeEmploymentResponse) }
|
|
131
|
-
def create_employee_employment(hris_create_employment_request_dto, id, x_account_id)
|
|
164
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeEmploymentResponse) }
|
|
165
|
+
def create_employee_employment(hris_create_employment_request_dto, id, x_account_id, retries = nil)
|
|
132
166
|
# create_employee_employment - Create Employee Employment
|
|
133
167
|
request = ::StackOne::Operations::HrisCreateEmployeeEmploymentRequest.new(
|
|
134
168
|
|
|
@@ -150,8 +184,24 @@ module StackOne
|
|
|
150
184
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
151
185
|
headers['Accept'] = 'application/json'
|
|
152
186
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
153
|
-
|
|
154
|
-
|
|
187
|
+
retries ||= @sdk_configuration.retry_config
|
|
188
|
+
retries ||= Utils::RetryConfig.new(
|
|
189
|
+
backoff: Utils::BackoffStrategy.new(
|
|
190
|
+
exponent: 1.5,
|
|
191
|
+
initial_interval: 500,
|
|
192
|
+
max_elapsed_time: 3_600_000,
|
|
193
|
+
max_interval: 60_000
|
|
194
|
+
),
|
|
195
|
+
retry_connection_errors: true,
|
|
196
|
+
strategy: 'backoff'
|
|
197
|
+
)
|
|
198
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
199
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
200
|
+
|
|
201
|
+
connection = @sdk_configuration.client.dup
|
|
202
|
+
connection.request :retry, retry_options
|
|
203
|
+
|
|
204
|
+
r = connection.post(url) do |req|
|
|
155
205
|
req.headers = headers
|
|
156
206
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
157
207
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -184,8 +234,8 @@ module StackOne
|
|
|
184
234
|
end
|
|
185
235
|
|
|
186
236
|
|
|
187
|
-
sig { params(entity_skills_create_request_dto: ::StackOne::Shared::EntitySkillsCreateRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeSkillResponse) }
|
|
188
|
-
def create_employee_skill(entity_skills_create_request_dto, id, x_account_id)
|
|
237
|
+
sig { params(entity_skills_create_request_dto: ::StackOne::Shared::EntitySkillsCreateRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeSkillResponse) }
|
|
238
|
+
def create_employee_skill(entity_skills_create_request_dto, id, x_account_id, retries = nil)
|
|
189
239
|
# create_employee_skill - Create Employee Skill
|
|
190
240
|
request = ::StackOne::Operations::HrisCreateEmployeeSkillRequest.new(
|
|
191
241
|
|
|
@@ -207,8 +257,24 @@ module StackOne
|
|
|
207
257
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
208
258
|
headers['Accept'] = 'application/json'
|
|
209
259
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
210
|
-
|
|
211
|
-
|
|
260
|
+
retries ||= @sdk_configuration.retry_config
|
|
261
|
+
retries ||= Utils::RetryConfig.new(
|
|
262
|
+
backoff: Utils::BackoffStrategy.new(
|
|
263
|
+
exponent: 1.5,
|
|
264
|
+
initial_interval: 500,
|
|
265
|
+
max_elapsed_time: 3_600_000,
|
|
266
|
+
max_interval: 60_000
|
|
267
|
+
),
|
|
268
|
+
retry_connection_errors: true,
|
|
269
|
+
strategy: 'backoff'
|
|
270
|
+
)
|
|
271
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
272
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
273
|
+
|
|
274
|
+
connection = @sdk_configuration.client.dup
|
|
275
|
+
connection.request :retry, retry_options
|
|
276
|
+
|
|
277
|
+
r = connection.post(url) do |req|
|
|
212
278
|
req.headers = headers
|
|
213
279
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
214
280
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -241,8 +307,8 @@ module StackOne
|
|
|
241
307
|
end
|
|
242
308
|
|
|
243
309
|
|
|
244
|
-
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeTimeOffRequestResponse) }
|
|
245
|
-
def create_employee_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
|
|
310
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeTimeOffRequestResponse) }
|
|
311
|
+
def create_employee_time_off_request(hris_create_time_off_request_dto, id, x_account_id, retries = nil)
|
|
246
312
|
# create_employee_time_off_request - Create Employee Time Off Request
|
|
247
313
|
request = ::StackOne::Operations::HrisCreateEmployeeTimeOffRequestRequest.new(
|
|
248
314
|
|
|
@@ -264,8 +330,24 @@ module StackOne
|
|
|
264
330
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
265
331
|
headers['Accept'] = 'application/json'
|
|
266
332
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
267
|
-
|
|
268
|
-
|
|
333
|
+
retries ||= @sdk_configuration.retry_config
|
|
334
|
+
retries ||= Utils::RetryConfig.new(
|
|
335
|
+
backoff: Utils::BackoffStrategy.new(
|
|
336
|
+
exponent: 1.5,
|
|
337
|
+
initial_interval: 500,
|
|
338
|
+
max_elapsed_time: 3_600_000,
|
|
339
|
+
max_interval: 60_000
|
|
340
|
+
),
|
|
341
|
+
retry_connection_errors: true,
|
|
342
|
+
strategy: 'backoff'
|
|
343
|
+
)
|
|
344
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
345
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
346
|
+
|
|
347
|
+
connection = @sdk_configuration.client.dup
|
|
348
|
+
connection.request :retry, retry_options
|
|
349
|
+
|
|
350
|
+
r = connection.post(url) do |req|
|
|
269
351
|
req.headers = headers
|
|
270
352
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
271
353
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -298,8 +380,8 @@ module StackOne
|
|
|
298
380
|
end
|
|
299
381
|
|
|
300
382
|
|
|
301
|
-
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestResponse) }
|
|
302
|
-
def create_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, x_account_id)
|
|
383
|
+
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestResponse) }
|
|
384
|
+
def create_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, x_account_id, retries = nil)
|
|
303
385
|
# create_employee_work_eligibility_request - Create Employee Work Eligibility Request
|
|
304
386
|
request = ::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestRequest.new(
|
|
305
387
|
|
|
@@ -321,8 +403,24 @@ module StackOne
|
|
|
321
403
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
322
404
|
headers['Accept'] = 'application/json'
|
|
323
405
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
324
|
-
|
|
325
|
-
|
|
406
|
+
retries ||= @sdk_configuration.retry_config
|
|
407
|
+
retries ||= Utils::RetryConfig.new(
|
|
408
|
+
backoff: Utils::BackoffStrategy.new(
|
|
409
|
+
exponent: 1.5,
|
|
410
|
+
initial_interval: 500,
|
|
411
|
+
max_elapsed_time: 3_600_000,
|
|
412
|
+
max_interval: 60_000
|
|
413
|
+
),
|
|
414
|
+
retry_connection_errors: true,
|
|
415
|
+
strategy: 'backoff'
|
|
416
|
+
)
|
|
417
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
418
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
419
|
+
|
|
420
|
+
connection = @sdk_configuration.client.dup
|
|
421
|
+
connection.request :retry, retry_options
|
|
422
|
+
|
|
423
|
+
r = connection.post(url) do |req|
|
|
326
424
|
req.headers = headers
|
|
327
425
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
328
426
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -355,8 +453,8 @@ module StackOne
|
|
|
355
453
|
end
|
|
356
454
|
|
|
357
455
|
|
|
358
|
-
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateTimeOffRequestResponse) }
|
|
359
|
-
def create_time_off_request(hris_create_time_off_request_dto, x_account_id)
|
|
456
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateTimeOffRequestResponse) }
|
|
457
|
+
def create_time_off_request(hris_create_time_off_request_dto, x_account_id, retries = nil)
|
|
360
458
|
# create_time_off_request - Creates a time off request
|
|
361
459
|
request = ::StackOne::Operations::HrisCreateTimeOffRequestRequest.new(
|
|
362
460
|
|
|
@@ -372,8 +470,24 @@ module StackOne
|
|
|
372
470
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
373
471
|
headers['Accept'] = 'application/json'
|
|
374
472
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
375
|
-
|
|
376
|
-
|
|
473
|
+
retries ||= @sdk_configuration.retry_config
|
|
474
|
+
retries ||= Utils::RetryConfig.new(
|
|
475
|
+
backoff: Utils::BackoffStrategy.new(
|
|
476
|
+
exponent: 1.5,
|
|
477
|
+
initial_interval: 500,
|
|
478
|
+
max_elapsed_time: 3_600_000,
|
|
479
|
+
max_interval: 60_000
|
|
480
|
+
),
|
|
481
|
+
retry_connection_errors: true,
|
|
482
|
+
strategy: 'backoff'
|
|
483
|
+
)
|
|
484
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
485
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
486
|
+
|
|
487
|
+
connection = @sdk_configuration.client.dup
|
|
488
|
+
connection.request :retry, retry_options
|
|
489
|
+
|
|
490
|
+
r = connection.post(url) do |req|
|
|
377
491
|
req.headers = headers
|
|
378
492
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
379
493
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -406,8 +520,8 @@ module StackOne
|
|
|
406
520
|
end
|
|
407
521
|
|
|
408
522
|
|
|
409
|
-
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String)).returns(::StackOne::Operations::HrisDownloadEmployeeDocumentResponse) }
|
|
410
|
-
def download_employee_document(id, sub_resource_id, x_account_id, format = nil)
|
|
523
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisDownloadEmployeeDocumentResponse) }
|
|
524
|
+
def download_employee_document(id, sub_resource_id, x_account_id, format = nil, retries = nil)
|
|
411
525
|
# download_employee_document - Download Employee Document
|
|
412
526
|
request = ::StackOne::Operations::HrisDownloadEmployeeDocumentRequest.new(
|
|
413
527
|
|
|
@@ -428,8 +542,24 @@ module StackOne
|
|
|
428
542
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisDownloadEmployeeDocumentRequest, request)
|
|
429
543
|
headers['Accept'] = 'application/octet-stream'
|
|
430
544
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
431
|
-
|
|
432
|
-
|
|
545
|
+
retries ||= @sdk_configuration.retry_config
|
|
546
|
+
retries ||= Utils::RetryConfig.new(
|
|
547
|
+
backoff: Utils::BackoffStrategy.new(
|
|
548
|
+
exponent: 1.5,
|
|
549
|
+
initial_interval: 500,
|
|
550
|
+
max_elapsed_time: 3_600_000,
|
|
551
|
+
max_interval: 60_000
|
|
552
|
+
),
|
|
553
|
+
retry_connection_errors: true,
|
|
554
|
+
strategy: 'backoff'
|
|
555
|
+
)
|
|
556
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
557
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
558
|
+
|
|
559
|
+
connection = @sdk_configuration.client.dup
|
|
560
|
+
connection.request :retry, retry_options
|
|
561
|
+
|
|
562
|
+
r = connection.get(url) do |req|
|
|
433
563
|
req.headers = headers
|
|
434
564
|
req.params = query_params
|
|
435
565
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -453,8 +583,8 @@ module StackOne
|
|
|
453
583
|
end
|
|
454
584
|
|
|
455
585
|
|
|
456
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest)).returns(::StackOne::Operations::HrisGetBenefitResponse) }
|
|
457
|
-
def get_benefit(request)
|
|
586
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetBenefitResponse) }
|
|
587
|
+
def get_benefit(request, retries = nil)
|
|
458
588
|
# get_benefit - Get Benefit
|
|
459
589
|
url, params = @sdk_configuration.get_server_details
|
|
460
590
|
base_url = Utils.template_url(url, params)
|
|
@@ -468,8 +598,24 @@ module StackOne
|
|
|
468
598
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetBenefitRequest, request)
|
|
469
599
|
headers['Accept'] = 'application/json'
|
|
470
600
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
471
|
-
|
|
472
|
-
|
|
601
|
+
retries ||= @sdk_configuration.retry_config
|
|
602
|
+
retries ||= Utils::RetryConfig.new(
|
|
603
|
+
backoff: Utils::BackoffStrategy.new(
|
|
604
|
+
exponent: 1.5,
|
|
605
|
+
initial_interval: 500,
|
|
606
|
+
max_elapsed_time: 3_600_000,
|
|
607
|
+
max_interval: 60_000
|
|
608
|
+
),
|
|
609
|
+
retry_connection_errors: true,
|
|
610
|
+
strategy: 'backoff'
|
|
611
|
+
)
|
|
612
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
613
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
614
|
+
|
|
615
|
+
connection = @sdk_configuration.client.dup
|
|
616
|
+
connection.request :retry, retry_options
|
|
617
|
+
|
|
618
|
+
r = connection.get(url) do |req|
|
|
473
619
|
req.headers = headers
|
|
474
620
|
req.params = query_params
|
|
475
621
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -496,8 +642,8 @@ module StackOne
|
|
|
496
642
|
end
|
|
497
643
|
|
|
498
644
|
|
|
499
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest)).returns(::StackOne::Operations::HrisGetCompanyResponse) }
|
|
500
|
-
def get_company(request)
|
|
645
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetCompanyResponse) }
|
|
646
|
+
def get_company(request, retries = nil)
|
|
501
647
|
# get_company - Get Company
|
|
502
648
|
url, params = @sdk_configuration.get_server_details
|
|
503
649
|
base_url = Utils.template_url(url, params)
|
|
@@ -511,8 +657,24 @@ module StackOne
|
|
|
511
657
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetCompanyRequest, request)
|
|
512
658
|
headers['Accept'] = 'application/json'
|
|
513
659
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
514
|
-
|
|
515
|
-
|
|
660
|
+
retries ||= @sdk_configuration.retry_config
|
|
661
|
+
retries ||= Utils::RetryConfig.new(
|
|
662
|
+
backoff: Utils::BackoffStrategy.new(
|
|
663
|
+
exponent: 1.5,
|
|
664
|
+
initial_interval: 500,
|
|
665
|
+
max_elapsed_time: 3_600_000,
|
|
666
|
+
max_interval: 60_000
|
|
667
|
+
),
|
|
668
|
+
retry_connection_errors: true,
|
|
669
|
+
strategy: 'backoff'
|
|
670
|
+
)
|
|
671
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
672
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
673
|
+
|
|
674
|
+
connection = @sdk_configuration.client.dup
|
|
675
|
+
connection.request :retry, retry_options
|
|
676
|
+
|
|
677
|
+
r = connection.get(url) do |req|
|
|
516
678
|
req.headers = headers
|
|
517
679
|
req.params = query_params
|
|
518
680
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -539,8 +701,8 @@ module StackOne
|
|
|
539
701
|
end
|
|
540
702
|
|
|
541
703
|
|
|
542
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCostCenterGroupRequest)).returns(::StackOne::Operations::HrisGetCostCenterGroupResponse) }
|
|
543
|
-
def get_cost_center_group(request)
|
|
704
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCostCenterGroupRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetCostCenterGroupResponse) }
|
|
705
|
+
def get_cost_center_group(request, retries = nil)
|
|
544
706
|
# get_cost_center_group - Get Cost Center Group
|
|
545
707
|
url, params = @sdk_configuration.get_server_details
|
|
546
708
|
base_url = Utils.template_url(url, params)
|
|
@@ -554,8 +716,24 @@ module StackOne
|
|
|
554
716
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetCostCenterGroupRequest, request)
|
|
555
717
|
headers['Accept'] = 'application/json'
|
|
556
718
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
557
|
-
|
|
558
|
-
|
|
719
|
+
retries ||= @sdk_configuration.retry_config
|
|
720
|
+
retries ||= Utils::RetryConfig.new(
|
|
721
|
+
backoff: Utils::BackoffStrategy.new(
|
|
722
|
+
exponent: 1.5,
|
|
723
|
+
initial_interval: 500,
|
|
724
|
+
max_elapsed_time: 3_600_000,
|
|
725
|
+
max_interval: 60_000
|
|
726
|
+
),
|
|
727
|
+
retry_connection_errors: true,
|
|
728
|
+
strategy: 'backoff'
|
|
729
|
+
)
|
|
730
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
731
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
732
|
+
|
|
733
|
+
connection = @sdk_configuration.client.dup
|
|
734
|
+
connection.request :retry, retry_options
|
|
735
|
+
|
|
736
|
+
r = connection.get(url) do |req|
|
|
559
737
|
req.headers = headers
|
|
560
738
|
req.params = query_params
|
|
561
739
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -582,8 +760,8 @@ module StackOne
|
|
|
582
760
|
end
|
|
583
761
|
|
|
584
762
|
|
|
585
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetDepartmentGroupRequest)).returns(::StackOne::Operations::HrisGetDepartmentGroupResponse) }
|
|
586
|
-
def get_department_group(request)
|
|
763
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetDepartmentGroupRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetDepartmentGroupResponse) }
|
|
764
|
+
def get_department_group(request, retries = nil)
|
|
587
765
|
# get_department_group - Get Department Group
|
|
588
766
|
url, params = @sdk_configuration.get_server_details
|
|
589
767
|
base_url = Utils.template_url(url, params)
|
|
@@ -597,8 +775,24 @@ module StackOne
|
|
|
597
775
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetDepartmentGroupRequest, request)
|
|
598
776
|
headers['Accept'] = 'application/json'
|
|
599
777
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
600
|
-
|
|
601
|
-
|
|
778
|
+
retries ||= @sdk_configuration.retry_config
|
|
779
|
+
retries ||= Utils::RetryConfig.new(
|
|
780
|
+
backoff: Utils::BackoffStrategy.new(
|
|
781
|
+
exponent: 1.5,
|
|
782
|
+
initial_interval: 500,
|
|
783
|
+
max_elapsed_time: 3_600_000,
|
|
784
|
+
max_interval: 60_000
|
|
785
|
+
),
|
|
786
|
+
retry_connection_errors: true,
|
|
787
|
+
strategy: 'backoff'
|
|
788
|
+
)
|
|
789
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
790
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
791
|
+
|
|
792
|
+
connection = @sdk_configuration.client.dup
|
|
793
|
+
connection.request :retry, retry_options
|
|
794
|
+
|
|
795
|
+
r = connection.get(url) do |req|
|
|
602
796
|
req.headers = headers
|
|
603
797
|
req.params = query_params
|
|
604
798
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -625,8 +819,8 @@ module StackOne
|
|
|
625
819
|
end
|
|
626
820
|
|
|
627
821
|
|
|
628
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest)).returns(::StackOne::Operations::HrisGetEmployeeResponse) }
|
|
629
|
-
def get_employee(request)
|
|
822
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeResponse) }
|
|
823
|
+
def get_employee(request, retries = nil)
|
|
630
824
|
# get_employee - Get Employee
|
|
631
825
|
url, params = @sdk_configuration.get_server_details
|
|
632
826
|
base_url = Utils.template_url(url, params)
|
|
@@ -640,8 +834,24 @@ module StackOne
|
|
|
640
834
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeRequest, request)
|
|
641
835
|
headers['Accept'] = 'application/json'
|
|
642
836
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
643
|
-
|
|
644
|
-
|
|
837
|
+
retries ||= @sdk_configuration.retry_config
|
|
838
|
+
retries ||= Utils::RetryConfig.new(
|
|
839
|
+
backoff: Utils::BackoffStrategy.new(
|
|
840
|
+
exponent: 1.5,
|
|
841
|
+
initial_interval: 500,
|
|
842
|
+
max_elapsed_time: 3_600_000,
|
|
843
|
+
max_interval: 60_000
|
|
844
|
+
),
|
|
845
|
+
retry_connection_errors: true,
|
|
846
|
+
strategy: 'backoff'
|
|
847
|
+
)
|
|
848
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
849
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
850
|
+
|
|
851
|
+
connection = @sdk_configuration.client.dup
|
|
852
|
+
connection.request :retry, retry_options
|
|
853
|
+
|
|
854
|
+
r = connection.get(url) do |req|
|
|
645
855
|
req.headers = headers
|
|
646
856
|
req.params = query_params
|
|
647
857
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -668,8 +878,8 @@ module StackOne
|
|
|
668
878
|
end
|
|
669
879
|
|
|
670
880
|
|
|
671
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest)).returns(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionResponse) }
|
|
672
|
-
def get_employee_custom_field_definition(request)
|
|
881
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionResponse) }
|
|
882
|
+
def get_employee_custom_field_definition(request, retries = nil)
|
|
673
883
|
# get_employee_custom_field_definition - Get employee Custom Field Definition
|
|
674
884
|
url, params = @sdk_configuration.get_server_details
|
|
675
885
|
base_url = Utils.template_url(url, params)
|
|
@@ -683,8 +893,24 @@ module StackOne
|
|
|
683
893
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest, request)
|
|
684
894
|
headers['Accept'] = 'application/json'
|
|
685
895
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
686
|
-
|
|
687
|
-
|
|
896
|
+
retries ||= @sdk_configuration.retry_config
|
|
897
|
+
retries ||= Utils::RetryConfig.new(
|
|
898
|
+
backoff: Utils::BackoffStrategy.new(
|
|
899
|
+
exponent: 1.5,
|
|
900
|
+
initial_interval: 500,
|
|
901
|
+
max_elapsed_time: 3_600_000,
|
|
902
|
+
max_interval: 60_000
|
|
903
|
+
),
|
|
904
|
+
retry_connection_errors: true,
|
|
905
|
+
strategy: 'backoff'
|
|
906
|
+
)
|
|
907
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
908
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
909
|
+
|
|
910
|
+
connection = @sdk_configuration.client.dup
|
|
911
|
+
connection.request :retry, retry_options
|
|
912
|
+
|
|
913
|
+
r = connection.get(url) do |req|
|
|
688
914
|
req.headers = headers
|
|
689
915
|
req.params = query_params
|
|
690
916
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -711,8 +937,8 @@ module StackOne
|
|
|
711
937
|
end
|
|
712
938
|
|
|
713
939
|
|
|
714
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest)).returns(::StackOne::Operations::HrisGetEmployeeDocumentResponse) }
|
|
715
|
-
def get_employee_document(request)
|
|
940
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeDocumentResponse) }
|
|
941
|
+
def get_employee_document(request, retries = nil)
|
|
716
942
|
# get_employee_document - Get Employee Document
|
|
717
943
|
url, params = @sdk_configuration.get_server_details
|
|
718
944
|
base_url = Utils.template_url(url, params)
|
|
@@ -726,8 +952,24 @@ module StackOne
|
|
|
726
952
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeDocumentRequest, request)
|
|
727
953
|
headers['Accept'] = 'application/json'
|
|
728
954
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
729
|
-
|
|
730
|
-
|
|
955
|
+
retries ||= @sdk_configuration.retry_config
|
|
956
|
+
retries ||= Utils::RetryConfig.new(
|
|
957
|
+
backoff: Utils::BackoffStrategy.new(
|
|
958
|
+
exponent: 1.5,
|
|
959
|
+
initial_interval: 500,
|
|
960
|
+
max_elapsed_time: 3_600_000,
|
|
961
|
+
max_interval: 60_000
|
|
962
|
+
),
|
|
963
|
+
retry_connection_errors: true,
|
|
964
|
+
strategy: 'backoff'
|
|
965
|
+
)
|
|
966
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
967
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
968
|
+
|
|
969
|
+
connection = @sdk_configuration.client.dup
|
|
970
|
+
connection.request :retry, retry_options
|
|
971
|
+
|
|
972
|
+
r = connection.get(url) do |req|
|
|
731
973
|
req.headers = headers
|
|
732
974
|
req.params = query_params
|
|
733
975
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -754,8 +996,8 @@ module StackOne
|
|
|
754
996
|
end
|
|
755
997
|
|
|
756
998
|
|
|
757
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentCategoryRequest)).returns(::StackOne::Operations::HrisGetEmployeeDocumentCategoryResponse) }
|
|
758
|
-
def get_employee_document_category(request)
|
|
999
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentCategoryRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeDocumentCategoryResponse) }
|
|
1000
|
+
def get_employee_document_category(request, retries = nil)
|
|
759
1001
|
# get_employee_document_category - Get Employee Document Category
|
|
760
1002
|
url, params = @sdk_configuration.get_server_details
|
|
761
1003
|
base_url = Utils.template_url(url, params)
|
|
@@ -769,8 +1011,24 @@ module StackOne
|
|
|
769
1011
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeDocumentCategoryRequest, request)
|
|
770
1012
|
headers['Accept'] = 'application/json'
|
|
771
1013
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
772
|
-
|
|
773
|
-
|
|
1014
|
+
retries ||= @sdk_configuration.retry_config
|
|
1015
|
+
retries ||= Utils::RetryConfig.new(
|
|
1016
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1017
|
+
exponent: 1.5,
|
|
1018
|
+
initial_interval: 500,
|
|
1019
|
+
max_elapsed_time: 3_600_000,
|
|
1020
|
+
max_interval: 60_000
|
|
1021
|
+
),
|
|
1022
|
+
retry_connection_errors: true,
|
|
1023
|
+
strategy: 'backoff'
|
|
1024
|
+
)
|
|
1025
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1026
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1027
|
+
|
|
1028
|
+
connection = @sdk_configuration.client.dup
|
|
1029
|
+
connection.request :retry, retry_options
|
|
1030
|
+
|
|
1031
|
+
r = connection.get(url) do |req|
|
|
774
1032
|
req.headers = headers
|
|
775
1033
|
req.params = query_params
|
|
776
1034
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -797,8 +1055,8 @@ module StackOne
|
|
|
797
1055
|
end
|
|
798
1056
|
|
|
799
1057
|
|
|
800
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeEmploymentRequest)).returns(::StackOne::Operations::HrisGetEmployeeEmploymentResponse) }
|
|
801
|
-
def get_employee_employment(request)
|
|
1058
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeEmploymentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeEmploymentResponse) }
|
|
1059
|
+
def get_employee_employment(request, retries = nil)
|
|
802
1060
|
# get_employee_employment - Get Employee Employment
|
|
803
1061
|
url, params = @sdk_configuration.get_server_details
|
|
804
1062
|
base_url = Utils.template_url(url, params)
|
|
@@ -812,8 +1070,24 @@ module StackOne
|
|
|
812
1070
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeEmploymentRequest, request)
|
|
813
1071
|
headers['Accept'] = 'application/json'
|
|
814
1072
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
815
|
-
|
|
816
|
-
|
|
1073
|
+
retries ||= @sdk_configuration.retry_config
|
|
1074
|
+
retries ||= Utils::RetryConfig.new(
|
|
1075
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1076
|
+
exponent: 1.5,
|
|
1077
|
+
initial_interval: 500,
|
|
1078
|
+
max_elapsed_time: 3_600_000,
|
|
1079
|
+
max_interval: 60_000
|
|
1080
|
+
),
|
|
1081
|
+
retry_connection_errors: true,
|
|
1082
|
+
strategy: 'backoff'
|
|
1083
|
+
)
|
|
1084
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1085
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1086
|
+
|
|
1087
|
+
connection = @sdk_configuration.client.dup
|
|
1088
|
+
connection.request :retry, retry_options
|
|
1089
|
+
|
|
1090
|
+
r = connection.get(url) do |req|
|
|
817
1091
|
req.headers = headers
|
|
818
1092
|
req.params = query_params
|
|
819
1093
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -840,8 +1114,8 @@ module StackOne
|
|
|
840
1114
|
end
|
|
841
1115
|
|
|
842
1116
|
|
|
843
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeSkillRequest)).returns(::StackOne::Operations::HrisGetEmployeeSkillResponse) }
|
|
844
|
-
def get_employee_skill(request)
|
|
1117
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeSkillRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeSkillResponse) }
|
|
1118
|
+
def get_employee_skill(request, retries = nil)
|
|
845
1119
|
# get_employee_skill - Get Employee Skill
|
|
846
1120
|
url, params = @sdk_configuration.get_server_details
|
|
847
1121
|
base_url = Utils.template_url(url, params)
|
|
@@ -855,8 +1129,24 @@ module StackOne
|
|
|
855
1129
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeSkillRequest, request)
|
|
856
1130
|
headers['Accept'] = 'application/json'
|
|
857
1131
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
858
|
-
|
|
859
|
-
|
|
1132
|
+
retries ||= @sdk_configuration.retry_config
|
|
1133
|
+
retries ||= Utils::RetryConfig.new(
|
|
1134
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1135
|
+
exponent: 1.5,
|
|
1136
|
+
initial_interval: 500,
|
|
1137
|
+
max_elapsed_time: 3_600_000,
|
|
1138
|
+
max_interval: 60_000
|
|
1139
|
+
),
|
|
1140
|
+
retry_connection_errors: true,
|
|
1141
|
+
strategy: 'backoff'
|
|
1142
|
+
)
|
|
1143
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1144
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1145
|
+
|
|
1146
|
+
connection = @sdk_configuration.client.dup
|
|
1147
|
+
connection.request :retry, retry_options
|
|
1148
|
+
|
|
1149
|
+
r = connection.get(url) do |req|
|
|
860
1150
|
req.headers = headers
|
|
861
1151
|
req.params = query_params
|
|
862
1152
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -883,8 +1173,8 @@ module StackOne
|
|
|
883
1173
|
end
|
|
884
1174
|
|
|
885
1175
|
|
|
886
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeTimeOffBalanceRequest)).returns(::StackOne::Operations::HrisGetEmployeeTimeOffBalanceResponse) }
|
|
887
|
-
def get_employee_time_off_balance(request)
|
|
1176
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeTimeOffBalanceRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeTimeOffBalanceResponse) }
|
|
1177
|
+
def get_employee_time_off_balance(request, retries = nil)
|
|
888
1178
|
# get_employee_time_off_balance - Get Employee Time Off Balance
|
|
889
1179
|
url, params = @sdk_configuration.get_server_details
|
|
890
1180
|
base_url = Utils.template_url(url, params)
|
|
@@ -898,8 +1188,24 @@ module StackOne
|
|
|
898
1188
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeTimeOffBalanceRequest, request)
|
|
899
1189
|
headers['Accept'] = 'application/json'
|
|
900
1190
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
901
|
-
|
|
902
|
-
|
|
1191
|
+
retries ||= @sdk_configuration.retry_config
|
|
1192
|
+
retries ||= Utils::RetryConfig.new(
|
|
1193
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1194
|
+
exponent: 1.5,
|
|
1195
|
+
initial_interval: 500,
|
|
1196
|
+
max_elapsed_time: 3_600_000,
|
|
1197
|
+
max_interval: 60_000
|
|
1198
|
+
),
|
|
1199
|
+
retry_connection_errors: true,
|
|
1200
|
+
strategy: 'backoff'
|
|
1201
|
+
)
|
|
1202
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1203
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1204
|
+
|
|
1205
|
+
connection = @sdk_configuration.client.dup
|
|
1206
|
+
connection.request :retry, retry_options
|
|
1207
|
+
|
|
1208
|
+
r = connection.get(url) do |req|
|
|
903
1209
|
req.headers = headers
|
|
904
1210
|
req.params = query_params
|
|
905
1211
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -926,8 +1232,8 @@ module StackOne
|
|
|
926
1232
|
end
|
|
927
1233
|
|
|
928
1234
|
|
|
929
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest)).returns(::StackOne::Operations::HrisGetEmployeesTimeOffRequestResponse) }
|
|
930
|
-
def get_employees_time_off_request(request)
|
|
1235
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeesTimeOffRequestResponse) }
|
|
1236
|
+
def get_employees_time_off_request(request, retries = nil)
|
|
931
1237
|
# get_employees_time_off_request - Get Employees Time Off Request
|
|
932
1238
|
url, params = @sdk_configuration.get_server_details
|
|
933
1239
|
base_url = Utils.template_url(url, params)
|
|
@@ -941,8 +1247,24 @@ module StackOne
|
|
|
941
1247
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest, request)
|
|
942
1248
|
headers['Accept'] = 'application/json'
|
|
943
1249
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
944
|
-
|
|
945
|
-
|
|
1250
|
+
retries ||= @sdk_configuration.retry_config
|
|
1251
|
+
retries ||= Utils::RetryConfig.new(
|
|
1252
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1253
|
+
exponent: 1.5,
|
|
1254
|
+
initial_interval: 500,
|
|
1255
|
+
max_elapsed_time: 3_600_000,
|
|
1256
|
+
max_interval: 60_000
|
|
1257
|
+
),
|
|
1258
|
+
retry_connection_errors: true,
|
|
1259
|
+
strategy: 'backoff'
|
|
1260
|
+
)
|
|
1261
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1262
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1263
|
+
|
|
1264
|
+
connection = @sdk_configuration.client.dup
|
|
1265
|
+
connection.request :retry, retry_options
|
|
1266
|
+
|
|
1267
|
+
r = connection.get(url) do |req|
|
|
946
1268
|
req.headers = headers
|
|
947
1269
|
req.params = query_params
|
|
948
1270
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -969,8 +1291,8 @@ module StackOne
|
|
|
969
1291
|
end
|
|
970
1292
|
|
|
971
1293
|
|
|
972
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest)).returns(::StackOne::Operations::HrisGetEmployeesWorkEligibilityResponse) }
|
|
973
|
-
def get_employees_work_eligibility(request)
|
|
1294
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeesWorkEligibilityResponse) }
|
|
1295
|
+
def get_employees_work_eligibility(request, retries = nil)
|
|
974
1296
|
# get_employees_work_eligibility - Get Employees Work Eligibility
|
|
975
1297
|
url, params = @sdk_configuration.get_server_details
|
|
976
1298
|
base_url = Utils.template_url(url, params)
|
|
@@ -984,8 +1306,24 @@ module StackOne
|
|
|
984
1306
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest, request)
|
|
985
1307
|
headers['Accept'] = 'application/json'
|
|
986
1308
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
987
|
-
|
|
988
|
-
|
|
1309
|
+
retries ||= @sdk_configuration.retry_config
|
|
1310
|
+
retries ||= Utils::RetryConfig.new(
|
|
1311
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1312
|
+
exponent: 1.5,
|
|
1313
|
+
initial_interval: 500,
|
|
1314
|
+
max_elapsed_time: 3_600_000,
|
|
1315
|
+
max_interval: 60_000
|
|
1316
|
+
),
|
|
1317
|
+
retry_connection_errors: true,
|
|
1318
|
+
strategy: 'backoff'
|
|
1319
|
+
)
|
|
1320
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1321
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1322
|
+
|
|
1323
|
+
connection = @sdk_configuration.client.dup
|
|
1324
|
+
connection.request :retry, retry_options
|
|
1325
|
+
|
|
1326
|
+
r = connection.get(url) do |req|
|
|
989
1327
|
req.headers = headers
|
|
990
1328
|
req.params = query_params
|
|
991
1329
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1012,8 +1350,8 @@ module StackOne
|
|
|
1012
1350
|
end
|
|
1013
1351
|
|
|
1014
1352
|
|
|
1015
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmploymentRequest)).returns(::StackOne::Operations::HrisGetEmploymentResponse) }
|
|
1016
|
-
def get_employment(request)
|
|
1353
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmploymentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmploymentResponse) }
|
|
1354
|
+
def get_employment(request, retries = nil)
|
|
1017
1355
|
# get_employment - Get Employment
|
|
1018
1356
|
url, params = @sdk_configuration.get_server_details
|
|
1019
1357
|
base_url = Utils.template_url(url, params)
|
|
@@ -1027,8 +1365,24 @@ module StackOne
|
|
|
1027
1365
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmploymentRequest, request)
|
|
1028
1366
|
headers['Accept'] = 'application/json'
|
|
1029
1367
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1030
|
-
|
|
1031
|
-
|
|
1368
|
+
retries ||= @sdk_configuration.retry_config
|
|
1369
|
+
retries ||= Utils::RetryConfig.new(
|
|
1370
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1371
|
+
exponent: 1.5,
|
|
1372
|
+
initial_interval: 500,
|
|
1373
|
+
max_elapsed_time: 3_600_000,
|
|
1374
|
+
max_interval: 60_000
|
|
1375
|
+
),
|
|
1376
|
+
retry_connection_errors: true,
|
|
1377
|
+
strategy: 'backoff'
|
|
1378
|
+
)
|
|
1379
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1380
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1381
|
+
|
|
1382
|
+
connection = @sdk_configuration.client.dup
|
|
1383
|
+
connection.request :retry, retry_options
|
|
1384
|
+
|
|
1385
|
+
r = connection.get(url) do |req|
|
|
1032
1386
|
req.headers = headers
|
|
1033
1387
|
req.params = query_params
|
|
1034
1388
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1055,8 +1409,8 @@ module StackOne
|
|
|
1055
1409
|
end
|
|
1056
1410
|
|
|
1057
1411
|
|
|
1058
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetGroupRequest)).returns(::StackOne::Operations::HrisGetGroupResponse) }
|
|
1059
|
-
def get_group(request)
|
|
1412
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetGroupRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetGroupResponse) }
|
|
1413
|
+
def get_group(request, retries = nil)
|
|
1060
1414
|
# get_group - Get Group
|
|
1061
1415
|
url, params = @sdk_configuration.get_server_details
|
|
1062
1416
|
base_url = Utils.template_url(url, params)
|
|
@@ -1070,8 +1424,24 @@ module StackOne
|
|
|
1070
1424
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetGroupRequest, request)
|
|
1071
1425
|
headers['Accept'] = 'application/json'
|
|
1072
1426
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1073
|
-
|
|
1074
|
-
|
|
1427
|
+
retries ||= @sdk_configuration.retry_config
|
|
1428
|
+
retries ||= Utils::RetryConfig.new(
|
|
1429
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1430
|
+
exponent: 1.5,
|
|
1431
|
+
initial_interval: 500,
|
|
1432
|
+
max_elapsed_time: 3_600_000,
|
|
1433
|
+
max_interval: 60_000
|
|
1434
|
+
),
|
|
1435
|
+
retry_connection_errors: true,
|
|
1436
|
+
strategy: 'backoff'
|
|
1437
|
+
)
|
|
1438
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1439
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1440
|
+
|
|
1441
|
+
connection = @sdk_configuration.client.dup
|
|
1442
|
+
connection.request :retry, retry_options
|
|
1443
|
+
|
|
1444
|
+
r = connection.get(url) do |req|
|
|
1075
1445
|
req.headers = headers
|
|
1076
1446
|
req.params = query_params
|
|
1077
1447
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1098,8 +1468,8 @@ module StackOne
|
|
|
1098
1468
|
end
|
|
1099
1469
|
|
|
1100
1470
|
|
|
1101
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetJobRequest)).returns(::StackOne::Operations::HrisGetJobResponse) }
|
|
1102
|
-
def get_job(request)
|
|
1471
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetJobRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetJobResponse) }
|
|
1472
|
+
def get_job(request, retries = nil)
|
|
1103
1473
|
# get_job - Get Job
|
|
1104
1474
|
url, params = @sdk_configuration.get_server_details
|
|
1105
1475
|
base_url = Utils.template_url(url, params)
|
|
@@ -1113,8 +1483,24 @@ module StackOne
|
|
|
1113
1483
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetJobRequest, request)
|
|
1114
1484
|
headers['Accept'] = 'application/json'
|
|
1115
1485
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1116
|
-
|
|
1117
|
-
|
|
1486
|
+
retries ||= @sdk_configuration.retry_config
|
|
1487
|
+
retries ||= Utils::RetryConfig.new(
|
|
1488
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1489
|
+
exponent: 1.5,
|
|
1490
|
+
initial_interval: 500,
|
|
1491
|
+
max_elapsed_time: 3_600_000,
|
|
1492
|
+
max_interval: 60_000
|
|
1493
|
+
),
|
|
1494
|
+
retry_connection_errors: true,
|
|
1495
|
+
strategy: 'backoff'
|
|
1496
|
+
)
|
|
1497
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1498
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1499
|
+
|
|
1500
|
+
connection = @sdk_configuration.client.dup
|
|
1501
|
+
connection.request :retry, retry_options
|
|
1502
|
+
|
|
1503
|
+
r = connection.get(url) do |req|
|
|
1118
1504
|
req.headers = headers
|
|
1119
1505
|
req.params = query_params
|
|
1120
1506
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1141,9 +1527,9 @@ module StackOne
|
|
|
1141
1527
|
end
|
|
1142
1528
|
|
|
1143
1529
|
|
|
1144
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest)).returns(::StackOne::Operations::HrisGetLocationResponse) }
|
|
1145
|
-
def get_location(request)
|
|
1146
|
-
# get_location - Get Location
|
|
1530
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetLocationResponse) }
|
|
1531
|
+
def get_location(request, retries = nil)
|
|
1532
|
+
# get_location - Get Work Location
|
|
1147
1533
|
url, params = @sdk_configuration.get_server_details
|
|
1148
1534
|
base_url = Utils.template_url(url, params)
|
|
1149
1535
|
url = Utils.generate_url(
|
|
@@ -1156,8 +1542,24 @@ module StackOne
|
|
|
1156
1542
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetLocationRequest, request)
|
|
1157
1543
|
headers['Accept'] = 'application/json'
|
|
1158
1544
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1159
|
-
|
|
1160
|
-
|
|
1545
|
+
retries ||= @sdk_configuration.retry_config
|
|
1546
|
+
retries ||= Utils::RetryConfig.new(
|
|
1547
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1548
|
+
exponent: 1.5,
|
|
1549
|
+
initial_interval: 500,
|
|
1550
|
+
max_elapsed_time: 3_600_000,
|
|
1551
|
+
max_interval: 60_000
|
|
1552
|
+
),
|
|
1553
|
+
retry_connection_errors: true,
|
|
1554
|
+
strategy: 'backoff'
|
|
1555
|
+
)
|
|
1556
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1557
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1558
|
+
|
|
1559
|
+
connection = @sdk_configuration.client.dup
|
|
1560
|
+
connection.request :retry, retry_options
|
|
1561
|
+
|
|
1562
|
+
r = connection.get(url) do |req|
|
|
1161
1563
|
req.headers = headers
|
|
1162
1564
|
req.params = query_params
|
|
1163
1565
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1184,8 +1586,8 @@ module StackOne
|
|
|
1184
1586
|
end
|
|
1185
1587
|
|
|
1186
1588
|
|
|
1187
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTeamGroupRequest)).returns(::StackOne::Operations::HrisGetTeamGroupResponse) }
|
|
1188
|
-
def get_team_group(request)
|
|
1589
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTeamGroupRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTeamGroupResponse) }
|
|
1590
|
+
def get_team_group(request, retries = nil)
|
|
1189
1591
|
# get_team_group - Get Team Group
|
|
1190
1592
|
url, params = @sdk_configuration.get_server_details
|
|
1191
1593
|
base_url = Utils.template_url(url, params)
|
|
@@ -1199,8 +1601,24 @@ module StackOne
|
|
|
1199
1601
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTeamGroupRequest, request)
|
|
1200
1602
|
headers['Accept'] = 'application/json'
|
|
1201
1603
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1202
|
-
|
|
1203
|
-
|
|
1604
|
+
retries ||= @sdk_configuration.retry_config
|
|
1605
|
+
retries ||= Utils::RetryConfig.new(
|
|
1606
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1607
|
+
exponent: 1.5,
|
|
1608
|
+
initial_interval: 500,
|
|
1609
|
+
max_elapsed_time: 3_600_000,
|
|
1610
|
+
max_interval: 60_000
|
|
1611
|
+
),
|
|
1612
|
+
retry_connection_errors: true,
|
|
1613
|
+
strategy: 'backoff'
|
|
1614
|
+
)
|
|
1615
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1616
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1617
|
+
|
|
1618
|
+
connection = @sdk_configuration.client.dup
|
|
1619
|
+
connection.request :retry, retry_options
|
|
1620
|
+
|
|
1621
|
+
r = connection.get(url) do |req|
|
|
1204
1622
|
req.headers = headers
|
|
1205
1623
|
req.params = query_params
|
|
1206
1624
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1227,8 +1645,8 @@ module StackOne
|
|
|
1227
1645
|
end
|
|
1228
1646
|
|
|
1229
1647
|
|
|
1230
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeEntriesRequest)).returns(::StackOne::Operations::HrisGetTimeEntriesResponse) }
|
|
1231
|
-
def get_time_entries(request)
|
|
1648
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeEntriesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTimeEntriesResponse) }
|
|
1649
|
+
def get_time_entries(request, retries = nil)
|
|
1232
1650
|
# get_time_entries - Get Time Entry
|
|
1233
1651
|
url, params = @sdk_configuration.get_server_details
|
|
1234
1652
|
base_url = Utils.template_url(url, params)
|
|
@@ -1242,8 +1660,24 @@ module StackOne
|
|
|
1242
1660
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeEntriesRequest, request)
|
|
1243
1661
|
headers['Accept'] = 'application/json'
|
|
1244
1662
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1245
|
-
|
|
1246
|
-
|
|
1663
|
+
retries ||= @sdk_configuration.retry_config
|
|
1664
|
+
retries ||= Utils::RetryConfig.new(
|
|
1665
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1666
|
+
exponent: 1.5,
|
|
1667
|
+
initial_interval: 500,
|
|
1668
|
+
max_elapsed_time: 3_600_000,
|
|
1669
|
+
max_interval: 60_000
|
|
1670
|
+
),
|
|
1671
|
+
retry_connection_errors: true,
|
|
1672
|
+
strategy: 'backoff'
|
|
1673
|
+
)
|
|
1674
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1675
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1676
|
+
|
|
1677
|
+
connection = @sdk_configuration.client.dup
|
|
1678
|
+
connection.request :retry, retry_options
|
|
1679
|
+
|
|
1680
|
+
r = connection.get(url) do |req|
|
|
1247
1681
|
req.headers = headers
|
|
1248
1682
|
req.params = query_params
|
|
1249
1683
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1270,8 +1704,8 @@ module StackOne
|
|
|
1270
1704
|
end
|
|
1271
1705
|
|
|
1272
1706
|
|
|
1273
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffPolicyRequest)).returns(::StackOne::Operations::HrisGetTimeOffPolicyResponse) }
|
|
1274
|
-
def get_time_off_policy(request)
|
|
1707
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffPolicyRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTimeOffPolicyResponse) }
|
|
1708
|
+
def get_time_off_policy(request, retries = nil)
|
|
1275
1709
|
# get_time_off_policy - Get Time Off Policy
|
|
1276
1710
|
url, params = @sdk_configuration.get_server_details
|
|
1277
1711
|
base_url = Utils.template_url(url, params)
|
|
@@ -1285,8 +1719,24 @@ module StackOne
|
|
|
1285
1719
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeOffPolicyRequest, request)
|
|
1286
1720
|
headers['Accept'] = 'application/json'
|
|
1287
1721
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1288
|
-
|
|
1289
|
-
|
|
1722
|
+
retries ||= @sdk_configuration.retry_config
|
|
1723
|
+
retries ||= Utils::RetryConfig.new(
|
|
1724
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1725
|
+
exponent: 1.5,
|
|
1726
|
+
initial_interval: 500,
|
|
1727
|
+
max_elapsed_time: 3_600_000,
|
|
1728
|
+
max_interval: 60_000
|
|
1729
|
+
),
|
|
1730
|
+
retry_connection_errors: true,
|
|
1731
|
+
strategy: 'backoff'
|
|
1732
|
+
)
|
|
1733
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1734
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1735
|
+
|
|
1736
|
+
connection = @sdk_configuration.client.dup
|
|
1737
|
+
connection.request :retry, retry_options
|
|
1738
|
+
|
|
1739
|
+
r = connection.get(url) do |req|
|
|
1290
1740
|
req.headers = headers
|
|
1291
1741
|
req.params = query_params
|
|
1292
1742
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1313,8 +1763,8 @@ module StackOne
|
|
|
1313
1763
|
end
|
|
1314
1764
|
|
|
1315
1765
|
|
|
1316
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffRequestRequest)).returns(::StackOne::Operations::HrisGetTimeOffRequestResponse) }
|
|
1317
|
-
def get_time_off_request(request)
|
|
1766
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffRequestRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTimeOffRequestResponse) }
|
|
1767
|
+
def get_time_off_request(request, retries = nil)
|
|
1318
1768
|
# get_time_off_request - Get time off request
|
|
1319
1769
|
url, params = @sdk_configuration.get_server_details
|
|
1320
1770
|
base_url = Utils.template_url(url, params)
|
|
@@ -1328,8 +1778,24 @@ module StackOne
|
|
|
1328
1778
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeOffRequestRequest, request)
|
|
1329
1779
|
headers['Accept'] = 'application/json'
|
|
1330
1780
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1331
|
-
|
|
1332
|
-
|
|
1781
|
+
retries ||= @sdk_configuration.retry_config
|
|
1782
|
+
retries ||= Utils::RetryConfig.new(
|
|
1783
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1784
|
+
exponent: 1.5,
|
|
1785
|
+
initial_interval: 500,
|
|
1786
|
+
max_elapsed_time: 3_600_000,
|
|
1787
|
+
max_interval: 60_000
|
|
1788
|
+
),
|
|
1789
|
+
retry_connection_errors: true,
|
|
1790
|
+
strategy: 'backoff'
|
|
1791
|
+
)
|
|
1792
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1793
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1794
|
+
|
|
1795
|
+
connection = @sdk_configuration.client.dup
|
|
1796
|
+
connection.request :retry, retry_options
|
|
1797
|
+
|
|
1798
|
+
r = connection.get(url) do |req|
|
|
1333
1799
|
req.headers = headers
|
|
1334
1800
|
req.params = query_params
|
|
1335
1801
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1356,8 +1822,8 @@ module StackOne
|
|
|
1356
1822
|
end
|
|
1357
1823
|
|
|
1358
1824
|
|
|
1359
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffTypeRequest)).returns(::StackOne::Operations::HrisGetTimeOffTypeResponse) }
|
|
1360
|
-
def get_time_off_type(request)
|
|
1825
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffTypeRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTimeOffTypeResponse) }
|
|
1826
|
+
def get_time_off_type(request, retries = nil)
|
|
1361
1827
|
# get_time_off_type - Get time off type
|
|
1362
1828
|
url, params = @sdk_configuration.get_server_details
|
|
1363
1829
|
base_url = Utils.template_url(url, params)
|
|
@@ -1371,8 +1837,24 @@ module StackOne
|
|
|
1371
1837
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeOffTypeRequest, request)
|
|
1372
1838
|
headers['Accept'] = 'application/json'
|
|
1373
1839
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1374
|
-
|
|
1375
|
-
|
|
1840
|
+
retries ||= @sdk_configuration.retry_config
|
|
1841
|
+
retries ||= Utils::RetryConfig.new(
|
|
1842
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1843
|
+
exponent: 1.5,
|
|
1844
|
+
initial_interval: 500,
|
|
1845
|
+
max_elapsed_time: 3_600_000,
|
|
1846
|
+
max_interval: 60_000
|
|
1847
|
+
),
|
|
1848
|
+
retry_connection_errors: true,
|
|
1849
|
+
strategy: 'backoff'
|
|
1850
|
+
)
|
|
1851
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1852
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1853
|
+
|
|
1854
|
+
connection = @sdk_configuration.client.dup
|
|
1855
|
+
connection.request :retry, retry_options
|
|
1856
|
+
|
|
1857
|
+
r = connection.get(url) do |req|
|
|
1376
1858
|
req.headers = headers
|
|
1377
1859
|
req.params = query_params
|
|
1378
1860
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1399,8 +1881,8 @@ module StackOne
|
|
|
1399
1881
|
end
|
|
1400
1882
|
|
|
1401
1883
|
|
|
1402
|
-
sig { params(hris_invite_employee_request_dto: ::StackOne::Shared::HrisInviteEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisInviteEmployeeResponse) }
|
|
1403
|
-
def invite_employee(hris_invite_employee_request_dto, id, x_account_id)
|
|
1884
|
+
sig { params(hris_invite_employee_request_dto: ::StackOne::Shared::HrisInviteEmployeeRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisInviteEmployeeResponse) }
|
|
1885
|
+
def invite_employee(hris_invite_employee_request_dto, id, x_account_id, retries = nil)
|
|
1404
1886
|
# invite_employee - Invite Employee
|
|
1405
1887
|
request = ::StackOne::Operations::HrisInviteEmployeeRequest.new(
|
|
1406
1888
|
|
|
@@ -1422,8 +1904,24 @@ module StackOne
|
|
|
1422
1904
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
1423
1905
|
headers['Accept'] = 'application/json'
|
|
1424
1906
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1425
|
-
|
|
1426
|
-
|
|
1907
|
+
retries ||= @sdk_configuration.retry_config
|
|
1908
|
+
retries ||= Utils::RetryConfig.new(
|
|
1909
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1910
|
+
exponent: 1.5,
|
|
1911
|
+
initial_interval: 500,
|
|
1912
|
+
max_elapsed_time: 3_600_000,
|
|
1913
|
+
max_interval: 60_000
|
|
1914
|
+
),
|
|
1915
|
+
retry_connection_errors: true,
|
|
1916
|
+
strategy: 'backoff'
|
|
1917
|
+
)
|
|
1918
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1919
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1920
|
+
|
|
1921
|
+
connection = @sdk_configuration.client.dup
|
|
1922
|
+
connection.request :retry, retry_options
|
|
1923
|
+
|
|
1924
|
+
r = connection.post(url) do |req|
|
|
1427
1925
|
req.headers = headers
|
|
1428
1926
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
1429
1927
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -1456,8 +1954,8 @@ module StackOne
|
|
|
1456
1954
|
end
|
|
1457
1955
|
|
|
1458
1956
|
|
|
1459
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest)).returns(::StackOne::Operations::HrisListBenefitsResponse) }
|
|
1460
|
-
def list_benefits(request)
|
|
1957
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListBenefitsResponse) }
|
|
1958
|
+
def list_benefits(request, retries = nil)
|
|
1461
1959
|
# list_benefits - List benefits
|
|
1462
1960
|
url, params = @sdk_configuration.get_server_details
|
|
1463
1961
|
base_url = Utils.template_url(url, params)
|
|
@@ -1466,8 +1964,24 @@ module StackOne
|
|
|
1466
1964
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListBenefitsRequest, request)
|
|
1467
1965
|
headers['Accept'] = 'application/json'
|
|
1468
1966
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1469
|
-
|
|
1470
|
-
|
|
1967
|
+
retries ||= @sdk_configuration.retry_config
|
|
1968
|
+
retries ||= Utils::RetryConfig.new(
|
|
1969
|
+
backoff: Utils::BackoffStrategy.new(
|
|
1970
|
+
exponent: 1.5,
|
|
1971
|
+
initial_interval: 500,
|
|
1972
|
+
max_elapsed_time: 3_600_000,
|
|
1973
|
+
max_interval: 60_000
|
|
1974
|
+
),
|
|
1975
|
+
retry_connection_errors: true,
|
|
1976
|
+
strategy: 'backoff'
|
|
1977
|
+
)
|
|
1978
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1979
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
1980
|
+
|
|
1981
|
+
connection = @sdk_configuration.client.dup
|
|
1982
|
+
connection.request :retry, retry_options
|
|
1983
|
+
|
|
1984
|
+
r = connection.get(url) do |req|
|
|
1471
1985
|
req.headers = headers
|
|
1472
1986
|
req.params = query_params
|
|
1473
1987
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1494,8 +2008,8 @@ module StackOne
|
|
|
1494
2008
|
end
|
|
1495
2009
|
|
|
1496
2010
|
|
|
1497
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest)).returns(::StackOne::Operations::HrisListCompaniesResponse) }
|
|
1498
|
-
def list_companies(request)
|
|
2011
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListCompaniesResponse) }
|
|
2012
|
+
def list_companies(request, retries = nil)
|
|
1499
2013
|
# list_companies - List Companies
|
|
1500
2014
|
url, params = @sdk_configuration.get_server_details
|
|
1501
2015
|
base_url = Utils.template_url(url, params)
|
|
@@ -1504,8 +2018,24 @@ module StackOne
|
|
|
1504
2018
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListCompaniesRequest, request)
|
|
1505
2019
|
headers['Accept'] = 'application/json'
|
|
1506
2020
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1507
|
-
|
|
1508
|
-
|
|
2021
|
+
retries ||= @sdk_configuration.retry_config
|
|
2022
|
+
retries ||= Utils::RetryConfig.new(
|
|
2023
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2024
|
+
exponent: 1.5,
|
|
2025
|
+
initial_interval: 500,
|
|
2026
|
+
max_elapsed_time: 3_600_000,
|
|
2027
|
+
max_interval: 60_000
|
|
2028
|
+
),
|
|
2029
|
+
retry_connection_errors: true,
|
|
2030
|
+
strategy: 'backoff'
|
|
2031
|
+
)
|
|
2032
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2033
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2034
|
+
|
|
2035
|
+
connection = @sdk_configuration.client.dup
|
|
2036
|
+
connection.request :retry, retry_options
|
|
2037
|
+
|
|
2038
|
+
r = connection.get(url) do |req|
|
|
1509
2039
|
req.headers = headers
|
|
1510
2040
|
req.params = query_params
|
|
1511
2041
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1532,8 +2062,8 @@ module StackOne
|
|
|
1532
2062
|
end
|
|
1533
2063
|
|
|
1534
2064
|
|
|
1535
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListCostCenterGroupsRequest)).returns(::StackOne::Operations::HrisListCostCenterGroupsResponse) }
|
|
1536
|
-
def list_cost_center_groups(request)
|
|
2065
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListCostCenterGroupsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListCostCenterGroupsResponse) }
|
|
2066
|
+
def list_cost_center_groups(request, retries = nil)
|
|
1537
2067
|
# list_cost_center_groups - List Cost Center Groups
|
|
1538
2068
|
url, params = @sdk_configuration.get_server_details
|
|
1539
2069
|
base_url = Utils.template_url(url, params)
|
|
@@ -1542,8 +2072,24 @@ module StackOne
|
|
|
1542
2072
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListCostCenterGroupsRequest, request)
|
|
1543
2073
|
headers['Accept'] = 'application/json'
|
|
1544
2074
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1545
|
-
|
|
1546
|
-
|
|
2075
|
+
retries ||= @sdk_configuration.retry_config
|
|
2076
|
+
retries ||= Utils::RetryConfig.new(
|
|
2077
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2078
|
+
exponent: 1.5,
|
|
2079
|
+
initial_interval: 500,
|
|
2080
|
+
max_elapsed_time: 3_600_000,
|
|
2081
|
+
max_interval: 60_000
|
|
2082
|
+
),
|
|
2083
|
+
retry_connection_errors: true,
|
|
2084
|
+
strategy: 'backoff'
|
|
2085
|
+
)
|
|
2086
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2087
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2088
|
+
|
|
2089
|
+
connection = @sdk_configuration.client.dup
|
|
2090
|
+
connection.request :retry, retry_options
|
|
2091
|
+
|
|
2092
|
+
r = connection.get(url) do |req|
|
|
1547
2093
|
req.headers = headers
|
|
1548
2094
|
req.params = query_params
|
|
1549
2095
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1570,8 +2116,8 @@ module StackOne
|
|
|
1570
2116
|
end
|
|
1571
2117
|
|
|
1572
2118
|
|
|
1573
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListDepartmentGroupsRequest)).returns(::StackOne::Operations::HrisListDepartmentGroupsResponse) }
|
|
1574
|
-
def list_department_groups(request)
|
|
2119
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListDepartmentGroupsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListDepartmentGroupsResponse) }
|
|
2120
|
+
def list_department_groups(request, retries = nil)
|
|
1575
2121
|
# list_department_groups - List Department Groups
|
|
1576
2122
|
url, params = @sdk_configuration.get_server_details
|
|
1577
2123
|
base_url = Utils.template_url(url, params)
|
|
@@ -1580,8 +2126,24 @@ module StackOne
|
|
|
1580
2126
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListDepartmentGroupsRequest, request)
|
|
1581
2127
|
headers['Accept'] = 'application/json'
|
|
1582
2128
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1583
|
-
|
|
1584
|
-
|
|
2129
|
+
retries ||= @sdk_configuration.retry_config
|
|
2130
|
+
retries ||= Utils::RetryConfig.new(
|
|
2131
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2132
|
+
exponent: 1.5,
|
|
2133
|
+
initial_interval: 500,
|
|
2134
|
+
max_elapsed_time: 3_600_000,
|
|
2135
|
+
max_interval: 60_000
|
|
2136
|
+
),
|
|
2137
|
+
retry_connection_errors: true,
|
|
2138
|
+
strategy: 'backoff'
|
|
2139
|
+
)
|
|
2140
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2141
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2142
|
+
|
|
2143
|
+
connection = @sdk_configuration.client.dup
|
|
2144
|
+
connection.request :retry, retry_options
|
|
2145
|
+
|
|
2146
|
+
r = connection.get(url) do |req|
|
|
1585
2147
|
req.headers = headers
|
|
1586
2148
|
req.params = query_params
|
|
1587
2149
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1608,8 +2170,8 @@ module StackOne
|
|
|
1608
2170
|
end
|
|
1609
2171
|
|
|
1610
2172
|
|
|
1611
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCategoriesRequest)).returns(::StackOne::Operations::HrisListEmployeeCategoriesResponse) }
|
|
1612
|
-
def list_employee_categories(request)
|
|
2173
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCategoriesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeCategoriesResponse) }
|
|
2174
|
+
def list_employee_categories(request, retries = nil)
|
|
1613
2175
|
# list_employee_categories - List Employee Document Categories
|
|
1614
2176
|
url, params = @sdk_configuration.get_server_details
|
|
1615
2177
|
base_url = Utils.template_url(url, params)
|
|
@@ -1618,8 +2180,24 @@ module StackOne
|
|
|
1618
2180
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeCategoriesRequest, request)
|
|
1619
2181
|
headers['Accept'] = 'application/json'
|
|
1620
2182
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1621
|
-
|
|
1622
|
-
|
|
2183
|
+
retries ||= @sdk_configuration.retry_config
|
|
2184
|
+
retries ||= Utils::RetryConfig.new(
|
|
2185
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2186
|
+
exponent: 1.5,
|
|
2187
|
+
initial_interval: 500,
|
|
2188
|
+
max_elapsed_time: 3_600_000,
|
|
2189
|
+
max_interval: 60_000
|
|
2190
|
+
),
|
|
2191
|
+
retry_connection_errors: true,
|
|
2192
|
+
strategy: 'backoff'
|
|
2193
|
+
)
|
|
2194
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2195
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2196
|
+
|
|
2197
|
+
connection = @sdk_configuration.client.dup
|
|
2198
|
+
connection.request :retry, retry_options
|
|
2199
|
+
|
|
2200
|
+
r = connection.get(url) do |req|
|
|
1623
2201
|
req.headers = headers
|
|
1624
2202
|
req.params = query_params
|
|
1625
2203
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1646,8 +2224,8 @@ module StackOne
|
|
|
1646
2224
|
end
|
|
1647
2225
|
|
|
1648
2226
|
|
|
1649
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest)).returns(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsResponse) }
|
|
1650
|
-
def list_employee_custom_field_definitions(request)
|
|
2227
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsResponse) }
|
|
2228
|
+
def list_employee_custom_field_definitions(request, retries = nil)
|
|
1651
2229
|
# list_employee_custom_field_definitions - List employee Custom Field Definitions
|
|
1652
2230
|
url, params = @sdk_configuration.get_server_details
|
|
1653
2231
|
base_url = Utils.template_url(url, params)
|
|
@@ -1656,8 +2234,24 @@ module StackOne
|
|
|
1656
2234
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest, request)
|
|
1657
2235
|
headers['Accept'] = 'application/json'
|
|
1658
2236
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1659
|
-
|
|
1660
|
-
|
|
2237
|
+
retries ||= @sdk_configuration.retry_config
|
|
2238
|
+
retries ||= Utils::RetryConfig.new(
|
|
2239
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2240
|
+
exponent: 1.5,
|
|
2241
|
+
initial_interval: 500,
|
|
2242
|
+
max_elapsed_time: 3_600_000,
|
|
2243
|
+
max_interval: 60_000
|
|
2244
|
+
),
|
|
2245
|
+
retry_connection_errors: true,
|
|
2246
|
+
strategy: 'backoff'
|
|
2247
|
+
)
|
|
2248
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2249
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2250
|
+
|
|
2251
|
+
connection = @sdk_configuration.client.dup
|
|
2252
|
+
connection.request :retry, retry_options
|
|
2253
|
+
|
|
2254
|
+
r = connection.get(url) do |req|
|
|
1661
2255
|
req.headers = headers
|
|
1662
2256
|
req.params = query_params
|
|
1663
2257
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1684,8 +2278,8 @@ module StackOne
|
|
|
1684
2278
|
end
|
|
1685
2279
|
|
|
1686
2280
|
|
|
1687
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(::StackOne::Operations::HrisListEmployeeDocumentsResponse) }
|
|
1688
|
-
def list_employee_documents(request)
|
|
2281
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeDocumentsResponse) }
|
|
2282
|
+
def list_employee_documents(request, retries = nil)
|
|
1689
2283
|
# list_employee_documents - List Employee Documents
|
|
1690
2284
|
url, params = @sdk_configuration.get_server_details
|
|
1691
2285
|
base_url = Utils.template_url(url, params)
|
|
@@ -1699,8 +2293,24 @@ module StackOne
|
|
|
1699
2293
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeDocumentsRequest, request)
|
|
1700
2294
|
headers['Accept'] = 'application/json'
|
|
1701
2295
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1702
|
-
|
|
1703
|
-
|
|
2296
|
+
retries ||= @sdk_configuration.retry_config
|
|
2297
|
+
retries ||= Utils::RetryConfig.new(
|
|
2298
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2299
|
+
exponent: 1.5,
|
|
2300
|
+
initial_interval: 500,
|
|
2301
|
+
max_elapsed_time: 3_600_000,
|
|
2302
|
+
max_interval: 60_000
|
|
2303
|
+
),
|
|
2304
|
+
retry_connection_errors: true,
|
|
2305
|
+
strategy: 'backoff'
|
|
2306
|
+
)
|
|
2307
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2308
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2309
|
+
|
|
2310
|
+
connection = @sdk_configuration.client.dup
|
|
2311
|
+
connection.request :retry, retry_options
|
|
2312
|
+
|
|
2313
|
+
r = connection.get(url) do |req|
|
|
1704
2314
|
req.headers = headers
|
|
1705
2315
|
req.params = query_params
|
|
1706
2316
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1727,8 +2337,8 @@ module StackOne
|
|
|
1727
2337
|
end
|
|
1728
2338
|
|
|
1729
2339
|
|
|
1730
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeEmploymentsRequest)).returns(::StackOne::Operations::HrisListEmployeeEmploymentsResponse) }
|
|
1731
|
-
def list_employee_employments(request)
|
|
2340
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeEmploymentsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeEmploymentsResponse) }
|
|
2341
|
+
def list_employee_employments(request, retries = nil)
|
|
1732
2342
|
# list_employee_employments - List Employee Employments
|
|
1733
2343
|
url, params = @sdk_configuration.get_server_details
|
|
1734
2344
|
base_url = Utils.template_url(url, params)
|
|
@@ -1742,8 +2352,24 @@ module StackOne
|
|
|
1742
2352
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeEmploymentsRequest, request)
|
|
1743
2353
|
headers['Accept'] = 'application/json'
|
|
1744
2354
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1745
|
-
|
|
1746
|
-
|
|
2355
|
+
retries ||= @sdk_configuration.retry_config
|
|
2356
|
+
retries ||= Utils::RetryConfig.new(
|
|
2357
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2358
|
+
exponent: 1.5,
|
|
2359
|
+
initial_interval: 500,
|
|
2360
|
+
max_elapsed_time: 3_600_000,
|
|
2361
|
+
max_interval: 60_000
|
|
2362
|
+
),
|
|
2363
|
+
retry_connection_errors: true,
|
|
2364
|
+
strategy: 'backoff'
|
|
2365
|
+
)
|
|
2366
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2367
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2368
|
+
|
|
2369
|
+
connection = @sdk_configuration.client.dup
|
|
2370
|
+
connection.request :retry, retry_options
|
|
2371
|
+
|
|
2372
|
+
r = connection.get(url) do |req|
|
|
1747
2373
|
req.headers = headers
|
|
1748
2374
|
req.params = query_params
|
|
1749
2375
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1770,8 +2396,8 @@ module StackOne
|
|
|
1770
2396
|
end
|
|
1771
2397
|
|
|
1772
2398
|
|
|
1773
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeSkillsRequest)).returns(::StackOne::Operations::HrisListEmployeeSkillsResponse) }
|
|
1774
|
-
def list_employee_skills(request)
|
|
2399
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeSkillsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeSkillsResponse) }
|
|
2400
|
+
def list_employee_skills(request, retries = nil)
|
|
1775
2401
|
# list_employee_skills - List Employee Skills
|
|
1776
2402
|
url, params = @sdk_configuration.get_server_details
|
|
1777
2403
|
base_url = Utils.template_url(url, params)
|
|
@@ -1785,8 +2411,24 @@ module StackOne
|
|
|
1785
2411
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeSkillsRequest, request)
|
|
1786
2412
|
headers['Accept'] = 'application/json'
|
|
1787
2413
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1788
|
-
|
|
1789
|
-
|
|
2414
|
+
retries ||= @sdk_configuration.retry_config
|
|
2415
|
+
retries ||= Utils::RetryConfig.new(
|
|
2416
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2417
|
+
exponent: 1.5,
|
|
2418
|
+
initial_interval: 500,
|
|
2419
|
+
max_elapsed_time: 3_600_000,
|
|
2420
|
+
max_interval: 60_000
|
|
2421
|
+
),
|
|
2422
|
+
retry_connection_errors: true,
|
|
2423
|
+
strategy: 'backoff'
|
|
2424
|
+
)
|
|
2425
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2426
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2427
|
+
|
|
2428
|
+
connection = @sdk_configuration.client.dup
|
|
2429
|
+
connection.request :retry, retry_options
|
|
2430
|
+
|
|
2431
|
+
r = connection.get(url) do |req|
|
|
1790
2432
|
req.headers = headers
|
|
1791
2433
|
req.params = query_params
|
|
1792
2434
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1813,8 +2455,8 @@ module StackOne
|
|
|
1813
2455
|
end
|
|
1814
2456
|
|
|
1815
2457
|
|
|
1816
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffBalancesRequest)).returns(::StackOne::Operations::HrisListEmployeeTimeOffBalancesResponse) }
|
|
1817
|
-
def list_employee_time_off_balances(request)
|
|
2458
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffBalancesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeTimeOffBalancesResponse) }
|
|
2459
|
+
def list_employee_time_off_balances(request, retries = nil)
|
|
1818
2460
|
# list_employee_time_off_balances - List Employee Time Off Balances
|
|
1819
2461
|
url, params = @sdk_configuration.get_server_details
|
|
1820
2462
|
base_url = Utils.template_url(url, params)
|
|
@@ -1828,8 +2470,24 @@ module StackOne
|
|
|
1828
2470
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeTimeOffBalancesRequest, request)
|
|
1829
2471
|
headers['Accept'] = 'application/json'
|
|
1830
2472
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1831
|
-
|
|
1832
|
-
|
|
2473
|
+
retries ||= @sdk_configuration.retry_config
|
|
2474
|
+
retries ||= Utils::RetryConfig.new(
|
|
2475
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2476
|
+
exponent: 1.5,
|
|
2477
|
+
initial_interval: 500,
|
|
2478
|
+
max_elapsed_time: 3_600_000,
|
|
2479
|
+
max_interval: 60_000
|
|
2480
|
+
),
|
|
2481
|
+
retry_connection_errors: true,
|
|
2482
|
+
strategy: 'backoff'
|
|
2483
|
+
)
|
|
2484
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2485
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2486
|
+
|
|
2487
|
+
connection = @sdk_configuration.client.dup
|
|
2488
|
+
connection.request :retry, retry_options
|
|
2489
|
+
|
|
2490
|
+
r = connection.get(url) do |req|
|
|
1833
2491
|
req.headers = headers
|
|
1834
2492
|
req.params = query_params
|
|
1835
2493
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1856,8 +2514,8 @@ module StackOne
|
|
|
1856
2514
|
end
|
|
1857
2515
|
|
|
1858
2516
|
|
|
1859
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest)).returns(::StackOne::Operations::HrisListEmployeeTimeOffRequestsResponse) }
|
|
1860
|
-
def list_employee_time_off_requests(request)
|
|
2517
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeTimeOffRequestsResponse) }
|
|
2518
|
+
def list_employee_time_off_requests(request, retries = nil)
|
|
1861
2519
|
# list_employee_time_off_requests - List Employee Time Off Requests
|
|
1862
2520
|
url, params = @sdk_configuration.get_server_details
|
|
1863
2521
|
base_url = Utils.template_url(url, params)
|
|
@@ -1871,8 +2529,24 @@ module StackOne
|
|
|
1871
2529
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest, request)
|
|
1872
2530
|
headers['Accept'] = 'application/json'
|
|
1873
2531
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1874
|
-
|
|
1875
|
-
|
|
2532
|
+
retries ||= @sdk_configuration.retry_config
|
|
2533
|
+
retries ||= Utils::RetryConfig.new(
|
|
2534
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2535
|
+
exponent: 1.5,
|
|
2536
|
+
initial_interval: 500,
|
|
2537
|
+
max_elapsed_time: 3_600_000,
|
|
2538
|
+
max_interval: 60_000
|
|
2539
|
+
),
|
|
2540
|
+
retry_connection_errors: true,
|
|
2541
|
+
strategy: 'backoff'
|
|
2542
|
+
)
|
|
2543
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2544
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2545
|
+
|
|
2546
|
+
connection = @sdk_configuration.client.dup
|
|
2547
|
+
connection.request :retry, retry_options
|
|
2548
|
+
|
|
2549
|
+
r = connection.get(url) do |req|
|
|
1876
2550
|
req.headers = headers
|
|
1877
2551
|
req.params = query_params
|
|
1878
2552
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1899,8 +2573,8 @@ module StackOne
|
|
|
1899
2573
|
end
|
|
1900
2574
|
|
|
1901
2575
|
|
|
1902
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest)).returns(::StackOne::Operations::HrisListEmployeeWorkEligibilityResponse) }
|
|
1903
|
-
def list_employee_work_eligibility(request)
|
|
2576
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeWorkEligibilityResponse) }
|
|
2577
|
+
def list_employee_work_eligibility(request, retries = nil)
|
|
1904
2578
|
# list_employee_work_eligibility - List Employee Work Eligibility
|
|
1905
2579
|
url, params = @sdk_configuration.get_server_details
|
|
1906
2580
|
base_url = Utils.template_url(url, params)
|
|
@@ -1914,8 +2588,24 @@ module StackOne
|
|
|
1914
2588
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest, request)
|
|
1915
2589
|
headers['Accept'] = 'application/json'
|
|
1916
2590
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1917
|
-
|
|
1918
|
-
|
|
2591
|
+
retries ||= @sdk_configuration.retry_config
|
|
2592
|
+
retries ||= Utils::RetryConfig.new(
|
|
2593
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2594
|
+
exponent: 1.5,
|
|
2595
|
+
initial_interval: 500,
|
|
2596
|
+
max_elapsed_time: 3_600_000,
|
|
2597
|
+
max_interval: 60_000
|
|
2598
|
+
),
|
|
2599
|
+
retry_connection_errors: true,
|
|
2600
|
+
strategy: 'backoff'
|
|
2601
|
+
)
|
|
2602
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2603
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2604
|
+
|
|
2605
|
+
connection = @sdk_configuration.client.dup
|
|
2606
|
+
connection.request :retry, retry_options
|
|
2607
|
+
|
|
2608
|
+
r = connection.get(url) do |req|
|
|
1919
2609
|
req.headers = headers
|
|
1920
2610
|
req.params = query_params
|
|
1921
2611
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1942,8 +2632,8 @@ module StackOne
|
|
|
1942
2632
|
end
|
|
1943
2633
|
|
|
1944
2634
|
|
|
1945
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeesRequest)).returns(::StackOne::Operations::HrisListEmployeesResponse) }
|
|
1946
|
-
def list_employees(request)
|
|
2635
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeesResponse) }
|
|
2636
|
+
def list_employees(request, retries = nil)
|
|
1947
2637
|
# list_employees - List Employees
|
|
1948
2638
|
url, params = @sdk_configuration.get_server_details
|
|
1949
2639
|
base_url = Utils.template_url(url, params)
|
|
@@ -1952,8 +2642,24 @@ module StackOne
|
|
|
1952
2642
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeesRequest, request)
|
|
1953
2643
|
headers['Accept'] = 'application/json'
|
|
1954
2644
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1955
|
-
|
|
1956
|
-
|
|
2645
|
+
retries ||= @sdk_configuration.retry_config
|
|
2646
|
+
retries ||= Utils::RetryConfig.new(
|
|
2647
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2648
|
+
exponent: 1.5,
|
|
2649
|
+
initial_interval: 500,
|
|
2650
|
+
max_elapsed_time: 3_600_000,
|
|
2651
|
+
max_interval: 60_000
|
|
2652
|
+
),
|
|
2653
|
+
retry_connection_errors: true,
|
|
2654
|
+
strategy: 'backoff'
|
|
2655
|
+
)
|
|
2656
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2657
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2658
|
+
|
|
2659
|
+
connection = @sdk_configuration.client.dup
|
|
2660
|
+
connection.request :retry, retry_options
|
|
2661
|
+
|
|
2662
|
+
r = connection.get(url) do |req|
|
|
1957
2663
|
req.headers = headers
|
|
1958
2664
|
req.params = query_params
|
|
1959
2665
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -1980,8 +2686,8 @@ module StackOne
|
|
|
1980
2686
|
end
|
|
1981
2687
|
|
|
1982
2688
|
|
|
1983
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmploymentsRequest)).returns(::StackOne::Operations::HrisListEmploymentsResponse) }
|
|
1984
|
-
def list_employments(request)
|
|
2689
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmploymentsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmploymentsResponse) }
|
|
2690
|
+
def list_employments(request, retries = nil)
|
|
1985
2691
|
# list_employments - List Employments
|
|
1986
2692
|
url, params = @sdk_configuration.get_server_details
|
|
1987
2693
|
base_url = Utils.template_url(url, params)
|
|
@@ -1990,8 +2696,24 @@ module StackOne
|
|
|
1990
2696
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmploymentsRequest, request)
|
|
1991
2697
|
headers['Accept'] = 'application/json'
|
|
1992
2698
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1993
|
-
|
|
1994
|
-
|
|
2699
|
+
retries ||= @sdk_configuration.retry_config
|
|
2700
|
+
retries ||= Utils::RetryConfig.new(
|
|
2701
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2702
|
+
exponent: 1.5,
|
|
2703
|
+
initial_interval: 500,
|
|
2704
|
+
max_elapsed_time: 3_600_000,
|
|
2705
|
+
max_interval: 60_000
|
|
2706
|
+
),
|
|
2707
|
+
retry_connection_errors: true,
|
|
2708
|
+
strategy: 'backoff'
|
|
2709
|
+
)
|
|
2710
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2711
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2712
|
+
|
|
2713
|
+
connection = @sdk_configuration.client.dup
|
|
2714
|
+
connection.request :retry, retry_options
|
|
2715
|
+
|
|
2716
|
+
r = connection.get(url) do |req|
|
|
1995
2717
|
req.headers = headers
|
|
1996
2718
|
req.params = query_params
|
|
1997
2719
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -2018,8 +2740,8 @@ module StackOne
|
|
|
2018
2740
|
end
|
|
2019
2741
|
|
|
2020
2742
|
|
|
2021
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListGroupsRequest)).returns(::StackOne::Operations::HrisListGroupsResponse) }
|
|
2022
|
-
def list_groups(request)
|
|
2743
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListGroupsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListGroupsResponse) }
|
|
2744
|
+
def list_groups(request, retries = nil)
|
|
2023
2745
|
# list_groups - List Groups
|
|
2024
2746
|
url, params = @sdk_configuration.get_server_details
|
|
2025
2747
|
base_url = Utils.template_url(url, params)
|
|
@@ -2028,8 +2750,24 @@ module StackOne
|
|
|
2028
2750
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListGroupsRequest, request)
|
|
2029
2751
|
headers['Accept'] = 'application/json'
|
|
2030
2752
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2031
|
-
|
|
2032
|
-
|
|
2753
|
+
retries ||= @sdk_configuration.retry_config
|
|
2754
|
+
retries ||= Utils::RetryConfig.new(
|
|
2755
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2756
|
+
exponent: 1.5,
|
|
2757
|
+
initial_interval: 500,
|
|
2758
|
+
max_elapsed_time: 3_600_000,
|
|
2759
|
+
max_interval: 60_000
|
|
2760
|
+
),
|
|
2761
|
+
retry_connection_errors: true,
|
|
2762
|
+
strategy: 'backoff'
|
|
2763
|
+
)
|
|
2764
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2765
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2766
|
+
|
|
2767
|
+
connection = @sdk_configuration.client.dup
|
|
2768
|
+
connection.request :retry, retry_options
|
|
2769
|
+
|
|
2770
|
+
r = connection.get(url) do |req|
|
|
2033
2771
|
req.headers = headers
|
|
2034
2772
|
req.params = query_params
|
|
2035
2773
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -2056,8 +2794,8 @@ module StackOne
|
|
|
2056
2794
|
end
|
|
2057
2795
|
|
|
2058
2796
|
|
|
2059
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListJobsRequest)).returns(::StackOne::Operations::HrisListJobsResponse) }
|
|
2060
|
-
def list_jobs(request)
|
|
2797
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListJobsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListJobsResponse) }
|
|
2798
|
+
def list_jobs(request, retries = nil)
|
|
2061
2799
|
# list_jobs - List Jobs
|
|
2062
2800
|
url, params = @sdk_configuration.get_server_details
|
|
2063
2801
|
base_url = Utils.template_url(url, params)
|
|
@@ -2066,8 +2804,24 @@ module StackOne
|
|
|
2066
2804
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListJobsRequest, request)
|
|
2067
2805
|
headers['Accept'] = 'application/json'
|
|
2068
2806
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2069
|
-
|
|
2070
|
-
|
|
2807
|
+
retries ||= @sdk_configuration.retry_config
|
|
2808
|
+
retries ||= Utils::RetryConfig.new(
|
|
2809
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2810
|
+
exponent: 1.5,
|
|
2811
|
+
initial_interval: 500,
|
|
2812
|
+
max_elapsed_time: 3_600_000,
|
|
2813
|
+
max_interval: 60_000
|
|
2814
|
+
),
|
|
2815
|
+
retry_connection_errors: true,
|
|
2816
|
+
strategy: 'backoff'
|
|
2817
|
+
)
|
|
2818
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2819
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2820
|
+
|
|
2821
|
+
connection = @sdk_configuration.client.dup
|
|
2822
|
+
connection.request :retry, retry_options
|
|
2823
|
+
|
|
2824
|
+
r = connection.get(url) do |req|
|
|
2071
2825
|
req.headers = headers
|
|
2072
2826
|
req.params = query_params
|
|
2073
2827
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -2094,9 +2848,9 @@ module StackOne
|
|
|
2094
2848
|
end
|
|
2095
2849
|
|
|
2096
2850
|
|
|
2097
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest)).returns(::StackOne::Operations::HrisListLocationsResponse) }
|
|
2098
|
-
def list_locations(request)
|
|
2099
|
-
# list_locations - List
|
|
2851
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListLocationsResponse) }
|
|
2852
|
+
def list_locations(request, retries = nil)
|
|
2853
|
+
# list_locations - List Work Locations
|
|
2100
2854
|
url, params = @sdk_configuration.get_server_details
|
|
2101
2855
|
base_url = Utils.template_url(url, params)
|
|
2102
2856
|
url = "#{base_url}/unified/hris/locations"
|
|
@@ -2104,8 +2858,24 @@ module StackOne
|
|
|
2104
2858
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListLocationsRequest, request)
|
|
2105
2859
|
headers['Accept'] = 'application/json'
|
|
2106
2860
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2107
|
-
|
|
2108
|
-
|
|
2861
|
+
retries ||= @sdk_configuration.retry_config
|
|
2862
|
+
retries ||= Utils::RetryConfig.new(
|
|
2863
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2864
|
+
exponent: 1.5,
|
|
2865
|
+
initial_interval: 500,
|
|
2866
|
+
max_elapsed_time: 3_600_000,
|
|
2867
|
+
max_interval: 60_000
|
|
2868
|
+
),
|
|
2869
|
+
retry_connection_errors: true,
|
|
2870
|
+
strategy: 'backoff'
|
|
2871
|
+
)
|
|
2872
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2873
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2874
|
+
|
|
2875
|
+
connection = @sdk_configuration.client.dup
|
|
2876
|
+
connection.request :retry, retry_options
|
|
2877
|
+
|
|
2878
|
+
r = connection.get(url) do |req|
|
|
2109
2879
|
req.headers = headers
|
|
2110
2880
|
req.params = query_params
|
|
2111
2881
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -2132,8 +2902,8 @@ module StackOne
|
|
|
2132
2902
|
end
|
|
2133
2903
|
|
|
2134
2904
|
|
|
2135
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTeamGroupsRequest)).returns(::StackOne::Operations::HrisListTeamGroupsResponse) }
|
|
2136
|
-
def list_team_groups(request)
|
|
2905
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTeamGroupsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTeamGroupsResponse) }
|
|
2906
|
+
def list_team_groups(request, retries = nil)
|
|
2137
2907
|
# list_team_groups - List Team Groups
|
|
2138
2908
|
url, params = @sdk_configuration.get_server_details
|
|
2139
2909
|
base_url = Utils.template_url(url, params)
|
|
@@ -2142,8 +2912,24 @@ module StackOne
|
|
|
2142
2912
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTeamGroupsRequest, request)
|
|
2143
2913
|
headers['Accept'] = 'application/json'
|
|
2144
2914
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2145
|
-
|
|
2146
|
-
|
|
2915
|
+
retries ||= @sdk_configuration.retry_config
|
|
2916
|
+
retries ||= Utils::RetryConfig.new(
|
|
2917
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2918
|
+
exponent: 1.5,
|
|
2919
|
+
initial_interval: 500,
|
|
2920
|
+
max_elapsed_time: 3_600_000,
|
|
2921
|
+
max_interval: 60_000
|
|
2922
|
+
),
|
|
2923
|
+
retry_connection_errors: true,
|
|
2924
|
+
strategy: 'backoff'
|
|
2925
|
+
)
|
|
2926
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2927
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2928
|
+
|
|
2929
|
+
connection = @sdk_configuration.client.dup
|
|
2930
|
+
connection.request :retry, retry_options
|
|
2931
|
+
|
|
2932
|
+
r = connection.get(url) do |req|
|
|
2147
2933
|
req.headers = headers
|
|
2148
2934
|
req.params = query_params
|
|
2149
2935
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -2170,8 +2956,8 @@ module StackOne
|
|
|
2170
2956
|
end
|
|
2171
2957
|
|
|
2172
2958
|
|
|
2173
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeEntriesRequest)).returns(::StackOne::Operations::HrisListTimeEntriesResponse) }
|
|
2174
|
-
def list_time_entries(request)
|
|
2959
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeEntriesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTimeEntriesResponse) }
|
|
2960
|
+
def list_time_entries(request, retries = nil)
|
|
2175
2961
|
# list_time_entries - List Time Entries
|
|
2176
2962
|
url, params = @sdk_configuration.get_server_details
|
|
2177
2963
|
base_url = Utils.template_url(url, params)
|
|
@@ -2180,8 +2966,24 @@ module StackOne
|
|
|
2180
2966
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeEntriesRequest, request)
|
|
2181
2967
|
headers['Accept'] = 'application/json'
|
|
2182
2968
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2183
|
-
|
|
2184
|
-
|
|
2969
|
+
retries ||= @sdk_configuration.retry_config
|
|
2970
|
+
retries ||= Utils::RetryConfig.new(
|
|
2971
|
+
backoff: Utils::BackoffStrategy.new(
|
|
2972
|
+
exponent: 1.5,
|
|
2973
|
+
initial_interval: 500,
|
|
2974
|
+
max_elapsed_time: 3_600_000,
|
|
2975
|
+
max_interval: 60_000
|
|
2976
|
+
),
|
|
2977
|
+
retry_connection_errors: true,
|
|
2978
|
+
strategy: 'backoff'
|
|
2979
|
+
)
|
|
2980
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
2981
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
2982
|
+
|
|
2983
|
+
connection = @sdk_configuration.client.dup
|
|
2984
|
+
connection.request :retry, retry_options
|
|
2985
|
+
|
|
2986
|
+
r = connection.get(url) do |req|
|
|
2185
2987
|
req.headers = headers
|
|
2186
2988
|
req.params = query_params
|
|
2187
2989
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -2208,8 +3010,8 @@ module StackOne
|
|
|
2208
3010
|
end
|
|
2209
3011
|
|
|
2210
3012
|
|
|
2211
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffPoliciesRequest)).returns(::StackOne::Operations::HrisListTimeOffPoliciesResponse) }
|
|
2212
|
-
def list_time_off_policies(request)
|
|
3013
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffPoliciesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTimeOffPoliciesResponse) }
|
|
3014
|
+
def list_time_off_policies(request, retries = nil)
|
|
2213
3015
|
# list_time_off_policies - List Time Off Policies
|
|
2214
3016
|
url, params = @sdk_configuration.get_server_details
|
|
2215
3017
|
base_url = Utils.template_url(url, params)
|
|
@@ -2218,8 +3020,24 @@ module StackOne
|
|
|
2218
3020
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeOffPoliciesRequest, request)
|
|
2219
3021
|
headers['Accept'] = 'application/json'
|
|
2220
3022
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2221
|
-
|
|
2222
|
-
|
|
3023
|
+
retries ||= @sdk_configuration.retry_config
|
|
3024
|
+
retries ||= Utils::RetryConfig.new(
|
|
3025
|
+
backoff: Utils::BackoffStrategy.new(
|
|
3026
|
+
exponent: 1.5,
|
|
3027
|
+
initial_interval: 500,
|
|
3028
|
+
max_elapsed_time: 3_600_000,
|
|
3029
|
+
max_interval: 60_000
|
|
3030
|
+
),
|
|
3031
|
+
retry_connection_errors: true,
|
|
3032
|
+
strategy: 'backoff'
|
|
3033
|
+
)
|
|
3034
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
3035
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
3036
|
+
|
|
3037
|
+
connection = @sdk_configuration.client.dup
|
|
3038
|
+
connection.request :retry, retry_options
|
|
3039
|
+
|
|
3040
|
+
r = connection.get(url) do |req|
|
|
2223
3041
|
req.headers = headers
|
|
2224
3042
|
req.params = query_params
|
|
2225
3043
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -2246,8 +3064,8 @@ module StackOne
|
|
|
2246
3064
|
end
|
|
2247
3065
|
|
|
2248
3066
|
|
|
2249
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffRequestsRequest)).returns(::StackOne::Operations::HrisListTimeOffRequestsResponse) }
|
|
2250
|
-
def list_time_off_requests(request)
|
|
3067
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffRequestsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTimeOffRequestsResponse) }
|
|
3068
|
+
def list_time_off_requests(request, retries = nil)
|
|
2251
3069
|
# list_time_off_requests - List time off requests
|
|
2252
3070
|
url, params = @sdk_configuration.get_server_details
|
|
2253
3071
|
base_url = Utils.template_url(url, params)
|
|
@@ -2256,8 +3074,24 @@ module StackOne
|
|
|
2256
3074
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeOffRequestsRequest, request)
|
|
2257
3075
|
headers['Accept'] = 'application/json'
|
|
2258
3076
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2259
|
-
|
|
2260
|
-
|
|
3077
|
+
retries ||= @sdk_configuration.retry_config
|
|
3078
|
+
retries ||= Utils::RetryConfig.new(
|
|
3079
|
+
backoff: Utils::BackoffStrategy.new(
|
|
3080
|
+
exponent: 1.5,
|
|
3081
|
+
initial_interval: 500,
|
|
3082
|
+
max_elapsed_time: 3_600_000,
|
|
3083
|
+
max_interval: 60_000
|
|
3084
|
+
),
|
|
3085
|
+
retry_connection_errors: true,
|
|
3086
|
+
strategy: 'backoff'
|
|
3087
|
+
)
|
|
3088
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
3089
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
3090
|
+
|
|
3091
|
+
connection = @sdk_configuration.client.dup
|
|
3092
|
+
connection.request :retry, retry_options
|
|
3093
|
+
|
|
3094
|
+
r = connection.get(url) do |req|
|
|
2261
3095
|
req.headers = headers
|
|
2262
3096
|
req.params = query_params
|
|
2263
3097
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -2284,8 +3118,8 @@ module StackOne
|
|
|
2284
3118
|
end
|
|
2285
3119
|
|
|
2286
3120
|
|
|
2287
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffTypesRequest)).returns(::StackOne::Operations::HrisListTimeOffTypesResponse) }
|
|
2288
|
-
def list_time_off_types(request)
|
|
3121
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffTypesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTimeOffTypesResponse) }
|
|
3122
|
+
def list_time_off_types(request, retries = nil)
|
|
2289
3123
|
# list_time_off_types - List time off types
|
|
2290
3124
|
url, params = @sdk_configuration.get_server_details
|
|
2291
3125
|
base_url = Utils.template_url(url, params)
|
|
@@ -2294,8 +3128,24 @@ module StackOne
|
|
|
2294
3128
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeOffTypesRequest, request)
|
|
2295
3129
|
headers['Accept'] = 'application/json'
|
|
2296
3130
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2297
|
-
|
|
2298
|
-
|
|
3131
|
+
retries ||= @sdk_configuration.retry_config
|
|
3132
|
+
retries ||= Utils::RetryConfig.new(
|
|
3133
|
+
backoff: Utils::BackoffStrategy.new(
|
|
3134
|
+
exponent: 1.5,
|
|
3135
|
+
initial_interval: 500,
|
|
3136
|
+
max_elapsed_time: 3_600_000,
|
|
3137
|
+
max_interval: 60_000
|
|
3138
|
+
),
|
|
3139
|
+
retry_connection_errors: true,
|
|
3140
|
+
strategy: 'backoff'
|
|
3141
|
+
)
|
|
3142
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
3143
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
3144
|
+
|
|
3145
|
+
connection = @sdk_configuration.client.dup
|
|
3146
|
+
connection.request :retry, retry_options
|
|
3147
|
+
|
|
3148
|
+
r = connection.get(url) do |req|
|
|
2299
3149
|
req.headers = headers
|
|
2300
3150
|
req.params = query_params
|
|
2301
3151
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
@@ -2322,8 +3172,8 @@ module StackOne
|
|
|
2322
3172
|
end
|
|
2323
3173
|
|
|
2324
3174
|
|
|
2325
|
-
sig { params(hris_update_employee_request_dto: ::StackOne::Shared::HrisUpdateEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeResponse) }
|
|
2326
|
-
def update_employee(hris_update_employee_request_dto, id, x_account_id)
|
|
3175
|
+
sig { params(hris_update_employee_request_dto: ::StackOne::Shared::HrisUpdateEmployeeRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUpdateEmployeeResponse) }
|
|
3176
|
+
def update_employee(hris_update_employee_request_dto, id, x_account_id, retries = nil)
|
|
2327
3177
|
# update_employee - Updates an employee
|
|
2328
3178
|
request = ::StackOne::Operations::HrisUpdateEmployeeRequest.new(
|
|
2329
3179
|
|
|
@@ -2345,8 +3195,24 @@ module StackOne
|
|
|
2345
3195
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
2346
3196
|
headers['Accept'] = 'application/json'
|
|
2347
3197
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2348
|
-
|
|
2349
|
-
|
|
3198
|
+
retries ||= @sdk_configuration.retry_config
|
|
3199
|
+
retries ||= Utils::RetryConfig.new(
|
|
3200
|
+
backoff: Utils::BackoffStrategy.new(
|
|
3201
|
+
exponent: 1.5,
|
|
3202
|
+
initial_interval: 500,
|
|
3203
|
+
max_elapsed_time: 3_600_000,
|
|
3204
|
+
max_interval: 60_000
|
|
3205
|
+
),
|
|
3206
|
+
retry_connection_errors: true,
|
|
3207
|
+
strategy: 'backoff'
|
|
3208
|
+
)
|
|
3209
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
3210
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
3211
|
+
|
|
3212
|
+
connection = @sdk_configuration.client.dup
|
|
3213
|
+
connection.request :retry, retry_options
|
|
3214
|
+
|
|
3215
|
+
r = connection.patch(url) do |req|
|
|
2350
3216
|
req.headers = headers
|
|
2351
3217
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
2352
3218
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -2379,8 +3245,8 @@ module StackOne
|
|
|
2379
3245
|
end
|
|
2380
3246
|
|
|
2381
3247
|
|
|
2382
|
-
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeEmploymentResponse) }
|
|
2383
|
-
def update_employee_employment(hris_create_employment_request_dto, id, sub_resource_id, x_account_id)
|
|
3248
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUpdateEmployeeEmploymentResponse) }
|
|
3249
|
+
def update_employee_employment(hris_create_employment_request_dto, id, sub_resource_id, x_account_id, retries = nil)
|
|
2384
3250
|
# update_employee_employment - Update Employee Employment
|
|
2385
3251
|
request = ::StackOne::Operations::HrisUpdateEmployeeEmploymentRequest.new(
|
|
2386
3252
|
|
|
@@ -2403,8 +3269,24 @@ module StackOne
|
|
|
2403
3269
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
2404
3270
|
headers['Accept'] = 'application/json'
|
|
2405
3271
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2406
|
-
|
|
2407
|
-
|
|
3272
|
+
retries ||= @sdk_configuration.retry_config
|
|
3273
|
+
retries ||= Utils::RetryConfig.new(
|
|
3274
|
+
backoff: Utils::BackoffStrategy.new(
|
|
3275
|
+
exponent: 1.5,
|
|
3276
|
+
initial_interval: 500,
|
|
3277
|
+
max_elapsed_time: 3_600_000,
|
|
3278
|
+
max_interval: 60_000
|
|
3279
|
+
),
|
|
3280
|
+
retry_connection_errors: true,
|
|
3281
|
+
strategy: 'backoff'
|
|
3282
|
+
)
|
|
3283
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
3284
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
3285
|
+
|
|
3286
|
+
connection = @sdk_configuration.client.dup
|
|
3287
|
+
connection.request :retry, retry_options
|
|
3288
|
+
|
|
3289
|
+
r = connection.patch(url) do |req|
|
|
2408
3290
|
req.headers = headers
|
|
2409
3291
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
2410
3292
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -2437,8 +3319,8 @@ module StackOne
|
|
|
2437
3319
|
end
|
|
2438
3320
|
|
|
2439
3321
|
|
|
2440
|
-
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestResponse) }
|
|
2441
|
-
def update_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, sub_resource_id, x_account_id)
|
|
3322
|
+
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestResponse) }
|
|
3323
|
+
def update_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, sub_resource_id, x_account_id, retries = nil)
|
|
2442
3324
|
# update_employee_work_eligibility_request - Update Employee Work Eligibility Request
|
|
2443
3325
|
request = ::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestRequest.new(
|
|
2444
3326
|
|
|
@@ -2461,8 +3343,24 @@ module StackOne
|
|
|
2461
3343
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
2462
3344
|
headers['Accept'] = '*/*'
|
|
2463
3345
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2464
|
-
|
|
2465
|
-
|
|
3346
|
+
retries ||= @sdk_configuration.retry_config
|
|
3347
|
+
retries ||= Utils::RetryConfig.new(
|
|
3348
|
+
backoff: Utils::BackoffStrategy.new(
|
|
3349
|
+
exponent: 1.5,
|
|
3350
|
+
initial_interval: 500,
|
|
3351
|
+
max_elapsed_time: 3_600_000,
|
|
3352
|
+
max_interval: 60_000
|
|
3353
|
+
),
|
|
3354
|
+
retry_connection_errors: true,
|
|
3355
|
+
strategy: 'backoff'
|
|
3356
|
+
)
|
|
3357
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
3358
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
3359
|
+
|
|
3360
|
+
connection = @sdk_configuration.client.dup
|
|
3361
|
+
connection.request :retry, retry_options
|
|
3362
|
+
|
|
3363
|
+
r = connection.patch(url) do |req|
|
|
2466
3364
|
req.headers = headers
|
|
2467
3365
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
2468
3366
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -2491,8 +3389,8 @@ module StackOne
|
|
|
2491
3389
|
end
|
|
2492
3390
|
|
|
2493
3391
|
|
|
2494
|
-
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateTimeOffRequestResponse) }
|
|
2495
|
-
def update_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
|
|
3392
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUpdateTimeOffRequestResponse) }
|
|
3393
|
+
def update_time_off_request(hris_create_time_off_request_dto, id, x_account_id, retries = nil)
|
|
2496
3394
|
# update_time_off_request - Update time off request
|
|
2497
3395
|
request = ::StackOne::Operations::HrisUpdateTimeOffRequestRequest.new(
|
|
2498
3396
|
|
|
@@ -2514,8 +3412,24 @@ module StackOne
|
|
|
2514
3412
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
2515
3413
|
headers['Accept'] = 'application/json'
|
|
2516
3414
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2517
|
-
|
|
2518
|
-
|
|
3415
|
+
retries ||= @sdk_configuration.retry_config
|
|
3416
|
+
retries ||= Utils::RetryConfig.new(
|
|
3417
|
+
backoff: Utils::BackoffStrategy.new(
|
|
3418
|
+
exponent: 1.5,
|
|
3419
|
+
initial_interval: 500,
|
|
3420
|
+
max_elapsed_time: 3_600_000,
|
|
3421
|
+
max_interval: 60_000
|
|
3422
|
+
),
|
|
3423
|
+
retry_connection_errors: true,
|
|
3424
|
+
strategy: 'backoff'
|
|
3425
|
+
)
|
|
3426
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
3427
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
3428
|
+
|
|
3429
|
+
connection = @sdk_configuration.client.dup
|
|
3430
|
+
connection.request :retry, retry_options
|
|
3431
|
+
|
|
3432
|
+
r = connection.patch(url) do |req|
|
|
2519
3433
|
req.headers = headers
|
|
2520
3434
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
2521
3435
|
Utils.configure_request_security(req, security) if !security.nil?
|
|
@@ -2548,8 +3462,8 @@ module StackOne
|
|
|
2548
3462
|
end
|
|
2549
3463
|
|
|
2550
3464
|
|
|
2551
|
-
sig { params(hris_documents_upload_request_dto: ::StackOne::Shared::HrisDocumentsUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
|
|
2552
|
-
def upload_employee_document(hris_documents_upload_request_dto, id, x_account_id)
|
|
3465
|
+
sig { params(hris_documents_upload_request_dto: ::StackOne::Shared::HrisDocumentsUploadRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
|
|
3466
|
+
def upload_employee_document(hris_documents_upload_request_dto, id, x_account_id, retries = nil)
|
|
2553
3467
|
# upload_employee_document - Upload Employee Document
|
|
2554
3468
|
request = ::StackOne::Operations::HrisUploadEmployeeDocumentRequest.new(
|
|
2555
3469
|
|
|
@@ -2571,8 +3485,24 @@ module StackOne
|
|
|
2571
3485
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
2572
3486
|
headers['Accept'] = 'application/json'
|
|
2573
3487
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
2574
|
-
|
|
2575
|
-
|
|
3488
|
+
retries ||= @sdk_configuration.retry_config
|
|
3489
|
+
retries ||= Utils::RetryConfig.new(
|
|
3490
|
+
backoff: Utils::BackoffStrategy.new(
|
|
3491
|
+
exponent: 1.5,
|
|
3492
|
+
initial_interval: 500,
|
|
3493
|
+
max_elapsed_time: 3_600_000,
|
|
3494
|
+
max_interval: 60_000
|
|
3495
|
+
),
|
|
3496
|
+
retry_connection_errors: true,
|
|
3497
|
+
strategy: 'backoff'
|
|
3498
|
+
)
|
|
3499
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
3500
|
+
retry_options[:retry_statuses] = [429, 408]
|
|
3501
|
+
|
|
3502
|
+
connection = @sdk_configuration.client.dup
|
|
3503
|
+
connection.request :retry, retry_options
|
|
3504
|
+
|
|
3505
|
+
r = connection.post(url) do |req|
|
|
2576
3506
|
req.headers = headers
|
|
2577
3507
|
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
|
2578
3508
|
Utils.configure_request_security(req, security) if !security.nil?
|