/* 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 { EnumIdentityType, EnumIdentityTypeFromJSON, EnumIdentityTypeFromJSONTyped, EnumIdentityTypeToJSON, ReqBaseIdentity, ReqBaseIdentityFromJSON, ReqBaseIdentityFromJSONTyped, ReqBaseIdentityToJSON, ReqGithubCred, ReqGithubCredFromJSON, ReqGithubCredFromJSONTyped, ReqGithubCredToJSON, ReqGithubIdentityAllOf, ReqGithubIdentityAllOfFromJSON, ReqGithubIdentityAllOfFromJSONTyped, ReqGithubIdentityAllOfToJSON, } from './'; /** * * @export * @interface ReqGithubIdentity */ export interface ReqGithubIdentity { /** * * @type {string} * @memberof ReqGithubIdentity */ name?: string; /** * * @type {string} * @memberof ReqGithubIdentity */ description?: string; /** * * @type {EnumIdentityType} * @memberof ReqGithubIdentity */ type: EnumIdentityType; /** * * @type {ReqGithubCred} * @memberof ReqGithubIdentity */ credentials?: ReqGithubCred; } export function ReqGithubIdentityFromJSON(json: any): ReqGithubIdentity { return ReqGithubIdentityFromJSONTyped(json, false); } export function ReqGithubIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGithubIdentity { if ((json === undefined) || (json === null)) { return json; } return { 'name': !exists(json, 'name') ? undefined : json['name'], 'description': !exists(json, 'description') ? undefined : json['description'], 'type': EnumIdentityTypeFromJSON(json['type']), 'credentials': !exists(json, 'credentials') ? undefined : ReqGithubCredFromJSON(json['credentials']), }; } export function ReqGithubIdentityToJSON(value?: ReqGithubIdentity | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'name': value.name, 'description': value.description, 'type': EnumIdentityTypeToJSON(value.type), 'credentials': ReqGithubCredToJSON(value.credentials), }; }