/* 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'; /** * Group Membership Policy Serializer * @export * @interface ExpressionPolicyRequest */ export interface ExpressionPolicyRequest { /** * * @type {string} * @memberof ExpressionPolicyRequest */ 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 ExpressionPolicyRequest */ executionLogging?: boolean; /** * * @type {string} * @memberof ExpressionPolicyRequest */ expression: string; } /** * Check if a given object implements the ExpressionPolicyRequest interface. */ export function instanceOfExpressionPolicyRequest(value: object): value is ExpressionPolicyRequest { if (!('name' in value) || value['name'] === undefined) return false; if (!('expression' in value) || value['expression'] === undefined) return false; return true; } export function ExpressionPolicyRequestFromJSON(json: any): ExpressionPolicyRequest { return ExpressionPolicyRequestFromJSONTyped(json, false); } export function ExpressionPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpressionPolicyRequest { if (json == null) { return json; } return { 'name': json['name'], 'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'], 'expression': json['expression'], }; } export function ExpressionPolicyRequestToJSON(json: any): ExpressionPolicyRequest { return ExpressionPolicyRequestToJSONTyped(json, false); } export function ExpressionPolicyRequestToJSONTyped(value?: ExpressionPolicyRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'execution_logging': value['executionLogging'], 'expression': value['expression'], }; }