/* 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 { VddkProperties } from './VddkProperties.js'; import { VddkPropertiesFromJSON, VddkPropertiesFromJSONTyped, VddkPropertiesToJSON, VddkPropertiesToJSONTyped, } from './VddkProperties.js'; import type { VcenterCredentials } from './VcenterCredentials.js'; import { VcenterCredentialsFromJSON, VcenterCredentialsFromJSONTyped, VcenterCredentialsToJSON, VcenterCredentialsToJSONTyped, } from './VcenterCredentials.js'; /** * * @export * @interface InspectorStatus */ export interface InspectorStatus { /** * Inspector state * @type {InspectorStatusStateEnum} * @memberof InspectorStatus */ state: InspectorStatusStateEnum; /** * * @type {VcenterCredentials} * @memberof InspectorStatus */ credentials?: VcenterCredentials; /** * * @type {VddkProperties} * @memberof InspectorStatus */ vddk?: VddkProperties; /** * Error message when state is error * @type {string} * @memberof InspectorStatus */ error?: string; } /** * @export */ export const InspectorStatusStateEnum = { InspectorStatusStateReady: 'ready', InspectorStatusStateInitiating: 'Initiating', InspectorStatusStateRunning: 'running', InspectorStatusStateCanceled: 'canceled', InspectorStatusStateCompleted: 'completed', InspectorStatusStateError: 'error' } as const; export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum]; /** * Check if a given object implements the InspectorStatus interface. */ export function instanceOfInspectorStatus(value: object): value is InspectorStatus { if (!('state' in value) || value['state'] === undefined) return false; return true; } export function InspectorStatusFromJSON(json: any): InspectorStatus { return InspectorStatusFromJSONTyped(json, false); } export function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStatus { if (json == null) { return json; } return { 'state': json['state'], 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']), 'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']), 'error': json['error'] == null ? undefined : json['error'], }; } export function InspectorStatusToJSON(json: any): InspectorStatus { return InspectorStatusToJSONTyped(json, false); } export function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'state': value['state'], 'credentials': VcenterCredentialsToJSON(value['credentials']), 'vddk': VddkPropertiesToJSON(value['vddk']), 'error': value['error'], }; }