@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
48 lines • 1.88 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 { IoK8sApiResourceV1beta2DeviceSubRequestFromJSON, IoK8sApiResourceV1beta2DeviceSubRequestToJSON, IoK8sApiResourceV1beta2ExactDeviceRequestFromJSON, IoK8sApiResourceV1beta2ExactDeviceRequestToJSON, } from './';
export function IoK8sApiResourceV1beta2DeviceRequestFromJSON(json) {
return IoK8sApiResourceV1beta2DeviceRequestFromJSONTyped(json, false);
}
export function IoK8sApiResourceV1beta2DeviceRequestFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
exactly: !exists(json, 'exactly')
? undefined
: IoK8sApiResourceV1beta2ExactDeviceRequestFromJSON(json['exactly']),
firstAvailable: !exists(json, 'firstAvailable')
? undefined
: json['firstAvailable'].map(IoK8sApiResourceV1beta2DeviceSubRequestFromJSON),
name: json['name'],
};
}
export function IoK8sApiResourceV1beta2DeviceRequestToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
exactly: IoK8sApiResourceV1beta2ExactDeviceRequestToJSON(value.exactly),
firstAvailable: value.firstAvailable === undefined
? undefined
: value.firstAvailable.map(IoK8sApiResourceV1beta2DeviceSubRequestToJSON),
name: value.name,
};
}
//# sourceMappingURL=IoK8sApiResourceV1beta2DeviceRequest.js.map