@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
54 lines • 2.13 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 { IoK8sApiResourceV1beta1NetworkDeviceDataFromJSON, IoK8sApiResourceV1beta1NetworkDeviceDataToJSON, IoK8sApimachineryPkgApisMetaV1ConditionFromJSON, IoK8sApimachineryPkgApisMetaV1ConditionToJSON, } from './';
export function IoK8sApiResourceV1beta1AllocatedDeviceStatusFromJSON(json) {
return IoK8sApiResourceV1beta1AllocatedDeviceStatusFromJSONTyped(json, false);
}
export function IoK8sApiResourceV1beta1AllocatedDeviceStatusFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
conditions: !exists(json, 'conditions')
? undefined
: json['conditions'].map(IoK8sApimachineryPkgApisMetaV1ConditionFromJSON),
data: !exists(json, 'data') ? undefined : json['data'],
device: json['device'],
driver: json['driver'],
networkData: !exists(json, 'networkData')
? undefined
: IoK8sApiResourceV1beta1NetworkDeviceDataFromJSON(json['networkData']),
pool: json['pool'],
};
}
export function IoK8sApiResourceV1beta1AllocatedDeviceStatusToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
conditions: value.conditions === undefined
? undefined
: value.conditions.map(IoK8sApimachineryPkgApisMetaV1ConditionToJSON),
data: value.data,
device: value.device,
driver: value.driver,
networkData: IoK8sApiResourceV1beta1NetworkDeviceDataToJSON(value.networkData),
pool: value.pool,
};
}
//# sourceMappingURL=IoK8sApiResourceV1beta1AllocatedDeviceStatus.js.map