/* 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 ApiRepositoryDTO */ export interface ApiRepositoryDTO { /** * * @type {boolean} * @memberof ApiRepositoryDTO */ auditEnabled?: boolean; /** * * @type {string} * @memberof ApiRepositoryDTO */ format?: string; /** * * @type {boolean} * @memberof ApiRepositoryDTO */ monitoringEnabled?: boolean; /** * * @type {boolean} * @memberof ApiRepositoryDTO */ namespaceConfusionProtectionEnabled?: boolean; /** * * @type {boolean} * @memberof ApiRepositoryDTO */ policyCompliantComponentSelectionEnabled?: boolean; /** * * @type {string} * @memberof ApiRepositoryDTO */ proxyUrl?: string; /** * * @type {string} * @memberof ApiRepositoryDTO */ publicId?: string; /** * * @type {boolean} * @memberof ApiRepositoryDTO */ quarantineEnabled?: boolean; /** * * @type {string} * @memberof ApiRepositoryDTO */ repositoryId?: string; /** * * @type {string} * @memberof ApiRepositoryDTO */ type?: string; /** * * @type {string} * @memberof ApiRepositoryDTO */ upstreamUrl?: string; } /** * Check if a given object implements the ApiRepositoryDTO interface. */ export function instanceOfApiRepositoryDTO(value: object): value is ApiRepositoryDTO { return true; } export function ApiRepositoryDTOFromJSON(json: any): ApiRepositoryDTO { return ApiRepositoryDTOFromJSONTyped(json, false); } export function ApiRepositoryDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRepositoryDTO { if (json == null) { return json; } return { 'auditEnabled': json['auditEnabled'] == null ? undefined : json['auditEnabled'], 'format': json['format'] == null ? undefined : json['format'], 'monitoringEnabled': json['monitoringEnabled'] == null ? undefined : json['monitoringEnabled'], 'namespaceConfusionProtectionEnabled': json['namespaceConfusionProtectionEnabled'] == null ? undefined : json['namespaceConfusionProtectionEnabled'], 'policyCompliantComponentSelectionEnabled': json['policyCompliantComponentSelectionEnabled'] == null ? undefined : json['policyCompliantComponentSelectionEnabled'], 'proxyUrl': json['proxyUrl'] == null ? undefined : json['proxyUrl'], 'publicId': json['publicId'] == null ? undefined : json['publicId'], 'quarantineEnabled': json['quarantineEnabled'] == null ? undefined : json['quarantineEnabled'], 'repositoryId': json['repositoryId'] == null ? undefined : json['repositoryId'], 'type': json['type'] == null ? undefined : json['type'], 'upstreamUrl': json['upstreamUrl'] == null ? undefined : json['upstreamUrl'], }; } export function ApiRepositoryDTOToJSON(json: any): ApiRepositoryDTO { return ApiRepositoryDTOToJSONTyped(json, false); } export function ApiRepositoryDTOToJSONTyped(value?: ApiRepositoryDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'auditEnabled': value['auditEnabled'], 'format': value['format'], 'monitoringEnabled': value['monitoringEnabled'], 'namespaceConfusionProtectionEnabled': value['namespaceConfusionProtectionEnabled'], 'policyCompliantComponentSelectionEnabled': value['policyCompliantComponentSelectionEnabled'], 'proxyUrl': value['proxyUrl'], 'publicId': value['publicId'], 'quarantineEnabled': value['quarantineEnabled'], 'repositoryId': value['repositoryId'], 'type': value['type'], 'upstreamUrl': value['upstreamUrl'], }; }