/* 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 { DockerhubCred, DockerhubCredFromJSON, DockerhubCredFromJSONTyped, DockerhubCredToJSON, DockerhubDestination, DockerhubDestinationFromJSON, DockerhubDestinationFromJSONTyped, DockerhubDestinationToJSON, EnumDestinationType, EnumDestinationTypeFromJSON, EnumDestinationTypeFromJSONTyped, EnumDestinationTypeToJSON, LocalDestination, LocalDestinationFromJSON, LocalDestinationFromJSONTyped, LocalDestinationToJSON, } from './'; /** * * @export * @interface Destination */ export interface Destination { /** * * @type {EnumDestinationType} * @memberof Destination */ type: EnumDestinationType; /** * * @type {DockerhubCred} * @memberof Destination */ credentials?: DockerhubCred; /** * * @type {string} * @memberof Destination */ tag?: string; /** * * @type {string} * @memberof Destination */ url?: string; /** * * @type {string} * @memberof Destination */ filename?: string; } export function DestinationFromJSON(json: any): Destination { return DestinationFromJSONTyped(json, false); } export function DestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Destination { if ((json === undefined) || (json === null)) { return json; } return { 'type': EnumDestinationTypeFromJSON(json['type']), 'credentials': !exists(json, 'credentials') ? undefined : DockerhubCredFromJSON(json['credentials']), 'tag': !exists(json, 'tag') ? undefined : json['tag'], 'url': !exists(json, 'url') ? undefined : json['url'], 'filename': !exists(json, 'filename') ? undefined : json['filename'], }; } export function DestinationToJSON(value?: Destination | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'type': EnumDestinationTypeToJSON(value.type), 'credentials': DockerhubCredToJSON(value.credentials), 'tag': value.tag, 'url': value.url, 'filename': value.filename, }; }