@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
60 lines • 2.49 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: unversioned
*
*
* 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 { IoK8sApiCoreV1ObjectReferenceFromJSON, IoK8sApiCoreV1ObjectReferenceToJSON, IoK8sApiDiscoveryV1EndpointConditionsFromJSON, IoK8sApiDiscoveryV1EndpointConditionsToJSON, IoK8sApiDiscoveryV1EndpointHintsFromJSON, IoK8sApiDiscoveryV1EndpointHintsToJSON, } from './';
export function IoK8sApiDiscoveryV1EndpointFromJSON(json) {
return IoK8sApiDiscoveryV1EndpointFromJSONTyped(json, false);
}
export function IoK8sApiDiscoveryV1EndpointFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
addresses: json['addresses'],
conditions: !exists(json, 'conditions')
? undefined
: IoK8sApiDiscoveryV1EndpointConditionsFromJSON(json['conditions']),
deprecatedTopology: !exists(json, 'deprecatedTopology')
? undefined
: json['deprecatedTopology'],
hints: !exists(json, 'hints')
? undefined
: IoK8sApiDiscoveryV1EndpointHintsFromJSON(json['hints']),
hostname: !exists(json, 'hostname') ? undefined : json['hostname'],
nodeName: !exists(json, 'nodeName') ? undefined : json['nodeName'],
targetRef: !exists(json, 'targetRef')
? undefined
: IoK8sApiCoreV1ObjectReferenceFromJSON(json['targetRef']),
zone: !exists(json, 'zone') ? undefined : json['zone'],
};
}
export function IoK8sApiDiscoveryV1EndpointToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
addresses: value.addresses,
conditions: IoK8sApiDiscoveryV1EndpointConditionsToJSON(value.conditions),
deprecatedTopology: value.deprecatedTopology,
hints: IoK8sApiDiscoveryV1EndpointHintsToJSON(value.hints),
hostname: value.hostname,
nodeName: value.nodeName,
targetRef: IoK8sApiCoreV1ObjectReferenceToJSON(value.targetRef),
zone: value.zone,
};
}
//# sourceMappingURL=IoK8sApiDiscoveryV1Endpoint.js.map