/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * 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 } from '../runtime'; import type { V1NMStateSpecProbeConfigurationDns } from './V1NMStateSpecProbeConfigurationDns'; import { V1NMStateSpecProbeConfigurationDnsFromJSON, V1NMStateSpecProbeConfigurationDnsToJSON, } from './V1NMStateSpecProbeConfigurationDns'; /** * ProbeConfiguration is an optional configuration of NMstate probes testing various functionalities. * If ProbeConfiguration is specified, the handler will use the config defined here instead of its default values. * @export * @interface V1NMStateSpecProbeConfiguration */ export interface V1NMStateSpecProbeConfiguration { /** * * @type {V1NMStateSpecProbeConfigurationDns} * @memberof V1NMStateSpecProbeConfiguration */ dns?: V1NMStateSpecProbeConfigurationDns; } /** * Check if a given object implements the V1NMStateSpecProbeConfiguration interface. */ export function instanceOfV1NMStateSpecProbeConfiguration(_value: object): boolean { const isInstance = true; return isInstance; } export function V1NMStateSpecProbeConfigurationFromJSON( json: any, ): V1NMStateSpecProbeConfiguration { return V1NMStateSpecProbeConfigurationFromJSONTyped(json, false); } export function V1NMStateSpecProbeConfigurationFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1NMStateSpecProbeConfiguration { if (json === undefined || json === null) { return json; } return { dns: !exists(json, 'dns') ? undefined : V1NMStateSpecProbeConfigurationDnsFromJSON(json['dns']), }; } export function V1NMStateSpecProbeConfigurationToJSON( value?: V1NMStateSpecProbeConfiguration | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { dns: V1NMStateSpecProbeConfigurationDnsToJSON(value.dns), }; }