/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * Contact: hello@goauthentik.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * Reputation Policy Serializer * @export * @interface ReputationPolicyRequest */ export interface ReputationPolicyRequest { /** * * @type {string} * @memberof ReputationPolicyRequest */ name: string; /** * When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged. * @type {boolean} * @memberof ReputationPolicyRequest */ executionLogging?: boolean; /** * * @type {boolean} * @memberof ReputationPolicyRequest */ checkIp?: boolean; /** * * @type {boolean} * @memberof ReputationPolicyRequest */ checkUsername?: boolean; /** * * @type {number} * @memberof ReputationPolicyRequest */ threshold?: number; } /** * Check if a given object implements the ReputationPolicyRequest interface. */ export function instanceOfReputationPolicyRequest(value: object): value is ReputationPolicyRequest { if (!('name' in value) || value['name'] === undefined) return false; return true; } export function ReputationPolicyRequestFromJSON(json: any): ReputationPolicyRequest { return ReputationPolicyRequestFromJSONTyped(json, false); } export function ReputationPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReputationPolicyRequest { if (json == null) { return json; } return { 'name': json['name'], 'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'], 'checkIp': json['check_ip'] == null ? undefined : json['check_ip'], 'checkUsername': json['check_username'] == null ? undefined : json['check_username'], 'threshold': json['threshold'] == null ? undefined : json['threshold'], }; } export function ReputationPolicyRequestToJSON(json: any): ReputationPolicyRequest { return ReputationPolicyRequestToJSONTyped(json, false); } export function ReputationPolicyRequestToJSONTyped(value?: ReputationPolicyRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'execution_logging': value['executionLogging'], 'check_ip': value['checkIp'], 'check_username': value['checkUsername'], 'threshold': value['threshold'], }; }