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

98 lines
2.4 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 KeyStoreConfig
*/
export interface KeyStoreConfig {
/**
*
* @type {string}
* @memberof KeyStoreConfig
*/
format?: string;
/**
*
* @type {string}
* @memberof KeyStoreConfig
*/
keyAlias?: string;
/**
*
* @type {string}
* @memberof KeyStoreConfig
*/
keyPassword?: string;
/**
*
* @type {string}
* @memberof KeyStoreConfig
*/
realmAlias?: string;
/**
*
* @type {boolean}
* @memberof KeyStoreConfig
*/
realmCertificate?: boolean;
/**
*
* @type {string}
* @memberof KeyStoreConfig
*/
storePassword?: string;
}
export function KeyStoreConfigFromJSON(json: any): KeyStoreConfig {
return KeyStoreConfigFromJSONTyped(json, false);
}
export function KeyStoreConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyStoreConfig {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'format': !exists(json, 'format') ? undefined : json['format'],
'keyAlias': !exists(json, 'keyAlias') ? undefined : json['keyAlias'],
'keyPassword': !exists(json, 'keyPassword') ? undefined : json['keyPassword'],
'realmAlias': !exists(json, 'realmAlias') ? undefined : json['realmAlias'],
'realmCertificate': !exists(json, 'realmCertificate') ? undefined : json['realmCertificate'],
'storePassword': !exists(json, 'storePassword') ? undefined : json['storePassword'],
};
}
export function KeyStoreConfigToJSON(value?: KeyStoreConfig | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'format': value.format,
'keyAlias': value.keyAlias,
'keyPassword': value.keyPassword,
'realmAlias': value.realmAlias,
'realmCertificate': value.realmCertificate,
'storePassword': value.storePassword,
};
}