/* 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 ApiMailConfigurationDTO */ export interface ApiMailConfigurationDTO { /** * * @type {string} * @memberof ApiMailConfigurationDTO */ hostname?: string; /** * * @type {string} * @memberof ApiMailConfigurationDTO */ password?: string; /** * * @type {boolean} * @memberof ApiMailConfigurationDTO */ passwordIsIncluded?: boolean; /** * * @type {number} * @memberof ApiMailConfigurationDTO */ port?: number; /** * * @type {boolean} * @memberof ApiMailConfigurationDTO */ sslEnabled?: boolean; /** * * @type {boolean} * @memberof ApiMailConfigurationDTO */ startTlsEnabled?: boolean; /** * * @type {string} * @memberof ApiMailConfigurationDTO */ systemEmail?: string; /** * * @type {string} * @memberof ApiMailConfigurationDTO */ username?: string; } /** * Check if a given object implements the ApiMailConfigurationDTO interface. */ export function instanceOfApiMailConfigurationDTO(value: object): value is ApiMailConfigurationDTO { return true; } export function ApiMailConfigurationDTOFromJSON(json: any): ApiMailConfigurationDTO { return ApiMailConfigurationDTOFromJSONTyped(json, false); } export function ApiMailConfigurationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiMailConfigurationDTO { if (json == null) { return json; } return { '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'], 'sslEnabled': json['sslEnabled'] == null ? undefined : json['sslEnabled'], 'startTlsEnabled': json['startTlsEnabled'] == null ? undefined : json['startTlsEnabled'], 'systemEmail': json['systemEmail'] == null ? undefined : json['systemEmail'], 'username': json['username'] == null ? undefined : json['username'], }; } export function ApiMailConfigurationDTOToJSON(json: any): ApiMailConfigurationDTO { return ApiMailConfigurationDTOToJSONTyped(json, false); } export function ApiMailConfigurationDTOToJSONTyped(value?: ApiMailConfigurationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'hostname': value['hostname'], 'password': value['password'], 'passwordIsIncluded': value['passwordIsIncluded'], 'port': value['port'], 'sslEnabled': value['sslEnabled'], 'startTlsEnabled': value['startTlsEnabled'], 'systemEmail': value['systemEmail'], 'username': value['username'], }; }