@@ -360,145 +360,6 @@ open class AdminAPI {
360
360
return localVariableRequestBuilder. init ( method: " GET " , URLString: ( localVariableUrlComponents? . string ?? localVariableURLString) , parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true )
361
361
}
362
362
363
- /**
364
-
365
- - parameter apiResponseQueue: The queue on which api response is dispatched.
366
- - parameter completion: completion handler to receive the data and the error objects
367
- */
368
- @discardableResult
369
- open class func adminSystemTasksList( apiResponseQueue: DispatchQueue = authentikClientAPI. apiResponseQueue, completion: @escaping ( ( _ data: [ Task ] ? , _ error: Error ? ) -> Void ) ) -> RequestTask {
370
- return adminSystemTasksListWithRequestBuilder ( ) . execute ( apiResponseQueue) { result in
371
- switch result {
372
- case let . success( response) :
373
- completion ( response. body, nil )
374
- case let . failure( error) :
375
- completion ( nil , error)
376
- }
377
- }
378
- }
379
-
380
- /**
381
- - GET /admin/system_tasks/
382
- - List system tasks
383
- - API Key:
384
- - type: apiKey Authorization
385
- - name: authentik
386
- - returns: RequestBuilder<[Task]>
387
- */
388
- open class func adminSystemTasksListWithRequestBuilder( ) -> RequestBuilder < [ Task ] > {
389
- let localVariablePath = " /admin/system_tasks/ "
390
- let localVariableURLString = authentikClientAPI. basePath + localVariablePath
391
- let localVariableParameters : [ String : Any ] ? = nil
392
-
393
- let localVariableUrlComponents = URLComponents ( string: localVariableURLString)
394
-
395
- let localVariableNillableHeaders : [ String : Any ? ] = [
396
- :
397
- ]
398
-
399
- let localVariableHeaderParameters = APIHelper . rejectNilHeaders ( localVariableNillableHeaders)
400
-
401
- let localVariableRequestBuilder : RequestBuilder < [ Task ] > . Type = authentikClientAPI. requestBuilderFactory. getBuilder ( )
402
-
403
- return localVariableRequestBuilder. init ( method: " GET " , URLString: ( localVariableUrlComponents? . string ?? localVariableURLString) , parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true )
404
- }
405
-
406
- /**
407
-
408
- - parameter id: (path)
409
- - parameter apiResponseQueue: The queue on which api response is dispatched.
410
- - parameter completion: completion handler to receive the data and the error objects
411
- */
412
- @discardableResult
413
- open class func adminSystemTasksRetrieve( id: String , apiResponseQueue: DispatchQueue = authentikClientAPI. apiResponseQueue, completion: @escaping ( ( _ data: Task ? , _ error: Error ? ) -> Void ) ) -> RequestTask {
414
- return adminSystemTasksRetrieveWithRequestBuilder ( id: id) . execute ( apiResponseQueue) { result in
415
- switch result {
416
- case let . success( response) :
417
- completion ( response. body, nil )
418
- case let . failure( error) :
419
- completion ( nil , error)
420
- }
421
- }
422
- }
423
-
424
- /**
425
- - GET /admin/system_tasks/{id}/
426
- - Get a single system task
427
- - API Key:
428
- - type: apiKey Authorization
429
- - name: authentik
430
- - parameter id: (path)
431
- - returns: RequestBuilder<Task>
432
- */
433
- open class func adminSystemTasksRetrieveWithRequestBuilder( id: String ) -> RequestBuilder < Task > {
434
- var localVariablePath = " /admin/system_tasks/{id}/ "
435
- let idPreEscape = " \( APIHelper . mapValueToPathItem ( id) ) "
436
- let idPostEscape = idPreEscape. addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
437
- localVariablePath = localVariablePath. replacingOccurrences ( of: " {id} " , with: idPostEscape, options: . literal, range: nil )
438
- let localVariableURLString = authentikClientAPI. basePath + localVariablePath
439
- let localVariableParameters : [ String : Any ] ? = nil
440
-
441
- let localVariableUrlComponents = URLComponents ( string: localVariableURLString)
442
-
443
- let localVariableNillableHeaders : [ String : Any ? ] = [
444
- :
445
- ]
446
-
447
- let localVariableHeaderParameters = APIHelper . rejectNilHeaders ( localVariableNillableHeaders)
448
-
449
- let localVariableRequestBuilder : RequestBuilder < Task > . Type = authentikClientAPI. requestBuilderFactory. getBuilder ( )
450
-
451
- return localVariableRequestBuilder. init ( method: " GET " , URLString: ( localVariableUrlComponents? . string ?? localVariableURLString) , parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true )
452
- }
453
-
454
- /**
455
-
456
- - parameter id: (path)
457
- - parameter apiResponseQueue: The queue on which api response is dispatched.
458
- - parameter completion: completion handler to receive the data and the error objects
459
- */
460
- @discardableResult
461
- open class func adminSystemTasksRetryCreate( id: String , apiResponseQueue: DispatchQueue = authentikClientAPI. apiResponseQueue, completion: @escaping ( ( _ data: Void ? , _ error: Error ? ) -> Void ) ) -> RequestTask {
462
- return adminSystemTasksRetryCreateWithRequestBuilder ( id: id) . execute ( apiResponseQueue) { result in
463
- switch result {
464
- case . success:
465
- completion ( ( ) , nil )
466
- case let . failure( error) :
467
- completion ( nil , error)
468
- }
469
- }
470
- }
471
-
472
- /**
473
- - POST /admin/system_tasks/{id}/retry/
474
- - Retry task
475
- - API Key:
476
- - type: apiKey Authorization
477
- - name: authentik
478
- - parameter id: (path)
479
- - returns: RequestBuilder<Void>
480
- */
481
- open class func adminSystemTasksRetryCreateWithRequestBuilder( id: String ) -> RequestBuilder < Void > {
482
- var localVariablePath = " /admin/system_tasks/{id}/retry/ "
483
- let idPreEscape = " \( APIHelper . mapValueToPathItem ( id) ) "
484
- let idPostEscape = idPreEscape. addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
485
- localVariablePath = localVariablePath. replacingOccurrences ( of: " {id} " , with: idPostEscape, options: . literal, range: nil )
486
- let localVariableURLString = authentikClientAPI. basePath + localVariablePath
487
- let localVariableParameters : [ String : Any ] ? = nil
488
-
489
- let localVariableUrlComponents = URLComponents ( string: localVariableURLString)
490
-
491
- let localVariableNillableHeaders : [ String : Any ? ] = [
492
- :
493
- ]
494
-
495
- let localVariableHeaderParameters = APIHelper . rejectNilHeaders ( localVariableNillableHeaders)
496
-
497
- let localVariableRequestBuilder : RequestBuilder < Void > . Type = authentikClientAPI. requestBuilderFactory. getNonDecodableBuilder ( )
498
-
499
- return localVariableRequestBuilder. init ( method: " POST " , URLString: ( localVariableUrlComponents? . string ?? localVariableURLString) , parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true )
500
- }
501
-
502
363
/**
503
364
504
365
- parameter apiResponseQueue: The queue on which api response is dispatched.
0 commit comments