// tslint:disable /** * 3Di API * 3Di simulation API (latest stable version: v3) Framework release: 3.0.1 3Di core release: 2.3.0.dev0 deployed on: 10:42AM (UTC) on October 04, 2022 * * The version of the OpenAPI document: v3 * Contact: info@nelen-schuurmans.nl * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface FileReadOnly */ export interface FileReadOnly { /** * * @type {string} * @memberof FileReadOnly */ readonly url?: string; /** * * @type {string} * @memberof FileReadOnly */ readonly filename?: string; /** * * @type {string} * @memberof FileReadOnly */ readonly state?: FileReadOnlyStateEnum; /** * * @type {string} * @memberof FileReadOnly */ stateDescription?: string | null; /** * * @type {string} * @memberof FileReadOnly */ readonly type?: FileReadOnlyTypeEnum; /** * Filesize in bytes * @type {number} * @memberof FileReadOnly */ readonly size?: number; /** * Optional eTag (md5sum) * @type {string} * @memberof FileReadOnly */ etag?: string | null; /** * * @type {Date} * @memberof FileReadOnly */ readonly expiryDate?: Date; /** * * @type {number} * @memberof FileReadOnly */ readonly id?: number; /** * * @type {object} * @memberof FileReadOnly */ readonly meta?: object; } export function FileReadOnlyFromJSON(json: any): FileReadOnly { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'filename': !exists(json, 'filename') ? undefined : json['filename'], 'state': !exists(json, 'state') ? undefined : json['state'], 'stateDescription': !exists(json, 'state_description') ? undefined : json['state_description'], 'type': !exists(json, 'type') ? undefined : json['type'], 'size': !exists(json, 'size') ? undefined : json['size'], 'etag': !exists(json, 'etag') ? undefined : json['etag'], 'expiryDate': !exists(json, 'expiry_date') ? undefined : new Date(json['expiry_date']), 'id': !exists(json, 'id') ? undefined : json['id'], 'meta': !exists(json, 'meta') ? undefined : json['meta'], }; } export function FileReadOnlyToJSON(value?: FileReadOnly): any { if (value === undefined) { return undefined; } return { 'state_description': value.stateDescription, 'etag': value.etag, }; } /** * @export * @enum {string} */ export enum FileReadOnlyStateEnum { Created = 'created', Uploaded = 'uploaded', Processed = 'processed', Error = 'error', Removed = 'removed' } /** * @export * @enum {string} */ export enum FileReadOnlyTypeEnum { Timeseries = 'timeseries', Rastertimeseries = 'rastertimeseries', Savedstate = 'savedstate', Results = 'results', Rasters = 'rasters', Gridadmin = 'gridadmin', Geojson = 'geojson', Initialwaterlevel = 'initialwaterlevel', Bulklateral = 'bulklateral', Bulkcontrol = 'bulkcontrol', BulkBoundaryconditions = 'bulk_boundaryconditions', Sqlite = 'sqlite', Tables = 'tables' }