// 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 SimulationUpdate */ export interface SimulationUpdate { /** * * @type {string} * @memberof SimulationUpdate */ readonly url?: string; /** * * @type {string} * @memberof SimulationUpdate */ readonly slug?: string; /** * * @type {string} * @memberof SimulationUpdate */ readonly uuid?: string; /** * * @type {string} * @memberof SimulationUpdate */ name: string; /** * tags provided as a list of strings * @type {Array} * @memberof SimulationUpdate */ tags?: Array; /** * * @type {string} * @memberof SimulationUpdate */ readonly created?: string; /** * The id of a threedimodel * @type {string} * @memberof SimulationUpdate */ readonly threedimodel?: string; /** * The unique_id of an organisation * @type {string} * @memberof SimulationUpdate */ readonly organisation?: string; /** * * @type {string} * @memberof SimulationUpdate */ readonly organisationName?: string; /** * The username of a user * @type {string} * @memberof SimulationUpdate */ readonly user?: string; /** * * @type {Date} * @memberof SimulationUpdate */ readonly startDatetime?: Date; /** * * @type {Date} * @memberof SimulationUpdate */ endDatetime?: Date; /** * * @type {number} * @memberof SimulationUpdate */ duration?: number; /** * * @type {string} * @memberof SimulationUpdate */ readonly durationHumanized?: string; /** * * @type {number} * @memberof SimulationUpdate */ readonly threedimodelId?: number; /** * * @type {number} * @memberof SimulationUpdate */ readonly id?: number; /** * * @type {string} * @memberof SimulationUpdate */ readonly threedicoreVersion?: string; /** * * @type {string} * @memberof SimulationUpdate */ readonly clonedFrom?: string; /** * The name of the compute cluster that runs/has run the simulation. * @type {string} * @memberof SimulationUpdate */ readonly computeCluster?: string; } export function SimulationUpdateFromJSON(json: any): SimulationUpdate { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'slug': !exists(json, 'slug') ? undefined : json['slug'], 'uuid': !exists(json, 'uuid') ? undefined : json['uuid'], 'name': json['name'], 'tags': !exists(json, 'tags') ? undefined : json['tags'], 'created': !exists(json, 'created') ? undefined : json['created'], 'threedimodel': !exists(json, 'threedimodel') ? undefined : json['threedimodel'], 'organisation': !exists(json, 'organisation') ? undefined : json['organisation'], 'organisationName': !exists(json, 'organisation_name') ? undefined : json['organisation_name'], 'user': !exists(json, 'user') ? undefined : json['user'], 'startDatetime': !exists(json, 'start_datetime') ? undefined : new Date(json['start_datetime']), 'endDatetime': !exists(json, 'end_datetime') ? undefined : new Date(json['end_datetime']), 'duration': !exists(json, 'duration') ? undefined : json['duration'], 'durationHumanized': !exists(json, 'duration_humanized') ? undefined : json['duration_humanized'], 'threedimodelId': !exists(json, 'threedimodel_id') ? undefined : json['threedimodel_id'], 'id': !exists(json, 'id') ? undefined : json['id'], 'threedicoreVersion': !exists(json, 'threedicore_version') ? undefined : json['threedicore_version'], 'clonedFrom': !exists(json, 'cloned_from') ? undefined : json['cloned_from'], 'computeCluster': !exists(json, 'compute_cluster') ? undefined : json['compute_cluster'], }; } export function SimulationUpdateToJSON(value?: SimulationUpdate): any { if (value === undefined) { return undefined; } return { 'name': value.name, 'tags': value.tags, 'end_datetime': value.endDatetime === undefined ? undefined : value.endDatetime.toISOString(), 'duration': value.duration, }; }