/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.2.3-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. */ import { mapValues } from '../runtime'; /** * * @export * @interface Disk */ export interface Disk { /** * * @type {string} * @memberof Disk */ name: string; /** * * @type {string} * @memberof Disk */ mountpoint: string; /** * * @type {string} * @memberof Disk */ label?: string; /** * * @type {number} * @memberof Disk */ capacityTotalBytes?: number; /** * * @type {number} * @memberof Disk */ capacityUsedBytes?: number; /** * * @type {boolean} * @memberof Disk */ encryptionEnabled?: boolean; } /** * Check if a given object implements the Disk interface. */ export function instanceOfDisk(value: object): value is Disk { if (!('name' in value) || value['name'] === undefined) return false; if (!('mountpoint' in value) || value['mountpoint'] === undefined) return false; return true; } export function DiskFromJSON(json: any): Disk { return DiskFromJSONTyped(json, false); } export function DiskFromJSONTyped(json: any, ignoreDiscriminator: boolean): Disk { 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'], }; } export function DiskToJSON(json: any): Disk { return DiskToJSONTyped(json, false); } export function DiskToJSONTyped(value?: Disk | null, ignoreDiscriminator: boolean = false): any { 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'], }; }