@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
48 lines • 1.89 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 { IoK8sApiResourceV1beta2DeviceClassConfigurationFromJSON, IoK8sApiResourceV1beta2DeviceClassConfigurationToJSON, IoK8sApiResourceV1beta2DeviceSelectorFromJSON, IoK8sApiResourceV1beta2DeviceSelectorToJSON, } from './';
export function IoK8sApiResourceV1beta2DeviceClassSpecFromJSON(json) {
return IoK8sApiResourceV1beta2DeviceClassSpecFromJSONTyped(json, false);
}
export function IoK8sApiResourceV1beta2DeviceClassSpecFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
config: !exists(json, 'config')
? undefined
: json['config'].map(IoK8sApiResourceV1beta2DeviceClassConfigurationFromJSON),
selectors: !exists(json, 'selectors')
? undefined
: json['selectors'].map(IoK8sApiResourceV1beta2DeviceSelectorFromJSON),
};
}
export function IoK8sApiResourceV1beta2DeviceClassSpecToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
config: value.config === undefined
? undefined
: value.config.map(IoK8sApiResourceV1beta2DeviceClassConfigurationToJSON),
selectors: value.selectors === undefined
? undefined
: value.selectors.map(IoK8sApiResourceV1beta2DeviceSelectorToJSON),
};
}
//# sourceMappingURL=IoK8sApiResourceV1beta2DeviceClassSpec.js.map