/* 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'; /** * * @export * @interface Network */ export interface Network { /** * * @type {NetworkTypeEnum} * @memberof Network */ type: NetworkTypeEnum; /** * * @type {string} * @memberof Network */ name: string; /** * * @type {string} * @memberof Network */ vlanId?: string; /** * * @type {string} * @memberof Network */ dvswitch?: string; /** * * @type {number} * @memberof Network */ vmsCount?: number; } /** * @export */ export const NetworkTypeEnum = { Standard: 'standard', Distributed: 'distributed', Dvswitch: 'dvswitch', Unsupported: 'unsupported' } as const; export type NetworkTypeEnum = typeof NetworkTypeEnum[keyof typeof NetworkTypeEnum]; /** * Check if a given object implements the Network interface. */ export function instanceOfNetwork(value: object): value is Network { if (!('type' in value) || value['type'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function NetworkFromJSON(json: any): Network { return NetworkFromJSONTyped(json, false); } export function NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Network { if (json == null) { return json; } return { 'type': json['type'], 'name': json['name'], 'vlanId': json['vlanId'] == null ? undefined : json['vlanId'], 'dvswitch': json['dvswitch'] == null ? undefined : json['dvswitch'], 'vmsCount': json['vmsCount'] == null ? undefined : json['vmsCount'], }; } export function NetworkToJSON(json: any): Network { return NetworkToJSONTyped(json, false); } export function NetworkToJSONTyped(value?: Network | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'name': value['name'], 'vlanId': value['vlanId'], 'dvswitch': value['dvswitch'], 'vmsCount': value['vmsCount'], }; }