@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
39 lines • 1.21 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt API
* This is KubeVirt API an add-on for Kubernetes.
*
* The version of the OpenAPI document: 1.0.0
* Contact: kubevirt-dev@googlegroups.com
*
* 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';
export function V1HotplugVolumeStatusFromJSON(json) {
return V1HotplugVolumeStatusFromJSONTyped(json, false);
}
export function V1HotplugVolumeStatusFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
attachPodName: !exists(json, 'attachPodName') ? undefined : json['attachPodName'],
attachPodUID: !exists(json, 'attachPodUID') ? undefined : json['attachPodUID'],
};
}
export function V1HotplugVolumeStatusToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
attachPodName: value.attachPodName,
attachPodUID: value.attachPodUID,
};
}
//# sourceMappingURL=V1HotplugVolumeStatus.js.map