@@ -29,6 +29,7 @@ import io.goauthentik.api.models.GenericError
29
29
import io.goauthentik.api.models.LDAPDebug
30
30
import io.goauthentik.api.models.LDAPSource
31
31
import io.goauthentik.api.models.LDAPSourceRequest
32
+ import io.goauthentik.api.models.LDAPSyncStatus
32
33
import io.goauthentik.api.models.OAuthSource
33
34
import io.goauthentik.api.models.OAuthSourceRequest
34
35
import io.goauthentik.api.models.PaginatedLDAPSourceList
@@ -58,7 +59,6 @@ import io.goauthentik.api.models.SAMLSource
58
59
import io.goauthentik.api.models.SAMLSourceRequest
59
60
import io.goauthentik.api.models.Source
60
61
import io.goauthentik.api.models.SourceType
61
- import io.goauthentik.api.models.Task
62
62
import io.goauthentik.api.models.TypeCreate
63
63
import io.goauthentik.api.models.UsedBy
64
64
import io.goauthentik.api.models.UserOAuthSourceConnection
@@ -1276,7 +1276,7 @@ class SourcesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
1276
1276
*
1277
1277
* Get source's sync status
1278
1278
* @param slug
1279
- * @return kotlin.collections.List<Task>
1279
+ * @return LDAPSyncStatus
1280
1280
* @throws IllegalStateException If the request is not correctly configured
1281
1281
* @throws IOException Rethrows the OkHttp execute method exception
1282
1282
* @throws UnsupportedOperationException If the API returns an informational or redirection response
@@ -1285,11 +1285,11 @@ class SourcesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
1285
1285
*/
1286
1286
@Suppress(" UNCHECKED_CAST" )
1287
1287
@Throws(IllegalStateException ::class , IOException ::class , UnsupportedOperationException ::class , ClientException ::class , ServerException ::class )
1288
- fun sourcesLdapSyncStatusList (slug : kotlin.String ) : kotlin.collections. List < Task > {
1289
- val localVarResponse = sourcesLdapSyncStatusListWithHttpInfo (slug = slug)
1288
+ fun sourcesLdapSyncStatusRetrieve (slug : kotlin.String ) : LDAPSyncStatus {
1289
+ val localVarResponse = sourcesLdapSyncStatusRetrieveWithHttpInfo (slug = slug)
1290
1290
1291
1291
return when (localVarResponse.responseType) {
1292
- ResponseType .Success -> (localVarResponse as Success <* >).data as kotlin.collections. List < Task >
1292
+ ResponseType .Success -> (localVarResponse as Success <* >).data as LDAPSyncStatus
1293
1293
ResponseType .Informational -> throw UnsupportedOperationException (" Client does not support Informational responses." )
1294
1294
ResponseType .Redirection -> throw UnsupportedOperationException (" Client does not support Redirection responses." )
1295
1295
ResponseType .ClientError -> {
@@ -1307,27 +1307,27 @@ class SourcesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
1307
1307
*
1308
1308
* Get source's sync status
1309
1309
* @param slug
1310
- * @return ApiResponse<kotlin.collections.List<Task> ?>
1310
+ * @return ApiResponse<LDAPSyncStatus ?>
1311
1311
* @throws IllegalStateException If the request is not correctly configured
1312
1312
* @throws IOException Rethrows the OkHttp execute method exception
1313
1313
*/
1314
1314
@Suppress(" UNCHECKED_CAST" )
1315
1315
@Throws(IllegalStateException ::class , IOException ::class )
1316
- fun sourcesLdapSyncStatusListWithHttpInfo (slug : kotlin.String ) : ApiResponse <kotlin.collections. List < Task > ? > {
1317
- val localVariableConfig = sourcesLdapSyncStatusListRequestConfig (slug = slug)
1316
+ fun sourcesLdapSyncStatusRetrieveWithHttpInfo (slug : kotlin.String ) : ApiResponse <LDAPSyncStatus ?> {
1317
+ val localVariableConfig = sourcesLdapSyncStatusRetrieveRequestConfig (slug = slug)
1318
1318
1319
- return request<Unit , kotlin.collections. List < Task > >(
1319
+ return request<Unit , LDAPSyncStatus >(
1320
1320
localVariableConfig
1321
1321
)
1322
1322
}
1323
1323
1324
1324
/* *
1325
- * To obtain the request config of the operation sourcesLdapSyncStatusList
1325
+ * To obtain the request config of the operation sourcesLdapSyncStatusRetrieve
1326
1326
*
1327
1327
* @param slug
1328
1328
* @return RequestConfig
1329
1329
*/
1330
- fun sourcesLdapSyncStatusListRequestConfig (slug : kotlin.String ) : RequestConfig <Unit > {
1330
+ fun sourcesLdapSyncStatusRetrieveRequestConfig (slug : kotlin.String ) : RequestConfig <Unit > {
1331
1331
val localVariableBody = null
1332
1332
val localVariableQuery: MultiValueMap = mutableMapOf ()
1333
1333
val localVariableHeaders: MutableMap <String , String > = mutableMapOf ()
0 commit comments