/* 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 PatchedReputationPolicyRequest */ export interface PatchedReputationPolicyRequest { /** * * @type {string} * @memberof PatchedReputationPolicyRequest */ 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 PatchedReputationPolicyRequest */ executionLogging?: boolean; /** * * @type {boolean} * @memberof PatchedReputationPolicyRequest */ checkIp?: boolean; /** * * @type {boolean} * @memberof PatchedReputationPolicyRequest */ checkUsername?: boolean; /** * * @type {number} * @memberof PatchedReputationPolicyRequest */ threshold?: number; } /** * Check if a given object implements the PatchedReputationPolicyRequest interface. */ export function instanceOfPatchedReputationPolicyRequest(value: object): value is PatchedReputationPolicyRequest { return true; } export function PatchedReputationPolicyRequestFromJSON(json: any): PatchedReputationPolicyRequest { return PatchedReputationPolicyRequestFromJSONTyped(json, false); } export function PatchedReputationPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedReputationPolicyRequest { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : 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 PatchedReputationPolicyRequestToJSON(json: any): PatchedReputationPolicyRequest { return PatchedReputationPolicyRequestToJSONTyped(json, false); } export function PatchedReputationPolicyRequestToJSONTyped(value?: PatchedReputationPolicyRequest | 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'], }; }