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.
- checksums.yaml +4 -4
- data/lib/stack_one/accounts.rb +10 -5
- data/lib/stack_one/ats.rb +321 -62
- data/lib/stack_one/connect_sessions.rb +4 -2
- data/lib/stack_one/connectors.rb +4 -2
- data/lib/stack_one/crm.rb +20 -10
- data/lib/stack_one/hris.rb +93 -46
- data/lib/stack_one/iam.rb +16 -8
- data/lib/stack_one/lms.rb +52 -26
- data/lib/stack_one/marketing.rb +52 -26
- data/lib/stack_one/models/operations/ats_create_application_note_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_create_application_note_response.rb +36 -0
- data/lib/stack_one/models/operations/ats_get_application_note_request.rb +39 -0
- data/lib/stack_one/models/operations/ats_get_application_note_response.rb +36 -0
- data/lib/stack_one/models/operations/ats_list_application_notes_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/ats_list_application_notes_request.rb +60 -0
- data/lib/stack_one/models/operations/ats_list_application_notes_response.rb +36 -0
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_filter.rb +5 -2
- data/lib/stack_one/models/operations/ats_list_candidates_queryparam_filter.rb +5 -2
- data/lib/stack_one/models/operations/ats_list_interviews_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_jobs_queryparam_filter.rb +10 -2
- data/lib/stack_one/models/operations/ats_update_application_note_request.rb +33 -0
- data/lib/stack_one/models/operations/ats_update_application_note_response.rb +36 -0
- data/lib/stack_one/models/operations/job_status.rb +18 -0
- data/lib/stack_one/models/operations/status.rb +2 -0
- data/lib/stack_one/models/operations.rb +10 -0
- data/lib/stack_one/models/shared/atsupdatenotesrequestdto.rb +33 -0
- data/lib/stack_one/models/shared/atsupdatenotesrequestdto_value.rb +18 -0
- data/lib/stack_one/models/shared/atsupdatenotesrequestdto_visibility.rb +27 -0
- data/lib/stack_one/models/shared/category.rb +5 -2
- data/lib/stack_one/models/shared/category_schemas_value.rb +19 -0
- data/lib/stack_one/models/shared/category_value.rb +411 -4
- data/lib/stack_one/models/shared/course.rb +5 -2
- data/lib/stack_one/models/shared/createcategoriesapimodel.rb +5 -2
- data/lib/stack_one/models/shared/createcategoriesapimodel_language.rb +27 -0
- data/lib/stack_one/models/shared/createcategoriesapimodel_level.rb +2 -2
- data/lib/stack_one/models/shared/createcategoriesapimodel_schemas_value.rb +19 -0
- data/lib/stack_one/models/shared/createcategoriesapimodel_value.rb +411 -4
- data/lib/stack_one/models/shared/language.rb +27 -0
- data/lib/stack_one/models/shared/level.rb +2 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +5 -2
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +5 -2
- data/lib/stack_one/models/shared/unifiedwarningapimodel.rb +24 -0
- data/lib/stack_one/models/shared/writeresultapimodel.rb +5 -2
- data/lib/stack_one/models/shared.rb +16 -8
- data/lib/stack_one/proxy.rb +3 -1
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- data/lib/stack_one/webhooks.rb +2 -1
- metadata +20 -2
data/lib/stack_one/ats.rb
CHANGED
@@ -59,9 +59,66 @@ module StackOne
|
|
59
59
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
60
60
|
res.create_result = out
|
61
61
|
end
|
62
|
-
elsif [400, 403, 412, 429
|
62
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
63
63
|
elsif r.status == 408
|
64
64
|
res.headers = r.headers
|
65
|
+
elsif [500, 501].include?(r.status)
|
66
|
+
end
|
67
|
+
|
68
|
+
res
|
69
|
+
end
|
70
|
+
|
71
|
+
|
72
|
+
sig { params(ats_create_notes_request_dto: ::StackOne::Shared::AtsCreateNotesRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateApplicationNoteResponse) }
|
73
|
+
def create_application_note(ats_create_notes_request_dto, id, x_account_id)
|
74
|
+
# create_application_note - Create Application Note
|
75
|
+
request = ::StackOne::Operations::AtsCreateApplicationNoteRequest.new(
|
76
|
+
|
77
|
+
ats_create_notes_request_dto: ats_create_notes_request_dto,
|
78
|
+
id: id,
|
79
|
+
x_account_id: x_account_id
|
80
|
+
)
|
81
|
+
url, params = @sdk_configuration.get_server_details
|
82
|
+
base_url = Utils.template_url(url, params)
|
83
|
+
url = Utils.generate_url(
|
84
|
+
::StackOne::Operations::AtsCreateApplicationNoteRequest,
|
85
|
+
base_url,
|
86
|
+
'/unified/ats/applications/{id}/notes',
|
87
|
+
request
|
88
|
+
)
|
89
|
+
headers = Utils.get_headers(request)
|
90
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :ats_create_notes_request_dto, :json)
|
91
|
+
headers['content-type'] = req_content_type
|
92
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
93
|
+
headers['Accept'] = 'application/json'
|
94
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
95
|
+
|
96
|
+
r = @sdk_configuration.client.post(url) do |req|
|
97
|
+
req.headers = headers
|
98
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
99
|
+
if form
|
100
|
+
req.body = Utils.encode_form(form)
|
101
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
102
|
+
req.body = URI.encode_www_form(data)
|
103
|
+
else
|
104
|
+
req.body = data
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
109
|
+
|
110
|
+
res = ::StackOne::Operations::AtsCreateApplicationNoteResponse.new(
|
111
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
112
|
+
)
|
113
|
+
if r.status == 201
|
114
|
+
if Utils.match_content_type(content_type, 'application/json')
|
115
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
116
|
+
res.create_result = out
|
117
|
+
end
|
118
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
119
|
+
elsif r.status == 408
|
120
|
+
res.headers = r.headers
|
121
|
+
elsif [500, 501].include?(r.status)
|
65
122
|
end
|
66
123
|
|
67
124
|
res
|
@@ -108,9 +165,10 @@ module StackOne
|
|
108
165
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
109
166
|
res.create_result = out
|
110
167
|
end
|
111
|
-
elsif [400, 403, 412, 429
|
168
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
112
169
|
elsif r.status == 408
|
113
170
|
res.headers = r.headers
|
171
|
+
elsif [500, 501].include?(r.status)
|
114
172
|
end
|
115
173
|
|
116
174
|
res
|
@@ -157,9 +215,10 @@ module StackOne
|
|
157
215
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
158
216
|
res.create_result = out
|
159
217
|
end
|
160
|
-
elsif [400, 403, 412, 429
|
218
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
161
219
|
elsif r.status == 408
|
162
220
|
res.headers = r.headers
|
221
|
+
elsif [500, 501].include?(r.status)
|
163
222
|
end
|
164
223
|
|
165
224
|
res
|
@@ -212,9 +271,10 @@ module StackOne
|
|
212
271
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
213
272
|
res.create_result = out
|
214
273
|
end
|
215
|
-
elsif [400, 403, 412, 429
|
274
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
216
275
|
elsif r.status == 408
|
217
276
|
res.headers = r.headers
|
277
|
+
elsif [500, 501].include?(r.status)
|
218
278
|
end
|
219
279
|
|
220
280
|
res
|
@@ -261,9 +321,10 @@ module StackOne
|
|
261
321
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
262
322
|
res.create_result = out
|
263
323
|
end
|
264
|
-
elsif [400, 403, 412, 429
|
324
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
265
325
|
elsif r.status == 408
|
266
326
|
res.headers = r.headers
|
327
|
+
elsif [500, 501].include?(r.status)
|
267
328
|
end
|
268
329
|
|
269
330
|
res
|
@@ -310,9 +371,10 @@ module StackOne
|
|
310
371
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
311
372
|
res.create_result = out
|
312
373
|
end
|
313
|
-
elsif [400, 403, 412, 429
|
374
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
314
375
|
elsif r.status == 408
|
315
376
|
res.headers = r.headers
|
377
|
+
elsif [500, 501].include?(r.status)
|
316
378
|
end
|
317
379
|
|
318
380
|
res
|
@@ -355,9 +417,10 @@ module StackOne
|
|
355
417
|
)
|
356
418
|
if r.status == 200
|
357
419
|
res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
|
358
|
-
elsif [400, 403, 412, 429
|
420
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
359
421
|
elsif r.status == 408
|
360
422
|
res.headers = r.headers
|
423
|
+
elsif [500, 501].include?(r.status)
|
361
424
|
end
|
362
425
|
|
363
426
|
res
|
@@ -396,9 +459,10 @@ module StackOne
|
|
396
459
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ApplicationResult)
|
397
460
|
res.application_result = out
|
398
461
|
end
|
399
|
-
elsif [400, 403, 412, 429
|
462
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
400
463
|
elsif r.status == 408
|
401
464
|
res.headers = r.headers
|
465
|
+
elsif [500, 501].include?(r.status)
|
402
466
|
end
|
403
467
|
|
404
468
|
res
|
@@ -437,9 +501,10 @@ module StackOne
|
|
437
501
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionResultApiModel)
|
438
502
|
res.custom_field_definition_result_api_model = out
|
439
503
|
end
|
440
|
-
elsif [400, 403, 412, 429
|
504
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
441
505
|
elsif r.status == 408
|
442
506
|
res.headers = r.headers
|
507
|
+
elsif [500, 501].include?(r.status)
|
443
508
|
end
|
444
509
|
|
445
510
|
res
|
@@ -478,9 +543,52 @@ module StackOne
|
|
478
543
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AtsDocumentResult)
|
479
544
|
res.ats_document_result = out
|
480
545
|
end
|
481
|
-
elsif [400, 403, 412, 429
|
546
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
547
|
+
elsif r.status == 408
|
548
|
+
res.headers = r.headers
|
549
|
+
elsif [500, 501].include?(r.status)
|
550
|
+
end
|
551
|
+
|
552
|
+
res
|
553
|
+
end
|
554
|
+
|
555
|
+
|
556
|
+
sig { params(request: T.nilable(::StackOne::Operations::AtsGetApplicationNoteRequest)).returns(::StackOne::Operations::AtsGetApplicationNoteResponse) }
|
557
|
+
def get_application_note(request)
|
558
|
+
# get_application_note - Get Application Note
|
559
|
+
url, params = @sdk_configuration.get_server_details
|
560
|
+
base_url = Utils.template_url(url, params)
|
561
|
+
url = Utils.generate_url(
|
562
|
+
::StackOne::Operations::AtsGetApplicationNoteRequest,
|
563
|
+
base_url,
|
564
|
+
'/unified/ats/applications/{id}/notes/{subResourceId}',
|
565
|
+
request
|
566
|
+
)
|
567
|
+
headers = Utils.get_headers(request)
|
568
|
+
query_params = Utils.get_query_params(::StackOne::Operations::AtsGetApplicationNoteRequest, request)
|
569
|
+
headers['Accept'] = 'application/json'
|
570
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
571
|
+
|
572
|
+
r = @sdk_configuration.client.get(url) do |req|
|
573
|
+
req.headers = headers
|
574
|
+
req.params = query_params
|
575
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
576
|
+
end
|
577
|
+
|
578
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
579
|
+
|
580
|
+
res = ::StackOne::Operations::AtsGetApplicationNoteResponse.new(
|
581
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
582
|
+
)
|
583
|
+
if r.status == 200
|
584
|
+
if Utils.match_content_type(content_type, 'application/json')
|
585
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::NoteResult)
|
586
|
+
res.note_result = out
|
587
|
+
end
|
588
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
482
589
|
elsif r.status == 408
|
483
590
|
res.headers = r.headers
|
591
|
+
elsif [500, 501].include?(r.status)
|
484
592
|
end
|
485
593
|
|
486
594
|
res
|
@@ -519,9 +627,10 @@ module StackOne
|
|
519
627
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersResult)
|
520
628
|
res.offers_result = out
|
521
629
|
end
|
522
|
-
elsif [400, 403, 412, 429
|
630
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
523
631
|
elsif r.status == 408
|
524
632
|
res.headers = r.headers
|
633
|
+
elsif [500, 501].include?(r.status)
|
525
634
|
end
|
526
635
|
|
527
636
|
res
|
@@ -560,9 +669,10 @@ module StackOne
|
|
560
669
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ScheduledInterviewsResult)
|
561
670
|
res.scheduled_interviews_result = out
|
562
671
|
end
|
563
|
-
elsif [400, 403, 412, 429
|
672
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
564
673
|
elsif r.status == 408
|
565
674
|
res.headers = r.headers
|
675
|
+
elsif [500, 501].include?(r.status)
|
566
676
|
end
|
567
677
|
|
568
678
|
res
|
@@ -601,9 +711,10 @@ module StackOne
|
|
601
711
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ScorecardsResult)
|
602
712
|
res.scorecards_result = out
|
603
713
|
end
|
604
|
-
elsif [400, 403, 412, 429
|
714
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
605
715
|
elsif r.status == 408
|
606
716
|
res.headers = r.headers
|
717
|
+
elsif [500, 501].include?(r.status)
|
607
718
|
end
|
608
719
|
|
609
720
|
res
|
@@ -642,9 +753,10 @@ module StackOne
|
|
642
753
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssessmentPackageResult)
|
643
754
|
res.assessment_package_result = out
|
644
755
|
end
|
645
|
-
elsif [400, 403, 412, 429
|
756
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
646
757
|
elsif r.status == 408
|
647
758
|
res.headers = r.headers
|
759
|
+
elsif [500, 501].include?(r.status)
|
648
760
|
end
|
649
761
|
|
650
762
|
res
|
@@ -683,9 +795,10 @@ module StackOne
|
|
683
795
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssessmentOrderResult)
|
684
796
|
res.assessment_order_result = out
|
685
797
|
end
|
686
|
-
elsif [400, 403, 412, 429
|
798
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
687
799
|
elsif r.status == 408
|
688
800
|
res.headers = r.headers
|
801
|
+
elsif [500, 501].include?(r.status)
|
689
802
|
end
|
690
803
|
|
691
804
|
res
|
@@ -724,9 +837,10 @@ module StackOne
|
|
724
837
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssessmentResultsResult)
|
725
838
|
res.assessment_results_result = out
|
726
839
|
end
|
727
|
-
elsif [400, 403, 412, 429
|
840
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
728
841
|
elsif r.status == 408
|
729
842
|
res.headers = r.headers
|
843
|
+
elsif [500, 501].include?(r.status)
|
730
844
|
end
|
731
845
|
|
732
846
|
res
|
@@ -765,9 +879,10 @@ module StackOne
|
|
765
879
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckPackageResult)
|
766
880
|
res.background_check_package_result = out
|
767
881
|
end
|
768
|
-
elsif [400, 403, 412, 429
|
882
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
769
883
|
elsif r.status == 408
|
770
884
|
res.headers = r.headers
|
885
|
+
elsif [500, 501].include?(r.status)
|
771
886
|
end
|
772
887
|
|
773
888
|
res
|
@@ -806,9 +921,10 @@ module StackOne
|
|
806
921
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckOrderResult)
|
807
922
|
res.background_check_order_result = out
|
808
923
|
end
|
809
|
-
elsif [400, 403, 412, 429
|
924
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
810
925
|
elsif r.status == 408
|
811
926
|
res.headers = r.headers
|
927
|
+
elsif [500, 501].include?(r.status)
|
812
928
|
end
|
813
929
|
|
814
930
|
res
|
@@ -847,9 +963,10 @@ module StackOne
|
|
847
963
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckResultsResult)
|
848
964
|
res.background_check_results_result = out
|
849
965
|
end
|
850
|
-
elsif [400, 403, 412, 429
|
966
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
851
967
|
elsif r.status == 408
|
852
968
|
res.headers = r.headers
|
969
|
+
elsif [500, 501].include?(r.status)
|
853
970
|
end
|
854
971
|
|
855
972
|
res
|
@@ -888,9 +1005,10 @@ module StackOne
|
|
888
1005
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CandidateResult)
|
889
1006
|
res.candidate_result = out
|
890
1007
|
end
|
891
|
-
elsif [400, 403, 412, 429
|
1008
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
892
1009
|
elsif r.status == 408
|
893
1010
|
res.headers = r.headers
|
1011
|
+
elsif [500, 501].include?(r.status)
|
894
1012
|
end
|
895
1013
|
|
896
1014
|
res
|
@@ -929,9 +1047,10 @@ module StackOne
|
|
929
1047
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionResultApiModel)
|
930
1048
|
res.custom_field_definition_result_api_model = out
|
931
1049
|
end
|
932
|
-
elsif [400, 403, 412, 429
|
1050
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
933
1051
|
elsif r.status == 408
|
934
1052
|
res.headers = r.headers
|
1053
|
+
elsif [500, 501].include?(r.status)
|
935
1054
|
end
|
936
1055
|
|
937
1056
|
res
|
@@ -970,9 +1089,10 @@ module StackOne
|
|
970
1089
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::NoteResult)
|
971
1090
|
res.note_result = out
|
972
1091
|
end
|
973
|
-
elsif [400, 403, 412, 429
|
1092
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
974
1093
|
elsif r.status == 408
|
975
1094
|
res.headers = r.headers
|
1095
|
+
elsif [500, 501].include?(r.status)
|
976
1096
|
end
|
977
1097
|
|
978
1098
|
res
|
@@ -1011,9 +1131,10 @@ module StackOne
|
|
1011
1131
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DepartmentResult)
|
1012
1132
|
res.department_result = out
|
1013
1133
|
end
|
1014
|
-
elsif [400, 403, 412, 429
|
1134
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1015
1135
|
elsif r.status == 408
|
1016
1136
|
res.headers = r.headers
|
1137
|
+
elsif [500, 501].include?(r.status)
|
1017
1138
|
end
|
1018
1139
|
|
1019
1140
|
res
|
@@ -1052,9 +1173,10 @@ module StackOne
|
|
1052
1173
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InterviewsResult)
|
1053
1174
|
res.interviews_result = out
|
1054
1175
|
end
|
1055
|
-
elsif [400, 403, 412, 429
|
1176
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1056
1177
|
elsif r.status == 408
|
1057
1178
|
res.headers = r.headers
|
1179
|
+
elsif [500, 501].include?(r.status)
|
1058
1180
|
end
|
1059
1181
|
|
1060
1182
|
res
|
@@ -1093,9 +1215,10 @@ module StackOne
|
|
1093
1215
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InterviewStageResult)
|
1094
1216
|
res.interview_stage_result = out
|
1095
1217
|
end
|
1096
|
-
elsif [400, 403, 412, 429
|
1218
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1097
1219
|
elsif r.status == 408
|
1098
1220
|
res.headers = r.headers
|
1221
|
+
elsif [500, 501].include?(r.status)
|
1099
1222
|
end
|
1100
1223
|
|
1101
1224
|
res
|
@@ -1134,9 +1257,10 @@ module StackOne
|
|
1134
1257
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobResult)
|
1135
1258
|
res.job_result = out
|
1136
1259
|
end
|
1137
|
-
elsif [400, 403, 412, 429
|
1260
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1138
1261
|
elsif r.status == 408
|
1139
1262
|
res.headers = r.headers
|
1263
|
+
elsif [500, 501].include?(r.status)
|
1140
1264
|
end
|
1141
1265
|
|
1142
1266
|
res
|
@@ -1175,9 +1299,10 @@ module StackOne
|
|
1175
1299
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionResultApiModel)
|
1176
1300
|
res.custom_field_definition_result_api_model = out
|
1177
1301
|
end
|
1178
|
-
elsif [400, 403, 412, 429
|
1302
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1179
1303
|
elsif r.status == 408
|
1180
1304
|
res.headers = r.headers
|
1305
|
+
elsif [500, 501].include?(r.status)
|
1181
1306
|
end
|
1182
1307
|
|
1183
1308
|
res
|
@@ -1216,9 +1341,10 @@ module StackOne
|
|
1216
1341
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobPostingResult)
|
1217
1342
|
res.job_posting_result = out
|
1218
1343
|
end
|
1219
|
-
elsif [400, 403, 412, 429
|
1344
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1220
1345
|
elsif r.status == 408
|
1221
1346
|
res.headers = r.headers
|
1347
|
+
elsif [500, 501].include?(r.status)
|
1222
1348
|
end
|
1223
1349
|
|
1224
1350
|
res
|
@@ -1257,9 +1383,10 @@ module StackOne
|
|
1257
1383
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ListResult)
|
1258
1384
|
res.list_result = out
|
1259
1385
|
end
|
1260
|
-
elsif [400, 403, 412, 429
|
1386
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1261
1387
|
elsif r.status == 408
|
1262
1388
|
res.headers = r.headers
|
1389
|
+
elsif [500, 501].include?(r.status)
|
1263
1390
|
end
|
1264
1391
|
|
1265
1392
|
res
|
@@ -1298,9 +1425,10 @@ module StackOne
|
|
1298
1425
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ATSLocationResult)
|
1299
1426
|
res.ats_location_result = out
|
1300
1427
|
end
|
1301
|
-
elsif [400, 403, 412, 429
|
1428
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1302
1429
|
elsif r.status == 408
|
1303
1430
|
res.headers = r.headers
|
1431
|
+
elsif [500, 501].include?(r.status)
|
1304
1432
|
end
|
1305
1433
|
|
1306
1434
|
res
|
@@ -1339,9 +1467,10 @@ module StackOne
|
|
1339
1467
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersResult)
|
1340
1468
|
res.offers_result = out
|
1341
1469
|
end
|
1342
|
-
elsif [400, 403, 412, 429
|
1470
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1343
1471
|
elsif r.status == 408
|
1344
1472
|
res.headers = r.headers
|
1473
|
+
elsif [500, 501].include?(r.status)
|
1345
1474
|
end
|
1346
1475
|
|
1347
1476
|
res
|
@@ -1380,9 +1509,10 @@ module StackOne
|
|
1380
1509
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::RejectedReasonResult)
|
1381
1510
|
res.rejected_reason_result = out
|
1382
1511
|
end
|
1383
|
-
elsif [400, 403, 412, 429
|
1512
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1384
1513
|
elsif r.status == 408
|
1385
1514
|
res.headers = r.headers
|
1515
|
+
elsif [500, 501].include?(r.status)
|
1386
1516
|
end
|
1387
1517
|
|
1388
1518
|
res
|
@@ -1421,9 +1551,10 @@ module StackOne
|
|
1421
1551
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UserResult)
|
1422
1552
|
res.user_result = out
|
1423
1553
|
end
|
1424
|
-
elsif [400, 403, 412, 429
|
1554
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1425
1555
|
elsif r.status == 408
|
1426
1556
|
res.headers = r.headers
|
1557
|
+
elsif [500, 501].include?(r.status)
|
1427
1558
|
end
|
1428
1559
|
|
1429
1560
|
res
|
@@ -1457,9 +1588,10 @@ module StackOne
|
|
1457
1588
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionsPaginated)
|
1458
1589
|
res.custom_field_definitions_paginated = out
|
1459
1590
|
end
|
1460
|
-
elsif [400, 403, 412, 429
|
1591
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1461
1592
|
elsif r.status == 408
|
1462
1593
|
res.headers = r.headers
|
1594
|
+
elsif [500, 501].include?(r.status)
|
1463
1595
|
end
|
1464
1596
|
|
1465
1597
|
res
|
@@ -1498,9 +1630,52 @@ module StackOne
|
|
1498
1630
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AtsDocumentsPaginated)
|
1499
1631
|
res.ats_documents_paginated = out
|
1500
1632
|
end
|
1501
|
-
elsif [400, 403, 412, 429
|
1633
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1502
1634
|
elsif r.status == 408
|
1503
1635
|
res.headers = r.headers
|
1636
|
+
elsif [500, 501].include?(r.status)
|
1637
|
+
end
|
1638
|
+
|
1639
|
+
res
|
1640
|
+
end
|
1641
|
+
|
1642
|
+
|
1643
|
+
sig { params(request: T.nilable(::StackOne::Operations::AtsListApplicationNotesRequest)).returns(::StackOne::Operations::AtsListApplicationNotesResponse) }
|
1644
|
+
def list_application_notes(request)
|
1645
|
+
# list_application_notes - List Application Notes
|
1646
|
+
url, params = @sdk_configuration.get_server_details
|
1647
|
+
base_url = Utils.template_url(url, params)
|
1648
|
+
url = Utils.generate_url(
|
1649
|
+
::StackOne::Operations::AtsListApplicationNotesRequest,
|
1650
|
+
base_url,
|
1651
|
+
'/unified/ats/applications/{id}/notes',
|
1652
|
+
request
|
1653
|
+
)
|
1654
|
+
headers = Utils.get_headers(request)
|
1655
|
+
query_params = Utils.get_query_params(::StackOne::Operations::AtsListApplicationNotesRequest, request)
|
1656
|
+
headers['Accept'] = 'application/json'
|
1657
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1658
|
+
|
1659
|
+
r = @sdk_configuration.client.get(url) do |req|
|
1660
|
+
req.headers = headers
|
1661
|
+
req.params = query_params
|
1662
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1663
|
+
end
|
1664
|
+
|
1665
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1666
|
+
|
1667
|
+
res = ::StackOne::Operations::AtsListApplicationNotesResponse.new(
|
1668
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1669
|
+
)
|
1670
|
+
if r.status == 200
|
1671
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1672
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::NotesPaginated)
|
1673
|
+
res.notes_paginated = out
|
1674
|
+
end
|
1675
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1676
|
+
elsif r.status == 408
|
1677
|
+
res.headers = r.headers
|
1678
|
+
elsif [500, 501].include?(r.status)
|
1504
1679
|
end
|
1505
1680
|
|
1506
1681
|
res
|
@@ -1539,9 +1714,10 @@ module StackOne
|
|
1539
1714
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ScorecardsPaginated)
|
1540
1715
|
res.scorecards_paginated = out
|
1541
1716
|
end
|
1542
|
-
elsif [400, 403, 412, 429
|
1717
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1543
1718
|
elsif r.status == 408
|
1544
1719
|
res.headers = r.headers
|
1720
|
+
elsif [500, 501].include?(r.status)
|
1545
1721
|
end
|
1546
1722
|
|
1547
1723
|
res
|
@@ -1575,9 +1751,10 @@ module StackOne
|
|
1575
1751
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ApplicationsPaginated)
|
1576
1752
|
res.applications_paginated = out
|
1577
1753
|
end
|
1578
|
-
elsif [400, 403, 412, 429
|
1754
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1579
1755
|
elsif r.status == 408
|
1580
1756
|
res.headers = r.headers
|
1757
|
+
elsif [500, 501].include?(r.status)
|
1581
1758
|
end
|
1582
1759
|
|
1583
1760
|
res
|
@@ -1616,9 +1793,10 @@ module StackOne
|
|
1616
1793
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersPaginated)
|
1617
1794
|
res.offers_paginated = out
|
1618
1795
|
end
|
1619
|
-
elsif [400, 403, 412, 429
|
1796
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1620
1797
|
elsif r.status == 408
|
1621
1798
|
res.headers = r.headers
|
1799
|
+
elsif [500, 501].include?(r.status)
|
1622
1800
|
end
|
1623
1801
|
|
1624
1802
|
res
|
@@ -1657,9 +1835,10 @@ module StackOne
|
|
1657
1835
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ScheduledInterviewsPaginated)
|
1658
1836
|
res.scheduled_interviews_paginated = out
|
1659
1837
|
end
|
1660
|
-
elsif [400, 403, 412, 429
|
1838
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1661
1839
|
elsif r.status == 408
|
1662
1840
|
res.headers = r.headers
|
1841
|
+
elsif [500, 501].include?(r.status)
|
1663
1842
|
end
|
1664
1843
|
|
1665
1844
|
res
|
@@ -1693,9 +1872,10 @@ module StackOne
|
|
1693
1872
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AssessmentPackagePaginated)
|
1694
1873
|
res.assessment_package_paginated = out
|
1695
1874
|
end
|
1696
|
-
elsif [400, 403, 412, 429
|
1875
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1697
1876
|
elsif r.status == 408
|
1698
1877
|
res.headers = r.headers
|
1878
|
+
elsif [500, 501].include?(r.status)
|
1699
1879
|
end
|
1700
1880
|
|
1701
1881
|
res
|
@@ -1729,9 +1909,10 @@ module StackOne
|
|
1729
1909
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckPackagePaginated)
|
1730
1910
|
res.background_check_package_paginated = out
|
1731
1911
|
end
|
1732
|
-
elsif [400, 403, 412, 429
|
1912
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1733
1913
|
elsif r.status == 408
|
1734
1914
|
res.headers = r.headers
|
1915
|
+
elsif [500, 501].include?(r.status)
|
1735
1916
|
end
|
1736
1917
|
|
1737
1918
|
res
|
@@ -1765,9 +1946,10 @@ module StackOne
|
|
1765
1946
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::BackgroundCheckOrderPaginated)
|
1766
1947
|
res.background_check_order_paginated = out
|
1767
1948
|
end
|
1768
|
-
elsif [400, 403, 412, 429
|
1949
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1769
1950
|
elsif r.status == 408
|
1770
1951
|
res.headers = r.headers
|
1952
|
+
elsif [500, 501].include?(r.status)
|
1771
1953
|
end
|
1772
1954
|
|
1773
1955
|
res
|
@@ -1801,9 +1983,10 @@ module StackOne
|
|
1801
1983
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionsPaginated)
|
1802
1984
|
res.custom_field_definitions_paginated = out
|
1803
1985
|
end
|
1804
|
-
elsif [400, 403, 412, 429
|
1986
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1805
1987
|
elsif r.status == 408
|
1806
1988
|
res.headers = r.headers
|
1989
|
+
elsif [500, 501].include?(r.status)
|
1807
1990
|
end
|
1808
1991
|
|
1809
1992
|
res
|
@@ -1842,9 +2025,10 @@ module StackOne
|
|
1842
2025
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::NotesPaginated)
|
1843
2026
|
res.notes_paginated = out
|
1844
2027
|
end
|
1845
|
-
elsif [400, 403, 412, 429
|
2028
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1846
2029
|
elsif r.status == 408
|
1847
2030
|
res.headers = r.headers
|
2031
|
+
elsif [500, 501].include?(r.status)
|
1848
2032
|
end
|
1849
2033
|
|
1850
2034
|
res
|
@@ -1878,9 +2062,10 @@ module StackOne
|
|
1878
2062
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CandidatesPaginated)
|
1879
2063
|
res.candidates_paginated = out
|
1880
2064
|
end
|
1881
|
-
elsif [400, 403, 412, 429
|
2065
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1882
2066
|
elsif r.status == 408
|
1883
2067
|
res.headers = r.headers
|
2068
|
+
elsif [500, 501].include?(r.status)
|
1884
2069
|
end
|
1885
2070
|
|
1886
2071
|
res
|
@@ -1914,9 +2099,10 @@ module StackOne
|
|
1914
2099
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DepartmentsPaginated)
|
1915
2100
|
res.departments_paginated = out
|
1916
2101
|
end
|
1917
|
-
elsif [400, 403, 412, 429
|
2102
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1918
2103
|
elsif r.status == 408
|
1919
2104
|
res.headers = r.headers
|
2105
|
+
elsif [500, 501].include?(r.status)
|
1920
2106
|
end
|
1921
2107
|
|
1922
2108
|
res
|
@@ -1950,9 +2136,10 @@ module StackOne
|
|
1950
2136
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InterviewStagesPaginated)
|
1951
2137
|
res.interview_stages_paginated = out
|
1952
2138
|
end
|
1953
|
-
elsif [400, 403, 412, 429
|
2139
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1954
2140
|
elsif r.status == 408
|
1955
2141
|
res.headers = r.headers
|
2142
|
+
elsif [500, 501].include?(r.status)
|
1956
2143
|
end
|
1957
2144
|
|
1958
2145
|
res
|
@@ -1986,9 +2173,10 @@ module StackOne
|
|
1986
2173
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InterviewsPaginated)
|
1987
2174
|
res.interviews_paginated = out
|
1988
2175
|
end
|
1989
|
-
elsif [400, 403, 412, 429
|
2176
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1990
2177
|
elsif r.status == 408
|
1991
2178
|
res.headers = r.headers
|
2179
|
+
elsif [500, 501].include?(r.status)
|
1992
2180
|
end
|
1993
2181
|
|
1994
2182
|
res
|
@@ -2022,9 +2210,10 @@ module StackOne
|
|
2022
2210
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionsPaginated)
|
2023
2211
|
res.custom_field_definitions_paginated = out
|
2024
2212
|
end
|
2025
|
-
elsif [400, 403, 412, 429
|
2213
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2026
2214
|
elsif r.status == 408
|
2027
2215
|
res.headers = r.headers
|
2216
|
+
elsif [500, 501].include?(r.status)
|
2028
2217
|
end
|
2029
2218
|
|
2030
2219
|
res
|
@@ -2058,9 +2247,10 @@ module StackOne
|
|
2058
2247
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobPostingsPaginated)
|
2059
2248
|
res.job_postings_paginated = out
|
2060
2249
|
end
|
2061
|
-
elsif [400, 403, 412, 429
|
2250
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2062
2251
|
elsif r.status == 408
|
2063
2252
|
res.headers = r.headers
|
2253
|
+
elsif [500, 501].include?(r.status)
|
2064
2254
|
end
|
2065
2255
|
|
2066
2256
|
res
|
@@ -2094,9 +2284,10 @@ module StackOne
|
|
2094
2284
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::JobsPaginated)
|
2095
2285
|
res.jobs_paginated = out
|
2096
2286
|
end
|
2097
|
-
elsif [400, 403, 412, 429
|
2287
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2098
2288
|
elsif r.status == 408
|
2099
2289
|
res.headers = r.headers
|
2290
|
+
elsif [500, 501].include?(r.status)
|
2100
2291
|
end
|
2101
2292
|
|
2102
2293
|
res
|
@@ -2130,9 +2321,10 @@ module StackOne
|
|
2130
2321
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ListsPaginated)
|
2131
2322
|
res.lists_paginated = out
|
2132
2323
|
end
|
2133
|
-
elsif [400, 403, 412, 429
|
2324
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2134
2325
|
elsif r.status == 408
|
2135
2326
|
res.headers = r.headers
|
2327
|
+
elsif [500, 501].include?(r.status)
|
2136
2328
|
end
|
2137
2329
|
|
2138
2330
|
res
|
@@ -2166,9 +2358,10 @@ module StackOne
|
|
2166
2358
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ATSLocationsPaginated)
|
2167
2359
|
res.ats_locations_paginated = out
|
2168
2360
|
end
|
2169
|
-
elsif [400, 403, 412, 429
|
2361
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2170
2362
|
elsif r.status == 408
|
2171
2363
|
res.headers = r.headers
|
2364
|
+
elsif [500, 501].include?(r.status)
|
2172
2365
|
end
|
2173
2366
|
|
2174
2367
|
res
|
@@ -2202,9 +2395,10 @@ module StackOne
|
|
2202
2395
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersPaginated)
|
2203
2396
|
res.offers_paginated = out
|
2204
2397
|
end
|
2205
|
-
elsif [400, 403, 412, 429
|
2398
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2206
2399
|
elsif r.status == 408
|
2207
2400
|
res.headers = r.headers
|
2401
|
+
elsif [500, 501].include?(r.status)
|
2208
2402
|
end
|
2209
2403
|
|
2210
2404
|
res
|
@@ -2238,9 +2432,10 @@ module StackOne
|
|
2238
2432
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::RejectedReasonsPaginated)
|
2239
2433
|
res.rejected_reasons_paginated = out
|
2240
2434
|
end
|
2241
|
-
elsif [400, 403, 412, 429
|
2435
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2242
2436
|
elsif r.status == 408
|
2243
2437
|
res.headers = r.headers
|
2438
|
+
elsif [500, 501].include?(r.status)
|
2244
2439
|
end
|
2245
2440
|
|
2246
2441
|
res
|
@@ -2274,9 +2469,10 @@ module StackOne
|
|
2274
2469
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UsersPaginated)
|
2275
2470
|
res.users_paginated = out
|
2276
2471
|
end
|
2277
|
-
elsif [400, 403, 412, 429
|
2472
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2278
2473
|
elsif r.status == 408
|
2279
2474
|
res.headers = r.headers
|
2475
|
+
elsif [500, 501].include?(r.status)
|
2280
2476
|
end
|
2281
2477
|
|
2282
2478
|
res
|
@@ -2329,9 +2525,10 @@ module StackOne
|
|
2329
2525
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::MoveApplicationResult)
|
2330
2526
|
res.move_application_result = out
|
2331
2527
|
end
|
2332
|
-
elsif [400, 403, 412, 429
|
2528
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2333
2529
|
elsif r.status == 408
|
2334
2530
|
res.headers = r.headers
|
2531
|
+
elsif [500, 501].include?(r.status)
|
2335
2532
|
end
|
2336
2533
|
|
2337
2534
|
res
|
@@ -2384,9 +2581,10 @@ module StackOne
|
|
2384
2581
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::RejectApplicationResult)
|
2385
2582
|
res.reject_application_result = out
|
2386
2583
|
end
|
2387
|
-
elsif [400, 403, 412, 429
|
2584
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2388
2585
|
elsif r.status == 408
|
2389
2586
|
res.headers = r.headers
|
2587
|
+
elsif [500, 501].include?(r.status)
|
2390
2588
|
end
|
2391
2589
|
|
2392
2590
|
res
|
@@ -2439,9 +2637,67 @@ module StackOne
|
|
2439
2637
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpdateResult)
|
2440
2638
|
res.update_result = out
|
2441
2639
|
end
|
2442
|
-
elsif [400, 403, 412, 429
|
2640
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2641
|
+
elsif r.status == 408
|
2642
|
+
res.headers = r.headers
|
2643
|
+
elsif [500, 501].include?(r.status)
|
2644
|
+
end
|
2645
|
+
|
2646
|
+
res
|
2647
|
+
end
|
2648
|
+
|
2649
|
+
|
2650
|
+
sig { params(ats_update_notes_request_dto: ::StackOne::Shared::AtsUpdateNotesRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUpdateApplicationNoteResponse) }
|
2651
|
+
def update_application_note(ats_update_notes_request_dto, id, sub_resource_id, x_account_id)
|
2652
|
+
# update_application_note - Update an Application Note
|
2653
|
+
request = ::StackOne::Operations::AtsUpdateApplicationNoteRequest.new(
|
2654
|
+
|
2655
|
+
ats_update_notes_request_dto: ats_update_notes_request_dto,
|
2656
|
+
id: id,
|
2657
|
+
sub_resource_id: sub_resource_id,
|
2658
|
+
x_account_id: x_account_id
|
2659
|
+
)
|
2660
|
+
url, params = @sdk_configuration.get_server_details
|
2661
|
+
base_url = Utils.template_url(url, params)
|
2662
|
+
url = Utils.generate_url(
|
2663
|
+
::StackOne::Operations::AtsUpdateApplicationNoteRequest,
|
2664
|
+
base_url,
|
2665
|
+
'/unified/ats/applications/{id}/notes/{subResourceId}',
|
2666
|
+
request
|
2667
|
+
)
|
2668
|
+
headers = Utils.get_headers(request)
|
2669
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :ats_update_notes_request_dto, :json)
|
2670
|
+
headers['content-type'] = req_content_type
|
2671
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2672
|
+
headers['Accept'] = 'application/json'
|
2673
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
2674
|
+
|
2675
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
2676
|
+
req.headers = headers
|
2677
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
2678
|
+
if form
|
2679
|
+
req.body = Utils.encode_form(form)
|
2680
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
2681
|
+
req.body = URI.encode_www_form(data)
|
2682
|
+
else
|
2683
|
+
req.body = data
|
2684
|
+
end
|
2685
|
+
end
|
2686
|
+
|
2687
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
2688
|
+
|
2689
|
+
res = ::StackOne::Operations::AtsUpdateApplicationNoteResponse.new(
|
2690
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
2691
|
+
)
|
2692
|
+
if r.status == 200
|
2693
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2694
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpdateResult)
|
2695
|
+
res.update_result = out
|
2696
|
+
end
|
2697
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2443
2698
|
elsif r.status == 408
|
2444
2699
|
res.headers = r.headers
|
2700
|
+
elsif [500, 501].include?(r.status)
|
2445
2701
|
end
|
2446
2702
|
|
2447
2703
|
res
|
@@ -2494,9 +2750,10 @@ module StackOne
|
|
2494
2750
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
2495
2751
|
res.create_result = out
|
2496
2752
|
end
|
2497
|
-
elsif [400, 403, 412, 429
|
2753
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2498
2754
|
elsif r.status == 408
|
2499
2755
|
res.headers = r.headers
|
2756
|
+
elsif [500, 501].include?(r.status)
|
2500
2757
|
end
|
2501
2758
|
|
2502
2759
|
res
|
@@ -2549,9 +2806,10 @@ module StackOne
|
|
2549
2806
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
|
2550
2807
|
res.create_result = out
|
2551
2808
|
end
|
2552
|
-
elsif [400, 403, 412, 429
|
2809
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2553
2810
|
elsif r.status == 408
|
2554
2811
|
res.headers = r.headers
|
2812
|
+
elsif [500, 501].include?(r.status)
|
2555
2813
|
end
|
2556
2814
|
|
2557
2815
|
res
|
@@ -2604,9 +2862,10 @@ module StackOne
|
|
2604
2862
|
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WriteResultApiModel)
|
2605
2863
|
res.write_result_api_model = out
|
2606
2864
|
end
|
2607
|
-
elsif [400, 403, 412, 429
|
2865
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2608
2866
|
elsif r.status == 408
|
2609
2867
|
res.headers = r.headers
|
2868
|
+
elsif [500, 501].include?(r.status)
|
2610
2869
|
end
|
2611
2870
|
|
2612
2871
|
res
|