"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfDisk = instanceOfDisk;
exports.DiskFromJSON = DiskFromJSON;
exports.DiskFromJSONTyped = DiskFromJSONTyped;
exports.DiskToJSON = DiskToJSON;
exports.DiskToJSONTyped = DiskToJSONTyped;
/**
 * Check if a given object implements the Disk interface.
 */
function instanceOfDisk(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('mountpoint' in value) || value['mountpoint'] === undefined)
        return false;
    return true;
}
function DiskFromJSON(json) {
    return DiskFromJSONTyped(json, false);
}
function DiskFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'mountpoint': json['mountpoint'],
        'label': json['label'] == null ? undefined : json['label'],
        'capacityTotalBytes': json['capacity_total_bytes'] == null ? undefined : json['capacity_total_bytes'],
        'capacityUsedBytes': json['capacity_used_bytes'] == null ? undefined : json['capacity_used_bytes'],
        'encryptionEnabled': json['encryption_enabled'] == null ? undefined : json['encryption_enabled'],
    };
}
function DiskToJSON(json) {
    return DiskToJSONTyped(json, false);
}
function DiskToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'mountpoint': value['mountpoint'],
        'label': value['label'],
        'capacity_total_bytes': value['capacityTotalBytes'],
        'capacity_used_bytes': value['capacityUsedBytes'],
        'encryption_enabled': value['encryptionEnabled'],
    };
}
//# sourceMappingURL=Disk.js.map