"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.instanceOfEndpointRequest = instanceOfEndpointRequest;
exports.EndpointRequestFromJSON = EndpointRequestFromJSON;
exports.EndpointRequestFromJSONTyped = EndpointRequestFromJSONTyped;
exports.EndpointRequestToJSON = EndpointRequestToJSON;
exports.EndpointRequestToJSONTyped = EndpointRequestToJSONTyped;
const EndpointAuthModeEnum_1 = require("./EndpointAuthModeEnum");
const ProtocolEnum_1 = require("./ProtocolEnum");
/**
 * Check if a given object implements the EndpointRequest interface.
 */
function instanceOfEndpointRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('provider' in value) || value['provider'] === undefined)
        return false;
    if (!('protocol' in value) || value['protocol'] === undefined)
        return false;
    if (!('host' in value) || value['host'] === undefined)
        return false;
    if (!('authMode' in value) || value['authMode'] === undefined)
        return false;
    return true;
}
function EndpointRequestFromJSON(json) {
    return EndpointRequestFromJSONTyped(json, false);
}
function EndpointRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'provider': json['provider'],
        'protocol': (0, ProtocolEnum_1.ProtocolEnumFromJSON)(json['protocol']),
        'host': json['host'],
        'settings': json['settings'] == null ? undefined : json['settings'],
        'propertyMappings': json['property_mappings'] == null ? undefined : json['property_mappings'],
        'authMode': (0, EndpointAuthModeEnum_1.EndpointAuthModeEnumFromJSON)(json['auth_mode']),
        'maximumConnections': json['maximum_connections'] == null ? undefined : json['maximum_connections'],
    };
}
function EndpointRequestToJSON(json) {
    return EndpointRequestToJSONTyped(json, false);
}
function EndpointRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'provider': value['provider'],
        'protocol': (0, ProtocolEnum_1.ProtocolEnumToJSON)(value['protocol']),
        'host': value['host'],
        'settings': value['settings'],
        'property_mappings': value['propertyMappings'],
        'auth_mode': (0, EndpointAuthModeEnum_1.EndpointAuthModeEnumToJSON)(value['authMode']),
        'maximum_connections': value['maximumConnections'],
    };
}
//# sourceMappingURL=EndpointRequest.js.map