/* 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, } from './'; /** * * @export * @interface RegistryDestinationAllOf */ export interface RegistryDestinationAllOf { /** * * @type {DockerhubCred} * @memberof RegistryDestinationAllOf */ credentials?: DockerhubCred; /** * * @type {string} * @memberof RegistryDestinationAllOf */ tag?: string; /** * * @type {string} * @memberof RegistryDestinationAllOf */ url?: string; } export function RegistryDestinationAllOfFromJSON(json: any): RegistryDestinationAllOf { return RegistryDestinationAllOfFromJSONTyped(json, false); } export function RegistryDestinationAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistryDestinationAllOf { if ((json === undefined) || (json === null)) { return json; } return { 'credentials': !exists(json, 'credentials') ? undefined : DockerhubCredFromJSON(json['credentials']), 'tag': !exists(json, 'tag') ? undefined : json['tag'], 'url': !exists(json, 'url') ? undefined : json['url'], }; } export function RegistryDestinationAllOfToJSON(value?: RegistryDestinationAllOf | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'credentials': DockerhubCredToJSON(value.credentials), 'tag': value.tag, 'url': value.url, }; }