/* 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 ApiMemberDTO */ export interface ApiMemberDTO { /** * * @type {string} * @memberof ApiMemberDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiMemberDTO */ ownerType?: string; /** * * @type {string} * @memberof ApiMemberDTO */ type?: ApiMemberDTOTypeEnum; /** * * @type {string} * @memberof ApiMemberDTO */ userOrGroupName?: string; } /** * @export */ export const ApiMemberDTOTypeEnum = { User: 'USER', Group: 'GROUP' } as const; export type ApiMemberDTOTypeEnum = typeof ApiMemberDTOTypeEnum[keyof typeof ApiMemberDTOTypeEnum]; /** * Check if a given object implements the ApiMemberDTO interface. */ export function instanceOfApiMemberDTO(value: object): value is ApiMemberDTO { return true; } export function ApiMemberDTOFromJSON(json: any): ApiMemberDTO { return ApiMemberDTOFromJSONTyped(json, false); } export function ApiMemberDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiMemberDTO { if (json == null) { return json; } return { 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'ownerType': json['ownerType'] == null ? undefined : json['ownerType'], 'type': json['type'] == null ? undefined : json['type'], 'userOrGroupName': json['userOrGroupName'] == null ? undefined : json['userOrGroupName'], }; } export function ApiMemberDTOToJSON(json: any): ApiMemberDTO { return ApiMemberDTOToJSONTyped(json, false); } export function ApiMemberDTOToJSONTyped(value?: ApiMemberDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ownerId': value['ownerId'], 'ownerType': value['ownerType'], 'type': value['type'], 'userOrGroupName': value['userOrGroupName'], }; }