@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
42 lines • 1.71 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 { IoK8sApiResourceV1alpha3DeviceTaintFromJSON, IoK8sApiResourceV1alpha3DeviceTaintSelectorFromJSON, IoK8sApiResourceV1alpha3DeviceTaintSelectorToJSON, IoK8sApiResourceV1alpha3DeviceTaintToJSON, } from './';
export function IoK8sApiResourceV1alpha3DeviceTaintRuleSpecFromJSON(json) {
return IoK8sApiResourceV1alpha3DeviceTaintRuleSpecFromJSONTyped(json, false);
}
export function IoK8sApiResourceV1alpha3DeviceTaintRuleSpecFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
deviceSelector: !exists(json, 'deviceSelector')
? undefined
: IoK8sApiResourceV1alpha3DeviceTaintSelectorFromJSON(json['deviceSelector']),
taint: IoK8sApiResourceV1alpha3DeviceTaintFromJSON(json['taint']),
};
}
export function IoK8sApiResourceV1alpha3DeviceTaintRuleSpecToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
deviceSelector: IoK8sApiResourceV1alpha3DeviceTaintSelectorToJSON(value.deviceSelector),
taint: IoK8sApiResourceV1alpha3DeviceTaintToJSON(value.taint),
};
}
//# sourceMappingURL=IoK8sApiResourceV1alpha3DeviceTaintRuleSpec.js.map