105 lines
2.9 KiB
TypeScript
105 lines
2.9 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';
|
|
import {
|
|
ProtocolMapperRepresentation,
|
|
ProtocolMapperRepresentationFromJSON,
|
|
ProtocolMapperRepresentationFromJSONTyped,
|
|
ProtocolMapperRepresentationToJSON,
|
|
} from './';
|
|
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface ClientScopeRepresentation
|
|
*/
|
|
export interface ClientScopeRepresentation {
|
|
/**
|
|
*
|
|
* @type {{ [key: string]: object; }}
|
|
* @memberof ClientScopeRepresentation
|
|
*/
|
|
attributes?: { [key: string]: object; };
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientScopeRepresentation
|
|
*/
|
|
description?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientScopeRepresentation
|
|
*/
|
|
id?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientScopeRepresentation
|
|
*/
|
|
name?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientScopeRepresentation
|
|
*/
|
|
protocol?: string;
|
|
/**
|
|
*
|
|
* @type {Array<ProtocolMapperRepresentation>}
|
|
* @memberof ClientScopeRepresentation
|
|
*/
|
|
protocolMappers?: Array<ProtocolMapperRepresentation>;
|
|
}
|
|
|
|
export function ClientScopeRepresentationFromJSON(json: any): ClientScopeRepresentation {
|
|
return ClientScopeRepresentationFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ClientScopeRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientScopeRepresentation {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
'protocol': !exists(json, 'protocol') ? undefined : json['protocol'],
|
|
'protocolMappers': !exists(json, 'protocolMappers') ? undefined : ((json['protocolMappers'] as Array<any>).map(ProtocolMapperRepresentationFromJSON)),
|
|
};
|
|
}
|
|
|
|
export function ClientScopeRepresentationToJSON(value?: ClientScopeRepresentation | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'attributes': value.attributes,
|
|
'description': value.description,
|
|
'id': value.id,
|
|
'name': value.name,
|
|
'protocol': value.protocol,
|
|
'protocolMappers': value.protocolMappers === undefined ? undefined : ((value.protocolMappers as Array<any>).map(ProtocolMapperRepresentationToJSON)),
|
|
};
|
|
}
|
|
|
|
|