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

89 lines
2.5 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 {
ConfigPropertyRepresentation,
ConfigPropertyRepresentationFromJSON,
ConfigPropertyRepresentationFromJSONTyped,
ConfigPropertyRepresentationToJSON,
} from './';
/**
*
* @export
* @interface AuthenticatorConfigInfoRepresentation
*/
export interface AuthenticatorConfigInfoRepresentation {
/**
*
* @type {string}
* @memberof AuthenticatorConfigInfoRepresentation
*/
helpText?: string;
/**
*
* @type {string}
* @memberof AuthenticatorConfigInfoRepresentation
*/
name?: string;
/**
*
* @type {Array<ConfigPropertyRepresentation>}
* @memberof AuthenticatorConfigInfoRepresentation
*/
properties?: Array<ConfigPropertyRepresentation>;
/**
*
* @type {string}
* @memberof AuthenticatorConfigInfoRepresentation
*/
providerId?: string;
}
export function AuthenticatorConfigInfoRepresentationFromJSON(json: any): AuthenticatorConfigInfoRepresentation {
return AuthenticatorConfigInfoRepresentationFromJSONTyped(json, false);
}
export function AuthenticatorConfigInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorConfigInfoRepresentation {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'helpText': !exists(json, 'helpText') ? undefined : json['helpText'],
'name': !exists(json, 'name') ? undefined : json['name'],
'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array<any>).map(ConfigPropertyRepresentationFromJSON)),
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
};
}
export function AuthenticatorConfigInfoRepresentationToJSON(value?: AuthenticatorConfigInfoRepresentation | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'helpText': value.helpText,
'name': value.name,
'properties': value.properties === undefined ? undefined : ((value.properties as Array<any>).map(ConfigPropertyRepresentationToJSON)),
'providerId': value.providerId,
};
}