stackone_client 0.29.0 → 0.33.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 +1 -1
- data/lib/stack_one/ats.rb +5 -5
- data/lib/stack_one/connectors.rb +2 -2
- data/lib/stack_one/crm.rb +1 -1
- data/lib/stack_one/hris.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_changes_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_queryparam_filter.rb +2 -2
- 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_document_categories_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_document_categories_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_scheduled_interviews_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_candidate_custom_field_definitions_queryparam_filter.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_queryparam_filter.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_queryparam_filter.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_departments_queryparam_filter.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_queryparam_filter.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_queryparam_filter.rb +3 -3
- 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_queryparam_filter.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_queryparam_filter.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_jobs_queryparam_filter.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_lists_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_accounts_queryparam_filter.rb +2 -2
- 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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +2 -2
- data/lib/stack_one/models/operations/filter.rb +3 -3
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_benefits_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_companies_groups_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_companies_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_companies_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_division_groups_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_division_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_categories_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_tasks_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_tasks_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_balances_queryparam_filter.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_policies_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_policies_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_positions_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_positions_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_shifts_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_shifts_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_tasks_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_tasks_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_team_groups_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_team_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_entries_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_list_groups_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_policies_queryparam_filter.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_queryparam_filter.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_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_assignments_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_assignments_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_categories_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_content_blocks_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.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_queryparam_filter.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_sms_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/queryparam_filter.rb +28 -20
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb +23 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb +20 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb +23 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb +20 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_request.rb +49 -0
- data/lib/stack_one/models/operations/stackone_list_platform_logs_response.rb +49 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_queryparam_filter.rb +81 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_request.rb +2 -2
- data/lib/stack_one/models/operations.rb +7 -0
- data/lib/stack_one/models/shared/assignment.rb +4 -4
- data/lib/stack_one/models/shared/authormodel.rb +37 -0
- data/lib/stack_one/models/shared/completion.rb +4 -4
- data/lib/stack_one/models/shared/course.rb +8 -4
- data/lib/stack_one/models/shared/employee.rb +2 -2
- data/lib/stack_one/models/shared/employment.rb +2 -2
- data/lib/stack_one/models/shared/employment_2.rb +20 -0
- data/lib/stack_one/models/shared/employment_active.rb +28 -0
- data/lib/stack_one/models/shared/entityskills.rb +2 -2
- data/lib/stack_one/models/shared/entityskills_2.rb +20 -0
- data/lib/stack_one/models/shared/entityskills_active.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +2 -2
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto.rb +2 -2
- data/lib/stack_one/models/shared/is_paid.rb +28 -0
- data/lib/stack_one/models/shared/lmscreateassignmentrequestdto.rb +3 -3
- data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +6 -2
- data/lib/stack_one/models/shared/platformlog.rb +113 -0
- data/lib/stack_one/models/shared/platformlogspaginated.rb +37 -0
- data/lib/stack_one/models/shared/shiftbreak.rb +2 -2
- data/lib/stack_one/models/shared/shiftbreak_2.rb +20 -0
- data/lib/stack_one/models/shared/steplog.rb +6 -2
- data/lib/stack_one/models/shared/unifiedlogs.rb +6 -2
- data/lib/stack_one/models/shared/unifiedlogspartial.rb +6 -2
- data/lib/stack_one/models/shared.rb +9 -0
- data/lib/stack_one/request_logs.rb +259 -1
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +18 -2
@@ -0,0 +1,113 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class PlatformLog
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# The account ID of the request
|
17
|
+
field :account_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } }
|
18
|
+
# The requested action
|
19
|
+
field :action, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action') } }
|
20
|
+
# The requested category
|
21
|
+
field :category, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
|
22
|
+
# The requested child resource
|
23
|
+
field :child_resource, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('child_resource') } }
|
24
|
+
# The request duration in milliseconds
|
25
|
+
field :duration, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } }
|
26
|
+
# The request end time ISO8601 date string
|
27
|
+
field :end_time, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_time'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
28
|
+
# The event ISO8601 date string
|
29
|
+
field :event_datetime, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_datetime'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
30
|
+
# The requested HTTP method
|
31
|
+
field :http_method, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('http_method') } }
|
32
|
+
# The requested path
|
33
|
+
field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
|
34
|
+
# The project ID of the request
|
35
|
+
field :project_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } }
|
36
|
+
# The request ID
|
37
|
+
field :request_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('request_id') } }
|
38
|
+
# The requested resource
|
39
|
+
field :resource, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resource') } }
|
40
|
+
# The requests source ID
|
41
|
+
field :source_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } }
|
42
|
+
# The requests source IPV4 ip address
|
43
|
+
field :source_ip, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } }
|
44
|
+
# The requests source type
|
45
|
+
field :source_type, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } }
|
46
|
+
# The requests source value
|
47
|
+
field :source_value, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
48
|
+
# The request start time ISO8601 date string
|
49
|
+
field :start_time, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
50
|
+
# The requests response status code
|
51
|
+
field :status, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
52
|
+
# The requested sub resource
|
53
|
+
field :sub_resource, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sub_resource') } }
|
54
|
+
# The request success flag
|
55
|
+
field :success, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('success') } }
|
56
|
+
# The requested URL
|
57
|
+
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
58
|
+
|
59
|
+
|
60
|
+
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), category: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), path: T.nilable(::String), project_id: T.nilable(::String), request_id: T.nilable(::String), resource: T.nilable(::String), source_id: T.nilable(::String), source_ip: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
61
|
+
def initialize(account_id: nil, action: nil, category: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, path: nil, project_id: nil, request_id: nil, resource: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil)
|
62
|
+
@account_id = account_id
|
63
|
+
@action = action
|
64
|
+
@category = category
|
65
|
+
@child_resource = child_resource
|
66
|
+
@duration = duration
|
67
|
+
@end_time = end_time
|
68
|
+
@event_datetime = event_datetime
|
69
|
+
@http_method = http_method
|
70
|
+
@path = path
|
71
|
+
@project_id = project_id
|
72
|
+
@request_id = request_id
|
73
|
+
@resource = resource
|
74
|
+
@source_id = source_id
|
75
|
+
@source_ip = source_ip
|
76
|
+
@source_type = source_type
|
77
|
+
@source_value = source_value
|
78
|
+
@start_time = start_time
|
79
|
+
@status = status
|
80
|
+
@sub_resource = sub_resource
|
81
|
+
@success = success
|
82
|
+
@url = url
|
83
|
+
end
|
84
|
+
|
85
|
+
def ==(other)
|
86
|
+
return false unless other.is_a? self.class
|
87
|
+
return false unless @account_id == other.account_id
|
88
|
+
return false unless @action == other.action
|
89
|
+
return false unless @category == other.category
|
90
|
+
return false unless @child_resource == other.child_resource
|
91
|
+
return false unless @duration == other.duration
|
92
|
+
return false unless @end_time == other.end_time
|
93
|
+
return false unless @event_datetime == other.event_datetime
|
94
|
+
return false unless @http_method == other.http_method
|
95
|
+
return false unless @path == other.path
|
96
|
+
return false unless @project_id == other.project_id
|
97
|
+
return false unless @request_id == other.request_id
|
98
|
+
return false unless @resource == other.resource
|
99
|
+
return false unless @source_id == other.source_id
|
100
|
+
return false unless @source_ip == other.source_ip
|
101
|
+
return false unless @source_type == other.source_type
|
102
|
+
return false unless @source_value == other.source_value
|
103
|
+
return false unless @start_time == other.start_time
|
104
|
+
return false unless @status == other.status
|
105
|
+
return false unless @sub_resource == other.sub_resource
|
106
|
+
return false unless @success == other.success
|
107
|
+
return false unless @url == other.url
|
108
|
+
true
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class PlatformLogsPaginated
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
|
17
|
+
field :data, T::Array[Models::Shared::PlatformLog], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
18
|
+
|
19
|
+
field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(data: T::Array[Models::Shared::PlatformLog], next_: T.nilable(::String)).void }
|
23
|
+
def initialize(data: nil, next_: nil)
|
24
|
+
@data = data
|
25
|
+
@next_ = next_
|
26
|
+
end
|
27
|
+
|
28
|
+
def ==(other)
|
29
|
+
return false unless other.is_a? self.class
|
30
|
+
return false unless @data == other.data
|
31
|
+
return false unless @next_ == other.next_
|
32
|
+
true
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -22,14 +22,14 @@ module StackOne
|
|
22
22
|
# The unique identifier of the break
|
23
23
|
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
24
24
|
# Whether the break is paid
|
25
|
-
field :is_paid, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('is_paid') } }
|
25
|
+
field :is_paid, T.nilable(T.any(T::Boolean, Models::Shared::ShiftBreak2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('is_paid') } }
|
26
26
|
# The start time of the break
|
27
27
|
field :start_time, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
28
28
|
# The date and time the break was last updated
|
29
29
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
30
30
|
|
31
31
|
|
32
|
-
sig { params(created_at: T.nilable(::DateTime), duration: T.nilable(::String), end_time: T.nilable(::DateTime), id: T.nilable(::String), is_paid: T.nilable(T::Boolean), start_time: T.nilable(::DateTime), updated_at: T.nilable(::DateTime)).void }
|
32
|
+
sig { params(created_at: T.nilable(::DateTime), duration: T.nilable(::String), end_time: T.nilable(::DateTime), id: T.nilable(::String), is_paid: T.nilable(T.any(T::Boolean, Models::Shared::ShiftBreak2)), start_time: T.nilable(::DateTime), updated_at: T.nilable(::DateTime)).void }
|
33
33
|
def initialize(created_at: nil, duration: nil, end_time: nil, id: nil, is_paid: nil, start_time: nil, updated_at: nil)
|
34
34
|
@created_at = created_at
|
35
35
|
@duration = duration
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class ShiftBreak2 < T::Enum
|
13
|
+
enums do
|
14
|
+
TRUE = new('true')
|
15
|
+
FALSE = new('false')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -45,6 +45,8 @@ module StackOne
|
|
45
45
|
field :response, T.nilable(Models::Shared::StepLogResponse), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('response') } }
|
46
46
|
# The requested service
|
47
47
|
field :service, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } }
|
48
|
+
# The requests source IPV4 ip address
|
49
|
+
field :source_ip, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } }
|
48
50
|
# The request start time ISO8601 date string
|
49
51
|
field :start_time, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
50
52
|
# The requests response status code
|
@@ -57,8 +59,8 @@ module StackOne
|
|
57
59
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
58
60
|
|
59
61
|
|
60
|
-
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), http_method: T.nilable(::String), id: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::Request), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::StepLogResponse), service: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
61
|
-
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, http_method: nil, id: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil)
|
62
|
+
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), http_method: T.nilable(::String), id: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::Request), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::StepLogResponse), service: T.nilable(::String), source_ip: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
63
|
+
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, http_method: nil, id: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, source_ip: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil)
|
62
64
|
@account_id = account_id
|
63
65
|
@action = action
|
64
66
|
@child_resource = child_resource
|
@@ -75,6 +77,7 @@ module StackOne
|
|
75
77
|
@resource = resource
|
76
78
|
@response = response
|
77
79
|
@service = service
|
80
|
+
@source_ip = source_ip
|
78
81
|
@start_time = start_time
|
79
82
|
@status = status
|
80
83
|
@sub_resource = sub_resource
|
@@ -100,6 +103,7 @@ module StackOne
|
|
100
103
|
return false unless @resource == other.resource
|
101
104
|
return false unless @response == other.response
|
102
105
|
return false unless @service == other.service
|
106
|
+
return false unless @source_ip == other.source_ip
|
103
107
|
return false unless @start_time == other.start_time
|
104
108
|
return false unless @status == other.status
|
105
109
|
return false unless @sub_resource == other.sub_resource
|
@@ -47,6 +47,8 @@ module StackOne
|
|
47
47
|
field :service, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } }
|
48
48
|
# The requests source ID
|
49
49
|
field :source_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } }
|
50
|
+
# The requests source IPV4 ip address
|
51
|
+
field :source_ip, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } }
|
50
52
|
# The requests source type
|
51
53
|
field :source_type, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } }
|
52
54
|
# The requests source value
|
@@ -65,8 +67,8 @@ module StackOne
|
|
65
67
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
66
68
|
|
67
69
|
|
68
|
-
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::UnifiedLogsRequest), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::UnifiedLogsResponse), service: T.nilable(::String), source_id: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLog]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
69
|
-
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil)
|
70
|
+
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::UnifiedLogsRequest), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::UnifiedLogsResponse), service: T.nilable(::String), source_id: T.nilable(::String), source_ip: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLog]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
71
|
+
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil)
|
70
72
|
@account_id = account_id
|
71
73
|
@action = action
|
72
74
|
@child_resource = child_resource
|
@@ -84,6 +86,7 @@ module StackOne
|
|
84
86
|
@response = response
|
85
87
|
@service = service
|
86
88
|
@source_id = source_id
|
89
|
+
@source_ip = source_ip
|
87
90
|
@source_type = source_type
|
88
91
|
@source_value = source_value
|
89
92
|
@start_time = start_time
|
@@ -113,6 +116,7 @@ module StackOne
|
|
113
116
|
return false unless @response == other.response
|
114
117
|
return false unless @service == other.service
|
115
118
|
return false unless @source_id == other.source_id
|
119
|
+
return false unless @source_ip == other.source_ip
|
116
120
|
return false unless @source_type == other.source_type
|
117
121
|
return false unless @source_value == other.source_value
|
118
122
|
return false unless @start_time == other.start_time
|
@@ -43,6 +43,8 @@ module StackOne
|
|
43
43
|
field :service, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } }
|
44
44
|
# The requests source ID
|
45
45
|
field :source_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } }
|
46
|
+
# The requests source IPV4 ip address
|
47
|
+
field :source_ip, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } }
|
46
48
|
# The requests source type
|
47
49
|
field :source_type, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } }
|
48
50
|
# The requests source value
|
@@ -61,8 +63,8 @@ module StackOne
|
|
61
63
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
62
64
|
|
63
65
|
|
64
|
-
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request_id: T.nilable(::String), resource: T.nilable(::String), service: T.nilable(::String), source_id: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLogPartial]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
65
|
-
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request_id: nil, resource: nil, service: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil)
|
66
|
+
sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request_id: T.nilable(::String), resource: T.nilable(::String), service: T.nilable(::String), source_id: T.nilable(::String), source_ip: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLogPartial]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
67
|
+
def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request_id: nil, resource: nil, service: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil)
|
66
68
|
@account_id = account_id
|
67
69
|
@action = action
|
68
70
|
@child_resource = child_resource
|
@@ -78,6 +80,7 @@ module StackOne
|
|
78
80
|
@resource = resource
|
79
81
|
@service = service
|
80
82
|
@source_id = source_id
|
83
|
+
@source_ip = source_ip
|
81
84
|
@source_type = source_type
|
82
85
|
@source_value = source_value
|
83
86
|
@start_time = start_time
|
@@ -105,6 +108,7 @@ module StackOne
|
|
105
108
|
return false unless @resource == other.resource
|
106
109
|
return false unless @service == other.service
|
107
110
|
return false unless @source_id == other.source_id
|
111
|
+
return false unless @source_ip == other.source_ip
|
108
112
|
return false unless @source_type == other.source_type
|
109
113
|
return false unless @source_value == other.source_value
|
110
114
|
return false unless @start_time == other.start_time
|
@@ -159,6 +159,7 @@ module StackOne
|
|
159
159
|
autoload :AttachmentContentType, 'stack_one/models/shared/attachment_content_type.rb'
|
160
160
|
autoload :AttachmentSourceValue, 'stack_one/models/shared/attachment_source_value.rb'
|
161
161
|
autoload :AttachmentValue, 'stack_one/models/shared/attachment_value.rb'
|
162
|
+
autoload :AuthorModel, 'stack_one/models/shared/authormodel.rb'
|
162
163
|
autoload :BackgroundCheckPackage, 'stack_one/models/shared/backgroundcheckpackage.rb'
|
163
164
|
autoload :BackgroundCheckPackagePaginated, 'stack_one/models/shared/backgroundcheckpackagepaginated.rb'
|
164
165
|
autoload :BackgroundCheckPackageResult, 'stack_one/models/shared/backgroundcheckpackageresult.rb'
|
@@ -405,6 +406,7 @@ module StackOne
|
|
405
406
|
autoload :EmploymentManagerApiModelSourceValue, 'stack_one/models/shared/employmentmanagerapimodel_source_value.rb'
|
406
407
|
autoload :EmploymentManagerApiModelValue, 'stack_one/models/shared/employmentmanagerapimodel_value.rb'
|
407
408
|
autoload :EmploymentResult, 'stack_one/models/shared/employmentresult.rb'
|
409
|
+
autoload :Employment2, 'stack_one/models/shared/employment_2.rb'
|
408
410
|
autoload :Employment4, 'stack_one/models/shared/employment_4.rb'
|
409
411
|
autoload :EmploymentSchemas4, 'stack_one/models/shared/employment_schemas_4.rb'
|
410
412
|
autoload :EmploymentSchemasContractType, 'stack_one/models/shared/employment_schemas_contract_type.rb'
|
@@ -439,6 +441,7 @@ module StackOne
|
|
439
441
|
autoload :EmploymentSchemasWorkTime4, 'stack_one/models/shared/employment_schemas_work_time_4.rb'
|
440
442
|
autoload :EmploymentSchemasWorkTimeSourceValue, 'stack_one/models/shared/employment_schemas_work_time_source_value.rb'
|
441
443
|
autoload :EmploymentSchemasWorkTimeValue, 'stack_one/models/shared/employment_schemas_work_time_value.rb'
|
444
|
+
autoload :EmploymentActive, 'stack_one/models/shared/employment_active.rb'
|
442
445
|
autoload :EmploymentDepartment, 'stack_one/models/shared/employment_department.rb'
|
443
446
|
autoload :EmploymentDurationUnit, 'stack_one/models/shared/employment_duration_unit.rb'
|
444
447
|
autoload :EmploymentEmploymentContractType, 'stack_one/models/shared/employment_employment_contract_type.rb'
|
@@ -463,6 +466,7 @@ module StackOne
|
|
463
466
|
autoload :EntitySkillsCreateRequestDtoSourceValue, 'stack_one/models/shared/entityskillscreaterequestdto_source_value.rb'
|
464
467
|
autoload :EntitySkillsCreateRequestDtoValue, 'stack_one/models/shared/entityskillscreaterequestdto_value.rb'
|
465
468
|
autoload :EntitySkillsPaginated, 'stack_one/models/shared/entityskillspaginated.rb'
|
469
|
+
autoload :EntitySkills2, 'stack_one/models/shared/entityskills_2.rb'
|
466
470
|
autoload :EntitySkills4, 'stack_one/models/shared/entityskills_4.rb'
|
467
471
|
autoload :EntitySkillsSchemas4, 'stack_one/models/shared/entityskills_schemas_4.rb'
|
468
472
|
autoload :EntitySkillsSchemasMinimumProficiency4, 'stack_one/models/shared/entityskills_schemas_minimum_proficiency_4.rb'
|
@@ -470,6 +474,7 @@ module StackOne
|
|
470
474
|
autoload :EntitySkillsSchemasMinimumProficiencyValue, 'stack_one/models/shared/entityskills_schemas_minimum_proficiency_value.rb'
|
471
475
|
autoload :EntitySkillsSchemasSourceValue, 'stack_one/models/shared/entityskills_schemas_source_value.rb'
|
472
476
|
autoload :EntitySkillsSchemasValue, 'stack_one/models/shared/entityskills_schemas_value.rb'
|
477
|
+
autoload :EntitySkillsActive, 'stack_one/models/shared/entityskills_active.rb'
|
473
478
|
autoload :EntitySkillsLanguage, 'stack_one/models/shared/entityskills_language.rb'
|
474
479
|
autoload :EntitySkillsSourceValue, 'stack_one/models/shared/entityskills_source_value.rb'
|
475
480
|
autoload :EntitySkillsValue, 'stack_one/models/shared/entityskills_value.rb'
|
@@ -1038,6 +1043,8 @@ module StackOne
|
|
1038
1043
|
autoload :PatchAccountExternalDtoType, 'stack_one/models/shared/patchaccountexternaldto_type.rb'
|
1039
1044
|
autoload :PhoneNumber, 'stack_one/models/shared/phonenumber.rb'
|
1040
1045
|
autoload :PhoneNumberType, 'stack_one/models/shared/phonenumber_type.rb'
|
1046
|
+
autoload :PlatformLog, 'stack_one/models/shared/platformlog.rb'
|
1047
|
+
autoload :PlatformLogsPaginated, 'stack_one/models/shared/platformlogspaginated.rb'
|
1041
1048
|
autoload :Position, 'stack_one/models/shared/position.rb'
|
1042
1049
|
autoload :PositionResult, 'stack_one/models/shared/positionresult.rb'
|
1043
1050
|
autoload :Position4, 'stack_one/models/shared/position_4.rb'
|
@@ -1102,6 +1109,7 @@ module StackOne
|
|
1102
1109
|
autoload :ScorecardsResult, 'stack_one/models/shared/scorecardsresult.rb'
|
1103
1110
|
autoload :Security, 'stack_one/models/shared/security.rb'
|
1104
1111
|
autoload :ShiftBreak, 'stack_one/models/shared/shiftbreak.rb'
|
1112
|
+
autoload :ShiftBreak2, 'stack_one/models/shared/shiftbreak_2.rb'
|
1105
1113
|
autoload :SkillResult, 'stack_one/models/shared/skillresult.rb'
|
1106
1114
|
autoload :Skills, 'stack_one/models/shared/skills.rb'
|
1107
1115
|
autoload :SkillsPaginated, 'stack_one/models/shared/skillspaginated.rb'
|
@@ -1291,6 +1299,7 @@ module StackOne
|
|
1291
1299
|
autoload :Internal, 'stack_one/models/shared/internal.rb'
|
1292
1300
|
autoload :InterviewStatus, 'stack_one/models/shared/interview_status.rb'
|
1293
1301
|
autoload :IsBotUser, 'stack_one/models/shared/is_bot_user.rb'
|
1302
|
+
autoload :IsPaid, 'stack_one/models/shared/is_paid.rb'
|
1294
1303
|
autoload :IssuedBy, 'stack_one/models/shared/issued_by.rb'
|
1295
1304
|
autoload :JobDescription, 'stack_one/models/shared/job_description.rb'
|
1296
1305
|
autoload :JobStatus, 'stack_one/models/shared/job_status.rb'
|
@@ -24,7 +24,7 @@ module StackOne
|
|
24
24
|
|
25
25
|
sig { params(id: ::String, include: T.nilable(Models::Operations::Include), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneGetLogResponse) }
|
26
26
|
def get_log(id, include = nil, retries = nil, timeout_ms = nil)
|
27
|
-
# get_log - Get
|
27
|
+
# get_log - Get Log
|
28
28
|
request = Models::Operations::StackoneGetLogRequest.new(
|
29
29
|
|
30
30
|
id: id,
|
@@ -548,6 +548,264 @@ module StackOne
|
|
548
548
|
end
|
549
549
|
|
550
550
|
|
551
|
+
sig { params(request: T.nilable(Models::Operations::StackoneListPlatformLogsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneListPlatformLogsResponse) }
|
552
|
+
def list_platform_logs(request, retries = nil, timeout_ms = nil)
|
553
|
+
# list_platform_logs - List Platform Logs
|
554
|
+
url, params = @sdk_configuration.get_server_details
|
555
|
+
base_url = Utils.template_url(url, params)
|
556
|
+
url = "#{base_url}/requests/platform-logs"
|
557
|
+
headers = {}
|
558
|
+
query_params = Utils.get_query_params(Models::Operations::StackoneListPlatformLogsRequest, request)
|
559
|
+
headers['Accept'] = 'application/json'
|
560
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
561
|
+
retries ||= @sdk_configuration.retry_config
|
562
|
+
retries ||= Utils::RetryConfig.new(
|
563
|
+
backoff: Utils::BackoffStrategy.new(
|
564
|
+
exponent: 1.5,
|
565
|
+
initial_interval: 500,
|
566
|
+
max_elapsed_time: 3_600_000,
|
567
|
+
max_interval: 60_000
|
568
|
+
),
|
569
|
+
retry_connection_errors: true,
|
570
|
+
strategy: 'backoff'
|
571
|
+
)
|
572
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
573
|
+
retry_options[:retry_statuses] = [429, 408]
|
574
|
+
|
575
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
576
|
+
|
577
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
578
|
+
timeout ||= @sdk_configuration.timeout
|
579
|
+
|
580
|
+
connection = @sdk_configuration.client.dup
|
581
|
+
connection.request :retry, retry_options
|
582
|
+
|
583
|
+
hook_ctx = SDKHooks::HookContext.new(
|
584
|
+
base_url: base_url,
|
585
|
+
oauth2_scopes: [],
|
586
|
+
operation_id: 'stackone_list_platform_logs',
|
587
|
+
security_source: @sdk_configuration.security_source
|
588
|
+
)
|
589
|
+
|
590
|
+
error = T.let(nil, T.nilable(StandardError))
|
591
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
592
|
+
|
593
|
+
|
594
|
+
begin
|
595
|
+
http_response = connection.get(url) do |req|
|
596
|
+
req.headers.merge!(headers)
|
597
|
+
req.options.timeout = timeout unless timeout.nil?
|
598
|
+
req.params = query_params
|
599
|
+
Utils.configure_request_security(req, security)
|
600
|
+
|
601
|
+
@sdk_configuration.hooks.before_request(
|
602
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
603
|
+
hook_ctx: hook_ctx
|
604
|
+
),
|
605
|
+
request: req
|
606
|
+
)
|
607
|
+
end
|
608
|
+
rescue StandardError => e
|
609
|
+
error = e
|
610
|
+
ensure
|
611
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
612
|
+
http_response = @sdk_configuration.hooks.after_error(
|
613
|
+
error: error,
|
614
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
615
|
+
hook_ctx: hook_ctx
|
616
|
+
),
|
617
|
+
response: http_response
|
618
|
+
)
|
619
|
+
else
|
620
|
+
http_response = @sdk_configuration.hooks.after_success(
|
621
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
622
|
+
hook_ctx: hook_ctx
|
623
|
+
),
|
624
|
+
response: http_response
|
625
|
+
)
|
626
|
+
end
|
627
|
+
|
628
|
+
if http_response.nil?
|
629
|
+
raise error if !error.nil?
|
630
|
+
raise 'no response'
|
631
|
+
end
|
632
|
+
end
|
633
|
+
|
634
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
635
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
636
|
+
if Utils.match_content_type(content_type, 'application/json')
|
637
|
+
http_response = @sdk_configuration.hooks.after_success(
|
638
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
639
|
+
hook_ctx: hook_ctx
|
640
|
+
),
|
641
|
+
response: http_response
|
642
|
+
)
|
643
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::PlatformLogsPaginated)
|
644
|
+
response = Models::Operations::StackoneListPlatformLogsResponse.new(
|
645
|
+
status_code: http_response.status,
|
646
|
+
content_type: content_type,
|
647
|
+
raw_response: http_response,
|
648
|
+
platform_logs_paginated: obj
|
649
|
+
)
|
650
|
+
|
651
|
+
return response
|
652
|
+
else
|
653
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
654
|
+
end
|
655
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
656
|
+
if Utils.match_content_type(content_type, 'application/json')
|
657
|
+
http_response = @sdk_configuration.hooks.after_success(
|
658
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
659
|
+
hook_ctx: hook_ctx
|
660
|
+
),
|
661
|
+
response: http_response
|
662
|
+
)
|
663
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
664
|
+
throw obj
|
665
|
+
else
|
666
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
667
|
+
end
|
668
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
669
|
+
if Utils.match_content_type(content_type, 'application/json')
|
670
|
+
http_response = @sdk_configuration.hooks.after_success(
|
671
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
672
|
+
hook_ctx: hook_ctx
|
673
|
+
),
|
674
|
+
response: http_response
|
675
|
+
)
|
676
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
677
|
+
throw obj
|
678
|
+
else
|
679
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
680
|
+
end
|
681
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
682
|
+
if Utils.match_content_type(content_type, 'application/json')
|
683
|
+
http_response = @sdk_configuration.hooks.after_success(
|
684
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
685
|
+
hook_ctx: hook_ctx
|
686
|
+
),
|
687
|
+
response: http_response
|
688
|
+
)
|
689
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
690
|
+
throw obj
|
691
|
+
else
|
692
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
693
|
+
end
|
694
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
695
|
+
if Utils.match_content_type(content_type, 'application/json')
|
696
|
+
http_response = @sdk_configuration.hooks.after_success(
|
697
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
698
|
+
hook_ctx: hook_ctx
|
699
|
+
),
|
700
|
+
response: http_response
|
701
|
+
)
|
702
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
703
|
+
throw obj
|
704
|
+
else
|
705
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
706
|
+
end
|
707
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
708
|
+
if Utils.match_content_type(content_type, 'application/json')
|
709
|
+
http_response = @sdk_configuration.hooks.after_success(
|
710
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
711
|
+
hook_ctx: hook_ctx
|
712
|
+
),
|
713
|
+
response: http_response
|
714
|
+
)
|
715
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
716
|
+
throw obj
|
717
|
+
else
|
718
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
719
|
+
end
|
720
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
721
|
+
if Utils.match_content_type(content_type, 'application/json')
|
722
|
+
http_response = @sdk_configuration.hooks.after_success(
|
723
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
724
|
+
hook_ctx: hook_ctx
|
725
|
+
),
|
726
|
+
response: http_response
|
727
|
+
)
|
728
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
729
|
+
throw obj
|
730
|
+
else
|
731
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
732
|
+
end
|
733
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
734
|
+
if Utils.match_content_type(content_type, 'application/json')
|
735
|
+
http_response = @sdk_configuration.hooks.after_success(
|
736
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
737
|
+
hook_ctx: hook_ctx
|
738
|
+
),
|
739
|
+
response: http_response
|
740
|
+
)
|
741
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
742
|
+
throw obj
|
743
|
+
else
|
744
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
745
|
+
end
|
746
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
747
|
+
if Utils.match_content_type(content_type, 'application/json')
|
748
|
+
http_response = @sdk_configuration.hooks.after_success(
|
749
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
750
|
+
hook_ctx: hook_ctx
|
751
|
+
),
|
752
|
+
response: http_response
|
753
|
+
)
|
754
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
755
|
+
throw obj
|
756
|
+
else
|
757
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
758
|
+
end
|
759
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
760
|
+
if Utils.match_content_type(content_type, 'application/json')
|
761
|
+
http_response = @sdk_configuration.hooks.after_success(
|
762
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
763
|
+
hook_ctx: hook_ctx
|
764
|
+
),
|
765
|
+
response: http_response
|
766
|
+
)
|
767
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
768
|
+
throw obj
|
769
|
+
else
|
770
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
771
|
+
end
|
772
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
773
|
+
if Utils.match_content_type(content_type, 'application/json')
|
774
|
+
http_response = @sdk_configuration.hooks.after_success(
|
775
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
776
|
+
hook_ctx: hook_ctx
|
777
|
+
),
|
778
|
+
response: http_response
|
779
|
+
)
|
780
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
781
|
+
throw obj
|
782
|
+
else
|
783
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
784
|
+
end
|
785
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
786
|
+
if Utils.match_content_type(content_type, 'application/json')
|
787
|
+
http_response = @sdk_configuration.hooks.after_success(
|
788
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
789
|
+
hook_ctx: hook_ctx
|
790
|
+
),
|
791
|
+
response: http_response
|
792
|
+
)
|
793
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
794
|
+
throw obj
|
795
|
+
else
|
796
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
797
|
+
end
|
798
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
799
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
800
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
801
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
802
|
+
else
|
803
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
804
|
+
|
805
|
+
end
|
806
|
+
end
|
807
|
+
|
808
|
+
|
551
809
|
sig { params(request: T.nilable(Models::Operations::StackoneListStepLogsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneListStepLogsResponse) }
|
552
810
|
def list_step_logs(request, retries = nil, timeout_ms = nil)
|
553
811
|
# list_step_logs - List Step Logs
|