@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
49 lines • 1.77 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt Containerized Data Importer API
* Containerized Data Importer for KubeVirt.
*
* 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 V1beta1DataVolumeSourceVDDKFromJSON(json) {
return V1beta1DataVolumeSourceVDDKFromJSONTyped(json, false);
}
export function V1beta1DataVolumeSourceVDDKFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
backingFile: !exists(json, 'backingFile') ? undefined : json['backingFile'],
extraArgs: !exists(json, 'extraArgs') ? undefined : json['extraArgs'],
initImageURL: !exists(json, 'initImageURL') ? undefined : json['initImageURL'],
secretRef: !exists(json, 'secretRef') ? undefined : json['secretRef'],
thumbprint: !exists(json, 'thumbprint') ? undefined : json['thumbprint'],
url: !exists(json, 'url') ? undefined : json['url'],
uuid: !exists(json, 'uuid') ? undefined : json['uuid'],
};
}
export function V1beta1DataVolumeSourceVDDKToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
backingFile: value.backingFile,
extraArgs: value.extraArgs,
initImageURL: value.initImageURL,
secretRef: value.secretRef,
thumbprint: value.thumbprint,
url: value.url,
uuid: value.uuid,
};
}
//# sourceMappingURL=V1beta1DataVolumeSourceVDDK.js.map