Files
auth/backend/keycloak/kc-client/models/ConfigPropertyRepresentation.ts
2022-09-05 17:02:45 +02:00

114 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';
/**
*
* @export
* @interface ConfigPropertyRepresentation
*/
export interface ConfigPropertyRepresentation {
/**
*
* @type {object}
* @memberof ConfigPropertyRepresentation
*/
defaultValue?: object;
/**
*
* @type {string}
* @memberof ConfigPropertyRepresentation
*/
helpText?: string;
/**
*
* @type {string}
* @memberof ConfigPropertyRepresentation
*/
label?: string;
/**
*
* @type {string}
* @memberof ConfigPropertyRepresentation
*/
name?: string;
/**
*
* @type {Array<string>}
* @memberof ConfigPropertyRepresentation
*/
options?: Array<string>;
/**
*
* @type {boolean}
* @memberof ConfigPropertyRepresentation
*/
readOnly?: boolean;
/**
*
* @type {boolean}
* @memberof ConfigPropertyRepresentation
*/
secret?: boolean;
/**
*
* @type {string}
* @memberof ConfigPropertyRepresentation
*/
type?: string;
}
export function ConfigPropertyRepresentationFromJSON(json: any): ConfigPropertyRepresentation {
return ConfigPropertyRepresentationFromJSONTyped(json, false);
}
export function ConfigPropertyRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigPropertyRepresentation {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'defaultValue': !exists(json, 'defaultValue') ? undefined : json['defaultValue'],
'helpText': !exists(json, 'helpText') ? undefined : json['helpText'],
'label': !exists(json, 'label') ? undefined : json['label'],
'name': !exists(json, 'name') ? undefined : json['name'],
'options': !exists(json, 'options') ? undefined : json['options'],
'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'],
'secret': !exists(json, 'secret') ? undefined : json['secret'],
'type': !exists(json, 'type') ? undefined : json['type'],
};
}
export function ConfigPropertyRepresentationToJSON(value?: ConfigPropertyRepresentation | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'defaultValue': value.defaultValue,
'helpText': value.helpText,
'label': value.label,
'name': value.name,
'options': value.options,
'readOnly': value.readOnly,
'secret': value.secret,
'type': value.type,
};
}