/* tslint:disable */ /* eslint-disable */ /** * Assisted Migration Agent API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * 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.js'; import type { VCenter } from './VCenter.js'; import { VCenterFromJSON, VCenterFromJSONTyped, VCenterToJSON, VCenterToJSONTyped, } from './VCenter.js'; import type { Infra } from './Infra.js'; import { InfraFromJSON, InfraFromJSONTyped, InfraToJSON, InfraToJSONTyped, } from './Infra.js'; import type { VMs } from './VMs.js'; import { VMsFromJSON, VMsFromJSONTyped, VMsToJSON, VMsToJSONTyped, } from './VMs.js'; /** * * @export * @interface InventoryData */ export interface InventoryData { /** * * @type {VCenter} * @memberof InventoryData */ vcenter?: VCenter; /** * * @type {VMs} * @memberof InventoryData */ vms: VMs; /** * * @type {Infra} * @memberof InventoryData */ infra: Infra; } /** * Check if a given object implements the InventoryData interface. */ export function instanceOfInventoryData(value: object): value is InventoryData { if (!('vms' in value) || value['vms'] === undefined) return false; if (!('infra' in value) || value['infra'] === undefined) return false; return true; } export function InventoryDataFromJSON(json: any): InventoryData { return InventoryDataFromJSONTyped(json, false); } export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): InventoryData { if (json == null) { return json; } return { 'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']), 'vms': VMsFromJSON(json['vms']), 'infra': InfraFromJSON(json['infra']), }; } export function InventoryDataToJSON(json: any): InventoryData { return InventoryDataToJSONTyped(json, false); } export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'vcenter': VCenterToJSON(value['vcenter']), 'vms': VMsToJSON(value['vms']), 'infra': InfraToJSON(value['infra']), }; }