UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

56 lines 2.29 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 { IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, } from './'; export function IoK8sApiCoreV1TopologySpreadConstraintFromJSON(json) { return IoK8sApiCoreV1TopologySpreadConstraintFromJSONTyped(json, false); } export function IoK8sApiCoreV1TopologySpreadConstraintFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { labelSelector: !exists(json, 'labelSelector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(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 IoK8sApiCoreV1TopologySpreadConstraintToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { labelSelector: IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.labelSelector), matchLabelKeys: value.matchLabelKeys, maxSkew: value.maxSkew, minDomains: value.minDomains, nodeAffinityPolicy: value.nodeAffinityPolicy, nodeTaintsPolicy: value.nodeTaintsPolicy, topologyKey: value.topologyKey, whenUnsatisfiable: value.whenUnsatisfiable, }; } //# sourceMappingURL=IoK8sApiCoreV1TopologySpreadConstraint.js.map