/* 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 PatchedOutpostRequest */ export interface PatchedOutpostRequest { /** * * @type {string} * @memberof PatchedOutpostRequest */ name?: string; /** * * @type {OutpostTypeEnum} * @memberof PatchedOutpostRequest */ type?: OutpostTypeEnum; /** * * @type {Array} * @memberof PatchedOutpostRequest */ providers?: Array; /** * Select Service-Connection authentik should use to manage this outpost. Leave empty if authentik should not handle the deployment. * @type {string} * @memberof PatchedOutpostRequest */ serviceConnection?: string | null; /** * * @type {{ [key: string]: any; }} * @memberof PatchedOutpostRequest */ 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 PatchedOutpostRequest */ managed?: string | null; } /** * Check if a given object implements the PatchedOutpostRequest interface. */ export function instanceOfPatchedOutpostRequest(value: object): value is PatchedOutpostRequest { return true; } export function PatchedOutpostRequestFromJSON(json: any): PatchedOutpostRequest { return PatchedOutpostRequestFromJSONTyped(json, false); } export function PatchedOutpostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedOutpostRequest { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'type': json['type'] == null ? undefined : OutpostTypeEnumFromJSON(json['type']), 'providers': json['providers'] == null ? undefined : json['providers'], 'serviceConnection': json['service_connection'] == null ? undefined : json['service_connection'], 'config': json['config'] == null ? undefined : json['config'], 'managed': json['managed'] == null ? undefined : json['managed'], }; } export function PatchedOutpostRequestToJSON(json: any): PatchedOutpostRequest { return PatchedOutpostRequestToJSONTyped(json, false); } export function PatchedOutpostRequestToJSONTyped(value?: PatchedOutpostRequest | 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'], }; }