"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.instanceOfPatchedEndpointRequest = instanceOfPatchedEndpointRequest;
exports.PatchedEndpointRequestFromJSON = PatchedEndpointRequestFromJSON;
exports.PatchedEndpointRequestFromJSONTyped = PatchedEndpointRequestFromJSONTyped;
exports.PatchedEndpointRequestToJSON = PatchedEndpointRequestToJSON;
exports.PatchedEndpointRequestToJSONTyped = PatchedEndpointRequestToJSONTyped;
const EndpointAuthModeEnum_1 = require("./EndpointAuthModeEnum");
const ProtocolEnum_1 = require("./ProtocolEnum");
/**
 * Check if a given object implements the PatchedEndpointRequest interface.
 */
function instanceOfPatchedEndpointRequest(value) {
    return true;
}
function PatchedEndpointRequestFromJSON(json) {
    return PatchedEndpointRequestFromJSONTyped(json, false);
}
function PatchedEndpointRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'provider': json['provider'] == null ? undefined : json['provider'],
        'protocol': json['protocol'] == null ? undefined : (0, ProtocolEnum_1.ProtocolEnumFromJSON)(json['protocol']),
        'host': json['host'] == null ? undefined : json['host'],
        'settings': json['settings'] == null ? undefined : json['settings'],
        'propertyMappings': json['property_mappings'] == null ? undefined : json['property_mappings'],
        'authMode': json['auth_mode'] == null ? undefined : (0, EndpointAuthModeEnum_1.EndpointAuthModeEnumFromJSON)(json['auth_mode']),
        'maximumConnections': json['maximum_connections'] == null ? undefined : json['maximum_connections'],
    };
}
function PatchedEndpointRequestToJSON(json) {
    return PatchedEndpointRequestToJSONTyped(json, false);
}
function PatchedEndpointRequestToJSONTyped(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=PatchedEndpointRequest.js.map