/* tslint:disable */ /* eslint-disable */ /** * Tapis Workflows API * Create and manage pipelines * * The version of the OpenAPI document: 1.6.0 * Contact: cicsupport@tacc.utexas.edu * * 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 PipelineLock */ export interface PipelineLock { /** * * @type {string} * @memberof PipelineLock */ uuid?: string; /** * * @type {string} * @memberof PipelineLock */ pipeline_id?: string; /** * * @type {string} * @memberof PipelineLock */ pipeline_run_uuid?: string; /** * * @type {string} * @memberof PipelineLock */ created_at?: string; /** * * @type {string} * @memberof PipelineLock */ acquired_at?: string; /** * * @type {number} * @memberof PipelineLock */ expires_in?: number; } export function PipelineLockFromJSON(json: any): PipelineLock { return PipelineLockFromJSONTyped(json, false); } export function PipelineLockFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineLock { if ((json === undefined) || (json === null)) { return json; } return { 'uuid': !exists(json, 'uuid') ? undefined : json['uuid'], 'pipeline_id': !exists(json, 'pipeline_id') ? undefined : json['pipeline_id'], 'pipeline_run_uuid': !exists(json, 'pipeline_run_uuid') ? undefined : json['pipeline_run_uuid'], 'created_at': !exists(json, 'created_at') ? undefined : json['created_at'], 'acquired_at': !exists(json, 'acquired_at') ? undefined : json['acquired_at'], 'expires_in': !exists(json, 'expires_in') ? undefined : json['expires_in'], }; } export function PipelineLockToJSON(value?: PipelineLock | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'uuid': value.uuid, 'pipeline_id': value.pipeline_id, 'pipeline_run_uuid': value.pipeline_run_uuid, 'created_at': value.created_at, 'acquired_at': value.acquired_at, 'expires_in': value.expires_in, }; }