@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
64 lines • 2.09 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';
/**
* @export
* @enum {string}
*/
export var V1TolerationEffectEnum;
(function (V1TolerationEffectEnum) {
V1TolerationEffectEnum["NoExecute"] = "NoExecute";
V1TolerationEffectEnum["NoSchedule"] = "NoSchedule";
V1TolerationEffectEnum["PreferNoSchedule"] = "PreferNoSchedule";
})(V1TolerationEffectEnum || (V1TolerationEffectEnum = {}));
/**
* @export
* @enum {string}
*/
export var V1TolerationOperatorEnum;
(function (V1TolerationOperatorEnum) {
V1TolerationOperatorEnum["Equal"] = "Equal";
V1TolerationOperatorEnum["Exists"] = "Exists";
})(V1TolerationOperatorEnum || (V1TolerationOperatorEnum = {}));
export function V1TolerationFromJSON(json) {
return V1TolerationFromJSONTyped(json, false);
}
export function V1TolerationFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
effect: !exists(json, 'effect') ? undefined : json['effect'],
key: !exists(json, 'key') ? undefined : json['key'],
operator: !exists(json, 'operator') ? undefined : json['operator'],
tolerationSeconds: !exists(json, 'tolerationSeconds') ? undefined : json['tolerationSeconds'],
value: !exists(json, 'value') ? undefined : json['value'],
};
}
export function V1TolerationToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
effect: value.effect,
key: value.key,
operator: value.operator,
tolerationSeconds: value.tolerationSeconds,
value: value.value,
};
}
//# sourceMappingURL=V1Toleration.js.map