stackone_client 0.5.0 → 0.5.2

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/accounts.rb +10 -5
  3. data/lib/stack_one/ats.rb +321 -62
  4. data/lib/stack_one/connect_sessions.rb +4 -2
  5. data/lib/stack_one/connectors.rb +4 -2
  6. data/lib/stack_one/crm.rb +20 -10
  7. data/lib/stack_one/hris.rb +93 -46
  8. data/lib/stack_one/iam.rb +16 -8
  9. data/lib/stack_one/lms.rb +52 -26
  10. data/lib/stack_one/marketing.rb +52 -26
  11. data/lib/stack_one/models/operations/ats_create_application_note_request.rb +30 -0
  12. data/lib/stack_one/models/operations/ats_create_application_note_response.rb +36 -0
  13. data/lib/stack_one/models/operations/ats_get_application_note_request.rb +39 -0
  14. data/lib/stack_one/models/operations/ats_get_application_note_response.rb +36 -0
  15. data/lib/stack_one/models/operations/ats_list_application_notes_queryparam_filter.rb +24 -0
  16. data/lib/stack_one/models/operations/ats_list_application_notes_request.rb +60 -0
  17. data/lib/stack_one/models/operations/ats_list_application_notes_response.rb +36 -0
  18. data/lib/stack_one/models/operations/ats_list_applications_queryparam_filter.rb +5 -2
  19. data/lib/stack_one/models/operations/ats_list_candidates_queryparam_filter.rb +5 -2
  20. data/lib/stack_one/models/operations/ats_list_interviews_queryparam_filter.rb +6 -3
  21. data/lib/stack_one/models/operations/ats_list_interviews_request.rb +1 -1
  22. data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_filter.rb +6 -3
  23. data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +1 -1
  24. data/lib/stack_one/models/operations/ats_list_jobs_queryparam_filter.rb +10 -2
  25. data/lib/stack_one/models/operations/ats_update_application_note_request.rb +33 -0
  26. data/lib/stack_one/models/operations/ats_update_application_note_response.rb +36 -0
  27. data/lib/stack_one/models/operations/job_status.rb +18 -0
  28. data/lib/stack_one/models/operations/status.rb +2 -0
  29. data/lib/stack_one/models/operations.rb +10 -0
  30. data/lib/stack_one/models/shared/atsupdatenotesrequestdto.rb +33 -0
  31. data/lib/stack_one/models/shared/atsupdatenotesrequestdto_value.rb +18 -0
  32. data/lib/stack_one/models/shared/atsupdatenotesrequestdto_visibility.rb +27 -0
  33. data/lib/stack_one/models/shared/category.rb +5 -2
  34. data/lib/stack_one/models/shared/category_schemas_value.rb +19 -0
  35. data/lib/stack_one/models/shared/category_value.rb +411 -4
  36. data/lib/stack_one/models/shared/course.rb +5 -2
  37. data/lib/stack_one/models/shared/createcategoriesapimodel.rb +5 -2
  38. data/lib/stack_one/models/shared/createcategoriesapimodel_language.rb +27 -0
  39. data/lib/stack_one/models/shared/createcategoriesapimodel_level.rb +2 -2
  40. data/lib/stack_one/models/shared/createcategoriesapimodel_schemas_value.rb +19 -0
  41. data/lib/stack_one/models/shared/createcategoriesapimodel_value.rb +411 -4
  42. data/lib/stack_one/models/shared/language.rb +27 -0
  43. data/lib/stack_one/models/shared/level.rb +2 -2
  44. data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +5 -2
  45. data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +5 -2
  46. data/lib/stack_one/models/shared/unifiedwarningapimodel.rb +24 -0
  47. data/lib/stack_one/models/shared/writeresultapimodel.rb +5 -2
  48. data/lib/stack_one/models/shared.rb +16 -8
  49. data/lib/stack_one/proxy.rb +3 -1
  50. data/lib/stack_one/sdkconfiguration.rb +3 -3
  51. data/lib/stack_one/webhooks.rb +2 -1
  52. metadata +20 -2
@@ -65,9 +65,10 @@ module StackOne
65
65
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BatchResultApiModel)
66
66
  res.batch_result_api_model = out
67
67
  end
68
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
68
+ elsif [400, 403, 412, 429].include?(r.status)
69
69
  elsif r.status == 408
70
70
  res.headers = r.headers
71
+ elsif [500, 501].include?(r.status)
71
72
  end
72
73
 
73
74
  res
@@ -114,9 +115,10 @@ module StackOne
114
115
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
115
116
  res.create_result = out
116
117
  end
117
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
118
+ elsif [400, 403, 412, 429].include?(r.status)
118
119
  elsif r.status == 408
119
120
  res.headers = r.headers
121
+ elsif [500, 501].include?(r.status)
120
122
  end
121
123
 
122
124
  res
@@ -169,9 +171,10 @@ module StackOne
169
171
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentResult)
170
172
  res.employment_result = out
171
173
  end
172
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
174
+ elsif [400, 403, 412, 429].include?(r.status)
173
175
  elsif r.status == 408
174
176
  res.headers = r.headers
177
+ elsif [500, 501].include?(r.status)
175
178
  end
176
179
 
177
180
  res
@@ -224,9 +227,10 @@ module StackOne
224
227
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
225
228
  res.create_result = out
226
229
  end
227
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
230
+ elsif [400, 403, 412, 429].include?(r.status)
228
231
  elsif r.status == 408
229
232
  res.headers = r.headers
233
+ elsif [500, 501].include?(r.status)
230
234
  end
231
235
 
232
236
  res
@@ -279,9 +283,10 @@ module StackOne
279
283
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
280
284
  res.create_result = out
281
285
  end
282
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
286
+ elsif [400, 403, 412, 429].include?(r.status)
283
287
  elsif r.status == 408
284
288
  res.headers = r.headers
289
+ elsif [500, 501].include?(r.status)
285
290
  end
286
291
 
287
292
  res
@@ -328,9 +333,10 @@ module StackOne
328
333
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
329
334
  res.create_result = out
330
335
  end
331
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
336
+ elsif [400, 403, 412, 429].include?(r.status)
332
337
  elsif r.status == 408
333
338
  res.headers = r.headers
339
+ elsif [500, 501].include?(r.status)
334
340
  end
335
341
 
336
342
  res
@@ -373,9 +379,10 @@ module StackOne
373
379
  )
374
380
  if r.status == 200
375
381
  res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
376
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
382
+ elsif [400, 403, 412, 429].include?(r.status)
377
383
  elsif r.status == 408
378
384
  res.headers = r.headers
385
+ elsif [500, 501].include?(r.status)
379
386
  end
380
387
 
381
388
  res
@@ -414,9 +421,10 @@ module StackOne
414
421
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISBenefitResult)
415
422
  res.hris_benefit_result = out
416
423
  end
417
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
424
+ elsif [400, 403, 412, 429].include?(r.status)
418
425
  elsif r.status == 408
419
426
  res.headers = r.headers
427
+ elsif [500, 501].include?(r.status)
420
428
  end
421
429
 
422
430
  res
@@ -455,9 +463,10 @@ module StackOne
455
463
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompanyResult)
456
464
  res.company_result = out
457
465
  end
458
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
466
+ elsif [400, 403, 412, 429].include?(r.status)
459
467
  elsif r.status == 408
460
468
  res.headers = r.headers
469
+ elsif [500, 501].include?(r.status)
461
470
  end
462
471
 
463
472
  res
@@ -496,9 +505,10 @@ module StackOne
496
505
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISCostCenterResult)
497
506
  res.hris_cost_center_result = out
498
507
  end
499
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
508
+ elsif [400, 403, 412, 429].include?(r.status)
500
509
  elsif r.status == 408
501
510
  res.headers = r.headers
511
+ elsif [500, 501].include?(r.status)
502
512
  end
503
513
 
504
514
  res
@@ -537,9 +547,10 @@ module StackOne
537
547
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISDepartmentsResult)
538
548
  res.hris_departments_result = out
539
549
  end
540
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
550
+ elsif [400, 403, 412, 429].include?(r.status)
541
551
  elsif r.status == 408
542
552
  res.headers = r.headers
553
+ elsif [500, 501].include?(r.status)
543
554
  end
544
555
 
545
556
  res
@@ -578,9 +589,10 @@ module StackOne
578
589
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmployeeResult)
579
590
  res.employee_result = out
580
591
  end
581
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
592
+ elsif [400, 403, 412, 429].include?(r.status)
582
593
  elsif r.status == 408
583
594
  res.headers = r.headers
595
+ elsif [500, 501].include?(r.status)
584
596
  end
585
597
 
586
598
  res
@@ -619,9 +631,10 @@ module StackOne
619
631
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionResultApiModel)
620
632
  res.custom_field_definition_result_api_model = out
621
633
  end
622
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
634
+ elsif [400, 403, 412, 429].include?(r.status)
623
635
  elsif r.status == 408
624
636
  res.headers = r.headers
637
+ elsif [500, 501].include?(r.status)
625
638
  end
626
639
 
627
640
  res
@@ -660,9 +673,10 @@ module StackOne
660
673
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HrisDocumentResult)
661
674
  res.hris_document_result = out
662
675
  end
663
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
676
+ elsif [400, 403, 412, 429].include?(r.status)
664
677
  elsif r.status == 408
665
678
  res.headers = r.headers
679
+ elsif [500, 501].include?(r.status)
666
680
  end
667
681
 
668
682
  res
@@ -701,9 +715,10 @@ module StackOne
701
715
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferenceResult)
702
716
  res.reference_result = out
703
717
  end
704
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
718
+ elsif [400, 403, 412, 429].include?(r.status)
705
719
  elsif r.status == 408
706
720
  res.headers = r.headers
721
+ elsif [500, 501].include?(r.status)
707
722
  end
708
723
 
709
724
  res
@@ -742,9 +757,10 @@ module StackOne
742
757
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentResult)
743
758
  res.employment_result = out
744
759
  end
745
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
760
+ elsif [400, 403, 412, 429].include?(r.status)
746
761
  elsif r.status == 408
747
762
  res.headers = r.headers
763
+ elsif [500, 501].include?(r.status)
748
764
  end
749
765
 
750
766
  res
@@ -783,9 +799,10 @@ module StackOne
783
799
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TimeOffResult)
784
800
  res.time_off_result = out
785
801
  end
786
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
802
+ elsif [400, 403, 412, 429].include?(r.status)
787
803
  elsif r.status == 408
788
804
  res.headers = r.headers
805
+ elsif [500, 501].include?(r.status)
789
806
  end
790
807
 
791
808
  res
@@ -824,9 +841,10 @@ module StackOne
824
841
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WorkEligibilityResult)
825
842
  res.work_eligibility_result = out
826
843
  end
827
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
844
+ elsif [400, 403, 412, 429].include?(r.status)
828
845
  elsif r.status == 408
829
846
  res.headers = r.headers
847
+ elsif [500, 501].include?(r.status)
830
848
  end
831
849
 
832
850
  res
@@ -865,9 +883,10 @@ module StackOne
865
883
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentResult)
866
884
  res.employment_result = out
867
885
  end
868
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
886
+ elsif [400, 403, 412, 429].include?(r.status)
869
887
  elsif r.status == 408
870
888
  res.headers = r.headers
889
+ elsif [500, 501].include?(r.status)
871
890
  end
872
891
 
873
892
  res
@@ -906,9 +925,10 @@ module StackOne
906
925
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISGroupsResult)
907
926
  res.hris_groups_result = out
908
927
  end
909
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
928
+ elsif [400, 403, 412, 429].include?(r.status)
910
929
  elsif r.status == 408
911
930
  res.headers = r.headers
931
+ elsif [500, 501].include?(r.status)
912
932
  end
913
933
 
914
934
  res
@@ -947,9 +967,10 @@ module StackOne
947
967
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobResult)
948
968
  res.job_result = out
949
969
  end
950
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
970
+ elsif [400, 403, 412, 429].include?(r.status)
951
971
  elsif r.status == 408
952
972
  res.headers = r.headers
973
+ elsif [500, 501].include?(r.status)
953
974
  end
954
975
 
955
976
  res
@@ -988,9 +1009,10 @@ module StackOne
988
1009
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISLocationResult)
989
1010
  res.hris_location_result = out
990
1011
  end
991
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1012
+ elsif [400, 403, 412, 429].include?(r.status)
992
1013
  elsif r.status == 408
993
1014
  res.headers = r.headers
1015
+ elsif [500, 501].include?(r.status)
994
1016
  end
995
1017
 
996
1018
  res
@@ -1029,9 +1051,10 @@ module StackOne
1029
1051
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TimeOffResult)
1030
1052
  res.time_off_result = out
1031
1053
  end
1032
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1054
+ elsif [400, 403, 412, 429].include?(r.status)
1033
1055
  elsif r.status == 408
1034
1056
  res.headers = r.headers
1057
+ elsif [500, 501].include?(r.status)
1035
1058
  end
1036
1059
 
1037
1060
  res
@@ -1070,9 +1093,10 @@ module StackOne
1070
1093
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferenceResult)
1071
1094
  res.reference_result = out
1072
1095
  end
1073
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1096
+ elsif [400, 403, 412, 429].include?(r.status)
1074
1097
  elsif r.status == 408
1075
1098
  res.headers = r.headers
1099
+ elsif [500, 501].include?(r.status)
1076
1100
  end
1077
1101
 
1078
1102
  res
@@ -1106,9 +1130,10 @@ module StackOne
1106
1130
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISBenefitsPaginated)
1107
1131
  res.hris_benefits_paginated = out
1108
1132
  end
1109
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1133
+ elsif [400, 403, 412, 429].include?(r.status)
1110
1134
  elsif r.status == 408
1111
1135
  res.headers = r.headers
1136
+ elsif [500, 501].include?(r.status)
1112
1137
  end
1113
1138
 
1114
1139
  res
@@ -1142,9 +1167,10 @@ module StackOne
1142
1167
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompaniesPaginated)
1143
1168
  res.companies_paginated = out
1144
1169
  end
1145
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1170
+ elsif [400, 403, 412, 429].include?(r.status)
1146
1171
  elsif r.status == 408
1147
1172
  res.headers = r.headers
1173
+ elsif [500, 501].include?(r.status)
1148
1174
  end
1149
1175
 
1150
1176
  res
@@ -1178,9 +1204,10 @@ module StackOne
1178
1204
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISCostCenterPaginated)
1179
1205
  res.hris_cost_center_paginated = out
1180
1206
  end
1181
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1207
+ elsif [400, 403, 412, 429].include?(r.status)
1182
1208
  elsif r.status == 408
1183
1209
  res.headers = r.headers
1210
+ elsif [500, 501].include?(r.status)
1184
1211
  end
1185
1212
 
1186
1213
  res
@@ -1214,9 +1241,10 @@ module StackOne
1214
1241
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISDepartmentsPaginated)
1215
1242
  res.hris_departments_paginated = out
1216
1243
  end
1217
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1244
+ elsif [400, 403, 412, 429].include?(r.status)
1218
1245
  elsif r.status == 408
1219
1246
  res.headers = r.headers
1247
+ elsif [500, 501].include?(r.status)
1220
1248
  end
1221
1249
 
1222
1250
  res
@@ -1250,9 +1278,10 @@ module StackOne
1250
1278
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferencePaginated)
1251
1279
  res.reference_paginated = out
1252
1280
  end
1253
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1281
+ elsif [400, 403, 412, 429].include?(r.status)
1254
1282
  elsif r.status == 408
1255
1283
  res.headers = r.headers
1284
+ elsif [500, 501].include?(r.status)
1256
1285
  end
1257
1286
 
1258
1287
  res
@@ -1286,9 +1315,10 @@ module StackOne
1286
1315
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionsPaginated)
1287
1316
  res.custom_field_definitions_paginated = out
1288
1317
  end
1289
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1318
+ elsif [400, 403, 412, 429].include?(r.status)
1290
1319
  elsif r.status == 408
1291
1320
  res.headers = r.headers
1321
+ elsif [500, 501].include?(r.status)
1292
1322
  end
1293
1323
 
1294
1324
  res
@@ -1327,9 +1357,10 @@ module StackOne
1327
1357
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HrisDocumentsPaginated)
1328
1358
  res.hris_documents_paginated = out
1329
1359
  end
1330
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1360
+ elsif [400, 403, 412, 429].include?(r.status)
1331
1361
  elsif r.status == 408
1332
1362
  res.headers = r.headers
1363
+ elsif [500, 501].include?(r.status)
1333
1364
  end
1334
1365
 
1335
1366
  res
@@ -1368,9 +1399,10 @@ module StackOne
1368
1399
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentsPaginated)
1369
1400
  res.employments_paginated = out
1370
1401
  end
1371
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1402
+ elsif [400, 403, 412, 429].include?(r.status)
1372
1403
  elsif r.status == 408
1373
1404
  res.headers = r.headers
1405
+ elsif [500, 501].include?(r.status)
1374
1406
  end
1375
1407
 
1376
1408
  res
@@ -1409,9 +1441,10 @@ module StackOne
1409
1441
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TimeOffPaginated)
1410
1442
  res.time_off_paginated = out
1411
1443
  end
1412
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1444
+ elsif [400, 403, 412, 429].include?(r.status)
1413
1445
  elsif r.status == 408
1414
1446
  res.headers = r.headers
1447
+ elsif [500, 501].include?(r.status)
1415
1448
  end
1416
1449
 
1417
1450
  res
@@ -1450,9 +1483,10 @@ module StackOne
1450
1483
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WorkEligibilityPaginated)
1451
1484
  res.work_eligibility_paginated = out
1452
1485
  end
1453
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1486
+ elsif [400, 403, 412, 429].include?(r.status)
1454
1487
  elsif r.status == 408
1455
1488
  res.headers = r.headers
1489
+ elsif [500, 501].include?(r.status)
1456
1490
  end
1457
1491
 
1458
1492
  res
@@ -1486,9 +1520,10 @@ module StackOne
1486
1520
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmployeesPaginated)
1487
1521
  res.employees_paginated = out
1488
1522
  end
1489
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1523
+ elsif [400, 403, 412, 429].include?(r.status)
1490
1524
  elsif r.status == 408
1491
1525
  res.headers = r.headers
1526
+ elsif [500, 501].include?(r.status)
1492
1527
  end
1493
1528
 
1494
1529
  res
@@ -1522,9 +1557,10 @@ module StackOne
1522
1557
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentsPaginated)
1523
1558
  res.employments_paginated = out
1524
1559
  end
1525
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1560
+ elsif [400, 403, 412, 429].include?(r.status)
1526
1561
  elsif r.status == 408
1527
1562
  res.headers = r.headers
1563
+ elsif [500, 501].include?(r.status)
1528
1564
  end
1529
1565
 
1530
1566
  res
@@ -1558,9 +1594,10 @@ module StackOne
1558
1594
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISGroupsPaginated)
1559
1595
  res.hris_groups_paginated = out
1560
1596
  end
1561
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1597
+ elsif [400, 403, 412, 429].include?(r.status)
1562
1598
  elsif r.status == 408
1563
1599
  res.headers = r.headers
1600
+ elsif [500, 501].include?(r.status)
1564
1601
  end
1565
1602
 
1566
1603
  res
@@ -1594,9 +1631,10 @@ module StackOne
1594
1631
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobsPaginated)
1595
1632
  res.jobs_paginated = out
1596
1633
  end
1597
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1634
+ elsif [400, 403, 412, 429].include?(r.status)
1598
1635
  elsif r.status == 408
1599
1636
  res.headers = r.headers
1637
+ elsif [500, 501].include?(r.status)
1600
1638
  end
1601
1639
 
1602
1640
  res
@@ -1630,9 +1668,10 @@ module StackOne
1630
1668
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISLocationsPaginated)
1631
1669
  res.hris_locations_paginated = out
1632
1670
  end
1633
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1671
+ elsif [400, 403, 412, 429].include?(r.status)
1634
1672
  elsif r.status == 408
1635
1673
  res.headers = r.headers
1674
+ elsif [500, 501].include?(r.status)
1636
1675
  end
1637
1676
 
1638
1677
  res
@@ -1666,9 +1705,10 @@ module StackOne
1666
1705
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TimeOffPaginated)
1667
1706
  res.time_off_paginated = out
1668
1707
  end
1669
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1708
+ elsif [400, 403, 412, 429].include?(r.status)
1670
1709
  elsif r.status == 408
1671
1710
  res.headers = r.headers
1711
+ elsif [500, 501].include?(r.status)
1672
1712
  end
1673
1713
 
1674
1714
  res
@@ -1702,9 +1742,10 @@ module StackOne
1702
1742
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferencePaginated)
1703
1743
  res.reference_paginated = out
1704
1744
  end
1705
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1745
+ elsif [400, 403, 412, 429].include?(r.status)
1706
1746
  elsif r.status == 408
1707
1747
  res.headers = r.headers
1748
+ elsif [500, 501].include?(r.status)
1708
1749
  end
1709
1750
 
1710
1751
  res
@@ -1757,9 +1798,10 @@ module StackOne
1757
1798
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpdateEmployeeApiModel)
1758
1799
  res.update_employee_api_model = out
1759
1800
  end
1760
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1801
+ elsif [400, 403, 412, 429].include?(r.status)
1761
1802
  elsif r.status == 408
1762
1803
  res.headers = r.headers
1804
+ elsif [500, 501].include?(r.status)
1763
1805
  end
1764
1806
 
1765
1807
  res
@@ -1813,9 +1855,10 @@ module StackOne
1813
1855
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentResult)
1814
1856
  res.employment_result = out
1815
1857
  end
1816
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1858
+ elsif [400, 403, 412, 429].include?(r.status)
1817
1859
  elsif r.status == 408
1818
1860
  res.headers = r.headers
1861
+ elsif [500, 501].include?(r.status)
1819
1862
  end
1820
1863
 
1821
1864
  res
@@ -1864,9 +1907,11 @@ module StackOne
1864
1907
  res = ::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestResponse.new(
1865
1908
  status_code: r.status, content_type: content_type, raw_response: r
1866
1909
  )
1867
- if [200, 400, 403, 412, 429, 500, 501].include?(r.status)
1910
+ if r.status == 200
1911
+ elsif [400, 403, 412, 429].include?(r.status)
1868
1912
  elsif r.status == 408
1869
1913
  res.headers = r.headers
1914
+ elsif [500, 501].include?(r.status)
1870
1915
  end
1871
1916
 
1872
1917
  res
@@ -1919,9 +1964,10 @@ module StackOne
1919
1964
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
1920
1965
  res.create_result = out
1921
1966
  end
1922
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1967
+ elsif [400, 403, 412, 429].include?(r.status)
1923
1968
  elsif r.status == 408
1924
1969
  res.headers = r.headers
1970
+ elsif [500, 501].include?(r.status)
1925
1971
  end
1926
1972
 
1927
1973
  res
@@ -1974,9 +2020,10 @@ module StackOne
1974
2020
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WriteResultApiModel)
1975
2021
  res.write_result_api_model = out
1976
2022
  end
1977
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
2023
+ elsif [400, 403, 412, 429].include?(r.status)
1978
2024
  elsif r.status == 408
1979
2025
  res.headers = r.headers
2026
+ elsif [500, 501].include?(r.status)
1980
2027
  end
1981
2028
 
1982
2029
  res
data/lib/stack_one/iam.rb CHANGED
@@ -51,9 +51,10 @@ module StackOne
51
51
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::IamGroupResult)
52
52
  res.iam_group_result = out
53
53
  end
54
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
54
+ elsif [400, 403, 412, 429].include?(r.status)
55
55
  elsif r.status == 408
56
56
  res.headers = r.headers
57
+ elsif [500, 501].include?(r.status)
57
58
  end
58
59
 
59
60
  res
@@ -92,9 +93,10 @@ module StackOne
92
93
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::IamPolicyResult)
93
94
  res.iam_policy_result = out
94
95
  end
95
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
96
+ elsif [400, 403, 412, 429].include?(r.status)
96
97
  elsif r.status == 408
97
98
  res.headers = r.headers
99
+ elsif [500, 501].include?(r.status)
98
100
  end
99
101
 
100
102
  res
@@ -133,9 +135,10 @@ module StackOne
133
135
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::IamRoleResult)
134
136
  res.iam_role_result = out
135
137
  end
136
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
138
+ elsif [400, 403, 412, 429].include?(r.status)
137
139
  elsif r.status == 408
138
140
  res.headers = r.headers
141
+ elsif [500, 501].include?(r.status)
139
142
  end
140
143
 
141
144
  res
@@ -174,9 +177,10 @@ module StackOne
174
177
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::IamUserResult)
175
178
  res.iam_user_result = out
176
179
  end
177
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
180
+ elsif [400, 403, 412, 429].include?(r.status)
178
181
  elsif r.status == 408
179
182
  res.headers = r.headers
183
+ elsif [500, 501].include?(r.status)
180
184
  end
181
185
 
182
186
  res
@@ -210,9 +214,10 @@ module StackOne
210
214
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::IamGroupsPaginated)
211
215
  res.iam_groups_paginated = out
212
216
  end
213
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
217
+ elsif [400, 403, 412, 429].include?(r.status)
214
218
  elsif r.status == 408
215
219
  res.headers = r.headers
220
+ elsif [500, 501].include?(r.status)
216
221
  end
217
222
 
218
223
  res
@@ -246,9 +251,10 @@ module StackOne
246
251
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::IamPoliciesPaginated)
247
252
  res.iam_policies_paginated = out
248
253
  end
249
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
254
+ elsif [400, 403, 412, 429].include?(r.status)
250
255
  elsif r.status == 408
251
256
  res.headers = r.headers
257
+ elsif [500, 501].include?(r.status)
252
258
  end
253
259
 
254
260
  res
@@ -282,9 +288,10 @@ module StackOne
282
288
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::IamRolesPaginated)
283
289
  res.iam_roles_paginated = out
284
290
  end
285
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
291
+ elsif [400, 403, 412, 429].include?(r.status)
286
292
  elsif r.status == 408
287
293
  res.headers = r.headers
294
+ elsif [500, 501].include?(r.status)
288
295
  end
289
296
 
290
297
  res
@@ -318,9 +325,10 @@ module StackOne
318
325
  out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::IamUsersPaginated)
319
326
  res.iam_users_paginated = out
320
327
  end
321
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
328
+ elsif [400, 403, 412, 429].include?(r.status)
322
329
  elsif r.status == 408
323
330
  res.headers = r.headers
331
+ elsif [500, 501].include?(r.status)
324
332
  end
325
333
 
326
334
  res