"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc1
 * 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfOutpost = instanceOfOutpost;
exports.OutpostFromJSON = OutpostFromJSON;
exports.OutpostFromJSONTyped = OutpostFromJSONTyped;
exports.OutpostToJSON = OutpostToJSON;
exports.OutpostToJSONTyped = OutpostToJSONTyped;
const ServiceConnection_1 = require("./ServiceConnection");
const OutpostTypeEnum_1 = require("./OutpostTypeEnum");
const Provider_1 = require("./Provider");
/**
 * Check if a given object implements the Outpost interface.
 */
function instanceOfOutpost(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    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 (!('providersObj' in value) || value['providersObj'] === undefined)
        return false;
    if (!('serviceConnectionObj' in value) || value['serviceConnectionObj'] === undefined)
        return false;
    if (!('refreshIntervalS' in value) || value['refreshIntervalS'] === undefined)
        return false;
    if (!('tokenIdentifier' in value) || value['tokenIdentifier'] === undefined)
        return false;
    if (!('config' in value) || value['config'] === undefined)
        return false;
    return true;
}
function OutpostFromJSON(json) {
    return OutpostFromJSONTyped(json, false);
}
function OutpostFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'type': (0, OutpostTypeEnum_1.OutpostTypeEnumFromJSON)(json['type']),
        'providers': json['providers'],
        'providersObj': (json['providers_obj'].map(Provider_1.ProviderFromJSON)),
        'serviceConnection': json['service_connection'] == null ? undefined : json['service_connection'],
        'serviceConnectionObj': (0, ServiceConnection_1.ServiceConnectionFromJSON)(json['service_connection_obj']),
        'refreshIntervalS': json['refresh_interval_s'],
        'tokenIdentifier': json['token_identifier'],
        'config': json['config'],
        'managed': json['managed'] == null ? undefined : json['managed'],
    };
}
function OutpostToJSON(json) {
    return OutpostToJSONTyped(json, false);
}
function OutpostToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'type': (0, OutpostTypeEnum_1.OutpostTypeEnumToJSON)(value['type']),
        'providers': value['providers'],
        'service_connection': value['serviceConnection'],
        'config': value['config'],
        'managed': value['managed'],
    };
}
//# sourceMappingURL=Outpost.js.map