UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

55 lines 1.98 kB
/* 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 * @enum {string} */ export var V1KernelBootContainerImagePullPolicyEnum; (function (V1KernelBootContainerImagePullPolicyEnum) { V1KernelBootContainerImagePullPolicyEnum["Always"] = "Always"; V1KernelBootContainerImagePullPolicyEnum["IfNotPresent"] = "IfNotPresent"; V1KernelBootContainerImagePullPolicyEnum["Never"] = "Never"; })(V1KernelBootContainerImagePullPolicyEnum || (V1KernelBootContainerImagePullPolicyEnum = {})); export function V1KernelBootContainerFromJSON(json) { return V1KernelBootContainerFromJSONTyped(json, false); } export function V1KernelBootContainerFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { image: json['image'], imagePullPolicy: !exists(json, 'imagePullPolicy') ? undefined : json['imagePullPolicy'], imagePullSecret: !exists(json, 'imagePullSecret') ? undefined : json['imagePullSecret'], initrdPath: !exists(json, 'initrdPath') ? undefined : json['initrdPath'], kernelPath: !exists(json, 'kernelPath') ? undefined : json['kernelPath'], }; } export function V1KernelBootContainerToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { image: value.image, imagePullPolicy: value.imagePullPolicy, imagePullSecret: value.imagePullSecret, initrdPath: value.initrdPath, kernelPath: value.kernelPath, }; } //# sourceMappingURL=V1KernelBootContainer.js.map