/* 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'; /** * Password Expiry Policy Serializer * @export * @interface PatchedPasswordExpiryPolicyRequest */ export interface PatchedPasswordExpiryPolicyRequest { /** * * @type {string} * @memberof PatchedPasswordExpiryPolicyRequest */ 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 PatchedPasswordExpiryPolicyRequest */ executionLogging?: boolean; /** * * @type {number} * @memberof PatchedPasswordExpiryPolicyRequest */ days?: number; /** * * @type {boolean} * @memberof PatchedPasswordExpiryPolicyRequest */ denyOnly?: boolean; } /** * Check if a given object implements the PatchedPasswordExpiryPolicyRequest interface. */ export function instanceOfPatchedPasswordExpiryPolicyRequest(value: object): value is PatchedPasswordExpiryPolicyRequest { return true; } export function PatchedPasswordExpiryPolicyRequestFromJSON(json: any): PatchedPasswordExpiryPolicyRequest { return PatchedPasswordExpiryPolicyRequestFromJSONTyped(json, false); } export function PatchedPasswordExpiryPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedPasswordExpiryPolicyRequest { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'], 'days': json['days'] == null ? undefined : json['days'], 'denyOnly': json['deny_only'] == null ? undefined : json['deny_only'], }; } export function PatchedPasswordExpiryPolicyRequestToJSON(json: any): PatchedPasswordExpiryPolicyRequest { return PatchedPasswordExpiryPolicyRequestToJSONTyped(json, false); } export function PatchedPasswordExpiryPolicyRequestToJSONTyped(value?: PatchedPasswordExpiryPolicyRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'execution_logging': value['executionLogging'], 'days': value['days'], 'deny_only': value['denyOnly'], }; }