/* 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'; /** * * @export * @interface SecretRef */ export interface SecretRef { /** * * @type {string} * @memberof SecretRef */ engine?: string; /** * * @type {string} * @memberof SecretRef */ pk?: string; /** * * @type {Array} * @memberof SecretRef */ field_selector?: Array; } export function SecretRefFromJSON(json: any): SecretRef { return SecretRefFromJSONTyped(json, false); } export function SecretRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretRef { if ((json === undefined) || (json === null)) { return json; } return { 'engine': !exists(json, 'engine') ? undefined : json['engine'], 'pk': !exists(json, 'pk') ? undefined : json['pk'], 'field_selector': !exists(json, 'field_selector') ? undefined : json['field_selector'], }; } export function SecretRefToJSON(value?: SecretRef | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'engine': value.engine, 'pk': value.pk, 'field_selector': value.field_selector, }; }