UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

43 lines 1.32 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 function V1StartOptionsFromJSON(json) { return V1StartOptionsFromJSONTyped(json, false); } export function V1StartOptionsFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], dryRun: !exists(json, 'dryRun') ? undefined : json['dryRun'], kind: !exists(json, 'kind') ? undefined : json['kind'], paused: !exists(json, 'paused') ? undefined : json['paused'], }; } export function V1StartOptionsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, dryRun: value.dryRun, kind: value.kind, paused: value.paused, }; } //# sourceMappingURL=V1StartOptions.js.map