/* 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'; import type { LicenseOverride } from './LicenseOverride'; import { LicenseOverrideFromJSON, LicenseOverrideFromJSONTyped, LicenseOverrideToJSON, LicenseOverrideToJSONTyped, } from './LicenseOverride'; /** * * @export * @interface LicenseOverrideByOwner */ export interface LicenseOverrideByOwner { /** * * @type {LicenseOverride} * @memberof LicenseOverrideByOwner */ licenseOverride?: LicenseOverride; /** * * @type {string} * @memberof LicenseOverrideByOwner */ ownerId?: string; /** * * @type {string} * @memberof LicenseOverrideByOwner */ ownerName?: string; /** * * @type {string} * @memberof LicenseOverrideByOwner */ ownerType?: LicenseOverrideByOwnerOwnerTypeEnum; } /** * @export */ export const LicenseOverrideByOwnerOwnerTypeEnum = { Application: 'application', Organization: 'organization', RepositoryContainer: 'repository_container', RepositoryManager: 'repository_manager', Repository: 'repository', HostedRepositoryComponent: 'hosted_repository_component', Global: 'global' } as const; export type LicenseOverrideByOwnerOwnerTypeEnum = typeof LicenseOverrideByOwnerOwnerTypeEnum[keyof typeof LicenseOverrideByOwnerOwnerTypeEnum]; /** * Check if a given object implements the LicenseOverrideByOwner interface. */ export function instanceOfLicenseOverrideByOwner(value: object): value is LicenseOverrideByOwner { return true; } export function LicenseOverrideByOwnerFromJSON(json: any): LicenseOverrideByOwner { return LicenseOverrideByOwnerFromJSONTyped(json, false); } export function LicenseOverrideByOwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseOverrideByOwner { if (json == null) { return json; } return { 'licenseOverride': json['licenseOverride'] == null ? undefined : LicenseOverrideFromJSON(json['licenseOverride']), 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'ownerName': json['ownerName'] == null ? undefined : json['ownerName'], 'ownerType': json['ownerType'] == null ? undefined : json['ownerType'], }; } export function LicenseOverrideByOwnerToJSON(json: any): LicenseOverrideByOwner { return LicenseOverrideByOwnerToJSONTyped(json, false); } export function LicenseOverrideByOwnerToJSONTyped(value?: LicenseOverrideByOwner | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'licenseOverride': LicenseOverrideToJSON(value['licenseOverride']), 'ownerId': value['ownerId'], 'ownerName': value['ownerName'], 'ownerType': value['ownerType'], }; }