@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
83 lines • 3.76 kB
JavaScript
/* 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';
import { K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON, K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON, } from './';
/**
* @export
* @enum {string}
*/
export var K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum;
(function (K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum) {
K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum["Honor"] = "Honor";
K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum["Ignore"] = "Ignore";
})(K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum || (K8sIoApiCoreV1TopologySpreadConstraintNodeAffinityPolicyEnum = {}));
/**
* @export
* @enum {string}
*/
export var K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum;
(function (K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum) {
K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum["Honor"] = "Honor";
K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum["Ignore"] = "Ignore";
})(K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum || (K8sIoApiCoreV1TopologySpreadConstraintNodeTaintsPolicyEnum = {}));
/**
* @export
* @enum {string}
*/
export var K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum;
(function (K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum) {
K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum["DoNotSchedule"] = "DoNotSchedule";
K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum["ScheduleAnyway"] = "ScheduleAnyway";
})(K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum || (K8sIoApiCoreV1TopologySpreadConstraintWhenUnsatisfiableEnum = {}));
export function K8sIoApiCoreV1TopologySpreadConstraintFromJSON(json) {
return K8sIoApiCoreV1TopologySpreadConstraintFromJSONTyped(json, false);
}
export function K8sIoApiCoreV1TopologySpreadConstraintFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
labelSelector: !exists(json, 'labelSelector')
? undefined
: K8sIoApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['labelSelector']),
matchLabelKeys: !exists(json, 'matchLabelKeys') ? undefined : json['matchLabelKeys'],
maxSkew: json['maxSkew'],
minDomains: !exists(json, 'minDomains') ? undefined : json['minDomains'],
nodeAffinityPolicy: !exists(json, 'nodeAffinityPolicy')
? undefined
: json['nodeAffinityPolicy'],
nodeTaintsPolicy: !exists(json, 'nodeTaintsPolicy') ? undefined : json['nodeTaintsPolicy'],
topologyKey: json['topologyKey'],
whenUnsatisfiable: json['whenUnsatisfiable'],
};
}
export function K8sIoApiCoreV1TopologySpreadConstraintToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
labelSelector: K8sIoApimachineryPkgApisMetaV1LabelSelectorToJSON(value.labelSelector),
matchLabelKeys: value.matchLabelKeys,
maxSkew: value.maxSkew,
minDomains: value.minDomains,
nodeAffinityPolicy: value.nodeAffinityPolicy,
nodeTaintsPolicy: value.nodeTaintsPolicy,
topologyKey: value.topologyKey,
whenUnsatisfiable: value.whenUnsatisfiable,
};
}
//# sourceMappingURL=K8sIoApiCoreV1TopologySpreadConstraint.js.map