/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface UserMapping */ export interface UserMapping { /** * * @type {string} * @memberof UserMapping */ from?: UserMappingFromEnum; /** * * @type {string} * @memberof UserMapping */ to?: UserMappingToEnum; } /** * @export */ export const UserMappingFromEnum = { ScmUsername: 'SCM_USERNAME', ScmEmail: 'SCM_EMAIL', ScmFullname: 'SCM_FULLNAME', GitlogEmail: 'GITLOG_EMAIL', GitlogFullname: 'GITLOG_FULLNAME' } as const; export type UserMappingFromEnum = typeof UserMappingFromEnum[keyof typeof UserMappingFromEnum]; /** * @export */ export const UserMappingToEnum = { IqUsername: 'IQ_USERNAME', IqEmail: 'IQ_EMAIL', IqFullname: 'IQ_FULLNAME' } as const; export type UserMappingToEnum = typeof UserMappingToEnum[keyof typeof UserMappingToEnum]; /** * Check if a given object implements the UserMapping interface. */ export function instanceOfUserMapping(value: object): value is UserMapping { return true; } export function UserMappingFromJSON(json: any): UserMapping { return UserMappingFromJSONTyped(json, false); } export function UserMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserMapping { if (json == null) { return json; } return { 'from': json['from'] == null ? undefined : json['from'], 'to': json['to'] == null ? undefined : json['to'], }; } export function UserMappingToJSON(json: any): UserMapping { return UserMappingToJSONTyped(json, false); } export function UserMappingToJSONTyped(value?: UserMapping | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'from': value['from'], 'to': value['to'], }; }