/* 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 ApiProxyServerConfigurationDTO */ export interface ApiProxyServerConfigurationDTO { /** * * @type {Array} * @memberof ApiProxyServerConfigurationDTO */ excludeHosts?: Array; /** * * @type {string} * @memberof ApiProxyServerConfigurationDTO */ hostname?: string; /** * * @type {string} * @memberof ApiProxyServerConfigurationDTO */ password?: string; /** * * @type {boolean} * @memberof ApiProxyServerConfigurationDTO */ passwordIsIncluded?: boolean; /** * * @type {number} * @memberof ApiProxyServerConfigurationDTO */ port?: number; /** * * @type {string} * @memberof ApiProxyServerConfigurationDTO */ username?: string; } /** * Check if a given object implements the ApiProxyServerConfigurationDTO interface. */ export function instanceOfApiProxyServerConfigurationDTO(value: object): value is ApiProxyServerConfigurationDTO { return true; } export function ApiProxyServerConfigurationDTOFromJSON(json: any): ApiProxyServerConfigurationDTO { return ApiProxyServerConfigurationDTOFromJSONTyped(json, false); } export function ApiProxyServerConfigurationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiProxyServerConfigurationDTO { if (json == null) { return json; } return { 'excludeHosts': json['excludeHosts'] == null ? undefined : json['excludeHosts'], 'hostname': json['hostname'] == null ? undefined : json['hostname'], 'password': json['password'] == null ? undefined : json['password'], 'passwordIsIncluded': json['passwordIsIncluded'] == null ? undefined : json['passwordIsIncluded'], 'port': json['port'] == null ? undefined : json['port'], 'username': json['username'] == null ? undefined : json['username'], }; } export function ApiProxyServerConfigurationDTOToJSON(json: any): ApiProxyServerConfigurationDTO { return ApiProxyServerConfigurationDTOToJSONTyped(json, false); } export function ApiProxyServerConfigurationDTOToJSONTyped(value?: ApiProxyServerConfigurationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'excludeHosts': value['excludeHosts'], 'hostname': value['hostname'], 'password': value['password'], 'passwordIsIncluded': value['passwordIsIncluded'], 'port': value['port'], 'username': value['username'], }; }