Switched kc_sdk to fetch
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Keycloak Admin REST API
|
||||
* This is a REST API reference for the Keycloak Admin
|
||||
*
|
||||
* The version of the OpenAPI document: 1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import {
|
||||
Permission,
|
||||
PermissionFromJSON,
|
||||
PermissionFromJSONTyped,
|
||||
PermissionToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AccessTokenAuthorization
|
||||
*/
|
||||
export interface AccessTokenAuthorization {
|
||||
/**
|
||||
*
|
||||
* @type {Array<Permission>}
|
||||
* @memberof AccessTokenAuthorization
|
||||
*/
|
||||
permissions?: Array<Permission>;
|
||||
}
|
||||
|
||||
export function AccessTokenAuthorizationFromJSON(json: any): AccessTokenAuthorization {
|
||||
return AccessTokenAuthorizationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AccessTokenAuthorizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessTokenAuthorization {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'permissions': !exists(json, 'permissions') ? undefined : ((json['permissions'] as Array<any>).map(PermissionFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function AccessTokenAuthorizationToJSON(value?: AccessTokenAuthorization | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'permissions': value.permissions === undefined ? undefined : ((value.permissions as Array<any>).map(PermissionToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user