Switched kc_sdk to fetch
This commit is contained in:
72
backend/keycloak/kc-client/models/MappingsRepresentation.ts
Normal file
72
backend/keycloak/kc-client/models/MappingsRepresentation.ts
Normal file
@@ -0,0 +1,72 @@
|
||||
/* 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 {
|
||||
RoleRepresentation,
|
||||
RoleRepresentationFromJSON,
|
||||
RoleRepresentationFromJSONTyped,
|
||||
RoleRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface MappingsRepresentation
|
||||
*/
|
||||
export interface MappingsRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof MappingsRepresentation
|
||||
*/
|
||||
clientMappings?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<RoleRepresentation>}
|
||||
* @memberof MappingsRepresentation
|
||||
*/
|
||||
realmMappings?: Array<RoleRepresentation>;
|
||||
}
|
||||
|
||||
export function MappingsRepresentationFromJSON(json: any): MappingsRepresentation {
|
||||
return MappingsRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function MappingsRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MappingsRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'clientMappings': !exists(json, 'clientMappings') ? undefined : json['clientMappings'],
|
||||
'realmMappings': !exists(json, 'realmMappings') ? undefined : ((json['realmMappings'] as Array<any>).map(RoleRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function MappingsRepresentationToJSON(value?: MappingsRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'clientMappings': value.clientMappings,
|
||||
'realmMappings': value.realmMappings === undefined ? undefined : ((value.realmMappings as Array<any>).map(RoleRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user