/* 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 { EnumContextType, EnumContextTypeFromJSON, EnumContextTypeFromJSONTyped, EnumContextTypeToJSON, EnumContextVisibility, EnumContextVisibilityFromJSON, EnumContextVisibilityFromJSONTyped, EnumContextVisibilityToJSON, ReqNonLocalContext, ReqNonLocalContextFromJSON, ReqNonLocalContextFromJSONTyped, ReqNonLocalContextToJSON, ReqRegistryContextAllOf, ReqRegistryContextAllOfFromJSON, ReqRegistryContextAllOfFromJSONTyped, ReqRegistryContextAllOfToJSON, } from './'; /** * * @export * @interface ReqRegistryContext */ export interface ReqRegistryContext { /** * * @type {EnumContextType} * @memberof ReqRegistryContext */ type: EnumContextType; /** * * @type {EnumContextVisibility} * @memberof ReqRegistryContext */ visibility: EnumContextVisibility; /** * * @type {string} * @memberof ReqRegistryContext */ url: string; /** * * @type {string} * @memberof ReqRegistryContext */ tag?: string; } export function ReqRegistryContextFromJSON(json: any): ReqRegistryContext { return ReqRegistryContextFromJSONTyped(json, false); } export function ReqRegistryContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqRegistryContext { if ((json === undefined) || (json === null)) { return json; } return { 'type': EnumContextTypeFromJSON(json['type']), 'visibility': EnumContextVisibilityFromJSON(json['visibility']), 'url': json['url'], 'tag': !exists(json, 'tag') ? undefined : json['tag'], }; } export function ReqRegistryContextToJSON(value?: ReqRegistryContext | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'type': EnumContextTypeToJSON(value.type), 'visibility': EnumContextVisibilityToJSON(value.visibility), 'url': value.url, 'tag': value.tag, }; }