UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

58 lines 2.6 kB
/* 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 { exists } from '../runtime'; import { IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSON, IoK8sApimachineryPkgApisMetaV1PreconditionsToJSON, } from './'; export function IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSON(json) { return IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSONTyped(json, false); } export function IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], dryRun: !exists(json, 'dryRun') ? undefined : json['dryRun'], gracePeriodSeconds: !exists(json, 'gracePeriodSeconds') ? undefined : json['gracePeriodSeconds'], ignoreStoreReadErrorWithClusterBreakingPotential: !exists(json, 'ignoreStoreReadErrorWithClusterBreakingPotential') ? undefined : json['ignoreStoreReadErrorWithClusterBreakingPotential'], kind: !exists(json, 'kind') ? undefined : json['kind'], orphanDependents: !exists(json, 'orphanDependents') ? undefined : json['orphanDependents'], preconditions: !exists(json, 'preconditions') ? undefined : IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSON(json['preconditions']), propagationPolicy: !exists(json, 'propagationPolicy') ? undefined : json['propagationPolicy'], }; } export function IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, dryRun: value.dryRun, gracePeriodSeconds: value.gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential: value.ignoreStoreReadErrorWithClusterBreakingPotential, kind: value.kind, orphanDependents: value.orphanDependents, preconditions: IoK8sApimachineryPkgApisMetaV1PreconditionsToJSON(value.preconditions), propagationPolicy: value.propagationPolicy, }; } //# sourceMappingURL=IoK8sApimachineryPkgApisMetaV1DeleteOptions.js.map