@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
70 lines • 3.22 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 { ApiNodePlacementFromJSON, ApiNodePlacementToJSON, V1beta1CDICertConfigFromJSON, V1beta1CDICertConfigToJSON, V1beta1CDIConfigSpecFromJSON, V1beta1CDIConfigSpecToJSON, V1beta1ComponentConfigFromJSON, V1beta1ComponentConfigToJSON, V1beta1CustomizeComponentsFromJSON, V1beta1CustomizeComponentsToJSON, } from './';
/**
* @export
* @enum {string}
*/
export var V1beta1CDISpecImagePullPolicyEnum;
(function (V1beta1CDISpecImagePullPolicyEnum) {
V1beta1CDISpecImagePullPolicyEnum["Always"] = "Always";
V1beta1CDISpecImagePullPolicyEnum["IfNotPresent"] = "IfNotPresent";
V1beta1CDISpecImagePullPolicyEnum["Never"] = "Never";
})(V1beta1CDISpecImagePullPolicyEnum || (V1beta1CDISpecImagePullPolicyEnum = {}));
export function V1beta1CDISpecFromJSON(json) {
return V1beta1CDISpecFromJSONTyped(json, false);
}
export function V1beta1CDISpecFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
certConfig: !exists(json, 'certConfig')
? undefined
: V1beta1CDICertConfigFromJSON(json['certConfig']),
cloneStrategyOverride: !exists(json, 'cloneStrategyOverride')
? undefined
: json['cloneStrategyOverride'],
config: !exists(json, 'config') ? undefined : V1beta1CDIConfigSpecFromJSON(json['config']),
customizeComponents: !exists(json, 'customizeComponents')
? undefined
: V1beta1CustomizeComponentsFromJSON(json['customizeComponents']),
imagePullPolicy: !exists(json, 'imagePullPolicy') ? undefined : json['imagePullPolicy'],
infra: !exists(json, 'infra') ? undefined : V1beta1ComponentConfigFromJSON(json['infra']),
priorityClass: !exists(json, 'priorityClass') ? undefined : json['priorityClass'],
uninstallStrategy: !exists(json, 'uninstallStrategy') ? undefined : json['uninstallStrategy'],
workload: !exists(json, 'workload') ? undefined : ApiNodePlacementFromJSON(json['workload']),
};
}
export function V1beta1CDISpecToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
certConfig: V1beta1CDICertConfigToJSON(value.certConfig),
cloneStrategyOverride: value.cloneStrategyOverride,
config: V1beta1CDIConfigSpecToJSON(value.config),
customizeComponents: V1beta1CustomizeComponentsToJSON(value.customizeComponents),
imagePullPolicy: value.imagePullPolicy,
infra: V1beta1ComponentConfigToJSON(value.infra),
priorityClass: value.priorityClass,
uninstallStrategy: value.uninstallStrategy,
workload: ApiNodePlacementToJSON(value.workload),
};
}
//# sourceMappingURL=V1beta1CDISpec.js.map