/* 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'; import type { OutpostTypeEnum } from './OutpostTypeEnum'; import { OutpostTypeEnumFromJSON, OutpostTypeEnumFromJSONTyped, OutpostTypeEnumToJSON, OutpostTypeEnumToJSONTyped, } from './OutpostTypeEnum'; /** * Outpost Serializer * @export * @interface OutpostRequest */ export interface OutpostRequest { /** * * @type {string} * @memberof OutpostRequest */ name: string; /** * * @type {OutpostTypeEnum} * @memberof OutpostRequest */ type: OutpostTypeEnum; /** * * @type {Array} * @memberof OutpostRequest */ providers: Array; /** * Select Service-Connection authentik should use to manage this outpost. Leave empty if authentik should not handle the deployment. * @type {string} * @memberof OutpostRequest */ serviceConnection?: string | null; /** * * @type {{ [key: string]: any; }} * @memberof OutpostRequest */ config: { [key: string]: any; }; /** * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. * @type {string} * @memberof OutpostRequest */ managed?: string | null; } /** * Check if a given object implements the OutpostRequest interface. */ export function instanceOfOutpostRequest(value: object): value is OutpostRequest { if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('providers' in value) || value['providers'] === undefined) return false; if (!('config' in value) || value['config'] === undefined) return false; return true; } export function OutpostRequestFromJSON(json: any): OutpostRequest { return OutpostRequestFromJSONTyped(json, false); } export function OutpostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutpostRequest { if (json == null) { return json; } return { 'name': json['name'], 'type': OutpostTypeEnumFromJSON(json['type']), 'providers': json['providers'], 'serviceConnection': json['service_connection'] == null ? undefined : json['service_connection'], 'config': json['config'], 'managed': json['managed'] == null ? undefined : json['managed'], }; } export function OutpostRequestToJSON(json: any): OutpostRequest { return OutpostRequestToJSONTyped(json, false); } export function OutpostRequestToJSONTyped(value?: OutpostRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'type': OutpostTypeEnumToJSON(value['type']), 'providers': value['providers'], 'service_connection': value['serviceConnection'], 'config': value['config'], 'managed': value['managed'], }; }