/* 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 SynchronizationResult */ export interface SynchronizationResult { /** * * @type {number} * @memberof SynchronizationResult */ added?: number; /** * * @type {number} * @memberof SynchronizationResult */ failed?: number; /** * * @type {boolean} * @memberof SynchronizationResult */ ignored?: boolean; /** * * @type {number} * @memberof SynchronizationResult */ removed?: number; /** * * @type {string} * @memberof SynchronizationResult */ status?: string; /** * * @type {number} * @memberof SynchronizationResult */ updated?: number; } export function SynchronizationResultFromJSON(json: any): SynchronizationResult { return SynchronizationResultFromJSONTyped(json, false); } export function SynchronizationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SynchronizationResult { if ((json === undefined) || (json === null)) { return json; } return { 'added': !exists(json, 'added') ? undefined : json['added'], 'failed': !exists(json, 'failed') ? undefined : json['failed'], 'ignored': !exists(json, 'ignored') ? undefined : json['ignored'], 'removed': !exists(json, 'removed') ? undefined : json['removed'], 'status': !exists(json, 'status') ? undefined : json['status'], 'updated': !exists(json, 'updated') ? undefined : json['updated'], }; } export function SynchronizationResultToJSON(value?: SynchronizationResult | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'added': value.added, 'failed': value.failed, 'ignored': value.ignored, 'removed': value.removed, 'status': value.status, 'updated': value.updated, }; }