@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
54 lines • 2.01 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';
import { V1PreconditionsFromJSON, V1PreconditionsToJSON } from './';
export function V1DeleteOptionsFromJSON(json) {
return V1DeleteOptionsFromJSONTyped(json, false);
}
export function V1DeleteOptionsFromJSONTyped(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'],
kind: !exists(json, 'kind') ? undefined : json['kind'],
orphanDependents: !exists(json, 'orphanDependents') ? undefined : json['orphanDependents'],
preconditions: !exists(json, 'preconditions')
? undefined
: V1PreconditionsFromJSON(json['preconditions']),
propagationPolicy: !exists(json, 'propagationPolicy') ? undefined : json['propagationPolicy'],
};
}
export function V1DeleteOptionsToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
apiVersion: value.apiVersion,
dryRun: value.dryRun,
gracePeriodSeconds: value.gracePeriodSeconds,
kind: value.kind,
orphanDependents: value.orphanDependents,
preconditions: V1PreconditionsToJSON(value.preconditions),
propagationPolicy: value.propagationPolicy,
};
}
//# sourceMappingURL=V1DeleteOptions.js.map