/* 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 ApiZScalerConfigurationDTO */ export interface ApiZScalerConfigurationDTO { /** * * @type {string} * @memberof ApiZScalerConfigurationDTO */ apiKey?: string; /** * * @type {boolean} * @memberof ApiZScalerConfigurationDTO */ eulaAgreed?: boolean; /** * * @type {string} * @memberof ApiZScalerConfigurationDTO */ hostname?: string; /** * * @type {boolean} * @memberof ApiZScalerConfigurationDTO */ mavenFormatEnabled?: boolean; /** * * @type {boolean} * @memberof ApiZScalerConfigurationDTO */ npmFormatEnabled?: boolean; /** * * @type {boolean} * @memberof ApiZScalerConfigurationDTO */ nugetFormatEnabled?: boolean; /** * * @type {string} * @memberof ApiZScalerConfigurationDTO */ password?: string; /** * * @type {boolean} * @memberof ApiZScalerConfigurationDTO */ pypiFormatEnabled?: boolean; /** * * @type {string} * @memberof ApiZScalerConfigurationDTO */ username?: string; } /** * Check if a given object implements the ApiZScalerConfigurationDTO interface. */ export function instanceOfApiZScalerConfigurationDTO(value: object): value is ApiZScalerConfigurationDTO { return true; } export function ApiZScalerConfigurationDTOFromJSON(json: any): ApiZScalerConfigurationDTO { return ApiZScalerConfigurationDTOFromJSONTyped(json, false); } export function ApiZScalerConfigurationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiZScalerConfigurationDTO { if (json == null) { return json; } return { 'apiKey': json['apiKey'] == null ? undefined : json['apiKey'], 'eulaAgreed': json['eulaAgreed'] == null ? undefined : json['eulaAgreed'], 'hostname': json['hostname'] == null ? undefined : json['hostname'], 'mavenFormatEnabled': json['mavenFormatEnabled'] == null ? undefined : json['mavenFormatEnabled'], 'npmFormatEnabled': json['npmFormatEnabled'] == null ? undefined : json['npmFormatEnabled'], 'nugetFormatEnabled': json['nugetFormatEnabled'] == null ? undefined : json['nugetFormatEnabled'], 'password': json['password'] == null ? undefined : json['password'], 'pypiFormatEnabled': json['pypiFormatEnabled'] == null ? undefined : json['pypiFormatEnabled'], 'username': json['username'] == null ? undefined : json['username'], }; } export function ApiZScalerConfigurationDTOToJSON(json: any): ApiZScalerConfigurationDTO { return ApiZScalerConfigurationDTOToJSONTyped(json, false); } export function ApiZScalerConfigurationDTOToJSONTyped(value?: ApiZScalerConfigurationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'apiKey': value['apiKey'], 'eulaAgreed': value['eulaAgreed'], 'hostname': value['hostname'], 'mavenFormatEnabled': value['mavenFormatEnabled'], 'npmFormatEnabled': value['npmFormatEnabled'], 'nugetFormatEnabled': value['nugetFormatEnabled'], 'password': value['password'], 'pypiFormatEnabled': value['pypiFormatEnabled'], 'username': value['username'], }; }