73 lines
2.1 KiB
TypeScript
73 lines
2.1 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 {
|
|
KeysMetadataRepresentationKeyMetadataRepresentation,
|
|
KeysMetadataRepresentationKeyMetadataRepresentationFromJSON,
|
|
KeysMetadataRepresentationKeyMetadataRepresentationFromJSONTyped,
|
|
KeysMetadataRepresentationKeyMetadataRepresentationToJSON,
|
|
} from './';
|
|
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface KeysMetadataRepresentation
|
|
*/
|
|
export interface KeysMetadataRepresentation {
|
|
/**
|
|
*
|
|
* @type {{ [key: string]: object; }}
|
|
* @memberof KeysMetadataRepresentation
|
|
*/
|
|
active?: { [key: string]: object; };
|
|
/**
|
|
*
|
|
* @type {Array<KeysMetadataRepresentationKeyMetadataRepresentation>}
|
|
* @memberof KeysMetadataRepresentation
|
|
*/
|
|
keys?: Array<KeysMetadataRepresentationKeyMetadataRepresentation>;
|
|
}
|
|
|
|
export function KeysMetadataRepresentationFromJSON(json: any): KeysMetadataRepresentation {
|
|
return KeysMetadataRepresentationFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function KeysMetadataRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeysMetadataRepresentation {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'active': !exists(json, 'active') ? undefined : json['active'],
|
|
'keys': !exists(json, 'keys') ? undefined : ((json['keys'] as Array<any>).map(KeysMetadataRepresentationKeyMetadataRepresentationFromJSON)),
|
|
};
|
|
}
|
|
|
|
export function KeysMetadataRepresentationToJSON(value?: KeysMetadataRepresentation | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'active': value.active,
|
|
'keys': value.keys === undefined ? undefined : ((value.keys as Array<any>).map(KeysMetadataRepresentationKeyMetadataRepresentationToJSON)),
|
|
};
|
|
}
|
|
|
|
|