114 lines
3.0 KiB
TypeScript
114 lines
3.0 KiB
TypeScript
/* 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';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface GroupRepresentation
|
|
*/
|
|
export interface GroupRepresentation {
|
|
/**
|
|
*
|
|
* @type {{ [key: string]: object; }}
|
|
* @memberof GroupRepresentation
|
|
*/
|
|
access?: { [key: string]: object; };
|
|
/**
|
|
*
|
|
* @type {{ [key: string]: object; }}
|
|
* @memberof GroupRepresentation
|
|
*/
|
|
attributes?: { [key: string]: object; };
|
|
/**
|
|
*
|
|
* @type {{ [key: string]: object; }}
|
|
* @memberof GroupRepresentation
|
|
*/
|
|
clientRoles?: { [key: string]: object; };
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof GroupRepresentation
|
|
*/
|
|
id?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof GroupRepresentation
|
|
*/
|
|
name?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof GroupRepresentation
|
|
*/
|
|
path?: string;
|
|
/**
|
|
*
|
|
* @type {Array<string>}
|
|
* @memberof GroupRepresentation
|
|
*/
|
|
realmRoles?: Array<string>;
|
|
/**
|
|
*
|
|
* @type {Array<GroupRepresentation>}
|
|
* @memberof GroupRepresentation
|
|
*/
|
|
subGroups?: Array<GroupRepresentation>;
|
|
}
|
|
|
|
export function GroupRepresentationFromJSON(json: any): GroupRepresentation {
|
|
return GroupRepresentationFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function GroupRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupRepresentation {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'access': !exists(json, 'access') ? undefined : json['access'],
|
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
'clientRoles': !exists(json, 'clientRoles') ? undefined : json['clientRoles'],
|
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
'path': !exists(json, 'path') ? undefined : json['path'],
|
|
'realmRoles': !exists(json, 'realmRoles') ? undefined : json['realmRoles'],
|
|
'subGroups': !exists(json, 'subGroups') ? undefined : ((json['subGroups'] as Array<any>).map(GroupRepresentationFromJSON)),
|
|
};
|
|
}
|
|
|
|
export function GroupRepresentationToJSON(value?: GroupRepresentation | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'access': value.access,
|
|
'attributes': value.attributes,
|
|
'clientRoles': value.clientRoles,
|
|
'id': value.id,
|
|
'name': value.name,
|
|
'path': value.path,
|
|
'realmRoles': value.realmRoles,
|
|
'subGroups': value.subGroups === undefined ? undefined : ((value.subGroups as Array<any>).map(GroupRepresentationToJSON)),
|
|
};
|
|
}
|
|
|
|
|