/* tslint:disable */ /* eslint-disable */ /** * MailSlurp API * MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It\'s designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository * * The version of the OpenAPI document: 6.5.2 * Contact: contact@mailslurp.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface TenantReputationFindingDto */ export interface TenantReputationFindingDto { /** * * @type {string} * @memberof TenantReputationFindingDto */ accountRegion: TenantReputationFindingDtoAccountRegionEnum; /** * * @type {string} * @memberof TenantReputationFindingDto */ tenantName: string; /** * * @type {string} * @memberof TenantReputationFindingDto */ tenantArn?: string; /** * * @type {string} * @memberof TenantReputationFindingDto */ type?: string; /** * * @type {string} * @memberof TenantReputationFindingDto */ impact?: string; /** * * @type {string} * @memberof TenantReputationFindingDto */ status?: string; /** * * @type {string} * @memberof TenantReputationFindingDto */ description?: string; /** * * @type {Date} * @memberof TenantReputationFindingDto */ createdTimestamp?: Date; /** * * @type {Date} * @memberof TenantReputationFindingDto */ lastUpdatedTimestamp?: Date; } /** * @export * @enum {string} */ export enum TenantReputationFindingDtoAccountRegionEnum { US_WEST_2_ACCOUNT_STAGING = 'US_WEST_2_ACCOUNT_STAGING', US_EAST_1_ACCOUNT_STAGING = 'US_EAST_1_ACCOUNT_STAGING', EU_WEST_1_ACCOUNT_STAGING = 'EU_WEST_1_ACCOUNT_STAGING', US_WEST_2_ACCOUNT_SES_1 = 'US_WEST_2_ACCOUNT_SES_1', EU_WEST_1_ACCOUNT_SES_1 = 'EU_WEST_1_ACCOUNT_SES_1', US_WEST_2_ACCOUNT_SES_2 = 'US_WEST_2_ACCOUNT_SES_2', EU_WEST_1_ACCOUNT_SES_2 = 'EU_WEST_1_ACCOUNT_SES_2', US_WEST_2_ACCOUNT_BYTEWISE = 'US_WEST_2_ACCOUNT_BYTEWISE', EU_WEST_1_ACCOUNT_BYTEWISE = 'EU_WEST_1_ACCOUNT_BYTEWISE', US_WEST_2 = 'US_WEST_2', EU_WEST_1 = 'EU_WEST_1', US_EAST_1 = 'US_EAST_1', } export function TenantReputationFindingDtoFromJSON( json: any ): TenantReputationFindingDto { return TenantReputationFindingDtoFromJSONTyped(json, false); } export function TenantReputationFindingDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): TenantReputationFindingDto { if (json === undefined || json === null) { return json; } return { accountRegion: json['accountRegion'], tenantName: json['tenantName'], tenantArn: !exists(json, 'tenantArn') ? undefined : json['tenantArn'], type: !exists(json, 'type') ? undefined : json['type'], impact: !exists(json, 'impact') ? undefined : json['impact'], status: !exists(json, 'status') ? undefined : json['status'], description: !exists(json, 'description') ? undefined : json['description'], createdTimestamp: !exists(json, 'createdTimestamp') ? undefined : new Date(json['createdTimestamp']), lastUpdatedTimestamp: !exists(json, 'lastUpdatedTimestamp') ? undefined : new Date(json['lastUpdatedTimestamp']), }; } export function TenantReputationFindingDtoToJSON( value?: TenantReputationFindingDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { accountRegion: value.accountRegion, tenantName: value.tenantName, tenantArn: value.tenantArn, type: value.type, impact: value.impact, status: value.status, description: value.description, createdTimestamp: value.createdTimestamp === undefined ? undefined : value.createdTimestamp.toISOString(), lastUpdatedTimestamp: value.lastUpdatedTimestamp === undefined ? undefined : value.lastUpdatedTimestamp.toISOString(), }; }