/* 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, ReqGithubContextAllOf, ReqGithubContextAllOfFromJSON, ReqGithubContextAllOfFromJSONTyped, ReqGithubContextAllOfToJSON, ReqGithubCred, ReqGithubCredFromJSON, ReqGithubCredFromJSONTyped, ReqGithubCredToJSON, ReqRepoContext, ReqRepoContextFromJSON, ReqRepoContextFromJSONTyped, ReqRepoContextToJSON, } from './'; /** * * @export * @interface ReqGithubContext */ export interface ReqGithubContext { /** * * @type {EnumContextType} * @memberof ReqGithubContext */ type: EnumContextType; /** * * @type {EnumContextVisibility} * @memberof ReqGithubContext */ visibility: EnumContextVisibility; /** * * @type {string} * @memberof ReqGithubContext */ url: string; /** * * @type {string} * @memberof ReqGithubContext */ branch: string; /** * * @type {string} * @memberof ReqGithubContext */ build_file_path: string; /** * * @type {string} * @memberof ReqGithubContext */ sub_path?: string; /** * * @type {ReqGithubCred} * @memberof ReqGithubContext */ credentials?: ReqGithubCred; /** * * @type {string} * @memberof ReqGithubContext */ identity_uuid?: string; } export function ReqGithubContextFromJSON(json: any): ReqGithubContext { return ReqGithubContextFromJSONTyped(json, false); } export function ReqGithubContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGithubContext { 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 : ReqGithubCredFromJSON(json['credentials']), 'identity_uuid': !exists(json, 'identity_uuid') ? undefined : json['identity_uuid'], }; } export function ReqGithubContextToJSON(value?: ReqGithubContext | 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': ReqGithubCredToJSON(value.credentials), 'identity_uuid': value.identity_uuid, }; }