stackone_client 0.6.0 → 0.7.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 +279 -36
- data/lib/stack_one/ats.rb +4075 -580
- data/lib/stack_one/connect_sessions.rb +123 -22
- data/lib/stack_one/connectors.rb +111 -14
- data/lib/stack_one/crm.rb +563 -78
- data/lib/stack_one/hris.rb +3401 -458
- data/lib/stack_one/iam.rb +675 -56
- data/lib/stack_one/lms.rb +1533 -220
- data/lib/stack_one/marketing.rb +1503 -230
- data/lib/stack_one/models/operations/hris_update_employee_time_off_request_request.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_time_off_request_response.rb +36 -0
- data/lib/stack_one/models/operations/iam_delete_user_request.rb +27 -0
- data/lib/stack_one/models/operations/iam_delete_user_response.rb +36 -0
- data/lib/stack_one/models/operations/iam_update_user_request.rb +30 -0
- data/lib/stack_one/models/operations/iam_update_user_response.rb +36 -0
- data/lib/stack_one/models/operations/lms_list_users_queryparam_filter.rb +5 -2
- data/lib/stack_one/models/operations.rb +6 -0
- data/lib/stack_one/models/shared/atscreatejobrequestdto.rb +5 -2
- data/lib/stack_one/models/shared/atsupdatejobrequestdto.rb +5 -2
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +2 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_type.rb +2 -0
- data/lib/stack_one/models/shared/iamupdateuserrequestdto.rb +45 -0
- data/lib/stack_one/models/shared/iamupdateuserrequestdto_status.rb +27 -0
- data/lib/stack_one/models/shared/iamupdateuserrequestdto_value.rb +20 -0
- data/lib/stack_one/models/shared/job.rb +5 -2
- data/lib/stack_one/models/shared/rawresponse.rb +2 -2
- data/lib/stack_one/models/shared/timeoff.rb +2 -0
- data/lib/stack_one/models/shared/timeoff_type.rb +2 -0
- data/lib/stack_one/models/shared/updateuserapimodel.rb +45 -0
- data/lib/stack_one/models/shared/updateuserapimodel_status.rb +27 -0
- data/lib/stack_one/models/shared/updateuserapimodel_value.rb +20 -0
- data/lib/stack_one/models/shared.rb +6 -0
- data/lib/stack_one/proxy.rb +62 -11
- data/lib/stack_one/sdk_hooks/hooks.rb +101 -0
- data/lib/stack_one/sdk_hooks/types.rb +152 -0
- data/lib/stack_one/sdkconfiguration.rb +11 -4
- data/lib/stack_one/stackone.rb +22 -8
- data/lib/stack_one/utils/utils.rb +10 -0
- metadata +16 -2
data/lib/stack_one/lms.rb
CHANGED
@@ -7,6 +7,7 @@ require 'faraday'
|
|
7
7
|
require 'faraday/multipart'
|
8
8
|
require 'faraday/retry'
|
9
9
|
require 'sorbet-runtime'
|
10
|
+
require_relative 'sdk_hooks/hooks'
|
10
11
|
require_relative 'utils/retries'
|
11
12
|
|
12
13
|
module StackOne
|
@@ -21,8 +22,8 @@ module StackOne
|
|
21
22
|
end
|
22
23
|
|
23
24
|
|
24
|
-
sig { params(lms_batch_upsert_content_request_dto: ::StackOne::Shared::LmsBatchUpsertContentRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsBatchUpsertContentResponse) }
|
25
|
-
def batch_upsert_content(lms_batch_upsert_content_request_dto, x_account_id, retries = nil)
|
25
|
+
sig { params(lms_batch_upsert_content_request_dto: ::StackOne::Shared::LmsBatchUpsertContentRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsBatchUpsertContentResponse) }
|
26
|
+
def batch_upsert_content(lms_batch_upsert_content_request_dto, x_account_id, retries = nil, timeout_ms = nil)
|
26
27
|
# batch_upsert_content - Batch Upsert Content
|
27
28
|
request = ::StackOne::Operations::LmsBatchUpsertContentRequest.new(
|
28
29
|
|
@@ -36,6 +37,14 @@ module StackOne
|
|
36
37
|
req_content_type, data, form = Utils.serialize_request_body(request, :lms_batch_upsert_content_request_dto, :json)
|
37
38
|
headers['content-type'] = req_content_type
|
38
39
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
40
|
+
|
41
|
+
if form
|
42
|
+
body = Utils.encode_form(form)
|
43
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
44
|
+
body = URI.encode_www_form(data)
|
45
|
+
else
|
46
|
+
body = data
|
47
|
+
end
|
39
48
|
headers['Accept'] = 'application/json'
|
40
49
|
headers['user-agent'] = @sdk_configuration.user_agent
|
41
50
|
retries ||= @sdk_configuration.retry_config
|
@@ -52,19 +61,61 @@ module StackOne
|
|
52
61
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
53
62
|
retry_options[:retry_statuses] = [429, 408]
|
54
63
|
|
64
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
65
|
+
|
66
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
67
|
+
timeout ||= @sdk_configuration.timeout
|
68
|
+
|
55
69
|
connection = @sdk_configuration.client.dup
|
56
70
|
connection.request :retry, retry_options
|
57
71
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
72
|
+
hook_ctx = SDKHooks::HookContext.new(
|
73
|
+
base_url: base_url,
|
74
|
+
oauth2_scopes: [],
|
75
|
+
operation_id: 'lms_batch_upsert_content',
|
76
|
+
security_source: @sdk_configuration.security_source
|
77
|
+
)
|
78
|
+
|
79
|
+
error = T.let(nil, T.nilable(StandardError))
|
80
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
81
|
+
|
82
|
+
begin
|
83
|
+
r = connection.post(url) do |req|
|
84
|
+
req.body = body
|
85
|
+
req.headers.merge!(headers)
|
86
|
+
req.options.timeout = timeout unless timeout.nil?
|
87
|
+
Utils.configure_request_security(req, security)
|
88
|
+
|
89
|
+
@sdk_configuration.hooks.before_request(
|
90
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
91
|
+
hook_ctx: hook_ctx
|
92
|
+
),
|
93
|
+
request: req
|
94
|
+
)
|
95
|
+
end
|
96
|
+
rescue StandardError => e
|
97
|
+
error = e
|
98
|
+
ensure
|
99
|
+
if r.nil? || Utils.error_status?(r.status)
|
100
|
+
r = @sdk_configuration.hooks.after_error(
|
101
|
+
error: error,
|
102
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
103
|
+
hook_ctx: hook_ctx
|
104
|
+
),
|
105
|
+
response: r
|
106
|
+
)
|
66
107
|
else
|
67
|
-
|
108
|
+
r = @sdk_configuration.hooks.after_success(
|
109
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
110
|
+
hook_ctx: hook_ctx
|
111
|
+
),
|
112
|
+
response: r
|
113
|
+
)
|
114
|
+
end
|
115
|
+
|
116
|
+
if r.nil?
|
117
|
+
raise error if !error.nil?
|
118
|
+
raise 'no response'
|
68
119
|
end
|
69
120
|
end
|
70
121
|
|
@@ -88,8 +139,8 @@ module StackOne
|
|
88
139
|
end
|
89
140
|
|
90
141
|
|
91
|
-
sig { params(lms_batch_upsert_course_request_dto: ::StackOne::Shared::LmsBatchUpsertCourseRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsBatchUpsertCourseResponse) }
|
92
|
-
def batch_upsert_course(lms_batch_upsert_course_request_dto, x_account_id, retries = nil)
|
142
|
+
sig { params(lms_batch_upsert_course_request_dto: ::StackOne::Shared::LmsBatchUpsertCourseRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsBatchUpsertCourseResponse) }
|
143
|
+
def batch_upsert_course(lms_batch_upsert_course_request_dto, x_account_id, retries = nil, timeout_ms = nil)
|
93
144
|
# batch_upsert_course - Batch Upsert Course
|
94
145
|
request = ::StackOne::Operations::LmsBatchUpsertCourseRequest.new(
|
95
146
|
|
@@ -103,6 +154,14 @@ module StackOne
|
|
103
154
|
req_content_type, data, form = Utils.serialize_request_body(request, :lms_batch_upsert_course_request_dto, :json)
|
104
155
|
headers['content-type'] = req_content_type
|
105
156
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
157
|
+
|
158
|
+
if form
|
159
|
+
body = Utils.encode_form(form)
|
160
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
161
|
+
body = URI.encode_www_form(data)
|
162
|
+
else
|
163
|
+
body = data
|
164
|
+
end
|
106
165
|
headers['Accept'] = 'application/json'
|
107
166
|
headers['user-agent'] = @sdk_configuration.user_agent
|
108
167
|
retries ||= @sdk_configuration.retry_config
|
@@ -119,19 +178,61 @@ module StackOne
|
|
119
178
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
120
179
|
retry_options[:retry_statuses] = [429, 408]
|
121
180
|
|
181
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
182
|
+
|
183
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
184
|
+
timeout ||= @sdk_configuration.timeout
|
185
|
+
|
122
186
|
connection = @sdk_configuration.client.dup
|
123
187
|
connection.request :retry, retry_options
|
124
188
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
189
|
+
hook_ctx = SDKHooks::HookContext.new(
|
190
|
+
base_url: base_url,
|
191
|
+
oauth2_scopes: [],
|
192
|
+
operation_id: 'lms_batch_upsert_course',
|
193
|
+
security_source: @sdk_configuration.security_source
|
194
|
+
)
|
195
|
+
|
196
|
+
error = T.let(nil, T.nilable(StandardError))
|
197
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
198
|
+
|
199
|
+
begin
|
200
|
+
r = connection.post(url) do |req|
|
201
|
+
req.body = body
|
202
|
+
req.headers.merge!(headers)
|
203
|
+
req.options.timeout = timeout unless timeout.nil?
|
204
|
+
Utils.configure_request_security(req, security)
|
205
|
+
|
206
|
+
@sdk_configuration.hooks.before_request(
|
207
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
208
|
+
hook_ctx: hook_ctx
|
209
|
+
),
|
210
|
+
request: req
|
211
|
+
)
|
212
|
+
end
|
213
|
+
rescue StandardError => e
|
214
|
+
error = e
|
215
|
+
ensure
|
216
|
+
if r.nil? || Utils.error_status?(r.status)
|
217
|
+
r = @sdk_configuration.hooks.after_error(
|
218
|
+
error: error,
|
219
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
220
|
+
hook_ctx: hook_ctx
|
221
|
+
),
|
222
|
+
response: r
|
223
|
+
)
|
133
224
|
else
|
134
|
-
|
225
|
+
r = @sdk_configuration.hooks.after_success(
|
226
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
227
|
+
hook_ctx: hook_ctx
|
228
|
+
),
|
229
|
+
response: r
|
230
|
+
)
|
231
|
+
end
|
232
|
+
|
233
|
+
if r.nil?
|
234
|
+
raise error if !error.nil?
|
235
|
+
raise 'no response'
|
135
236
|
end
|
136
237
|
end
|
137
238
|
|
@@ -155,8 +256,8 @@ module StackOne
|
|
155
256
|
end
|
156
257
|
|
157
258
|
|
158
|
-
sig { params(lms_create_collection_request_dto: ::StackOne::Shared::LmsCreateCollectionRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsCreateCollectionResponse) }
|
159
|
-
def create_collection(lms_create_collection_request_dto, x_account_id, retries = nil)
|
259
|
+
sig { params(lms_create_collection_request_dto: ::StackOne::Shared::LmsCreateCollectionRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsCreateCollectionResponse) }
|
260
|
+
def create_collection(lms_create_collection_request_dto, x_account_id, retries = nil, timeout_ms = nil)
|
160
261
|
# create_collection - Create Collection
|
161
262
|
request = ::StackOne::Operations::LmsCreateCollectionRequest.new(
|
162
263
|
|
@@ -170,6 +271,14 @@ module StackOne
|
|
170
271
|
req_content_type, data, form = Utils.serialize_request_body(request, :lms_create_collection_request_dto, :json)
|
171
272
|
headers['content-type'] = req_content_type
|
172
273
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
274
|
+
|
275
|
+
if form
|
276
|
+
body = Utils.encode_form(form)
|
277
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
278
|
+
body = URI.encode_www_form(data)
|
279
|
+
else
|
280
|
+
body = data
|
281
|
+
end
|
173
282
|
headers['Accept'] = 'application/json'
|
174
283
|
headers['user-agent'] = @sdk_configuration.user_agent
|
175
284
|
retries ||= @sdk_configuration.retry_config
|
@@ -186,19 +295,61 @@ module StackOne
|
|
186
295
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
187
296
|
retry_options[:retry_statuses] = [429, 408]
|
188
297
|
|
298
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
299
|
+
|
300
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
301
|
+
timeout ||= @sdk_configuration.timeout
|
302
|
+
|
189
303
|
connection = @sdk_configuration.client.dup
|
190
304
|
connection.request :retry, retry_options
|
191
305
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
306
|
+
hook_ctx = SDKHooks::HookContext.new(
|
307
|
+
base_url: base_url,
|
308
|
+
oauth2_scopes: [],
|
309
|
+
operation_id: 'lms_create_collection',
|
310
|
+
security_source: @sdk_configuration.security_source
|
311
|
+
)
|
312
|
+
|
313
|
+
error = T.let(nil, T.nilable(StandardError))
|
314
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
315
|
+
|
316
|
+
begin
|
317
|
+
r = connection.post(url) do |req|
|
318
|
+
req.body = body
|
319
|
+
req.headers.merge!(headers)
|
320
|
+
req.options.timeout = timeout unless timeout.nil?
|
321
|
+
Utils.configure_request_security(req, security)
|
322
|
+
|
323
|
+
@sdk_configuration.hooks.before_request(
|
324
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
325
|
+
hook_ctx: hook_ctx
|
326
|
+
),
|
327
|
+
request: req
|
328
|
+
)
|
329
|
+
end
|
330
|
+
rescue StandardError => e
|
331
|
+
error = e
|
332
|
+
ensure
|
333
|
+
if r.nil? || Utils.error_status?(r.status)
|
334
|
+
r = @sdk_configuration.hooks.after_error(
|
335
|
+
error: error,
|
336
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
337
|
+
hook_ctx: hook_ctx
|
338
|
+
),
|
339
|
+
response: r
|
340
|
+
)
|
200
341
|
else
|
201
|
-
|
342
|
+
r = @sdk_configuration.hooks.after_success(
|
343
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
344
|
+
hook_ctx: hook_ctx
|
345
|
+
),
|
346
|
+
response: r
|
347
|
+
)
|
348
|
+
end
|
349
|
+
|
350
|
+
if r.nil?
|
351
|
+
raise error if !error.nil?
|
352
|
+
raise 'no response'
|
202
353
|
end
|
203
354
|
end
|
204
355
|
|
@@ -222,8 +373,8 @@ module StackOne
|
|
222
373
|
end
|
223
374
|
|
224
375
|
|
225
|
-
sig { params(lms_create_assignment_request_dto: ::StackOne::Shared::LmsCreateAssignmentRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsCreateUserAssignmentResponse) }
|
226
|
-
def create_user_assignment(lms_create_assignment_request_dto, id, x_account_id, retries = nil)
|
376
|
+
sig { params(lms_create_assignment_request_dto: ::StackOne::Shared::LmsCreateAssignmentRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsCreateUserAssignmentResponse) }
|
377
|
+
def create_user_assignment(lms_create_assignment_request_dto, id, x_account_id, retries = nil, timeout_ms = nil)
|
227
378
|
# create_user_assignment - Create User Assignment
|
228
379
|
request = ::StackOne::Operations::LmsCreateUserAssignmentRequest.new(
|
229
380
|
|
@@ -243,6 +394,14 @@ module StackOne
|
|
243
394
|
req_content_type, data, form = Utils.serialize_request_body(request, :lms_create_assignment_request_dto, :json)
|
244
395
|
headers['content-type'] = req_content_type
|
245
396
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
397
|
+
|
398
|
+
if form
|
399
|
+
body = Utils.encode_form(form)
|
400
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
401
|
+
body = URI.encode_www_form(data)
|
402
|
+
else
|
403
|
+
body = data
|
404
|
+
end
|
246
405
|
headers['Accept'] = 'application/json'
|
247
406
|
headers['user-agent'] = @sdk_configuration.user_agent
|
248
407
|
retries ||= @sdk_configuration.retry_config
|
@@ -259,19 +418,61 @@ module StackOne
|
|
259
418
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
260
419
|
retry_options[:retry_statuses] = [429, 408]
|
261
420
|
|
421
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
422
|
+
|
423
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
424
|
+
timeout ||= @sdk_configuration.timeout
|
425
|
+
|
262
426
|
connection = @sdk_configuration.client.dup
|
263
427
|
connection.request :retry, retry_options
|
264
428
|
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
429
|
+
hook_ctx = SDKHooks::HookContext.new(
|
430
|
+
base_url: base_url,
|
431
|
+
oauth2_scopes: [],
|
432
|
+
operation_id: 'lms_create_user_assignment',
|
433
|
+
security_source: @sdk_configuration.security_source
|
434
|
+
)
|
435
|
+
|
436
|
+
error = T.let(nil, T.nilable(StandardError))
|
437
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
438
|
+
|
439
|
+
begin
|
440
|
+
r = connection.post(url) do |req|
|
441
|
+
req.body = body
|
442
|
+
req.headers.merge!(headers)
|
443
|
+
req.options.timeout = timeout unless timeout.nil?
|
444
|
+
Utils.configure_request_security(req, security)
|
445
|
+
|
446
|
+
@sdk_configuration.hooks.before_request(
|
447
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
448
|
+
hook_ctx: hook_ctx
|
449
|
+
),
|
450
|
+
request: req
|
451
|
+
)
|
452
|
+
end
|
453
|
+
rescue StandardError => e
|
454
|
+
error = e
|
455
|
+
ensure
|
456
|
+
if r.nil? || Utils.error_status?(r.status)
|
457
|
+
r = @sdk_configuration.hooks.after_error(
|
458
|
+
error: error,
|
459
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
460
|
+
hook_ctx: hook_ctx
|
461
|
+
),
|
462
|
+
response: r
|
463
|
+
)
|
273
464
|
else
|
274
|
-
|
465
|
+
r = @sdk_configuration.hooks.after_success(
|
466
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
467
|
+
hook_ctx: hook_ctx
|
468
|
+
),
|
469
|
+
response: r
|
470
|
+
)
|
471
|
+
end
|
472
|
+
|
473
|
+
if r.nil?
|
474
|
+
raise error if !error.nil?
|
475
|
+
raise 'no response'
|
275
476
|
end
|
276
477
|
end
|
277
478
|
|
@@ -295,8 +496,8 @@ module StackOne
|
|
295
496
|
end
|
296
497
|
|
297
498
|
|
298
|
-
sig { params(lms_create_completion_request_dto: ::StackOne::Shared::LmsCreateCompletionRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsCreateUserCompletionResponse) }
|
299
|
-
def create_user_completion(lms_create_completion_request_dto, id, x_account_id, retries = nil)
|
499
|
+
sig { params(lms_create_completion_request_dto: ::StackOne::Shared::LmsCreateCompletionRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsCreateUserCompletionResponse) }
|
500
|
+
def create_user_completion(lms_create_completion_request_dto, id, x_account_id, retries = nil, timeout_ms = nil)
|
300
501
|
# create_user_completion - Create User Completion
|
301
502
|
request = ::StackOne::Operations::LmsCreateUserCompletionRequest.new(
|
302
503
|
|
@@ -316,6 +517,14 @@ module StackOne
|
|
316
517
|
req_content_type, data, form = Utils.serialize_request_body(request, :lms_create_completion_request_dto, :json)
|
317
518
|
headers['content-type'] = req_content_type
|
318
519
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
520
|
+
|
521
|
+
if form
|
522
|
+
body = Utils.encode_form(form)
|
523
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
524
|
+
body = URI.encode_www_form(data)
|
525
|
+
else
|
526
|
+
body = data
|
527
|
+
end
|
319
528
|
headers['Accept'] = 'application/json'
|
320
529
|
headers['user-agent'] = @sdk_configuration.user_agent
|
321
530
|
retries ||= @sdk_configuration.retry_config
|
@@ -332,19 +541,61 @@ module StackOne
|
|
332
541
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
333
542
|
retry_options[:retry_statuses] = [429, 408]
|
334
543
|
|
544
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
545
|
+
|
546
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
547
|
+
timeout ||= @sdk_configuration.timeout
|
548
|
+
|
335
549
|
connection = @sdk_configuration.client.dup
|
336
550
|
connection.request :retry, retry_options
|
337
551
|
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
552
|
+
hook_ctx = SDKHooks::HookContext.new(
|
553
|
+
base_url: base_url,
|
554
|
+
oauth2_scopes: [],
|
555
|
+
operation_id: 'lms_create_user_completion',
|
556
|
+
security_source: @sdk_configuration.security_source
|
557
|
+
)
|
558
|
+
|
559
|
+
error = T.let(nil, T.nilable(StandardError))
|
560
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
561
|
+
|
562
|
+
begin
|
563
|
+
r = connection.post(url) do |req|
|
564
|
+
req.body = body
|
565
|
+
req.headers.merge!(headers)
|
566
|
+
req.options.timeout = timeout unless timeout.nil?
|
567
|
+
Utils.configure_request_security(req, security)
|
568
|
+
|
569
|
+
@sdk_configuration.hooks.before_request(
|
570
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
571
|
+
hook_ctx: hook_ctx
|
572
|
+
),
|
573
|
+
request: req
|
574
|
+
)
|
575
|
+
end
|
576
|
+
rescue StandardError => e
|
577
|
+
error = e
|
578
|
+
ensure
|
579
|
+
if r.nil? || Utils.error_status?(r.status)
|
580
|
+
r = @sdk_configuration.hooks.after_error(
|
581
|
+
error: error,
|
582
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
583
|
+
hook_ctx: hook_ctx
|
584
|
+
),
|
585
|
+
response: r
|
586
|
+
)
|
346
587
|
else
|
347
|
-
|
588
|
+
r = @sdk_configuration.hooks.after_success(
|
589
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
590
|
+
hook_ctx: hook_ctx
|
591
|
+
),
|
592
|
+
response: r
|
593
|
+
)
|
594
|
+
end
|
595
|
+
|
596
|
+
if r.nil?
|
597
|
+
raise error if !error.nil?
|
598
|
+
raise 'no response'
|
348
599
|
end
|
349
600
|
end
|
350
601
|
|
@@ -368,8 +619,8 @@ module StackOne
|
|
368
619
|
end
|
369
620
|
|
370
621
|
|
371
|
-
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsDeleteUserCompletionResponse) }
|
372
|
-
def delete_user_completion(id, sub_resource_id, x_account_id, retries = nil)
|
622
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsDeleteUserCompletionResponse) }
|
623
|
+
def delete_user_completion(id, sub_resource_id, x_account_id, retries = nil, timeout_ms = nil)
|
373
624
|
# delete_user_completion - Delete User Completion
|
374
625
|
request = ::StackOne::Operations::LmsDeleteUserCompletionRequest.new(
|
375
626
|
|
@@ -402,13 +653,61 @@ module StackOne
|
|
402
653
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
403
654
|
retry_options[:retry_statuses] = [429, 408]
|
404
655
|
|
656
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
657
|
+
|
658
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
659
|
+
timeout ||= @sdk_configuration.timeout
|
660
|
+
|
405
661
|
connection = @sdk_configuration.client.dup
|
406
662
|
connection.request :retry, retry_options
|
407
663
|
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
664
|
+
hook_ctx = SDKHooks::HookContext.new(
|
665
|
+
base_url: base_url,
|
666
|
+
oauth2_scopes: [],
|
667
|
+
operation_id: 'lms_delete_user_completion',
|
668
|
+
security_source: @sdk_configuration.security_source
|
669
|
+
)
|
670
|
+
|
671
|
+
error = T.let(nil, T.nilable(StandardError))
|
672
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
673
|
+
|
674
|
+
begin
|
675
|
+
r = connection.delete(url) do |req|
|
676
|
+
req.headers.merge!(headers)
|
677
|
+
req.options.timeout = timeout unless timeout.nil?
|
678
|
+
Utils.configure_request_security(req, security)
|
679
|
+
|
680
|
+
@sdk_configuration.hooks.before_request(
|
681
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
682
|
+
hook_ctx: hook_ctx
|
683
|
+
),
|
684
|
+
request: req
|
685
|
+
)
|
686
|
+
end
|
687
|
+
rescue StandardError => e
|
688
|
+
error = e
|
689
|
+
ensure
|
690
|
+
if r.nil? || Utils.error_status?(r.status)
|
691
|
+
r = @sdk_configuration.hooks.after_error(
|
692
|
+
error: error,
|
693
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
694
|
+
hook_ctx: hook_ctx
|
695
|
+
),
|
696
|
+
response: r
|
697
|
+
)
|
698
|
+
else
|
699
|
+
r = @sdk_configuration.hooks.after_success(
|
700
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
701
|
+
hook_ctx: hook_ctx
|
702
|
+
),
|
703
|
+
response: r
|
704
|
+
)
|
705
|
+
end
|
706
|
+
|
707
|
+
if r.nil?
|
708
|
+
raise error if !error.nil?
|
709
|
+
raise 'no response'
|
710
|
+
end
|
412
711
|
end
|
413
712
|
|
414
713
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -432,8 +731,8 @@ module StackOne
|
|
432
731
|
end
|
433
732
|
|
434
733
|
|
435
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsGetAssignmentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsGetAssignmentResponse) }
|
436
|
-
def get_assignment(request, retries = nil)
|
734
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetAssignmentRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetAssignmentResponse) }
|
735
|
+
def get_assignment(request, retries = nil, timeout_ms = nil)
|
437
736
|
# get_assignment - Get Assignment
|
438
737
|
url, params = @sdk_configuration.get_server_details
|
439
738
|
base_url = Utils.template_url(url, params)
|
@@ -461,14 +760,62 @@ module StackOne
|
|
461
760
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
462
761
|
retry_options[:retry_statuses] = [429, 408]
|
463
762
|
|
763
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
764
|
+
|
765
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
766
|
+
timeout ||= @sdk_configuration.timeout
|
767
|
+
|
464
768
|
connection = @sdk_configuration.client.dup
|
465
769
|
connection.request :retry, retry_options
|
466
770
|
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
771
|
+
hook_ctx = SDKHooks::HookContext.new(
|
772
|
+
base_url: base_url,
|
773
|
+
oauth2_scopes: [],
|
774
|
+
operation_id: 'lms_get_assignment',
|
775
|
+
security_source: @sdk_configuration.security_source
|
776
|
+
)
|
777
|
+
|
778
|
+
error = T.let(nil, T.nilable(StandardError))
|
779
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
780
|
+
|
781
|
+
begin
|
782
|
+
r = connection.get(url) do |req|
|
783
|
+
req.headers.merge!(headers)
|
784
|
+
req.options.timeout = timeout unless timeout.nil?
|
785
|
+
req.params = query_params
|
786
|
+
Utils.configure_request_security(req, security)
|
787
|
+
|
788
|
+
@sdk_configuration.hooks.before_request(
|
789
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
790
|
+
hook_ctx: hook_ctx
|
791
|
+
),
|
792
|
+
request: req
|
793
|
+
)
|
794
|
+
end
|
795
|
+
rescue StandardError => e
|
796
|
+
error = e
|
797
|
+
ensure
|
798
|
+
if r.nil? || Utils.error_status?(r.status)
|
799
|
+
r = @sdk_configuration.hooks.after_error(
|
800
|
+
error: error,
|
801
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
802
|
+
hook_ctx: hook_ctx
|
803
|
+
),
|
804
|
+
response: r
|
805
|
+
)
|
806
|
+
else
|
807
|
+
r = @sdk_configuration.hooks.after_success(
|
808
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
809
|
+
hook_ctx: hook_ctx
|
810
|
+
),
|
811
|
+
response: r
|
812
|
+
)
|
813
|
+
end
|
814
|
+
|
815
|
+
if r.nil?
|
816
|
+
raise error if !error.nil?
|
817
|
+
raise 'no response'
|
818
|
+
end
|
472
819
|
end
|
473
820
|
|
474
821
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -491,8 +838,8 @@ module StackOne
|
|
491
838
|
end
|
492
839
|
|
493
840
|
|
494
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsGetCategoryRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsGetCategoryResponse) }
|
495
|
-
def get_category(request, retries = nil)
|
841
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetCategoryRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetCategoryResponse) }
|
842
|
+
def get_category(request, retries = nil, timeout_ms = nil)
|
496
843
|
# get_category - Get Category
|
497
844
|
url, params = @sdk_configuration.get_server_details
|
498
845
|
base_url = Utils.template_url(url, params)
|
@@ -520,14 +867,62 @@ module StackOne
|
|
520
867
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
521
868
|
retry_options[:retry_statuses] = [429, 408]
|
522
869
|
|
870
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
871
|
+
|
872
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
873
|
+
timeout ||= @sdk_configuration.timeout
|
874
|
+
|
523
875
|
connection = @sdk_configuration.client.dup
|
524
876
|
connection.request :retry, retry_options
|
525
877
|
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
878
|
+
hook_ctx = SDKHooks::HookContext.new(
|
879
|
+
base_url: base_url,
|
880
|
+
oauth2_scopes: [],
|
881
|
+
operation_id: 'lms_get_category',
|
882
|
+
security_source: @sdk_configuration.security_source
|
883
|
+
)
|
884
|
+
|
885
|
+
error = T.let(nil, T.nilable(StandardError))
|
886
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
887
|
+
|
888
|
+
begin
|
889
|
+
r = connection.get(url) do |req|
|
890
|
+
req.headers.merge!(headers)
|
891
|
+
req.options.timeout = timeout unless timeout.nil?
|
892
|
+
req.params = query_params
|
893
|
+
Utils.configure_request_security(req, security)
|
894
|
+
|
895
|
+
@sdk_configuration.hooks.before_request(
|
896
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
897
|
+
hook_ctx: hook_ctx
|
898
|
+
),
|
899
|
+
request: req
|
900
|
+
)
|
901
|
+
end
|
902
|
+
rescue StandardError => e
|
903
|
+
error = e
|
904
|
+
ensure
|
905
|
+
if r.nil? || Utils.error_status?(r.status)
|
906
|
+
r = @sdk_configuration.hooks.after_error(
|
907
|
+
error: error,
|
908
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
909
|
+
hook_ctx: hook_ctx
|
910
|
+
),
|
911
|
+
response: r
|
912
|
+
)
|
913
|
+
else
|
914
|
+
r = @sdk_configuration.hooks.after_success(
|
915
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
916
|
+
hook_ctx: hook_ctx
|
917
|
+
),
|
918
|
+
response: r
|
919
|
+
)
|
920
|
+
end
|
921
|
+
|
922
|
+
if r.nil?
|
923
|
+
raise error if !error.nil?
|
924
|
+
raise 'no response'
|
925
|
+
end
|
531
926
|
end
|
532
927
|
|
533
928
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -550,8 +945,8 @@ module StackOne
|
|
550
945
|
end
|
551
946
|
|
552
947
|
|
553
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsGetCompletionRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsGetCompletionResponse) }
|
554
|
-
def get_completion(request, retries = nil)
|
948
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetCompletionRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetCompletionResponse) }
|
949
|
+
def get_completion(request, retries = nil, timeout_ms = nil)
|
555
950
|
# get_completion - Get Completion
|
556
951
|
url, params = @sdk_configuration.get_server_details
|
557
952
|
base_url = Utils.template_url(url, params)
|
@@ -579,14 +974,62 @@ module StackOne
|
|
579
974
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
580
975
|
retry_options[:retry_statuses] = [429, 408]
|
581
976
|
|
977
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
978
|
+
|
979
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
980
|
+
timeout ||= @sdk_configuration.timeout
|
981
|
+
|
582
982
|
connection = @sdk_configuration.client.dup
|
583
983
|
connection.request :retry, retry_options
|
584
984
|
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
985
|
+
hook_ctx = SDKHooks::HookContext.new(
|
986
|
+
base_url: base_url,
|
987
|
+
oauth2_scopes: [],
|
988
|
+
operation_id: 'lms_get_completion',
|
989
|
+
security_source: @sdk_configuration.security_source
|
990
|
+
)
|
991
|
+
|
992
|
+
error = T.let(nil, T.nilable(StandardError))
|
993
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
994
|
+
|
995
|
+
begin
|
996
|
+
r = connection.get(url) do |req|
|
997
|
+
req.headers.merge!(headers)
|
998
|
+
req.options.timeout = timeout unless timeout.nil?
|
999
|
+
req.params = query_params
|
1000
|
+
Utils.configure_request_security(req, security)
|
1001
|
+
|
1002
|
+
@sdk_configuration.hooks.before_request(
|
1003
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1004
|
+
hook_ctx: hook_ctx
|
1005
|
+
),
|
1006
|
+
request: req
|
1007
|
+
)
|
1008
|
+
end
|
1009
|
+
rescue StandardError => e
|
1010
|
+
error = e
|
1011
|
+
ensure
|
1012
|
+
if r.nil? || Utils.error_status?(r.status)
|
1013
|
+
r = @sdk_configuration.hooks.after_error(
|
1014
|
+
error: error,
|
1015
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1016
|
+
hook_ctx: hook_ctx
|
1017
|
+
),
|
1018
|
+
response: r
|
1019
|
+
)
|
1020
|
+
else
|
1021
|
+
r = @sdk_configuration.hooks.after_success(
|
1022
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1023
|
+
hook_ctx: hook_ctx
|
1024
|
+
),
|
1025
|
+
response: r
|
1026
|
+
)
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
if r.nil?
|
1030
|
+
raise error if !error.nil?
|
1031
|
+
raise 'no response'
|
1032
|
+
end
|
590
1033
|
end
|
591
1034
|
|
592
1035
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -609,8 +1052,8 @@ module StackOne
|
|
609
1052
|
end
|
610
1053
|
|
611
1054
|
|
612
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsGetContentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsGetContentResponse) }
|
613
|
-
def get_content(request, retries = nil)
|
1055
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetContentRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetContentResponse) }
|
1056
|
+
def get_content(request, retries = nil, timeout_ms = nil)
|
614
1057
|
# get_content - Get Content
|
615
1058
|
url, params = @sdk_configuration.get_server_details
|
616
1059
|
base_url = Utils.template_url(url, params)
|
@@ -638,14 +1081,62 @@ module StackOne
|
|
638
1081
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
639
1082
|
retry_options[:retry_statuses] = [429, 408]
|
640
1083
|
|
1084
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1085
|
+
|
1086
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1087
|
+
timeout ||= @sdk_configuration.timeout
|
1088
|
+
|
641
1089
|
connection = @sdk_configuration.client.dup
|
642
1090
|
connection.request :retry, retry_options
|
643
1091
|
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
1092
|
+
hook_ctx = SDKHooks::HookContext.new(
|
1093
|
+
base_url: base_url,
|
1094
|
+
oauth2_scopes: [],
|
1095
|
+
operation_id: 'lms_get_content',
|
1096
|
+
security_source: @sdk_configuration.security_source
|
1097
|
+
)
|
1098
|
+
|
1099
|
+
error = T.let(nil, T.nilable(StandardError))
|
1100
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
1101
|
+
|
1102
|
+
begin
|
1103
|
+
r = connection.get(url) do |req|
|
1104
|
+
req.headers.merge!(headers)
|
1105
|
+
req.options.timeout = timeout unless timeout.nil?
|
1106
|
+
req.params = query_params
|
1107
|
+
Utils.configure_request_security(req, security)
|
1108
|
+
|
1109
|
+
@sdk_configuration.hooks.before_request(
|
1110
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1111
|
+
hook_ctx: hook_ctx
|
1112
|
+
),
|
1113
|
+
request: req
|
1114
|
+
)
|
1115
|
+
end
|
1116
|
+
rescue StandardError => e
|
1117
|
+
error = e
|
1118
|
+
ensure
|
1119
|
+
if r.nil? || Utils.error_status?(r.status)
|
1120
|
+
r = @sdk_configuration.hooks.after_error(
|
1121
|
+
error: error,
|
1122
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1123
|
+
hook_ctx: hook_ctx
|
1124
|
+
),
|
1125
|
+
response: r
|
1126
|
+
)
|
1127
|
+
else
|
1128
|
+
r = @sdk_configuration.hooks.after_success(
|
1129
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1130
|
+
hook_ctx: hook_ctx
|
1131
|
+
),
|
1132
|
+
response: r
|
1133
|
+
)
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
if r.nil?
|
1137
|
+
raise error if !error.nil?
|
1138
|
+
raise 'no response'
|
1139
|
+
end
|
649
1140
|
end
|
650
1141
|
|
651
1142
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -668,8 +1159,8 @@ module StackOne
|
|
668
1159
|
end
|
669
1160
|
|
670
1161
|
|
671
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsGetCourseRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsGetCourseResponse) }
|
672
|
-
def get_course(request, retries = nil)
|
1162
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetCourseRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetCourseResponse) }
|
1163
|
+
def get_course(request, retries = nil, timeout_ms = nil)
|
673
1164
|
# get_course - Get Course
|
674
1165
|
url, params = @sdk_configuration.get_server_details
|
675
1166
|
base_url = Utils.template_url(url, params)
|
@@ -697,14 +1188,62 @@ module StackOne
|
|
697
1188
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
698
1189
|
retry_options[:retry_statuses] = [429, 408]
|
699
1190
|
|
1191
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1192
|
+
|
1193
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1194
|
+
timeout ||= @sdk_configuration.timeout
|
1195
|
+
|
700
1196
|
connection = @sdk_configuration.client.dup
|
701
1197
|
connection.request :retry, retry_options
|
702
1198
|
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
1199
|
+
hook_ctx = SDKHooks::HookContext.new(
|
1200
|
+
base_url: base_url,
|
1201
|
+
oauth2_scopes: [],
|
1202
|
+
operation_id: 'lms_get_course',
|
1203
|
+
security_source: @sdk_configuration.security_source
|
1204
|
+
)
|
1205
|
+
|
1206
|
+
error = T.let(nil, T.nilable(StandardError))
|
1207
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
1208
|
+
|
1209
|
+
begin
|
1210
|
+
r = connection.get(url) do |req|
|
1211
|
+
req.headers.merge!(headers)
|
1212
|
+
req.options.timeout = timeout unless timeout.nil?
|
1213
|
+
req.params = query_params
|
1214
|
+
Utils.configure_request_security(req, security)
|
1215
|
+
|
1216
|
+
@sdk_configuration.hooks.before_request(
|
1217
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1218
|
+
hook_ctx: hook_ctx
|
1219
|
+
),
|
1220
|
+
request: req
|
1221
|
+
)
|
1222
|
+
end
|
1223
|
+
rescue StandardError => e
|
1224
|
+
error = e
|
1225
|
+
ensure
|
1226
|
+
if r.nil? || Utils.error_status?(r.status)
|
1227
|
+
r = @sdk_configuration.hooks.after_error(
|
1228
|
+
error: error,
|
1229
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1230
|
+
hook_ctx: hook_ctx
|
1231
|
+
),
|
1232
|
+
response: r
|
1233
|
+
)
|
1234
|
+
else
|
1235
|
+
r = @sdk_configuration.hooks.after_success(
|
1236
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1237
|
+
hook_ctx: hook_ctx
|
1238
|
+
),
|
1239
|
+
response: r
|
1240
|
+
)
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
if r.nil?
|
1244
|
+
raise error if !error.nil?
|
1245
|
+
raise 'no response'
|
1246
|
+
end
|
708
1247
|
end
|
709
1248
|
|
710
1249
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -727,8 +1266,8 @@ module StackOne
|
|
727
1266
|
end
|
728
1267
|
|
729
1268
|
|
730
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsGetSkillRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsGetSkillResponse) }
|
731
|
-
def get_skill(request, retries = nil)
|
1269
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetSkillRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetSkillResponse) }
|
1270
|
+
def get_skill(request, retries = nil, timeout_ms = nil)
|
732
1271
|
# get_skill - Get Skill
|
733
1272
|
url, params = @sdk_configuration.get_server_details
|
734
1273
|
base_url = Utils.template_url(url, params)
|
@@ -756,14 +1295,62 @@ module StackOne
|
|
756
1295
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
757
1296
|
retry_options[:retry_statuses] = [429, 408]
|
758
1297
|
|
1298
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1299
|
+
|
1300
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1301
|
+
timeout ||= @sdk_configuration.timeout
|
1302
|
+
|
759
1303
|
connection = @sdk_configuration.client.dup
|
760
1304
|
connection.request :retry, retry_options
|
761
1305
|
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
1306
|
+
hook_ctx = SDKHooks::HookContext.new(
|
1307
|
+
base_url: base_url,
|
1308
|
+
oauth2_scopes: [],
|
1309
|
+
operation_id: 'lms_get_skill',
|
1310
|
+
security_source: @sdk_configuration.security_source
|
1311
|
+
)
|
1312
|
+
|
1313
|
+
error = T.let(nil, T.nilable(StandardError))
|
1314
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
1315
|
+
|
1316
|
+
begin
|
1317
|
+
r = connection.get(url) do |req|
|
1318
|
+
req.headers.merge!(headers)
|
1319
|
+
req.options.timeout = timeout unless timeout.nil?
|
1320
|
+
req.params = query_params
|
1321
|
+
Utils.configure_request_security(req, security)
|
1322
|
+
|
1323
|
+
@sdk_configuration.hooks.before_request(
|
1324
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1325
|
+
hook_ctx: hook_ctx
|
1326
|
+
),
|
1327
|
+
request: req
|
1328
|
+
)
|
1329
|
+
end
|
1330
|
+
rescue StandardError => e
|
1331
|
+
error = e
|
1332
|
+
ensure
|
1333
|
+
if r.nil? || Utils.error_status?(r.status)
|
1334
|
+
r = @sdk_configuration.hooks.after_error(
|
1335
|
+
error: error,
|
1336
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1337
|
+
hook_ctx: hook_ctx
|
1338
|
+
),
|
1339
|
+
response: r
|
1340
|
+
)
|
1341
|
+
else
|
1342
|
+
r = @sdk_configuration.hooks.after_success(
|
1343
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1344
|
+
hook_ctx: hook_ctx
|
1345
|
+
),
|
1346
|
+
response: r
|
1347
|
+
)
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
if r.nil?
|
1351
|
+
raise error if !error.nil?
|
1352
|
+
raise 'no response'
|
1353
|
+
end
|
767
1354
|
end
|
768
1355
|
|
769
1356
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -786,8 +1373,8 @@ module StackOne
|
|
786
1373
|
end
|
787
1374
|
|
788
1375
|
|
789
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsGetUserRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsGetUserResponse) }
|
790
|
-
def get_user(request, retries = nil)
|
1376
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetUserRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetUserResponse) }
|
1377
|
+
def get_user(request, retries = nil, timeout_ms = nil)
|
791
1378
|
# get_user - Get User
|
792
1379
|
url, params = @sdk_configuration.get_server_details
|
793
1380
|
base_url = Utils.template_url(url, params)
|
@@ -815,14 +1402,62 @@ module StackOne
|
|
815
1402
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
816
1403
|
retry_options[:retry_statuses] = [429, 408]
|
817
1404
|
|
1405
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1406
|
+
|
1407
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1408
|
+
timeout ||= @sdk_configuration.timeout
|
1409
|
+
|
818
1410
|
connection = @sdk_configuration.client.dup
|
819
1411
|
connection.request :retry, retry_options
|
820
1412
|
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
1413
|
+
hook_ctx = SDKHooks::HookContext.new(
|
1414
|
+
base_url: base_url,
|
1415
|
+
oauth2_scopes: [],
|
1416
|
+
operation_id: 'lms_get_user',
|
1417
|
+
security_source: @sdk_configuration.security_source
|
1418
|
+
)
|
1419
|
+
|
1420
|
+
error = T.let(nil, T.nilable(StandardError))
|
1421
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
1422
|
+
|
1423
|
+
begin
|
1424
|
+
r = connection.get(url) do |req|
|
1425
|
+
req.headers.merge!(headers)
|
1426
|
+
req.options.timeout = timeout unless timeout.nil?
|
1427
|
+
req.params = query_params
|
1428
|
+
Utils.configure_request_security(req, security)
|
1429
|
+
|
1430
|
+
@sdk_configuration.hooks.before_request(
|
1431
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1432
|
+
hook_ctx: hook_ctx
|
1433
|
+
),
|
1434
|
+
request: req
|
1435
|
+
)
|
1436
|
+
end
|
1437
|
+
rescue StandardError => e
|
1438
|
+
error = e
|
1439
|
+
ensure
|
1440
|
+
if r.nil? || Utils.error_status?(r.status)
|
1441
|
+
r = @sdk_configuration.hooks.after_error(
|
1442
|
+
error: error,
|
1443
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1444
|
+
hook_ctx: hook_ctx
|
1445
|
+
),
|
1446
|
+
response: r
|
1447
|
+
)
|
1448
|
+
else
|
1449
|
+
r = @sdk_configuration.hooks.after_success(
|
1450
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1451
|
+
hook_ctx: hook_ctx
|
1452
|
+
),
|
1453
|
+
response: r
|
1454
|
+
)
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
if r.nil?
|
1458
|
+
raise error if !error.nil?
|
1459
|
+
raise 'no response'
|
1460
|
+
end
|
826
1461
|
end
|
827
1462
|
|
828
1463
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -845,8 +1480,8 @@ module StackOne
|
|
845
1480
|
end
|
846
1481
|
|
847
1482
|
|
848
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsGetUserAssignmentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsGetUserAssignmentResponse) }
|
849
|
-
def get_user_assignment(request, retries = nil)
|
1483
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetUserAssignmentRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetUserAssignmentResponse) }
|
1484
|
+
def get_user_assignment(request, retries = nil, timeout_ms = nil)
|
850
1485
|
# get_user_assignment - Get User Assignment
|
851
1486
|
url, params = @sdk_configuration.get_server_details
|
852
1487
|
base_url = Utils.template_url(url, params)
|
@@ -874,14 +1509,62 @@ module StackOne
|
|
874
1509
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
875
1510
|
retry_options[:retry_statuses] = [429, 408]
|
876
1511
|
|
1512
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1513
|
+
|
1514
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1515
|
+
timeout ||= @sdk_configuration.timeout
|
1516
|
+
|
877
1517
|
connection = @sdk_configuration.client.dup
|
878
1518
|
connection.request :retry, retry_options
|
879
1519
|
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
1520
|
+
hook_ctx = SDKHooks::HookContext.new(
|
1521
|
+
base_url: base_url,
|
1522
|
+
oauth2_scopes: [],
|
1523
|
+
operation_id: 'lms_get_user_assignment',
|
1524
|
+
security_source: @sdk_configuration.security_source
|
1525
|
+
)
|
1526
|
+
|
1527
|
+
error = T.let(nil, T.nilable(StandardError))
|
1528
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
1529
|
+
|
1530
|
+
begin
|
1531
|
+
r = connection.get(url) do |req|
|
1532
|
+
req.headers.merge!(headers)
|
1533
|
+
req.options.timeout = timeout unless timeout.nil?
|
1534
|
+
req.params = query_params
|
1535
|
+
Utils.configure_request_security(req, security)
|
1536
|
+
|
1537
|
+
@sdk_configuration.hooks.before_request(
|
1538
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1539
|
+
hook_ctx: hook_ctx
|
1540
|
+
),
|
1541
|
+
request: req
|
1542
|
+
)
|
1543
|
+
end
|
1544
|
+
rescue StandardError => e
|
1545
|
+
error = e
|
1546
|
+
ensure
|
1547
|
+
if r.nil? || Utils.error_status?(r.status)
|
1548
|
+
r = @sdk_configuration.hooks.after_error(
|
1549
|
+
error: error,
|
1550
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1551
|
+
hook_ctx: hook_ctx
|
1552
|
+
),
|
1553
|
+
response: r
|
1554
|
+
)
|
1555
|
+
else
|
1556
|
+
r = @sdk_configuration.hooks.after_success(
|
1557
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1558
|
+
hook_ctx: hook_ctx
|
1559
|
+
),
|
1560
|
+
response: r
|
1561
|
+
)
|
1562
|
+
end
|
1563
|
+
|
1564
|
+
if r.nil?
|
1565
|
+
raise error if !error.nil?
|
1566
|
+
raise 'no response'
|
1567
|
+
end
|
885
1568
|
end
|
886
1569
|
|
887
1570
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -904,8 +1587,8 @@ module StackOne
|
|
904
1587
|
end
|
905
1588
|
|
906
1589
|
|
907
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsGetUserCompletionRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsGetUserCompletionResponse) }
|
908
|
-
def get_user_completion(request, retries = nil)
|
1590
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetUserCompletionRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetUserCompletionResponse) }
|
1591
|
+
def get_user_completion(request, retries = nil, timeout_ms = nil)
|
909
1592
|
# get_user_completion - Get User Completion
|
910
1593
|
url, params = @sdk_configuration.get_server_details
|
911
1594
|
base_url = Utils.template_url(url, params)
|
@@ -933,14 +1616,62 @@ module StackOne
|
|
933
1616
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
934
1617
|
retry_options[:retry_statuses] = [429, 408]
|
935
1618
|
|
1619
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1620
|
+
|
1621
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1622
|
+
timeout ||= @sdk_configuration.timeout
|
1623
|
+
|
936
1624
|
connection = @sdk_configuration.client.dup
|
937
1625
|
connection.request :retry, retry_options
|
938
1626
|
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
1627
|
+
hook_ctx = SDKHooks::HookContext.new(
|
1628
|
+
base_url: base_url,
|
1629
|
+
oauth2_scopes: [],
|
1630
|
+
operation_id: 'lms_get_user_completion',
|
1631
|
+
security_source: @sdk_configuration.security_source
|
1632
|
+
)
|
1633
|
+
|
1634
|
+
error = T.let(nil, T.nilable(StandardError))
|
1635
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
1636
|
+
|
1637
|
+
begin
|
1638
|
+
r = connection.get(url) do |req|
|
1639
|
+
req.headers.merge!(headers)
|
1640
|
+
req.options.timeout = timeout unless timeout.nil?
|
1641
|
+
req.params = query_params
|
1642
|
+
Utils.configure_request_security(req, security)
|
1643
|
+
|
1644
|
+
@sdk_configuration.hooks.before_request(
|
1645
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1646
|
+
hook_ctx: hook_ctx
|
1647
|
+
),
|
1648
|
+
request: req
|
1649
|
+
)
|
1650
|
+
end
|
1651
|
+
rescue StandardError => e
|
1652
|
+
error = e
|
1653
|
+
ensure
|
1654
|
+
if r.nil? || Utils.error_status?(r.status)
|
1655
|
+
r = @sdk_configuration.hooks.after_error(
|
1656
|
+
error: error,
|
1657
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1658
|
+
hook_ctx: hook_ctx
|
1659
|
+
),
|
1660
|
+
response: r
|
1661
|
+
)
|
1662
|
+
else
|
1663
|
+
r = @sdk_configuration.hooks.after_success(
|
1664
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1665
|
+
hook_ctx: hook_ctx
|
1666
|
+
),
|
1667
|
+
response: r
|
1668
|
+
)
|
1669
|
+
end
|
1670
|
+
|
1671
|
+
if r.nil?
|
1672
|
+
raise error if !error.nil?
|
1673
|
+
raise 'no response'
|
1674
|
+
end
|
944
1675
|
end
|
945
1676
|
|
946
1677
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -963,8 +1694,8 @@ module StackOne
|
|
963
1694
|
end
|
964
1695
|
|
965
1696
|
|
966
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsListAssignmentsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsListAssignmentsResponse) }
|
967
|
-
def list_assignments(request, retries = nil)
|
1697
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsListAssignmentsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsListAssignmentsResponse) }
|
1698
|
+
def list_assignments(request, retries = nil, timeout_ms = nil)
|
968
1699
|
# list_assignments - List Assignments
|
969
1700
|
url, params = @sdk_configuration.get_server_details
|
970
1701
|
base_url = Utils.template_url(url, params)
|
@@ -987,14 +1718,62 @@ module StackOne
|
|
987
1718
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
988
1719
|
retry_options[:retry_statuses] = [429, 408]
|
989
1720
|
|
1721
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1722
|
+
|
1723
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1724
|
+
timeout ||= @sdk_configuration.timeout
|
1725
|
+
|
990
1726
|
connection = @sdk_configuration.client.dup
|
991
1727
|
connection.request :retry, retry_options
|
992
1728
|
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
1729
|
+
hook_ctx = SDKHooks::HookContext.new(
|
1730
|
+
base_url: base_url,
|
1731
|
+
oauth2_scopes: [],
|
1732
|
+
operation_id: 'lms_list_assignments',
|
1733
|
+
security_source: @sdk_configuration.security_source
|
1734
|
+
)
|
1735
|
+
|
1736
|
+
error = T.let(nil, T.nilable(StandardError))
|
1737
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
1738
|
+
|
1739
|
+
begin
|
1740
|
+
r = connection.get(url) do |req|
|
1741
|
+
req.headers.merge!(headers)
|
1742
|
+
req.options.timeout = timeout unless timeout.nil?
|
1743
|
+
req.params = query_params
|
1744
|
+
Utils.configure_request_security(req, security)
|
1745
|
+
|
1746
|
+
@sdk_configuration.hooks.before_request(
|
1747
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1748
|
+
hook_ctx: hook_ctx
|
1749
|
+
),
|
1750
|
+
request: req
|
1751
|
+
)
|
1752
|
+
end
|
1753
|
+
rescue StandardError => e
|
1754
|
+
error = e
|
1755
|
+
ensure
|
1756
|
+
if r.nil? || Utils.error_status?(r.status)
|
1757
|
+
r = @sdk_configuration.hooks.after_error(
|
1758
|
+
error: error,
|
1759
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1760
|
+
hook_ctx: hook_ctx
|
1761
|
+
),
|
1762
|
+
response: r
|
1763
|
+
)
|
1764
|
+
else
|
1765
|
+
r = @sdk_configuration.hooks.after_success(
|
1766
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1767
|
+
hook_ctx: hook_ctx
|
1768
|
+
),
|
1769
|
+
response: r
|
1770
|
+
)
|
1771
|
+
end
|
1772
|
+
|
1773
|
+
if r.nil?
|
1774
|
+
raise error if !error.nil?
|
1775
|
+
raise 'no response'
|
1776
|
+
end
|
998
1777
|
end
|
999
1778
|
|
1000
1779
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1017,8 +1796,8 @@ module StackOne
|
|
1017
1796
|
end
|
1018
1797
|
|
1019
1798
|
|
1020
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsListCategoriesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsListCategoriesResponse) }
|
1021
|
-
def list_categories(request, retries = nil)
|
1799
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsListCategoriesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsListCategoriesResponse) }
|
1800
|
+
def list_categories(request, retries = nil, timeout_ms = nil)
|
1022
1801
|
# list_categories - List Categories
|
1023
1802
|
url, params = @sdk_configuration.get_server_details
|
1024
1803
|
base_url = Utils.template_url(url, params)
|
@@ -1041,14 +1820,62 @@ module StackOne
|
|
1041
1820
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1042
1821
|
retry_options[:retry_statuses] = [429, 408]
|
1043
1822
|
|
1823
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1824
|
+
|
1825
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1826
|
+
timeout ||= @sdk_configuration.timeout
|
1827
|
+
|
1044
1828
|
connection = @sdk_configuration.client.dup
|
1045
1829
|
connection.request :retry, retry_options
|
1046
1830
|
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1831
|
+
hook_ctx = SDKHooks::HookContext.new(
|
1832
|
+
base_url: base_url,
|
1833
|
+
oauth2_scopes: [],
|
1834
|
+
operation_id: 'lms_list_categories',
|
1835
|
+
security_source: @sdk_configuration.security_source
|
1836
|
+
)
|
1837
|
+
|
1838
|
+
error = T.let(nil, T.nilable(StandardError))
|
1839
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
1840
|
+
|
1841
|
+
begin
|
1842
|
+
r = connection.get(url) do |req|
|
1843
|
+
req.headers.merge!(headers)
|
1844
|
+
req.options.timeout = timeout unless timeout.nil?
|
1845
|
+
req.params = query_params
|
1846
|
+
Utils.configure_request_security(req, security)
|
1847
|
+
|
1848
|
+
@sdk_configuration.hooks.before_request(
|
1849
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1850
|
+
hook_ctx: hook_ctx
|
1851
|
+
),
|
1852
|
+
request: req
|
1853
|
+
)
|
1854
|
+
end
|
1855
|
+
rescue StandardError => e
|
1856
|
+
error = e
|
1857
|
+
ensure
|
1858
|
+
if r.nil? || Utils.error_status?(r.status)
|
1859
|
+
r = @sdk_configuration.hooks.after_error(
|
1860
|
+
error: error,
|
1861
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1862
|
+
hook_ctx: hook_ctx
|
1863
|
+
),
|
1864
|
+
response: r
|
1865
|
+
)
|
1866
|
+
else
|
1867
|
+
r = @sdk_configuration.hooks.after_success(
|
1868
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1869
|
+
hook_ctx: hook_ctx
|
1870
|
+
),
|
1871
|
+
response: r
|
1872
|
+
)
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
if r.nil?
|
1876
|
+
raise error if !error.nil?
|
1877
|
+
raise 'no response'
|
1878
|
+
end
|
1052
1879
|
end
|
1053
1880
|
|
1054
1881
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1071,8 +1898,8 @@ module StackOne
|
|
1071
1898
|
end
|
1072
1899
|
|
1073
1900
|
|
1074
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsListCompletionsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsListCompletionsResponse) }
|
1075
|
-
def list_completions(request, retries = nil)
|
1901
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsListCompletionsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsListCompletionsResponse) }
|
1902
|
+
def list_completions(request, retries = nil, timeout_ms = nil)
|
1076
1903
|
# list_completions - List Completions
|
1077
1904
|
url, params = @sdk_configuration.get_server_details
|
1078
1905
|
base_url = Utils.template_url(url, params)
|
@@ -1095,14 +1922,62 @@ module StackOne
|
|
1095
1922
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1096
1923
|
retry_options[:retry_statuses] = [429, 408]
|
1097
1924
|
|
1925
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1926
|
+
|
1927
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1928
|
+
timeout ||= @sdk_configuration.timeout
|
1929
|
+
|
1098
1930
|
connection = @sdk_configuration.client.dup
|
1099
1931
|
connection.request :retry, retry_options
|
1100
1932
|
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1933
|
+
hook_ctx = SDKHooks::HookContext.new(
|
1934
|
+
base_url: base_url,
|
1935
|
+
oauth2_scopes: [],
|
1936
|
+
operation_id: 'lms_list_completions',
|
1937
|
+
security_source: @sdk_configuration.security_source
|
1938
|
+
)
|
1939
|
+
|
1940
|
+
error = T.let(nil, T.nilable(StandardError))
|
1941
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
1942
|
+
|
1943
|
+
begin
|
1944
|
+
r = connection.get(url) do |req|
|
1945
|
+
req.headers.merge!(headers)
|
1946
|
+
req.options.timeout = timeout unless timeout.nil?
|
1947
|
+
req.params = query_params
|
1948
|
+
Utils.configure_request_security(req, security)
|
1949
|
+
|
1950
|
+
@sdk_configuration.hooks.before_request(
|
1951
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1952
|
+
hook_ctx: hook_ctx
|
1953
|
+
),
|
1954
|
+
request: req
|
1955
|
+
)
|
1956
|
+
end
|
1957
|
+
rescue StandardError => e
|
1958
|
+
error = e
|
1959
|
+
ensure
|
1960
|
+
if r.nil? || Utils.error_status?(r.status)
|
1961
|
+
r = @sdk_configuration.hooks.after_error(
|
1962
|
+
error: error,
|
1963
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1964
|
+
hook_ctx: hook_ctx
|
1965
|
+
),
|
1966
|
+
response: r
|
1967
|
+
)
|
1968
|
+
else
|
1969
|
+
r = @sdk_configuration.hooks.after_success(
|
1970
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1971
|
+
hook_ctx: hook_ctx
|
1972
|
+
),
|
1973
|
+
response: r
|
1974
|
+
)
|
1975
|
+
end
|
1976
|
+
|
1977
|
+
if r.nil?
|
1978
|
+
raise error if !error.nil?
|
1979
|
+
raise 'no response'
|
1980
|
+
end
|
1106
1981
|
end
|
1107
1982
|
|
1108
1983
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1125,8 +2000,8 @@ module StackOne
|
|
1125
2000
|
end
|
1126
2001
|
|
1127
2002
|
|
1128
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsListContentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsListContentResponse) }
|
1129
|
-
def list_content(request, retries = nil)
|
2003
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsListContentRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsListContentResponse) }
|
2004
|
+
def list_content(request, retries = nil, timeout_ms = nil)
|
1130
2005
|
# list_content - List Content
|
1131
2006
|
url, params = @sdk_configuration.get_server_details
|
1132
2007
|
base_url = Utils.template_url(url, params)
|
@@ -1149,14 +2024,62 @@ module StackOne
|
|
1149
2024
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1150
2025
|
retry_options[:retry_statuses] = [429, 408]
|
1151
2026
|
|
2027
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2028
|
+
|
2029
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
2030
|
+
timeout ||= @sdk_configuration.timeout
|
2031
|
+
|
1152
2032
|
connection = @sdk_configuration.client.dup
|
1153
2033
|
connection.request :retry, retry_options
|
1154
2034
|
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
2035
|
+
hook_ctx = SDKHooks::HookContext.new(
|
2036
|
+
base_url: base_url,
|
2037
|
+
oauth2_scopes: [],
|
2038
|
+
operation_id: 'lms_list_content',
|
2039
|
+
security_source: @sdk_configuration.security_source
|
2040
|
+
)
|
2041
|
+
|
2042
|
+
error = T.let(nil, T.nilable(StandardError))
|
2043
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
2044
|
+
|
2045
|
+
begin
|
2046
|
+
r = connection.get(url) do |req|
|
2047
|
+
req.headers.merge!(headers)
|
2048
|
+
req.options.timeout = timeout unless timeout.nil?
|
2049
|
+
req.params = query_params
|
2050
|
+
Utils.configure_request_security(req, security)
|
2051
|
+
|
2052
|
+
@sdk_configuration.hooks.before_request(
|
2053
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
2054
|
+
hook_ctx: hook_ctx
|
2055
|
+
),
|
2056
|
+
request: req
|
2057
|
+
)
|
2058
|
+
end
|
2059
|
+
rescue StandardError => e
|
2060
|
+
error = e
|
2061
|
+
ensure
|
2062
|
+
if r.nil? || Utils.error_status?(r.status)
|
2063
|
+
r = @sdk_configuration.hooks.after_error(
|
2064
|
+
error: error,
|
2065
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2066
|
+
hook_ctx: hook_ctx
|
2067
|
+
),
|
2068
|
+
response: r
|
2069
|
+
)
|
2070
|
+
else
|
2071
|
+
r = @sdk_configuration.hooks.after_success(
|
2072
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2073
|
+
hook_ctx: hook_ctx
|
2074
|
+
),
|
2075
|
+
response: r
|
2076
|
+
)
|
2077
|
+
end
|
2078
|
+
|
2079
|
+
if r.nil?
|
2080
|
+
raise error if !error.nil?
|
2081
|
+
raise 'no response'
|
2082
|
+
end
|
1160
2083
|
end
|
1161
2084
|
|
1162
2085
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1179,8 +2102,8 @@ module StackOne
|
|
1179
2102
|
end
|
1180
2103
|
|
1181
2104
|
|
1182
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsListCoursesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsListCoursesResponse) }
|
1183
|
-
def list_courses(request, retries = nil)
|
2105
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsListCoursesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsListCoursesResponse) }
|
2106
|
+
def list_courses(request, retries = nil, timeout_ms = nil)
|
1184
2107
|
# list_courses - List Courses
|
1185
2108
|
url, params = @sdk_configuration.get_server_details
|
1186
2109
|
base_url = Utils.template_url(url, params)
|
@@ -1203,14 +2126,62 @@ module StackOne
|
|
1203
2126
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1204
2127
|
retry_options[:retry_statuses] = [429, 408]
|
1205
2128
|
|
2129
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2130
|
+
|
2131
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
2132
|
+
timeout ||= @sdk_configuration.timeout
|
2133
|
+
|
1206
2134
|
connection = @sdk_configuration.client.dup
|
1207
2135
|
connection.request :retry, retry_options
|
1208
2136
|
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
2137
|
+
hook_ctx = SDKHooks::HookContext.new(
|
2138
|
+
base_url: base_url,
|
2139
|
+
oauth2_scopes: [],
|
2140
|
+
operation_id: 'lms_list_courses',
|
2141
|
+
security_source: @sdk_configuration.security_source
|
2142
|
+
)
|
2143
|
+
|
2144
|
+
error = T.let(nil, T.nilable(StandardError))
|
2145
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
2146
|
+
|
2147
|
+
begin
|
2148
|
+
r = connection.get(url) do |req|
|
2149
|
+
req.headers.merge!(headers)
|
2150
|
+
req.options.timeout = timeout unless timeout.nil?
|
2151
|
+
req.params = query_params
|
2152
|
+
Utils.configure_request_security(req, security)
|
2153
|
+
|
2154
|
+
@sdk_configuration.hooks.before_request(
|
2155
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
2156
|
+
hook_ctx: hook_ctx
|
2157
|
+
),
|
2158
|
+
request: req
|
2159
|
+
)
|
2160
|
+
end
|
2161
|
+
rescue StandardError => e
|
2162
|
+
error = e
|
2163
|
+
ensure
|
2164
|
+
if r.nil? || Utils.error_status?(r.status)
|
2165
|
+
r = @sdk_configuration.hooks.after_error(
|
2166
|
+
error: error,
|
2167
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2168
|
+
hook_ctx: hook_ctx
|
2169
|
+
),
|
2170
|
+
response: r
|
2171
|
+
)
|
2172
|
+
else
|
2173
|
+
r = @sdk_configuration.hooks.after_success(
|
2174
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2175
|
+
hook_ctx: hook_ctx
|
2176
|
+
),
|
2177
|
+
response: r
|
2178
|
+
)
|
2179
|
+
end
|
2180
|
+
|
2181
|
+
if r.nil?
|
2182
|
+
raise error if !error.nil?
|
2183
|
+
raise 'no response'
|
2184
|
+
end
|
1214
2185
|
end
|
1215
2186
|
|
1216
2187
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1233,8 +2204,8 @@ module StackOne
|
|
1233
2204
|
end
|
1234
2205
|
|
1235
2206
|
|
1236
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsListSkillsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsListSkillsResponse) }
|
1237
|
-
def list_skills(request, retries = nil)
|
2207
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsListSkillsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsListSkillsResponse) }
|
2208
|
+
def list_skills(request, retries = nil, timeout_ms = nil)
|
1238
2209
|
# list_skills - List Skills
|
1239
2210
|
url, params = @sdk_configuration.get_server_details
|
1240
2211
|
base_url = Utils.template_url(url, params)
|
@@ -1257,14 +2228,62 @@ module StackOne
|
|
1257
2228
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1258
2229
|
retry_options[:retry_statuses] = [429, 408]
|
1259
2230
|
|
2231
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2232
|
+
|
2233
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
2234
|
+
timeout ||= @sdk_configuration.timeout
|
2235
|
+
|
1260
2236
|
connection = @sdk_configuration.client.dup
|
1261
2237
|
connection.request :retry, retry_options
|
1262
2238
|
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
2239
|
+
hook_ctx = SDKHooks::HookContext.new(
|
2240
|
+
base_url: base_url,
|
2241
|
+
oauth2_scopes: [],
|
2242
|
+
operation_id: 'lms_list_skills',
|
2243
|
+
security_source: @sdk_configuration.security_source
|
2244
|
+
)
|
2245
|
+
|
2246
|
+
error = T.let(nil, T.nilable(StandardError))
|
2247
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
2248
|
+
|
2249
|
+
begin
|
2250
|
+
r = connection.get(url) do |req|
|
2251
|
+
req.headers.merge!(headers)
|
2252
|
+
req.options.timeout = timeout unless timeout.nil?
|
2253
|
+
req.params = query_params
|
2254
|
+
Utils.configure_request_security(req, security)
|
2255
|
+
|
2256
|
+
@sdk_configuration.hooks.before_request(
|
2257
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
2258
|
+
hook_ctx: hook_ctx
|
2259
|
+
),
|
2260
|
+
request: req
|
2261
|
+
)
|
2262
|
+
end
|
2263
|
+
rescue StandardError => e
|
2264
|
+
error = e
|
2265
|
+
ensure
|
2266
|
+
if r.nil? || Utils.error_status?(r.status)
|
2267
|
+
r = @sdk_configuration.hooks.after_error(
|
2268
|
+
error: error,
|
2269
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2270
|
+
hook_ctx: hook_ctx
|
2271
|
+
),
|
2272
|
+
response: r
|
2273
|
+
)
|
2274
|
+
else
|
2275
|
+
r = @sdk_configuration.hooks.after_success(
|
2276
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2277
|
+
hook_ctx: hook_ctx
|
2278
|
+
),
|
2279
|
+
response: r
|
2280
|
+
)
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
if r.nil?
|
2284
|
+
raise error if !error.nil?
|
2285
|
+
raise 'no response'
|
2286
|
+
end
|
1268
2287
|
end
|
1269
2288
|
|
1270
2289
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1287,8 +2306,8 @@ module StackOne
|
|
1287
2306
|
end
|
1288
2307
|
|
1289
2308
|
|
1290
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsListUserAssignmentsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsListUserAssignmentsResponse) }
|
1291
|
-
def list_user_assignments(request, retries = nil)
|
2309
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsListUserAssignmentsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsListUserAssignmentsResponse) }
|
2310
|
+
def list_user_assignments(request, retries = nil, timeout_ms = nil)
|
1292
2311
|
# list_user_assignments - List User Assignments
|
1293
2312
|
url, params = @sdk_configuration.get_server_details
|
1294
2313
|
base_url = Utils.template_url(url, params)
|
@@ -1316,14 +2335,62 @@ module StackOne
|
|
1316
2335
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1317
2336
|
retry_options[:retry_statuses] = [429, 408]
|
1318
2337
|
|
2338
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2339
|
+
|
2340
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
2341
|
+
timeout ||= @sdk_configuration.timeout
|
2342
|
+
|
1319
2343
|
connection = @sdk_configuration.client.dup
|
1320
2344
|
connection.request :retry, retry_options
|
1321
2345
|
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
2346
|
+
hook_ctx = SDKHooks::HookContext.new(
|
2347
|
+
base_url: base_url,
|
2348
|
+
oauth2_scopes: [],
|
2349
|
+
operation_id: 'lms_list_user_assignments',
|
2350
|
+
security_source: @sdk_configuration.security_source
|
2351
|
+
)
|
2352
|
+
|
2353
|
+
error = T.let(nil, T.nilable(StandardError))
|
2354
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
2355
|
+
|
2356
|
+
begin
|
2357
|
+
r = connection.get(url) do |req|
|
2358
|
+
req.headers.merge!(headers)
|
2359
|
+
req.options.timeout = timeout unless timeout.nil?
|
2360
|
+
req.params = query_params
|
2361
|
+
Utils.configure_request_security(req, security)
|
2362
|
+
|
2363
|
+
@sdk_configuration.hooks.before_request(
|
2364
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
2365
|
+
hook_ctx: hook_ctx
|
2366
|
+
),
|
2367
|
+
request: req
|
2368
|
+
)
|
2369
|
+
end
|
2370
|
+
rescue StandardError => e
|
2371
|
+
error = e
|
2372
|
+
ensure
|
2373
|
+
if r.nil? || Utils.error_status?(r.status)
|
2374
|
+
r = @sdk_configuration.hooks.after_error(
|
2375
|
+
error: error,
|
2376
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2377
|
+
hook_ctx: hook_ctx
|
2378
|
+
),
|
2379
|
+
response: r
|
2380
|
+
)
|
2381
|
+
else
|
2382
|
+
r = @sdk_configuration.hooks.after_success(
|
2383
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2384
|
+
hook_ctx: hook_ctx
|
2385
|
+
),
|
2386
|
+
response: r
|
2387
|
+
)
|
2388
|
+
end
|
2389
|
+
|
2390
|
+
if r.nil?
|
2391
|
+
raise error if !error.nil?
|
2392
|
+
raise 'no response'
|
2393
|
+
end
|
1327
2394
|
end
|
1328
2395
|
|
1329
2396
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1346,8 +2413,8 @@ module StackOne
|
|
1346
2413
|
end
|
1347
2414
|
|
1348
2415
|
|
1349
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsListUserCompletionsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsListUserCompletionsResponse) }
|
1350
|
-
def list_user_completions(request, retries = nil)
|
2416
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsListUserCompletionsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsListUserCompletionsResponse) }
|
2417
|
+
def list_user_completions(request, retries = nil, timeout_ms = nil)
|
1351
2418
|
# list_user_completions - List User Completions
|
1352
2419
|
url, params = @sdk_configuration.get_server_details
|
1353
2420
|
base_url = Utils.template_url(url, params)
|
@@ -1375,14 +2442,62 @@ module StackOne
|
|
1375
2442
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1376
2443
|
retry_options[:retry_statuses] = [429, 408]
|
1377
2444
|
|
2445
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2446
|
+
|
2447
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
2448
|
+
timeout ||= @sdk_configuration.timeout
|
2449
|
+
|
1378
2450
|
connection = @sdk_configuration.client.dup
|
1379
2451
|
connection.request :retry, retry_options
|
1380
2452
|
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
2453
|
+
hook_ctx = SDKHooks::HookContext.new(
|
2454
|
+
base_url: base_url,
|
2455
|
+
oauth2_scopes: [],
|
2456
|
+
operation_id: 'lms_list_user_completions',
|
2457
|
+
security_source: @sdk_configuration.security_source
|
2458
|
+
)
|
2459
|
+
|
2460
|
+
error = T.let(nil, T.nilable(StandardError))
|
2461
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
2462
|
+
|
2463
|
+
begin
|
2464
|
+
r = connection.get(url) do |req|
|
2465
|
+
req.headers.merge!(headers)
|
2466
|
+
req.options.timeout = timeout unless timeout.nil?
|
2467
|
+
req.params = query_params
|
2468
|
+
Utils.configure_request_security(req, security)
|
2469
|
+
|
2470
|
+
@sdk_configuration.hooks.before_request(
|
2471
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
2472
|
+
hook_ctx: hook_ctx
|
2473
|
+
),
|
2474
|
+
request: req
|
2475
|
+
)
|
2476
|
+
end
|
2477
|
+
rescue StandardError => e
|
2478
|
+
error = e
|
2479
|
+
ensure
|
2480
|
+
if r.nil? || Utils.error_status?(r.status)
|
2481
|
+
r = @sdk_configuration.hooks.after_error(
|
2482
|
+
error: error,
|
2483
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2484
|
+
hook_ctx: hook_ctx
|
2485
|
+
),
|
2486
|
+
response: r
|
2487
|
+
)
|
2488
|
+
else
|
2489
|
+
r = @sdk_configuration.hooks.after_success(
|
2490
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2491
|
+
hook_ctx: hook_ctx
|
2492
|
+
),
|
2493
|
+
response: r
|
2494
|
+
)
|
2495
|
+
end
|
2496
|
+
|
2497
|
+
if r.nil?
|
2498
|
+
raise error if !error.nil?
|
2499
|
+
raise 'no response'
|
2500
|
+
end
|
1386
2501
|
end
|
1387
2502
|
|
1388
2503
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1405,8 +2520,8 @@ module StackOne
|
|
1405
2520
|
end
|
1406
2521
|
|
1407
2522
|
|
1408
|
-
sig { params(request: T.nilable(::StackOne::Operations::LmsListUsersRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsListUsersResponse) }
|
1409
|
-
def list_users(request, retries = nil)
|
2523
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsListUsersRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsListUsersResponse) }
|
2524
|
+
def list_users(request, retries = nil, timeout_ms = nil)
|
1410
2525
|
# list_users - List Users
|
1411
2526
|
url, params = @sdk_configuration.get_server_details
|
1412
2527
|
base_url = Utils.template_url(url, params)
|
@@ -1429,14 +2544,62 @@ module StackOne
|
|
1429
2544
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1430
2545
|
retry_options[:retry_statuses] = [429, 408]
|
1431
2546
|
|
2547
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2548
|
+
|
2549
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
2550
|
+
timeout ||= @sdk_configuration.timeout
|
2551
|
+
|
1432
2552
|
connection = @sdk_configuration.client.dup
|
1433
2553
|
connection.request :retry, retry_options
|
1434
2554
|
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
2555
|
+
hook_ctx = SDKHooks::HookContext.new(
|
2556
|
+
base_url: base_url,
|
2557
|
+
oauth2_scopes: [],
|
2558
|
+
operation_id: 'lms_list_users',
|
2559
|
+
security_source: @sdk_configuration.security_source
|
2560
|
+
)
|
2561
|
+
|
2562
|
+
error = T.let(nil, T.nilable(StandardError))
|
2563
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
2564
|
+
|
2565
|
+
begin
|
2566
|
+
r = connection.get(url) do |req|
|
2567
|
+
req.headers.merge!(headers)
|
2568
|
+
req.options.timeout = timeout unless timeout.nil?
|
2569
|
+
req.params = query_params
|
2570
|
+
Utils.configure_request_security(req, security)
|
2571
|
+
|
2572
|
+
@sdk_configuration.hooks.before_request(
|
2573
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
2574
|
+
hook_ctx: hook_ctx
|
2575
|
+
),
|
2576
|
+
request: req
|
2577
|
+
)
|
2578
|
+
end
|
2579
|
+
rescue StandardError => e
|
2580
|
+
error = e
|
2581
|
+
ensure
|
2582
|
+
if r.nil? || Utils.error_status?(r.status)
|
2583
|
+
r = @sdk_configuration.hooks.after_error(
|
2584
|
+
error: error,
|
2585
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2586
|
+
hook_ctx: hook_ctx
|
2587
|
+
),
|
2588
|
+
response: r
|
2589
|
+
)
|
2590
|
+
else
|
2591
|
+
r = @sdk_configuration.hooks.after_success(
|
2592
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2593
|
+
hook_ctx: hook_ctx
|
2594
|
+
),
|
2595
|
+
response: r
|
2596
|
+
)
|
2597
|
+
end
|
2598
|
+
|
2599
|
+
if r.nil?
|
2600
|
+
raise error if !error.nil?
|
2601
|
+
raise 'no response'
|
2602
|
+
end
|
1440
2603
|
end
|
1441
2604
|
|
1442
2605
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1459,8 +2622,8 @@ module StackOne
|
|
1459
2622
|
end
|
1460
2623
|
|
1461
2624
|
|
1462
|
-
sig { params(lms_create_collection_request_dto: ::StackOne::Shared::LmsCreateCollectionRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsUpdateCollectionResponse) }
|
1463
|
-
def update_collection(lms_create_collection_request_dto, id, x_account_id, retries = nil)
|
2625
|
+
sig { params(lms_create_collection_request_dto: ::StackOne::Shared::LmsCreateCollectionRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsUpdateCollectionResponse) }
|
2626
|
+
def update_collection(lms_create_collection_request_dto, id, x_account_id, retries = nil, timeout_ms = nil)
|
1464
2627
|
# update_collection - Update Collection
|
1465
2628
|
request = ::StackOne::Operations::LmsUpdateCollectionRequest.new(
|
1466
2629
|
|
@@ -1480,6 +2643,14 @@ module StackOne
|
|
1480
2643
|
req_content_type, data, form = Utils.serialize_request_body(request, :lms_create_collection_request_dto, :json)
|
1481
2644
|
headers['content-type'] = req_content_type
|
1482
2645
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2646
|
+
|
2647
|
+
if form
|
2648
|
+
body = Utils.encode_form(form)
|
2649
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
2650
|
+
body = URI.encode_www_form(data)
|
2651
|
+
else
|
2652
|
+
body = data
|
2653
|
+
end
|
1483
2654
|
headers['Accept'] = 'application/json'
|
1484
2655
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1485
2656
|
retries ||= @sdk_configuration.retry_config
|
@@ -1496,19 +2667,61 @@ module StackOne
|
|
1496
2667
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1497
2668
|
retry_options[:retry_statuses] = [429, 408]
|
1498
2669
|
|
2670
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2671
|
+
|
2672
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
2673
|
+
timeout ||= @sdk_configuration.timeout
|
2674
|
+
|
1499
2675
|
connection = @sdk_configuration.client.dup
|
1500
2676
|
connection.request :retry, retry_options
|
1501
2677
|
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
2678
|
+
hook_ctx = SDKHooks::HookContext.new(
|
2679
|
+
base_url: base_url,
|
2680
|
+
oauth2_scopes: [],
|
2681
|
+
operation_id: 'lms_update_collection',
|
2682
|
+
security_source: @sdk_configuration.security_source
|
2683
|
+
)
|
2684
|
+
|
2685
|
+
error = T.let(nil, T.nilable(StandardError))
|
2686
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
2687
|
+
|
2688
|
+
begin
|
2689
|
+
r = connection.patch(url) do |req|
|
2690
|
+
req.body = body
|
2691
|
+
req.headers.merge!(headers)
|
2692
|
+
req.options.timeout = timeout unless timeout.nil?
|
2693
|
+
Utils.configure_request_security(req, security)
|
2694
|
+
|
2695
|
+
@sdk_configuration.hooks.before_request(
|
2696
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
2697
|
+
hook_ctx: hook_ctx
|
2698
|
+
),
|
2699
|
+
request: req
|
2700
|
+
)
|
2701
|
+
end
|
2702
|
+
rescue StandardError => e
|
2703
|
+
error = e
|
2704
|
+
ensure
|
2705
|
+
if r.nil? || Utils.error_status?(r.status)
|
2706
|
+
r = @sdk_configuration.hooks.after_error(
|
2707
|
+
error: error,
|
2708
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2709
|
+
hook_ctx: hook_ctx
|
2710
|
+
),
|
2711
|
+
response: r
|
2712
|
+
)
|
1510
2713
|
else
|
1511
|
-
|
2714
|
+
r = @sdk_configuration.hooks.after_success(
|
2715
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2716
|
+
hook_ctx: hook_ctx
|
2717
|
+
),
|
2718
|
+
response: r
|
2719
|
+
)
|
2720
|
+
end
|
2721
|
+
|
2722
|
+
if r.nil?
|
2723
|
+
raise error if !error.nil?
|
2724
|
+
raise 'no response'
|
1512
2725
|
end
|
1513
2726
|
end
|
1514
2727
|
|
@@ -1532,8 +2745,8 @@ module StackOne
|
|
1532
2745
|
end
|
1533
2746
|
|
1534
2747
|
|
1535
|
-
sig { params(lms_upsert_content_request_dto: ::StackOne::Shared::LmsUpsertContentRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsUpsertContentResponse) }
|
1536
|
-
def upsert_content(lms_upsert_content_request_dto, x_account_id, retries = nil)
|
2748
|
+
sig { params(lms_upsert_content_request_dto: ::StackOne::Shared::LmsUpsertContentRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsUpsertContentResponse) }
|
2749
|
+
def upsert_content(lms_upsert_content_request_dto, x_account_id, retries = nil, timeout_ms = nil)
|
1537
2750
|
# upsert_content - Upsert Content
|
1538
2751
|
request = ::StackOne::Operations::LmsUpsertContentRequest.new(
|
1539
2752
|
|
@@ -1547,6 +2760,14 @@ module StackOne
|
|
1547
2760
|
req_content_type, data, form = Utils.serialize_request_body(request, :lms_upsert_content_request_dto, :json)
|
1548
2761
|
headers['content-type'] = req_content_type
|
1549
2762
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2763
|
+
|
2764
|
+
if form
|
2765
|
+
body = Utils.encode_form(form)
|
2766
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
2767
|
+
body = URI.encode_www_form(data)
|
2768
|
+
else
|
2769
|
+
body = data
|
2770
|
+
end
|
1550
2771
|
headers['Accept'] = 'application/json'
|
1551
2772
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1552
2773
|
retries ||= @sdk_configuration.retry_config
|
@@ -1563,19 +2784,61 @@ module StackOne
|
|
1563
2784
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1564
2785
|
retry_options[:retry_statuses] = [429, 408]
|
1565
2786
|
|
2787
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2788
|
+
|
2789
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
2790
|
+
timeout ||= @sdk_configuration.timeout
|
2791
|
+
|
1566
2792
|
connection = @sdk_configuration.client.dup
|
1567
2793
|
connection.request :retry, retry_options
|
1568
2794
|
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
2795
|
+
hook_ctx = SDKHooks::HookContext.new(
|
2796
|
+
base_url: base_url,
|
2797
|
+
oauth2_scopes: [],
|
2798
|
+
operation_id: 'lms_upsert_content',
|
2799
|
+
security_source: @sdk_configuration.security_source
|
2800
|
+
)
|
2801
|
+
|
2802
|
+
error = T.let(nil, T.nilable(StandardError))
|
2803
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
2804
|
+
|
2805
|
+
begin
|
2806
|
+
r = connection.put(url) do |req|
|
2807
|
+
req.body = body
|
2808
|
+
req.headers.merge!(headers)
|
2809
|
+
req.options.timeout = timeout unless timeout.nil?
|
2810
|
+
Utils.configure_request_security(req, security)
|
2811
|
+
|
2812
|
+
@sdk_configuration.hooks.before_request(
|
2813
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
2814
|
+
hook_ctx: hook_ctx
|
2815
|
+
),
|
2816
|
+
request: req
|
2817
|
+
)
|
2818
|
+
end
|
2819
|
+
rescue StandardError => e
|
2820
|
+
error = e
|
2821
|
+
ensure
|
2822
|
+
if r.nil? || Utils.error_status?(r.status)
|
2823
|
+
r = @sdk_configuration.hooks.after_error(
|
2824
|
+
error: error,
|
2825
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2826
|
+
hook_ctx: hook_ctx
|
2827
|
+
),
|
2828
|
+
response: r
|
2829
|
+
)
|
1577
2830
|
else
|
1578
|
-
|
2831
|
+
r = @sdk_configuration.hooks.after_success(
|
2832
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2833
|
+
hook_ctx: hook_ctx
|
2834
|
+
),
|
2835
|
+
response: r
|
2836
|
+
)
|
2837
|
+
end
|
2838
|
+
|
2839
|
+
if r.nil?
|
2840
|
+
raise error if !error.nil?
|
2841
|
+
raise 'no response'
|
1579
2842
|
end
|
1580
2843
|
end
|
1581
2844
|
|
@@ -1599,8 +2862,8 @@ module StackOne
|
|
1599
2862
|
end
|
1600
2863
|
|
1601
2864
|
|
1602
|
-
sig { params(lms_upsert_course_request_dto: ::StackOne::Shared::LmsUpsertCourseRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::LmsUpsertCourseResponse) }
|
1603
|
-
def upsert_course(lms_upsert_course_request_dto, x_account_id, retries = nil)
|
2865
|
+
sig { params(lms_upsert_course_request_dto: ::StackOne::Shared::LmsUpsertCourseRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsUpsertCourseResponse) }
|
2866
|
+
def upsert_course(lms_upsert_course_request_dto, x_account_id, retries = nil, timeout_ms = nil)
|
1604
2867
|
# upsert_course - Upsert Course
|
1605
2868
|
request = ::StackOne::Operations::LmsUpsertCourseRequest.new(
|
1606
2869
|
|
@@ -1614,6 +2877,14 @@ module StackOne
|
|
1614
2877
|
req_content_type, data, form = Utils.serialize_request_body(request, :lms_upsert_course_request_dto, :json)
|
1615
2878
|
headers['content-type'] = req_content_type
|
1616
2879
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2880
|
+
|
2881
|
+
if form
|
2882
|
+
body = Utils.encode_form(form)
|
2883
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
2884
|
+
body = URI.encode_www_form(data)
|
2885
|
+
else
|
2886
|
+
body = data
|
2887
|
+
end
|
1617
2888
|
headers['Accept'] = 'application/json'
|
1618
2889
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1619
2890
|
retries ||= @sdk_configuration.retry_config
|
@@ -1630,19 +2901,61 @@ module StackOne
|
|
1630
2901
|
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1631
2902
|
retry_options[:retry_statuses] = [429, 408]
|
1632
2903
|
|
2904
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2905
|
+
|
2906
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
2907
|
+
timeout ||= @sdk_configuration.timeout
|
2908
|
+
|
1633
2909
|
connection = @sdk_configuration.client.dup
|
1634
2910
|
connection.request :retry, retry_options
|
1635
2911
|
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
2912
|
+
hook_ctx = SDKHooks::HookContext.new(
|
2913
|
+
base_url: base_url,
|
2914
|
+
oauth2_scopes: [],
|
2915
|
+
operation_id: 'lms_upsert_course',
|
2916
|
+
security_source: @sdk_configuration.security_source
|
2917
|
+
)
|
2918
|
+
|
2919
|
+
error = T.let(nil, T.nilable(StandardError))
|
2920
|
+
r = T.let(nil, T.nilable(Faraday::Response))
|
2921
|
+
|
2922
|
+
begin
|
2923
|
+
r = connection.put(url) do |req|
|
2924
|
+
req.body = body
|
2925
|
+
req.headers.merge!(headers)
|
2926
|
+
req.options.timeout = timeout unless timeout.nil?
|
2927
|
+
Utils.configure_request_security(req, security)
|
2928
|
+
|
2929
|
+
@sdk_configuration.hooks.before_request(
|
2930
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
2931
|
+
hook_ctx: hook_ctx
|
2932
|
+
),
|
2933
|
+
request: req
|
2934
|
+
)
|
2935
|
+
end
|
2936
|
+
rescue StandardError => e
|
2937
|
+
error = e
|
2938
|
+
ensure
|
2939
|
+
if r.nil? || Utils.error_status?(r.status)
|
2940
|
+
r = @sdk_configuration.hooks.after_error(
|
2941
|
+
error: error,
|
2942
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
2943
|
+
hook_ctx: hook_ctx
|
2944
|
+
),
|
2945
|
+
response: r
|
2946
|
+
)
|
1644
2947
|
else
|
1645
|
-
|
2948
|
+
r = @sdk_configuration.hooks.after_success(
|
2949
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
2950
|
+
hook_ctx: hook_ctx
|
2951
|
+
),
|
2952
|
+
response: r
|
2953
|
+
)
|
2954
|
+
end
|
2955
|
+
|
2956
|
+
if r.nil?
|
2957
|
+
raise error if !error.nil?
|
2958
|
+
raise 'no response'
|
1646
2959
|
end
|
1647
2960
|
end
|
1648
2961
|
|