/* 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 { SecretRef, SecretRefFromJSON, SecretRefFromJSONTyped, SecretRefToJSON, ValueFromHost, ValueFromHostFromJSON, ValueFromHostFromJSONTyped, ValueFromHostToJSON, ValueFromSecret, ValueFromSecretFromJSON, ValueFromSecretFromJSONTyped, ValueFromSecretToJSON, } from './'; /** * * @export * @interface ValueFromSecretOrHost */ export interface ValueFromSecretOrHost { /** * * @type {SecretRef} * @memberof ValueFromSecretOrHost */ secret?: SecretRef; /** * * @type {string} * @memberof ValueFromSecretOrHost */ host?: string; } export function ValueFromSecretOrHostFromJSON(json: any): ValueFromSecretOrHost { return ValueFromSecretOrHostFromJSONTyped(json, false); } export function ValueFromSecretOrHostFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueFromSecretOrHost { if ((json === undefined) || (json === null)) { return json; } return { 'secret': !exists(json, 'secret') ? undefined : SecretRefFromJSON(json['secret']), 'host': !exists(json, 'host') ? undefined : json['host'], }; } export function ValueFromSecretOrHostToJSON(value?: ValueFromSecretOrHost | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'secret': SecretRefToJSON(value.secret), 'host': value.host, }; }