/* 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'; import { BaseArchive, BaseArchiveFromJSON, BaseArchiveFromJSONTyped, BaseArchiveToJSON, EnumArchiveType, EnumArchiveTypeFromJSON, EnumArchiveTypeFromJSONTyped, EnumArchiveTypeToJSON, TapisSystemArchiveAllOf, TapisSystemArchiveAllOfFromJSON, TapisSystemArchiveAllOfFromJSONTyped, TapisSystemArchiveAllOfToJSON, } from './'; /** * * @export * @interface TapisSystemArchive */ export interface TapisSystemArchive { /** * * @type {string} * @memberof TapisSystemArchive */ id: string; /** * * @type {EnumArchiveType} * @memberof TapisSystemArchive */ type: EnumArchiveType; /** * * @type {string} * @memberof TapisSystemArchive */ group: string; /** * * @type {string} * @memberof TapisSystemArchive */ tenant_id: string; /** * * @type {string} * @memberof TapisSystemArchive */ owner: string; /** * * @type {string} * @memberof TapisSystemArchive */ uuid?: string; /** * * @type {string} * @memberof TapisSystemArchive */ archive_dir: string; /** * * @type {string} * @memberof TapisSystemArchive */ system_id: string; } export function TapisSystemArchiveFromJSON(json: any): TapisSystemArchive { return TapisSystemArchiveFromJSONTyped(json, false); } export function TapisSystemArchiveFromJSONTyped(json: any, ignoreDiscriminator: boolean): TapisSystemArchive { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'type': EnumArchiveTypeFromJSON(json['type']), 'group': json['group'], 'tenant_id': json['tenant_id'], 'owner': json['owner'], 'uuid': !exists(json, 'uuid') ? undefined : json['uuid'], 'archive_dir': json['archive_dir'], 'system_id': json['system_id'], }; } export function TapisSystemArchiveToJSON(value?: TapisSystemArchive | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'type': EnumArchiveTypeToJSON(value.type), 'group': value.group, 'tenant_id': value.tenant_id, 'owner': value.owner, 'uuid': value.uuid, 'archive_dir': value.archive_dir, 'system_id': value.system_id, }; }