"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfOutpostRequest = instanceOfOutpostRequest;
exports.OutpostRequestFromJSON = OutpostRequestFromJSON;
exports.OutpostRequestFromJSONTyped = OutpostRequestFromJSONTyped;
exports.OutpostRequestToJSON = OutpostRequestToJSON;
exports.OutpostRequestToJSONTyped = OutpostRequestToJSONTyped;
const OutpostTypeEnum_1 = require("./OutpostTypeEnum");
/**
 * Check if a given object implements the OutpostRequest interface.
 */
function instanceOfOutpostRequest(value) {
    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;
}
function OutpostRequestFromJSON(json) {
    return OutpostRequestFromJSONTyped(json, false);
}
function OutpostRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'type': (0, OutpostTypeEnum_1.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'],
    };
}
function OutpostRequestToJSON(json) {
    return OutpostRequestToJSONTyped(json, false);
}
function OutpostRequestToJSONTyped(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=OutpostRequest.js.map