/* 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, ReqBaseContext, ReqBaseContextFromJSON, ReqBaseContextFromJSONTyped, ReqBaseContextToJSON, ReqGitlabContextAllOf, ReqGitlabContextAllOfFromJSON, ReqGitlabContextAllOfFromJSONTyped, ReqGitlabContextAllOfToJSON, ReqGitlabCred, ReqGitlabCredFromJSON, ReqGitlabCredFromJSONTyped, ReqGitlabCredToJSON, ReqRepoContext, ReqRepoContextFromJSON, ReqRepoContextFromJSONTyped, ReqRepoContextToJSON, } from './'; /** * * @export * @interface ReqGitlabContext */ export interface ReqGitlabContext { /** * * @type {EnumContextType} * @memberof ReqGitlabContext */ type: EnumContextType; /** * * @type {EnumContextVisibility} * @memberof ReqGitlabContext */ visibility: EnumContextVisibility; /** * * @type {string} * @memberof ReqGitlabContext */ url: string; /** * * @type {string} * @memberof ReqGitlabContext */ branch: string; /** * * @type {string} * @memberof ReqGitlabContext */ build_file_path: string; /** * * @type {string} * @memberof ReqGitlabContext */ sub_path?: string; /** * * @type {ReqGitlabCred} * @memberof ReqGitlabContext */ credentials?: ReqGitlabCred; /** * * @type {string} * @memberof ReqGitlabContext */ identity_uuid?: string; } export function ReqGitlabContextFromJSON(json: any): ReqGitlabContext { return ReqGitlabContextFromJSONTyped(json, false); } export function ReqGitlabContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGitlabContext { if ((json === undefined) || (json === null)) { return json; } return { 'type': EnumContextTypeFromJSON(json['type']), 'visibility': EnumContextVisibilityFromJSON(json['visibility']), 'url': json['url'], 'branch': json['branch'], 'build_file_path': json['build_file_path'], 'sub_path': !exists(json, 'sub_path') ? undefined : json['sub_path'], 'credentials': !exists(json, 'credentials') ? undefined : ReqGitlabCredFromJSON(json['credentials']), 'identity_uuid': !exists(json, 'identity_uuid') ? undefined : json['identity_uuid'], }; } export function ReqGitlabContextToJSON(value?: ReqGitlabContext | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'type': EnumContextTypeToJSON(value.type), 'visibility': EnumContextVisibilityToJSON(value.visibility), 'url': value.url, 'branch': value.branch, 'build_file_path': value.build_file_path, 'sub_path': value.sub_path, 'credentials': ReqGitlabCredToJSON(value.credentials), 'identity_uuid': value.identity_uuid, }; }