@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
41 lines • 1.43 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 { IoK8sApiStorageV1VolumeAttachmentSourceFromJSON, IoK8sApiStorageV1VolumeAttachmentSourceToJSON, } from './';
export function IoK8sApiStorageV1VolumeAttachmentSpecFromJSON(json) {
return IoK8sApiStorageV1VolumeAttachmentSpecFromJSONTyped(json, false);
}
export function IoK8sApiStorageV1VolumeAttachmentSpecFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
attacher: json['attacher'],
nodeName: json['nodeName'],
source: IoK8sApiStorageV1VolumeAttachmentSourceFromJSON(json['source']),
};
}
export function IoK8sApiStorageV1VolumeAttachmentSpecToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
attacher: value.attacher,
nodeName: value.nodeName,
source: IoK8sApiStorageV1VolumeAttachmentSourceToJSON(value.source),
};
}
//# sourceMappingURL=IoK8sApiStorageV1VolumeAttachmentSpec.js.map