/** * This file is generated by the SwaggerTSGenerator. * Do not edit. */ /* tslint:disable */ import { BaseModel } from './base-model'; import { SubTypeFactory } from './sub-type-factory'; export interface IX500Name { commonName?: string; country: string; displayName?: string; locality: string; organisation: string; organisationUnit?: string; state?: string; } export class X500Name extends BaseModel implements IX500Name { static COMMON_NAME_FIELD_NAME = 'commonName'; static COUNTRY_FIELD_NAME = 'country'; static DISPLAY_NAME_FIELD_NAME = 'displayName'; static LOCALITY_FIELD_NAME = 'locality'; static ORGANISATION_FIELD_NAME = 'organisation'; static ORGANISATION_UNIT_FIELD_NAME = 'organisationUnit'; static STATE_FIELD_NAME = 'state'; commonName: string; country: string; displayName: string; locality: string; organisation: string; organisationUnit: string; state: string; /** * constructor * @param values Can be used to set a webapi response or formValues to this newly constructed model */ constructor(values?: Partial) { super(); if (values) { this.setValues(values); } } /** * set the values. * @param values Can be used to set a webapi response to this newly constructed model */ setValues(values: Partial): void { if (values) { const rawValues = values this.commonName = this.getValue(rawValues, X500Name.COMMON_NAME_FIELD_NAME); this.country = this.getValue(rawValues, X500Name.COUNTRY_FIELD_NAME); this.displayName = this.getValue(rawValues, X500Name.DISPLAY_NAME_FIELD_NAME); this.locality = this.getValue(rawValues, X500Name.LOCALITY_FIELD_NAME); this.organisation = this.getValue(rawValues, X500Name.ORGANISATION_FIELD_NAME); this.organisationUnit = this.getValue(rawValues, X500Name.ORGANISATION_UNIT_FIELD_NAME); this.state = this.getValue(rawValues, X500Name.STATE_FIELD_NAME); } } }