/* 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 { EnumInstaller, EnumInstallerFromJSON, EnumInstallerFromJSONTyped, EnumInstallerToJSON, EnumRuntimeEnvironment, EnumRuntimeEnvironmentFromJSON, EnumRuntimeEnvironmentFromJSONTyped, EnumRuntimeEnvironmentToJSON, GitCloneDetails, GitCloneDetailsFromJSON, GitCloneDetailsFromJSONTyped, GitCloneDetailsToJSON, } from './'; /** * * @export * @interface ReqFunctionTaskAllOf */ export interface ReqFunctionTaskAllOf { /** * * @type {Array} * @memberof ReqFunctionTaskAllOf */ git_repositories?: Array; /** * * @type {EnumRuntimeEnvironment} * @memberof ReqFunctionTaskAllOf */ runtime: EnumRuntimeEnvironment; /** * * @type {EnumInstaller} * @memberof ReqFunctionTaskAllOf */ installer: EnumInstaller; /** * * @type {string} * @memberof ReqFunctionTaskAllOf */ command?: string; /** * * @type {string} * @memberof ReqFunctionTaskAllOf */ entrypoint?: string; /** * * @type {string} * @memberof ReqFunctionTaskAllOf */ code?: string; /** * * @type {Array} * @memberof ReqFunctionTaskAllOf */ packages?: Array; } export function ReqFunctionTaskAllOfFromJSON(json: any): ReqFunctionTaskAllOf { return ReqFunctionTaskAllOfFromJSONTyped(json, false); } export function ReqFunctionTaskAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqFunctionTaskAllOf { if ((json === undefined) || (json === null)) { return json; } return { 'git_repositories': !exists(json, 'git_repositories') ? undefined : ((json['git_repositories'] as Array).map(GitCloneDetailsFromJSON)), 'runtime': EnumRuntimeEnvironmentFromJSON(json['runtime']), 'installer': EnumInstallerFromJSON(json['installer']), 'command': !exists(json, 'command') ? undefined : json['command'], 'entrypoint': !exists(json, 'entrypoint') ? undefined : json['entrypoint'], 'code': !exists(json, 'code') ? undefined : json['code'], 'packages': !exists(json, 'packages') ? undefined : json['packages'], }; } export function ReqFunctionTaskAllOfToJSON(value?: ReqFunctionTaskAllOf | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'git_repositories': value.git_repositories === undefined ? undefined : ((value.git_repositories as Array).map(GitCloneDetailsToJSON)), 'runtime': EnumRuntimeEnvironmentToJSON(value.runtime), 'installer': EnumInstallerToJSON(value.installer), 'command': value.command, 'entrypoint': value.entrypoint, 'code': value.code, 'packages': value.packages, }; }