/* 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 TestLdapConnectionRepresentation */ export interface TestLdapConnectionRepresentation { /** * * @type {string} * @memberof TestLdapConnectionRepresentation */ action?: string; /** * * @type {string} * @memberof TestLdapConnectionRepresentation */ authType?: string; /** * * @type {string} * @memberof TestLdapConnectionRepresentation */ bindCredential?: string; /** * * @type {string} * @memberof TestLdapConnectionRepresentation */ bindDn?: string; /** * * @type {string} * @memberof TestLdapConnectionRepresentation */ componentId?: string; /** * * @type {string} * @memberof TestLdapConnectionRepresentation */ connectionTimeout?: string; /** * * @type {string} * @memberof TestLdapConnectionRepresentation */ connectionUrl?: string; /** * * @type {string} * @memberof TestLdapConnectionRepresentation */ startTls?: string; /** * * @type {string} * @memberof TestLdapConnectionRepresentation */ useTruststoreSpi?: string; } export function TestLdapConnectionRepresentationFromJSON(json: any): TestLdapConnectionRepresentation { return TestLdapConnectionRepresentationFromJSONTyped(json, false); } export function TestLdapConnectionRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestLdapConnectionRepresentation { if ((json === undefined) || (json === null)) { return json; } return { 'action': !exists(json, 'action') ? undefined : json['action'], 'authType': !exists(json, 'authType') ? undefined : json['authType'], 'bindCredential': !exists(json, 'bindCredential') ? undefined : json['bindCredential'], 'bindDn': !exists(json, 'bindDn') ? undefined : json['bindDn'], 'componentId': !exists(json, 'componentId') ? undefined : json['componentId'], 'connectionTimeout': !exists(json, 'connectionTimeout') ? undefined : json['connectionTimeout'], 'connectionUrl': !exists(json, 'connectionUrl') ? undefined : json['connectionUrl'], 'startTls': !exists(json, 'startTls') ? undefined : json['startTls'], 'useTruststoreSpi': !exists(json, 'useTruststoreSpi') ? undefined : json['useTruststoreSpi'], }; } export function TestLdapConnectionRepresentationToJSON(value?: TestLdapConnectionRepresentation | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'action': value.action, 'authType': value.authType, 'bindCredential': value.bindCredential, 'bindDn': value.bindDn, 'componentId': value.componentId, 'connectionTimeout': value.connectionTimeout, 'connectionUrl': value.connectionUrl, 'startTls': value.startTls, 'useTruststoreSpi': value.useTruststoreSpi, }; }